/* ============================================================
   AMRIX Creative — style.css v3 (white-first premium redesign)
   Light canvas · brand gradients as accent · Raleway display · Inter body
   Floating gradient threads · subtle grid · soft noise · prefers-reduced-motion respected
   ============================================================ */

/* ── 0. AMRIX SWOOSH MOTION SYSTEM — motion tokens ──
   Colours sampled from logo "Amrix Creative Logo Fiver Social.png"
   (swoosh blue low end, swoosh blue deep end, swoosh pink, swoosh magenta). */
:root {
  --amrix-cyan:        #5BC6ED;
  --amrix-blue:        #1A5BE8;
  --amrix-blue-deep:   #0F2A9B;
  --amrix-pink:        #EC4899;
  --amrix-magenta:     #BE185D;
  --amrix-ink:         #0E0F14;

  --motion-ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-duration-slow:    28s;
  --motion-duration-section: 22s;
  --motion-duration-accent:  18s;
}

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Surfaces — light-first */
  --bg:              #ffffff;
  --bg-1:            #fafafb;
  --bg-2:            #f4f5f7;
  --bg-3:            #ebecef;
  --bg-card:         #ffffff;
  --bg-card-alt:     #fafafb;
  --bg-dark:         #0a0b10;
  --bg-dark-2:       #12141c;

  /* Text */
  --text:            #0e0f14;
  --text-dim:        #3d4252;
  --text-muted:      #6b7280;
  --text-inv:        #f4f6fb;
  --text-inv-dim:    #b7bdcc;

  /* Borders */
  --border:          rgba(14,15,20,0.08);
  --border-bright:   rgba(14,15,20,0.18);
  --border-dark:     rgba(255,255,255,0.10);
  --border-dark-bright: rgba(255,255,255,0.22);
  --grid-line:       rgba(14,15,20,0.04);

  /* Brand — AMRIX Creative */
  --brand-blue-1:    #6EC1E4;
  --brand-blue-2:    #2B4FFF;
  --brand-pink-1:    #F8B4D9;
  --brand-pink-2:    #EC4899;
  --brand-blue-ink:  #1f3ebf;  /* deeper for readable text on light */
  --brand-pink-ink:  #b83477;

  --grad-blue:       linear-gradient(135deg, var(--brand-blue-1) 0%, var(--brand-blue-2) 100%);
  --grad-pink:       linear-gradient(135deg, var(--brand-pink-1) 0%, var(--brand-pink-2) 100%);
  --grad-duo:        linear-gradient(135deg, var(--brand-blue-1) 0%, var(--brand-blue-2) 55%, var(--brand-pink-2) 100%);
  --grad-ink:        linear-gradient(135deg, var(--brand-blue-ink) 0%, var(--brand-pink-ink) 100%);

  /* Shadows — light-aware */
  --shadow-xs:       0 1px 2px rgba(14,15,20,0.04);
  --shadow-sm:       0 2px 6px rgba(14,15,20,0.04), 0 1px 2px rgba(14,15,20,0.03);
  --shadow-md:       0 10px 30px rgba(14,15,20,0.06), 0 2px 6px rgba(14,15,20,0.04);
  --shadow-lg:       0 20px 50px rgba(14,15,20,0.08), 0 4px 12px rgba(14,15,20,0.05);
  --shadow-brand:    0 18px 48px rgba(43,79,255,0.18);

  /* Motion */
  --t-fast:          0.2s ease;
  --t-med:           0.4s cubic-bezier(.22,.68,0,1.2);
  --t-slow:          0.8s cubic-bezier(.22,.68,0,1);

  /* Radius + layout */
  --radius-sm:       10px;
  --radius:          16px;
  --radius-lg:       24px;
  --radius-xl:       32px;
  --nav-h:           72px;

  /* Typography — fluid */
  --fs-xs:           clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --fs-sm:           clamp(0.88rem, 0.84rem + 0.2vw, 0.95rem);
  --fs-base:         clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  --fs-lead:         clamp(1.08rem, 1rem + 0.45vw, 1.28rem);
  --fs-h3:           clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  --fs-h2:           clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h1:           clamp(2.8rem, 1.9rem + 4.2vw, 5.6rem);

  /* Display font family */
  --font-display:    'Raleway', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --track-wide:      0.18em;
  --track-mid:       0.08em;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  color-scheme: light;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--brand-blue-1); color: white; }

/* ── 2B. AMRIX SWOOSH MOTION SYSTEM ──
   Recognisable within 3s as derived from the AMRIX logo swooshes.
   Two SVG ribbons per stage: blue (cyan→deep blue) and pink (magenta).
   Drift animation + scroll parallax (set via JS updating --swoosh-sy).
   White dominance preserved; ribbons live behind text (z-index: 0).
   Reduced-motion branch freezes ribbons at a readable pose. */

.swoosh-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  --swoosh-sy: 0px; /* parallax offset, updated by JS */
}
.swoosh-stage--hero   { position: absolute; }
.swoosh-stage--fixed  { position: fixed; }
.swoosh-stage--echo   { opacity: 0.55; }
.swoosh-stage--accent { opacity: 0.85; }

.swoosh-parallax {
  position: absolute;
  inset: -10% 0;
  transform: translate3d(0, var(--swoosh-sy), 0);
  transition: transform 0.04s linear;
  will-change: transform;
}

.swoosh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  will-change: transform, opacity;
}
.swoosh--blue {
  animation: swoosh-drift-blue var(--motion-duration-slow) var(--motion-ease-premium) infinite;
  filter: blur(3px) drop-shadow(0 14px 40px rgba(26, 91, 232, 0.16));
}
.swoosh--pink {
  animation: swoosh-drift-pink var(--motion-duration-accent) var(--motion-ease-premium) infinite reverse;
  filter: blur(4px) drop-shadow(0 12px 32px rgba(236, 72, 153, 0.18));
  opacity: 0.78;
}

/* Text-safety vignette — a soft white radial glow behind hero content zones.
   Subtle enough not to wash out the ribbons, strong enough to keep text crisp. */
.swoosh-stage--hero::after,
.swoosh-stage--fixed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 32% 42%, rgba(255,255,255,0.72), rgba(255,255,255,0) 72%);
  z-index: 2;
}
.swoosh--echo {
  animation-duration: var(--motion-duration-section);
  transform-origin: 20% 50%;
  opacity: 0.5;
  filter: blur(2.5px);
}

/* Each swoosh breathes: a slow glide + gentle scale. Never so fast the eye
   tracks it; always so present the eye notices. Phase offset so blue and
   pink don't peak together — keeps the composition alive. */
@keyframes swoosh-drift-blue {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate3d(-36px, -18px, 0) rotate(-1deg) scale(1.04); }
  66%      { transform: translate3d(22px, 10px, 0) rotate(0.6deg) scale(0.99); }
}
@keyframes swoosh-drift-pink {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate3d(30px, 26px, 0) rotate(1.6deg) scale(0.96); }
}
@keyframes swoosh-drift-echo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  50%      { transform: translate3d(40px, -10px, 0) scale(1.03); opacity: 0.58; }
}

/* Reduced-motion: freeze at a flattering pose, kill parallax. Static stays
   readable + beautiful — gradients + blur carry it even without motion. */
@media (prefers-reduced-motion: reduce) {
  .swoosh--blue, .swoosh--pink, .swoosh--echo { animation: none; }
  .swoosh-parallax { transform: none; }
}

/* On narrow screens: shrink blur radius + drop parallax amplitude to keep
   mobile performant. Motion still reads as brand, just calmer. */
@media (max-width: 640px) {
  .swoosh--blue { filter: blur(1px); }
  .swoosh--pink { filter: blur(1.5px); opacity: 0.82; }
  .swoosh-stage--echo { opacity: 0.38; }
}

/* ── 2C. AMRIX 3D SWOOSH — Pass 7 WebGL ribbon scene ──
   Canvas layer on top of the SVG fallback. When JS boots Three.js and
   WebGL initialises cleanly, body.webgl-ready is set and the SVG fades
   out. If WebGL fails or Three.js is unavailable, the flag never lands
   and the SVG stays fully visible. */
.swoosh3d-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.swoosh3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* Fade SVG fallback out when WebGL takes over — keeps one visual layer live. */
body.webgl-ready .swoosh-stage {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
/* Reduced-motion + WebGL: keep SVG partially visible (static but on-brand). */
@media (prefers-reduced-motion: reduce) {
  body.webgl-ready .swoosh-stage { opacity: 0.55; }
}

/* ── 3. AMBIENT BACKGROUND — editorial, not SaaS ──
   Pass 15 Picky-Designer audit: the old 56px animated grid + loud noise +
   full-viewport aurora read as "generic AI agency template". Replaced with a
   quieter, type-foundry-adjacent system: no grid, dialed-down paper grain
   only, and the aurora moved out of this layer into per-page hero stages
   (see .aurora / .swoosh-stage usages) so the body stays white-premium. */

/* Paper grain — just enough tooth to kill flat-white digital sterility.
   Opacity dropped from 0.5 to 0.18, multiply blend preserved. */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.38 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

/* Floating gradient threads — the "ambient" layer (reuses .aurora markup from pages) */
.aurora {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;                /* was 0.38 — dialed to read as ambient depth, not hero blob */
  will-change: transform;
}
.aurora::before {
  width: 42vw; height: 42vw;    /* was 55vw — smaller footprint, less template-blob energy */
  top: -12vw; left: -10vw;
  background: var(--grad-blue);
  animation: drift-a 28s ease-in-out infinite;
}
.aurora::after {
  width: 36vw; height: 36vw;    /* was 45vw */
  bottom: -14vw; right: -10vw;
  background: var(--grad-pink);
  animation: drift-b 34s ease-in-out infinite;
}

/* Extra "flutter" layer — small moving ribbons behind sections */
.threads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.thread {
  position: absolute;
  width: 240px; height: 240px;   /* was 280 — less blob dominance */
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;                 /* was 0.28 — ambient-only, not "look at me" */
  will-change: transform;
}
.thread--tl { top: 5%; left: 3%; background: var(--grad-blue); animation: float-slow 22s ease-in-out infinite; }
.thread--tr { top: 8%; right: 2%; background: var(--grad-pink); animation: float-slow 26s ease-in-out infinite reverse; }
.thread--bl { bottom: 4%; left: 6%; background: var(--grad-pink); animation: drift-a 31s ease-in-out infinite reverse; }
.thread--br { bottom: 10%; right: 4%; background: var(--grad-blue); animation: drift-b 29s ease-in-out infinite; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(35px, -20px) scale(1.08); }
  66%      { transform: translate(-20px, 25px) scale(0.95); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-40px, 30px) rotate(6deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.22; }
  50%      { transform: translate(18px, -14px) scale(1.14); opacity: 0.34; }
}
/* grid-shift keyframe removed Pass 15 — grid background was killed */

/* Reduce motion for users who ask */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  .aurora::before, .aurora::after, .thread { animation: none; }
}

/* ── 4. TYPOGRAPHY ── */
/* Typography — Pass 8 premium-agency discipline.
   Weight tuning: thin-Raleway (200) on hero was delicate + generic; moved
   to 300 with tighter kerning so headlines read as confident editorial.
   H2 bumped 300 -> 400 for section presence. H3 tightened -0.005 -> -0.012.
   Body line-height 1.7 -> 1.55 for reading confidence. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.042em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.028em; line-height: 1.05; }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.012em; line-height: 1.18; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.002em; }
p { color: var(--text-dim); line-height: 1.55; }

.gradient-text {
  background: var(--grad-duo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.gradient-text--pink {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.gradient-text--ink {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;                 /* 600 -> 500: lighter, more editorial */
  letter-spacing: 0.14em;           /* 0.18 -> 0.14: less shouty */
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  padding: 7px 14px;
  border: 1px solid rgba(43,79,255,0.18);
  border-radius: 100px;
  background: rgba(110,193,228,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── 5. LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.container--sm { max-width: 760px; }
.section {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
  z-index: 2;
}
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 50%, transparent); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: clamp(32px, 5vw, 48px) 24px;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-inv); }
.section--dark p { color: var(--text-inv-dim); }
.section--dark .eyebrow {
  color: var(--brand-blue-1);
  border-color: rgba(110,193,228,0.3);
  background: rgba(110,193,228,0.08);
}
.section--dark .btn--ghost {
  border-color: var(--border-dark-bright);
  color: var(--text-inv);
}
.section--dark .btn--ghost:hover { background: rgba(255,255,255,0.05); }

/* ── 6. NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.nav.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__bar {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* Canva master is an RGBA transparent PNG — no background to strip. */
}
.nav__logo-wordmark {
  height: 16px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  opacity: 0.92;
  transition: opacity var(--t-fast);
}
.nav__logo-link:hover .nav__logo-wordmark { opacity: 1; }
@media (max-width: 520px) {
  .nav__logo-wordmark { display: none; }
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color var(--t-fast);
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 16px; right: 16px;
    padding: 18px; border-radius: var(--radius);
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-fast), opacity var(--t-fast);
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav__link { padding: 10px 12px; border-radius: var(--radius-sm); }
  .nav__link:hover { background: var(--bg-2); }
}

/* ── 7. BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;        /* natural optical kerning on Inter */
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-ink);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 22px 54px rgba(43,79,255,0.26); }
.btn--pink {
  background: var(--grad-pink);
  color: #1a0a18;
  box-shadow: 0 10px 30px rgba(236,72,153,0.22);
}
.btn--pink:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-2); border-color: rgba(14,15,20,0.28); }
.btn--lg { padding: 14px 26px; font-size: var(--fs-base); }

/* Glass pill — Spline slot 005 adaptation (CC0 1.0 · yairmorr)
   Frosted glass + 1px gradient edge. Brand-pink emissive on .is-active. */
.btn--glass {
  position: relative;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
          backdrop-filter: blur(14px) saturate(1.15);
  color: var(--text);
  border-color: rgba(14,15,20,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 8px 22px rgba(14,15,20,0.06);
}
.btn--glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(91,198,237,0.55), rgba(43,79,255,0.22) 55%, rgba(236,72,153,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.btn--glass:hover {
  background: rgba(255,255,255,0.78);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 14px 32px rgba(43,79,255,0.12);
}
.btn--glass.is-active,
.btn--glass[aria-pressed="true"] {
  color: var(--brand-pink-ink);
  background: rgba(255,236,247,0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 18px 42px rgba(236,72,153,0.22),
    0 0 0 1px rgba(236,72,153,0.35);
}

/* ── 8. HERO ── */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 clamp(64px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: 900px; position: relative; z-index: 3; }
.hero__title {
  margin: 20px 0 22px;
  font-size: var(--fs-h1);
  font-weight: 300;                /* consistent with h1 */
  line-height: 0.98;
  letter-spacing: -0.045em;        /* ultra-tight, editorial */
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 34px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero__stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.5rem);
  font-weight: 300;
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero__stat-lbl {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-top: 4px;
}

/* Hero ownership strip — Pass 15 replacement for the big-stat block.
   Tighter, less template, reads as an editorial ownership receipt rather than
   a SaaS-landing stat grid. */
.hero__ownstrip {
  list-style: none;
  margin: 40px 0 0;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero__ownstrip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero__owntick {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(43,79,255,0.08);
  color: var(--brand-blue-ink);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(43,79,255,0.22);
}
.hero__ownstrip-tag {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__ownstrip-tag em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (max-width: 620px) {
  .hero__ownstrip { padding: 18px 20px; gap: 14px 20px; }
  .hero__ownstrip-tag { margin-left: 0; width: 100%; }
}

/* ── 9. PAGE HERO (non-home) ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin: 18px 0 14px; }
.page-hero p { font-size: var(--fs-lead); max-width: 640px; }

/* ── 10. CARDS / GRID ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background var(--t-fast);
}
.card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { background: var(--grad-duo); }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad-ink);
  color: #fff;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card--pink .card__icon { background: var(--grad-pink); color: #1a0a18; }
.card h3 { margin-bottom: 10px; color: var(--text); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.22; }
.card p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.58; }
.card__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  margin-bottom: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(43,79,255,0.24);
  background: rgba(110,193,228,0.08);
  border-radius: 100px;
}
.card__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-blue-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-bottom: 1px solid rgba(43,79,255,0.3);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.card__link:hover { color: var(--text); border-color: var(--text); }
.card--pink .card__link { color: var(--brand-pink-ink); border-color: rgba(236,72,153,0.3); }
.card--pink .card__link:hover { color: var(--text); border-color: var(--text); }
.card--pink .card__eyebrow { color: var(--brand-pink-ink); border-color: rgba(236,72,153,0.26); background: rgba(248,180,217,0.08); }

/* Stackable Glass — Spline slot 006 adaptation (CC0 1.0 · spline official).
   Two ghost cards offset behind the primary card; on hover they fan outward
   revealing layered depth. Pure CSS — no geometry, no JS. */
.card--stackable { isolation: isolate; overflow: visible; }
.card--stackable::after,
.card--stackable > .card__stack {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  z-index: -1;
  transition: transform var(--t-med), opacity var(--t-med);
  pointer-events: none;
}
.card--stackable::after {
  transform: translate(10px, 10px);
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(110,193,228,0.35), rgba(43,79,255,0.15));
  border-color: rgba(43,79,255,0.12);
}
.card--stackable > .card__stack {
  transform: translate(20px, 20px);
  opacity: 0.45;
  background: linear-gradient(135deg, rgba(91,198,237,0.22), rgba(236,72,153,0.14));
  border-color: rgba(236,72,153,0.10);
  z-index: -2;
}
.card--stackable:hover::after {
  transform: translate(16px, 14px) rotate(1.2deg);
  opacity: 0.92;
}
.card--stackable:hover > .card__stack {
  transform: translate(30px, 26px) rotate(2.6deg);
  opacity: 0.75;
}
/* When offer grid lives in the Ownership Rescue / Remote Access band
   (dark backgrounds), invert the ghost tint. */
.section--dark .card--stackable::after {
  background: linear-gradient(135deg, rgba(110,193,228,0.10), rgba(43,79,255,0.05));
  border-color: rgba(255,255,255,0.08);
}
.section--dark .card--stackable > .card__stack {
  background: linear-gradient(135deg, rgba(91,198,237,0.08), rgba(236,72,153,0.04));
  border-color: rgba(255,255,255,0.08);
}
/* Respect reduced motion — kill the hover fan */
@media (prefers-reduced-motion: reduce) {
  .card--stackable:hover::after,
  .card--stackable:hover > .card__stack { transform: none; }
}

.section-footnote {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.section-footnote strong { color: var(--text); font-weight: 600; }

/* ── Availability display (book.html side panel) ── */
.avail__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.avail__day { display: contents; }
.avail__day-label {
  grid-column: span 1;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.avail__slot {
  grid-column: span 1;
  padding: 6px 0;
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.avail__slot--open   { background: rgba(110,193,228,0.1); color: var(--brand-blue-ink); border-color: rgba(43,79,255,0.18); }
.avail__slot--open:hover { background: rgba(110,193,228,0.18); border-color: rgba(43,79,255,0.35); }
.avail__slot--held   { background: rgba(248,180,217,0.08); color: var(--brand-pink-ink); border-color: rgba(236,72,153,0.18); }
.avail__slot--booked { background: var(--bg-2); color: var(--text-muted); border-color: var(--border); text-decoration: line-through; }
.avail__slot--off    { background: transparent; color: var(--text-muted); opacity: 0.4; }
.avail__legend {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.avail__legend span { display: inline-flex; align-items: center; gap: 6px; }
.avail__legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
}
.avail__legend .dot-open   { background: rgba(43,79,255,0.35); }
.avail__legend .dot-held   { background: rgba(236,72,153,0.35); }
.avail__legend .dot-booked { background: rgba(14,15,20,0.18); }
/* Source-of-truth badge: shown only when availability is live or fallback
   (never on the default preview state). Keeps the integration legible without
   noise on the default visitor view. */
.avail__source {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.avail__source--live     { color: var(--brand-blue-ink); background: rgba(43,79,255,0.08);   border-color: rgba(43,79,255,0.22); }
.avail__source--fallback { color: var(--brand-pink-ink); background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.22); }
/* Cal.com iframe mode — let the embed span the full grid width. */
.avail__grid.avail__cal-mode { grid-template-columns: 1fr; padding: 10px; }
.avail__cal-iframe { background: transparent; }
@media (max-width: 520px) {
  .avail__grid { grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px; }
  .avail__slot { padding: 4px 0; font-size: 0.7rem; }
  .avail__source { margin-left: 0; }
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Wide card — spans 2 grid columns at tablet+ widths to fill awkward remainder cells */
@media (min-width: 720px) {
  .card--wide { grid-column: span 2; }
}

/* ── 11. SECTION HEADER ── */
.section-header { margin-bottom: 52px; max-width: 760px; }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin: 16px 0 14px; }
.section-header p { color: var(--text-dim); font-size: var(--fs-lead); }

/* ── 11A. EDITORIAL FRAME — Spline slot 007 adaptation (CC0 1.0 · DesignGabor)
   Thin grid-line scaffolding that gives a section type-foundry weight without
   adding colour. Usage: wrap `.section-header` in `.editorial-frame` and the
   four corner ticks + mid-vertical rule render automatically. ── */
.editorial-frame {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 48px);
  margin-bottom: 52px;
}
.editorial-frame::before,
.editorial-frame::after {
  content: "";
  position: absolute;
  background: rgba(14,15,20,0.08);
  pointer-events: none;
}
/* Top rule with corner ticks */
.editorial-frame::before {
  top: 0; left: 0; right: 0; height: 1px;
  box-shadow:
    -0.5px 0 0 rgba(14,15,20,0.08),
    0 8px 0 -7.5px rgba(14,15,20,0.20),    /* left tick down */
    100% 8px 0 -7.5px rgba(14,15,20,0.20); /* right tick down */
}
/* Bottom rule + a thin vertical ruler on the left */
.editorial-frame::after {
  bottom: 0; left: 0; right: 0; height: 1px;
}
.editorial-frame > .editorial-frame__rule {
  position: absolute;
  top: 18%; bottom: 18%;
  width: 1px;
  background: rgba(14,15,20,0.08);
  pointer-events: none;
}
.editorial-frame > .editorial-frame__rule--l { left: 0; }
.editorial-frame > .editorial-frame__rule--r { right: 0; }
/* Small corner ticks — pseudo layers */
.editorial-frame .editorial-frame__tick {
  position: absolute; width: 10px; height: 10px;
  border-style: solid; border-color: rgba(14,15,20,0.22);
  pointer-events: none;
}
.editorial-frame .editorial-frame__tick--tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.editorial-frame .editorial-frame__tick--tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.editorial-frame .editorial-frame__tick--bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.editorial-frame .editorial-frame__tick--br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
/* Section-header inside a frame sheds its own bottom margin */
.editorial-frame .section-header { margin-bottom: 0; }
/* Editorial kicker — the small mark that sits above a framed heading (·§· pattern) */
.editorial-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.editorial-kicker::before,
.editorial-kicker::after {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* ── 12A. FEATURED BAND (Ownership Rescue / Remote Access) ── */
.featured {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0;
  margin: clamp(40px, 6vw, 64px) 0;
  overflow: hidden;
  isolation: isolate;
}
.featured::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(72% 120% at 0% 0%, rgba(110,193,228,0.18), transparent 60%),
    radial-gradient(70% 100% at 100% 100%, rgba(248,180,217,0.22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 50%, var(--bg) 100%);
}
.featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}
.featured--pink::before {
  background:
    radial-gradient(72% 120% at 100% 0%, rgba(248,180,217,0.25), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(110,193,228,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 50%, var(--bg) 100%);
}
.featured__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .featured__inner { grid-template-columns: 1fr; gap: 36px; }
}
.featured__title { margin: 14px 0 18px; }
.featured__lede { font-size: var(--fs-lead); margin-bottom: 26px; color: var(--text-dim); }
.featured__list { display: grid; gap: 12px; margin-bottom: 28px; }
.featured__list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-dim); font-size: var(--fs-base);
}
.featured__check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; margin-top: 3px;
}
.featured--pink .featured__check { background: var(--grad-pink); color: #1a0a18; }
.featured__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.featured__panel {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.featured__panel h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  margin-bottom: 14px;
  font-weight: 600;
}
.featured__panel ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.featured__panel ul li:last-child { border-bottom: none; }
.featured__panel strong { color: var(--text); font-weight: 600; }

/* ── 12B. FORM ── */
.form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form__row label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.form__row input,
.form__row textarea,
.form__row select {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form__row input:focus,
.form__row textarea:focus,
.form__row select:focus {
  outline: none;
  border-color: var(--brand-blue-2);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(43,79,255,0.1);
}
.form__row textarea { resize: vertical; min-height: 120px; }
.form__row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .form__row-grid { grid-template-columns: 1fr; }
}
.form__honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.form__note {
  font-size: var(--fs-xs); color: var(--text-muted); margin-top: 12px; line-height: 1.6;
}
.form__status {
  margin-top: 12px; font-size: var(--fs-sm); color: var(--brand-blue-ink);
  min-height: 1.5em;
}

/* ── 12C. CONTACT LIST ── */
.contact__list { display: grid; gap: 14px; margin-bottom: 24px; }
.contact__list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.contact__lbl {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.contact__val { color: var(--text); font-weight: 500; }
a.contact__val { color: var(--brand-blue-ink); }
a.contact__val:hover { color: var(--text); }

/* ── 12D. LEGAL / CONTENT BODY ── */
.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 14px;
  color: var(--text-dim);
}
.legal-content ul {
  margin: 12px 0 16px;
  padding-left: 22px;
}
.legal-content ul li {
  list-style: disc outside;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal-content a { color: var(--brand-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--text); }
.legal-content strong { color: var(--text); }

.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(236,72,153,0.22);
  background: rgba(248,180,217,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.draft-banner strong { color: var(--brand-pink-ink); }

/* ── 12E. ENQUIRY PATH CARDS ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.path-card {
  position: relative;
  padding: 16px 18px;
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
          backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  isolation: isolate;
}
.path-card:hover {
  border-color: transparent;
  background: rgba(255,255,255,0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 10px 26px rgba(14,15,20,0.07);
  transform: translateY(-1px);
}
/* Gradient edge on hover + active (Spline slot 005 + 006 mashup) */
.path-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background var(--t-fast), opacity var(--t-fast);
  opacity: 0;
}
.path-card:hover::before {
  background: linear-gradient(135deg, rgba(91,198,237,0.55), rgba(43,79,255,0.28) 55%, rgba(236,72,153,0.45));
  opacity: 1;
}
/* Active: warm AMRIX pink emissive halo (the Spline slot 005 active-state translation) */
.path-card.active {
  border-color: transparent;
  background: rgba(255,236,247,0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 18px 42px rgba(236,72,153,0.22),
    0 0 0 1px rgba(236,72,153,0.35);
  transform: translateY(-1px);
}
.path-card.active::before {
  background: linear-gradient(135deg, rgba(236,72,153,0.65), rgba(190,24,93,0.35));
  opacity: 1;
}
.path-card.active .path-card__title { color: var(--brand-pink-ink); }
.path-card__title { font-weight: 600; color: var(--text); font-size: var(--fs-base); }
.path-card__sub { font-size: var(--fs-xs); color: var(--text-muted); }
.path-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

/* ── 12F. TRUST PILLS ── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;          /* 0.08 -> 0.06: calmer wordmark */
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-xs);
}
.trust-pill--blue {
  color: var(--brand-blue-ink);
  border-color: rgba(43,79,255,0.22);
  background: rgba(110,193,228,0.08);
}
.trust-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.45);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ── 12G. 404 ── */
.err-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
}
.err-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 10px;
}

/* ── 13. FOOTER ── */
.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer__logo img { width: 100%; max-width: 280px; height: auto; margin-bottom: 16px; display: block; }
.footer h4 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;          /* 0.18 -> 0.12: calmer footer labels */
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}
.footer ul li { margin-bottom: 8px; }
.footer a { color: var(--text-dim); font-size: var(--fs-sm); transition: color var(--t-fast); }
.footer a:hover { color: var(--text); }
.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* ── 13B. FAQ (adapted from 21st.dev Efferd pattern, rebranded) ── */
.faq {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: none; }
.faq__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--text);
  list-style: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary:hover { background: var(--bg-1); }
.faq__chev {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t-med), color var(--t-fast);
}
.faq__item[open] .faq__summary { color: var(--brand-blue-ink); }
.faq__item[open] .faq__chev { transform: rotate(180deg); color: var(--brand-blue-ink); }
.faq__body {
  padding: 0 26px 22px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.7;
  animation: faq-expand 0.3s ease forwards;
}
.faq__body p { margin-bottom: 10px; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body a { color: var(--brand-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes faq-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq__chev, .faq__body { animation: none; transition: none; }
}

/* ── 13.5 OWNERSHIP AUDIT SECTION ── */
.section--audit {
  background: linear-gradient(180deg, rgba(110,193,228,0.04) 0%, rgba(110,193,228,0.00) 100%);
  border-top: 1px solid rgba(110,193,228,0.14);
  border-bottom: 1px solid rgba(110,193,228,0.14);
}
.section--audit .card__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.section--audit .card--pink .card__eyebrow { color: var(--brand-pink-ink); }
.section--audit h3 { margin-top: 4px; margin-bottom: 12px; }
.section--audit .card__link { margin-top: auto; padding-top: 16px; }

/* ── 13.6 HANDOVER PAGE ── */
.handover-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.handover-schedule li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  align-items: start;
}
.handover-schedule__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(110,193,228,0.18);
  color: var(--brand-blue-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.handover-schedule__title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.handover-schedule__desc {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
}

/* ── 14. SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,0,1.2); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────────────────────────
   §15. IMMERSIVE INTERACTIONS (Pass 17)
   Cursor tilt, scroll-bound reveals, sticky narrative, signal streaks.
   All effects guarded by prefers-reduced-motion in amrix-immersive.js.
   ───────────────────────────────────────────── */

/* 15.1 Tilt stage — host must have perspective so child rotateX/Y render. */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(900px) rotateX(0) rotateY(0);
}

/* 15.2 Signature audit stage — fan-in scroll reveal.
        Pattern: 3 cards start offset (stacked-deck feel), end in their grid. */
.signature-audit {
  position: relative;
  isolation: isolate;
}
.signature-audit .card {
  transition:
    transform 0.85s cubic-bezier(.22,.68,0,1.2),
    opacity 0.65s ease-out,
    box-shadow 0.4s ease-out;
  will-change: transform, opacity;
}
/* Start frame — shuffled deck. Centre card highest, sides recede behind it. */
.signature-audit.is-stacked .grid > .card:nth-child(1) {
  transform: translate(28%, 18%) rotate(-6deg) scale(.94);
  opacity: 0;
}
.signature-audit.is-stacked .grid > .card:nth-child(2) {
  transform: translate(0, 12%) rotate(0deg) scale(.97);
  opacity: 0;
}
.signature-audit.is-stacked .grid > .card:nth-child(3) {
  transform: translate(-28%, 18%) rotate(6deg) scale(.94);
  opacity: 0;
}
/* End frame — flat, upright, readable. */
.signature-audit.is-fanned .grid > .card {
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}
/* Hover deepens card shadow — cinematic depth cue without movement. */
.signature-audit.is-fanned .grid > .card:hover {
  box-shadow: 0 24px 48px -18px rgba(10,18,36,0.20);
}
@media (max-width: 768px) {
  /* Tight viewports: soften the fan so it doesn't clip off-screen. */
  .signature-audit.is-stacked .grid > .card:nth-child(1),
  .signature-audit.is-stacked .grid > .card:nth-child(3) {
    transform: translate(0, 12%) rotate(0deg) scale(.96);
  }
}

/* 15.3 Sticky narrative — pinned panel + scrolling chapters.
        Layout: 2-col grid where left panel sticks, right column has stacked chapters.
        Activation: JS marks active chapter; CSS cross-fades the panel illustration. */
.section--sticky-narrative {
  position: relative;
}
.sticky-narrative {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.sticky-narrative__panel {
  position: sticky;
  top: 96px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,249,255,.85));
  box-shadow: 0 2px 12px rgba(10,18,36,0.04), 0 24px 60px -30px rgba(10,18,36,0.14);
  overflow: hidden;
}
.sticky-narrative__panel-title {
  font-size: var(--fs-h3);
  margin: 14px 0 10px;
}
.sticky-narrative__panel-stage {
  position: relative;
  min-height: 220px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
/* Illustrations swap via opacity based on data-active-chapter attribute. */
.sticky-narrative__illustration {
  position: absolute;
  inset: 22px 0 0 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(.22,.68,0,1.2);
}
.sticky-narrative__panel[data-active-chapter="0"] .sticky-narrative__illustration[data-chapter-index="0"],
.sticky-narrative__panel[data-active-chapter="1"] .sticky-narrative__illustration[data-chapter-index="1"],
.sticky-narrative__panel[data-active-chapter="2"] .sticky-narrative__illustration[data-chapter-index="2"],
.sticky-narrative__panel[data-active-chapter="3"] .sticky-narrative__illustration[data-chapter-index="3"] {
  opacity: 1;
  transform: translateY(0);
}
.sticky-narrative__step-indicator {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.sticky-narrative__step-indicator > span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.45s ease-out;
}
.sticky-narrative__panel[data-active-chapter="0"] .sticky-narrative__step-indicator > span:nth-child(1),
.sticky-narrative__panel[data-active-chapter="1"] .sticky-narrative__step-indicator > span:nth-child(-n+2),
.sticky-narrative__panel[data-active-chapter="2"] .sticky-narrative__step-indicator > span:nth-child(-n+3),
.sticky-narrative__panel[data-active-chapter="3"] .sticky-narrative__step-indicator > span {
  background: var(--brand-blue-ink);
}
.sticky-narrative__chapters {
  display: grid;
  gap: 18vh; /* breathing room so each chapter spends real time as active */
  padding: 4vh 0 18vh;
}
.sticky-narrative__chapter {
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.45s ease-out, box-shadow 0.45s ease-out, transform 0.5s cubic-bezier(.22,.68,0,1.2);
}
.sticky-narrative__chapter.is-active {
  border-color: rgba(110,193,228,0.45);
  box-shadow: 0 2px 10px rgba(10,18,36,0.04), 0 22px 48px -24px rgba(43,79,255,0.22);
  transform: translateY(-2px);
}
.sticky-narrative__chapter h3 { font-size: var(--fs-h4); margin-bottom: 10px; }
.sticky-narrative__chapter p { color: var(--text-dim); line-height: 1.65; }
.sticky-narrative__chapter-kicker {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 900px) {
  .sticky-narrative { grid-template-columns: 1fr; gap: 32px; }
  .sticky-narrative__panel { position: relative; top: auto; }
  .sticky-narrative__chapters { gap: 22px; padding: 0; }
}

/* 15.4 Signal streak — diagonal light sweep on hover/focus.
        Cheap CSS-only effect: gradient overlay pinned off-canvas,
        slides across the button on hover via pseudo-element.
        Accessible: no effect when reduced-motion is set (JS strips the attr). */
[data-signal-streak] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[data-signal-streak]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.35) 45%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.35) 55%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.9s cubic-bezier(.22,.68,0,1.2);
  pointer-events: none;
  z-index: 1;
}
[data-signal-streak]:hover::after,
[data-signal-streak]:focus-visible::after { left: 160%; }
[data-signal-streak] > * { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .signature-audit .card,
  .sticky-narrative__illustration,
  .sticky-narrative__chapter,
  .sticky-narrative__step-indicator > span,
  [data-signal-streak]::after {
    transition: none !important;
  }
  .signature-audit.is-stacked .grid > .card {
    /* Never show the stacked composition under reduced motion. */
    transform: none;
    opacity: 1;
  }
}

/* 15.5 Ownership Promise — cinematic brand moment.
        Big type, social emblem centre-stage, soft radial halo behind.
        Scale-in reveal when the section enters the viewport; static under reduce. */
.ownership-promise {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 14vh, 160px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(245,249,255,0.65) 45%, rgba(236,244,255,0.92) 100%);
}
.ownership-promise__halo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 48%, rgba(110,193,228,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 50% 52%, rgba(248,180,217,0.14) 0%, transparent 60%);
  filter: blur(8px);
}
.ownership-promise__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.ownership-promise__emblem {
  width: clamp(108px, 14vw, 168px);
  height: auto;
  display: block;
  margin-bottom: 4px;
  filter:
    drop-shadow(0 18px 44px rgba(43,79,255,0.18))
    drop-shadow(0 4px 12px rgba(43,79,255,0.10));
  transform: scale(.92);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.22,.68,0,1.2), opacity 0.9s ease-out;
}
.ownership-promise.is-inview .ownership-promise__emblem {
  transform: scale(1);
  opacity: 1;
}
.ownership-promise__kicker {
  font-family: 'Raleway', serif;
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ownership-promise__headline {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.ownership-promise__sub {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.55;
  margin: 4px 0 12px;
}
.ownership-promise__sub strong {
  color: var(--text);
  font-weight: 600;
}
.ownership-promise__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .ownership-promise { padding: 64px 0 80px; }
  .ownership-promise__emblem { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ownership-promise__emblem {
    transition: none !important;
    transform: scale(1);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────
   §16. ACCESSIBILITY UTILITIES
   ───────────────────────────────────────────── */

/* Skip-to-content link — visible on focus only. WCAG 2.1 SC 2.4.1. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--brand-blue-ink, #2B4FFF);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(43,79,255,0.25);
  transition: top 0.18s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Ensure any id="main-content" target doesn't render a focus ring
   visually inside the content — the skip-link is the affordance. */
#main-content:focus { outline: none; }
#main-content:focus-visible { outline: 2px solid var(--brand-blue-ink, #2B4FFF); outline-offset: -2px; }

/* ─────────────────────────────────────────────
   §17. DARK MODE SYSTEM  (amrix-theme.js controls the attr)
   true #000000 background with AMRIX brand spectrum preserved.
   Not a midnight-gray "default dark". A deliberate second mode.
   ───────────────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:              #000000;
  --bg-1:            #07080c;
  --bg-2:            #0d0f16;
  --bg-3:            #141722;
  --bg-card:         #0a0b11;
  --bg-card-alt:     #11131c;
  --bg-dark:         #000000;
  --bg-dark-2:       #0a0b11;

  --text:            #f4f6fb;
  --text-dim:        #c5cbd8;
  --text-muted:      #7d8497;
  --text-inv:        #0e0f14;
  --text-inv-dim:    #3d4252;

  --border:          rgba(255,255,255,0.10);
  --border-bright:   rgba(255,255,255,0.22);

  /* Brand-ink lifted for legible contrast on #000 */
  --brand-blue-ink:  #6EC1E4;
  --brand-pink-ink:  #F472C7;
}

html[data-theme="dark"] body {
  background: #000;
  color: var(--text);
}

/* Swoosh SVG gradients already use brand hex values — they still read
   well on #000 at their current opacity. Boost slightly so they are
   more present as structural elements in dark mode. */
html[data-theme="dark"] .swoosh { opacity: 1.0; mix-blend-mode: screen; }

/* Cards and surfaces re-skin to dark card chrome without touching layout. */
html[data-theme="dark"] .card,
html[data-theme="dark"] .nav,
html[data-theme="dark"] .footer {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .nav {
  background: rgba(7,8,12,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .card--pink {
  background: linear-gradient(180deg, rgba(248,180,217,0.05), rgba(248,180,217,0.02));
  border-color: rgba(248,180,217,0.18);
}

html[data-theme="dark"] .trust-pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text-dim);
}
html[data-theme="dark"] .trust-pill--blue {
  background: rgba(43,79,255,0.12);
  border-color: rgba(91,198,237,0.35);
  color: var(--brand-blue-ink);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .editorial-kicker {
  color: var(--text-muted);
}

html[data-theme="dark"] .ownership-promise {
  background: linear-gradient(180deg, transparent 0%, rgba(10,11,17,0.65) 45%, rgba(14,17,28,0.92) 100%);
}
html[data-theme="dark"] .ownership-promise__halo {
  /* Stronger glow against black so the emblem doesn't feel orphaned. */
  background:
    radial-gradient(ellipse 60% 60% at 50% 48%, rgba(91,198,237,0.26) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 50% 52%, rgba(244,114,199,0.22) 0%, transparent 60%);
}

html[data-theme="dark"] .section--audit {
  background: linear-gradient(180deg, rgba(91,198,237,0.05) 0%, rgba(91,198,237,0) 100%);
  border-top-color: rgba(91,198,237,0.18);
  border-bottom-color: rgba(91,198,237,0.18);
}

html[data-theme="dark"] .sticky-narrative__panel {
  background: linear-gradient(180deg, rgba(12,14,22,0.96), rgba(8,9,13,0.85));
  border-color: var(--border);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}
html[data-theme="dark"] .sticky-narrative__chapter {
  background: rgba(10,11,17,0.65);
  border-color: var(--border);
}
html[data-theme="dark"] .sticky-narrative__chapter.is-active {
  border-color: rgba(91,198,237,0.45);
  box-shadow: 0 22px 48px -24px rgba(43,79,255,0.38);
}

html[data-theme="dark"] .handover-schedule li {
  background: var(--bg-1);
  border-color: var(--border);
}
html[data-theme="dark"] .handover-schedule__check {
  background: rgba(91,198,237,0.14);
  color: var(--brand-blue-ink);
}

html[data-theme="dark"] .section--dark {
  /* Prevent section--dark from doubling — in dark mode it's the default. */
  background: transparent;
}

html[data-theme="dark"] .btn--ghost {
  border-color: var(--border-bright);
  color: var(--text);
}
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,0.06); }

html[data-theme="dark"] .skip-link {
  background: var(--brand-blue-ink);
  color: #000;
}

/* Signal-streak readability — the sweep was calibrated for white bg,
   so on dark mode use a subtler highlight or the streak reads as a harsh flash. */
html[data-theme="dark"] [data-signal-streak]::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.14) 45%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.14) 55%,
    transparent 100%
  );
}

/* The social emblem ships as a mark on a transparent/white-ish ground.
   On #000 it would float awkwardly; we drop a soft inner-glow plate behind
   the hero/nav instance so it reads as intentionally lit. */
html[data-theme="dark"] .nav__logo-img,
html[data-theme="dark"] .ownership-promise__emblem {
  filter:
    drop-shadow(0 0 14px rgba(91,198,237,0.35))
    drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

/* ─────────────────────────────────────────────
   §18. THEME TOGGLE BUTTON
   Lives inside the .nav__links beside the Book audit CTA.
   Shows the TARGET state (moon icon in light mode → tap for dark).
   ───────────────────────────────────────────── */
.theme-toggle {
  --size: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  padding: 0;
  margin-left: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.25s cubic-bezier(.22,.68,0,1.2);
}
.theme-toggle:hover { background: rgba(110,193,228,0.08); border-color: rgba(110,193,228,0.35); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-blue-ink); outline-offset: 2px; }
.theme-toggle__icon { width: 18px; height: 18px; display: block; }
/* Sun vs moon swap via sibling selector on aria-pressed. */
.theme-toggle .theme-toggle__icon--moon { display: block; }
.theme-toggle .theme-toggle__icon--sun  { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__icon--moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__icon--sun  { display: block; }
.theme-toggle__label {
  /* Visually hidden (screen-reader only) — icon tells the sighted story. */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
@media (max-width: 768px) {
  .theme-toggle { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
