/* INFLUXA — marketing site. Static, no framework. */

:root {
  --cream: #F4EFE6;
  --paper: #FAF7F1;
  --forest: #1F3A2E;
  --forest-2: #2B4C3D;
  --forest-ink: #13261D;
  --ink: #17140F;
  --ink-2: #3B362E;
  --muted: #6E675C;
  --line: rgba(23, 20, 15, 0.12);
  --accent: #C2703D;
  --accent-soft: #D9925F;
  --ready: #4E8A63;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(23, 20, 15, 0.04), 0 12px 32px -12px rgba(23, 20, 15, 0.18);
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--forest); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 160px); }

/* ---------- Type ---------- */
.eyebrow { font: 500 12px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow-light { color: var(--accent-soft); }
.display {
  font: 400 clamp(42px, 6.6vw, 92px)/0.98 var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
}
.display em, .h2 em { font-style: italic; color: inherit; opacity: 0.86; }
.h2 { font: 400 clamp(32px, 4.6vw, 64px)/1.04 var(--serif); letter-spacing: -0.02em; }
.h2-light { color: var(--cream); }
.h3 { font: 500 clamp(21px, 2vw, 26px)/1.2 var(--serif); letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; margin-top: 22px; }
.lead-light { color: rgba(244, 239, 230, 0.86); }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--forest); color: var(--cream);
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(19, 38, 29, 0.6); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: var(--cream); color: var(--forest-ink); }
.btn-accent { background: var(--accent); color: #fff; width: 100%; }
.btn-accent:hover { background: #b0632f; }
.link-light { color: var(--cream); text-decoration: none; font-weight: 500; opacity: 0.88; padding: 12px 4px; }
.link-light:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.is-solid {
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 30px; height: 30px; }
.brand-dot { fill: var(--accent); }
.brand-word { font: 600 15px/1 var(--sans); letter-spacing: 0.26em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; opacity: 0.82; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.site-header .btn-small { background: var(--cream); color: var(--forest-ink); }
.site-header.is-solid .btn-small { background: var(--forest); color: var(--cream); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: heroIn 1.8s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.1); filter: brightness(0.6); } to { transform: scale(1.04); filter: none; } }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 22, 17, 0.55) 0%, rgba(14, 22, 17, 0.05) 30%, rgba(14, 22, 17, 0.25) 55%, rgba(12, 18, 14, 0.9) 100%),
    linear-gradient(90deg, rgba(12, 18, 14, 0.7) 0%, rgba(12, 18, 14, 0) 60%);
}
.hero-copy { position: relative; z-index: 3; padding-bottom: clamp(48px, 9vh, 112px); padding-top: 120px; }
.hero-copy .lead { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }

/* The flow lives in the upper-right, above the headline block. */
.hero-flow { position: absolute; z-index: 2; right: max(calc(var(--gutter) + 10px), calc((100vw - 1240px) / 2 + var(--gutter))); top: 12%; width: min(30%, 420px); height: 34%; overflow: visible; }
.flow-path { fill: none; stroke: rgba(244, 239, 230, 0.32); stroke-width: 1.2; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.hero-pulse {
  position: absolute; z-index: 3; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(217, 146, 95, 0.22), 0 0 18px 4px rgba(217, 146, 95, 0.55);
  left: 0; top: 0; opacity: 0; pointer-events: none;
}
.hero-signals { position: absolute; z-index: 3; right: max(calc(var(--gutter) + 10px), calc((100vw - 1240px) / 2 + var(--gutter))); top: 12%; width: min(30%, 420px); height: 34%; }
@media (max-height: 820px) and (min-width: 641px) {
  .hero-flow, .hero-signals, .hero-pulse { display: none; }
  .hero-ticker { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 14px; border-radius: 999px; background: rgba(20, 28, 23, 0.55); border: 1px solid rgba(244, 239, 230, 0.16); font-size: 14px; }
  .ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
}
.signal {
  position: absolute; left: var(--x); top: var(--y);
  display: grid; gap: 2px; padding: 10px 14px 11px; border-radius: 14px;
  background: rgba(20, 28, 23, 0.46); border: 1px solid rgba(244, 239, 230, 0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; line-height: 1.25; white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.6s var(--ease), border-color 0.6s var(--ease), background-color 0.6s var(--ease);
}
.signal::before { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: rgba(244, 239, 230, 0.5); }
.signal[style*="translate(18px"]::before { left: -22px; }
.signal[style*="calc(-100%"]::before { right: -22px; }
.signal.is-active::before { background: var(--accent-soft); box-shadow: 0 0 10px 2px rgba(217, 146, 95, 0.7); }
.signal-role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); }
.signal.is-active { opacity: 1; border-color: rgba(217, 146, 95, 0.6); background: rgba(20, 28, 23, 0.66); }
.hero-ticker { display: none; }

/* ---------- Busy ---------- */
.busy { position: relative; height: 320vh; background: var(--forest-ink); color: var(--cream); }
.busy-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.busy-media, .busy-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.busy-media img { object-fit: cover; filter: blur(calc(var(--blur, 6) * 1px)) saturate(calc(0.6 + var(--k, 0) * 0.5)); transform: scale(1.08); }
.busy-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 17, 13, 0.92) 0%, rgba(10, 17, 13, 0.7) 45%, rgba(10, 17, 13, 0.55) 100%); }
.busy-grid { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.busy-copy .h2 { display: grid; }
.busy-line { grid-area: 1 / 1; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.busy-line-a { font-size: clamp(28px, 3.4vw, 48px); }
.busy-line-b { opacity: 0; transform: translateY(14px); font-style: italic; }
.busy.is-resolved .busy-line-a { opacity: 0; transform: translateY(-14px); }
.busy.is-resolved .busy-line-b { opacity: 1; transform: none; }
.busy-brand { margin-top: 28px; font: 600 15px/1 var(--sans); letter-spacing: 0.26em; color: var(--accent-soft); opacity: 0; transition: opacity 0.6s var(--ease) 0.2s; }
.busy.is-resolved .busy-brand { opacity: 1; }

.bubbles { position: relative; height: min(70vh, 520px); }
.bubble {
  /* --k: 0 scattered question → 1 routed answer in an ordered list */
  --ty: calc(var(--i) * 16.4%);
  position: absolute;
  left: calc(var(--sx) * var(--spread, 1) * (1 - var(--k, 0)));
  top: calc(var(--sy) * (1 - var(--k, 0)) + var(--ty) * var(--k, 0));
  width: max-content; max-width: 100%;
  min-width: calc(var(--k, 0) * 100%);
  padding: 13px 18px; border-radius: 16px;
  background: rgba(244, 239, 230, calc(0.1 + var(--k, 0) * 0.86));
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: rotate(calc(var(--r) * (1 - var(--k, 0)))) translateX(calc(var(--jx, 0) * 1px));
  opacity: var(--o, 1);
  display: grid; font-size: 17px; line-height: 1.25;
  will-change: transform, top, left;
}
.bubble .q, .bubble .a { grid-area: 1 / 1; transition: opacity 0.35s var(--ease); }
.bubble .q { font: italic 400 clamp(19px, 1.8vw, 24px)/1.2 var(--serif); opacity: calc(1 - var(--k, 0) * 2); }
.bubble .a { color: var(--forest-ink); opacity: calc(var(--k, 0) * 2 - 1); font-size: 15px; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.bubble .a b { font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); min-width: 78px; }
.bubble .a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ready); flex: none; align-self: center; }

/* ---------- Connect ---------- */
.connect { background: var(--paper); }
.connect-track { position: relative; }
.connect-line { position: absolute; left: var(--gutter); right: var(--gutter); top: 34%; width: calc(100% - 2 * var(--gutter)); height: 90px; z-index: 2; pointer-events: none; overflow: visible; }
.connect-path { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.35; }
.connect-glow {
  fill: none; stroke: var(--accent-soft); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 60 940; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 6px rgba(217, 146, 95, 0.9));
  animation: travel 5.5s linear infinite;
}
@keyframes travel { to { stroke-dashoffset: 0; } }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.person figure { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: #ddd; box-shadow: var(--shadow); }
.person img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover img { transform: scale(1.04); }
.person:nth-child(2) img { object-position: 70% 50%; }
.person:nth-child(4) img { object-position: 40% 50%; }
.person-num { margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.person-line { margin-top: 6px; font: 400 clamp(21px, 1.9vw, 27px)/1.2 var(--serif); letter-spacing: -0.01em; }
.person-line span { color: var(--accent); }

/* ---------- Product flow ---------- */
.product { background: var(--cream); overflow: hidden; }
.flow-stage { display: grid; grid-template-columns: 1fr auto 1fr auto 1.35fr auto 1.15fr; align-items: end; gap: 10px; }
.device { display: grid; gap: 16px; justify-items: center; }
.device figcaption { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; text-align: center; transition: color 0.4s; }
.device figcaption span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(23, 20, 15, 0.08); font-size: 12px; font-weight: 600; transition: background-color 0.4s, color 0.4s; }
.device.is-live figcaption { color: var(--ink); }
.device.is-live figcaption span { background: var(--forest); color: var(--cream); }
.screen {
  width: 100%; background: #fff; border-radius: 26px; padding: 16px 14px;
  border: 1px solid rgba(23, 20, 15, 0.1);
  box-shadow: 0 30px 60px -30px rgba(23, 20, 15, 0.35), 0 2px 6px rgba(23, 20, 15, 0.05);
  font-size: 12.5px; line-height: 1.3; text-align: left; position: relative;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.device.is-live .screen { box-shadow: 0 34px 70px -30px rgba(31, 58, 46, 0.55), 0 0 0 2px rgba(194, 112, 61, 0.35); transform: translateY(-4px); }
.phone .screen { max-width: 210px; min-height: 360px; border-radius: 30px; padding-top: 22px; }
.phone .screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 52px; height: 5px; border-radius: 4px; background: rgba(23, 20, 15, 0.12); transform: translateX(-50%); }
.kds .screen { max-width: 320px; min-height: 250px; border-radius: 16px; background: #FCFBF8; }
.tablet .screen { max-width: 260px; min-height: 250px; border-radius: 20px; }
.ui-top { color: var(--muted); font-size: 11.5px; margin-bottom: 12px; }
.ui-top b { color: var(--ink); font: 500 14px/1 var(--serif); }
.ui-h { font: 500 17px/1.15 var(--serif); margin-bottom: 10px; }
.ui-menu { display: grid; gap: 7px; }
.ui-menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--paper); }
.ui-menu li span:last-child { font-weight: 600; white-space: nowrap; }
.ui-cart { position: absolute; left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; }
.ui-cart-count { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 12px; }
.ui-cart-label { grid-area: 1 / 2; white-space: nowrap; }
.ui-alert { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 11px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.ui-alert b { font: 500 15px/1 var(--serif); }
.ui-alert span { color: var(--muted); }
.ui-alert em { font-style: normal; font-weight: 600; font-size: 11px; background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 999px; }
.ui-alert-new { border-color: rgba(194, 112, 61, 0.45); background: #FBF2EA; }
.ui-alert-ready { border-color: rgba(78, 138, 99, 0.5); background: #EEF5F0; }
.ui-alert-ready span { color: var(--ready); font-weight: 600; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; display: grid; gap: 3px; }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ticket-head b { font: 500 15px/1 var(--serif); }
.status { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #FBF2EA; color: var(--accent); }
.status-prep { background: #F4EFE6; color: var(--ink-2); }
.status-ready { background: #E4F0E8; color: var(--ready); }
.ticket-quiet { opacity: 0.6; }
.ui-stations { display: grid; gap: 7px; }
.ui-stations li { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 12px; background: var(--paper); }
.ui-stations .calm { color: var(--ready); font-weight: 600; }
.ui-note { margin-top: 12px; padding: 10px 11px; border-radius: 12px; background: #EEF5F0; color: var(--forest); font-weight: 500; }
.ui-mini { margin-top: 12px; font-size: 10.5px; color: var(--muted); }

/* step-driven states: JS toggles .is-off on [data-when] */
[data-when] { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), max-height 0.45s var(--ease); }
.js [data-when].is-off { opacity: 0; transform: translateY(6px); pointer-events: none; }
.js .ui-alert[data-when].is-off, .js .ticket[data-when].is-off, .js .ui-note[data-when].is-off { max-height: 0; padding-block: 0; margin: 0; border-width: 0; overflow: hidden; }
.js .ui-alert[data-when], .js .ticket[data-when], .js .ui-note[data-when] { max-height: 140px; overflow: hidden; }
.status[data-when] { grid-area: auto; }
.ticket-head .status[data-when].is-off { display: none; }
html:not(.js) [data-when="0"], html:not(.js) [data-when="2"], html:not(.js) [data-when="3"] { display: none; }

.flow-link { position: relative; width: clamp(16px, 2.4vw, 40px); height: 2px; background: rgba(23, 20, 15, 0.14); border-radius: 2px; align-self: end; margin-bottom: 180px; overflow: hidden; }
.flow-link i { position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); transition: transform 0.6s var(--ease); }
.flow-link.is-lit i { transform: none; }

/* ---------- Digital / Human ---------- */
.dh { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.dh-half { position: relative; display: flex; align-items: flex-end; padding: clamp(40px, 6vw, 88px) var(--gutter); overflow: hidden; color: var(--cream); }
.dh-digital { background: var(--forest); }
.dh-digital::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(rgba(244, 239, 230, 0.6) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.dh-human img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dh-human::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 11, 0) 20%, rgba(10, 14, 11, 0.62) 50%, rgba(10, 14, 11, 0.92) 100%); }
.dh-inner { position: relative; z-index: 2; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips li {
  padding: 9px 14px; border-radius: 10px; font-size: 14px; letter-spacing: 0.02em;
  border: 1px solid rgba(244, 239, 230, 0.2); background: rgba(244, 239, 230, 0.06);
  transition: background-color 0.3s, border-color 0.3s;
}
.chips li.is-lit { background: rgba(217, 146, 95, 0.18); border-color: rgba(217, 146, 95, 0.6); }
.human-list { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 18px; font: italic 400 clamp(18px, 1.6vw, 22px)/1.4 var(--serif); color: rgba(244, 239, 230, 0.92); }
.human-list li:not(:last-child)::after { content: " ·"; color: var(--accent-soft); }

/* ---------- Before / After ---------- */
.ba { background: var(--paper); }
.ba-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(23, 20, 15, 0.06); }
.ba-switch button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; color: var(--muted); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.ba-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 20, 15, 0.12); }
.ba-rows { border-top: 1px solid var(--line); }
.ba-rows li { display: grid; grid-template-columns: minmax(150px, 0.8fr) 2fr; align-items: baseline; gap: 16px; padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); }
.ba-who { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ba-before, .ba-after { grid-column: 2; grid-row: 1; font: 400 clamp(28px, 4vw, 54px)/1.05 var(--serif); letter-spacing: -0.02em; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.ba-before { color: var(--muted); }
.ba-after { color: var(--forest); font-style: italic; opacity: 0; transform: translateY(12px); filter: blur(4px); }
.ba-rows[data-state="after"] .ba-before { opacity: 0; transform: translateY(-12px); filter: blur(4px); }
.ba-rows[data-state="after"] .ba-after { opacity: 1; transform: none; filter: none; }
.ba-rows li:nth-child(2) span { transition-delay: 0.08s; }
.ba-rows li:nth-child(3) span { transition-delay: 0.16s; }
.ba-rows li:nth-child(4) span { transition-delay: 0.24s; }
.ba-rows li:nth-child(5) span { transition-delay: 0.32s; }

/* ---------- Time ---------- */
.time { background: var(--cream); }
.time-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visits { display: grid; gap: 22px; }
.visits li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.visit-name { font: 400 clamp(19px, 1.8vw, 24px)/1.2 var(--serif); }
.visit-time { grid-row: 1; grid-column: 2; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.visits .bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(23, 20, 15, 0.07); overflow: hidden; }
.visits .bar i { display: block; height: 100%; width: calc(var(--len) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--forest-2), var(--forest)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.visits li:nth-child(4) .bar i { background: linear-gradient(90deg, var(--forest), var(--accent)); }
.time.is-in .visits .bar i { transform: scaleX(1); }
.visits li:nth-child(2) .bar i { transition-delay: 0.12s; }
.visits li:nth-child(3) .bar i { transition-delay: 0.24s; }
.visits li:nth-child(4) .bar i { transition-delay: 0.36s; }

/* ---------- Team ---------- */
.team { background: var(--paper); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.role { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; align-content: start; gap: 16px; }
.role-who { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.role ul { display: grid; gap: 10px; margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.role li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.role li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest); margin-top: 0.62em; }

/* ---------- Owner ---------- */
.owner { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--cream); }
.owner-media { position: relative; min-height: 560px; }
.owner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.owner-copy { padding: clamp(56px, 8vw, 120px) var(--gutter); align-self: center; max-width: 660px; }
.owner-copy .h2 { font-size: clamp(30px, 3.6vw, 52px); }
.owner-points { margin-top: 40px; display: grid; gap: 22px; }
.owner-points li { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid rgba(31, 58, 46, 0.18); transition: border-color 0.4s; }
.owner-points li:hover { border-color: var(--accent); }
.owner-points b { font: 500 20px/1.2 var(--serif); }
.owner-points span { color: var(--muted); font-size: 16px; }

/* ---------- Pilot ---------- */
.pilot { position: relative; color: var(--cream); padding-block: clamp(96px, 13vw, 180px); overflow: hidden; isolation: isolate; }
.pilot-media, .pilot-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.pilot-media img { object-fit: cover; }
.pilot-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 30, 22, 0.94) 0%, rgba(14, 30, 22, 0.82) 50%, rgba(14, 30, 22, 0.6) 100%); }
.pilot-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.display-pilot { font-size: clamp(40px, 5.4vw, 76px); }
.pilot-copy .lead { margin-top: 26px; }
.pilot-30 { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 clamp(22px, 2.4vw, 32px)/1.2 var(--serif); }
.pilot-30 span:first-child { color: var(--accent-soft); }
.pilot-honest { margin-top: 26px; max-width: 44ch; color: rgba(244, 239, 230, 0.78); font-size: 17px; }
.pilot-card { background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.pilot-steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 18px 0 26px; font-size: 15px; color: var(--ink-2); }
.pilot-steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
.pilot-steps li::before { content: counter(s, decimal-leading-zero); font-size: 11px; font-weight: 600; color: var(--accent); }
.pilot-form { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.pilot-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pilot-form input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(23, 20, 15, 0.16); background: #fff; color: var(--ink); font-size: 16px; }
.pilot-form input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.14); }
.pilot-form input[aria-invalid="true"] { border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-ink); color: rgba(244, 239, 230, 0.8); padding-block: 40px 28px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand-footer { color: var(--cream); }
.footer-motto { font: italic 400 17px/1.3 var(--serif); }
.footer-meta { margin-left: auto; font-size: 14px; opacity: 0.7; }
.credits { margin-top: 22px; font-size: 13px; opacity: 0.6; }
.credits summary { cursor: pointer; width: max-content; }
.credits p { margin-top: 8px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .people .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .people .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .people .reveal:nth-child(4) { transition-delay: 0.3s; }
.js .roles .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .roles .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .flow-stage { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .flow-link { display: none; }
  .phone .screen, .kds .screen, .tablet .screen { max-width: 300px; }
  .hero-flow, .hero-signals { width: 64%; }
}

@media (max-width: 960px) {
  .nav, .header-row > .btn-small { display: none; }
  .menu-toggle {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: rgba(244, 239, 230, 0.14); cursor: pointer; color: inherit;
  }
  .site-header.is-solid .menu-toggle { background: rgba(23, 20, 15, 0.06); }
  .menu-toggle span[aria-hidden] { width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; transition: transform 0.3s, box-shadow 0.3s; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden] { transform: rotate(45deg); box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]::after { content: ""; position: absolute; }
  .mobile-nav:not([hidden]) {
    display: grid; gap: 4px; padding: 8px var(--gutter) 20px;
    background: rgba(250, 247, 241, 0.98); color: var(--ink);
    box-shadow: 0 20px 30px -20px rgba(23, 20, 15, 0.3);
  }
  .mobile-nav a { padding: 14px 0; font: 400 24px/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--accent); }
  .site-header.menu-open { background: rgba(250, 247, 241, 0.98); color: var(--ink); }

  .busy-grid { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .bubbles { height: 46vh; }
  .people { grid-template-columns: 1fr 1fr; }
  .connect-line { display: none; }
  .dh { grid-template-columns: 1fr; min-height: 0; }
  .dh-half { min-height: 70vh; }
  .time-grid, .owner, .pilot-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .owner-media { min-height: 52vh; }
}

/* ---------- Phone: designed, not just stacked ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { height: 60px; }
  .hero { min-height: 100svh; }
  .hero-media img { object-position: 30% 50%; }
  .hero-flow, .hero-signals, .hero-pulse { display: none; }
  .hero-copy { padding-bottom: 36px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-ticker {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 14px; border-radius: 999px;
    background: rgba(20, 28, 23, 0.55); border: 1px solid rgba(244, 239, 230, 0.16); font-size: 14px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 0 rgba(217, 146, 95, 0.7); animation: ping 2.2s infinite; }
  [data-ticker-text] { transition: opacity 0.35s; }
  @keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(217, 146, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 146, 95, 0); } }

  .busy { height: 300vh; }
  .busy-grid { align-content: start; padding-top: 88px; }
  .busy-line-a { font-size: 26px; }
  .bubbles { height: 50vh; --spread: 0.42; }
  .bubble { font-size: 15px; padding: 11px 14px; }
  .bubble .q { font-size: 18px; }
  .bubble .a { font-size: 14px; gap: 8px; }
  .bubble .a b { min-width: 0; }

  /* Connect: a vertical path through the four people */
  .people { grid-template-columns: 1fr; gap: 36px; position: relative; padding-left: 26px; }
  .people::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), rgba(194, 112, 61, 0.15)); border-radius: 2px; }
  .person { position: relative; }
  .person::before { content: ""; position: absolute; left: -26px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
  .person figure { aspect-ratio: 4 / 3; }

  .flow-stage { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .device { width: 100%; }
  .phone .screen { max-width: 260px; min-height: 330px; }
  .kds .screen, .tablet .screen { max-width: 320px; }

  .dh-half { min-height: 0; padding-block: 64px; }
  .dh-human { min-height: 78vh; }
  .ba-rows li { grid-template-columns: 1fr; gap: 6px; }
  .ba-before, .ba-after { grid-column: 1; grid-row: 2; }
  .section-head-row { align-items: flex-start; }
  .ba-switch { width: 100%; }
  .ba-switch button { flex: 1; }
  .pilot-steps { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .busy { height: auto; }
  .busy-stage { position: relative; height: auto; min-height: 100svh; padding-block: 96px; }
  .busy-grid { height: auto; }
  .bubble { --k: 1 !important; }
  .busy .busy-line-a { display: none; }
  .busy .busy-line-b, .busy .busy-brand { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .visits .bar i { transform: scaleX(1); }
  .connect-glow { display: none; }
}
