/* =========================================================================
   VOXRA design system
   One token layer, one type scale, a small set of layout and component rules.
   Pages add nothing but content; product pages may add one scoped stylesheet.
   ========================================================================= */

:root {
  /* colour */
  --orange: #FF6500;
  --orange-text: #C24D00;          /* orange for small text: 5:1 on off-white */
  --orange-tint: #FFEBDD;
  --black: #080808;
  --charcoal: #1A1D21;
  --stone: #6B7280;
  --offwhite: #F7F6F3;
  --white: #FFFFFF;
  --line: rgba(8, 8, 8, .12);
  --line-strong: rgba(8, 8, 8, .22);
  --line-dark: rgba(255, 255, 255, .14);

  /* semantic */
  --bg: var(--offwhite);
  --fg: var(--black);
  --fg-2: var(--charcoal);
  --fg-muted: var(--stone);

  /* type */
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fs-900: clamp(2.4rem, 1rem + 3.6vw, 3.9rem);     /* home hero */
  --fs-850: clamp(2.1rem, 1rem + 2.8vw, 3.3rem);     /* inner page hero */
  --fs-800: clamp(1.9rem, 1.1rem + 2.6vw, 3rem);      /* h2 */
  --fs-700: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);   /* h3 */
  --fs-600: 1.2rem;
  --fs-500: 1.0625rem;                                 /* lede */
  --fs-400: 1rem;
  --fs-300: .9rem;
  --fs-200: .8125rem;
  --fs-100: .75rem;                                    /* eyebrow */
  --lh-tight: 1.06;
  --lh-snug: 1.2;
  --lh-body: 1.6;

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section-y: clamp(4.5rem, 6vw + 1rem, 8rem);

  /* layout */
  --shell-max: 1200px;
  --gutter: 24px;
  --header-h: 64px;

  /* shape and motion */
  --r-s: 4px;
  --r-m: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .35s;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--fs-400)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .checks li a { color: var(--orange-text); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p a:hover, .checks li a:hover { color: var(--black); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
h1 { font-size: var(--fs-900); line-height: var(--lh-tight); letter-spacing: -.03em; }
h2 { font-size: var(--fs-800); line-height: 1.1; }
h3 { font-size: var(--fs-700); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-600); line-height: var(--lh-snug); font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
small { font-size: var(--fs-200); }
strong { font-weight: 600; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; padding: var(--s-2) var(--s-3); background: var(--black); color: var(--white); border-radius: var(--r-s); }
.skip-link:focus { top: var(--s-2); }

/* ---------- layout ---------- */
.shell { width: min(var(--shell-max), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section-tight { padding-block: calc(var(--section-y) * .6); }
.section-dark { position: relative; isolation: isolate; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.07'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat, var(--black); color: var(--white); --fg: var(--white); --fg-2: #D9D9D6; --fg-muted: #A1A1A8; --line: var(--line-dark); --line-strong: rgba(255,255,255,.3); }
/* a pointer-following edge light on dark surfaces; the page sets --mx/--my */
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(720px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 101, 0, .13), rgba(255, 101, 0, 0) 62%); }
.section-dark.is-lit::before { opacity: 1; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p a, .section-dark .checks li a { color: #FF9A52; }
.section-dark p a:hover { color: var(--white); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section-dark + .section { padding-top: var(--section-y); }

.eyebrow { display: block; margin-bottom: var(--s-4); font: 600 var(--fs-100)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.eyebrow-accent { color: var(--orange-text); }
.section-dark .eyebrow-accent { color: var(--orange); }
.accent { color: var(--orange); }
.lede { font-size: var(--fs-500); line-height: 1.6; color: var(--fg-2); max-width: 60ch; }
.measure { max-width: 62ch; }
.muted { color: var(--fg-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede { margin-top: var(--s-4); }
.section-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head-row .section-head { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; }
.split-sticky > :first-child { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r-m);
  font: 600 var(--fs-300)/1 var(--font-body); letter-spacing: 0; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-primary { background: var(--orange); color: var(--black); border-color: var(--orange); }
.btn-primary:hover { background: #FF7A24; border-color: #FF7A24; box-shadow: 0 10px 32px rgba(255, 101, 0, .35); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--charcoal); }
.btn-small { min-height: 40px; padding-inline: var(--s-4); font-size: var(--fs-200); }
.btn .arrow { width: 14px; height: 14px; flex: 0 0 auto; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-300); color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.text-link:hover { color: var(--orange-text); border-color: var(--orange); }
.section-dark .text-link:hover { color: var(--orange); }
.text-link .arrow { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--offwhite) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.brand-on-dark { display: none; }
/* home: the header floats over the hero and goes dark until the hero has scrolled past */
.home .site-header { position: fixed; left: 0; right: 0; }
.site-header.is-dark { background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header.is-dark .brand-on-light { display: none; }
.site-header.is-dark .brand-on-dark { display: block; }
.site-header.is-dark .site-nav a { color: rgba(255, 255, 255, .78); }
.site-header.is-dark .site-nav a:hover { color: var(--white); }
.site-header.is-dark .header-cta { background: var(--white); color: var(--black); border-color: var(--white); }
.site-header.is-dark .header-cta:hover { background: var(--orange); border-color: var(--orange); }
.site-header.is-dark .menu-button span { background: var(--white); }
.scroll-thread { position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: var(--orange); box-shadow: 0 0 12px rgba(255, 101, 0, .6); pointer-events: none; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: rgba(247,246,243,.94); } }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; height: 100%; flex: 0 0 auto; }
.brand img, .brand svg { height: 22px; width: auto; }
.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-left: var(--s-4); }
.site-nav a { position: relative; padding: var(--s-2) 0; font-size: var(--fs-300); font-weight: 500; color: var(--fg-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); }
.header-cta { margin-left: auto; }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-button span { display: block; width: 22px; height: 2px; background: var(--fg); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero: the building fills the viewport, the words sit on it ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--header-h) + clamp(5rem, 12vh, 9rem)) clamp(3rem, 8vh, 6rem);
  background: var(--black); color: var(--white);
  --fg: var(--white); --fg-2: #D9D9D6; --fg-muted: #A1A1A8; --line-strong: rgba(255, 255, 255, .32);
}
.hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; will-change: transform; }
.hero-media svg { display: block; width: 100%; height: 100%; }
/* keep the copy legible over the lit face: shade the left and the foot of the frame */
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 8, 8, .78) 0%, rgba(8, 8, 8, .5) 42%, rgba(8, 8, 8, 0) 78%),
  linear-gradient(180deg, rgba(8, 8, 8, .2) 0%, rgba(8, 8, 8, 0) 35%, rgba(8, 8, 8, 0) 60%, rgba(8, 8, 8, .55) 100%); }
.hero-copy { position: relative; width: min(var(--shell-max), 100% - var(--gutter) * 2); }
.hero h1 { color: var(--white); max-width: 17ch; text-wrap: balance; }
.hero .accent { color: var(--orange); }
.hero .lede { margin-top: var(--s-5); max-width: 48ch; color: #D9D9D6; }
.hero .actions { margin-top: var(--s-6); }
.hero .btn-ghost { color: var(--white); border-color: var(--line-strong); }
.hero .btn-ghost:hover { border-color: var(--white); }
/* the edge light comes on, then breathes */
.motion .hero-glow { animation: hero-light-on 1.6s var(--ease) both, hero-breathe 7s ease-in-out 1.6s infinite; }
.motion .hero-strip { animation: hero-light-on 1.2s var(--ease) both; }
@keyframes hero-light-on { from { opacity: 0; } }
@keyframes hero-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .85; } }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-850); max-width: 24ch; }
.page-hero .lede { margin-top: var(--s-5); }
.page-hero .actions { margin-top: var(--s-6); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--fs-200); color: var(--fg-muted); }
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs li { list-style: none; display: flex; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }

/* ---------- editorial lists ---------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--s-5); padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.rows h3, .rows h4 { margin: 0; }
.rows p { color: var(--fg-2); }
.rows .row-meta { font-size: var(--fs-300); color: var(--fg-muted); margin-top: var(--s-2); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.steps li { counter-increment: step; padding-top: var(--s-4); border-top: 2px solid var(--fg); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--s-3); font: 600 var(--fs-200)/1 var(--font-display); color: var(--orange-text); letter-spacing: .04em; }
.section-dark .steps li::before { color: var(--orange); }
.steps h3 { font-size: var(--fs-600); }
.steps p { margin-top: var(--s-2); font-size: var(--fs-300); color: var(--fg-2); }

.checks { list-style: none; display: grid; gap: var(--s-3); }
.checks li { position: relative; padding-left: 1.6rem; color: var(--fg-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: 2px; background: var(--orange); }

.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-5) var(--s-6); }
.facts li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.facts dt, .facts .k { font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; }
.facts dd, .facts .v { margin: var(--s-2) 0 0; font-weight: 500; }

/* ---------- services ---------- */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-index { font: 600 var(--fs-200)/1 var(--font-display); color: var(--orange-text); letter-spacing: .06em; margin-bottom: var(--s-3); }
.service h3 { font-size: var(--fs-800); line-height: 1.05; }
.service h3 small { display: block; margin-top: var(--s-2); font: 500 var(--fs-300)/1.4 var(--font-body); color: var(--fg-muted); letter-spacing: 0; }
.service-body > p + p { margin-top: 1em; }
.service-body ul { margin-top: var(--s-4); }
.service-note { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-left: 2px solid var(--orange); background: var(--white); font-size: var(--fs-300); color: var(--fg-2); }
.section-dark .service-note { background: var(--charcoal); }

/* ---------- product directory ---------- */
.directory { list-style: none; border-top: 1px solid var(--line); }
.directory li { border-bottom: 1px solid var(--line); }
.directory a, .directory .dir-static { display: grid; grid-template-columns: 2.5rem minmax(0, 4fr) minmax(0, 6fr) auto 1.5rem; gap: var(--s-5); align-items: center; padding: clamp(1.1rem, 2vw, 1.6rem) 0; color: inherit; transition: background var(--dur) var(--ease); }
.directory a:hover { background: color-mix(in srgb, var(--white) 70%, transparent); box-shadow: inset 3px 0 0 var(--orange); padding-left: var(--s-4); }
.directory .dir-index { font: 600 var(--fs-200)/1 var(--font-display); color: var(--fg-muted); }
.directory h3 { font-size: var(--fs-600); }
.directory h3 small { display: block; font: 500 var(--fs-200)/1.4 var(--font-body); color: var(--fg-muted); margin-top: 2px; }
.directory p { font-size: var(--fs-300); color: var(--fg-2); }
.directory .arrow { width: 18px; height: 18px; color: var(--fg-muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.directory a:hover .arrow { transform: translateX(3px); color: var(--orange-text); }

.tag { display: inline-flex; align-items: center; gap: var(--s-2); padding: .3rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); font: 600 var(--fs-100)/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.tag-live::before, .tag-pilot::before { background: var(--orange); }
.tag-demo::before { background: var(--charcoal); }
.section-dark .tag { color: var(--white); }

/* ---------- feature / product page blocks ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-media { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.feature-media img { width: 100%; }
.feature h3 { font-size: var(--fs-700); }
.feature p { margin-top: var(--s-3); color: var(--fg-2); }

.panel { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.section-dark .panel { background: var(--charcoal); }
.panel h3 { font-size: var(--fs-600); }
.panel p { margin-top: var(--s-3); color: var(--fg-2); font-size: var(--fs-300); }

/* ---------- work / portfolio ---------- */
.work-list { list-style: none; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.work-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.work-item header { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.work-item h3 { font-size: var(--fs-700); }
.work-item .work-kind { font-size: var(--fs-300); color: var(--fg-muted); }
.work-body dl { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0; }
.work-body dt { font-size: var(--fs-100); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); font-weight: 600; padding-top: .3em; }
.work-body dd { margin: 0; color: var(--fg-2); }
.work-body dd + dt, .work-body dd + dt + dd { margin-top: var(--s-2); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-300); font-weight: 600; }
.field label small { font-weight: 400; color: var(--fg-muted); margin-left: var(--s-1); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--white); color: var(--fg); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--fg); }
.field .hint { font-size: var(--fs-200); color: var(--fg-muted); }
.field .error { display: none; font-size: var(--fs-200); color: #B42318; font-weight: 500; }
.field.is-invalid .error { display: block; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #B42318; }
.choices { display: grid; gap: var(--s-2); }
.choice { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--white); cursor: pointer; font-size: var(--fs-300); }
.choice:has(input:checked) { border-color: var(--black); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.form-foot small { color: var(--fg-muted); }
.form-status { display: none; padding: var(--s-4) var(--s-5); border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--white); }
.form-status.is-error { display: block; border-color: #B42318; }
.form-status.is-ok { display: block; border-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band .shell { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band .actions { justify-content: flex-end; }
.cta-band .lede { margin-top: var(--s-4); }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #D9D9D6; padding-block: clamp(3rem, 5vw, 4.5rem) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s-6); }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { margin-top: var(--s-4); max-width: 34ch; font-size: var(--fs-300); color: #A1A1A8; }
.footer-col h4 { font: 600 var(--fs-100)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #A1A1A8; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { font-size: var(--fs-300); color: #D9D9D6; }
.footer-col a:hover { color: var(--orange); }
.footer-foot { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); font-size: var(--fs-200); color: #A1A1A8; }
.footer-foot a:hover { color: var(--white); }

/* ---------- motion ---------- */
.motion .rise { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.motion .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion .rise { opacity: 1; transform: none; transition: none; }
  .motion .hero-glow, .motion .hero-strip { animation: none; }
  .hero-media { transform: none !important; }
  .console-lines li, .bar i { transition: none; opacity: 1; transform: none; }
  .console.is-live .caret, .monitor.is-live .pulse polyline { animation: none; }
  .section-dark::before { display: none; }
  .btn, .text-link, .directory a, .directory .arrow, .menu-button span { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- workshop: the three stages, each with a live panel ---------- */
.stages { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.stage .service-index { color: var(--orange); }
.stage h3 { font-size: var(--fs-800); line-height: 1.05; }
.stage h3 small { display: block; margin-top: var(--s-2); font: 500 var(--fs-300)/1.4 var(--font-body); color: var(--fg-muted); letter-spacing: 0; }
.stage-copy > p { margin-top: var(--s-4); color: var(--fg-2); max-width: 46ch; }
.console { --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-m); background: #0E1012; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .6s var(--ease), border-color .6s var(--ease); }
.stage:hover .console { transform: translateY(-3px); border-color: rgba(255, 101, 0, .45); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2A2D31; }
.console-bar span:first-child { background: var(--orange); }
.console-bar em { margin-left: 8px; font: 500 var(--fs-200)/1 var(--mono); font-style: normal; color: var(--fg-muted); }
.console-bar i { margin-left: auto; font: 500 var(--fs-100)/1 var(--font-body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #5C5F64; }
.console-lines { list-style: none; padding: 14px 16px 16px; font: 400 .82rem/1.75 var(--mono); color: #C9CBCE; }
.console-lines li { opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * .5s); overflow-wrap: anywhere; }
.console-lines li b { font-weight: 600; color: var(--fg-muted); margin-right: .4em; }
.console-lines li.ok, .console-lines li.ok b { color: #7DE0A1; }
.console-lines li.warn, .console-lines li.warn b { color: #FFB06B; }
.console.is-live .console-lines li { opacity: 1; transform: none; }
.bar { display: inline-block; vertical-align: middle; width: clamp(80px, 24%, 160px); height: 6px; margin-left: .5em; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .5s + .2s); }
.console.is-live .bar i { transform: scaleX(1); }
.pill { display: inline-block; vertical-align: middle; margin-left: .5em; padding: 2px 8px; border-radius: 999px; font: 600 .68rem/1.4 var(--font-body); letter-spacing: .12em; background: #7DE0A1; color: var(--black); }
.caret { display: inline-block; vertical-align: -2px; width: 7px; height: 1em; margin-left: 4px; background: var(--orange); }
.console.is-live .caret { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.monitor .pulse { display: block; width: 100%; height: 72px; margin-top: 10px; }
.monitor .pulse polyline { stroke-dasharray: 55 100; stroke-dashoffset: 155; }
.monitor.is-live .pulse polyline { animation: pulse-run 3.2s linear infinite; }
@keyframes pulse-run { to { stroke-dashoffset: -55; } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .site-nav, .header-cta { display: none; }
  .menu-button { display: inline-flex; }
  /* anchored to the header: its backdrop-filter makes it the containing block, so fixed positioning would collapse */
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 39; display: none; flex-direction: column; padding: var(--s-4) var(--gutter) var(--s-6); background: var(--offwhite); overflow: auto; border-top: 1px solid var(--line); }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font: 600 var(--fs-600)/1.2 var(--font-display); letter-spacing: -.01em; }
  .mobile-menu a[aria-current="page"] { color: var(--orange-text); }
  .mobile-menu .btn { margin-top: var(--s-5); border-bottom: 0; font: 600 var(--fs-300)/1 var(--font-body); }
  body.menu-open { overflow: hidden; }
  .hero h1 { max-width: none; }
  .split, .split-even, .feature, .service, .stage, .work-item, .cta-band .shell { grid-template-columns: 1fr; }
  .console-lines { font-size: .76rem; }
  .split-sticky > :first-child { position: static; }
  .rows > li { grid-template-columns: 1fr; gap: var(--s-2); }
  .steps { grid-template-columns: 1fr 1fr; }
  .directory a, .directory .dir-static { grid-template-columns: 2rem minmax(0, 1fr) auto; grid-template-areas: "i t s" "i d d"; row-gap: var(--s-2); }
  .directory .dir-index { grid-area: i; align-self: start; padding-top: .35rem; }
  .directory h3, .directory h2 { grid-area: t; }
  .directory p { grid-area: d; }
  .directory .tag { grid-area: s; align-self: start; }
  .directory .arrow { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .section-head-row { grid-template-columns: 1fr; align-items: start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .work-body dl { grid-template-columns: 1fr; }
  .work-body dd + dt { margin-top: var(--s-3); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- quote ---------- */
.founder-quote { margin: 0; padding-left: var(--s-5); border-left: 2px solid var(--orange); max-width: 68ch; }
.founder-quote p { font-size: var(--fs-500); line-height: 1.7; color: var(--fg-2); }
.founder-quote footer { margin-top: var(--s-4); font: 600 var(--fs-100)/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.split .founder-quote { margin-top: var(--s-5); }
.split > .founder-quote { margin-top: 0; }

/* heading tags follow document outline; these classes keep the visual size */
.footer-title { font: 600 var(--fs-100)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #A1A1A8; margin: 0 0 var(--s-4); }
.h4, .rows .h4 { font-size: var(--fs-600); line-height: var(--lh-snug); font-weight: 600; }
.directory h2 { font-size: var(--fs-600); line-height: var(--lh-snug); }
.directory h2 small { display: block; font: 500 var(--fs-200)/1.4 var(--font-body); color: var(--fg-muted); margin-top: 2px; }
.work-item h2 { font-size: var(--fs-700); line-height: var(--lh-snug); }
.service h2 { font-size: var(--fs-800); line-height: 1.05; }
.service h2 small { display: block; margin-top: var(--s-2); font: 500 var(--fs-300)/1.4 var(--font-body); color: var(--fg-muted); letter-spacing: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
