/* ==========================================================================
   201 Web Services — Stylesheet
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Components (buttons, labels, cards, fields)
   6.  Header / navigation
   7.  Sections
   8.  Footer
   9.  Quote dialog
   10. Motion & reveal
   11. Responsive
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Brand — solid, flat, no gradients */
  --ink:          #0B1520;   /* primary dark surface + headings */
  --ink-soft:     #12202E;   /* raised dark surface */
  --ink-line:     #1E2E3E;   /* borders on dark */

  --mint:         #2EE6A8;   /* single accent */
  --mint-deep:    #0E9A72;   /* accent on light bg (contrast-safe) */
  --mint-wash:    rgba(46, 230, 168, 0.07);  /* selected tint, never a fill */

  --paper:        #FFFFFF;   /* base light surface */
  --paper-alt:    #F5F8FA;   /* alternating light surface */
  --line:         #E4EAF0;   /* borders on light */

  --body:         #566675;   /* body copy on light */
  --faint:        #8A9AA8;   /* meta copy on light */
  --on-dark:      rgba(255, 255, 255, 0.62);
  --on-dark-faint:rgba(255, 255, 255, 0.40);

  /* Type */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Modular scale */
  --step-xs:  0.78rem;
  --step-sm:  0.9rem;
  --step-0:   1rem;
  --step-1:   clamp(1.12rem, 0.4vw + 1rem, 1.25rem);
  --step-2:   clamp(1.45rem, 1vw + 1.2rem, 1.8rem);
  --step-3:   clamp(1.9rem, 2vw + 1.4rem, 2.6rem);
  --step-4:   clamp(2.4rem, 4vw + 1.2rem, 3.9rem);
  --step-5:   clamp(2.9rem, 5.6vw + 1rem, 5.1rem);

  /* Space */
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --measure:    1180px;
  --section-y:  clamp(5rem, 9vw, 8.5rem);

  --radius:     14px;
  --radius-sm:  8px;
  --radius-pill: 999px;

  /* Ambient depth. Deliberately near-invisible — this is atmosphere, not a
     feature. If you can identify it as a gradient, it's too strong. Raising
     these past ~0.05 turns the hero into a coloured section. */
  --depth-warm:  rgba(46, 230, 168, 0.026);  /* faint teal, behind the card  */
  --depth-cool:  rgba(11, 21, 32, 0.022);    /* faint ink, top-left          */
  --depth-floor: rgba(11, 21, 32, 0.014);    /* settles the section downward */

  /* A whisper-soft neutral scrim over the hero so the selected-work tiles read
     against it. Still white — this only takes the pure-white edge off. */
  --hero-dim:    rgba(11, 21, 32, 0.055);

  --header-h:   72px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Dark theme
   --------------------------------------------------------------------------
   Light is the source of truth and lives in :root untouched. Dark mode works
   by redefining the *surface, border and text* tokens — so the ~115 places
   that already say var(--paper)/var(--line)/var(--body) flip automatically,
   with no per-component edits. Brand tokens (--mint, --ink as a brand colour)
   stay put. Sections that are deliberately dark in both themes are handled
   just below, since in dark mode they sit ON the dark page rather than
   punching a dark hole in a light one.

   Palette is a warm-neutral charcoal, not pure black, with soft-white text —
   the Linear/Vercel register asked for.
   ======================================================================== */

:root {
  /* Surface tokens that flip. Light values mirror the originals so nothing
     changes in light mode; these names are what dark mode overrides. */
  --surface:      var(--paper);      /* page background            */
  --surface-alt:  var(--paper-alt);  /* alternating band           */
  --surface-card: var(--paper);      /* card background            */
  --text:         var(--ink);        /* primary text / headings    */
  --text-body:    var(--body);       /* body copy                  */
  --text-faint:   var(--faint);      /* meta copy                  */
  --hairline:     var(--line);       /* borders                    */
  --hairline-strong: #C9D5DF;        /* hover border                */
  --header-stuck: rgba(255, 255, 255, 0.92);  /* stuck nav bar          */

  /* Surfaces that are dark in BOTH themes (dark sections, footer, dialog).
     In light mode they are the brand ink; dark mode lifts them off the page. */
  --contrast:       var(--ink);      /* bg of intentionally-dark blocks */
  --contrast-soft:  var(--ink-soft); /* raised surface within them      */
  --contrast-line:  var(--ink-line); /* borders within them             */
  --on-contrast:        rgba(255, 255, 255, 0.92); /* text on those    */
  --on-contrast-strong: #fff;                       /* headings on those */
  --shadow-1:  0 1px 2px rgba(11, 21, 32, 0.04);
  --shadow-2:  0 8px 20px -10px rgba(11, 21, 32, 0.22);
}

[data-theme="dark"] {
  --ink:       #E7ECF2;   /* "ink" now means primary text, which is near-white */
  --ink-soft:  #161E2B;
  --ink-line:  #263041;

  --mint:      #2EE6A8;    /* accent unchanged */
  --mint-deep: #34E0A6;    /* on dark, the accent can be bright and still pass AA */
  --mint-wash: rgba(46, 230, 168, 0.10);

  --paper:      #0B1220;   /* deep charcoal page background      */
  --paper-alt:  #0F1826;   /* alternating band, a touch lighter  */
  --line:       #212B3A;   /* low-contrast borders               */

  --body:       #A6B2C2;   /* muted secondary text               */
  --faint:      #6E7C8E;   /* meta text                          */
  --on-dark:        rgba(255, 255, 255, 0.70);
  --on-dark-faint:  rgba(255, 255, 255, 0.45);

  --surface:      #0B1220;
  --surface-alt:  #0F1826;
  --surface-card: #131C2B;  /* cards sit ABOVE the page, not flush */
  --text:         #E7ECF2;
  --text-body:    #A6B2C2;
  --text-faint:   #6E7C8E;
  --hairline:     #212B3A;
  --hairline-strong: #334054;
  --header-stuck: rgba(11, 18, 32, 0.85);

  /* Dark-in-both surfaces lift slightly off the page instead of matching it */
  --contrast:       #131C2B;
  --contrast-soft:  #1A2434;
  --contrast-line:  #2A3546;
  --on-contrast:        rgba(255, 255, 255, 0.90);
  --on-contrast-strong: #F4F7FA;

  --depth-warm:  rgba(46, 230, 168, 0.04);
  --depth-cool:  rgba(255, 255, 255, 0.018);
  --depth-floor: rgba(0, 0, 0, 0.12);
  --hero-dim:    transparent;

  --shadow-1:  0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2:  0 12px 28px -12px rgba(0, 0, 0, 0.6);
}

/* The theme cross-fade. Scoped to the properties that actually change colour,
   so layout and transforms are never animated. */
[data-theme] body,
[data-theme] .section,
[data-theme] .card,
[data-theme] .header,
[data-theme] .footer,
[data-theme] .btn,
[data-theme] .field input,
[data-theme] .field textarea,
[data-theme] .tier,
[data-theme] .review,
[data-theme] .browser,
[data-theme] .manifest,
[data-theme] .toc__nav a,
[data-theme] .drawer {
  transition: background-color 0.3s var(--ease),
              border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  [data-theme] * { transition-duration: 0.01ms !important; }
}


/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul { list-style: none; padding: 0; }

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

.dark :focus-visible { outline-color: var(--mint); }

/* Icon sprite holder — present in the DOM, never rendered */
.sprite { position: absolute; }

/* Accessible-but-hidden */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--contrast);
  color: var(--on-contrast-strong);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--step-sm);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--alt { background: var(--paper-alt); }

.section--dark {
  background: var(--contrast);
  color: var(--on-contrast);
}

/* Hairline divider used between light sections */
.section--ruled { border-top: 1px solid var(--line); }

/* Second half of a two-part section on the same background: drops the top
   padding so the pair reads as one continuous block. */
.section--continues { padding-top: 0; }

.stack > * + * { margin-top: 1rem; }

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--on-contrast-strong); }

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 56ch;
}

.accent { color: var(--mint-deep); }
.section--dark .accent { color: var(--mint); }

/* Utility label — the mono voice of the brand */
.label {
  font-family: var(--mono);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.section--dark .label { color: var(--on-dark-faint); }

/* Section header block */
.head { max-width: 62ch; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head .label { display: block; margin-bottom: 1.1rem; }
.head p { margin-top: 1.25rem; }
.head--center p { margin-inline: auto; }

/* ==========================================================================
   5. Components
   ========================================================================== */

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 50px;
  padding-inline: 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(11, 21, 32, 0);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn svg { transition: transform 0.2s var(--ease); }

.btn:active { transform: translateY(1px); }

/* Lift, shadow and a nudge on the arrow. All three are motion, so they only
   apply where motion is welcome; the colour shift alone carries hover
   otherwise. */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(11, 21, 32, 0.35);
  }

  .btn:active { transform: translateY(1px); box-shadow: none; }

  .btn:hover svg { transform: translateX(3px); }
}

.btn--primary { background: var(--contrast); color: var(--on-contrast-strong); }
.btn--primary:hover { background: var(--contrast-soft); }

.btn--accent { background: var(--mint); color: var(--ink); }
.btn--accent:hover { background: #26cf95; }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-dark {
  border-color: var(--ink-line);
  color: #fff;
}
.btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.5); }

.btn--lg { height: 56px; padding-inline: 1.9rem; font-size: var(--step-0); }
.btn--block { width: 100%; }

/* On dark theme the filled CTAs go neon teal. A near-charcoal primary button
   (var(--contrast) = #131C2B) barely separates from the dark page, so the hero
   and header CTAs were getting lost; a bright mint fill with dark ink text
   fixes visibility and gives the "neon" presence asked for. Higher specificity
   than .btn:hover, so the glow also holds on hover. */
[data-theme="dark"] .btn--primary {
  background: var(--mint);
  color: #0B1520;
  box-shadow: 0 8px 26px -10px rgba(46, 230, 168, 0.55);
}
[data-theme="dark"] .btn--primary:hover { background: #34E0A6; }

/* Accent buttons already use the mint fill; on dark, var(--ink) flips to
   near-white, so force dark ink text back for contrast and add the same glow. */
[data-theme="dark"] .btn--accent {
  color: #0B1520;
  box-shadow: 0 8px 26px -10px rgba(46, 230, 168, 0.55);
}
[data-theme="dark"] .btn--accent:hover { background: #34E0A6; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Text link with a persistent underline that extends on hover */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--mint);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.tlink:hover { color: var(--mint-deep); }
.tlink svg { transition: transform 0.25s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

.section--dark .tlink { color: #fff; }
.section--dark .tlink:hover { color: var(--mint); }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover { border-color: var(--hairline-strong); }

.section--dark .card {
  background: var(--contrast-soft);
  border-color: var(--contrast-line);
}
.section--dark .card:hover { border-color: rgba(46, 230, 168, 0.4); }

.card h3 { margin-bottom: 0.7rem; }

/* Grid helpers */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* --- Icon shape ----------------------------------------------------------- */

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--mint-deep);
  margin-bottom: 1.4rem;
  flex: none;
}

.section--dark .ico {
  background: rgba(46, 230, 168, 0.1);
  color: var(--mint);
}

.ico svg { width: 20px; height: 20px; }

/* --- Checklist ------------------------------------------------------------ */

.checks { display: grid; gap: 0.7rem; }

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--step-sm);
  line-height: 1.55;
}

.checks svg {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--mint-deep);
}

.section--dark .checks svg { color: var(--mint); }

/* --- Stat ----------------------------------------------------------------- */

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section--dark .stat-value { color: #fff; }

.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--step-xs);
  color: var(--faint);
}

.section--dark .stat-label { color: var(--on-dark-faint); }

/* --- Form fields ---------------------------------------------------------- */

.field { display: block; }

.field > span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--step-sm);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 21, 32, 0.06);
}

.field input:user-invalid { border-color: #D9534F; }

/* Selectable chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: var(--step-sm);
  font-weight: 500;
  color: var(--body);
  box-shadow: 0 0 0 rgba(11, 21, 32, 0);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.chip:hover {
  border-color: #C0CCD8;
  box-shadow: 0 4px 12px -6px rgba(11, 21, 32, 0.18);
}

.chip[aria-pressed="true"] {
  background: var(--contrast);
  border-color: var(--contrast);
  color: var(--on-contrast-strong);
  box-shadow: 0 6px 16px -8px rgba(11, 21, 32, 0.45);
}

.chip:active { transform: translateY(0); }

/* The lift is motion, so it only applies when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .chip:hover { transform: translateY(-1px); }
  .chip[aria-pressed="true"] { transform: translateY(-1px); }
}

/* Investment tiers — native radios, so the platform gives us the radiogroup
   semantics and arrow-key navigation for free. The input is hidden from view
   but never from focus. */
/* Five cards can't sit in one row inside a 544px modal column without
   crushing "Strategic partner", so they resolve into a balanced 3 + 2 block:
   a six-column grid where the first three span 2 and the last two span 3.
   Equal widths within each row, and no orphaned gap on the second. */
.tiers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
}

.tier { grid-column: span 2; }

.tier:nth-child(4),
.tier:nth-child(5) { grid-column: span 3; }

.tier {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 21, 32, 0.04);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.tier input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.tier__name {
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.tier__range {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  transition: color 0.25s var(--ease);
}

.tier__check {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 14px; height: 14px;
  color: var(--mint-deep);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.tier:hover {
  border-color: var(--mint-deep);
  box-shadow: 0 8px 20px -10px rgba(11, 21, 32, 0.22);
}

.tier:has(input:checked) {
  border-color: var(--mint-deep);
  background: var(--mint-wash);
  box-shadow: 0 8px 20px -12px rgba(14, 154, 114, 0.35);
}

.tier:has(input:checked) .tier__range { color: var(--body); }

.tier:has(input:checked) .tier__check { opacity: 1; }

/* Focus lives on the card, since the radio itself is visually hidden. */
.tier:has(input:focus-visible) {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .tier:hover { transform: translateY(-2px); }
  .tier__check { transform: scale(0.7); }
  .tier:has(input:checked) .tier__check { transform: scale(1); }
}

/* ==========================================================================
   6. Header / navigation
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header.is-stuck {
  background: var(--header-stuck);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

/* Theme toggle — sized and coloured to sit quietly beside the nav, not to
   draw the eye. Sun shows in light mode, moon in dark; they cross-fade. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}

.theme-toggle:hover { border-color: var(--hairline-strong); color: var(--text); }

.theme-toggle svg { grid-area: 1 / 1; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }

/* Light theme shows the sun; the moon is tucked away, and vice versa. */
.theme-toggle__moon { opacity: 0; transform: rotate(-30deg) scale(0.7); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(30deg) scale(0.7); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg { transition: opacity 0.01ms; transform: none !important; }
}

/* In the mobile drawer it becomes a labelled row rather than an icon box. */
.theme-toggle--drawer {
  width: 100%;
  height: auto;
  grid-template-columns: auto auto 1fr;
  justify-items: start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
}

.theme-toggle--drawer svg { grid-area: auto; }
.theme-toggle--drawer .theme-toggle__moon { grid-column: 1; grid-row: 1; }
.theme-toggle--drawer .theme-toggle__sun { grid-column: 1; grid-row: 1; }
.theme-toggle--drawer span {
  grid-column: 2;
  font-size: var(--step-sm);
  font-weight: 500;
  color: var(--text-body);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
}

/* The supplied logo is a single mint tone, which sits at 1.3:1 against white
   and is effectively invisible in the light header. The artwork is never
   altered; instead it is given the brand ink as a background to sit on, where
   it reads at 14.1:1. On the dark footer it needs no such treatment. */
.brand--chip {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  /* Always true brand ink, in both themes — the logo is a single mint tone
     and must never sit on a light or near-white surface. */
  background: #0B1520;
}

.brand__logo {
  display: block;
  width: auto;
  height: 26px;
}

.footer .brand__logo { height: 32px; }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  position: relative;
  font-size: var(--step-sm);
  font-weight: 500;
  color: var(--body);
  transition: color 0.18s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 2rem;
  display: grid;
  gap: 0.35rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s;
}

.drawer.is-open { opacity: 1; transform: none; visibility: visible; }

.drawer a:not(.btn) {
  padding: 0.85rem 0;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.drawer .btn { margin-top: 1.25rem; }

/* ==========================================================================
   7. Sections
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem));
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
  isolation: isolate;
  overflow: clip;                 /* work tiles bleed past the section edges */
}

/* Ambient depth only. Same discipline as before — the washes sit below the
   visibility threshold and only register as the page feeling less flat. No
   neon "portal": the works carry the composition, not a coloured glow.
   Nothing here should ever be nameable as "a gradient". */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 50% at 50% 16%, var(--depth-warm), transparent 60%),
    radial-gradient(70% 55% at 50% 98%, var(--depth-warm), transparent 68%),
    linear-gradient(180deg, var(--hero-dim), var(--hero-dim) 84%, transparent);
}

/* --------------------------------------------------------------------------
   Selected-works frame
   Four browser-window tiles anchored to the corners, tilted, and pushed
   partly off-screen. They are dimmed and — via the ::after vignette — fade
   into the page toward the centre, keeping the headline the highest-contrast
   thing on the screen. Decorative: the layer is aria-hidden in the markup.
   -------------------------------------------------------------------------- */

.hero__works {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: clip;
}

/* Page-coloured vignette that swallows the tiles behind the text column. */
.hero__works::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 60% at 50% 47%,
    var(--surface) 20%, transparent 80%);
}

.worktile {
  position: absolute;
  width: clamp(224px, 25vw, 372px);
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0.72;
  transform: rotate(var(--rot, 0deg));
}

.worktile--tl { --rot: -4deg; top: clamp(5.5rem, 12vw, 8.5rem); left:  -3.5rem; }
.worktile--tr { --rot:  4deg; top: clamp(4.5rem, 10vw, 7rem);   right: -3.5rem; }
.worktile--bl { --rot:  4deg; bottom: clamp(2rem, 6vw, 4rem);   left:  -3rem; }
.worktile--br { --rot: -4deg; bottom: clamp(1.5rem, 5vw, 3.5rem); right: -3rem; }

/* Browser chrome */
.worktile__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line);
}

.worktile__dots { display: inline-flex; gap: 5px; flex: none; }
.worktile__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }

.worktile__addr {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worktile__shot { display: block; }
.worktile__shot img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .worktile { animation: tile-float 20s ease-in-out infinite; }
  .worktile--tr { animation-delay: -5s; }
  .worktile--bl { animation-delay: -10s; }
  .worktile--br { animation-delay: -15s; }
}

@keyframes tile-float {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Hero content — centred inside the frame
   -------------------------------------------------------------------------- */

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__eyebrow {
  font-size: var(--step-sm);
  color: var(--faint);
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.3rem);
}

/* Second line of the headline carries the accent rule */
.hero h1 .u {
  display: inline-block;
  border-bottom: 5px solid var(--mint);
  padding-bottom: 0.06em;
}

.hero .lede { margin-top: 1.5rem; margin-inline: auto; }

.hero .btn-row { margin-top: 2.25rem; justify-content: center; }

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: var(--step-sm);
  color: var(--faint);
}

.hero-proof svg { width: 15px; height: 15px; color: var(--mint-deep); }

/* --------------------------------------------------------------------------
   Signature brand element: the Creation Manifest.

   The 201 numeral is set as a logo — oversized, tightly tracked, with the
   status word beside it. Everything below is a manifest: what was made, from
   what, and by which process. Neutral throughout; teal is spent on exactly
   two things — the word "Created" and the phase currently running.
   -------------------------------------------------------------------------- */

.manifest {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.15rem);
  box-shadow:
    0 1px 2px rgba(11, 21, 32, 0.04),
    0 14px 36px -14px rgba(11, 21, 32, 0.10);
  transition: box-shadow 0.5s var(--ease);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .manifest { animation: float 10s ease-in-out infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.manifest:hover {
  box-shadow:
    0 1px 2px rgba(11, 21, 32, 0.04),
    0 26px 54px -18px rgba(11, 21, 32, 0.16);
}

/* Shared micro-label */
.manifest__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Top line ------------------------------------------------------------- */

.manifest__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.manifest__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}

.manifest__pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint-deep);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .manifest__pulse { animation: pulse 2.8s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 154, 114, 0.4); }
  70%      { box-shadow: 0 0 0 5px rgba(14, 154, 114, 0); }
}

/* --- The numeral: treated as a logo, not a stat ---------------------------- */

.manifest__code {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1.1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.manifest__num {
  font-family: var(--display);
  font-size: clamp(4.2rem, 8.5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.manifest__created {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mint-deep);
}

/* --- Manifest rows: mono keys, hairline separated -------------------------- */

.manifest__rows {
  display: grid;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.manifest__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.62rem;
}

.manifest__rows dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  flex: none;
}

.manifest__rows dd {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  letter-spacing: -0.01em;
}

/* --- Creation pipeline ----------------------------------------------------- */

.pipeline { padding-block: 1.35rem; border-bottom: 1px solid var(--line); }

.pipeline__list {
  display: grid;
  margin-top: 1rem;
  position: relative;
}

/* Hairline rail threading the marks together */
.pipeline__list::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 1px;
  background: var(--line);
}

.pipe {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.42rem;
}

.pipe__mark {
  position: relative;
  z-index: 1;
  width: 10px; height: 10px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

/* Completed: filled neutral */
.pipe--done .pipe__mark {
  border-color: var(--body);
  background: var(--body);
}

/* Running: the second and last place teal appears */
.pipe--active .pipe__mark {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.18);
}

.pipe__name {
  flex: 1;
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--faint);
  transition: color 0.4s var(--ease);
}

.pipe--done .pipe__name { color: var(--ink); }
.pipe--active .pipe__name { color: var(--ink); }

.pipe__state {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.pipe--active .pipe__state { color: var(--mint-deep); }

/* --- Provenance ------------------------------------------------------------ */

.manifest__foot { padding-top: 1.35rem; }

.manifest__principle {
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.manifest__never {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Trusted by ----------------------------------------------------------- */

/* --- Trusted by: logo marquee --------------------------------------------- */

.trusted {
  padding-block: clamp(3rem, 5vw, 4.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trusted__head {
  text-align: center;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Viewport. The mask dissolves logos at both edges instead of clipping them. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* The rail holds both tracks and does the moving. */
.marquee__rail {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__rail { animation-play-state: paused; }

/* The rail holds four identical tracks and travels exactly one track width
   (25% of the rail). Because three tracks always remain to the right of the
   viewport at the loop point, the reset is invisible at any screen width up
   to ~3200px. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}

.marquee__track {
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
}

/* One spacing value, applied between every logo and across the seam. */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.75rem, 3.5vw, 3.25rem);
}

.logo img {
  height: var(--h, 44px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.logo img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Optical sizing, not mechanical. A square badge needs more height than a
   long wordmark to carry the same visual weight; logos that ship on their own
   dark background sit lower again so the tile never out-weighs the flat marks. */
.logo--ogulagha   { --h: 48px; }
.logo--eniebi     { --h: 48px; }
.logo--nacss      { --h: 46px; }
.logo--sdu        { --h: 46px; }
.logo--teemo      { --h: 44px; }
.logo--drn        { --h: 42px; }
.logo--nineteen73 { --h: 40px; }
.logo--raida      { --h: 40px; }
.logo--secura     { --h: 38px; }
.logo--smartbillspay { --h: 32px; }
.logo--letsgodrive   { --h: 32px; }
.logo--nomxy         { --h: 30px; }
.logo--fitpoint      { --h: 30px; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }

  .marquee__rail {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* The duplicate set is decorative — drop it when nothing is moving. */
  .marquee__track[aria-hidden="true"] { display: none; }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.5rem;
  }
}

/* --- Selected work: grid ---------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* The whole card is the control — the CTA below is a visual affordance, not a
   nested button. */
.work-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 18px 40px -20px rgba(11, 21, 32, 0.18);
}

.work-card__shot {
  display: block;
  overflow: hidden;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  position: relative;
}

/* At rest: the 16:10 thumbnail fills the window.
   On hover: JS swaps in the tall full-height screenshot and CSS scrolls it
   upward via animation, giving a miniature preview of the whole page. The
   thumbnail is kept off-screen as a fallback so the card never flashes empty. */
/* At rest the thumbnail fills the 16:10 window exactly — width AND height
   constrained so the full website width is always visible, never cropped.
   On hover JS swaps in the tall full-height shot and adds .is-scrolling,
   which releases the height and lets the image overflow for the scroll. */
.work-card__shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.work-card__shot img.is-scrolling {
  height: auto;
  object-fit: contain;
  object-position: top center;
}

@media (prefers-reduced-motion: no-preference) {
  .work-card__shot img.is-scrolling {
    animation: card-scroll var(--scroll-dur, 5s) ease-in-out 0.15s forwards;
  }
}

@keyframes card-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(var(--scroll-dist, -60%)); }
}

.work-card__body {
  display: block;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}

.work-card__industry {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.work-card__name {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}

.work-card__desc {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--step-sm);
  line-height: 1.6;
  color: var(--body);
  max-width: 44ch;
}

.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink);
}

.work-card__cta svg {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease);
}

.work-card:hover .work-card__cta { color: var(--mint-deep); }
.work-card:hover .work-card__cta svg { transform: translateX(4px); }

/* --- Selected work: preview dialog ----------------------------------------- */

.preview {
  width: min(1080px, 100%);
  max-width: 100%;
  max-height: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.preview::backdrop {
  background: rgba(11, 21, 32, 0.72);
  backdrop-filter: blur(6px);
}

.preview__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

/* Browser frame */
.browser {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.browser__lights { display: flex; gap: 6px; flex: none; }

.browser__lights i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-alt);
}

.browser__lights i:nth-child(1) { background: #FF5F57; }
.browser__lights i:nth-child(2) { background: #FEBC2E; }
.browser__lights i:nth-child(3) { background: #28C840; }

.browser__close {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  color: var(--faint);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.browser__close:hover { background: var(--surface-alt); color: var(--text); }

/* The viewport: a real scroll container, so wheel and touch work natively */
.browser__viewport {
  height: min(66vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: var(--paper);
}

.browser__viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.browser__hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 21, 32, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.browser__hint.is-shown { opacity: 1; }

/* Meta strip */
.preview__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  color: #fff;
}

.preview__industry {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.preview__meta h3 {
  margin-top: 0.5rem;
  color: #fff;
  font-size: var(--step-2);
}

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

  /* Mobile: a bottom sheet rather than a centred modal */
  .preview {
    width: 100%;
    margin: 0;
    margin-top: auto;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    background: var(--ink);
    overflow-y: auto;
  }

  .preview__inner { padding: 0.85rem 0.85rem 1.5rem; gap: 1rem; }

  .browser { border-radius: 12px; }
  .browser__viewport { height: 58vh; }

  .preview__meta { flex-direction: column; align-items: stretch; }
  .preview__meta .btn-row { flex-direction: column; }
  .preview__meta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .work-card:hover { transform: none; }
  }

/* --- Reviews -------------------------------------------------------------- */

.reviews-slider {
  max-width: 720px;
  margin-inline: auto;
}

/* Only the active card is in flow, so the track is exactly as tall as the
   review being read. The others are taken out of flow and contribute no
   height — otherwise expanding one card would stretch the box for all of
   them. They keep their own natural height while fading out, hence
   `inset: 0 0 auto 0` rather than a full stretch. */
.reviews-track { position: relative; }

.reviews-track .review {
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  visibility: hidden;
  /* A taller card that's on its way out still overlaps the controls below
     while it fades, so it must never swallow a click. */
  pointer-events: none;
  transform: translateY(12px);
}

.reviews-track .review.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reviews-track .review {
    transition:
      opacity 0.45s var(--ease),
      transform 0.45s var(--ease),
      visibility 0s linear 0.45s;
  }

  .reviews-track .review.is-active { transition-delay: 0s; }
}

.review { display: flex; flex-direction: column; }

.review__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--contrast);
  color: var(--on-contrast-strong);
  font-family: var(--display);
  font-weight: 700;
}

.review__who b {
  display: block;
  font-family: var(--display);
  font-size: var(--step-sm);
  color: var(--ink);
  line-height: 1.35;
}

.review__who span {
  display: block;
  font-size: var(--step-xs);
  color: var(--faint);
}

.review__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.review__stars {
  display: flex;
  gap: 2px;
  color: #FFB703;
}

.review__stars svg { width: 15px; height: 15px; }

.review__date {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.review__body {
  margin-top: 0.9rem;
  font-size: var(--step-sm);
  line-height: 1.7;
}

.review__body p + p { margin-top: 0.9em; }

/* Collapsed remainder — same grid-rows animation as the FAQ. */
.review__rest {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
}

.review__rest-inner { overflow: hidden; min-height: 0; }

.review__rest-inner > p:first-child { margin-top: 0.9em; }

.review--open .review__rest {
  grid-template-rows: 1fr;
  visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .review__rest {
    transition:
      grid-template-rows 0.45s var(--ease),
      visibility 0s linear 0.45s;
  }

  .review--open .review__rest { transition-delay: 0s; }
}

.review__more {
  align-self: flex-start;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-deep);
}

.review__more:hover { text-decoration: underline; }

.review__foot {
  display: flex;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.review__verified svg { width: 13px; height: 13px; }

/* Pagination — arrows flank the dots, 28px hit area around an 8px dot. */
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.reviews-arrow {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.reviews-arrow:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.reviews-arrow svg { display: block; }

/* The sprite only carries a right arrow; the previous button reuses it. */
.reviews-arrow[data-review-prev] svg { transform: rotate(180deg); }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.reviews-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.reviews-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--line);
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}

.reviews-dot:hover::before { background: var(--hairline-strong); }

.reviews-dot.is-active::before {
  width: 22px;
  background: var(--ink);
}

/* Google trust block */
.gtrust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.gtrust__stars {
  display: flex;
  gap: 3px;
  color: #FFB703;
}

.gtrust__stars svg { width: 18px; height: 18px; }

.gtrust__score {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
}

.gtrust__note {
  font-size: var(--step-sm);
  color: var(--faint);
}

.gtrust .btn { margin-top: 1rem; }


/* --- Created (brand story) ------------------------------------------------ */

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
}

.flow__node { text-align: center; }

.flow__node > span {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 0.7rem;
}

.flow__node b {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--on-dark);
}

.flow__node--code b {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--mint);
  border-radius: var(--radius-sm);
  color: var(--mint);
}

.flow__node--end b { color: var(--mint); }

.flow__arrow { color: var(--ink-line); flex: none; }
.flow__arrow svg { width: 26px; height: 26px; }

.prose { max-width: 62ch; margin-inline: auto; text-align: center; }
.prose p + p { margin-top: 1.25rem; }
.prose em { color: var(--on-dark); }

.prose strong {
  display: block;
  margin-top: 2rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* --- Services ------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service { display: flex; flex-direction: column; }

.service__no {
  font-family: var(--mono);
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 1.2rem;
}

.service p { font-size: var(--step-sm); margin-bottom: 1.5rem; }

.service .checks { margin-bottom: 1.75rem; flex: 1; }

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
}

.service__cta svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.service:hover .service__cta svg { transform: translateX(4px); }
.service__cta:hover { color: var(--mint-deep); }

/* --- Process -------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step { padding-top: 1.5rem; border-top: 2px solid var(--line); }

.step--done { border-top-color: var(--mint); }

.step__no {
  font-family: var(--mono);
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  color: var(--mint-deep);
}

.step h3 { margin-block: 0.9rem 0.3rem; font-size: var(--step-1); }

.step__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}

.step p { font-size: var(--step-sm); }

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

.faq { max-width: 780px; margin-inline: auto; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.9rem 0;
  text-align: left;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.faq__q span { flex: 1; }

.faq__q:hover { color: var(--mint-deep); }

.faq__q svg {
  width: 18px; height: 18px;
  flex: none;
  color: var(--faint);
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}

.faq__q:hover svg { color: var(--mint-deep); }

.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--mint-deep); }

/* Height animates via grid-template-rows; the copy fades slightly behind it so
   the panel resolves rather than snaps. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq__a > div {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__item.is-open .faq__a > div {
  opacity: 1;
  transition: opacity 0.35s var(--ease) 0.1s;
}

.faq__a p,
.faq__a li {
  font-size: var(--step-sm);
  line-height: 1.75;
  color: var(--body);
  max-width: 62ch;
}

.faq__a p + p,
.faq__a > div > * + * { margin-top: 1.1rem; }

.faq__a > div > *:last-child { margin-bottom: 1.9rem; }

/* Phase and timeline rows share one definition-list shape. */
.faq__phases {
  display: grid;
  gap: 0.7rem;
  max-width: 62ch;
}

.faq__phases > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  align-items: baseline;
}

.faq__phases dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

.faq__phases dd {
  font-size: var(--step-sm);
  line-height: 1.65;
  color: var(--body);
}

.faq__list {
  display: grid;
  gap: 0.5rem;
  max-width: 62ch;
}

.faq__list li {
  position: relative;
  padding-left: 1.15rem;
}

.faq__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.faq__code {
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ink);
}

/* Closing callout */
.faq-cta {
  max-width: 780px;
  margin: clamp(2.75rem, 5vw, 4rem) auto 0;
  padding-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.faq-cta h3 {
  font-size: var(--step-2);
  color: var(--ink);
}

.faq-cta p {
  margin: 0.75rem auto 1.75rem;
  max-width: 52ch;
  font-size: var(--step-sm);
  color: var(--body);
}

/* --- Subpage heads -------------------------------------------------------- */

/* Pages without a hero still need to clear the fixed header. */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5.5rem)); }

.page-head .head { margin-bottom: 0; }

/* --- Work grid footer ----------------------------------------------------- */

.work-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* --- Legal pages ---------------------------------------------------------- */

.legal-head__date {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Table of contents. A <details> so the mobile accordion needs no script;
   on desktop the summary is hidden, which leaves it permanently open. */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.toc__summary { display: none; }

.toc__nav {
  display: grid;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
}

.toc__nav a {
  padding: 0.45rem 0 0.45rem 1rem;
  margin-left: -1px;
  border-left: 1.5px solid transparent;
  font-size: var(--step-xs);
  line-height: 1.5;
  color: var(--faint);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.toc__nav a.is-current {
  border-left-color: var(--mint-deep);
  color: var(--ink);
  font-weight: 500;
}

.legal__body { max-width: 76ch; }

/* Thin divider between sections, and clearance for the fixed header when an
   anchor is jumped to. */
.legal__section {
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal__section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal__section h2 {
  margin-bottom: 1.1rem;
  font-size: var(--step-2);
  color: var(--ink);
}

.legal__section p {
  font-size: var(--step-sm);
  line-height: 1.8;
  color: var(--body);
}

.legal__section p + p { margin-top: 1.1rem; }

.legal__section b { color: var(--ink); font-weight: 600; }

.legal__section a {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.legal__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--step-sm);
  line-height: 1.8;
  color: var(--body);
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.78em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.legal__list--plain li::before { display: none; }
.legal__list--plain li { padding-left: 0; }

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-main__title { font-size: var(--step-2); }

.contact-main p {
  margin: 1.1rem 0 2rem;
  max-width: 54ch;
  font-size: var(--step-sm);
}

.contact-main .assurance { margin-top: 1.75rem; }

.contact-side {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-side__title {
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-channels { display: grid; gap: 1.4rem; }

.contact-channels li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.contact-channels li:last-child { padding-bottom: 0; border-bottom: 0; }

.contact-channels__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-channels a,
.contact-channels__value {
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.contact-channels a:hover { color: var(--mint-deep); }

.contact-channels__note {
  font-size: var(--step-xs);
  color: var(--faint);
}

/* --- Final CTA ------------------------------------------------------------ */

.cta { text-align: center; }
.cta .btn-row { justify-content: center; margin-top: 2.25rem; }

/* ==========================================================================
   8. Footer
   ========================================================================== */

.footer {
  background: var(--contrast);
  color: var(--on-dark-faint);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}


.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
}

.footer p { font-size: var(--step-sm); margin-top: 1.4rem; max-width: 34ch; }

.footer__head {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin-bottom: 1.4rem;
}

.footer__cta-copy { margin-top: 0; }
.footer__cta-btn { margin-top: 1.5rem; }

.footer-links { display: grid; gap: 0.85rem; }

.footer-links a {
  font-size: var(--step-sm);
  color: var(--on-dark);
  transition: color 0.18s var(--ease);
}

.footer-links a:hover { color: var(--mint); }

.footer-contact { display: grid; gap: 0.85rem; margin-top: 1.75rem; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--step-xs);
  color: var(--on-dark);
}

.footer-contact svg { width: 15px; height: 15px; color: var(--mint); flex: none; }

.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 2rem;
  font-size: var(--step-xs);
}

.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   9. Quote dialog
   ========================================================================== */

.dialog {
  width: min(900px, 100%);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--body);
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog::backdrop {
  background: rgba(11, 21, 32, 0.65);
  backdrop-filter: blur(3px);
}

.dialog__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.dialog__head p { margin-top: 0.6rem; font-size: var(--step-sm); }

.dialog__close {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: var(--radius-sm);
  color: var(--faint);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.dialog__close:hover { background: var(--paper-alt); color: var(--ink); }

/* Form and summary sit side by side; on narrow screens the summary follows
   the form in source order, so it simply stacks underneath. */
.dialog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.dialog form { min-width: 0; }

.dialog fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }

.dialog legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.dialog__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog__fields .field--wide { grid-column: 1 / -1; }

.dialog__submit { margin-top: 1.5rem; }

.fieldset__help {
  margin-bottom: 0.85rem;
  max-width: 46ch;
  font-size: var(--step-xs);
  color: var(--faint);
}

.fieldset__error {
  margin-top: 0.7rem;
  font-size: var(--step-xs);
  color: #C0433F;
}

/* Gentle validation: the unanswered group warms its own borders rather than
   throwing an alert. */
.is-missing .chip {
  border-color: #E8B4B2;
}

/* Assurances under the submit button */
.assurance {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.assurance li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-xs);
  color: var(--faint);
}

.assurance svg {
  width: 13px; height: 13px;
  flex: none;
  color: var(--mint-deep);
}

/* Live project summary */
.brief {
  position: sticky;
  top: 0;
}

.brief__inner {
  padding: 1.25rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.brief__title {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.brief__list { display: grid; gap: 0.9rem; }

.brief__row {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.brief__row:last-child { padding-bottom: 0; border-bottom: 0; }

.brief__row dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.brief__row dd {
  font-family: var(--display);
  font-size: var(--step-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.25s var(--ease);
}

.brief__pending {
  font-weight: 500;
  color: var(--faint);
}

.brief__ready { color: var(--mint-deep); }

.brief__note {
  margin-top: 1rem;
  font-size: var(--step-xs);
  color: var(--faint);
}

.brief__note:empty { display: none; }

.dialog__done {
  padding: clamp(3rem, 7vw, 4.5rem) 2rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.dialog__done svg { width: 44px; height: 44px; color: var(--mint-deep); }
.dialog__done p { max-width: 40ch; font-size: var(--step-sm); }
.dialog[data-state="sent"] .dialog__body,
.dialog[data-state="sent"] .dialog__head p { display: none; }
.dialog:not([data-state="sent"]) .dialog__done { display: none; }

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   A persistent quick-contact control, pinned bottom-left on every page and
   injected by initWhatsApp(). WhatsApp brand green is a deliberate exception
   to the single-mint palette — recognition beats palette purity for a chat
   affordance, and WhatsApp is the studio's primary channel. Sits below the
   header/drawer (z 99–100) and below any open dialog (top layer).
   -------------------------------------------------------------------------- */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: #25D366;              /* WhatsApp brand green */
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(11, 21, 32, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }

.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(11, 21, 32, 0.5);
}

.wa-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 27px; height: 27px; }
}

/* ==========================================================================
   10. Motion & reveal
   ========================================================================== */

/* Content is only hidden when JS is available to reveal it again, so the page
   degrades to fully visible if the script fails to load. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  /* The four-work frame stays, just smaller and pulled tighter to the corners
     so the centred headline keeps its breathing room. */
  .worktile { width: clamp(190px, 30vw, 260px); opacity: 0.5; }
  .worktile--tl, .worktile--bl { left:  -2.5rem; }
  .worktile--tr, .worktile--br { right: -2.5rem; }
  .services-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: grid; }
  .work { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .legal { grid-template-columns: 1fr; }

  .toc {
    position: static;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }

  .toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    list-style: none;
  }

  .toc__summary::-webkit-details-marker { display: none; }

  .toc__summary svg {
    width: 16px; height: 16px;
    color: var(--faint);
    transition: transform 0.3s var(--ease);
  }

  .toc[open] .toc__summary svg { transform: rotate(180deg); }

  .toc__nav {
    padding: 0 1.15rem 1.15rem;
    border-left: 0;
  }

  .toc__nav a { padding-left: 0; border-left: 0; margin-left: 0; }
  .toc__nav a.is-current { border-left: 0; color: var(--mint-deep); }
  .work__media { order: -1; }
  .cases { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }

  /* Summary drops below the form — it already follows it in source order. */
  .dialog__body { grid-template-columns: 1fr; }
  .brief { position: static; }
}

@media (max-width: 620px) {
  .services-grid,
  .steps,
  .grid--3,
  .grid--2,
  .dialog__fields { grid-template-columns: 1fr; }

  /* Phase label stacks above its description on narrow screens. */
  .faq__phases > div { grid-template-columns: 1fr; }

  /* Two tiers per row; the odd fifth card takes the full width. */
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier,
  .tier:nth-child(4),
  .tier:nth-child(5) { grid-column: span 1; }
  .tier:last-child { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; }

  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }

  .work__stats { grid-template-columns: 1fr; gap: 1.25rem; }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .head-split { flex-direction: column; align-items: flex-start; }

  /* All four works stay on phones, arranged two across the top and two across
     the bottom like the desktop frame — just larger and pushed further past
     the edges. Dimmed, with the centre vignette keeping the stacked headline
     readable. */
  .worktile { width: 52vw; opacity: 0.4; }
  .worktile--tl { top: clamp(3.5rem, 15vw, 6rem);   left:  -9vw; --rot: -5deg; }
  .worktile--tr { top: clamp(3rem, 13vw, 5.5rem);   right: -9vw; --rot:  5deg; }
  .worktile--bl { bottom: clamp(1.5rem, 6vw, 3rem); left:  -9vw; --rot:  5deg; }
  .worktile--br { bottom: clamp(1rem, 5vw, 2.5rem); right: -9vw; --rot: -5deg; }

  /* Hero CTAs read better centred and inline-sized than stretched here. */
  .hero .btn-row { align-items: center; }
  .hero .btn-row .btn { width: auto; }
}

/* A tighter centre vignette on phones keeps the stacked headline clean over
   the backdrop tiles. */
@media (max-width: 620px) {
  .hero__works::after {
    background: radial-gradient(66% 42% at 50% 45%,
      var(--surface) 30%, transparent 80%);
  }
}

@media print {
  .header, .drawer, .dialog, .footer { display: none; }
}
