/* ==========================================================================
   Artheus site design system (2026 redesign)
   Dark-first, mobile-first. The palette lives in the tokens below; change
   them there and the whole site follows.
   ========================================================================== */

:root {
  /* Palette: Lamplight (chosen 2026-09-24 by a three-lens color-psychology panel; see 01_Web/redesign/BRAND.md).
     Green-tinted near-black, warm cream text, one apricot accent (the signal), sage as the cool secondary. */
  --ink: #0F1312;
  --ink-2: #161B19;
  --ink-3: #1E2522;
  --ink-4: #2A322E;
  --line: rgba(243, 238, 228, 0.09);
  --line-2: rgba(243, 238, 228, 0.17);
  --text: #F3EEE4;
  --muted: #AEB5AC;
  --faint: #869089;
  --accent: #FFA35C;
  --accent-2: #A6C8AA;
  --accent-ink: #0F1312;            /* text on accent */
  --accent-soft: rgba(255, 163, 92, 0.12);
  --sage-soft: rgba(166, 200, 170, 0.12);
  --paper: #F6F1E7;
  --paper-2: #FFFCF6;
  --paper-line: #E2DACA;
  --paper-text: #1A1F1C;
  --paper-muted: #4F5751;
  --accent-on-paper: #A0470E;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
  --gutter: 20px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { max-width: 68ch; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.accent { color: var(--accent); }
em.hl, .hl { font-style: normal; color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 auto; } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.22em; }
.brand .mark-stroke { stroke: var(--text); }
.brand .mark-dot { fill: var(--accent); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav--solid {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.nav__toggle-bars { display: block; }
.nav__toggle-bars > span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle-bars > span + span { margin-top: 6px; }
.nav-open .nav__toggle-bars > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav__toggle-bars > span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle-bars > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* mobile menu panel */
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--ink); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-open .menu { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.nav-open .nav { background: var(--ink); border-bottom-color: var(--line); }
.menu a, .menu summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; font-family: var(--font-display); font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "+"; font-size: 24px; color: var(--muted); transition: transform .2s; }
.menu details[open] summary::after { transform: rotate(45deg); }
.menu details a { font-size: 16px; min-height: 46px; padding-left: 14px; color: var(--muted); }
.menu .btn { margin-top: 24px; width: 100%; font-size: 17px; border-bottom: 0; }
.menu__portal { color: var(--muted); font-size: 15px !important; }

@media (min-width: 1000px) {
  .nav__toggle, .menu { display: none; }
  .nav__links { display: flex; align-items: center; gap: 4px; }
  .nav__cta { display: inline-flex; }
  .nav__item { position: relative; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px;
    font-family: var(--font-display); font-size: 13.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 82%, transparent); transition: color .2s, background .2s;
  }
  .nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current] { color: var(--text); background: rgba(255,255,255,.05); }
  .nav__link[aria-current] { color: var(--accent); }
  .nav__caret { width: 9px; height: 9px; opacity: .7; transition: transform .2s; }
  .nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
  .nav__drop {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
    min-width: 280px; padding: 10px; border-radius: 14px;
    background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav__drop::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
  .nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__drop--wide { width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .nav__drop--wide { left: 0; transform: translate(0, 6px); }
  .nav__item:hover .nav__drop--wide, .nav__item:focus-within .nav__drop--wide { transform: translate(0, 0); }
  .nav__drop a { display: block; padding: 11px 14px; border-radius: 10px; transition: background .15s; }
  .nav__drop a:hover { background: rgba(255,255,255,.05); }
  .nav__drop b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
  .nav__drop small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
  .nav__drop .verb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .nav__portal { font-size: 12.5px; color: var(--muted); padding: 0 10px; }
  .nav__portal:hover { color: var(--text); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section--tight { padding: 64px 0; }
.section--raised { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--paper-text); }
.section--paper .lead, .section--paper p.muted { color: var(--paper-muted); }
.section--paper .eyebrow { color: var(--accent-on-paper); }
.section--paper .hl { color: var(--accent-on-paper); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head .lead { margin-top: 18px; }
.section-head--split { max-width: none; display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 64px; overflow: hidden; isolation: isolate;
}
@media (min-width: 900px) { .hero { align-items: center; padding-bottom: 96px; } }
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 78% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 90%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--ink) 100%);
}
.hero h1 { max-width: 13.5em; }
.hero .lead { margin-top: 24px; max-width: 36em; color: color-mix(in srgb, var(--text) 74%, transparent); }
.hero .btn-row { margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); display: none; }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 64px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero { padding: calc(var(--nav-h) + 110px) 0 96px; } }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 80% at 85% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16em; }
.page-hero .lead { margin-top: 22px; max-width: 40em; }
.grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 70% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 20%, #000 20%, transparent 75%); }

/* ---------- Statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(1.55rem, 4.2vw, 2.9rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; max-width: 26em; color: color-mix(in srgb, var(--text) 55%, transparent); }
.statement strong { color: var(--text); font-weight: 500; }
.statement em { font-style: normal; color: var(--accent); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
@media (min-width: 700px) { .card { padding: 32px 28px; } }
a.card:hover, .card--hover:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 15px; }
.card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 15px; }
.card__verb { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; }
.card__verb span:last-child { color: var(--faint); }
.card__icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 22px; height: 22px; }
.section--paper .card { background: var(--paper-2); border-color: var(--paper-line); }
.section--paper .card p { color: var(--paper-muted); }
.section--paper .card__verb, .section--paper .link-arrow { color: var(--accent-on-paper); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.section--paper .chip { border-color: var(--paper-line); color: var(--paper-muted); background: var(--paper-2); }

/* ---------- Stats / proof ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink); padding: 26px 20px; }
@media (min-width: 700px) { .stat { padding: 34px 28px; } }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.stat__num small { font-size: .5em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stat__label { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Pillars (numbered list) ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .pillar { grid-template-columns: 90px 1fr 1.3fr; gap: 32px; align-items: baseline; padding: 36px 0; } }
.pillar__n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .12em; }
.pillar h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.pillar p { color: var(--muted); }
.section--paper .pillars, .section--paper .pillar { border-color: var(--paper-line); }
.section--paper .pillar__n { color: var(--accent-on-paper); }

/* ---------- Solution detail blocks ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav__row::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; font-size: 14px; color: var(--muted); border: 1px solid transparent; font-family: var(--font-display); }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }

.solution { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 48px; } /* adds to html scroll-padding-top; clears the sticky sub-nav */
@media (min-width: 900px) { .solution { padding: 120px 0; } }
.solution__head { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 900px) { .solution__head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.solution__num { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.solution__head p { color: var(--muted); font-size: 17px; }
.accel { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--ink-2); }
.accel h4 { font-size: 1.1rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.accel h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-2px); }
.accel p { color: var(--muted); font-size: 14.5px; }
.accel .chips { margin-top: 14px; }
.proof { margin-top: 20px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: linear-gradient(135deg, var(--accent-soft), transparent 60%); }
.proof__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.proof p { color: color-mix(in srgb, var(--text) 80%, transparent); font-size: 15px; }
.proof .mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; margin-top: 18px; }
@media (min-width: 800px) { .proof .mini-stats { grid-template-columns: repeat(4, 1fr); } }
.mini-stats b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.mini-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- Story (scroll-scrubbed scenes) ---------- */
.story { position: relative; background: #070908; }
#how-we-work { scroll-margin-top: calc(-1 * (var(--nav-h) + 12px)); } /* the hero link lands with the story stage filling the screen */
.story__track { position: relative; }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__plate { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.story__plate.is-on { opacity: 1; }
.story__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, transparent 70%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, transparent 40%); }
@media (max-width: 799px) { .story__shade { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%); } }
.story__captions { position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none; padding-bottom: 92px; }
@media (min-width: 800px) { .story__captions { align-items: center; padding-bottom: 0; } }
.story__cap { position: absolute; left: var(--gutter); right: var(--gutter); max-width: 30rem; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story__cap.is-on { opacity: 1; transform: none; }
.story__cap .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.story__cap h3 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); line-height: 1.1; margin-bottom: 14px; }
.story__cap p { color: rgba(233,238,245,.78); font-size: clamp(15px, 1.8vw, 17px); }
.story__rail { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 28px; display: flex; gap: 6px; }
.story__rail button { flex: 1; height: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); text-align: left; }
.story__rail button i { display: block; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; position: relative; }
.story__rail button i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.story__rail button.is-on { color: var(--text); }
.story__rail span { display: none; }
@media (min-width: 800px) { .story__rail span { display: block; } .story__rail button { height: 38px; } }
.story__count { position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); top: calc(var(--nav-h) + 20px); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* storyboard plates (shown until the filmed frames are in) */
.plate-art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.plate-art--1 { background: radial-gradient(ellipse 55% 45% at 68% 42%, rgba(255,163,92,.20), transparent 70%), radial-gradient(ellipse 80% 40% at 50% 100%, rgba(166,200,170,.10), transparent 70%), linear-gradient(180deg, #1b2230 0%, #0c0f0e 70%); }
.plate-art--2 { background: radial-gradient(ellipse 50% 45% at 66% 45%, rgba(255,200,140,.18), transparent 70%), radial-gradient(circle at 70% 52%, rgba(255,163,92,.16), transparent 40%), #0e0f0c; }
.plate-art--3 { background: radial-gradient(ellipse 60% 50% at 66% 45%, rgba(166,200,170,.20), transparent 70%), radial-gradient(circle at 64% 50%, rgba(255,163,92,.14), transparent 35%), #0b0f0e; }
.plate-art--4 { background: radial-gradient(ellipse 50% 45% at 70% 50%, rgba(255,190,120,.16), transparent 70%), linear-gradient(180deg, #121826 0%, #090b0b 75%); }
.plate-art--5 { background: radial-gradient(ellipse 60% 50% at 64% 48%, rgba(255,224,180,.16), transparent 70%), radial-gradient(circle at 70% 55%, rgba(255,163,92,.14), transparent 40%), #10110e; }
.plate-art--6 { background: radial-gradient(ellipse 65% 55% at 66% 42%, rgba(255,214,170,.22), transparent 70%), radial-gradient(circle at 62% 50%, rgba(255,163,92,.22), transparent 30%), #11130f; }
.plate-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-art { will-change: transform; transform-origin: 62% 50%; }
.plate-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__canvas { opacity: 0; transition: opacity .35s var(--ease); }
.story.film-on .story__canvas { opacity: 1; }
.story.film-on .story__plate { opacity: 0; }
.plate-art.has-still { background: #070908; }
@media (max-width: 799px) { .story__count { display: none; } } /* the rail already shows progress; the counter collided with the label */
.plate-art__label { position: absolute; right: var(--gutter); bottom: 90px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.28); }
.story__intro { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 20px); }
.story__intro .eyebrow { margin: 0; display: flex; }

/* ---------- Industry rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1.4fr auto; gap: 40px; align-items: center; padding: 32px 0; } }
.row h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.row p { color: var(--muted); }
.row .link-arrow { font-size: 14.5px; }
a.row:hover h3 { color: var(--accent); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.news-card__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink-4), var(--ink-2)); position: relative; overflow: hidden; }
.news-card__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%); }
.news-card__img svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.news-card__body { padding: 4px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.news-meta b { color: var(--accent); font-weight: 600; }
.article { padding: calc(var(--nav-h) + 64px) 0 96px; }
.article h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin: 10px 0 20px; }
.article .prose { margin-top: 40px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 84%, transparent); font-size: 17.5px; line-height: 1.75; }
.prose p + p, .prose ul, .prose ol, .prose h2, .prose h3 { margin-top: 22px; }
.prose h2 { font-size: 1.6rem; margin-top: 44px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li { max-width: 66ch; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol, .prose h3 + p { margin-top: 12px; }
.prose ul + p, .prose ol + p { margin-top: 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 18px; margin-top: 26px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--text); }

/* ---------- Mission / vision / values ---------- */
.mvv { display: grid; gap: 16px; }
@media (min-width: 900px) { .mvv { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.mvv .card h3 { font-size: 1.35rem; }
.mvv__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.values { display: grid; gap: 10px; margin-top: 4px; }
.values li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.values li:first-child { border-top: 0; padding-top: 0; }
.values b { font-family: var(--font-display); font-size: 15.5px; }
.values span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Facts table (contracting) ---------- */
.facts { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 20px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.fact dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.fact dd { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.fact dd small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; }
.code { font-family: var(--font-mono); font-size: 15px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--ink-2); letter-spacing: .04em; }
.status { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.status--on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: color-mix(in srgb, var(--text) 85%, transparent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--ink); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iPhone zoom-on-focus */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--faint); }
.form-error { display: none; padding: 12px 14px; border-radius: var(--radius); background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #FFB4B4; font-size: 14px; }
.form-done { display: none; text-align: center; padding: 40px 12px; }
.form-done h3 { margin: 16px 0 8px; }
.form-done p { color: var(--muted); margin: 0 auto; }
.panel { padding: 28px 22px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line); }
@media (min-width: 700px) { .panel { padding: 40px; } }

/* ---------- Jobs (careers) ---------- */
.jobs { display: grid; gap: 14px; }
.job { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--ink-2); }
.job__top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.job h3 { font-size: 1.25rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.job-desc { color: var(--muted); margin-top: 14px; font-size: 15px; }
.job-details { margin-top: 12px; }
.job-details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14.5px; }
.job-details > div { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.job-details h4 { color: var(--text); margin: 14px 0 6px; font-size: 14.5px; }
.job-details ul { list-style: disc; padding-left: 20px; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 80; background: rgba(2, 4, 8, .78); backdrop-filter: blur(6px); display: none; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
@media (min-width: 700px) { .modal { align-items: center; padding: 24px; } }
.modal__box { width: 100%; max-width: 620px; max-height: 92svh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px 20px 0 0; padding: 26px 20px 32px; position: relative; }
@media (min-width: 700px) { .modal__box { border-radius: 20px; padding: 36px; } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 26px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border-top: 2px solid var(--accent); background: var(--ink-2); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; }
.step h4 { margin: 10px 0 6px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: 96px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cta { padding: 140px 0; } }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 70% at 50% 110%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.cta h2 { max-width: 16em; }
.cta p { margin-top: 18px; }
.cta .btn-row { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { background: #0A0D0C; border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }
.footer p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer a { color: color-mix(in srgb, var(--text) 80%, transparent); }
.footer a:hover { color: var(--accent); }
.footer__codes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; line-height: 1.7; }
.footer__codes b { color: var(--muted); font-weight: 500; }
.footer__bottom { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--faint); font-size: 13px; }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (scripting: none), print { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* utility */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; } .mt-xl { margin-top: 80px; }
.muted { color: var(--muted); }
.center { text-align: center; } .center p { margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .split--wide-left { grid-template-columns: 1.3fr 1fr; } }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 32px); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Home page wheel tour (three rings on a dial) ---------- */
.story--wheel { --ws: min(54vh, 480px); --dx: min(calc(50vw - 48px - var(--ws) * .3), calc(560px - var(--ws) * .3)); }
.story__intro-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.story__skip { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: auto; }
.story__skip:hover { color: var(--accent); }
.story--wheel .story__cap { visibility: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.story--wheel .story__cap.is-on { visibility: visible; transition-delay: 0s; }
.story--wheel .story__cap .link-arrow { margin-top: 18px; pointer-events: auto; }
.story--wheel .story__captions { transition: opacity .45s var(--ease); }
.story__note { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 78px; margin: 0; font-size: 12.5px; color: var(--faint); }
.story--wheel .story__shade::after { content: ""; position: absolute; inset: 0; background: rgba(7, 9, 8, .62); opacity: 0; transition: opacity .6s var(--ease); }

.wheel { position: absolute; left: 50%; top: 52%; width: var(--ws); transform: translate(calc(-50% + var(--dx)), calc(-50% + 10vh)) scale(.6); transition: transform .8s var(--ease); pointer-events: none; }
.wheel__svg { display: block; width: 100%; height: auto; overflow: visible; }
.wheel__bezel { fill: rgba(12, 15, 14, .78); stroke: rgba(166, 200, 170, .16); stroke-width: 1; }
.wheel__ring { transform-box: view-box; transform-origin: 220px 220px; transition: transform 1.3s cubic-bezier(.3, 1.16, .45, 1); }
.wheel__ring--stage { transition-duration: .8s; }
.wheel__cell { fill: rgba(166, 200, 170, .045); stroke: rgba(166, 200, 170, .2); stroke-width: 1; transition: fill .4s, stroke .4s; }
.wheel__label { font-family: var(--font-mono); fill: var(--muted); letter-spacing: .06em; transition: fill .4s; }
.wheel__ring--stage .wheel__label { text-transform: uppercase; letter-spacing: .14em; }
.wheel__seg.is-done .wheel__cell { fill: rgba(255, 163, 92, .09); }
.wheel__seg.is-active .wheel__cell { fill: rgba(255, 163, 92, .17); stroke: rgba(255, 163, 92, .75); }
.wheel__seg.is-active .wheel__label { fill: var(--text); }
.wheel__window { fill: rgba(255, 163, 92, .035); stroke: var(--accent); stroke-width: 1.4; stroke-opacity: .65; }
.wheel__word { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: .26em; fill: var(--text); }
.wheel__pin .wheel__mark { stroke: var(--text); }
.wheel__hub { fill: #0F1312; stroke: rgba(166, 200, 170, .28); stroke-width: 1; }
.wheel__mark { fill: none; stroke: var(--text); stroke-linecap: round; stroke-linejoin: round; }
.wheel__dot { fill: var(--accent); }
.wheel__readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; font-size: 19px; text-align: center; }
.wheel__readout dt { font-family: var(--font-mono); font-size: .66em; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.wheel__readout dd { margin: 0; color: var(--text); font-weight: 600; line-height: 1.25; }
@media (prefers-reduced-motion: reduce) { .wheel, .wheel__ring { transition: none; } }

/* Phones and Data Saver: the tour is a list of stops, no film and no pinning */
.story--static .story__track { height: auto; }
.story--static .story__stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 24px; padding: 64px var(--gutter) 56px; }
.story--static .story__canvas, .story--static .story__shade, .story--static .story__count, .story--static .story__rail, .story--static .story__captions { display: none; }
.story--static .story__intro { position: static; order: -3; }
.story--static .story__intro .wrap { padding: 0; }
.story--static .wheel { position: static; order: -2; width: min(100%, 340px); margin: 0 auto 8px; transform: none; }
.story--static .wheel__readout { display: none; }
.story--static .story__note { position: static; order: 1; }
.story--static .story__plate { position: relative; inset: auto; opacity: 1; border-radius: 14px; overflow: hidden; background: var(--ink-2); border: 1px solid rgba(166, 200, 170, .14); }
.story--static .plate-art { position: relative; inset: auto; aspect-ratio: 16 / 10; transform: none !important; }
.story--static .plate-art__label { bottom: 12px; right: 12px; left: 12px; text-align: right; }
.story--static .story__cap { position: static; opacity: 1; transform: none; visibility: visible; max-width: none; padding: 18px 18px 22px; }
.story--static .story__cap h3 { font-size: 1.45rem; }
.story--wheel .story__count { display: none; } /* the stage ring and the rail show progress; the counter collided with "Skip the tour" */
.story--wheel .plate-art { transform-origin: 50% 50%; }
/* The wheel sits on its own dark instrument panel so busy scenes never show through it */
.story--wheel .wheel { padding: 28px 28px 30px; border-radius: 32px; background: rgba(10, 13, 12, .9); border: 1px solid rgba(166, 200, 170, .18); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-sizing: content-box; }
.story--wheel .wheel__bezel { fill: #0C0F0E; }
.story--static .wheel { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
