/* ==========================================================================
   Jamie Lewis — AI Consultancy HQ · style.css v2
   Direction: editorial, image-led. Deep navy and warm paper, photography
   doing the heavy lifting, serif italic accents, quiet ruled labels.
   Mobile first → desktop → tablet.
   --------------------------------------------------------------------------
   01  Tokens
   02  Themes (dark / paper)
   03  Reset & base
   04  Typography
   05  Layout
   06  Buttons & links
   07  Liquid glass
   08  Imagery & grain
   09  Header
   10  Hero + photo mosaic
   11  Logo marquee
   12  Split sections & feature card
   13  Services
   14  Results
   15  About
   16  FAQ
   17  Book (CTA) & footer
   18  Scroll reveals
   19  Desktop (≥1024)
   20  Tablet (640–1023)
   21  Reduced motion, transparency & no-JS
   ========================================================================== */

/* 01 — Tokens ------------------------------------------------------------- */
:root {
  /* Brand palette */
  --c-navy-950: #070D1A;
  --c-navy-900: #0C1526;
  --c-navy-800: #142238;
  --c-sky-600:  #2B5079;
  --c-sky-400:  #6F93B8;
  --c-ember-500:#C8642B;
  --c-ember-600:#A9501F;   /* AA on paper for small accent text */
  --c-ember-300:#E3A06A;
  --c-dust-500: #8C6E57;
  --c-white:    #FFFFFF;
  --c-ink:      #0A0A0A;
  --c-lime:     #C9F23C;   /* CTAs and tiny status details only */
  --c-lime-hover:#D6F86A;

  /* Warm paper neutrals (replace flat white) */
  --c-paper:     #F6F5F0;
  --c-paper-200: #E6E3D9;
  --c-paper-500: #5E6470;  /* muted text on paper, 5.6:1 */

  /* Type */
  --font-sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --fs-2xs:  0.75rem;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);   /* sub-heads */
  --fs-h4:   clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h3:   clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-h2:   clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --fs-h1:   clamp(2.5rem, 1.8rem + 3.2vw, 4.5rem);
  --fs-display: clamp(5rem, 3rem + 10vw, 11rem);           /* feature word */

  --lh-tight: 1.04;
  --lh-snug:  1.25;
  --lh-body:  1.6;
  --tracking-tight: -0.03em;
  --tracking-label:  0.06em;

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: 1.25rem;
  --container: 1280px;
  --measure: 34rem;
  --header-h: 4.25rem;

  /* Radius */
  --radius-pill:  999px;
  --radius-media: 24px;
  --radius-glass: 28px;
  --radius-card:  20px;
  --radius-sm:    12px;

  /* Liquid glass — no drop shadows anywhere */
  --glass-blur: 24px;
  --glass-sat:  180%;
  --glass-fill: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.07) 45%, rgba(255,255,255,0.12) 100%);
  --glass-fill-dark: linear-gradient(135deg, rgba(7,13,26,0.55) 0%, rgba(7,13,26,0.35) 100%);
  --glass-fill-light: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48));
  --glass-edge: rgba(255,255,255,0.28);
  --glass-rim:  inset 0 1px 0 rgba(255,255,255,0.45),
                inset 0 -1px 0 rgba(255,255,255,0.08),
                inset 0 0 0 1px rgba(255,255,255,0.06);

  --btn-inner: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 4px rgba(10,10,10,0.14);

  /* Photo grades */
  --scrim-bottom: linear-gradient(180deg, rgba(7,13,26,0) 45%, rgba(7,13,26,0.7) 100%);
  --grade-warm: linear-gradient(180deg, rgba(43,80,121,0.16) 0%, rgba(200,100,43,0.16) 100%);

  --grain-opacity: 0.06;
  --header-bg: rgba(7,13,26,0.74);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 900ms;
  --marquee-duration: 48s;
  --mosaic-duration: 60s;
}

/* 02 — Themes ------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --bg:          var(--c-paper);
  --bg-raised:   var(--c-white);
  --fg:          var(--c-navy-950);
  --fg-muted:    var(--c-paper-500);
  --border:      var(--c-paper-200);
  --rule:        rgba(7,13,26,0.22);
  --accent-text: var(--c-ember-600);
  --focus:       var(--c-navy-950);
}

[data-theme="dark"] {
  --bg:          var(--c-navy-950);
  --bg-raised:   var(--c-navy-900);
  --fg:          var(--c-white);
  --fg-muted:    rgba(255,255,255,0.68);
  --border:      rgba(255,255,255,0.12);
  --rule:        rgba(255,255,255,0.24);
  --accent-text: var(--c-ember-300);
  --focus:       var(--c-lime);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

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

/* 04 — Typography ---------------------------------------------------------
   Sentence case everywhere. Headings sit at regular weight; the serif
   italic does the emphasis, not bold.                                    */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  color: var(--fg);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); letter-spacing: -0.015em; }

h1 em, h2 em, h3 em, .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.1em;
  line-height: 1;
}
.accent--warm { color: var(--accent-text); }

p { text-wrap: pretty; max-width: 62ch; }

/* Two-tier body copy, as in the reference: a larger sub-head line, then small print */
.sub {
  font-size: var(--fs-lg);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.body-sm { font-size: var(--fs-sm); color: var(--fg-muted); }
.muted { color: var(--fg-muted); }

/* Ruled kicker label — sentence case, quiet, with a hairline beneath */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--fg-muted);
}
.kicker--bare { border: 0; padding: 0; justify-content: center; }

/* 05 — Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--bg);
  color: var(--fg);
}

.stack > * + * { margin-top: var(--stack-gap, var(--s-4)); }
.stack--sm { --stack-gap: var(--s-3); }
.stack--lg { --stack-gap: var(--s-6); }

.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.section--flush-top { padding-top: 0; }

.section-head {
  display: grid;
  gap: var(--s-4);
  max-width: 46rem;
  margin-bottom: var(--s-8);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* 06 — Buttons & links ---------------------------------------------------- */
.btn {
  --btn-pad-x: 1.375rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.75rem var(--btn-pad-x);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
}
.btn:active { transform: scale(0.97); }

/* Lime: the one call to action on dark */
.btn--primary { background: var(--c-lime); color: var(--c-ink); box-shadow: var(--btn-inner); }
.btn--primary:hover { background: var(--c-lime-hover); }

/* Navy pill: the call to action on paper */
.btn--dark { background: var(--c-navy-950); color: var(--c-white); box-shadow: var(--btn-inner); }
.btn--dark:hover { background: var(--c-navy-800); }

/* Ring: secondary on either theme */
.btn--ring { color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--ring:hover { box-shadow: inset 0 0 0 1px var(--fg); }

.btn--glass {
  color: var(--c-white);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-sat));
  backdrop-filter: blur(16px) saturate(var(--glass-sat));
  box-shadow: var(--glass-rim), inset 0 0 0 1px var(--glass-edge);
}

.btn__icon { display: inline-grid; place-items: center; transition: transform var(--dur-base) var(--ease-spring); }
.btn:hover .btn__icon,
.arrow-link:hover .btn__icon { transform: translateX(3px); }

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link--strong { color: var(--fg); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 48px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--border);
}

.pulse {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--c-lime);
}
.pulse::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }

/* 07 — Liquid glass -------------------------------------------------------
   Fill → specular rim → gradient edge → pointer sheen. Over imagery only. */
.glass {
  position: relative;
  isolation: isolate;
  padding: var(--s-5);
  border-radius: var(--radius-glass);
  color: var(--c-white);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--glass-rim);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.18) 35%,
    rgba(255,255,255,0.06) 65%, rgba(255,255,255,0.30) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.glass::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
  z-index: -1;
}
.glass--dark  { background: var(--glass-fill-dark); }
.glass--light { color: var(--c-navy-950); background: var(--glass-fill-light); }

/* Small glass pill used on photos */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.25;
}
.glass-pill.glass { padding: 0.5rem 0.875rem; border-radius: var(--radius-pill); }
.tile .glass-pill.glass { border-radius: var(--radius-sm); padding: 0.5rem 0.625rem; }

/* 08 — Imagery & grain ---------------------------------------------------- */
.media {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--c-navy-800);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.media:hover img { transform: scale(1.035); }
.media--warm::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--grade-warm);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

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

/* 09 — Header ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--s-2);
  z-index: 200;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  isolation: isolate;
  color: var(--fg);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px) saturate(var(--glass-sat));
  backdrop-filter: blur(20px) saturate(var(--glass-sat));
  box-shadow: inset 0 -1px 0 var(--border);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: 48px;
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wordmark em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
}

.site-nav { display: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--fg); }

.site-header .btn { --btn-pad-x: 1.125rem; font-size: var(--fs-xs); }

/* 10 — Hero + photo mosaic ------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--s-7));
  background: var(--c-navy-950);
  color: var(--c-white);
}
/* Soft evening glow behind the copy, from the brand palette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 0% 100%, rgba(43,80,121,0.35) 0%, rgba(43,80,121,0) 70%),
    radial-gradient(40% 35% at 30% 110%, rgba(200,100,43,0.22) 0%, rgba(200,100,43,0) 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
}
.hero__copy { display: grid; gap: var(--s-5); align-content: center; max-width: 36rem; }
.hero__copy .sub { color: rgba(255,255,255,0.8); max-width: 32rem; }

/* Real person, right under the promise */
.byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.byline strong { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--fg); }
.avatar {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--c-navy-800);
  box-shadow: 0 0 0 2px var(--c-navy-950), 0 0 0 3px var(--rule);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.hero__assurances li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__assurances li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-text);
}

/* Mosaic: three columns drifting in opposite directions */
.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  height: 30rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--s-3);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 88%, transparent 100%);
}
.mosaic__col {
  will-change: transform;
  transform: translate3d(0, calc(var(--py, 0) * 1px), 0);
}
.mosaic__track {
  display: grid;
  gap: var(--s-3);
  padding: 0;
  list-style: none;
  animation: mosaic-drift var(--mosaic-duration) linear infinite;
}
.mosaic__col:nth-child(1) .mosaic__track { animation-duration: calc(var(--mosaic-duration) * 1.1); }
.mosaic__col:nth-child(2) .mosaic__track { animation-direction: reverse; margin-top: -40%; }
.mosaic__col:nth-child(3) .mosaic__track { animation-duration: calc(var(--mosaic-duration) * 0.9); margin-top: -15%; }
.mosaic:hover .mosaic__track { animation-play-state: paused; }
@keyframes mosaic-drift {
  to { transform: translate3d(0, calc(-50% - var(--s-3) / 2), 0); }
}

.tile {
  position: relative;
  aspect-ratio: var(--ar, 4 / 5);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--c-navy-800);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grade-warm), var(--scrim-bottom);
  pointer-events: none;
}
.tile .glass-pill {
  border-radius: var(--radius-sm);
  position: absolute;
  left: var(--s-2);
  right: var(--s-2);
  bottom: var(--s-2);
  z-index: 2;
}
.tile__brand {
  position: absolute;
  left: var(--s-3);
  top: var(--s-3);
  z-index: 2;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-white);
}

/* 11 — Logo marquee ------------------------------------------------------- */
.logos { padding-block: var(--s-8) var(--s-6); text-align: center; }
.logos__label { margin: 0 auto var(--s-6); font-size: var(--fs-sm); color: var(--fg); }
.marquee {
  --gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee + .marquee { margin-top: var(--s-5); }
.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  margin: 0;
  padding: 0 var(--gap) 0 0;
  list-style: none;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Typographic stand-in wordmarks; replace with <img> logos at 28px tall */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.62;
  font-size: 1.25rem;
  line-height: 1;
  transition: opacity var(--dur-fast);
}
.logo:hover { opacity: 1; }
.logo svg { width: 1.1em; height: 1.1em; }
.logo img { height: 28px; width: auto; filter: grayscale(1); }
.logo--serif   { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; }
.logo--heavy   { font-weight: 600; letter-spacing: -0.04em; font-size: 1.4rem; }
.logo--spaced  { font-weight: 500; letter-spacing: 0.18em; font-size: 0.9rem; }
.logo--light   { font-weight: 400; letter-spacing: -0.02em; }

/* 12 — Split sections & feature card ------------------------------------- */
.split {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.split + .split { margin-top: var(--section-pad); }
.split__copy { display: grid; gap: var(--s-5); max-width: var(--measure); }
.split__copy .kicker { margin-bottom: var(--s-2); }
.split__media { aspect-ratio: 1 / 1; }

/* Feature card — the reference's "win." video tile, reworked as a cycling word */
.feature {
  position: relative;
  display: grid;
  align-content: space-between;
  aspect-ratio: 1 / 1;
  padding: var(--s-5);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--c-navy-950);
  color: var(--c-white);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 80% 0%, rgba(43,80,121,0.55) 0%, rgba(43,80,121,0) 70%);
  pointer-events: none;
}
.feature__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.feature__top .chip { color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.feature__eyebrow { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); }

.feature__words {
  position: relative;
  display: grid;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--c-ember-300);
}
.feature__words > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(8px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.feature__words > span.is-active { opacity: 1; transform: none; filter: none; }

.feature__thumbs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  padding: 0;
  list-style: none;
}
.feature__thumbs li {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-navy-800);
  transition: transform var(--dur-base) var(--ease-spring);
}
.feature__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.feature:hover .feature__thumbs li:nth-child(1) { transform: translateY(-4px) rotate(-2deg); }
.feature:hover .feature__thumbs li:nth-child(2) { transform: translateY(-8px); }
.feature:hover .feature__thumbs li:nth-child(3) { transform: translateY(-4px) rotate(2deg); }

/* 13 — Services ----------------------------------------------------------- */
.services__grid { display: grid; gap: var(--s-8); }
.service { display: grid; gap: var(--s-4); align-content: start; }
.service__media { aspect-ratio: 4 / 5; }
.service__media .glass-pill { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 2; }
.service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grade-warm);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.service h3 { font-size: var(--fs-h4); margin-top: var(--s-2); }
.service__list {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.service__list li { display: grid; grid-template-columns: 1rem 1fr; gap: var(--s-2); }
.service__list li::before { content: "→"; color: var(--accent-text); }
.services__note { margin: var(--s-8) auto 0; text-align: center; font-size: var(--fs-sm); color: var(--fg-muted); }

/* 14 — Results ------------------------------------------------------------ */
.results__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.results__head .kicker { grid-column: 1 / -1; }

.stats {
  display: grid;
  gap: var(--s-5);
  margin: 0 0 var(--s-8);
  padding: 0;
  list-style: none;
}
.stat { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.stat__value {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat__value em { font-family: var(--font-serif); font-style: italic; color: var(--accent-text); }
.stat__label { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 22ch; }

.story { position: relative; }
.story__media { aspect-ratio: 4 / 5; }
.story__panel {
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: var(--s-3);
  display: grid;
  gap: var(--s-4);
}
.story__panel .chip { justify-self: start; box-shadow: inset 0 0 0 1px rgba(7,13,26,0.16); }
.story__compare { display: grid; gap: var(--s-3); }
.story__compare dt { font-size: var(--fs-2xs); letter-spacing: var(--tracking-label); color: var(--c-paper-500); }
.story__compare dd { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.02em; }
.story__compare div + div { padding-top: var(--s-3); border-top: 1px solid rgba(7,13,26,0.14); }
.story__compare em { font-family: var(--font-serif); font-style: italic; color: var(--c-ember-600); }

/* 15 — About -------------------------------------------------------------- */
.about__media { aspect-ratio: 4 / 5; }
.about__media .glass-pill { position: absolute; left: var(--s-3); bottom: var(--s-3); z-index: 2; }
.principles { display: grid; gap: var(--s-3); padding: var(--s-5) 0 0; list-style: none; border-top: 1px solid var(--border); }
.principles li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-3); font-size: var(--fs-sm); }
.principles svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15em; color: var(--accent-text); }
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--accent-text);
}

/* 16 — FAQ ---------------------------------------------------------------- */
.faq__layout { display: grid; gap: var(--s-7); }
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); interpolate-size: allow-keywords; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 48px;
  padding-block: var(--s-5);
  font-size: var(--fs-lg);
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__toggle {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.75rem; height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.faq__toggle::after { rotate: 90deg; transition: rotate var(--dur-base) var(--ease-out); }
.faq__item[open] .faq__toggle { background: var(--c-navy-950); color: var(--c-white); }
.faq__item[open] .faq__toggle::after { rotate: 0deg; }
.faq__item p { padding-bottom: var(--s-5); color: var(--fg-muted); }
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* 17 — Book (CTA) & footer ------------------------------------------------ */
.cta { overflow: hidden; padding-block: var(--s-9); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,13,26,0.85) 0%, rgba(7,13,26,0.35) 45%, rgba(7,13,26,0.6) 100%);
}
.cta__inner { position: relative; }
.cta__panel { display: grid; gap: var(--s-5); max-width: 42rem; }
.cta__panel h2 { color: var(--c-white); }
.cta__panel .sub { color: rgba(255,255,255,0.86); }
.cta__panel .chip { justify-self: start; color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.steps {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) 0 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.86);
}
.steps li { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s-2); align-items: baseline; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-h4);
  line-height: 1;
  color: var(--c-ember-300);
}
.cta__fine { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); }

.site-footer { padding-block: var(--s-8) var(--s-6); background: var(--bg); color: var(--fg); }
.site-footer__big {
  font-size: clamp(3rem, 1.5rem + 8vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: var(--fg);
}
.site-footer__big em { font-family: var(--font-serif); font-style: italic; color: var(--accent-text); }
.site-footer__row {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: var(--s-5); }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  transition: color var(--dur-fast);
}
.site-footer nav a:hover { color: var(--fg); }
.site-footer small { font-size: var(--fs-xs); color: var(--fg-muted); }

/* 18 — Scroll reveals ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--mask {
  clip-path: inset(0 0 100% 0 round var(--radius-media));
  filter: none;
  transform: none;
  transition: clip-path 1.2s var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.reveal--mask.is-visible { clip-path: inset(0 0 0 0 round var(--radius-media)); }

/* 19 — Desktop (≥1024px) -------------------------------------------------- */
@media (min-width: 1024px) {
  :root { --gutter: 2.5rem; }

  .site-nav { display: flex; gap: var(--s-6); position: absolute; left: 50%; translate: -50% 0; }

  /* Hero: copy left, mosaic bleeding off the top and bottom on the right */
  .hero { padding-top: 0; min-height: min(100svh, 52rem); display: grid; }
  .hero__grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); align-items: stretch; }
  .hero__copy { padding-block: calc(var(--header-h) + var(--s-8)) var(--s-9); }
  .mosaic {
    height: 100%;
    min-height: min(100svh, 52rem);
    margin: 0 calc(var(--gutter) * -1) 0 0;
    padding: 0;
    gap: var(--s-4);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 90%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 90%, transparent 100%);
  }
  .mosaic__track { gap: var(--s-4); }

  .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .split--reverse .split__copy { order: 2; }
  .split__copy { align-self: center; }

  .services__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .service:nth-child(2) { margin-top: var(--s-8); }   /* staggered, editorial */

  .results__head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: var(--s-9); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .story__media { aspect-ratio: 16 / 8; }
  .story__panel { left: auto; right: var(--s-6); bottom: var(--s-6); top: var(--s-6); width: 26rem; align-content: end; }

  .about .split { grid-template-columns: 5fr 6fr; }

  .faq__layout { grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: start; }
  .faq__layout .section-head { position: sticky; top: calc(var(--header-h) + var(--s-6)); margin: 0; }

  .cta { padding-block: var(--s-10); }
  .cta__panel { padding: var(--s-8); }

  .site-footer__row { grid-template-columns: 1fr auto; align-items: center; }

  .glass { padding: var(--s-6); }
  .glass-pill.glass { padding: 0.5rem 0.875rem; }
  .btn { --btn-pad-x: 1.5rem; }
}

/* 20 — Tablet (640–1023px) ------------------------------------------------ */
@media (min-width: 640px) and (max-width: 1023px) {
  :root { --gutter: 2rem; }

  .hero__copy { max-width: 40rem; }
  .mosaic { height: 34rem; }

  .split { gap: var(--s-7); }
  .split__media { aspect-ratio: 16 / 11; }
  .feature { aspect-ratio: 16 / 11; }

  .services__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); }
  .service:last-child { grid-column: 1 / -1; }
  .service:last-child .service__media { aspect-ratio: 16 / 9; }

  .stats { grid-template-columns: repeat(3, 1fr); }
  .story__media { aspect-ratio: 4 / 3; }
  .story__panel { left: var(--s-5); bottom: var(--s-5); right: auto; width: min(26rem, calc(100% - var(--s-7))); }

  .about__media { max-width: 28rem; }
}

/* Mobile only (<640) */
@media (max-width: 639px) {
  .hero__copy .btn { flex: 1 1 100%; }
  .tile .glass-pill { display: none; }   /* tiles are too narrow for captions */
  .site-header .btn__label-long { display: none; }
}
@media (min-width: 640px) {
  .site-header .btn__label-short { display: none; }
}

/* 21 — Reduced motion, transparency & no-JS ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal--mask { opacity: 1; transform: none; filter: none; clip-path: none; }
  .mosaic__track { animation: none !important; }
  .mosaic__col { transform: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: var(--s-4); }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  body::after { animation: none; }
  .faq__item::details-content { transition: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .btn--glass { background: rgba(20,34,56,0.9); }
  .glass--light { background: rgba(255,255,255,0.94); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .btn--glass, .site-header::before {
    background: rgba(20,34,56,0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass--light { background: rgba(255,255,255,0.97); }
}

html:not(.js) .reveal { opacity: 1; transform: none; filter: none; clip-path: none; }
