/* Styles used by interior pages (everything except the homepage). */

/* ---- Page hero --------------------------------------------------------- */

.page-hero {
  padding-block: var(--sp-7) var(--band-sm);
  background: linear-gradient(180deg, var(--bone-2) 0%, var(--bone) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 15ch;
  margin-top: var(--sp-4);
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.page-hero .lead {
  max-width: 62ch;
  margin-top: var(--sp-5);
}

.page-hero .hero-actions {
  margin-top: var(--sp-6);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span[aria-hidden] {
  opacity: 0.5;
}

/* ---- Nav dropdown, slide-in services drawer -----------------------------
   Backups of earlier attempts live at backups/mega-menu-pre-redesign/
   (original text-link version) and backups/mega-menu-dark-fullbleed/
   (full-bleed dark hover-preview version). */

.drawer-overlay {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  left: 0;
  height: calc(100vh - var(--nav-h));
  background: rgba(13, 13, 13, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: var(--z-menu);
}

.nav-drop[data-open="true"] .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-panel--drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: calc(100vh - var(--nav-h));
  right: auto;
  translate: none;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
  box-shadow: 32px 0 56px -28px rgba(0, 0, 0, 0.55);
  opacity: 1;
  visibility: visible;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  z-index: calc(var(--z-menu) + 1);
}

.nav-drop[data-open="true"] .nav-panel--drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-head span {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: #fff !important;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  line-height: 0;
  transition: background-color 0.2s var(--ease);
}

.drawer-close svg {
  display: block;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-6);
}

.drawer-group + .drawer-group {
  margin-top: var(--sp-6);
}

.drawer-group-label {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral) !important;
}

.drawer-item {
  display: flex !important;
  align-items: center;
  gap: 13px;
  margin: 0 -10px;
  padding: 10px !important;
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateX(16px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    background-color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms), calc(var(--i, 0) * 35ms), 0s, 0s;
}

.nav-drop[data-open="true"] .drawer-item {
  opacity: 1;
  transform: translateX(0);
}

.drawer-item:hover,
.drawer-item:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  padding-left: 14px !important;
}

.drawer-item-icon {
  display: flex !important;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 0 !important;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 0;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.drawer-item-icon svg {
  display: block;
}

.drawer-item:hover .drawer-item-icon,
.drawer-item:focus-visible .drawer-item-icon {
  background: rgba(236, 106, 76, 0.16);
  color: var(--coral);
}

.drawer-item-text strong {
  display: block !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff !important;
}

.drawer-item-text span {
  display: block !important;
  margin-top: 2px !important;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: #fff !important;
  opacity: 0.7;
}

.drawer-cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex: none;
  margin: 0 var(--sp-6) var(--sp-6);
  padding: var(--sp-4) var(--sp-5) !important;
  border-radius: var(--r-lg);
  background: rgba(236, 106, 76, 0.1) !important;
  transition: background-color 0.2s var(--ease);
}

.drawer-cta:hover {
  background: rgba(236, 106, 76, 0.18) !important;
}

.drawer-cta strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff !important;
}

.drawer-cta-arrow {
  display: flex !important;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 0 !important;
  border-radius: 50%;
  background: var(--coral);
  color: #0d0d0d !important;
  line-height: 0;
  transition: transform 0.2s var(--ease);
}

.drawer-cta-arrow svg {
  display: block;
}

.drawer-cta:hover .drawer-cta-arrow {
  transform: translateX(4px);
}

/* ---- Services page: category cards, one line per item ------------------ */

.cards-3 .card-list li {
  white-space: nowrap;
  font-size: var(--fs-sm);
}

.cards-3 .card-list a {
  transition: color var(--t-fast) var(--ease);
}

.cards-3 .card-list a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Comparison diagram on a light (non-inverted) section --------------- */

.diag-list--on-light .diag-num {
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 32, 59, 0.28);
}

.diag-list--on-light .diag-row:hover .diag-num {
  color: var(--coral);
  -webkit-text-stroke: 1px transparent;
}

/* ---- Prose ------------------------------------------------------------- */

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: var(--sp-5);
}

.prose h2 {
  margin-top: var(--sp-8);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.prose h3 {
  margin-top: var(--sp-7);
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---- Numbered process -------------------------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--coral-ink);
}

.step h3 {
  font-size: var(--fs-h4);
}

.step p {
  margin-top: var(--sp-2);
  font-size: var(--fs-ui);
}

/* ---- Numbered process, horizontal variant ------------------------------ */

.steps--row {
  flex-direction: row;
  gap: var(--sp-5);
}

.steps--row .step {
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  padding-block: 0;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line);
}

.steps--row .step:last-child {
  border-bottom: 0;
}

@media (max-width: 900px) {
  .steps--row {
    flex-direction: column;
  }

  .steps--row .step {
    padding-block: var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--line);
  }

  .steps--row .step:last-child {
    border-bottom: 1px solid var(--line);
  }
}

/* ---- Deliverables checklist -------------------------------------------- */

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-6);
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: var(--fs-ui);
  color: var(--text);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 167, 106, 0.14);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--pos);
  border-bottom: 2px solid var(--pos);
  rotate: -45deg;
}

/* ---- FAQ --------------------------------------------------------------- */

.faq {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  transition: rotate var(--t-fast) var(--ease);
}

.faq-item[open] > summary::after {
  rotate: -135deg;
}

.faq-item > p {
  padding-bottom: var(--sp-5);
}

/* ---- Article / card lists ---------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  overflow: hidden;
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-thumb {
  aspect-ratio: 8 / 5;
  background: var(--bone-2);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}

.post-meta {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.post-card h3 {
  margin-top: var(--sp-3);
  font-size: var(--fs-h4);
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--coral-ink);
}

.post-card p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

.post-card .qlink {
  margin-top: auto;
  padding-top: var(--sp-5);
}

/* ---- Industry card ----------------------------------------------------- */

.ind-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  overflow: hidden;
}

.ind-media {
  aspect-ratio: 3 / 2;
  background: var(--bone-2);
}

.ind-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ind-body {
  padding: var(--sp-5);
}

.ind-body p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

/* ---- Case story row ---------------------------------------------------- */

.case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: var(--band-sm);
  border-bottom: 1px solid var(--line);
}

.case-row:first-of-type {
  border-top: 1px solid var(--line);
}

.case-row .case-media img {
  width: 100%;
  border-radius: var(--r-lg);
}

/* Alternate the image side down the list. */
.case-row:nth-child(even) .case-media {
  order: -1;
}

/* ---- Contact ----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.cf-status {
  min-height: 1.2em;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.cf-status.is-error {
  color: #d64545;
}

.cf-status.is-success {
  color: #1a9160;
}

.contact-aside dl {
  margin: 0;
}

.contact-aside dt {
  margin-top: var(--sp-5);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.contact-aside dd {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-ui);
  color: var(--text);
}

.contact-media img {
  width: 100%;
  margin-top: var(--sp-6);
  border-radius: var(--r-lg);
}

/* ---- 404 --------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
}

.notfound .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--coral);
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 900px) {
  .contact-grid,
  .case-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-row:nth-child(even) .case-media {
    order: 0;
  }
}

@media (max-width: 620px) {
  .checks,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--sp-4);
  }
}

/* ---- Illustration figure ----------------------------------------------- */

.illus-figure {
  margin: 0 0 var(--sp-5);
}

.illus-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 20px 44px rgba(20, 28, 52, 0.12));
}

.illus-figure figcaption {
  margin-top: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---- Blog post cover image ---------------------------------------------- */

.blog-post-cover {
  margin-bottom: var(--band-sm);
}

.blog-post-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* ---- Team bio ---------------------------------------------------------- */

.bio-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: var(--sp-7);
  border-top: 1px solid var(--line);
  align-items: start;
}

.bio-card:last-child {
  border-bottom: 1px solid var(--line);
}

.bio-photo {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--bone-2);
  overflow: hidden;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-role {
  margin-top: var(--sp-1);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-ink);
}

.bio-body > p {
  margin-top: var(--sp-4);
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.bio-tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 620px) {
  .bio-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .bio-photo {
    max-width: 180px;
  }
}

/* ---- Audit tool ---------------------------------------------------------- */

.audit-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-nav) + 10);
  width: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: width 3.5s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 0.3s var(--ease);
}

.audit-progress-bar.is-active {
  opacity: 1;
}

.audit-progress-bar.is-done {
  transition: width 0.25s var(--ease), opacity 0.4s var(--ease) 0.3s;
  opacity: 0;
}

#audit .page-hero {
  border-bottom: none;
  padding-bottom: var(--sp-5);
}

#audit .page-hero .wrap {
  text-align: center;
}

#audit .page-hero .crumbs {
  justify-content: center;
}

#audit .page-hero .eyebrow:empty {
  display: none;
}

#audit .page-hero h1,
#audit .page-hero .lead {
  margin-inline: auto;
}

#audit .page-hero .lead {
  max-width: 74ch;
}

.audit-tool {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.audit-scanbar {
  display: flex;
  gap: var(--sp-3);
}

.audit-scanbar input {
  flex: 1;
  padding: 13px var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bone-card);
  font-family: var(--body);
  font-size: var(--fs-ui);
  color: var(--text);
}

.audit-scanbar input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}

.audit-scanbar input:disabled {
  opacity: 0.6;
}

.audit-status {
  margin-top: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--muted-2);
  min-height: 1em;
}

.audit-offline {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(214, 69, 69, 0.3);
  border-radius: var(--r-sm);
  background: rgba(214, 69, 69, 0.06);
  font-size: var(--fs-sm);
  color: var(--coral-ink);
}

.audit-offline code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: rgba(21, 32, 59, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* "What this audit can tell you" — 4-up capability grid */

.audit-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-7);
  max-width: 900px;
  margin-inline: auto;
}

.audit-capability {
  display: flex;
  gap: var(--sp-4);
  text-align: left;
}

.audit-capability-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(236, 106, 76, 0.1);
  color: var(--coral-deep);
}

.audit-capability h3 {
  font-size: var(--fs-h4);
}

.audit-capability p {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.audit-results {
  max-width: 900px;
  margin: var(--sp-8) auto 0;
  text-align: left;
}

.audit-results > section + section {
  margin-top: var(--sp-8);
}

.audit-results h2 {
  font-size: var(--fs-h3);
}

.audit-results .section-intro {
  max-width: 68ch;
  margin-top: var(--sp-3);
  color: var(--muted);
}

.audit-results .audit-steps,
.audit-results .audit-det-grid,
.audit-results .audit-lead-form {
  margin-top: var(--sp-5);
}

/* Report meta bar */

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.audit-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-sm);
}

.audit-meta-rows b {
  color: var(--ink);
}

.audit-badge {
  display: inline-block;
  margin-left: var(--sp-2);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-lab);
  background: rgba(34, 167, 106, 0.14);
  color: var(--pos);
}

.audit-badge.is-bad {
  background: rgba(214, 69, 69, 0.14);
  color: #b3312f;
}

/* Live/finished journey steps — a connected vertical timeline */

.audit-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.audit-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}

.audit-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.audit-step-node {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: var(--fs-xs);
  color: var(--on-dark);
  background: var(--muted-2);
  box-shadow: 0 0 0 4px var(--bone);
}

.audit-step.ok .audit-step-node {
  background: var(--pos-2);
}

.audit-step.failed .audit-step-node {
  background: #d64545;
}

.audit-step.pending .audit-step-node,
.audit-step.skipped .audit-step-node {
  background: var(--bone-2);
  color: var(--muted-2);
}

.audit-step-body {
  flex: 1;
  padding-top: 3px;
}

.audit-step-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.audit-step-name {
  font-weight: 600;
  color: var(--ink);
}

.audit-step-status {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-lab);
  color: var(--muted-2);
}

.audit-step.ok .audit-step-status {
  color: var(--pos);
}

.audit-step.failed .audit-step-status {
  color: #b3312f;
}

.audit-step-detail {
  margin-top: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Detector grid */

.audit-det-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.audit-det-card {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bone-card);
}

.audit-det-card h3 {
  font-size: var(--fs-sm);
  font-family: var(--mono);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-ink);
}

.audit-det-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text);
}

.audit-det-row .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.audit-det-row .dot.on {
  background: var(--pos-2);
}

.audit-det-ids {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted-2);
  word-break: break-word;
}

/* Findings teaser — critical only, rest locked behind the gate */

.audit-finding-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.audit-finding {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  border-radius: var(--r-sm);
  background: var(--bone-card);
}

.audit-finding.critical { border-left-color: #d64545; }

.audit-finding .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-weight: 700;
  color: var(--ink);
}

.audit-finding .cat {
  flex: none;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-lab);
  color: var(--muted-2);
}

.audit-finding .evidence {
  margin-top: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--muted-2);
  word-break: break-word;
}

.audit-finding .detail {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.audit-no-critical {
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.audit-locked-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted-2);
}

/* Report gate: lead-capture form in place of the full findings report */

.audit-gate {
  padding: var(--sp-7) var(--sp-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bone-2) 0%, var(--bone) 100%);
}

.audit-lead-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.audit-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.audit-lead-row .audit-field {
  margin-top: 0;
}

.audit-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.audit-field input {
  padding: 11px var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bone-card);
  font-family: var(--body);
  font-size: var(--fs-ui);
  color: var(--text);
}

.audit-field input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
}

.audit-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
}

.audit-consent input {
  flex: none;
  margin-top: 3px;
}

.audit-lead-form > .btn {
  margin-top: var(--sp-6);
}

.audit-lead-status {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--muted-2);
  min-height: 1em;
}

.audit-lead-status.is-error {
  color: #b3312f;
}

@media (max-width: 900px) {
  .audit-det-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .audit-scanbar {
    flex-direction: column;
  }

  .audit-capabilities {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-det-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-gate {
    padding: var(--sp-6) var(--sp-5);
  }

  .audit-lead-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Shopify dev page: custom hero ---------------------------------------
   Replaces the generic page-hero with a two-column layout carrying a
   layered browser-frame collage, so the page opens on the work itself. */

.shop-hero {
  position: relative;
  padding-top: 52px;
  padding-bottom: 56px;
  overflow: hidden;
}

/* Dark hero variant: same premium black-to-charcoal gradient + soft
   coral/amber glow as the homepage hero, instead of flat black or the
   navy ink-2. Scoped to .shop-hero only so the homepage hero (which
   already carries this look via its own .hero rule) isn't double-applied. */
.band--ink.shop-hero {
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(56, 130, 246, 0.24), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(45, 212, 191, 0.16), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(56, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #0d0d0d 0%, #252525 100%);
}

.band--ink.shop-hero::after {
  content: "";
  position: absolute;
  inset: -40px -40px 0;
  background-image:
    linear-gradient(rgba(242, 239, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 232, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 20%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Portfolio hero: flat deep forest green, grid overlay kept. */
#portfolio-hero.band--ink {
  background: #0f2419;
}

/* Portfolio project pages: a warm cream/coral-tinted hero instead of the
   plain white-to-bone gradient every other interior page uses, so it still
   reads as a distinct band without going dark. Title width widened off the
   base 15ch so a long project title reads as two lines instead of three
   or four. */
.portfolio-project-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 6% -10%, rgba(236, 106, 76, 0.16), transparent 60%),
    radial-gradient(900px 620px at 100% 0%, rgba(244, 162, 60, 0.22), transparent 62%),
    linear-gradient(160deg, #fdf5ed 0%, #f8e9da 100%);
  border-bottom: 1px solid var(--line);
}

.portfolio-project-page .page-hero::after {
  content: "";
  position: absolute;
  inset: -40px -40px 0;
  background-image:
    linear-gradient(rgba(21, 32, 59, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 59, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 20%, #000 0%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-project-page .page-hero .wrap {
  position: relative;
  z-index: 1;
}

.portfolio-project-page .page-hero h1 {
  max-width: 32ch;
}

/* "What we built" as a checklist grid instead of a plain bullet list. */
.built-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.built-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bone-2);
}

.built-check {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--coral-deep);
}

.built-item p {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .built-grid {
    grid-template-columns: 1fr;
  }
}

/* Generic full-width boxed section below the split (article + aside),
   e.g. the project's Results stats. */
.project-detail {
  margin-top: var(--sp-6);
  padding: var(--sp-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-2);
}

.project-detail h2 {
  margin-top: 0;
}

.project-detail p {
  margin-top: var(--sp-3);
  max-width: 72ch;
}

/* More work: related-project cards at the foot of a project page, reusing
   the portfolio index's own card grid. */
.more-projects {
  margin-top: var(--sp-8);
}

/* Reviews section on Shopify & WooCommerce: same dark gradient treatment
   as the hero, scoped by id since both pages share this markup. Review
   cards need no extra rule — .review already uses var(--bone-card),
   which .band--ink already repoints to --ink-3, so they go dark for free. */
.band--ink#reviews {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(56, 130, 246, 0.24), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(45, 212, 191, 0.16), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(56, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #000 0%, #1a1a1a 100%);
}

/* Review cards: dark gradient instead of the flat --ink-3 that .band--ink
   would give them for free, so each card has some depth against the
   section's own gradient bg. Shared by Shopify & WooCommerce. */
.band--ink#reviews .review {
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 100%);
}

/* Review highlight was tuned for the light card (amber on white); on the
   dark card it reads muddy against --ink-3. Cool blue instead, matching
   the section's own accent glow. */
.band--ink#reviews .review-body mark {
  background: rgba(56, 130, 246, 0.35);
  color: var(--on-dark);
}

/* .crumbs uses --muted-2 and .shop-hero-chip uses --ink, neither of which
   .band--ink redefines, so both need explicit dark-bg colors here or
   they render unreadable. */
.band--ink.shop-hero .crumbs {
  color: var(--on-dark-mut);
}

.band--ink.shop-hero .shop-hero-chip {
  color: var(--ink-2);
}

/* Keep the floating metric card light regardless of hero theme, so it
   pops as an overlay against the photo instead of blending into the
   dark hero (--bone-card resolves to --ink-3 under .band--ink, which
   reads too close to the --ink-2 hero background). */
.shop-hero .metric-card {
  background: #fff;
  border-color: rgba(21, 32, 59, 0.12);
}

.shop-hero .mc-head {
  color: var(--muted-2);
}

.shop-hero .mc-value {
  color: var(--ink-2);
}

/* Shopify & WooCommerce hero only: taller than the base .shop-hero
   (Portfolio hub keeps the shorter default). */
.shop-hero--tall {
  padding-top: 100px;
  padding-bottom: 104px;
}

/* Client marquee inside the hero: .label uses --muted-2, which .band--ink
   doesn't redefine, so it needs an explicit dark-bg color here. */
.band--ink.shop-hero .label {
  color: var(--on-dark-mut);
}

.shop-hero-clients {
  grid-column: 1 / -1;
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.shop-hero-clients .label {
  display: block;
  margin-bottom: var(--sp-4);
}

/* Monogram badge instead of the base dot icon, since these are fictional
   placeholder clients with no real logo to show. */
.shop-hero-clients .marquee-track .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shop-hero-clients .marquee-track .wordmark::before {
  content: attr(data-mark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--on-dark);
}

.shop-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: var(--sp-7);
  align-items: center;
}

.shop-hero h1 {
  margin-top: var(--sp-4);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.shop-hero .lead {
  margin-top: var(--sp-4);
  max-width: 54ch;
}

.shop-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.shop-hero-stack {
  position: relative;
  height: 420px;
}

/* ---- Browser-frame mockup card -------------------------------------------
   A reusable chrome shell for placeholder or real storefront screenshots:
   traffic-light dots, a fake address pill, and a screen area that takes
   either an <img> or a gradient placeholder with a caption. */

.browser-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-2);
}

.browser-frame-dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.browser-frame-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.browser-frame-url {
  flex: 1;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bone-card);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--sp-5);
  background:
    repeating-linear-gradient(135deg, rgba(21, 32, 59, 0.035) 0px, rgba(21, 32, 59, 0.035) 1px, transparent 1px, transparent 14px),
    linear-gradient(160deg, var(--bone-2) 0%, #ecdfc9 100%);
  text-align: center;
}

.browser-frame-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.browser-frame-screen-label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Stacked collage inside the hero: two frames overlapping, offset and
   gently rotated so it reads as a deck of real work, not one screenshot. */
.shop-hero-stack .browser-frame,
.shop-hero-stack .portfolio-shot {
  position: absolute;
  width: 78%;
}

.shop-hero-stack .browser-frame:nth-child(1),
.shop-hero-stack .portfolio-shot:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-4deg);
}

.shop-hero-stack .browser-frame:nth-child(2),
.shop-hero-stack .portfolio-shot:nth-child(2) {
  bottom: 0;
  right: 0;
  z-index: 2;
  transform: rotate(3deg);
  box-shadow: var(--shadow-lg);
}

.shop-hero-chip {
  position: absolute;
  z-index: 3;
  top: 40%;
  left: -14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
}

.shop-hero-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pos);
}

/* ---- Portfolio slider ------------------------------------------------------
   Same duplicated-track technique as the client marquee: the track is
   written out twice and translated by exactly -50%, so the loop has no
   visible seam. Slow and continuous, pauses on hover so a card can be read. */

.portfolio-slider {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

/* Homepage Recent Work: full-bleed edge to edge, not boxed in the wrap. */
#portfolio .portfolio-slider {
  max-width: none;
  padding-inline: 0;
}

/* Static grid, no motion, for the portfolio hub. */
.portfolio-grid-static {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 52px;
  column-gap: 26px;
}

.portfolio-grid-static .portfolio-card {
  width: auto;
}

@media (max-width: 900px) {
  .portfolio-grid-static {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .portfolio-grid-static {
    grid-template-columns: minmax(0, 1fr);
  }
}

.portfolio-track {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: portfolio-scroll 70s linear infinite;
}

.portfolio-slider:hover .portfolio-track,
.portfolio-slider:focus-within .portfolio-track {
  animation-play-state: paused;
}

@keyframes portfolio-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.portfolio-card {
  flex: none;
  width: 420px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.portfolio-card .browser-frame,
.portfolio-card .portfolio-shot {
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}

.portfolio-card:hover .browser-frame,
.portfolio-card:hover .portfolio-shot {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Real photo/mockup: the image already carries its own device chrome
   (laptop bezel, desk scene), so it gets a plain rounded frame instead of
   the synthetic browser toolbar used on placeholder cards. */
.portfolio-shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.portfolio-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .portfolio-slider {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.portfolio-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* ---- Client video (single embed) --------------------------------------- */

.video-single {
  max-width: 840px;
  margin-inline: auto;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Static thumbnail styled to read as a paused video, YouTube-red play button
   centered on top. */
.video-embed--thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-embed--thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.video-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  translate: -50% -50%;
}

.video-embed-play svg {
  translate: 3px 0;
}

.portfolio-name {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
}

.portfolio-tag {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-deep);
  white-space: nowrap;
}

.portfolio-card p {
  margin-top: 6px;
  font-size: var(--fs-ui);
  color: var(--muted);
}

/* ---- CRO design principles -------------------------------------------- */

.cro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cro-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.cro-item .card-icon {
  margin-bottom: 0;
}

.cro-item h3 {
  font-size: var(--fs-ui);
}

.cro-item p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

@media (max-width: 980px) {
  .shop-hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .cro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cro-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-hero-chip {
    left: 0;
    font-size: 11px;
    padding: 8px 12px;
  }

  .portfolio-card {
    width: 300px;
  }
}

/* Shopify & WooCommerce hero only: shorter photo stage, portrait frame,
   than the homepage default. Compound selectors so they win on
   specificity regardless of source order. */
.hero-stage--short.hero-stage {
  height: 460px;
}

.hero-photo-frame--portrait.hero-photo-frame {
  width: 380px;
  height: 460px;
}

/* Mobile: the fixed 380px frame overflows a single-column wrap narrower
   than that. Placed after the base rule (same specificity) so it wins. */
@media (max-width: 420px) {
  .hero-stage--short.hero-stage {
    height: auto;
  }

  .hero-photo-frame--portrait.hero-photo-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 380 / 460;
  }
}

/* About page hero only: dark gradient, same warm coral/amber glow as the
   homepage hero. Scoped via body class rather than editing the shared
   page-hero partial, which every other interior page also uses. */
.about-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(236, 106, 76, 0.28), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(244, 162, 60, 0.40), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(244, 162, 60, 0.20), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(236, 106, 76, 0.14), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #313131 100%);
  color: var(--on-dark);
  --text: var(--on-dark);
  --muted: var(--on-dark-mut);
  --ink: var(--on-dark);
  --line: var(--line-ink);
  --bone-card: var(--ink-3);
  border-bottom: none;
}

.about-page .page-hero h1 {
  color: var(--on-dark);
}

.about-page .page-hero .crumbs {
  color: var(--on-dark-mut);
}

/* Blog page hero only: dark gradient too, but the cool blue/teal glow
   (Shopify & WooCommerce family) instead of About's warm coral/amber, so
   the two dark heroes read as distinct. */
.blog-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(56, 130, 246, 0.24), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(45, 212, 191, 0.16), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(56, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #313131 100%);
  color: var(--on-dark);
  --text: var(--on-dark);
  --muted: var(--on-dark-mut);
  --ink: var(--on-dark);
  --line: var(--line-ink);
  --bone-card: var(--ink-3);
  border-bottom: none;
}

.blog-page .page-hero h1 {
  color: var(--on-dark);
}

.blog-page .page-hero .crumbs {
  color: var(--on-dark-mut);
}

/* About, blog, blog-post & portfolio pages: smaller, minimal version of
   the shared CTA panel (every other page keeps the full-size default). */
.about-page .final-panel,
.blog-page .final-panel,
.blog-post-page .final-panel,
.portfolio-page .final-panel {
  padding: clamp(28px, 4vw, 40px);
}

.about-page .final-panel::before,
.blog-page .final-panel::before,
.blog-post-page .final-panel::before,
.portfolio-page .final-panel::before {
  display: none;
}

.about-page .final-panel h2,
.blog-page .final-panel h2,
.blog-post-page .final-panel h2,
.portfolio-page .final-panel h2 {
  max-width: 480px;
  font-size: var(--fs-h4);
}

.about-page .final-panel .lead,
.blog-page .final-panel .lead,
.blog-post-page .final-panel .lead,
.portfolio-page .final-panel .lead {
  max-width: 480px;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

.about-page .final-actions,
.blog-page .final-actions,
.blog-post-page .final-actions,
.portfolio-page .final-actions {
  margin-top: var(--sp-5);
  gap: var(--sp-3);
}

.about-page .final-actions .btn,
.blog-page .final-actions .btn,
.blog-post-page .final-actions .btn,
.portfolio-page .final-actions .btn {
  padding: 12px 20px;
  font-size: var(--fs-sm);
}

.about-page .final-note,
.blog-page .final-note,
.blog-post-page .final-note,
.portfolio-page .final-note {
  margin-top: var(--sp-4);
}

/* Blog post pages only: center the article column instead of leaving it
   flush-left in the wide .wrap (the cover photo stays full-width above it). */
.blog-post-page .prose {
  margin-inline: auto;
}

.post-byline {
  max-width: 68ch;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
}

/* Blog post pages: centered hero, title widened off the base 15ch so a
   long post title reads as ~2 lines instead of 3-4. Same pattern as the
   existing #audit centered hero. Bg matches the blog index hero exactly
   (dark blue/teal gradient), since a post is a child of that section. */
.blog-post-page .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(56, 130, 246, 0.24), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(45, 212, 191, 0.16), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(56, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #313131 100%);
  color: var(--on-dark);
  --text: var(--on-dark);
  --muted: var(--on-dark-mut);
  --ink: var(--on-dark);
  --line: var(--line-ink);
  --bone-card: var(--ink-3);
  border-bottom: none;
}

.blog-post-page .page-hero .wrap {
  text-align: center;
}

.blog-post-page .page-hero .crumbs {
  justify-content: center;
  color: var(--on-dark-mut);
}

.blog-post-page .page-hero h1 {
  max-width: 1000px;
  margin-inline: auto;
  color: var(--on-dark);
}

.blog-post-page .page-hero .lead {
  max-width: 800px;
  margin-inline: auto;
}

/* Blog post cover photo now sits inside .prose (after the opening
   paragraphs, not before them), so it inherits the 68ch content width
   automatically; only the extra bottom spacing needs to be set here. */
.blog-post-page .blog-post-cover {
  margin-bottom: var(--band-sm);
}

/* In-content illustration images: base .illus-figure zeroes the top
   margin (fine on service pages, where it follows a heading), but inside
   a blog article it sits flush against the paragraph above it. */
.blog-post-page .illus-figure {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}

/* ---- Meta Pixel & CAPI page: dark hero with actions + stat badge ------- */

.ct-hero-page .page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 96px;
  background:
    radial-gradient(1100px 640px at 4% -14%, rgba(56, 130, 246, 0.24), transparent 58%),
    radial-gradient(950px 680px at 100% -8%, rgba(45, 212, 191, 0.32), transparent 62%),
    radial-gradient(950px 760px at 102% 62%, rgba(45, 212, 191, 0.16), transparent 66%),
    radial-gradient(1000px 700px at 85% 110%, rgba(56, 130, 246, 0.12), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #313131 100%);
  color: var(--on-dark);
  --text: var(--on-dark);
  --muted: var(--on-dark-mut);
  --ink: var(--on-dark);
  --line: var(--line-ink);
  --bone-card: var(--ink-3);
  border-bottom: none;
}

.ct-hero-page .page-hero .crumbs {
  color: var(--on-dark-mut);
}

.ct-hero-page .page-hero h1 {
  color: var(--on-dark);
}

.meta-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.ct-hero-page .page-hero .btn-primary {
  background: #fff;
  color: #000;
}

.ct-hero-page .page-hero .btn-primary:hover {
  background: #fff;
  box-shadow: 0 14px 28px -14px rgba(255, 255, 255, 0.3);
}

.meta-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--sp-7);
  align-items: center;
}

.meta-hero-visual {
  position: relative;
}

.meta-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* .shop-hero-clients spans the full hero width as a third grid row; its
   .label uses --muted-2, which this page's dark remap doesn't cover. */
.ct-hero-page .page-hero .shop-hero-clients .label {
  color: var(--on-dark-mut);
}

@media (max-width: 980px) {
  .meta-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .meta-hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }
}

.badge-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Scroll cue under the hero video, linking straight to #cost. Classic
   "scroll mouse" glyph: a dot travels down inside the outline, on loop. */
.scroll-cue {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: var(--sp-7) auto 0;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue-dot {
  animation: scroll-cue-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* "What it costs you": no card boxes, no section tint — three columns
   split by a hairline rule, with a large low-opacity ordinal number
   behind each one instead of a boxed icon card. */
.cost-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8);
}

.cost-col {
  position: relative;
  padding-top: var(--sp-4);
  border-top: 2px solid var(--ink);
}

.cost-index {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 0;
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.cost-col .card-icon {
  position: relative;
  z-index: 1;
}

.cost-col h3 {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-4);
}

.cost-col p {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (max-width: 820px) {
  .cost-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }
}

/* Lighter than the shared --bone-2 alt-band tint, so it reads as barely
   there rather than a full grey block. */
#cost.band--alt {
  background: #f9f9f9;
}

/* "What we set up": centered, scroll-driven. The section is pinned
   (position: sticky) while the page scrolls past a tall spacer wrapper;
   scroll progress through that wrapper (native wheel/trackpad, no visible
   scrollbar) picks which colorful image + text panel is active, via
   scroll math in main.js. */
.fix-scroll {
  position: relative;
  height: 360vh;
}

.fix-scroll-sticky {
  position: sticky;
  top: var(--nav-h);
  padding-block: var(--sp-5);
}

.fix-scroll-sticky .wrap {
  max-width: 840px;
}

.fix-scroll-visual {
  position: relative;
  aspect-ratio: 520 / 255;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fix-scroll-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.fix-scroll-img.is-active {
  opacity: 1;
}

.fix-scroll-panel {
  position: relative;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  min-height: 230px;
  text-align: center;
}

.fix-scroll-item {
  position: absolute;
  inset: var(--sp-5) 0 0;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}

.fix-scroll-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fix-scroll-index {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--coral-ink);
  letter-spacing: var(--ls-lab);
}

.fix-scroll-item h3 {
  margin-top: var(--sp-2);
  font-size: var(--fs-h3);
}

.fix-scroll-item p {
  max-width: 760px;
  margin: var(--sp-3) auto 0;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

@media (max-width: 700px) {
  /* Pinning six panels over a phone-height viewport reads as broken, not
     smooth — fall back to a plain stacked list, no sticky, no spacer. */
  .fix-scroll {
    height: auto;
  }

  .fix-scroll-sticky {
    position: static;
  }

  .fix-scroll-visual {
    display: none;
  }

  .fix-scroll-panel {
    min-height: 0;
    padding-top: 0;
    border-top: 0;
    text-align: left;
  }

  .fix-scroll-item {
    position: static;
    opacity: 1;
    pointer-events: auto;
    padding-block: var(--sp-5);
    border-top: 1px solid var(--line);
  }

  .fix-scroll-item p {
    margin-inline: 0;
  }

  .fix-scroll-item:last-child {
    border-bottom: 1px solid var(--line);
  }
}

.fix-deliverable {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-4);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(34, 167, 106, 0.12);
  color: var(--pos);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ---- "Start a project" modal -------------------------------------------- */

.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(21, 24, 32, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.pm-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.pm-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-menu) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px var(--gutter);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.pm-modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pm-panel {
  width: 100%;
  max-width: 660px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bone-card);
  box-shadow: 0 40px 64px -24px rgba(21, 24, 32, 0.28);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s var(--ease);
}

.pm-modal[data-open="true"] .pm-panel {
  transform: none;
}

.pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
}

.pm-head span {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
}

.pm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  line-height: 0;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pm-close svg {
  display: block;
}

.pm-close:hover {
  background: var(--bone-2);
  color: var(--ink);
}

.pm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

/* Honeypot: off-screen (not display:none, which some bots specifically
   check for and skip) and out of the tab order. Real visitors never see or
   reach it; anything that fills it gets silently dropped server-side. */
.pm-hp,
.cf-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

.pm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-field--full {
  grid-column: 1 / -1;
}

.pm-field-row {
  display: contents;
}

.pm-time-group {
  display: flex;
  gap: 8px;
}

.pm-time-group #pm-time {
  flex: 1.4;
  min-width: 0;
}

.pm-time-group #pm-timezone {
  flex: 1;
  min-width: 0;
}

.pm-field label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.pm-control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bone-2);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-family: inherit;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pm-control::placeholder {
  color: var(--muted-2);
}

.pm-control:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(236, 106, 76, 0.14);
}

textarea.pm-control {
  resize: vertical;
  min-height: 52px;
}

.pm-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin-top: -4px;
  font-size: var(--fs-sm);
  text-align: center;
}

.pm-status.is-error {
  color: #d64545;
}

.pm-status.is-success {
  color: #1a9160;
}

#pmSubmit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
}

@media (max-width: 620px) {
  .pm-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .pm-modal {
    align-items: flex-start;
    padding-top: 24px;
  }
}
