/* ==========================================================================
   PhotoGrowth — premium technical marketing site
   Monochrome "Vercel-black" system over a live Three.js circuit-city.
   Type: Bricolage Grotesque (display/body) + Martian Mono (technical labels)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Monochrome ramp (bg matches background.js CONFIG.bgColor 0x0a0a0a) */
  --bg:        #0a0a0a;
  --ink:       #f4f4f5;   /* primary text */
  --ink-2:     #c8c8cc;   /* secondary text — ~11:1 on bg */
  --muted:     #9a9aa1;   /* labels, meta — ~7:1 on bg */
  --faint:     #7f7f86;   /* de-emphasised meta — ~4.9:1 on bg (still AA) */

  --line:      rgba(255,255,255,0.12);   /* hairline borders */
  --line-2:    rgba(255,255,255,0.06);   /* fainter dividers */
  --surface:   rgba(255,255,255,0.028);  /* panel tint */
  --surface-2: rgba(255,255,255,0.05);   /* raised panel */
  --scrim:     rgba(8,8,9,0.72);          /* readability scrim over the 3D scene */

  --glow:      rgba(255,255,255,0.9);

  /* Champagne / platinum luxe accent — used only for jewel-like details on
     the monochrome base (indices, pulse, quote marks, glimmer, CTA sheen). */
  --lux:       #cdb98f;                    /* muted champagne */
  --lux-bright:#eaddc2;                    /* highlight sheen */
  --lux-line:  rgba(205,185,143,0.32);     /* delicate accent hairline */
  --lux-dim:   rgba(205,185,143,0.10);     /* faint wash */
  --lux-glow:  rgba(205,185,143,0.55);

  /* Type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid scale (>=1.25 steps) */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.9rem, 2rem + 4.2vw, 5.4rem);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;

  /* z-scale */
  --z-canvas: 0;
  --z-base: 1;
  --z-nav: 50;
  --z-menu: 60;
  --z-cookie: 70;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);          /* ease-out-quint-ish */
  --ease-2: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The 3D scene sits fixed behind everything. z-index 0 (NOT -1) so it stays
   above the body background but below page content. */
#pg-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  display: block;
  pointer-events: none;
}

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

::selection { background: var(--ink); color: var(--bg); }

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

/* ---- Shared primitives -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* All page content sits above the canvas */
main, header, footer { position: relative; z-index: var(--z-base); }

.section { position: relative; z-index: var(--z-base); padding-block: clamp(6.5rem, 13vw, 12rem); }

/* (Per-section dark scrims removed — text reads fine directly over the dark
   scene, and the scrim edges were showing as faint boxes between sections.) */
.scrim {
  position: relative;
}

/* Mono label / eyebrow */
.label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Section index marker (real sequence: 01..05 walk down the page) */
.index {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lux);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  flex-wrap: wrap;
}
.section-head .meta { display: flex; align-items: baseline; gap: 0.9rem; }
.section-head .rule { flex: 1 1 120px; height: 1px; background: var(--line-2); align-self: center; min-width: 40px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.1; }
p { text-wrap: pretty; }
.lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; max-width: 34ch; font-weight: 400; letter-spacing: -0.01em; }
.copy { color: var(--ink-2); max-width: 60ch; }

/* Corner-tick framing — the "instrument panel" signature */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 1px solid var(--line); opacity: 0.9;
}
.ticked::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ticked::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---- Buttons / trace-underline links ------------------------------------ */
.btn {
  --pad-y: 0.9rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
  position: relative;
  min-height: 44px;
}
.btn .arrow { transition: transform .5s var(--ease); position: relative; z-index: 1; }
.btn:hover { border-color: var(--lux-line); background: var(--surface-2); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); overflow: hidden; }
.btn--solid:hover { background: #fff; color: var(--bg); transform: translateY(-1px); box-shadow: 0 10px 34px -14px var(--lux-glow); }
/* champagne sheen sweep across the primary CTA on hover */
.btn--solid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(205,185,143,0.45) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: opacity .3s var(--ease);
}
.btn--solid:hover::after { opacity: 1; animation: cap-glimmer 1.9s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce){ .btn--solid:hover::after { animation: none; opacity: 0; } }
.btn--ghost { border-color: transparent; padding-inline: 0.2rem; }
.btn--ghost:hover { background: transparent; border-color: transparent; }

/* Animated data-trace underline (the pulse motif, echoing background.js) */
.trace {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.trace::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--lux-bright), transparent);
  background-size: 220% 100%;
  background-position: 100% 0;
  transform: scaleX(0.0); transform-origin: left;
  opacity: 0;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}
.trace:hover::after, .trace:focus-visible::after { transform: scaleX(1); opacity: 1; animation: trace-run 1.4s linear infinite; }
@keyframes trace-run { to { background-position: -120% 0; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem; }
.brand__mark { height: clamp(28px, 3.3vw, 36px); width: auto; display: block; }
/* trim the wordmark's line box to cap height so the text sits optically
   centred against the icon's vertical middle (no descender space pushing it up) */
.brand span:not(.dot) { text-box-trim: trim-both; text-box-edge: cap alphabetic; text-box: trim-both cap alphabetic; }
.brand .dot { width: 8px; height: 8px; background: var(--lux); border-radius: 50%; box-shadow: 0 0 12px 1px var(--lux-glow); animation: pulse-dot 3.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:.55; transform: scale(0.85);} 50%{opacity:1; transform: scale(1);} }
@media (prefers-reduced-motion: reduce){ .brand .dot { animation: none; } }
.brand b { font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); transition: color .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 3rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.hero__eyebrow .tick { width: 22px; height: 1px; background: var(--line); }
.hero h1 {
  font-size: var(--step-4);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 16ch;
}
.hero h1 .soft { color: var(--lux); font-weight: 500; }
.hero__sub { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 44ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.6; letter-spacing: -0.01em; font-weight: 400; }
.hero__actions { margin-top: clamp(2rem, 4vw, 2.75rem); display: flex; gap: 1rem; flex-wrap: wrap; }

/* capability marquee */
.marquee { position: relative; z-index: var(--z-base); border-block: 1px solid var(--line-2); overflow: hidden; padding-block: 1.05rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 3.5rem; white-space: nowrap; will-change: transform; animation: marquee 64s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__item::before { content: "◆"; color: var(--lux); font-size: 0.5rem; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track { animation: none; } }

/* ==========================================================================
   01 — COMPARISON  (us vs the generic alternative)
   ========================================================================== */
.compare__top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.col { padding: clamp(1.5rem, 3vw, 2.5rem); }
.col + .col { border-left: 1px solid var(--line); }
.col--them { background: transparent; }
.col--us { background: var(--surface-2); }
.col__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line-2); }
.col__title { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.col--them .col__title { color: var(--muted); }
.col__tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; padding: 0.25rem 0.55rem; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.col--us .col__tag { color: var(--lux); border-color: var(--lux-line); }
.clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.05rem; }
.clist li { display: grid; grid-template-columns: 20px 1fr; gap: 0.85rem; align-items: start; font-size: var(--step-0); line-height: 1.4; }
.col--them .clist li { color: var(--muted); }
.col--us .clist li { color: var(--ink); }
.mark { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.5; }
.mark--x { color: var(--faint); }
.mark--v { color: var(--lux); }
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.pill { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 0.45rem 0.85rem; }

/* ==========================================================================
   Shared glimmer keyframe — light-sheen sweep used on hover (reviews, CTA)
   ========================================================================== */
@keyframes cap-glimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ==========================================================================
   02 — HOW WE WORK  (process sequence)
   ========================================================================== */
.process { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.step {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 4.5rem 1fr; gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
  padding: clamp(1.9rem, 3.6vw, 2.9rem) 0.9rem;
  margin-inline: -0.9rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .5s var(--ease);
}
.step:hover { background: var(--surface); }
/* champagne glimmer sweep on hover — the light-sheen signature carried over */
.step::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 20%, var(--lux-dim) 45%, rgba(234,221,194,0.13) 50%, var(--lux-dim) 55%, transparent 80%);
  transform: translateX(-100%);
  transition: opacity .5s var(--ease);
}
.step:hover::after { opacity: 1; animation: cap-glimmer 2.8s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce){ .step:hover::after { animation: none; opacity: 0; } }
.step__no { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--lux); letter-spacing: 0.04em; padding-top: 0.4rem; }
.step__body { display: flex; flex-direction: column; gap: 0.55rem; }
.step__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.step__desc { color: var(--ink-2); font-size: var(--step-0); line-height: 1.6; max-width: 56ch; }

/* ==========================================================================
   03 — ENQUIRY  (multi-step form)
   ========================================================================== */
.book__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book__aside .lede { margin-top: 1.5rem; }
.book__aside .tags { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.25rem; }
.book__aside .tags span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.7rem; }
.book__aside .tags span::before { content: ""; width: 5px; height: 5px; background: var(--lux); border-radius: 50%; }
@media (min-width: 901px){ .book__aside { position: sticky; top: 100px; align-self: start; } }

/* visually-hidden but available to screen readers */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.enq-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,12,13,0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: clamp(1.35rem, 3vw, 2.2rem); }

/* header: step counter + hairline progress */
.enq__head { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.enq__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.enq__count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.enq__track { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.enq__track i { position: absolute; inset: 0; background: var(--lux); box-shadow: 0 0 10px var(--lux-glow); transform: scaleX(0.1); transform-origin: left; transition: transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce){ .enq__track i { transition: none; } }

/* step transition */
.enq__step { animation: enq-in .28s var(--ease) both; }
@keyframes enq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .enq__step { animation: none; } }

.enq__q { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 0.5rem; }
.enq__q:focus { outline: none; }
.enq__req { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lux); border: 1px solid var(--lux-line); border-radius: 100px; padding: 0.15rem 0.5rem; margin-left: 0.6rem; vertical-align: middle; white-space: nowrap; }
.enq__hint { color: var(--muted); font-size: var(--step-0); margin: 0 0 1.5rem; max-width: 48ch; }

/* Q1 tiles */
.enq__tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 0.6rem; }
@media (min-width: 680px){ .enq__tiles { grid-template-columns: repeat(4, 1fr); } }
.enq-tile { display: flex; align-items: center; text-align: left; min-height: 78px; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; line-height: 1.3; cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease); }
.enq-tile:hover { border-color: rgba(255,255,255,0.4); background: var(--surface-2); }
.enq-tile[aria-pressed="true"] { border-color: var(--lux); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--lux-line); }

/* chips (Q2, Q4, Q8) */
.enq__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.enq-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--ink-2); font-family: var(--font-display); font-size: 0.9rem; line-height: 1.1; min-height: 40px; cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.enq-chip:hover { border-color: rgba(255,255,255,0.4); color: var(--ink); }
.enq-chip[aria-pressed="true"] { border-color: var(--lux); color: var(--ink); background: var(--surface-2); }
.enq-chip[aria-pressed="true"] .enq-chip__dot { background: var(--lux); border-color: var(--lux); }
.enq-chip__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--faint); flex: none; transition: background .25s var(--ease), border-color .25s var(--ease); }
.enq-chip[hidden] { display: none; }

/* Q3 stacked rows */
.enq__rows { display: flex; flex-direction: column; gap: 0.5rem; }
.enq-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; width: 100%; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-size: var(--step-0); font-weight: 500; min-height: 58px; cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.enq-row:hover { border-color: rgba(255,255,255,0.4); background: var(--surface-2); transform: translateX(3px); }
.enq-row[aria-pressed="true"] { border-color: var(--lux); background: var(--surface-2); }
.enq-row__tick { font-family: var(--font-mono); font-size: 0.85rem; color: var(--faint); flex: none; }
.enq-row[aria-pressed="true"] .enq-row__tick { color: var(--lux); }

/* revealed "Other / Something else" text input */
.enq__other { margin-top: 0.75rem; }
.enq__other[hidden] { display: none; }

/* Q4 accordion */
.enq__search { position: sticky; top: 84px; z-index: 3; margin: -0.4rem 0 0.9rem; padding: 0.5rem 0; background: rgba(12,12,13,0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.enq__search input { width: 100%; font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; min-height: 46px; }
.enq__search input::placeholder { color: var(--faint); }
.enq__search input:focus { outline: none; border-color: rgba(255,255,255,0.5); background: var(--surface-2); }
.enq__cats { display: flex; flex-direction: column; gap: 0.5rem; }
.enq-cat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.enq-cat.is-hidden { display: none; }
.enq-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.85rem 1rem; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.enq-cat__head:hover { background: var(--surface-2); }
.enq-cat__meta { display: flex; align-items: center; gap: 0.7rem; }
.enq-cat__badge { font-family: var(--font-mono); font-size: 0.66rem; color: var(--lux); border: 1px solid var(--lux-line); border-radius: 100px; padding: 0.1rem 0.5rem; }
.enq-cat__badge[hidden] { display: none; }
.enq-cat__chev { color: var(--faint); transition: transform .3s var(--ease); }
.enq-cat__head[aria-expanded="true"] .enq-cat__chev { transform: rotate(180deg); }
.enq-cat__panel { padding: 0.9rem 1rem 1.05rem; border-top: 1px solid var(--line-2); }
.enq-cat__panel[hidden] { display: none; }
.enq__always { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.enq__always-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.7rem; }

/* Q4 sticky footer */
/* full-width bar flush to the container edges + a hairline top — reads as an
   attached footer, not a floating box */
.enq__sticky { position: sticky; bottom: 0; z-index: 3; margin: 0.7rem calc(-1 * clamp(1.35rem, 3vw, 2.2rem)) calc(-1 * clamp(1.35rem, 3vw, 2.2rem)); padding: 0.9rem clamp(1.35rem, 3vw, 2.2rem); border-top: 1px solid var(--line); background: rgba(13,13,15,0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.enq__selected { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Q8 grouped chips */
.enq__group + .enq__group { margin-top: 1.1rem; }
.enq__group-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.6rem; }

/* textarea + faint in-box overlay (Q5,6,7,9) */
.ta-field { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s var(--ease), background .25s var(--ease); }
.ta-field:focus-within { border-color: rgba(255,255,255,0.5); background: var(--surface-2); }
.ta-field.is-invalid { border-color: #b46b6b; }
.ta-hint { position: absolute; inset: 0; margin: 0; padding: 0.9rem 1.05rem; font-family: var(--font-display); font-size: var(--step-0); line-height: 1.7; color: rgba(154,154,161,0.42); white-space: pre-wrap; pointer-events: none; transition: opacity .12s linear; }
.ta-hint.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce){ .ta-hint { transition: none; } }
.ta { display: block; width: 100%; box-sizing: border-box; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-size: var(--step-0); line-height: 1.7; padding: 0.9rem 1.05rem; min-height: calc(6 * 1.7em + 1.8rem); overflow: hidden; }

/* contact fields (Q10) */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field label .opt-tag { text-transform: none; letter-spacing: 0; color: var(--faint); }
.field input {
  font-family: var(--font-display); font-size: var(--step-0); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 1rem; transition: border-color .3s var(--ease), background .3s var(--ease);
  min-height: 48px; width: 100%; box-sizing: border-box;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: rgba(255,255,255,0.5); background: var(--surface-2); }
.field input[aria-invalid="true"] { border-color: #b46b6b; }
.field__adorn { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .3s var(--ease), background .3s var(--ease); }
.field__adorn:focus-within { border-color: rgba(255,255,255,0.5); background: var(--surface-2); }
.field__adorn span { display: flex; align-items: center; padding: 0 0.35rem 0 1rem; color: var(--faint); font-family: var(--font-mono); font-size: 0.9rem; }
.field__adorn input { border: 0; background: transparent; padding-left: 0.35rem; }
.field__adorn input:focus { border: 0; background: transparent; }
.field__err { color: #d98a8a; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.03em; margin-top: 0.1rem; }
.field__err[hidden] { display: none; }

/* nav controls */
.enq__nav { display: flex; align-items: center; gap: 0.9rem; margin-top: clamp(1.5rem, 3vw, 2rem); }
.enq__nav--sticky { margin-top: 0; }
.enq__continue { margin-left: auto; }
.enq__skip { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; transition: color .3s; }
.enq__skip:hover { color: var(--ink); }
.link-mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: none; border: none; padding: 0.4rem 0; cursor: pointer; transition: color .3s; }
.link-mono:hover { color: var(--ink); }
.link-mono[hidden] { display: none; }

.enq__legal { margin-top: 1rem; font-size: 0.78rem; color: var(--faint); line-height: 1.5; }
.enq__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.enq__error { margin-top: 1rem; color: #d98a8a; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; }
.enq__error[hidden] { display: none; }
.enq__note { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
.enq__note a { color: var(--ink); text-decoration: underline; }

/* honeypot: off-screen, never shown */
.enq__hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* success */
.enq__done { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 0.5rem; animation: enq-in .4s var(--ease) both; }
.enq__done[hidden] { display: none; }
.enq__done .ok { width: 52px; height: 52px; border: 1px solid var(--lux-line); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.75rem; font-family: var(--font-mono); color: var(--lux); box-shadow: 0 0 30px var(--lux-dim); }
.enq__done h3 { font-size: var(--step-2); letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.enq__done h3:focus { outline: none; }
.enq__done p { color: var(--ink-2); max-width: 42ch; margin: 0 auto; }
@media (prefers-reduced-motion: reduce){ .enq__done { animation: none; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; z-index: var(--z-base); border-top: 1px solid var(--line); background: rgba(8,8,9,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.footer__brand .brand { font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--muted); max-width: 34ch; font-size: 0.92rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 1.1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a { color: var(--ink-2); font-size: 0.92rem; transition: color .3s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line-2); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a, .footer__copy { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); }
.footer__legal a:hover { color: var(--ink-2); }
.footer__note { margin-top: 1.25rem; color: var(--faint); font-size: 0.76rem; max-width: 70ch; line-height: 1.6; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1.25rem; z-index: var(--z-cookie); max-width: 560px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,12,13,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 1.25rem 1.4rem; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; transform: translateY(160%); transition: transform .6s var(--ease); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cookie.is-in { transform: none; }
.cookie p { margin: 0; font-size: 0.82rem; color: var(--ink-2); flex: 1 1 240px; line-height: 1.5; }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 0.6rem; }
.cookie .btn { --pad-y: 0.6rem; --pad-x: 1rem; min-height: 40px; }
@media (prefers-reduced-motion: reduce){ .cookie { transition: none; } }

/* ==========================================================================
   REVEAL (enhancement over already-visible content)
   ========================================================================== */
/* Content is visible by DEFAULT. The hidden start-state is opted into only
   when JS confirms the animation can actually run (visible tab, motion
   allowed) by adding .reveal-on to <html>. On a hidden/headless renderer we
   never hide, so the page can never ship blank. */
.reveal { opacity: 1; transform: none; }
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal-on .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { padding-top: 140px; padding-bottom: clamp(4rem, 8vw, 7rem); min-height: 80vh; }
.legal__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__head h1 { font-size: var(--step-3); letter-spacing: -0.03em; margin-top: 1rem; }
.legal__body { max-width: 68ch; }
.legal__body h2 { font-size: var(--step-1); margin: 2.5rem 0 0.9rem; letter-spacing: -0.015em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-2); font-size: var(--step-0); line-height: 1.7; }
.legal__body ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--faint); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .compare__top { grid-template-columns: 1fr; }
  .book__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.75rem; padding: 2rem var(--gutter); background: rgba(9,9,10,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .5s var(--ease); z-index: var(--z-menu); }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1rem; }
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; z-index: var(--z-menu); }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease); }
  .nav__toggle.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav__toggle.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
  .compare__grid { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .quiz__opts.cols-2 { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px){
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* No-JS fallback: show everything, hide the toggle behaviour gracefully */
.no-js .nav__toggle { display: none; }
