/* =========================================================================
   ONOYOLO HOLDINGS — Luminous Precision
   Design tokens carried over verbatim from the Stitch DESIGN.md export.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Surfaces */
  --surface: #fcf8ff;
  --surface-bright: #fcf8ff;
  --surface-dim: #dcd8e5;
  --surface-lowest: #ffffff;
  --surface-low: #f5f2ff;
  --surface-container: #f0ecf9;
  --surface-high: #eae6f4;
  --surface-highest: #e4e1ee;

  /* Ink */
  --on-surface: #1b1b24;
  --on-surface-variant: #464555;
  --outline: #777587;
  --outline-variant: #c7c4d8;
  --inverse-surface: #302f39;
  --inverse-on-surface: #f3effc;
  --obsidian: #0c0c0d;

  /* Brand light-sources */
  --primary: #3525cd;
  --primary-container: #4f46e5;
  --on-primary: #ffffff;
  --secondary: #712ae2;
  --secondary-container: #8a4cfc;
  --indigo: #4f46e5;
  --violet: #7c3aed;

  /* Type */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale — clamp() so nothing needs a breakpoint to stay readable */
  --t-display-xl: clamp(2.75rem, 1.2rem + 6.6vw, 5rem);     /* 44 -> 80 */
  --t-display-lg: clamp(2.25rem, 1.35rem + 3.9vw, 3.75rem); /* 36 -> 60 */
  --t-headline-lg: clamp(1.75rem, 1.28rem + 2vw, 2.5rem);   /* 28 -> 40 */
  --t-headline-md: clamp(1.3rem, 1.15rem + 0.65vw, 1.5rem); /* 21 -> 24 */
  --t-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);     /* 17 -> 20 */
  --t-body-md: 1rem;
  --t-label-md: 0.875rem;
  --t-label-sm: 0.75rem;

  /* Space */
  --container: 1440px;
  --measure: 68ch;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2rem);
  --margin: clamp(1.5rem, 0.4rem + 4.4vw, 5rem);
  --section-gap: clamp(5rem, 2.4rem + 11vw, 10rem);
  --stack-sm: 0.5rem;
  --stack-md: 1rem;
  --stack-lg: 1.5rem;

  /* Shape */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-2xl: clamp(1.5rem, 0.8rem + 3vw, 3rem);
  --r-full: 9999px;

  /* Motion — custom curves; the CSS built-ins are too weak to read as intentional */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);

  --d-press: 140ms;
  --d-hover: 220ms;
  --d-ui: 240ms;
  --d-panel: 420ms;
  --d-editorial: 900ms;

  --nav-h: 4.5rem;
  --header-offset: 0px;
}

/* ---------- 2. Reset & base --------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--t-body-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

::selection {
  background: color-mix(in oklab, var(--indigo) 22%, transparent);
  color: var(--on-surface);
}

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

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--obsidian);
  color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--t-label-md);
  transform: translateY(-160%);
  transition: transform var(--d-ui) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 3. Layout primitives ---------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: var(--section-gap); position: relative; }
.section--tight { padding-block: calc(var(--section-gap) * 0.6); }
.section--flush-top { padding-top: 0; }

/* Tonal tiers. A page of pure surface reads flat, so alternating sections sit
   a step down in tone and carry a faint colour wash. */
.section--tint {
  background: var(--surface-low);
  overflow: clip;
}

.section--tint::before,
.section--wash::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 90%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 14% 30%, color-mix(in srgb, var(--indigo) 13%, transparent), transparent 70%),
    radial-gradient(40% 54% at 88% 18%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 66%);
  filter: blur(20px);
  -webkit-mask-image: radial-gradient(130% 100% at 50% 20%, #000 40%, transparent 100%);
  mask-image: radial-gradient(130% 100% at 50% 20%, #000 40%, transparent 100%);
}

.section--wash { position: relative; overflow: clip; }
.section--tint > *, .section--wash > * { position: relative; z-index: 1; }

/* ---- Full-bleed image band ------------------------------------------- */

.band {
  position: relative;
  min-height: clamp(15rem, 30vh, 22rem);
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
  color: #fff;
  text-align: center;
}

.band__media {
  position: absolute;
  inset: -12%;
  z-index: -2;
  /* Deliberately larger than the frame so the parallax has somewhere to
     travel. max-width:none is required — the global img rule would clamp it
     back to the container width and leave a gap at the edge. */
  width: 124%;
  max-width: none;
  height: 124%;
  object-fit: cover;
}

.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--obsidian) 62%, transparent),
    color-mix(in srgb, var(--obsidian) 34%, transparent) 50%,
    color-mix(in srgb, var(--obsidian) 68%, transparent)
  );
}

.band--light { color: var(--on-surface); }
.band--light .band__scrim {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 55%, transparent),
    color-mix(in srgb, var(--surface) 20%, transparent) 50%,
    color-mix(in srgb, var(--surface) 62%, transparent)
  );
}

/* ---- Pull quote ------------------------------------------------------- */

.quote {
  margin-inline: auto;
}

.quote__mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.6;
  color: var(--secondary-container);
  margin-bottom: 1.25rem;
}

.quote__text {
  max-width: 20ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.quote__by {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.68;
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* Column utilities.
   The span goes on grid-column-END, not the shorthand: `grid-column: span 5`
   would put `span 5` on the START edge, and any `.start-N` alongside it would
   then leave the end at `auto` — collapsing the item to a single column. */
.col-3 { grid-column-end: span 3; }
.col-4 { grid-column-end: span 4; }
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.col-8 { grid-column-end: span 8; }
.col-12 { grid-column: 1 / -1; }
.start-6 { grid-column-start: 6; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

@media (max-width: 900px) {
  .grid12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid12 > * { grid-column: 1 / -1; }
  /* Full width for every column utility. Deliberately no `.start-*` reset
     here — `grid-column: 1 / -1` already sets the start edge, and resetting
     it afterwards would hand the item back to auto-placement, collapsing it
     to a single track. */
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }
  /* Order swaps that only exist to alternate image/text on desktop */
  .m-first { order: -1; }
}

.stack { display: flex; flex-direction: column; gap: var(--stack-lg); }
.stack-sm { display: flex; flex-direction: column; gap: var(--stack-sm); }

/* ---------- 4. Typography components ------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform-origin: left;
}

.eyebrow--plain::before { display: none; }

.display-xl { font-size: var(--t-display-xl); font-weight: 800; letter-spacing: -0.045em; line-height: 1.0; }
.display-lg { font-size: var(--t-display-lg); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.headline-lg { font-size: var(--t-headline-lg); font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
.headline-md { font-size: var(--t-headline-md); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }

.lede {
  text-wrap: balance;
  font-size: var(--t-body-lg);
  font-weight: 380;
  line-height: 1.65;
  color: var(--on-surface-variant);
  max-width: 46ch;
}

.body { color: var(--on-surface-variant); font-weight: 380; max-width: var(--measure); }

/* Short supporting paragraphs balance; long-form prose keeps `pretty`, which
   is the right call once a block runs past a handful of lines. */
.feature .body,
.timeline .body,
.member .body,
.stack > .body { text-wrap: balance; }
.body--narrow { max-width: 52ch; }

.gradient-text {
  background: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 55%, var(--secondary-container) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Gradient text has no glyph antialiasing fallback; keep a hairline of ink
     behind it so it never fully vanishes if background-clip is unsupported. */
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text { color: var(--primary); -webkit-text-fill-color: currentColor; }
}

/* ---------- 5. Buttons --------------------------------------------------- */

/* Violet by default, wiping to indigo on hover — the pairing from the Stitch
   export. Obsidian is available as .btn--ink for the rare case where violet
   would compete with something. */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 2rem;
  min-height: 3.5rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--t-label-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--d-press) var(--ease-out),
              color var(--d-hover) var(--ease-hover),
              border-color var(--d-hover) var(--ease-hover);
  will-change: transform;
}

/* Joy on hover: the indigo→violet wash wipes in from the left rather than
   cross-fading, so the fill reads as one moving object. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--indigo), var(--primary));
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--d-panel) var(--ease-out);
}

.btn > * { position: relative; z-index: 1; }

.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: inset(0 0 0 0); }
}
.btn:focus-visible::before { clip-path: inset(0 0 0 0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-surface);
  border-color: var(--outline-variant);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { color: #fff; border-color: transparent; }
}
.btn--ghost:focus-visible { color: #fff; }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--obsidian);
}
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { color: #fff; }
}

.btn--ink { --btn-bg: var(--obsidian); }

.btn--sm { padding: 0 1.4rem; min-height: 2.75rem; }

/* Violet on violet needs a light ring to stay legible inside dark panels */
.dark .btn:not(.btn--light):not(.btn--ghost) {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16);
}

.btn__icon {
  font-size: 1.05em;
  line-height: 0;
  transition: transform var(--d-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__icon { transform: translateX(3px); }
}

/* Text link with an underline that draws in from the left */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--t-label-md);
  font-weight: 600;
  padding-bottom: 0.35rem;
  color: var(--on-surface);
  transition: color var(--d-hover) var(--ease-hover);
}

.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--d-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--primary); }
  .link:hover::after { transform: scaleX(0); transform-origin: right; }
  .link:hover .btn__icon { transform: translateX(4px); }
}

/* ---------- 6. Header / navigation -------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform var(--d-panel) var(--ease-drawer),
              background-color var(--d-panel) var(--ease-hover),
              border-color var(--d-panel) var(--ease-hover),
              backdrop-filter var(--d-panel) var(--ease-hover);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}

.header[data-stuck="true"] {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-bottom-color: color-mix(in srgb, var(--outline-variant) 35%, transparent);
}

/* Slide the bar away when scrolling down, bring it straight back on the way up */
.header[data-hidden="true"] { transform: translateY(-102%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  min-height: var(--nav-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--on-surface);
  view-transition-name: site-logo;
}

.logo__mark {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--violet);
  flex: none;
  transition: transform var(--d-panel) var(--ease-out);
}

/* A view-transition-name must be unique per document — the footer lockup
   reuses .logo for styling only, so it opts out of the shared morph. */
.logo--footer .logo__mark { color: var(--secondary-container); width: 2.4rem; height: 2.4rem; }

.logo--footer {
  view-transition-name: none;
  color: #fff;
  gap: 0.7rem;
  font-size: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover .logo__mark { transform: rotate(90deg); }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

@media (max-width: 900px) { .nav { display: none; } }

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--t-label-md);
  font-weight: 600;
  color: var(--on-surface-variant);
  padding-block: 0.4rem;
  transition: color var(--d-hover) var(--ease-hover);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--primary); }
  .nav__link:hover::after { transform: scaleX(1); }
}

.nav__link[aria-current="page"] {
  color: var(--primary);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }
@media (max-width: 900px) { .header__cta { display: none; } }

/* Burger — the two bars cross into an X rather than fading out */
.burger {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  background: transparent;
  cursor: pointer;
  transition: transform var(--d-press) var(--ease-out),
              border-color var(--d-hover) var(--ease-hover);
  z-index: 2;
}
.burger:active { transform: scale(0.94); }

@media (max-width: 900px) { .burger { display: block; } }

.burger__bar {
  position: absolute;
  left: 50%;
  width: 1.1rem;
  height: 1.5px;
  margin-left: -0.55rem;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--d-ui) var(--ease-out),
              opacity 120ms linear;
}
.burger__bar:nth-child(1) { top: calc(50% - 4px); }
.burger__bar:nth-child(2) { top: calc(50% + 3px); }

.burger[aria-expanded="true"] { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 7. Mobile menu ---------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--margin) 3rem;
  background: var(--obsidian);
  color: #fff;
  /* Expands from the burger; the circle keeps the open tied to the tap point. */
  clip-path: circle(0% at calc(100% - 3.5rem) 2.5rem);
  visibility: hidden;
  transition: clip-path var(--d-panel) var(--ease-drawer),
              visibility 0s linear var(--d-panel);
}

.menu[data-open="true"] {
  clip-path: circle(150% at calc(100% - 3.5rem) 2.5rem);
  visibility: visible;
  transition: clip-path 560ms var(--ease-drawer), visibility 0s;
}

.menu__list { display: flex; flex-direction: column; gap: 0.25rem; }

.menu__link {
  display: block;
  padding-block: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.menu[data-open="true"] .menu__link {
  opacity: 1;
  transform: translateY(0);
  /* Stagger reads as a cascade rather than a curtain */
  transition-delay: calc(120ms + var(--i, 0) * 55ms);
}

.menu__foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2rem;
  font-size: var(--t-label-md);
  color: rgb(255 255 255 / 0.6);
  opacity: 0;
  transition: opacity 300ms var(--ease-out) 340ms;
}
.menu[data-open="true"] .menu__foot { opacity: 1; }
.menu__foot a { color: inherit; }

/* ---------- 8. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 3rem) var(--section-gap);
  overflow: clip;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__canvas[data-ready="true"] { opacity: 1; }

/* The CSS mesh is the stand-in. Once the shader is live it would double up,
   so it steps aside — cross-faded, not cut. */
.hero:has(.hero__canvas[data-ready="true"]) .hero__mesh {
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* CSS mesh that stands in before (or instead of) the shader */
.hero__mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 44% at 22% 30%, color-mix(in srgb, var(--indigo) 26%, transparent) 0%, transparent 65%),
    radial-gradient(34% 40% at 78% 26%, color-mix(in srgb, var(--violet) 24%, transparent) 0%, transparent 62%),
    radial-gradient(46% 50% at 62% 78%, color-mix(in srgb, var(--secondary-container) 20%, transparent) 0%, transparent 68%);
  filter: blur(30px);
  animation: mesh-drift 34s var(--ease-in-out) infinite alternate;
}

@keyframes mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(3%, -2.5%, 0) scale(1.08); }
  66%  { transform: translate3d(-2.5%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.1); }
}

/* Fade the mesh into the page so the hero has no hard edge */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--surface) 25%, transparent) 0%,
    color-mix(in srgb, var(--surface) 45%, transparent) 45%,
    var(--surface) 100%
  );
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero:has(.hero__photo) .hero__inner::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%,
    color-mix(in srgb, var(--surface) 78%, transparent) 0%,
    color-mix(in srgb, var(--surface) 40%, transparent) 55%,
    transparent 100%);
}

.hero__title { max-width: 15ch; }
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__title { max-width: 18ch; margin-inline: auto; }
.hero--center .lede { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero--center .eyebrow { justify-content: center; }

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

/* Scroll hint — a line that keeps travelling downward */
.scroll-hint {
  position: absolute;
  left: var(--margin);
  bottom: 2.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.scroll-hint__rail {
  position: relative;
  width: 1px;
  height: 3rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--outline-variant) 60%, transparent);
}

.scroll-hint__rail::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 45%;
  background: var(--primary);
  animation: rail-travel 2.4s var(--ease-in-out) infinite;
}

@keyframes rail-travel {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(230%); }
}

@media (max-width: 700px) { .scroll-hint { display: none; } }

/* ---------- 9. Cards ----------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  border-radius: var(--r-2xl);
  /* Not flat white: a whisper of the brand gradient gives the surface a
     direction, so a grid of cards reads as objects rather than cut-outs. */
  background:
    linear-gradient(158deg,
      color-mix(in srgb, var(--violet) 4%, #fff) 0%,
      color-mix(in srgb, var(--indigo) 7%, #fff) 55%,
      color-mix(in srgb, var(--violet) 12%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--violet) 16%, transparent);
  box-shadow:
    0 1px 2px rgb(27 27 36 / 0.04),
    0 20px 40px -18px rgb(124 58 237 / 0.14);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-panel) var(--ease-out),
              box-shadow var(--d-panel) var(--ease-out),
              border-color var(--d-panel) var(--ease-out);
}

/* Halo bloom that follows the pointer; --mx/--my are written by app.js */
.card::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(
    38% 38% at var(--mx, 50%) var(--my, 40%),
    color-mix(in srgb, var(--violet) 20%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.55;
  transition: opacity var(--d-panel) var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 60px -22px rgb(124 58 237 / 0.2);
    border-color: color-mix(in srgb, var(--violet) 30%, transparent);
  }
  .card:hover::before { opacity: 1; }
}

.card:focus-within {
  border-color: color-mix(in srgb, var(--violet) 34%, transparent);
}

/* The squircle plate from the design system. It also does real work: the
   studio renders carry a soft gradient backdrop, so giving them a surface to
   multiply onto turns what would read as a stray rectangle into a deliberate
   frame. */
.card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border-radius: var(--r-lg);
  background: var(--surface-low);
  overflow: hidden;
  isolation: isolate;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Multiply drops the studio backdrop out against the plate — and keeps the
     soft contact shadow that a hard cutout would destroy. */
  mix-blend-mode: multiply;
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.06) translateY(-2%); }
}

/* Wide image strip for cards that lead with artwork rather than a product */
.card__banner {
  position: relative;
  margin: calc(clamp(1.75rem, 1rem + 3vw, 2.75rem) * -1);
  margin-bottom: 2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  padding: 6%;
}

.card__banner img {
  width: 100%;
  height: 100%;
  /* contain, not cover: these are square product cut-outs in a 16:9 frame,
     and cover was slicing the top and bottom off the hardware. */
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 900ms var(--ease-out);
}

.card__banner--photo img { object-fit: cover; mix-blend-mode: normal; }

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__banner img { transform: scale(1.07); }
}

.card__sku {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.card__title { margin-bottom: 0.75rem; }
.card__body { color: var(--on-surface-variant); text-wrap: balance; font-weight: 380; margin-bottom: 1.75rem; flex: 1; }
.card__cta { align-self: flex-start; margin-top: auto; }

/* Whole-card click target without nesting interactive elements */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Feature card — the flat, hairline-ruled variant used for capability lists */
.feature {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) 0;
  border-top: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent);
  display: grid;
  /* minmax(0, 1fr), not 1fr: a bare 1fr floors at min-content, so a long word
     would push the track wider than the container. */
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
  transition: background-color var(--d-panel) var(--ease-out);
}

.feature:last-child { border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent); }

.feature__num {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  padding-top: 0.4rem;
}

.feature__title {
  font-size: var(--t-headline-md);
  margin-bottom: 0.5rem;
  transition: transform var(--d-panel) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover .feature__title { transform: translateX(0.5rem); }
}

@media (max-width: 640px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .feature__num { padding-top: 0; }
}

/* ---------- 10. Obsidian sections --------------------------------------- */

.dark {
  position: relative;
  background: var(--obsidian);
  color: #fff;
  overflow: clip;
  isolation: isolate;
}

.dark .body,
.dark .lede { color: rgb(255 255 255 / 0.66); }
.dark .eyebrow { color: #fff; }
.dark .eyebrow::before { background: var(--secondary-container); opacity: 1; }
.dark .link { color: #fff; }
.dark .btn--ghost { --btn-fg: #fff; border-color: rgb(255 255 255 / 0.28); }
.dark .feature { border-color: rgb(255 255 255 / 0.12); }
.dark .feature:last-child { border-bottom-color: rgb(255 255 255 / 0.12); }
.dark .feature__num { color: var(--secondary-container); }

.dark__bloom {
  position: absolute;
  z-index: -1;
  width: min(80rem, 130%);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--violet) 34%, transparent) 0%,
    color-mix(in srgb, var(--indigo) 14%, transparent) 38%,
    transparent 66%
  );
  filter: blur(20px);
  pointer-events: none;
  animation: bloom-breathe 16s var(--ease-in-out) infinite alternate;
}

@keyframes bloom-breathe {
  from { transform: scale(0.92); opacity: 0.7; }
  to   { transform: scale(1.12); opacity: 1; }
}

.dark__texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

/* ---------- 11. Stats ---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: var(--gutter);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--t-display-lg);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
}

.stat__label {
  margin-top: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.dark .stat__label { color: rgb(255 255 255 / 0.55); }

/* Floating stat card that overlaps the editorial image edge */
.stat-float {
  position: absolute;
  z-index: 3;
  right: -1rem;
  bottom: -1.75rem;
  padding: 1.75rem 2rem;
  border-radius: var(--r-lg);
  background: var(--obsidian);
  color: #fff;
  box-shadow: 0 30px 60px -25px rgb(12 12 13 / 0.55);
}
.stat-float .stat__label { color: rgb(255 255 255 / 0.6); }

@media (max-width: 640px) {
  .stat-float { right: 0; bottom: -1.25rem; padding: 1.25rem 1.5rem; }
}

/* ---------- 12. Media frames -------------------------------------------- */

.frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface-container);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Parallax offset written by the scroll timeline / rAF fallback */
  scale: 1.16;
  translate: 0 var(--par, 0px);
  will-change: translate;
}

.frame--portrait { aspect-ratio: 3 / 4; }
.frame--landscape { aspect-ratio: 16 / 9; }
.frame--wide { aspect-ratio: 21 / 8; }
.frame--square { aspect-ratio: 1; }

.frame__glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- 13. Product hero cutout ------------------------------------- */

.cutout {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.cutout img {
  width: 100%;
  mix-blend-mode: multiply;
  /* Feathers the outer edge of the studio backdrop so the cutout dissolves
     into the page instead of ending on a visible rectangle. The product sits
     well inside this radius, so nothing of the hardware is touched. */
  -webkit-mask-image: radial-gradient(closest-side, #000 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 76%, transparent 100%);
  /* Two independent transforms: a slow ambient float plus pointer tilt */
  rotate: var(--tilt-z, 0deg);
  transform: perspective(1200px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg))
             translateZ(0);
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}

.cutout__halo {
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--violet) 22%, transparent) 0%,
    color-mix(in srgb, var(--indigo) 10%, transparent) 40%,
    transparent 68%
  );
  filter: blur(28px);
  animation: halo-pulse 9s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}

@keyframes halo-pulse {
  from { transform: scale(0.9); opacity: 0.72; }
  to   { transform: scale(1.12); opacity: 1; }
}

.float { animation: float-drift 11s var(--ease-in-out) infinite alternate; }

@keyframes float-drift {
  from { translate: 0 -1.1%; }
  to   { translate: 0 1.6%; }
}

/* ---------- 14. Horizontal rail (services / journal) -------------------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(88vw, 26rem);
  gap: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margin);
  padding-inline: var(--margin);
  padding-block: 0.5rem 2rem;
  margin-inline: calc(var(--margin) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

@media (min-width: 901px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-inline: 0;
    margin-inline: 0;
    row-gap: var(--gutter);
  }
  /* The scroll indicator has nothing left to indicate. */
  .rail + .rail-progress { display: none; }
}

.rail-progress {
  position: relative;
  height: 2px;
  margin-top: 0.5rem;
  background: color-mix(in srgb, var(--outline-variant) 40%, transparent);
  border-radius: 2px;
  overflow: hidden;
}

.rail-progress__bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(var(--rail-p, 0.15));
  transition: transform 120ms linear;
}

/* ---------- 15. Marquee -------------------------------------------------- */

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  gap: 0;
  padding-block: 1.75rem;
  background: linear-gradient(100deg, #2a1d7a 0%, #3E2ECA 45%, #7736F2 100%);
  color: #fff;
  border-block: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  gap: 3.5rem;
  padding-right: 3.5rem;
  align-items: center;
  /* linear — constant motion should never ease */
  animation: marquee-slide 38s linear infinite;
}

.dark .marquee { border-color: rgb(255 255 255 / 0.12); }

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.9vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  flex: none;
}

/* ---------- 16. Sticky scroll sequence ---------------------------------- */

.sequence { position: relative; }

.sequence__sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  height: fit-content;
}

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

.sequence__step {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--stack-md);
  padding-block: 2rem;
}

/* White surface, not tinted: the layers below are transformed, and a
   transform creates a stacking context that isolates mix-blend-mode. The
   product's studio backdrop can only disappear if what sits behind it is the
   same white — so the frame supplies it, and the violet arrives as a halo. */
.sequence__frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-lowest);
  border: 1px solid color-mix(in srgb, var(--outline-variant) 30%, transparent);
}

.sequence__frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--violet) 16%, transparent) 0%,
    color-mix(in srgb, var(--indigo) 8%, transparent) 42%,
    transparent 70%
  );
  filter: blur(34px);
  animation: halo-pulse 9s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}

.sequence__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 7%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 520ms var(--ease-out), transform 720ms var(--ease-out);
}

.sequence__layer[data-active="true"] { opacity: 1; transform: scale(1); }

.sequence__layer img {
  mix-blend-mode: multiply;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .sequence__sticky { position: static; margin-bottom: 2rem; }
  .sequence__step { min-height: 0; padding-block: 1.5rem; }
  .sequence__layer { position: relative; opacity: 1; transform: none; }
  .sequence__layer:not([data-active="true"]) { display: none; }
}

/* ---------- 17. Forms ---------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 2rem; }

.field { position: relative; padding-top: 1.35rem; }

.field__input {
  width: 100%;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 80%, transparent);
  background: transparent;
  color: var(--on-surface);
  border-radius: 0;
  outline: none;
  transition: border-color var(--d-ui) var(--ease-hover);
}

textarea.field__input { resize: vertical; min-height: 5.5rem; }

.field__label {
  position: absolute;
  left: 0;
  top: 1.9rem;
  font-family: var(--font-display);
  font-size: var(--t-body-md);
  font-weight: 500;
  color: var(--on-surface-variant);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-hover);
}

/* Label rises and shrinks the moment the field has focus or content */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field select + .field__label,
.field__input[data-filled="true"] + .field__label {
  transform: translateY(-1.85rem) scale(0.78);
  color: var(--primary);
}

.field select.field__input + .field__label { transform: translateY(-1.85rem) scale(0.78); }

/* Indigo underline draws in from the left on focus */
.field__rule {
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-panel) var(--ease-out);
}
.field__input:focus ~ .field__rule { transform: scaleX(1); }

.field__input:user-invalid { border-bottom-color: #ba1a1a; }
.field__input:user-invalid ~ .field__rule { background: #ba1a1a; }

.field__error {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--t-label-sm);
  color: #ba1a1a;
  opacity: 0;
  transition: opacity var(--d-ui) var(--ease-hover);
}
.field__input:user-invalid ~ .field__error { opacity: 1; }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 2rem;
}

.form__note { font-size: var(--t-label-sm); color: var(--on-surface-variant); }

.form__status {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--indigo) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--indigo) 25%, transparent);
  font-size: var(--t-label-md);
}

.dark .field__input { color: #fff; border-bottom-color: rgb(255 255 255 / 0.24); }
.dark .field__label { color: rgb(255 255 255 / 0.6); }
.dark .field__input:focus + .field__label,
.dark .field__input:not(:placeholder-shown) + .field__label { color: var(--secondary-container); }

/* ---------- 18. Footer --------------------------------------------------- */

.footer {
  position: relative;
  background: var(--obsidian);
  color: #fff;
  padding-block: clamp(4rem, 2rem + 8vw, 7rem) 3rem;
  overflow: clip;
  view-transition-name: site-footer;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--gutter) var(--margin);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  /* Two columns squeeze the contact block narrower than the email address. */
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

.footer__brand p {
  margin-top: 1.25rem;
  max-width: 30ch;
  color: rgb(255 255 255 / 0.6);
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.42);
  margin-bottom: 1.35rem;
}

.footer__list { display: flex; flex-direction: column; gap: 0.85rem; }

.footer__list a {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: rgb(255 255 255 / 0.78);
  font-size: var(--t-body-md);
  transition: color var(--d-hover) var(--ease-hover);
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__list a:hover { color: #fff; }
  .footer__list a:hover::after { transform: scaleX(1); }
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3rem, 1rem + 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--t-label-md);
  color: rgb(255 255 255 / 0.5);
}

/* Oversized wordmark bleeding off the bottom edge */
.footer__wordmark {
  display: block;
  width: 100%;
  margin-top: 2.5rem;
  margin-bottom: -14%;
  font-family: var(--font-display);
  font-size: clamp(4rem, 17vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.82;
  color: rgb(255 255 255 / 0.06);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* ---------- 19. Page header (interior pages) ---------------------------- */

.page-head {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(3rem, 1rem + 8vw, 7rem)) clamp(3rem, 1rem + 6vw, 5rem);
  overflow: clip;
}

.page-head__mesh {
  position: absolute;
  inset: -60% -30% auto;
  height: 170%;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 40%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 66%),
    radial-gradient(36% 46% at 80% 30%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 62%);
  filter: blur(26px);
  animation: mesh-drift 30s var(--ease-in-out) infinite alternate;
  pointer-events: none;
  /* The drift moves the layer's own edge into view; feather it so the mesh
     never resolves into a visible rectangle over the page. */
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 45%, transparent 100%);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
}
.breadcrumb a { transition: color var(--d-hover) var(--ease-hover); }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--primary); } }
.breadcrumb span[aria-hidden] { opacity: 0.4; }

/* ---------- 20. Filters -------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent);
}

.filter {
  position: relative;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--t-label-md);
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: color var(--d-hover) var(--ease-hover),
              border-color var(--d-hover) var(--ease-hover),
              transform var(--d-press) var(--ease-out);
}
.filter:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .filter:hover { color: var(--on-surface); border-color: color-mix(in srgb, var(--outline-variant) 60%, transparent); }
}

.filter[aria-pressed="true"] {
  color: #fff;
  background: var(--obsidian);
  border-color: var(--obsidian);
}

/* ---------- 21. Product grid -------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--gutter);
}

.product-grid .card { transition: transform var(--d-panel) var(--ease-out),
                                  box-shadow var(--d-panel) var(--ease-out),
                                  border-color var(--d-panel) var(--ease-out),
                                  opacity 300ms var(--ease-out); }

.card[hidden] { display: none; }

/* Feature card spanning two columns on wide screens */
.card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.card--wide .card__media { margin-bottom: 0; }
.card--wide .card__content { display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .card--wide .card__media { margin-bottom: 2rem; }
}

/* ---------- 22. Spec list ------------------------------------------------ */

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

.spec {
  display: grid;
  grid-template-columns: minmax(min(9rem, 100%), 0.6fr) minmax(0, 1fr);
  gap: var(--gutter);
  padding-block: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent);
}
.spec:last-child { border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 45%, transparent); }

.spec__key {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding-top: 0.15rem;
}

@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- 23. Journal -------------------------------------------------- */

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  isolation: isolate;
}

.article-card__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--surface-container);
}

.article-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .article-card:hover .article-card__media img { transform: scale(1.06); }
  .article-card:hover .article-card__title { color: var(--primary); }
}

.article-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.article-card__title {
  font-size: var(--t-headline-md);
  transition: color var(--d-hover) var(--ease-hover);
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: var(--t-headline-md); margin-top: 3rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2.25rem; }
.prose p, .prose li { color: var(--on-surface-variant); font-size: var(--t-body-lg); line-height: 1.7; }
.prose ul { display: flex; flex-direction: column; gap: 0.65rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.prose strong { color: var(--on-surface); font-weight: 600; }

/* Reading progress rail pinned to the top of the viewport */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  pointer-events: none;
}

/* ---------- 24. Team ----------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--gutter);
}

.member { display: flex; flex-direction: column; gap: 1.25rem; }

.member {
  padding: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  border-radius: var(--r-2xl);
  background: linear-gradient(158deg,
    color-mix(in srgb, var(--violet) 4%, #fff) 0%,
    color-mix(in srgb, var(--indigo) 7%, #fff) 55%,
    color-mix(in srgb, var(--violet) 12%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--violet) 16%, transparent);
  transition: transform var(--d-panel) var(--ease-out),
              box-shadow var(--d-panel) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .member:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 54px -24px rgb(124 58 237 / 0.22);
  }
}

.member__monogram {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--r-full);
  background: linear-gradient(140deg, var(--indigo), var(--violet));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member__name { font-size: var(--t-headline-md); }
.member__role {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 0.4rem;
}

/* ---------- 25. Timeline ------------------------------------------------- */

.timeline { position: relative; padding-left: 2.25rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.75rem; bottom: 0.75rem;
  width: 1px;
  background: color-mix(in srgb, var(--outline-variant) 60%, transparent);
}

/* The indigo fill tracks scroll position down the rail */
.timeline::after {
  content: "";
  position: absolute;
  left: 4px; top: 0.75rem;
  width: 1px;
  height: calc(100% - 1.5rem);
  background: linear-gradient(var(--indigo), var(--violet));
  transform-origin: top;
  transform: scaleY(var(--timeline-p, 0));
  transition: transform 120ms linear;
}

.timeline__item { position: relative; padding-bottom: 3rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.25rem; top: 0.7rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  z-index: 1;
  transition: background-color var(--d-panel) var(--ease-out),
              border-color var(--d-panel) var(--ease-out),
              transform var(--d-panel) var(--ease-out);
}

.timeline__item[data-reached="true"]::before {
  background: var(--violet);
  border-color: var(--violet);
  transform: scale(1.25);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--t-label-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.timeline__title { font-size: var(--t-headline-md); font-weight: 700; margin: 0.5rem 0 0.65rem; }

/* ---------- 26. Custom cursor ------------------------------------------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--violet) 88%, transparent);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease, width 260ms var(--ease-out),
              height 260ms var(--ease-out), margin 260ms var(--ease-out);
}

.cursor[data-visible="true"] { opacity: 1; }

/* On the dark and purple panels a violet dot disappears; go white there. */
.cursor[data-on-dark="true"] {
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
}
.cursor[data-hot="true"] { width: 92px; height: 92px; margin: -46px 0 0 -46px; }

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ---------- 27. Reveal system ------------------------------------------- */

/* Baseline: JS marks <html> so no-JS users get content immediately. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 1.5rem));
  transition:
    opacity 760ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

/* Line-by-line masked reveal — each line rises from a clipped baseline */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.line-mask__inner {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
}

.js [data-shown="true"] .line-mask__inner,
.line-mask--shown .line-mask__inner { transform: translateY(0); }

.js .split-line {
  display: block;
  overflow: hidden;
  /* The mask must not clip descenders — pad the box, then pull it back. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.js .split-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 72ms);
}
.js [data-shown="true"] .split-line > span { transform: translateY(0); }

/* Word-level stagger for shorter labels */
.js .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 34ms);
}
.js [data-shown="true"] .split-word { opacity: 1; transform: none; }

/* Curtain wipe used for full-bleed section entrances */
.js [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-in-out);
}
.js [data-reveal="wipe"][data-shown="true"] { clip-path: inset(0 0 0 0); }

/* Image reveal from a clipped bottom edge, with the image counter-scaling */
.js [data-reveal="frame"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease-in-out); }
.js [data-reveal="frame"][data-shown="true"] { clip-path: inset(0 0 0 0); }
.js [data-reveal="frame"] img { transform: scale(1.18); transition: transform 1.4s var(--ease-out); }
.js [data-reveal="frame"][data-shown="true"] img { transform: scale(1); }

/* ---------- 28. Scroll-driven (native, off main thread) ------------------ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Textures drift slower than the page — depth without a rAF loop */
    .par-slow {
      animation: par-slow linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes par-slow {
      from { translate: 0 -7%; }
      to   { translate: 0 7%; }
    }

    .par-fast {
      animation: par-fast linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes par-fast {
      from { translate: 0 12%; }
      to   { translate: 0 -12%; }
    }

    /* Section headings settle as they cross the fold */
    .scroll-settle {
      animation: scroll-settle linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 32%;
    }
    @keyframes scroll-settle {
      from { opacity: 0.4; letter-spacing: 0.01em; }
      to   { opacity: 1; letter-spacing: -0.02em; }
    }

    /* Full-bleed dark panels scale up into place then hold */
    .scroll-zoom {
      animation: scroll-zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    @keyframes scroll-zoom {
      from { scale: 0.94; border-radius: var(--r-2xl); }
      to   { scale: 1; border-radius: 0; }
    }
  }
}

/* ---------- 29. View transitions ---------------------------------------- */

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vt-out 260ms var(--ease-in-out) both;
  }
  ::view-transition-new(root) {
    animation: vt-in 420ms var(--ease-out) both;
  }

  @keyframes vt-out {
    to { opacity: 0; transform: translateY(-1.25rem) scale(0.992); filter: blur(3px); }
  }
  @keyframes vt-in {
    from { opacity: 0; transform: translateY(1.75rem) scale(0.995); filter: blur(4px); }
  }

  /* Header, logo and footer are shared shells — hold them still across the swap */
  ::view-transition-group(site-header),
  ::view-transition-group(site-logo),
  ::view-transition-group(site-footer) {
    animation-duration: 420ms;
    animation-timing-function: var(--ease-out);
  }
  ::view-transition-old(site-header),
  ::view-transition-new(site-header),
  ::view-transition-old(site-footer),
  ::view-transition-new(site-footer) {
    animation: none;
    mix-blend-mode: normal;
  }

  /* A product image morphs from its card into the detail hero */
  ::view-transition-group(product-hero) {
    animation-duration: 620ms;
    animation-timing-function: var(--ease-in-out);
  }
}

/* ---------- 30. Reduced motion ------------------------------------------ */

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

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

  /* Keep meaning-carrying fades, drop every positional change */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .split-line > span,
  .js .split-word,
  .line-mask__inner { transform: none !important; opacity: 1 !important; }
  .js [data-reveal="frame"] img { transform: none !important; }
  .frame img { scale: 1; translate: 0; }
  .cutout img { transform: none !important; }
  .hero__canvas { display: none; }
  .hero__mesh { animation: none; }

  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- 31. Print ---------------------------------------------------- */

@media print {
  .header, .footer, .cursor, .scroll-hint, .read-progress, .hero__canvas, .hero__mesh { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}


/* ---------- 32. Contact panel ------------------------------------------- */

/* Was an inline clamp() with no spaces around the '+', which is invalid and
   silently dropped the padding entirely. It belongs in a class regardless. */
.contact-panel {
  padding: clamp(2rem, 1rem + 4vw, 3.5rem);
  border-radius: var(--r-2xl);
  height: 100%;
}

@media (min-width: 901px) {
  .contact-panel { position: sticky; top: calc(var(--nav-h) + 2rem); height: auto; }
}

.contact-panel__row + .contact-panel__row {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

/* ---------- 33. Hero photographic base ---------------------------------- */

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* The drifting mesh tints the glass rather than covering it */
.hero:has(.hero__photo) .hero__mesh { mix-blend-mode: multiply; opacity: 0.85; }
.hero:has(.hero__photo) .hero__canvas { mix-blend-mode: multiply; opacity: 0.5; }
.hero:has(.hero__photo) .hero__canvas[data-ready='true'] { opacity: 0.5; }


/* ---------- 34. Non-breaking data --------------------------------------- */

/* A telephone number split across two lines is unreadable and uncopyable. */
a[href^="tel:"],
a[href^="mailto:"] { white-space: nowrap; }

@media (max-width: 420px) {
  /* Below this the email genuinely cannot fit; let it break at the @ only. */
  a[href^="mailto:"] { white-space: normal; word-break: break-word; }
}


/* ---------- 35. Purple full-bleed --------------------------------------- */

/* Same structure as .dark, but based on the brand indigo instead of
   obsidian. Everything inside inherits white type from .dark. */
.dark--purple {
  background:
    radial-gradient(120% 90% at 70% 15%, #5b3ee0 0%, transparent 60%),
    linear-gradient(160deg, #2a1d7a 0%, #3E2ECA 55%, #24176b 100%);
}

.dark--purple .dark__bloom {
  background: radial-gradient(
    circle,
    color-mix(in srgb, #a78bfa 42%, transparent) 0%,
    color-mix(in srgb, var(--violet) 22%, transparent) 40%,
    transparent 68%
  );
}

.dark--purple .eyebrow { color: #fff; }
.dark--purple .feature__num { color: #c9bcff; }


/* ---------- 36. Product highlights band --------------------------------- */

/* Three short claims on the purple plate. Its own component so the rules and
   spacing are not patched on inline at the call site. */
.highlights { padding-block: calc(var(--section-gap) * 0.45); }
.highlights .feature { border: 0; padding-block: 0; }
.highlights .feature:last-child { border-bottom: 0; }
.highlights .feature__num { color: #fff; opacity: 0.55; }
.highlights .body { color: rgb(255 255 255 / 0.86); }
