/* =========================================================
   Lucrina — landing page
   Palette is strictly the five colours of reference image 1.
   Every other tone is one of them at reduced alpha.
   ========================================================= */

:root {
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vw, 200px);
  --radius: 6px;
  --header-h: 76px;

  /* Constant accents: the same in both themes */
  --accent: #CF9D7B;          /* Antique Brass */
  --accent-rgb: 207, 157, 123;
  --ink-black: #0C1519;       /* Chinese Black */
  --c-coffee: #724B39;        /* Coffee */
  --coffee-rgb: 114, 75, 57;
  --c-jet: #3A3534;           /* Jet */
}

/* ---------- Colour ----------
   Light (cream) is the site's only theme: pale tints of Antique Brass for
   paper, Chinese Black for ink, Coffee for emphasis.
   The token names are historical: "--c-black" is the page colour and
   "--c-brass" the ink. The `.theme-lock` island (the bright analysis
   section) keeps the original dark values. */
:root {
  --c-black: #F6EDE7;   /* page: cream, Antique Brass 18% */
  --c-green: #EFE0D6;   /* alternate sections: Antique Brass 30% */
  --c-brass: #0C1519;   /* ink */
  --black-rgb: 246, 237, 231;
  --green-rgb: 239, 224, 214;
  --brass-rgb: 12, 21, 25;
  --em: #724B39;
}
.theme-lock {
  --c-black: #0C1519;
  --c-green: #162127;
  --c-brass: #CF9D7B;
  --black-rgb: 12, 21, 25;
  --green-rgb: 22, 33, 39;
  --brass-rgb: 207, 157, 123;
  --em: #CF9D7B;
}
/* Derived tokens are recomputed wherever the base ones change */
:root, .theme-lock {
  --text: var(--c-brass);
  --text-2: rgba(var(--brass-rgb), .8);
  --text-3: rgba(var(--brass-rgb), .58);   /* large / decorative only */
  --line: rgba(var(--brass-rgb), .14);
  --line-2: rgba(var(--brass-rgb), .28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--c-black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: transparent;   /* the page colour lives on <html> so the orbs layer can sit between them */
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
b, strong { font-weight: 450; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--c-coffee); color: var(--c-brass); }

:focus-visible {
  outline: 1px solid var(--c-brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--c-brass); color: var(--c-black);
  border-radius: var(--radius); transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

/* Film grain across the whole site (reference image 4's grain) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("../img/textures/grain.png");
  opacity: .05;
}

/* Grainy orbs (assets/js/orbs.js): fixed behind every section; open sections reveal them */
.orbs {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.orbs.is-ready { opacity: 1; }

/* Placeholder data the client still has to supply */
.ph {
  background: rgba(var(--brass-rgb), .09);
  border-bottom: 1px dashed currentColor;
  padding: 0 .15em;
  border-radius: 2px;
}

/* ---------- Logo: wordmark + symbol (inline sprite, see tools/make_brand.py) ---------- */
/* The logo: Coffee letters and ring of stars; the ring sits above the letters' box (overflow: visible) */
.logo-word { display: block; height: 1em; width: auto; aspect-ratio: 3.5277; color: var(--c-coffee); overflow: visible; }
.logo-mark { display: block; height: 1em; width: auto; aspect-ratio: 1.1521; color: var(--text); }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 450; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.label__no { font-variant-numeric: tabular-nums; color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 350; letter-spacing: .06em; color: var(--text-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-brass);
  box-shadow: 0 0 0 4px rgba(var(--brass-rgb), .15);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(var(--brass-rgb), 0); } }

h2 {
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
  font-weight: 230;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 290;
  line-height: 1.15;
  letter-spacing: -.02em;
}
em {
  font-style: normal;
  font-variation-settings: "slnt" -10;
  color: var(--em);
}

.section-head { display: grid; gap: 28px; margin-bottom: clamp(56px, 7vw, 104px); max-width: 1100px; }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end; column-gap: clamp(32px, 6vw, 120px);
}
.section-head--split > div { display: grid; gap: 28px; }
.section-head__text { color: var(--text-2); max-width: 46ch; }

/* Line-mask reveal helpers (SplitText adds the wrappers) */
.split-line-mask { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Buttons ---------- */
.btn {
  --pad-x: 26px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 var(--pad-x);
  border-radius: 999px;
  font-size: 15px; font-weight: 400; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn > span, .btn > svg { position: relative; z-index: 2; pointer-events: none; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--sm { min-height: 44px; --pad-x: 20px; font-size: 14px; }

/* Warm metal (reference image 7) */
.btn--primary {
  color: var(--c-black);
  background: var(--c-brass) url("../img/textures/metal-brushed.webp") center / 200% 100%;
  background-blend-mode: soft-light;
  box-shadow: inset 0 1px 0 rgba(var(--brass-rgb), .9), inset 0 -1px 0 rgba(var(--coffee-rgb), .6);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0) 30%, rgba(var(--brass-rgb), 1) 48%, rgba(var(--brass-rgb), .2) 56%, transparent 70%);
  mix-blend-mode: screen; opacity: .9;
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost { color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: var(--c-brass); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.btn--ghost:hover { color: var(--c-black); border-color: var(--c-brass); }
.btn--ghost:hover::before { transform: scaleY(1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line-2); font-weight: 350;
  transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.link-arrow:hover { border-color: var(--c-brass); gap: 16px; }
.link-btn { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--c-black);
  display: grid; place-items: center;
}
html:not(.js) .preloader, html.no-preload .preloader { display: none; }
/* the clip box reaches above the logo so the ring of stars over the i is not cut off */
.preloader { --pre-logo: clamp(52px, 8.5vw, 104px); }
.preloader__brand { overflow: clip; padding-top: calc(var(--pre-logo) * .2); margin-top: calc(var(--pre-logo) * -.2); }
.preloader__brand { line-height: 0; }
.preloader__logo { display: inline-block; }
.preloader__logo .logo-word { height: var(--pre-logo); }
.preloader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.preloader__count {
  font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.05em; font-weight: 150; line-height: 1;
  color: var(--c-brass); font-variant-numeric: tabular-nums; text-transform: none;
}
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.preloader__bar i { display: block; height: 100%; background: var(--c-brass); transform: scaleX(0); transform-origin: left; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--c-brass); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(var(--black-rgb), .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; color: var(--c-brass); transition: opacity .4s var(--ease); }
.brand .logo-word { height: 28px; }
/* "Growth Partners": a quiet English descriptor beside the engraved logo */
.brand__tag {
  display: inline-flex; align-items: center; gap: 14px; margin-left: 14px;
  font-size: 11px; font-weight: 250; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-2);
}
.brand__tag::before { content: ""; width: 1px; height: 22px; background: var(--line-2); }
.brand:hover { opacity: .8; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 32px; }
.nav a {
  position: relative; font-size: 14px; color: var(--text-2); padding: 8px 0;
  font-variation-settings: "SHRP" 0;
  transition: color .3s var(--ease), font-variation-settings .5s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); font-variation-settings: "SHRP" 100; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; }
.menu-toggle__lines { display: grid; gap: 7px; width: 24px; }
.menu-toggle__lines i { display: block; height: 1px; background: var(--c-brass); transition: transform .5s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--c-black);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu ul { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 230; letter-spacing: -.03em;
}
.mobile-menu a span { font-size: 12px; letter-spacing: .1em; color: var(--text-3); }
.mobile-menu .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(32px, 5vw, 56px);
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__poster, .system__poster {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero__poster {
  background-image: url("../img/textures/gradient-poster.webp");
  transform: scale(1.1);
}
/* CSS fluted glass, shown until WebGL takes over (reference image 2) */
.hero__poster::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(var(--black-rgb), .22) 0, rgba(var(--brass-rgb), .07) 3px, transparent 9px,
    rgba(var(--black-rgb), .1) 18px, rgba(var(--black-rgb), .22) 22px);
}
canvas[data-gl] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
canvas[data-gl].is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--black-rgb), .78) 0%, rgba(var(--black-rgb), .3) 55%, rgba(var(--black-rgb), 0) 100%),
    linear-gradient(0deg, rgba(var(--black-rgb), .9) 0%, rgba(var(--black-rgb), 0) 45%);
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(28px, 4vw, 48px); }
.hero__title {
  font-size: clamp(2rem, min(5.4vw, 8.6vh), 5.75rem);
  font-weight: 180;
  line-height: 1.02;
  letter-spacing: -.015em;   /* capitals want air, not the tight tracking of lowercase */
  margin-left: -.05em;
}
.hero__title .mask { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line { display: block; will-change: transform; }
.hero__title em { font-weight: 250; }
.hero__bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 32px 64px;
}
.hero__lead { max-width: 46ch; color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero__stats li { display: grid; gap: 4px; padding: 20px 24px 0 0; }
.hero__stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__stats strong { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 200; letter-spacing: -.04em; line-height: 1.05; }
.hero__stats span { font-size: 13px; line-height: 1.4; color: var(--text-2); }

.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  display: grid; justify-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--c-brass); animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Countries marquee ---------- */
.countries { padding: clamp(72px, 9vw, 128px) 0; border-bottom: 1px solid var(--line); overflow: clip; }
.countries__head {
  display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.countries__text { max-width: 52ch; color: var(--text-2); }
.marquee { display: flex; overflow: clip; user-select: none; }
.marquee__track { display: flex; flex: none; }
.country {
  flex: none; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding-right: clamp(40px, 6vw, 96px);
  font-size: clamp(2.75rem, 7.5vw, 7.5rem); font-weight: 170; letter-spacing: -.05em; line-height: 1.1;
  color: var(--text-3);
  transition: color .6s var(--ease);
}
.country:hover, .country--lead { color: var(--c-brass); }
.country__code {
  display: inline-grid; place-items: center;
  width: clamp(44px, 4.4vw, 68px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: clamp(11px, 1vw, 14px); font-weight: 400; letter-spacing: .08em; color: var(--c-brass);
}
.country--lead .country__code { background: var(--c-brass); color: var(--c-black); border-color: var(--c-brass); }
/* Static fallback (no JS / reduced motion): wrap instead of scrolling */
html:not(.js) .marquee__track, .reduced .marquee__track { flex: 1 1 100%; flex-wrap: wrap; row-gap: 8px; padding-inline: var(--gutter); }
.reduced .marquee__track + .marquee__track { display: none; }

/* ---------- Manifesto ---------- */
.manifesto { padding: var(--section) 0; display: grid; gap: 40px; }
.manifesto__text {
  font-size: clamp(1.75rem, 4.1vw, 4rem);
  font-weight: 210; line-height: 1.14; letter-spacing: -.035em;
  max-width: 24ch;
  text-wrap: pretty;
}
.manifesto__text .word { color: rgba(var(--brass-rgb), calc(.16 + .84 * var(--w, 0))); }

/* ---------- The system (network canvas) ---------- */
.network {
  position: relative; isolation: isolate; overflow: clip;
  min-height: clamp(560px, 100svh, 980px);
  display: grid; place-items: center;
  background: transparent;   /* the grainy orbs glow through behind the dot field */
}
.network__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* A soft dark pool behind the headline so brass text never fights brass dots */
.network__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 24% at 50% 50%, rgba(var(--black-rgb), .72) 0%, rgba(var(--black-rgb), .38) 55%, rgba(var(--black-rgb), 0) 100%);
}
.network__copy { display: grid; justify-items: center; gap: 22px; text-align: center; pointer-events: none; }
.network__copy h2 {
  font-size: clamp(2.25rem, 5.4vw, 5.5rem);
  font-weight: 180; letter-spacing: -.045em; line-height: 1.02;
  max-width: 20ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(var(--black-rgb), .9);
}
.network__sub { font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); }
.network__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 10px; }
.network__legend li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  transition: color .6s var(--ease);
}
.network__legend i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-coffee);
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.network__legend li.is-live { color: var(--c-brass); }
.network__legend li.is-live i { background: var(--c-brass); box-shadow: 0 0 0 4px rgba(var(--brass-rgb), .14), 0 0 14px rgba(var(--brass-rgb), .6); }

/* ---------- Services ---------- */
.services { padding: var(--section) 0; background: var(--c-green); position: relative; }
.service-list { border-bottom: 1px solid var(--line); }
.service {
  --mx: 50%;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 48px;
  align-items: start; gap: 24px;
  padding: clamp(32px, 3.4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
/* Fluted glass glow that follows the pointer on hover */
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(var(--black-rgb), .35) 0, rgba(var(--brass-rgb), .08) 3px, transparent 10px, rgba(var(--black-rgb), .2) 20px, rgba(var(--black-rgb), .35) 24px),
    radial-gradient(60% 140% at var(--mx) 100%, rgba(var(--brass-rgb), .32), rgba(var(--coffee-rgb), .25) 35%, transparent 75%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.service:hover::before { opacity: 1; }
.service__no { font-size: 13px; letter-spacing: .1em; color: var(--text-3); padding-top: .6em; font-variant-numeric: tabular-nums; }
.service__title {
  font-size: clamp(1.75rem, 3.4vw, 3.25rem); font-weight: 210; letter-spacing: -.04em; line-height: 1.05;
  transition: transform .7s var(--ease), font-variation-settings .7s var(--ease);
  font-variation-settings: "SHRP" 0;
}
.service:hover .service__title { transform: translateX(12px); font-variation-settings: "SHRP" 100; }
.service__body { display: grid; gap: 20px; color: var(--text-2); padding-top: .4em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 12px; letter-spacing: .04em; padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2);
}
.service__arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: transform .7s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.service__arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.service:hover .service__arrow { transform: rotate(45deg); background: var(--c-brass); color: var(--c-black); }
.section-cta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px;
  margin-top: 48px; color: var(--text-2);
}

/* ---------- Levers (psychology) ---------- */
.levers { padding: var(--section) 0; }
.lever-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lever {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 44vw, 640px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--c-black);
  display: flex; align-items: flex-end;
}
/* Card textures, revealed by a pointer-following light */
.lever__tex {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/textures/glass-blocks-light.webp") center / cover;
  opacity: .9;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, rgba(0,0,0,.35) 30%, rgba(0,0,0,.08) 70%);
  mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, rgba(0,0,0,.35) 30%, rgba(0,0,0,.08) 70%);
}
/* Each card its own material: image 4 (soft light), image 2 (fluted glass), image 6 (glass blocks, upside down) */
.lever:nth-child(1) .lever__tex { background-image: url("../img/textures/card-light.webp"); background-position: center top; }
.lever:nth-child(2) .lever__tex { background-image: url("../img/textures/card-fluted.webp"); background-position: center 30%; }
.lever:nth-child(3) .lever__tex { background-image: url("../img/textures/glass-blocks-light-flip.webp"); background-size: 140% auto; background-position: 40% 100%; }
.lever::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--c-black) 30%, rgba(var(--black-rgb), .4) 70%, rgba(var(--black-rgb), .15));
}
.lever__inner { display: grid; gap: 16px; padding: clamp(24px, 2.4vw, 36px); }
.lever__no { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.lever h3 { font-size: clamp(1.625rem, 2.4vw, 2.25rem); font-weight: 230; letter-spacing: -.035em; }
.lever p { color: var(--text-2); font-size: 16px; }
.principles { margin-top: 8px; border-top: 1px solid var(--line); }
.principles li {
  display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.45; color: var(--text-2);
}
.principles b { font-weight: 400; color: var(--text); font-size: 15px; }

/* Form fields (used by the analysis form) */
.field { display: grid; gap: 8px; }
.field > span, .field > .field-label { font-size: 13px; color: var(--text-2); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font-size: 18px; font-weight: 300; color: var(--text);
  transition: border-color .3s var(--ease);
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder { color: rgba(var(--brass-rgb), .4); }
.field input:focus, .field select:focus { outline: none; border-color: var(--c-brass); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23CF9D7B' stroke-width='1.5'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.field select option { background: var(--c-black); color: var(--c-brass); }

/* ---------- System (two speeds) ---------- */
.label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.exclusive-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 450; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-black);
  background: var(--accent) url("../img/textures/metal-brushed.webp") center / cover; background-blend-mode: soft-light;
  box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .9), inset 0 -1px 0 rgba(var(--coffee-rgb), .5);
}
.exclusive-tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.exclusive-note { display: block; margin-top: 14px; font-weight: 400; color: var(--text); }
.system { position: relative; padding: var(--section) 0; background: var(--c-green); overflow: clip; }
.system__media { position: absolute; inset: 0; }
/* Honeycomb glass (reference image 5) */
.system__poster { background-image: url("../img/textures/honeycomb.webp"); opacity: .35; }
.system__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--c-green) 0%, rgba(var(--green-rgb), .55) 30%, rgba(var(--green-rgb), .7) 70%, var(--c-green) 100%);
}
.system .wrap { position: relative; z-index: 1; }
.speeds { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.speed {
  display: grid; gap: 16px; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(var(--black-rgb), .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.speed__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.speed__tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.speed__pct { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 150; letter-spacing: -.05em; line-height: .9; }
.speed p { color: var(--text-2); max-width: 40ch; }
.speed__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.speed__bar i {
  display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit;
  background: var(--c-brass) url("../img/textures/metal-brushed.webp") center / cover; background-blend-mode: soft-light;
  transform-origin: left;
}
.speed__cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.speed__cells i { height: 6px; border-radius: 2px; background: var(--line-2); }
.speed__cells i.is-on { background: var(--c-brass); }
.speed__cells i.is-win { background: var(--c-brass); box-shadow: 0 0 12px rgba(var(--brass-rgb), .7); }

.loop {
  margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(var(--black-rgb), .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.loop__step {
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: clamp(20px, 2.4vw, 32px);
  transition: background-color .6s var(--ease);
}
.loop__step + .loop__step { border-left: 1px solid var(--line); }
.loop__step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--c-brass); transform: scaleX(0); transform-origin: left;
}
.loop__step.is-active { background: rgba(var(--brass-rgb), .07); }
.loop__step.is-active::before { animation: loopbar 2.6s linear forwards; }
@keyframes loopbar { to { transform: scaleX(1); } }
.loop__step span { font-size: 12px; letter-spacing: .14em; color: var(--text-3); }
.loop__step h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 300; transition: color .4s; color: var(--text-2); }
.loop__step.is-active h3 { color: var(--text); }
.loop__step p { font-size: 14px; line-height: 1.5; color: var(--text-2); }

.algo {
  margin-top: clamp(80px, 10vw, 160px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 112px);
}
.algo__head { display: grid; gap: 20px; align-content: start; }
.algo__head h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 220; letter-spacing: -.035em; line-height: 1.1; }
.algo__head p { color: var(--text-2); }
.shifts { border-top: 1px solid var(--line); }
.shifts li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 24px minmax(0, 1.2fr); gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.shifts__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.shifts__then { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(var(--brass-rgb), .4); }
.shifts i { font-style: normal; color: var(--text-3); }
.shifts__now { color: var(--text); font-size: 18px; }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0; }
.faq__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 300; letter-spacing: -.01em;
  transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--text); }
.qa summary i { position: relative; flex: none; width: 16px; height: 16px; }
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform .5s var(--ease);
}
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding-bottom: 28px; color: var(--text-2); max-width: 60ch; }

/* ---------- Audit: the one bright "light box" (reference image 4, high key) ---------- */
.audit {
  --mx: 30%; --my: 40%;
  position: relative; isolation: isolate; overflow: clip;
  padding: var(--section) 0;
  background: var(--c-brass);
  color: var(--c-black);
}
.audit__bg {
  position: absolute; inset: -8% 0; z-index: -3;
  background: url("../img/textures/audit-light.webp") center / cover;
}
/* The copy side is lifted to clean brass so black text always reads */
.audit::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--brass-rgb), .74) 0%, rgba(var(--brass-rgb), .46) 40%, rgba(var(--brass-rgb), 0) 68%);
}
/* Pointer light: warms the coffee folds, never brighter than brass */
.audit__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(var(--brass-rgb), .6), rgba(var(--brass-rgb), 0) 70%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.audit:hover .audit__glow { opacity: 1; }
.audit ::selection { background: var(--c-black); color: var(--c-brass); }
.audit :focus-visible { outline-color: var(--c-black); }
.audit .ph { background: rgba(var(--black-rgb), .08); }
.audit .label { color: var(--c-black); }

.audit__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end;
  gap: 28px clamp(32px, 6vw, 120px); margin-bottom: clamp(56px, 7vw, 96px);
}
.audit__head > div { display: grid; gap: 28px; }
.audit__head h2 { font-size: clamp(2.75rem, 5.6vw, 5.75rem); font-weight: 180; letter-spacing: -.05em; line-height: .98; }
.audit__intro { font-size: 17px; max-width: 42ch; }
.audit__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.audit__copy { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 32px); }
/* What the free analysis includes */
.audit__includes { border-top: 1px solid rgba(var(--black-rgb), .22); }
.audit__includes li {
  position: relative; padding: 16px 0 16px 32px; font-size: 18px; line-height: 1.4;
  border-bottom: 1px solid rgba(var(--black-rgb), .22);
}
.audit__includes li::before {
  content: ""; position: absolute; left: 3px; top: 1.45em; width: 12px; height: 6px;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.audit__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.audit__price strong { font-size: clamp(2.75rem, 4.4vw, 4rem); font-weight: 150; letter-spacing: -.05em; line-height: 1; }
.audit__price > span { font-size: 15px; color: rgba(var(--black-rgb), .8); }
.audit__promise { font-size: 15px; }
.audit__direct { display: grid; gap: 4px; font-size: 15px; }
.audit__direct p { margin-bottom: 6px; color: rgba(var(--black-rgb), .78); }
.audit__direct a { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 300; letter-spacing: -.02em; width: fit-content; border-bottom: 1px solid rgba(var(--black-rgb), .3); transition: border-color .3s; }
.audit__direct a:hover { border-color: var(--c-black); }

.audit__side { position: relative; }
.audit__panel {
  position: relative; border-radius: calc(var(--radius) + 2px); padding: 1px; overflow: hidden;
  box-shadow: 0 50px 100px -30px rgba(var(--black-rgb), .6), 0 18px 36px -18px rgba(var(--black-rgb), .45);
}
.audit__stone { position: absolute; inset: 0; background: url("../img/textures/metal-mesh.webp") center / cover; opacity: .9; }
.audit-form {
  position: relative; display: grid; gap: 24px;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--radius);
  background: var(--c-black);
  color: var(--c-brass);
}
.audit-form:focus { outline: none; }
.audit-form ::selection { background: var(--c-coffee); color: var(--c-brass); }
.audit-form :focus-visible { outline-color: var(--c-brass); }
.audit-form .ph { background: rgba(var(--brass-rgb), .09); }

/* Circular badge on the form's corner; turns with the scroll */
.audit-badge {
  position: absolute; z-index: 2; top: -58px; right: -42px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-black); color: var(--c-brass);
  box-shadow: 0 0 0 1px rgba(var(--brass-rgb), .35), 0 22px 44px -14px rgba(var(--black-rgb), .65);
}
.audit-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; }
.audit-badge__ring text { fill: var(--c-brass); font-family: var(--font); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; }
.audit-badge__mark { height: 36px; color: var(--c-brass); }
.audit-form__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.audit-form__progress i { display: block; height: 100%; width: 33.333%; background: var(--c-brass); transition: width .7s var(--ease); }
.audit-form__step-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.step-panel { display: grid; gap: 20px; }
.step-panel legend { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 250; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 20px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: grid; gap: 4px; height: 100%; padding: 18px;
  background: var(--c-black);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.choice b { font-weight: 350; font-size: 16px; line-height: 1.3; }
.choice small { font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.choice:hover > span { border-color: var(--c-brass); }
.choice input:checked + span { background: var(--c-brass); color: var(--c-black); border-color: var(--c-brass); }
.choice input:checked + span small { color: rgba(var(--black-rgb), .7); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 1px solid var(--c-brass); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--c-black);
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}
.chip:hover span { border-color: var(--c-brass); }
.chip input:checked + span { background: var(--c-brass); color: var(--c-black); border-color: var(--c-brass); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-brass); }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.error { font-size: 13px; font-style: normal; color: var(--c-brass); display: flex; align-items: center; gap: 8px; }
.error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-brass); color: var(--c-black); font-size: 11px; font-weight: 550; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--c-brass); border-bottom-width: 2px; }
.audit-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.audit-form__nav [data-next], .audit-form__nav [data-submit] { margin-left: auto; }
.audit-form__done { display: grid; gap: 16px; padding: 24px 0; }
.audit-form__done h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 210; letter-spacing: -.04em; }
.audit-form__done p:not(.label) { color: var(--text-2); }

/* ---------- Footer (dark wood, reference image 7) ---------- */
.site-footer { position: relative; isolation: isolate; padding: clamp(96px, 12vw, 180px) 0 32px; overflow: clip; }
.site-footer__tex {
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/textures/footer-light.webp") center / cover;   /* reference image 4, pale */
}
.site-footer__tex::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--c-black) 0%, rgba(var(--black-rgb), .38) 24%, rgba(var(--black-rgb), .45) 100%);
}
.site-footer__cta { display: grid; gap: 24px; padding-bottom: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.footer-big-link {
  display: inline-flex; align-items: center; gap: .3em; width: fit-content;
  font-size: clamp(3rem, 9vw, 9rem); font-weight: 170; letter-spacing: -.055em; line-height: 1;
  transition: gap .7s var(--ease), font-variation-settings .7s var(--ease);
  font-variation-settings: "SHRP" 0;
}
.footer-big-link svg { width: .55em; height: .55em; fill: none; stroke: currentColor; stroke-width: 1; transition: transform .7s var(--ease); }
.footer-big-link:hover { gap: .45em; font-variation-settings: "SHRP" 100; }
.footer-big-link:hover svg { transform: rotate(-45deg); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding: 56px 0;
}
.footer-h { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.site-footer__grid ul { display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.site-footer__grid a, .site-footer__grid .link-btn { transition: color .3s; }
.site-footer__grid a:hover, .site-footer__grid .link-btn:hover { color: var(--text); }
.socials { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: background-color .4s, color .4s, border-color .4s;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover { background: var(--c-brass); color: var(--c-black); border-color: var(--c-brass); }
/* Warm-metal wordmark */
/* The ring of stars sits above the letters' box (4.92% of the width), so the top margin makes room for it */
.site-footer__logo { position: relative; width: 100%; aspect-ratio: 3.5277; margin: calc(24px + 4.92%) 0 40px; }
/* Image 4 seen through the letters and the ring of stars: the box reaches up over the ring (full logo
   viewBox, top synced by tools/make_brand.py) and is masked by the full logo file */
.site-footer__word {
  position: absolute; left: 0; right: 0; bottom: 0; top: -18.167%;
  background: url("../img/textures/footer-logo.webp") center / 100% 100% no-repeat;
  -webkit-mask: url("../img/brand/lucrina-wordmark.svg") center / 100% 100% no-repeat;
  mask: url("../img/brand/lucrina-wordmark.svg") center / 100% 100% no-repeat;
}
.site-footer__legal { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__legal .logo-mark { height: 16px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.to-top:hover { color: var(--text); }

/* ---------- Floating chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 110; display: grid; justify-items: end; gap: 10px; }
.chat__toggle {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-black);
  background: var(--c-brass) url("../img/textures/metal-brushed.webp") center / cover; background-blend-mode: soft-light;
  box-shadow: 0 10px 30px rgba(var(--black-rgb), .5), inset 0 1px 0 rgba(var(--brass-rgb), .9);
  transition: transform .5s var(--ease);
}
.chat__toggle:hover { transform: scale(1.06); }
.chat__toggle svg { grid-area: 1 / 1; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; transition: opacity .3s, transform .5s var(--ease); }
.chat__close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat__open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat__close { opacity: 1; transform: none; }
.chat__menu { display: grid; gap: 8px; justify-items: end; }
.chat__item {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(var(--black-rgb), .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; transition: background-color .3s, color .3s;
}
.chat__item svg { width: 18px; height: 18px; fill: currentColor; }
.chat__item:hover { background: var(--c-brass); color: var(--c-black); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 115;
  width: min(440px, calc(100% - 40px));
  display: grid; gap: 16px; padding: 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(var(--black-rgb), .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
.cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 96px) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 200; letter-spacing: -.05em; line-height: 1; margin: 24px 0 48px; }
.legal h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -.02em; margin: 48px 0 16px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accents and imagery on cream ---------- */
html body::after { opacity: .03; }
html ::selection { background: var(--accent); color: var(--ink-black); }
/* Warm-metal stays brass in both themes */
html .btn--primary {
  color: var(--ink-black);
  background-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .9), inset 0 -1px 0 rgba(var(--coffee-rgb), .55);
}
html .btn--primary::before {
  background: linear-gradient(105deg, transparent 30%, rgba(var(--accent-rgb), 1) 48%, rgba(var(--accent-rgb), .2) 56%, transparent 70%);
}
html .chat__toggle { background-color: var(--accent); color: var(--ink-black); }
html .speed__bar i { background-color: var(--accent); }
html .speed__cells i.is-on { background: var(--c-coffee); }
html .speed__cells i.is-win { background: var(--c-coffee); box-shadow: 0 0 12px rgba(var(--accent-rgb), .9); }
html .network__legend li.is-live i { background: var(--c-coffee); box-shadow: 0 0 0 4px rgba(var(--coffee-rgb), .12), 0 0 14px rgba(var(--accent-rgb), .9); }
html .service::before {
  background:
    repeating-linear-gradient(90deg, rgba(var(--black-rgb), .55) 0, rgba(var(--accent-rgb), .14) 3px, transparent 10px, rgba(var(--coffee-rgb), .05) 20px, rgba(var(--black-rgb), .55) 24px),
    radial-gradient(60% 140% at var(--mx) 100%, rgba(var(--accent-rgb), .5), rgba(var(--accent-rgb), .16) 40%, transparent 75%);
}
/* Imagery: light versions of the textures */
html .hero__poster { opacity: .2; }
html .system__poster { mix-blend-mode: multiply; opacity: .12; }

/* ---------- Responsive ---------- */
/* Room for logo + "Growth Partners" + menu on small laptops */
@media (max-width: 1240px) and (min-width: 1101px) {
  .site-header__inner { gap: 28px; }
  .nav ul { gap: 22px; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .header-cta + .menu-toggle { margin-left: 0; }
  .hero__bottom { grid-template-columns: 1fr; }
  .lever-grid { grid-template-columns: 1fr; }
  .lever { min-height: 0; }
  .lever__inner { padding-top: 160px; }
  .algo { grid-template-columns: 1fr; }
  .faq__layout { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 32px; }
  .audit__layout { grid-template-columns: 1fr; }
  .audit__copy { position: static; }
  .audit__bg { background-image: url("../img/textures/audit-light-portrait.webp"); }
  .audit::after { background: linear-gradient(180deg, rgba(var(--brass-rgb), .72) 0%, rgba(var(--brass-rgb), .5) 45%, rgba(var(--brass-rgb), .08) 75%); }
  .audit-badge { width: 108px; height: 108px; top: -54px; right: 4px; }
  .audit__head { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 68px; }
  .brand .logo-word { height: 24px; }
  /* padding-top leaves room for the ring of stars above the logo */
  .brand { flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 6px; }
  .brand__tag { margin-left: 2px; font-size: 9.5px; letter-spacing: .3em; }
  .brand__tag::before { display: none; }
  .header-cta { display: none; }
  .header-cta + .menu-toggle { margin-left: auto; }
  .site-header__inner { gap: 12px; }
  .section-head--split { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n+3) { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .service { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; }
  .service__body { grid-column: 2; }
  .service__arrow { display: none; }
  .speeds { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .loop__step:nth-child(3) { border-left: 0; }
  .loop__step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shifts li { grid-template-columns: 1fr; gap: 4px; }
  .shifts i { display: none; }
  .choices { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { right: 16px; bottom: 16px; }
  .cookie { left: 16px; bottom: 88px; width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
