/* ==========================================================================
   CRUNCH42 — style.css
   Dark-first cinematic single page. Tokens per brand spec.
   ========================================================================== */

:root {
  /* Color */
  --navy:        #10193A;
  --navy-2:      #1B2A5E;
  --blue:        #2E5BFF;
  --blue-deep:   #1E3FBF;
  --coral:       #FF6A45;
  --amber:       #FFB020;
  /* Darkened from the site's original #49AB7A sage so white button text clears
     4.5:1 (2.84:1 at the original lightness). Same hue/saturation, just deeper. */
  --sage:        #357F59;
  --sage-active: #2C6B4A;
  --ink:         #43301F;
  --slate:       #5B6474;
  --mist:        #E6E9F0;
  --cloud:       #F6F8FC;
  --white:       #FFFFFF;
  --muted-dark:  #b9c2e0;   /* muted text on navy */

  /* Accessible variants. --slate clears 4.5:1 on the light sections but only
     manages 2.88:1 on navy, and --amber only 1.72:1 on cloud. These are the
     same roles retuned for the background they actually sit on. */
  --slate-on-navy: #8A93A6; /* muted text on navy      — 5.6:1 */
  --amber-on-light: #8A5A00;/* amber accent on cloud   — 5.3:1 */
  --hairline: rgba(255,255,255,.38); /* control borders on navy — 3.4:1 */

  /* Shape & depth */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 28px rgba(16,24,40,.08);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Keeps a keyboard-focused element clear of the fixed nav. Without it,
   Shift+Tab scrolls the target to y=0 and the header sits on top of it
   (WCAG 2.2 SC 2.4.11 Focus Not Obscured). Nav is 63px tall. */
html { scroll-behavior: auto; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--coral); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--coral); color: var(--navy);
  padding: 10px 18px; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* The nav shares the page gutter, so it shares the rule. Keeping it separate
   is how it drifted to 94vw/1280px in the first place. */
.container,
.nav__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
/* Phones get a fixed 15px gutter. As a percentage it drifted with the device:
   12.8px on a 320 screen, 17.2px on a 430. */
@media (max-width: 640px) {
  .container,
  .nav__inner { width: calc(100% - 30px); }
}

.coral { color: var(--coral); }
.amber { color: var(--amber); }
/* Amber is a 1.72:1 smear on the light sections; use the deep variant there. */
.scene--light .amber { color: var(--amber-on-light); }
.mono  { font-family: var(--font-mono); }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 2%); }
  40%  { transform: translate(1%, -1%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 150; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--coral));
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem);
  z-index: 140;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted-dark);
  background: rgba(16,25,58,.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  /* Hidden until scrolled; JS flips .to-top--on */
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              visibility .45s, color .25s, border-color .25s, background .25s;
}
.to-top--on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover {
  color: var(--white);
  border-color: var(--coral);
  background: rgba(27,42,94,.85);
}
.to-top:active { transform: translateY(2px); }
.to-top svg { display: block; transition: transform .3s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }

/* Sits above the thumb-reachable carousel controls on small screens */
@media (max-width: 640px) {
  .to-top { width: 44px; height: 44px; }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 180;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s,
              background-color .25s var(--ease);
  display: none;
  align-items: center; justify-content: center;
  mix-blend-mode: normal;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
}
/* The dot is invisible until the pointer is over something interactive: only the
   grown state ever shows. Position keeps tracking while hidden, so it fades in
   already in the right place. */
.cursor--grown {
  width: 56px; height: 56px;
  background: rgba(255,106,69,.45);
  opacity: 1;
}
.cursor__label {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em;
  color: var(--navy); text-transform: uppercase;
  opacity: 0; transition: opacity .2s;
}
.cursor--grown .cursor__label { opacity: 1; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 1.05rem; font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--blue-deep); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.section-title--ink { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; line-height: 1;
  padding: 1em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
  will-change: transform;
  min-height: 44px;
}
.btn--sm { padding: .7em 1.3em; font-size: .88rem; }
.btn--primary {
  background: var(--sage); color: var(--white);
  text-transform: uppercase;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(53,127,89,.35);
}
.btn--primary:active { background: var(--sage-active); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.35);
  text-transform: uppercase;
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-3px); }
.btn--ghost:active { border-color: var(--blue-deep); color: var(--blue-deep); }
.btn__chev, .btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__chev, .btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Links ---------- */
.link {
  color: var(--coral); text-decoration: none;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1.5px; }

/* ==========================================================================
   STICKY NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: transform .5s var(--ease), background .4s;
  background: rgba(16,25,58,.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding .4s var(--ease);
}
.nav--slim .nav__inner { padding-block: .55rem; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.nav__wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--white); letter-spacing: -0.02em;
}
.nav__wordmark em { font-style: normal; color: var(--coral); }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-size: .92rem; font-weight: 500; text-decoration: none;
  color: var(--muted-dark);
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px;
  transition: color .25s, background-size .35s var(--ease);
  padding-block: 4px;
}
.nav__links a:hover { color: var(--white); background-size: 100% 1.5px; }
@media (max-width: 860px) {
  .nav__links { display: none; }
}
/* Nav CTA label swap. Both labels are in the markup and toggled with
   display:none, which keeps the inactive one out of the accessibility tree, so
   a screen reader announces one label rather than "Get in touch Contact". */
.nav__cta-short { display: none; }
@media (max-width: 640px) {
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}

/* ==========================================================================
   SCENES — shared
   ========================================================================== */
.scene { position: relative; }
.scene--light { background: var(--cloud); color: var(--ink); }

/* Act cross-blends: soften dark↔light scene cuts with a tall gradient.
   Pricing is the first dark scene after the light act, so it carries the blend. */
.about::before,
.pricing::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: clamp(90px, 18vh, 200px);
  pointer-events: none;
}
.about::before   { background: linear-gradient(180deg, var(--navy), transparent); opacity: .16; }
.pricing::before { background: linear-gradient(180deg, var(--cloud), transparent); opacity: .10; }

.ghost42 {
  position: absolute;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20rem, 55vw, 46rem);
  line-height: .8; letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(46,91,255,.18);
  user-select: none; pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SCENE 01 · HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 130vw; height: 90vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(27,42,94,.9) 0%, rgba(46,91,255,.12) 40%, transparent 70%);
}
.hero__ghost42 {
  right: -6vw; bottom: -14vw;
  color: rgba(27,42,94,.55);
  -webkit-text-stroke: 0;
}
.hero__content { position: relative; z-index: 2; }
.hero__eyebrow { opacity: 0; }
.hero__headline {
  font-family: var(--font-display); font-weight: 700;
  /* Was a flat 4rem, the only unclamped heading on the site, which left a 64px
     h1 far too wide for a phone column. */
  font-size: clamp(2.75rem, 12vw, 4rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero__headline .line { display: block; overflow: hidden; }
/* No nowrap on the em: it can only ever force an overflow. Below ~654px the
   phrase was wider than the content column and .hero clipped it, so "I build."
   vanished off the right edge. */
.hero__headline em { font-style: normal; color: var(--amber); }
/* Instead, keep each half unbreakable so the line can only break between them:
   "You market," / "I build." Relying on the font size to land the break in the
   right spot worked in a 56-58px window only, and broke either side of it. */
.hero__headline .nb { white-space: nowrap; }
.hero__headline .word { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 46ch; color: var(--muted-dark);
  margin-bottom: 2.4rem; opacity: 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; opacity: 0; }
.terminal {
  font-family: var(--font-mono); font-size: .85rem;
  color: var(--muted-dark);
  display: flex; align-items: baseline; gap: .6em;
  opacity: 0;
}
.terminal__prompt { color: var(--amber); }
.terminal__text .ok { color: var(--amber); }
.terminal__text .num { color: var(--coral); }
.terminal__caret {
  width: 8px; height: 1.05em; background: var(--coral);
  display: inline-block; transform: translateY(2px);
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  z-index: 2;
}
.scroll-cue__line {
  width: 1.5px; height: 48px; overflow: hidden; position: relative;
  background: rgba(255,255,255,.12);
}
.scroll-cue__line::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--coral);
  animation: cueDrop 1.8s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { top: -50%; } 70%, 100% { top: 110%; }
}
.scroll-cue__label {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--slate-on-navy);
}
/* The hero content stack runs taller than the viewport on a phone, so the cue
   sits ~100px below the fold and is never seen. Nothing to gain by keeping it,
   and swiping is the obvious move on touch anyway. */
@media (max-width: 640px) {
  .scroll-cue { display: none; }
}

/* ==========================================================================
   SCENE 02 · POSITIONING STATEMENT
   ========================================================================== */
.statement {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 20vh 0;
}
.statement__line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--amber);
}
.statement__line .word { display: inline-block; opacity: .12; will-change: opacity; }
/* The payoff phrase stays white so it separates from the amber line. The swoosh
   sets its own stroke, so it keeps the coral. */
.statement__underline-wrap { position: relative; display: inline; color: var(--white); }
/* splitWords() makes "So" and "don't." separate inline-blocks, so a phone column
   happily breaks between them. Give the payoff its own line instead.
   fit-content, not a plain block: .underline-svg is width:100% of this box, so a
   full-width wrap would drag the swoosh across the whole column. */
@media (max-width: 640px) {
  .statement__underline-wrap {
    display: block; width: fit-content;
    white-space: nowrap;
    margin-top: 1.12em;   /* one line-height, so it reads as a blank line */
    margin-left: auto;    /* fit-content + auto left margin = flush right */
    /* margin, not padding: .underline-svg is width:100% of this box, so padding
       would widen it and drag the swoosh out past the "t". */
    margin-right: .5em;
  }
}
.underline-svg {
  position: absolute; left: 0; bottom: -.18em;
  width: 100%; height: .22em; overflow: visible;
}

/* ==========================================================================
   SCENE 03 · SERVICES
   ========================================================================== */
.services { background: var(--navy); }
.services__pin {
  /* Exactly one screen while pinned, so the card track never runs past the fold.
     Top padding clears the fixed nav; the rest flexes with viewport height. */
  padding: clamp(4.5rem, 9vh, 14vh) 0 0;
  display: flex; flex-direction: column; justify-content: center;
  height: 100vh;
  overflow: hidden;
}
.services__head { margin-bottom: clamp(1rem, 3vh, 4rem); }
/* On phones the two halves of the heading sit tight after the <br>; give the
   second sentence room. inline-block rather than block, so the <br> before it
   does not also leave an empty line box behind. */
@media (max-width: 640px) {
  /* Matches the span by position, not by colour class: this rule previously
     targeted .coral and silently stopped applying when the span became .amber. */
  .services__head .section-title span { display: inline-block; margin-top: .8em; }
}
.services__track {
  display: flex; gap: 2rem;
  padding-left: max(4vw, calc((100vw - 1200px) / 2));
  padding-right: 8vw;
  width: max-content;
  margin-bottom: 15px;   /* breathing room under the cards while pinned */
  will-change: transform;
  cursor: grab;
}
.services__track--grabbing { cursor: grabbing; user-select: none; }
.services__track--grabbing .service-card { -webkit-user-drag: none; }
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-card {
  position: relative;
  width: clamp(280px, 30vw, 420px);
  padding: 2.6rem 2.2rem 2.4rem;
  background: linear-gradient(160deg, var(--navy-2) 0%, rgba(27,42,94,.4) 100%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
  overflow: hidden;
}
.service-card::after {
  /* coral edge glow on hover */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px solid var(--coral);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,.35), 0 0 40px rgba(255,106,69,.12);
}
.service-card:hover::after { opacity: .8; }
.service-card__index {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  color: var(--slate-on-navy);
}
.service-card__glyph {
  display: block;
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  color: var(--blue);
  margin: 1.6rem 0 1.2rem;
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  letter-spacing: -0.02em; margin-bottom: .7rem;
}
.service-card p { color: var(--muted-dark); font-size: 1rem; }
.services__lane {
  /* Sits after the pinned scene now, so it carries its own top/bottom room */
  margin: 4rem 0 10vh; color: var(--muted-dark);
  max-width: 62ch; font-size: 1rem;
}

/* Mobile: stacked cards, no pin */
@media (max-width: 860px) {
  .services__pin { height: auto; min-height: 0; padding: 5rem 0; }
  .services__track {
    width: auto; flex-direction: column;
    padding-inline: 4vw;
  }
  .service-card { width: 100%; }
  .services__lane { margin-top: 2.5rem; }
}

/* ==========================================================================
   SCENE 04 · WHY
   ========================================================================== */
.why {
  padding: 16vh 0 12vh;
  background: linear-gradient(180deg, var(--navy) 0%, #0c1330 100%);
}
.why__list {
  list-style: none;
  margin-top: 4rem;
  display: flex; flex-direction: column;
}
.why__item {
  display: flex; gap: 2.5rem; align-items: baseline;
  padding: 2.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.why__item:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.why__num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  /* Original rgba(46,91,255,.55) (--blue at 55%) composited to ~1.9:1 on this
     section's dark gradient — under the 3:1 large-text minimum. Lightened the
     tint so the same translucent look clears it, at 3.58:1. */
  color: rgba(147,168,255,.6);
  min-width: 2ch;
}
.why__item h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; margin-bottom: .4rem;
}
.why__item p { color: var(--muted-dark); max-width: 56ch; }

.counters {
  display: flex; flex-wrap: wrap; gap: 3.5rem;
  margin-top: 5rem;
}
/* Tablet and up: even columns spanning the full content width */
@media (min-width: 641px) {
  .counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}
/* Label above the number. column-reverse rather than reordered markup, so a
   screen reader still hears "25+ years" and not "years 25+".
   The labels sit in a fixed-height band, otherwise a two-line one ("point of
   contact" on narrow columns) would push its number out of line with the rest. */
.counter { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.counter__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em; line-height: 1;
}
.counter__label {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate-on-navy);
  margin-bottom: .5rem;              /* now the gap down to the number */
  min-height: 3.2em;                 /* two lines, so the numbers stay level */
  display: flex; align-items: flex-end;
}

@media (max-width: 640px) {
  .why__item { gap: 1.4rem; }
  /* Two even columns so the items line up instead of drifting with their own
     widths, which left "since 2000" stranded mid-row. */
  .counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.75rem 2.5rem;
  }
}

/* ==========================================================================
   SCENE 05 · ABOUT (light)
   ========================================================================== */
.about { padding: 14vh 0; }
.about__grid {
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.about__portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .8s var(--ease), transform .8s var(--ease);
  will-change: transform;
}
.about__portrait:hover .about__portrait-frame img {
  /* subtle navy→coral duotone flirt on hover */
  filter: grayscale(1) contrast(1.05) sepia(.35) hue-rotate(-25deg) saturate(1.6);
  transform: scale(1.03);
}
.about__portrait-fallback {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.about__portrait-fallback span {
  font-family: var(--font-display); font-weight: 700; font-size: 5rem;
  color: rgba(255,255,255,.25);
}
.about__portrait.no-photo img { display: none; }
.about__portrait.no-photo .about__portrait-fallback { display: flex; }
.about__caption {
  font-size: .7rem; letter-spacing: .18em; color: var(--slate);
  margin-top: 1rem;
}
.about__copy p { color: var(--ink); margin-bottom: 1.2rem; max-width: 58ch; }
.pullquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em; line-height: 1.25;
  color: var(--coral);
  border-left: 3px solid var(--coral);
  padding-left: 1.4rem;
  margin: 2.2rem 0;
}
.about__promise { color: var(--slate) !important; font-size: 1rem; }
.about__promise .mono { font-size: .75rem; letter-spacing: .14em; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 380px; }
}

/* ==========================================================================
   SCENE 06 · TESTIMONIALS
   ========================================================================== */
.proof { padding: 14vh 0 16vh; }
.proof__note { color: var(--slate); max-width: 60ch; margin-bottom: 4rem; }

/* Match the gutters the rest of the page content uses (see .container) */
.carousel {
  position: relative;
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.carousel__stage {
  position: relative;
  height: 400px;
  overflow: hidden;
}
/* While a drag is live, stop the gesture from selecting the quote text. */
.carousel__stage--dragging { user-select: none; -webkit-user-select: none; }
.carousel__stage--dragging .tcard { cursor: grabbing; }
.tcard {
  position: absolute; top: 50%; left: 50%;
  width: min(560px, 84vw);
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.8rem 2.6rem 2.4rem;
  will-change: transform, filter, opacity;
  cursor: grab;
  /* pan-y keeps the card's own vertical scroll and the page scroll working on
     touch, while leaving horizontal gestures to the drag handler. */
  touch-action: pan-y;
  /* Long testimonials scroll inside the card rather than overflowing the stage */
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* A neighbour's outer edge lands at 0.9x the card width from centre (the
   half-width offset plus 0.4 for the 0.8 scale). Cap the card above mobile so
   that edge stays inside the stage and the blurred cards keep a gutter too.
   Must come after the base .tcard rule: same specificity, so order decides. */
@media (min-width: 641px) {
  .tcard { width: min(560px, 48vw); }
}
.tcard__quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.4rem; line-height: .5;
  color: var(--coral);
  display: block; margin-bottom: 1.2rem;
}
.tcard blockquote {
  font-size: 1.12rem; line-height: 1.6; color: var(--ink);
  margin-bottom: 1.4rem;
}
.tcard figcaption {
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--slate); letter-spacing: .04em;
}
.tcard figcaption strong { color: var(--navy); }
.tcard__progress {
  position: absolute; left: 2.6rem; right: 2.6rem; bottom: 1.2rem;
  height: 2px; background: var(--mist); border-radius: 2px;
  overflow: hidden; opacity: 0; transition: opacity .3s;
}
.tcard--current .tcard__progress { opacity: 1; }
.tcard__progress span {
  display: block; height: 100%; width: 0;
  background: var(--coral);
}

.carousel__controls {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 2.5rem;
}
/* --mist gave the ring only 1.14:1 against the cloud background; the boundary
   of a control has to clear 3:1 (SC 1.4.11). */
.ctrl {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid #7C8698;
  background: var(--white); color: var(--navy);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), border-color .25s, background .25s, color .25s;
}
.ctrl:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-3px); }
.ctrl:active { background: var(--coral); color: var(--white); transform: translateY(-1px); }
.ctrl__pause-icon {
  width: 12px; height: 14px;
  border-left: 4px solid currentColor; border-right: 4px solid currentColor;
}
.ctrl__play-icon { display: none; font-size: .85rem; transform: translateX(1px); }
.ctrl--paused .ctrl__pause-icon { display: none; }
.ctrl--paused .ctrl__play-icon { display: inline; }
/* restartProgress() bails out under reduced motion, so nothing auto-advances and
   the pause button controls nothing. display:none rather than hiding it visually,
   so it leaves the tab order and the accessibility tree too. Prev/next still work.
   Must come after .ctrl { display: inline-flex } — same specificity, so order wins. */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .ctrl--pause { display: none; }
}

@media (max-width: 640px) {
  .carousel__stage { height: 460px; }
  .tcard { padding: 2.2rem 1.8rem 2.2rem; }
  .tcard__progress { left: 1.8rem; right: 1.8rem; }
}

/* ==========================================================================
   SCENE 07 · PRICING
   ========================================================================== */
.pricing {
  background: linear-gradient(180deg, var(--navy) 0%, #0c1330 100%);
  padding: 14vh 0 12vh;
}
.pricing__intro {
  color: var(--muted-dark);
  max-width: 60ch;
  margin-bottom: 4rem;
}
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 861px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.6rem 2.2rem 2.4rem;
  background: linear-gradient(160deg, var(--navy-2) 0%, rgba(27,42,94,.4) 100%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.price-card__index {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .18em;
  color: var(--slate-on-navy);
}
.price-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 .5rem;
}
.price-card__figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--muted-dark);
  margin-bottom: 1.2rem;
}
.price-card p:last-child { color: var(--muted-dark); font-size: 1rem; }
/* The one hard number on the page gets the accent */
.price-card--rate { border-color: rgba(255,106,69,.35); }
.price-card__amount {
  color: var(--coral);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
}
.price-card__unit {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1rem; letter-spacing: .04em;
  color: var(--slate-on-navy);
}
.pricing__note {
  margin-top: 3rem; color: var(--muted-dark);
  max-width: 62ch; font-size: 1rem;
}

/* ==========================================================================
   SCENE 08 · RESULTS STRIP
   ========================================================================== */
.results {
  background: var(--navy);
  padding: 12vh 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.results__list { list-style: none; margin-top: 2.5rem; }
.results__line {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: var(--muted-dark);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; gap: 1em; align-items: baseline;
  opacity: 0; transform: translateY(24px);
}
.results__line:first-child { border-top: 1px solid rgba(255,255,255,.07); }

/* ==========================================================================
   SCENE 08 · CLOSING CTA
   ========================================================================== */
.cta {
  position: relative;
  min-height: 100vh;
  padding: 18vh 0 12vh;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1330 0%, var(--navy) 30%);
}
.cta__glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 70vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,106,69,.09) 0%, transparent 65%);
}
.cta__ghost42 {
  left: -8vw; top: 4vw;
  color: rgba(27,42,94,.5);
  -webkit-text-stroke: 0;
}
.cta__inner { position: relative; z-index: 2; }
.cta__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 8rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  max-width: 14ch;
}
.cta__headline .word { display: inline-block; }  /* keep per-char spans from breaking mid-word */
.cta__headline .char { display: inline-block; will-change: transform, opacity; }
.cta__sub { color: var(--muted-dark); max-width: 52ch; margin-bottom: 3.5rem; }

/* ---------- Form ---------- */
.form { max-width: 760px; }
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; margin-bottom: 1.4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--white);
  background: rgba(27,42,94,.35);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 1.15rem 1.2rem .55rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { min-height: 56px; cursor: pointer; }
.field label {
  position: absolute; left: 1.2rem; top: .92rem;
  color: var(--slate-on-navy); font-size: 1rem;
  pointer-events: none;
  transition: transform .3s var(--ease), font-size .3s var(--ease), color .3s;
  transform-origin: left top;
}
.field__opt { font-size: .8em; }   /* no opacity: it pushed this under 4.5:1 */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(27,42,94,.55);
  box-shadow: 0 0 0 4px rgba(255,106,69,.14);
}
/* Float the label when focused or filled */
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  transform: translateY(-0.55rem);
  font-size: .68rem;
  color: var(--coral);
  letter-spacing: .06em;
}
/* Inline validation styling (only after user interaction) */
.form--touched .field input:invalid,
.form--touched .field select:invalid,
.form--touched .field textarea:invalid {
  border-color: rgba(255,106,69,.7);
}
.field--select::after {
  content: '>'; position: absolute; right: 1.2rem; top: 1rem;
  font-family: var(--font-mono); color: var(--slate-on-navy);
  transform: rotate(90deg); pointer-events: none;
}
/* Per-field error text (SC 3.3.1 / 3.3.3). The form is novalidate, so the
   browser's own messages never appear and this is the only thing that tells
   the user which field is wrong. Coral on navy measures 4.9:1. */
.field__error {
  display: none;
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.4;
  color: var(--coral);
  margin-top: .45rem; padding-left: .15rem;
}
.field__error--on { display: block; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--coral); }

.form__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form__status { font-size: .8rem; color: var(--amber); }
/* reCAPTCHA badge: hidden until the contact section scrolls into view (the class
   is toggled in script.js). visibility/opacity rather than display, because
   Google writes display:block into the element's inline style and would win. */
.grecaptcha-badge {
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s;
  /* Lift it clear of .to-top, which shares this corner: that button's own bottom
     offset, plus its 46px height, plus the gap. !important because Google writes
     bottom:14px into the element's inline style. */
  bottom: calc(clamp(1rem, 3vw, 2.5rem) + 90px) !important;
}
body.captcha-badge-on .grecaptcha-badge { visibility: visible; opacity: 1; }

/* Honeypot: off-screen rather than display:none, which bots learn to skip. */
.form__hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form button[type="submit"][disabled] { opacity: .55; pointer-events: none; }

/* Success panel: takes the form's place after a send goes through */
.form-thanks {
  max-width: 760px; padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.form-thanks[hidden] { display: none; }
.form-thanks__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 1.4rem; border-radius: 50%;
  color: var(--navy); background: var(--amber);
}
.form-thanks__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .7rem;
}
.form-thanks__body { color: var(--muted-dark); max-width: 46ch; }

.cta__direct {
  margin-top: 4rem; color: var(--muted-dark); font-size: 1rem;
  max-width: 56ch;
}
.cta__direct .mono { font-size: .9rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0b1129;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 4rem 0 3rem;
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.8rem;
  text-align: center;
}
.footer__strip {
  font-size: .72rem; letter-spacing: .22em; color: var(--slate-on-navy);
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer__nav a {
  font-size: .9rem; color: var(--muted-dark); text-decoration: none;
  transition: color .25s;
}
.footer__nav a:hover { color: var(--coral); }
.footer__legal { font-size: .85rem; color: var(--slate-on-navy); }
.footer__wink {
  display: block; margin-top: .6rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
}

/* ==========================================================================
   REVEAL DEFAULTS (JS animates these in; keep visible without JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .why__item { opacity: 0; transform: translateY(40px); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .js .reveal, .js .why__item, .results__line,
  .hero__eyebrow, .hero__sub, .hero__cta, .terminal {
    opacity: 1 !important; transform: none !important;
  }
  .statement__line .word { opacity: 1 !important; }
  .scroll-cue { display: none; }
  /* The one motion exempted from the blanket rule above. A text caret reads as
     an interface affordance, not decoration: frozen solid it looks like a bug.
     At 1Hz it is well under the 3Hz flash threshold of WCAG 2.3.1. */
  .terminal__caret {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
  }
}

/* julian's additions */
