/* FLENSS website — single stylesheet.
   Style basis: Refero "Impilo" (midnight-violet clinical observatory), adapted for FLENSS.
   Tokens first, then base, layout, components, sections, motion. */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces (violet family) */
  --iris-deep: #16165c;     /* canvas */
  --iris-shadow: #232269;   /* cards, one step up */
  --iris-glow: #403cd5;     /* hero, highlighted blocks, footer */
  --iris-pulse: #5350cc;    /* filled buttons, active states */
  --iris-border: #4846c6;   /* card outlines */
  --iris-veil: #524fe1;     /* hairlines */
  --iris-raised: #4c49da;   /* UI-mock card on the hero */
  --iris-line: #6a67e8;     /* outlines on glow surfaces */
  --pulse-hover: #5f5cdb;
  --panel: var(--iris-pulse); /* UI-mock panels on the hero */
  --hero-top: var(--iris-glow); /* top colour of the hero gradient */
  --mint-soft: color-mix(in srgb, var(--mint) 70%, var(--white)); /* small labels, eyebrows, ordinals */
  --surface-light: var(--pearl); /* light sections */
  --highlight: var(--cyan);      /* highlighted words in headlines */
  --blue-wash: linear-gradient(in oklab 150deg, color-mix(in oklab, var(--hero-top) 75%, transparent) 0%, transparent 70%); /* hero blue echoed on large surfaces */
  --surface-blue: color-mix(in oklab, var(--hero-top) 45%, var(--iris-shadow)); /* cards tinted with the hero blue */
  --on-glow: #e6e4ff;       /* body text on glow surfaces */
  --ink-soft: #2e2e5a;      /* body text on light bands */

  /* accents — always carry meaning */
  --cyan: #00b1ff;          /* data, links */
  --cyan-soft: #59b4ff;
  --teal: #2ee9ff;          /* key data callouts */
  --mint: #00ffaa;          /* live / positive state only */
  --lilac: #b1a6f6;         /* line art, tabs */
  --pink: #ff8fb0;          /* pathology / fluorescence */
  --pink-glow: #ff5c8a;

  /* neutrals */
  --white: #ffffff;
  --pearl: #f4f4f6;
  --ash: #d8d8e3;
  --fog: #9494a9;
  --ink-muted: #4a4a6a;

  /* type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --weight-display: 600;
  --fs-caption: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-sub: 1.125rem;
  --fs-h4: 1.5rem;
  --fs-h3: clamp(2rem, 1.2rem + 2.4vw, 2.875rem);
  --fs-h2: clamp(2.25rem, 1.2rem + 3.2vw, 3.375rem);
  --fs-h1: clamp(2.75rem, 1rem + 6vw, 5.75rem);
  --track-tight: -0.04em;
  --track-display: -0.075em;
  --track-body: -0.03em;
  --track-caption: 0.02em;

  /* shape & space */
  --r-pill: 9999px;
  --r-card: 24px;
  --r-card-lg: 32px;
  --r-input: 16px;
  --r-icon: 7px;
  --r-sm: 10px;      /* small inner tiles */
  --page-max: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 120px);

  --glow: rgba(60, 57, 185, 0.45);
  --glow-strong: rgba(83, 80, 204, 0.7);
  --glow-cta: 0 0 20px rgba(60, 57, 185, 0.4);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.44;
  letter-spacing: var(--track-body);
  color: var(--white);
  background: var(--iris-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); }
.metric-bar__value, .footer-cta h2 { font-family: var(--font-display); }
p { margin: 0; }
a { color: var(--cyan); }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--white); color: var(--iris-deep); padding: 10px 16px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(600px + 2 * var(--gutter)); }

.eyebrow { font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--mint-soft); }
.caption { font-size: var(--fs-caption); letter-spacing: var(--track-caption); }
.muted { color: var(--ash); }
.c-cyan { color: var(--highlight); }
.c-pink { color: var(--pink); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.dot--sm { width: 6px; height: 6px; }
.dot--off { background: transparent; border: 1px solid var(--lilac); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: var(--r-pill);
  font: inherit; text-decoration: none; cursor: pointer; border: 0;
}
.btn--primary { background: var(--iris-pulse); color: var(--white); box-shadow: var(--glow-cta); }
.btn--primary:hover { color: var(--white); background: var(--pulse-hover); }
.btn--light { background: var(--white); color: var(--iris-deep); }
.btn--light:hover { color: var(--iris-deep); background: var(--pearl); }
.btn--ghost { color: var(--white); border: 1px solid var(--white); }
.btn--ghost:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.375rem; letter-spacing: 0.06em; }
.brand:hover { color: var(--white); }
.brand__mark { height: 34px; width: auto; }
.brand__word { height: 18px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; white-space: nowrap; font-size: var(--fs-small); letter-spacing: var(--track-caption); }
.nav a { color: var(--white); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 10px 14px;
    border: 1px solid var(--iris-line); border-radius: var(--r-pill); background: transparent; color: var(--white);
    font: inherit; font-size: var(--fs-small); letter-spacing: var(--track-caption); cursor: pointer;
  }
  .nav-toggle__icon, .nav-toggle__icon::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
  .nav-toggle__icon::before { content: ""; position: absolute; top: 5px; }
  .nav-toggle__icon { top: -2.5px; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 80px; left: 16px; right: 16px; z-index: 5;
    padding: 12px; border: 1px solid var(--iris-line); border-radius: var(--r-card); background: var(--iris-deep);
  }
  .site-header.is-open .nav a { padding: 12px 10px; font-size: 1rem; }
}
@media (max-width: 480px) { .site-header .btn--light { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding-bottom: 120px;
  /* soft fade from the lighter brand blue at the top into the logo navy, which the next section continues */
  background: var(--iris-glow) linear-gradient(in oklab 180deg, var(--hero-top) 0%, var(--hero-top) 12%, var(--iris-glow) 100%);
}
.hero__art {
  /* the whole exoscope, in the left column beside the headline — not cropped, not behind the text */
  position: absolute; left: max(8px, calc(50% - 620px)); top: 150px; width: 300px; height: auto;
  opacity: 0.85; pointer-events: none;
}
.hero__inner { position: relative; padding-left: 300px; }
.hero__copy { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.hero h1 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: var(--track-display); }
.word-box {
  display: inline-block; margin-top: 14px; padding: 6px 18px 14px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55); border-radius: var(--r-icon);
  color: var(--highlight);
}
.hero__lead { max-width: 460px; }
@media (max-width: 1000px) {
  .hero__art { left: auto; right: -260px; top: 40px; width: 620px; opacity: 0.35; }
  .hero__inner { padding-left: 0; }
}

/* UI mock card */
.ui-card {
  margin-top: 72px; margin-right: -360px;
  display: flex; gap: 14px; padding: 14px;
  background: var(--iris-raised); border: 1px solid var(--iris-line); border-radius: var(--r-card);
  backdrop-filter: blur(10px);
}
.ui-card__side {
  flex: 0 0 210px; display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: var(--panel); border-radius: var(--r-input);
  font-size: var(--fs-caption); letter-spacing: var(--track-caption);
}
.ui-card__side h3 { font-size: 1.25rem; letter-spacing: var(--track-body); }
.ui-card__group { border-top: 1px solid var(--iris-line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--pearl); }
.ui-card__label { font-size: 0.625rem; color: var(--lilac); }
.ui-card__row { display: flex; align-items: center; gap: 8px; }
.ui-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 6px 4px; }
.ui-card__menu { display: flex; gap: 28px; padding: 0 6px; font-size: var(--fs-caption); color: var(--ash); }
.ui-card__menu .is-active { color: var(--white); border-bottom: 1px solid var(--white); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: inherit; font-size: 0.8125rem; letter-spacing: var(--track-caption);
  background: var(--panel); color: var(--white);
}
.tab[aria-selected="true"] { background: var(--white); color: var(--iris-deep); }
.metric-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; background: var(--panel); border-radius: var(--r-input);
}
.metric-bar h4 { font-size: 1.25rem; letter-spacing: var(--track-body); }
.metric-bar__value { white-space: nowrap; font-size: 2.875rem; line-height: 1; font-weight: 600; letter-spacing: var(--track-tight); color: var(--cyan-soft); }
.metric-bar__value span { color: var(--lilac); }
.composition {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 10px; height: 300px;
  padding: 12px; background: var(--panel); border-radius: var(--r-input);
}
.composition__main, .composition__pip { position: relative; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); background: color-mix(in srgb, var(--cyan) 6%, transparent); }
.composition__main > img, .composition__pip > img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; }
.composition__side { display: flex; flex-direction: column; gap: 10px; }
.composition__pip { flex: 1; }
.composition__add { flex: 1; border: 1px dashed var(--lilac); border-radius: var(--r-sm); display: grid; place-items: center; font-size: var(--fs-caption); color: var(--lilac); }
.chip {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--iris-deep) 80%, transparent);
  font-size: var(--fs-caption); letter-spacing: var(--track-caption);
}
@media (max-width: 1000px) { .ui-card { margin-right: 0; } .ui-card__side { display: none; } }
@media (max-width: 560px) { .composition { height: 220px; } .metric-bar__value { font-size: 2rem; } }

/* statement */
.statement { position: relative; max-width: 1000px; margin: 140px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-inline: var(--gutter); }
.statement h2 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.125rem); line-height: 1; letter-spacing: var(--track-tight); }

/* ---------- Sheet (white, rounded top) ---------- */
.sheet-host { background: var(--iris-glow); }
.sheet { background: var(--surface-light); color: var(--iris-deep); border-radius: var(--r-card-lg) var(--r-card-lg) 0 0; padding: 96px 0 120px; text-align: center; }
.sheet__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sheet h2 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.125rem); line-height: 1; letter-spacing: var(--track-tight); }
.sheet__lead { font-size: var(--fs-sub); max-width: 520px; }
.pill-icon { background: var(--iris-deep); border-radius: var(--r-pill); padding: 4px 12px; display: flex; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; background: #fff; overflow: hidden; border: 1px solid var(--ash); border-radius: var(--r-input); margin-top: 12px; }
.badges a { display: flex; align-items: center; padding: 18px 26px; }
.badges a + a { border-left: 1px solid var(--ash); }
.badges .lisezwei { background: #c8264d; border-radius: var(--r-icon); padding: 10px 12px; }
.sheet__note { font-size: var(--fs-caption); letter-spacing: var(--track-caption); color: var(--ink-muted); max-width: 380px; }
@media (max-width: 560px) { .badges a + a { border-left: 0; border-top: 1px solid var(--ash); } }

/* ---------- Numbered feature blocks ---------- */
.features { padding-block: var(--section-y) 80px; }
.features--after { padding-block: 24px 80px; }
.feature { display: flex; flex-direction: column; gap: 22px; }
.feature + .feature { margin-top: 96px; }
.feature__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--iris-border); padding-bottom: 18px; }
/* step in the signal path: sources → processing → display → your OR */
.feature__step { display: flex; align-items: center; gap: 12px; }
.feature__label { font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--mint-soft); }
.feature__track { display: flex; gap: 4px; }
.feature__track i { width: 18px; height: 3px; border-radius: 2px; background: var(--iris-border); }
.feature__track i.is-on { background: var(--mint); }
.icon-tile { width: 32px; height: 32px; border-radius: var(--r-icon); background: var(--surface-blue); color: var(--lilac); display: grid; place-items: center; }
.feature__num { color: var(--mint); }
.feature h2 { font-size: var(--fs-h3); line-height: 1; letter-spacing: var(--track-tight); }
.feature p { font-size: 0.9375rem; letter-spacing: var(--track-caption); color: var(--ash); }

/* ---------- Stage pinning: each stage holds for a fixed stretch of scroll while it builds ---------- */
/* Timing no longer depends on screen height: the stage sticks (centred), its animations run over
   --pin of scroll, then it scrolls on. Without scroll-driven animations or with reduced motion
   nothing pins and the finished state shows. */
.stage-band {
  --pin: 50vh;
  --stage-h: calc(min(1248px, 100vw - 32px) * 0.55);
  --top-s: max(16px, calc((100vh - var(--stage-h)) / 2));
  --pin-start: calc(100vh - var(--top-s));
}
.stage-band:has(.stage--paths) { --stage-h: calc(min(1248px, 100vw - 32px) * 0.4667); }
.stage-band:has(.stage--pov) { --pin: 90vh; }   /* the peak gets the most room */
@media (max-width: 700px) { .stage-band { --top-s: 72px; --pin: 45vh; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-track { view-timeline-name: --stage; }
    .stage-track::after { content: ""; display: block; height: var(--pin); }
    .stage-band .stage-track > .stage { position: sticky; top: var(--top-s); } /* beats the corner-mark position: relative */
  }
}

/* ---------- Data flow stage: sources -> processing unit -> HMD (markup from tools/illustrations/flow_stage.py) ---------- */
.stage-band { padding: 0 16px var(--section-y); }
.stage {
  position: relative; container-type: inline-size; max-width: 1248px; margin: 0 auto; overflow: hidden;
  border-radius: var(--r-card-lg); background-color: var(--iris-shadow);
  background-image: radial-gradient(color-mix(in srgb, var(--lilac) 22%, transparent) 1px, transparent 1.2px), var(--blue-wash);
  background-size: 14px 14px, 100% 100%;
}
.stage--flow { aspect-ratio: 1200 / 660; }
.stage__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.stage__art .bundle path { fill: none; stroke: var(--cyan); stroke-width: 1.3; stroke-linecap: butt; } /* no non-scaling-stroke: it breaks pathLength dashes; butt caps leave no dots before drawing */
.stage__art .bundle .d { stroke-opacity: 0.35; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage__art .bundle .f { display: none; }
.stage__art .b-out path { stroke: var(--teal); }
@keyframes flow-dash { to { stroke-dashoffset: -30; } }

.stage-card {
  position: absolute; border: 1px solid var(--iris-border); border-radius: var(--r-card); padding: 2cqw 2.2cqw;
  background: color-mix(in srgb, var(--iris-deep) 70%, transparent); backdrop-filter: blur(6px);
}
.stage-card__title { font-size: clamp(0.75rem, 1.5cqw, 1.125rem); color: var(--mint-soft); }
.stage-card__meta { display: flex; align-items: center; gap: 8px; font-size: clamp(0.6875rem, 1.05cqw, 0.875rem); letter-spacing: var(--track-caption); color: var(--ash); margin-top: 0.8cqw; }
.stage-card__big { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(2rem, 7cqw, 5.75rem); line-height: 0.92; letter-spacing: var(--track-display); color: var(--cyan-soft); margin-top: 1cqw; }
.stage-card__of { color: var(--lilac); margin-left: 0.15em; }
.stage-card--igx { left: 47%; top: 5%; width: 25%; }
.stage-card--hmd { right: 3%; bottom: 6%; width: 24%; }

@property --n { syntax: "<integer>"; inherits: true; initial-value: 8; }
.stage--flow { counter-reset: n var(--n); }
.ncount::after { content: counter(n); }

.chips-src { max-width: 1000px; margin: 20px auto 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-src { padding: 6px 14px; border: 1px solid var(--iris-border); border-radius: var(--r-pill); font-size: var(--fs-small); }
.chip-src small { color: var(--lilac); font-size: var(--fs-caption); letter-spacing: var(--track-caption); }

@media (max-width: 700px) {
  .stage--flow { aspect-ratio: 4 / 5; }
  .stage-card--igx { left: 50%; top: auto; bottom: 4%; width: auto; transform: translateX(-50%); }
  .stage-card--hmd { display: none; }
  .chip-src { padding: 4px 10px; font-size: var(--fs-caption); }
  .chip-src small { display: none; }
}

/* scroll-driven build-up as the stage passes through the viewport (Chrome/Edge, Safari 26+; others see the finished state) */
@keyframes dev-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dim { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes count { from { --n: 0; } to { --n: 8; } }
@keyframes unit-on { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes hmd-on { from { opacity: 0.4; } to { opacity: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage__art .dev { animation: dev-in linear both; animation-timeline: --stage; }
    .stage__art .bundle .d { animation: draw linear both; animation-timeline: --stage; }
    .stage__art .bundle .f { animation: flow-dash 1.1s linear infinite, fade linear both; animation-timeline: auto, --stage; }
    .chip-src { animation: dim linear both; animation-timeline: --stage; }
    .stage-band--flow { timeline-scope: --stage; } /* the source chips sit outside the track */
    /* starts once the stage is fully in view (contain), not when its band first enters */
    .stage--flow { animation: count linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 5 / 100) cover calc(var(--pin-start) + var(--pin) * 52 / 100); }
    .stage__art .igx { animation: unit-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 46 / 100) cover calc(var(--pin-start) + var(--pin) * 54 / 100); }
    .stage__art .hmd, .stage-card--hmd { animation: hmd-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 56 / 100) cover calc(var(--pin-start) + var(--pin) * 64 / 100); }
    .stage__art .dev1, .chip-src.c1 { animation-range: cover calc(var(--pin-start) + var(--pin) * 7 / 100) cover calc(var(--pin-start) + var(--pin) * 13 / 100); }
    .stage__art .b1 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 9 / 100) cover calc(var(--pin-start) + var(--pin) * 16 / 100); } .stage__art .b1 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 15 / 100) cover calc(var(--pin-start) + var(--pin) * 17 / 100); }
    .stage__art .dev2, .chip-src.c2 { animation-range: cover calc(var(--pin-start) + var(--pin) * 12 / 100) cover calc(var(--pin-start) + var(--pin) * 18 / 100); }
    .stage__art .b2 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 14 / 100) cover calc(var(--pin-start) + var(--pin) * 21 / 100); } .stage__art .b2 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 20 / 100) cover calc(var(--pin-start) + var(--pin) * 22 / 100); }
    .stage__art .dev3, .chip-src.c3 { animation-range: cover calc(var(--pin-start) + var(--pin) * 17 / 100) cover calc(var(--pin-start) + var(--pin) * 23 / 100); }
    .stage__art .b3 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 19 / 100) cover calc(var(--pin-start) + var(--pin) * 26 / 100); } .stage__art .b3 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 25 / 100) cover calc(var(--pin-start) + var(--pin) * 27 / 100); }
    .stage__art .dev4, .chip-src.c4 { animation-range: cover calc(var(--pin-start) + var(--pin) * 22 / 100) cover calc(var(--pin-start) + var(--pin) * 28 / 100); }
    .stage__art .b4 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 24 / 100) cover calc(var(--pin-start) + var(--pin) * 31 / 100); } .stage__art .b4 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 30 / 100) cover calc(var(--pin-start) + var(--pin) * 32 / 100); }
    .stage__art .dev5, .chip-src.c5 { animation-range: cover calc(var(--pin-start) + var(--pin) * 27 / 100) cover calc(var(--pin-start) + var(--pin) * 33 / 100); }
    .stage__art .b5 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 29 / 100) cover calc(var(--pin-start) + var(--pin) * 36 / 100); } .stage__art .b5 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 35 / 100) cover calc(var(--pin-start) + var(--pin) * 37 / 100); }
    .stage__art .dev6, .chip-src.c6 { animation-range: cover calc(var(--pin-start) + var(--pin) * 32 / 100) cover calc(var(--pin-start) + var(--pin) * 38 / 100); }
    .stage__art .b6 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 34 / 100) cover calc(var(--pin-start) + var(--pin) * 41 / 100); } .stage__art .b6 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 40 / 100) cover calc(var(--pin-start) + var(--pin) * 42 / 100); }
    .stage__art .dev7, .chip-src.c7 { animation-range: cover calc(var(--pin-start) + var(--pin) * 37 / 100) cover calc(var(--pin-start) + var(--pin) * 43 / 100); }
    .stage__art .b7 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 39 / 100) cover calc(var(--pin-start) + var(--pin) * 46 / 100); } .stage__art .b7 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 45 / 100) cover calc(var(--pin-start) + var(--pin) * 47 / 100); }
    .stage__art .dev8, .chip-src.c8 { animation-range: cover calc(var(--pin-start) + var(--pin) * 42 / 100) cover calc(var(--pin-start) + var(--pin) * 48 / 100); }
    .stage__art .b8 .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 44 / 100) cover calc(var(--pin-start) + var(--pin) * 51 / 100); } .stage__art .b8 .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 50 / 100) cover calc(var(--pin-start) + var(--pin) * 52 / 100); }
    .stage__art .b-out .d { animation-range: cover calc(var(--pin-start) + var(--pin) * 52 / 100) cover calc(var(--pin-start) + var(--pin) * 58 / 100); } .stage__art .b-out .f { animation-range: normal, cover calc(var(--pin-start) + var(--pin) * 57 / 100) cover calc(var(--pin-start) + var(--pin) * 59 / 100); }
  }
}

/* ---------- Processing stage: live path + AI path — markup from tools/illustrations/feature_stages.py ---------- */
.stage--paths .stage__scene { aspect-ratio: 1200 / 560; }
.stage--paths .live { fill: none; stroke: var(--mint); stroke-width: 2; stroke-opacity: 0.8; vector-effect: non-scaling-stroke; }
.stage--paths .ai { fill: none; stroke: var(--lilac); stroke-width: 1.4; stroke-dasharray: 0.012 0.008; stroke-opacity: 0.8; vector-effect: non-scaling-stroke; }
.stage--paths .merge { fill: var(--iris-deep); stroke: var(--lilac); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.path-chip, .path-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: clamp(0.625rem, 1.1cqw, 0.875rem); letter-spacing: var(--track-caption); }
.path-chip { display: flex; align-items: center; gap: 0.6cqw; padding: 0.5cqw 1.1cqw; border-radius: var(--r-pill); background: var(--iris-deep); }
.path-chip--live { border: 1px solid color-mix(in srgb, var(--mint) 60%, transparent); color: var(--white); }
.path-chip--ai { border: 1px dashed var(--lilac); color: var(--ash); }
.path-chip .tag { margin-left: 0; }
.path-label { transform: translateY(-50%); color: var(--lilac); }
.path-label b { font-weight: 500; color: var(--mint-soft); }
.path-label--ai b { color: var(--ash); }
.path-label--merge { transform: translate(-50%, -50%); }
.paths-legend { display: none; }
@media (max-width: 960px) {
  .stage--paths .path-chip, .stage--paths .path-label { display: none; }
  .paths-legend { display: flex; flex-direction: column; gap: 6px; max-width: 1248px; margin: 14px auto 0; padding: 0 4px; list-style: none; font-size: var(--fs-small); color: var(--ash); }
  .paths-legend b { color: var(--mint-soft); font-weight: 500; }
}

/* display points under feature 03 */
.feature__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; color: var(--ash); }
.feature__points li { padding-left: 18px; position: relative; }
.feature__points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1px; background: var(--mint); }
.feature__points b { color: var(--white); font-weight: 600; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
  }
}

/* ---------- Through-the-headset stage (first-person view) — markup from tools/illustrations/feature_stages.py ---------- */
.pov-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; filter: saturate(0.85); }
.headset { position: absolute; inset: 0; pointer-events: none; }
.headset__shade {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--iris-deep) 62%, transparent);
  -webkit-backdrop-filter: blur(5px) saturate(0.6); backdrop-filter: blur(5px) saturate(0.6);
  -webkit-mask: var(--shade-mask) center / 100% 100% no-repeat; mask: var(--shade-mask) center / 100% 100% no-repeat;
}
.headset__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.headset__frame .rim { fill: none; stroke: var(--lilac); stroke-width: 2; vector-effect: non-scaling-stroke; }
.headset__frame .rim--top { stroke-width: 5; stroke-opacity: 0.55; }
.hud { position: absolute; overflow: hidden; border-radius: 8% 8% 23% 23% / 10.6% 10.6% 30% 30%; }
.hud__view {
  position: absolute; inset: 0; background: url("../assets/img/or-pov.jpg") no-repeat;
  background-size: var(--zoom) auto; background-position: calc(var(--bx) + var(--d-far)) var(--by); filter: brightness(1.15);
}
/* stereo: the far room shifts a little between the eyes, the near overlays clearly more */
.hud--l { --d-far: 0.35cqw; --d-near: 1.1cqw; }
.hud--r { --d-far: -0.35cqw; --d-near: -1.1cqw; }
.hud__ar { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateX(var(--d-near)); }
.ar-tumour { fill: color-mix(in srgb, var(--pink) 22%, transparent); stroke: var(--pink); stroke-width: 1.6; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ar-path { fill: none; stroke: var(--cyan-soft); stroke-width: 1.6; stroke-dasharray: 1; stroke-linecap: butt; }
.ar-cross { fill: none; stroke: var(--cyan-soft); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ar-label { fill: var(--white); font-family: var(--font); font-size: 15px; letter-spacing: 0.02em; paint-order: stroke; stroke: color-mix(in srgb, var(--iris-deep) 80%, transparent); stroke-width: 4px; }
.hud__screen {
  position: absolute; left: 6%; top: 8%; width: 30%; aspect-ratio: 16 / 11; transform: translateX(calc(var(--d-near) * 0.6));
  border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--iris-deep) 72%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hud__screen > img { position: absolute; inset: 22% 8% 6%; width: 84%; height: 72%; object-fit: contain; }
.hud__screen-label { position: absolute; left: 7%; top: 6%; display: flex; align-items: center; gap: 0.4cqw; font-size: clamp(0.5rem, 0.85cqw, 0.75rem); letter-spacing: var(--track-caption); color: var(--white); }
.hud__pip { position: absolute; right: 5%; bottom: 7%; width: 30%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); border-radius: 2px; background: var(--iris-deep); }
.hud__pip img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.hud__chips { position: absolute; left: 50%; bottom: 9%; display: flex; gap: 0.6cqw; transform: translateX(calc(-50% + var(--d-near) * 0.6)); }
.hud__chips span { padding: 0.35cqw 0.9cqw; border-radius: var(--r-pill); background: color-mix(in srgb, var(--iris-deep) 72%, transparent); font-size: clamp(0.5rem, 0.95cqw, 0.8125rem); letter-spacing: var(--track-caption); color: var(--lilac); white-space: nowrap; }
.hud__chips b { font-weight: 500; color: var(--white); }
.hud__eye { position: absolute; right: 7%; top: 7%; font-size: clamp(0.5rem, 0.85cqw, 0.75rem); color: var(--lilac); }
.stage-chip--pov { left: 50%; transform: translateX(-50%); top: 4%; white-space: nowrap; }
@media (max-width: 700px) { .hud__chips, .ar-label, .hud__screen-label, .stage-chip--pov { display: none; } .hud__screen > img { inset: 8%; width: 84%; height: 84%; } }

@keyframes lower { from { transform: translateY(-105%); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage--pov .headset { animation: lower linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 0 / 100) cover calc(var(--pin-start) + var(--pin) * 30 / 100); }
    .stage--pov .stage-chip--pov { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 22 / 100) cover calc(var(--pin-start) + var(--pin) * 32 / 100); }
    .stage--pov .a1 { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 34 / 100) cover calc(var(--pin-start) + var(--pin) * 44 / 100); }
    .stage--pov .ar-path.a2 { animation: draw linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 42 / 100) cover calc(var(--pin-start) + var(--pin) * 54 / 100); }
    .stage--pov .ar-cross.a2 { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 50 / 100) cover calc(var(--pin-start) + var(--pin) * 56 / 100); }
    .stage--pov .a3 { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 52 / 100) cover calc(var(--pin-start) + var(--pin) * 60 / 100); }
    .stage--pov .a4 { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 58 / 100) cover calc(var(--pin-start) + var(--pin) * 68 / 100); }
    .stage--pov .a5 { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 66 / 100) cover calc(var(--pin-start) + var(--pin) * 76 / 100); }
  }
}

/* ---------- Feature stages 03 (HMD) and 04 (existing OR) — markup from tools/illustrations/feature_stages.py ---------- */
.stage__scene { position: relative; aspect-ratio: 1200 / 660; }
.stage__art image { overflow: visible; }
.stage-chip {
  position: absolute; left: 3%; top: 6%; padding: 0.5cqw 1.2cqw; border: 1px solid var(--iris-border); border-radius: var(--r-pill);
  font-size: clamp(0.625rem, 1.05cqw, 0.875rem); letter-spacing: var(--track-caption); color: var(--lilac);
  background: color-mix(in srgb, var(--iris-deep) 70%, transparent);
}
.stage-chip--old { top: auto; bottom: 6%; }
.stage-chip--new { left: 28%; top: auto; bottom: 3%; color: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan) 50%, transparent); }

.stage--or .old { opacity: 0.45; }
.stage-card--modules { right: 3%; top: 7%; width: 30%; }
.modules { list-style: none; margin: 1cqw 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7cqw; }
.module { display: flex; align-items: center; gap: 0.8cqw; padding: 0.7cqw 1cqw; border: 1px solid var(--iris-border); border-radius: min(1cqw, var(--r-sm)); font-size: clamp(0.6875rem, 1.15cqw, 0.9375rem); }
.module__state { margin-left: auto; font-size: clamp(0.625rem, 0.95cqw, 0.8125rem); color: var(--mint); letter-spacing: var(--track-caption); }
.module--next { border-style: dashed; }
.module--next .dot { background: transparent; box-shadow: none; outline: 1px solid var(--lilac); }
.module--next .module__state { color: var(--lilac); }

@media (max-width: 700px) {
  .stage--or, .stage--top { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
  .stage--or .stage-card, .stage--top .stage-card { position: static; width: auto; margin-inline: 16px; padding: 14px 16px; }
  .stage--or .modules { gap: 6px; margin-top: 10px; }
  .stage--or .module { padding: 6px 10px; gap: 8px; border-radius: var(--r-sm); }
  .stage-chip { display: none; }
}

@keyframes old-dim { from { opacity: 0.85; } to { opacity: 0.45; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

  }
}

/* ---------- Top-view stage: monitors around the table merge into one view — markup from tools/illustrations/topview_stage.py ---------- */
.stage--top .stage__art { overflow: visible; }
.stage--top .room { fill: none; stroke: var(--lilac); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.stage--top .room--soft { stroke-opacity: 0.5; }
.stage--top .turn { fill: none; stroke: var(--lilac); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: 0; vector-effect: non-scaling-stroke; }
.mon__base, .mon__body { fill: var(--iris-shadow); stroke: var(--lilac); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mon__base { stroke-opacity: 0.6; }
.mon__screen { stroke: var(--cyan-soft); stroke-width: 2.5; stroke-linecap: round; stroke-opacity: 0.8; }
.mon__label { fill: var(--lilac); font-family: var(--font); font-size: 19px; letter-spacing: 0.02em; }
.mon { opacity: 0.14; transform-box: view-box; }
.sight { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-opacity: 0.4; vector-effect: non-scaling-stroke; }
.vscreen__frame { fill: color-mix(in srgb, var(--cyan) 10%, transparent); stroke: var(--cyan); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tile rect { fill: color-mix(in srgb, var(--cyan) 18%, transparent); stroke: var(--cyan-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tile { transform-box: view-box; }
.hmd-top rect, .hmd-top path { fill: none; stroke: var(--cyan); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.stage-chip--merged { left: 50%; top: auto; bottom: 4%; transform: translateX(-50%); color: var(--cyan-soft); border-color: color-mix(in srgb, var(--cyan) 50%, transparent); white-space: nowrap; }
.stage-card--screens { left: 3%; bottom: 6%; width: 24%; }
@property --s { syntax: "<integer>"; inherits: true; initial-value: 1; }
.stage--top { counter-reset: s var(--s); }
.scount::after { content: counter(s); }

@keyframes sight-on { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mon-out { 0%, 30% { opacity: 1; transform: none; } 100% { opacity: 0.14; transform: translate(var(--dx), var(--dy)); } }
@keyframes tile-in { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)); } 40% { opacity: 0.6; } 100% { opacity: 1; transform: none; } }
@keyframes turn-on { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
@keyframes screens { from { --s: 6; } to { --s: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* lines draw while the stage enters; the merge plays while it is fully in view (timeline on the stage itself, not the padded band) */
    .stage--top { animation: screens linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 10 / 100) cover calc(var(--pin-start) + var(--pin) * 70 / 100); }
    .stage--top .s1 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 0 / 100) cover calc(var(--pin-start) + var(--pin) * 22 / 100); }
    .stage--top .m1 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 5 / 100) cover calc(var(--pin-start) + var(--pin) * 53 / 100); }
    .stage--top .t1 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 32 / 100) cover calc(var(--pin-start) + var(--pin) * 52 / 100); }
    .stage--top .s2 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 4 / 100) cover calc(var(--pin-start) + var(--pin) * 24 / 100); }
    .stage--top .m2 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 8 / 100) cover calc(var(--pin-start) + var(--pin) * 56 / 100); }
    .stage--top .t2 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 36 / 100) cover calc(var(--pin-start) + var(--pin) * 56 / 100); }
    .stage--top .s3 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 8 / 100) cover calc(var(--pin-start) + var(--pin) * 26 / 100); }
    .stage--top .m3 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 11 / 100) cover calc(var(--pin-start) + var(--pin) * 59 / 100); }
    .stage--top .t3 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 40 / 100) cover calc(var(--pin-start) + var(--pin) * 60 / 100); }
    .stage--top .s4 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 12 / 100) cover calc(var(--pin-start) + var(--pin) * 28 / 100); }
    .stage--top .m4 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 14 / 100) cover calc(var(--pin-start) + var(--pin) * 62 / 100); }
    .stage--top .t4 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 44 / 100) cover calc(var(--pin-start) + var(--pin) * 64 / 100); }
    .stage--top .s5 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 16 / 100) cover calc(var(--pin-start) + var(--pin) * 30 / 100); }
    .stage--top .m5 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 17 / 100) cover calc(var(--pin-start) + var(--pin) * 65 / 100); }
    .stage--top .t5 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 48 / 100) cover calc(var(--pin-start) + var(--pin) * 68 / 100); }
    .stage--top .s6 { animation: sight-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 20 / 100) cover calc(var(--pin-start) + var(--pin) * 32 / 100); }
    .stage--top .m6 { animation: mon-out linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 20 / 100) cover calc(var(--pin-start) + var(--pin) * 68 / 100); }
    .stage--top .t6 { animation: tile-in linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 52 / 100) cover calc(var(--pin-start) + var(--pin) * 72 / 100); }
    .stage--top .turn { animation: turn-on linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 0 / 100) cover calc(var(--pin-start) + var(--pin) * 30 / 100); }
    .stage--top .vscreen__frame, .hmd-top, .stage-chip--merged { animation: fade linear both; animation-timeline: --stage; animation-range: cover calc(var(--pin-start) + var(--pin) * 45 / 100) cover calc(var(--pin-start) + var(--pin) * 65 / 100); }
  }
}

/* ---------- Compare: today vs. with FLENSS ---------- */
.compare-band { padding-block: 48px; }
.compare { border-top: 1px solid var(--iris-border); }
.compare__row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--iris-shadow); font-size: 0.9375rem; }
.compare__row--head { padding-block: 12px; font-size: var(--fs-caption); letter-spacing: var(--track-caption); text-transform: uppercase; color: var(--lilac); }
.compare__row--head span:last-child { color: var(--mint-soft); }
.compare__topic { font-weight: 600; color: var(--white); }
.compare__row span:nth-child(2) { color: var(--ash); }
.compare__row span:nth-child(3) { color: var(--white); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--iris-border); border-radius: var(--r-pill); font-size: var(--fs-caption); letter-spacing: var(--track-caption); color: var(--lilac); white-space: nowrap; }
@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr; gap: 6px; }
  .compare__row--head { display: none; }
  .compare__row span:nth-child(2)::before { content: "Today — "; color: var(--lilac); }
  .compare__row span:nth-child(3)::before { content: "With FLENSS — "; color: var(--mint-soft); }
}

/* ---------- Interlude: a quiet text block between two animated stages ---------- */
.interlude { padding-block: 24px var(--section-y); }
.interlude .wrap { display: flex; flex-direction: column; gap: 14px; }
.interlude h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); color: var(--mint-soft); }
.interlude p { font-size: 1.0625rem; color: var(--ash); }

/* ---------- Benefits / Why / Status ---------- */
.ph { color: color-mix(in srgb, var(--pink) 55%, var(--white)); outline: 1px dashed currentColor; outline-offset: 2px; border-radius: 4px; padding: 0 4px; font-size: 0.92em; }
.feature__source { font-size: var(--fs-small); }
.section-title.section-title--left { text-align: left; margin-bottom: 32px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--iris-border); border-radius: var(--r-card); background: var(--surface-blue); }
.card__label { font-size: var(--fs-caption); letter-spacing: var(--track-caption); color: var(--mint-soft); text-transform: uppercase; }
.card h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); }
.card p { font-size: 0.9375rem; letter-spacing: var(--track-caption); color: var(--ash); }
.opportunity, .partners { padding-block: 0 var(--section-y); }
.opportunity__head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.opportunity__head .section-title { margin-bottom: 0; }
.opportunity__head p { color: var(--ash); font-size: 1.0625rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0 0 20px; }
.stat { margin: 0; padding: 28px; border: 1px solid var(--iris-border); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 14px; }
.stat__num { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.92; letter-spacing: var(--track-display); color: var(--cyan-soft); }
.stat figcaption { font-size: 0.9375rem; color: var(--ash); }
.stat figcaption a { display: block; margin-top: 8px; font-size: var(--fs-caption); letter-spacing: var(--track-caption); color: var(--lilac); }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.points li { display: flex; flex-direction: column; gap: 8px; padding-block: 20px; border-top: 1px solid var(--iris-shadow); }
.points h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); }
.points p { font-size: 0.9375rem; color: var(--ash); }
.bizcase { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0 0 20px; padding: 32px; border-radius: var(--r-card-lg); background: var(--blue-wash), var(--iris-shadow); }
.bizcase__intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.bizcase__intro h3 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: var(--track-body); }
.levers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; counter-reset: lever; }
.levers li { counter-increment: lever; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--iris-border); }
.lever__name { font-weight: 600; }
.lever__name::before { content: counter(lever) ". "; color: var(--mint-soft); }
.levers p { font-size: 0.9375rem; color: var(--ash); }
.calc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px dashed var(--iris-border); border-radius: var(--r-card); }
.calc__row { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ash); font-size: 0.9375rem; }
.calc__row span:nth-child(even) { color: var(--lilac); }
.calc__result { font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); line-height: 1; letter-spacing: var(--track-display); color: var(--cyan-soft); }
.calc p { font-size: var(--fs-small); color: var(--lilac); }
.safety { padding-block: 0; }
.safety__lead { margin: -16px 0 32px; font-size: 1.0625rem; color: var(--ash); }
.team__sub { margin: 48px 0 20px; font-size: var(--fs-h4); letter-spacing: var(--track-body); color: var(--mint-soft); }
.person--text .person__body { padding-top: 24px; }
.hiring { margin-top: 48px; padding: 32px; border: 1px solid var(--iris-border); border-radius: var(--r-card-lg); display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hiring h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); margin-bottom: 8px; }
.hiring p { color: var(--ash); }
.hiring__roles { margin: 14px 0 0; padding-left: 18px; color: var(--white); display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; }
.status { padding-bottom: var(--section-y); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--iris-border); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0 0 28px 24px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.timeline li.is-next::before { background: var(--iris-deep); outline: 1px solid var(--lilac); }
.timeline__when { font-size: var(--fs-small); color: var(--mint-soft); letter-spacing: var(--track-caption); }
.timeline h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); margin-bottom: 6px; }
.timeline p { font-size: 0.9375rem; color: var(--ash); }
.status__photo { margin: 0 0 40px; }
.status__shot { overflow: hidden; border-radius: var(--r-card); }
.status__shot img { display: block; width: 100%; height: auto; }
.status__photo figcaption { padding: 12px 2px 0; font-size: var(--fs-small); color: var(--lilac); }
.status__note { margin-top: 8px; font-size: var(--fs-small); color: var(--lilac); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
.cta-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border: 1px solid var(--iris-line); border-radius: var(--r-card); background: color-mix(in srgb, var(--iris-deep) 35%, transparent); }
.cta-card p { color: var(--on-glow); }
.cta-card .btn { margin-top: auto; }

/* ---------- Fluorescence ---------- */
.fluo { max-width: 1248px; margin: 0 auto; background: var(--blue-wash), var(--iris-shadow); border-radius: var(--r-card-lg); padding: 72px 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.fluo__copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.fluo__copy h2 { font-size: var(--fs-h3); line-height: 1; letter-spacing: var(--track-tight); }
.fluo__copy p { font-size: 0.9375rem; letter-spacing: var(--track-caption); color: var(--ash); }
.fluo__views { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.view-card { background: var(--iris-deep); border-radius: var(--r-card); padding: 16px; margin: 0; }
.view-card img { width: 100%; height: 280px; object-fit: contain; }
.view-card figcaption { padding: 4px 4px 0; font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--lilac); }
@media (max-width: 560px) { .fluo { padding: 48px 20px; } }

/* ---------- Team ---------- */
.team { padding-block: var(--section-y); }
.team h2, .section-title { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.125rem); line-height: 1; letter-spacing: var(--track-tight); text-align: left; margin-bottom: 32px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.person { background: var(--surface-blue); border-radius: var(--r-card); overflow: hidden; }
.person__photo { background: var(--iris-glow); }
.person__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.person__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.person h3 { font-size: var(--fs-h4); letter-spacing: var(--track-body); }
.person__role { font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--cyan); }
.person p { font-size: 0.9375rem; letter-spacing: var(--track-caption); color: var(--ash); }

/* ---------- Story (light band) ---------- */
.story { background: var(--surface-light); color: var(--iris-deep); padding-block: var(--section-y); --iris-pulse: #b0093e; /* darker pink for contrast on the tinted surface */ }
.story .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.story__name { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.story__name h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--track-tight); }
.story__name .word-box { margin: 0; padding: 0 10px; border-color: var(--iris-pulse); color: inherit; }
.story__name ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.story__name b { color: var(--iris-pulse); font-weight: 600; }
.story__name .small { font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--ink-muted); }
.story__name a { color: var(--iris-pulse); }
.story__text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; font-size: var(--fs-sub); color: var(--ink-soft); }
.story__text .closing { font-size: var(--fs-h4); font-weight: 600; color: var(--iris-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--iris-glow) linear-gradient(in oklab 180deg, var(--iris-glow) 0%, var(--hero-top) 88%, var(--hero-top) 100%); padding: 96px 0 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 64px; }
.footer-cta { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
.footer-cta h2 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: var(--track-display); max-width: 760px; }
.footer-meta { border-top: 1px solid var(--iris-veil); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--on-glow); }
.footer-meta nav { display: flex; gap: 24px; }
.footer-meta a { color: var(--white); }

/* ---------- Legal page ---------- */
.legal { background: var(--pearl); color: var(--iris-deep); padding-block: 96px; }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: 40px; }
.legal h1 { font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--track-tight); }
.legal h2 { font-size: var(--fs-h4); margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--iris-pulse); }

/* ---------- Background brain (detailed line art, CC BY-SA 4.0 — see legal.html) ---------- */
.bg-brain { position: absolute; z-index: -1; pointer-events: none; max-width: none; user-select: none; }
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.bg-brain--footer { right: -160px; top: -40px; width: 780px; opacity: 0.14; }
@media (max-width: 900px) { .bg-brain--footer { right: -320px; opacity: 0.1; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  }

/* ---------- Light and blue bands: breathing room in the long dark middle ---------- */
/* light band: the white sheet from the top of the page, as an inset panel; tokens are swapped so
   components inside keep working without per-component overrides */
.section--light {
  margin: 48px 16px; border-radius: var(--r-card-lg); padding-block: var(--section-y);
  background: var(--surface-light); color: #03036d; --highlight: #3d6f7c;
  --white: #03036d; --ash: #3f4866; --lilac: #56647f; --mint-soft: #0a6b48; --mint: #12a46e;
  --cyan-soft: #1a64a3; --iris-border: #c3cfd7; --iris-shadow: #dde5ea; --iris-deep: #f7f9fa;
}
.section--light a { color: #1a64a3; }
/* blue band: the hero blue returns mid-page */
.section--blue { padding-block: var(--section-y); background: linear-gradient(in oklab 180deg, var(--iris-deep) 0%, var(--hero-top) 28%, var(--iris-glow) 72%, var(--iris-deep) 100%); }

/* =====================================================================
   Corner shapes — switch with <html data-shape="…"> (compare via ?tweaks).
   Default (no attribute) = "round": pill buttons, 24/32 px cards (Impilo).
   ===================================================================== */
[data-shape="soft"] { --r-pill: 10px; --r-card: 14px; --r-card-lg: 18px; --r-input: 10px; --r-icon: 6px; --r-sm: 6px; }
[data-shape="precise"] { --r-pill: 3px; --r-card: 4px; --r-card-lg: 4px; --r-input: 3px; --r-icon: 2px; --r-sm: 2px; }
[data-shape="square"] { --r-pill: 0; --r-card: 0; --r-card-lg: 0; --r-input: 0; --r-icon: 0; --r-sm: 0; }

/* precise: viewfinder corner marks on images and animated stages only — taken from the camera / exoscope world */
[data-shape="precise"] :is(.stage, .ui-card, .view-card, .person__photo, .status__shot) { position: relative; }
[data-shape="precise"] :is(.stage, .ui-card, .view-card, .person__photo, .status__shot)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border: 1.5px solid var(--mint-soft);
  --m: 14px;
  -webkit-mask: conic-gradient(at var(--m) var(--m), #0000 75%, #000 0) 0 0 / calc(100% - var(--m)) calc(100% - var(--m));
          mask: conic-gradient(at var(--m) var(--m), #0000 75%, #000 0) 0 0 / calc(100% - var(--m)) calc(100% - var(--m));
}

/* =====================================================================
   Theme variants — switch with <html data-palette="…" data-type="…">.
   Default (no attribute) = "violet" palette + "manrope" type.
   ===================================================================== */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plusjakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/plexsans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("../assets/fonts/plexcond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("../assets/fonts/plexcond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* --- Palette: FLENSS navy (old-site brand: navy, grey-blue, pink as the one accent) --- */
[data-palette="navy"] {
  /* matched to the logo: navy #03036D, grey-blue #A7C3CB */
  --panel: rgba(255, 255, 255, 0.08);
  --hero-top: #0b4a86;
  --iris-deep: #020245; --iris-shadow: #0a0a5c; --iris-glow: #03036d; --iris-pulse: #d60d4c;
  --iris-border: #26268a; --iris-veil: #3232a0; --iris-raised: rgba(255, 255, 255, 0.06); --iris-line: rgba(167, 195, 203, 0.35);
  --pulse-hover: #e8245f; --on-glow: #dde1f0; --ink-soft: #1b1b3a;
  --cyan: #8fd3ff; --cyan-soft: #b9e4ff; --teal: #c5ecff; --mint: #3ddc97; --lilac: #a7c3cb;
  --pearl: #eef1f4; --ash: #c9d4db; --ink-muted: #4a4f68;
  --surface-light: #dde8eb;  /* light sections tinted with the logo grey-blue */
  --highlight: #a7c3cb;      /* headline highlights in the logo grey-blue; cyan stays for data and links */
  --glow: rgba(214, 13, 76, 0.28); --glow-strong: rgba(214, 13, 76, 0.5); --glow-cta: 0 0 20px rgba(214, 13, 76, 0.35);
}
/* navy uses its own recoloured illustrations in assets/illustrations/navy/ (no filter needed) */

/* --- Palette: OR teal (scrub/drape teal, clinical cyan) --- */
[data-palette="teal"] {
  --iris-deep: #07222b; --iris-shadow: #0e3440; --iris-glow: #0f5c6e; --iris-pulse: #12889c;
  --iris-border: #1c6f80; --iris-veil: #2a8899; --iris-raised: #146b7e; --iris-line: #2c97a8;
  --pulse-hover: #18a0b5; --on-glow: #def4f6; --ink-soft: #17343b;
  --cyan: #4fd8eb; --cyan-soft: #8ee6f2; --teal: #7cf5ff; --mint: #5ff2b4; --lilac: #9fd6dc;
  --pearl: #eef5f5; --ash: #c6dcdf; --ink-muted: #46606a;
  --glow: rgba(18, 136, 156, 0.4); --glow-strong: rgba(79, 216, 235, 0.45); --glow-cta: 0 0 20px rgba(18, 136, 156, 0.4);
}
[data-palette="teal"] .source img, [data-palette="teal"] .hero__art, 
[data-palette="teal"] .view-card img { filter: hue-rotate(-75deg) saturate(0.7); }

/* --- Palette: warm graphite (neutral dark, violet only as accent) --- */
[data-palette="graphite"] {
  --iris-deep: #17171c; --iris-shadow: #222229; --iris-glow: #2c2c36; --iris-pulse: #6c63ff;
  --iris-border: #3a3a46; --iris-veil: #4a4a58; --iris-raised: #34343f; --iris-line: #4c4c5a;
  --pulse-hover: #7d75ff; --on-glow: #e7e6ef; --ink-soft: #2a2a33;
  --pearl: #f3f2ef; --ash: #cfcfd8; --ink-muted: #5b5b66;
  --glow: rgba(108, 99, 255, 0.25); --glow-strong: rgba(108, 99, 255, 0.45); --glow-cta: 0 0 20px rgba(108, 99, 255, 0.35);
}

/* --- Type: Plus Jakarta Sans (closest to the original Gilroy) --- */
[data-type="jakarta"] { --font: "Plus Jakarta Sans", system-ui, sans-serif; --font-display: var(--font); }

/* --- Type: IBM Plex (old FLENSS brand): Condensed headlines, Plex Sans body --- */
[data-type="plex"] {
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --track-body: 0em; --track-tight: -0.02em; --track-display: -0.03em;
}
[data-type="plex"] body { font-weight: 400; }

/* --- Tweaks panel (only rendered with ?tweaks in the URL) --- */
.tweaks {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 260px;
  padding: 16px; border-radius: 20px; background: rgba(15, 15, 20, 0.92); color: #fff;
  font: 500 13px/1.4 system-ui, sans-serif; letter-spacing: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.tweaks fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.tweaks legend { padding: 0; margin-bottom: 6px; color: #aaa; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.tweaks label { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.tweaks .sw { width: 28px; height: 16px; border-radius: 4px; flex: none; }
.tweaks button { font: inherit; color: #fff; background: #333; border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- Minimal page (2026-11): short hero with photo, about cards ---------- */
.hero--min { padding-bottom: var(--section-y); }
.hero__min { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero__min .hero__copy { padding-top: 56px; }
.hero__note { font-size: var(--fs-small); letter-spacing: var(--track-caption); color: var(--mint-soft); }
.hero__photo { margin: 0; }
@media (max-width: 900px) { .hero__min { grid-template-columns: 1fr; gap: 32px; } }
.about { background: var(--iris-glow); padding-block: 0 var(--section-y); }
.footer-cta .cta-split { max-width: 640px; }
.legal h3 { font-size: 1.0625rem; margin: 16px 0 4px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal__lang { font-size: var(--fs-small); color: var(--ink-muted); }
