/* OneBonsai Gulf Medical — "Look closer."
   Brand tokens from obgulf.com (paper, ink, lime, Hanken Grotesk, IBM Plex Mono),
   pushed toward a lighter, more clinical register: thin display type, porcelain, glass. */

@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --light: #eef0ea;
  --paper: #f6f7f2;
  --paper-2: #e3e7df;
  --ink: #0a0b0a;
  --mute: #6a706a;
  --line: rgba(10, 11, 10, 0.14);
  --dark: #07090a;
  --dark-2: #0e1312;
  --line-d: rgba(246, 247, 242, 0.14);
  --lime: #dcff22;
  --olive: #6f8500;
  --bg: #eef0ea;
  --g: clamp(20px, 5vw, 84px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; transition: color 400ms ease;
}
body.is-loading { overflow: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--lime); color: var(--ink); }
:where(a, button):focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; line-height: 1.35; }
.ar { font-family: var(--ar); text-transform: none; letter-spacing: 0; font-size: 1.25em; font-weight: 300; }
.wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--g); }
.kick { color: var(--mute); display: flex; align-items: center; gap: 10px; }
.kick::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.muted { color: var(--mute); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* split text */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.si, .sc { display: inline-block; will-change: transform; }

/* ---------------------------------------------------------------- */
/* Ambient layers                                                     */
/* ---------------------------------------------------------------- */
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; transition: opacity 120ms linear; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 900ms ease;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
body.deep .vignette { opacity: 1; }
.grain { position: fixed; inset: -100px; z-index: 180; pointer-events: none; opacity: 0.55; mix-blend-mode: multiply; animation: grain 0.9s steps(5) infinite; }
body.deep .grain, body[data-tone="dark"] .grain { mix-blend-mode: screen; opacity: 0.35; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-40px, 20px); } 40% { transform: translate(30px, -50px); } 60% { transform: translate(-20px, 40px); } 80% { transform: translate(50px, 10px); } 100% { transform: translate(0, 0); } }

/* Cursor — a lens */
.cursor { position: fixed; inset: 0; z-index: 260; pointer-events: none; mix-blend-mode: difference; }
.c-dot, .c-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.c-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(255, 255, 255, 0.85); transition: width 420ms var(--ease), height 420ms var(--ease), margin 420ms var(--ease), background-color 300ms ease; display: grid; place-items: center; }
.c-ring em { font: 400 9px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; color: #000; opacity: 0; transition: opacity 200ms ease; }
.cursor.is-hover .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.has-label .c-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.has-label .c-ring em { opacity: 1; }
.cursor.has-label .c-dot { opacity: 0; }
.cursor.is-down .c-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ---------------------------------------------------------------- */
/* Loader — an aperture                                               */
/* ---------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 240; background: var(--light); display: grid; place-items: center; align-content: center; gap: 26px;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.loader-lens { width: 168px; height: 168px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; position: relative; font: 200 54px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.loader-lens::before, .loader-lens::after { content: ""; position: absolute; background: var(--ink); }
.loader-lens::before { width: 1px; height: 18px; top: -24px; left: 50%; box-shadow: 0 210px 0 var(--ink); }
.loader-lens::after { height: 1px; width: 18px; left: -24px; top: 50%; box-shadow: 210px 0 0 var(--ink); }
.loader-line { display: flex; gap: 18px; font: 400 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.loader-line b { font-weight: 400; color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Header                                                             */
/* ---------------------------------------------------------------- */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 120; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--g); color: var(--ink); transition: color 400ms ease; pointer-events: none; }
.hd > * { pointer-events: auto; }
.hd::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask: linear-gradient(#000 45%, transparent); mask: linear-gradient(#000 45%, transparent); }
body[data-tone="dark"] .hd { color: var(--paper); }
.hd-brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; position: relative; }
.hd-brand img { width: clamp(155px, 13vw, 205px); height: auto; transition: opacity 400ms ease; }
.hd-brand .logo-paper { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
body[data-tone="dark"] .hd-brand .logo-ink { opacity: 0; }
body[data-tone="dark"] .hd-brand .logo-paper { opacity: 1; }
.hd-brand span { font: 400 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; opacity: 0.7; }

@keyframes blink { 50% { opacity: 0.25; } }
.hd-r { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hd-cta { background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(8px); padding: 12px 16px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 500; transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease; }
.hd-cta:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hd-menu { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 400 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; transition: background-color 240ms ease, color 240ms ease; }
body[data-tone="dark"] .hd-menu { background: var(--paper); color: var(--ink); }
.hd-menu i { width: 14px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform 400ms var(--ease); }
.menu-open .hd-menu i { transform: rotate(90deg); }
.menu-open .hd { color: var(--paper); }
.menu-open .hd .logo-ink { opacity: 0; } .menu-open .hd .logo-paper { opacity: 1; }
.menu-open .hd-menu { background: var(--lime); color: var(--ink); }

.menu { position: fixed; inset: 0; z-index: 110; background: var(--dark); color: var(--paper); display: grid; align-items: safe center; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } /* scrolls on its own when taller than the screen */
.menu-in { width: min(1320px, 100%); margin: 0 auto; padding: 120px var(--g) 40px; }

.menu-foot { margin-top: 40px; color: rgba(246, 247, 242, 0.5); }

/* ---------------------------------------------------------------- */
/* Scale gauge                                                        */
/* ---------------------------------------------------------------- */

body[data-tone="dark"] .gauge { color: var(--paper); }

main { position: relative; z-index: 2; overflow-x: clip; } /* scaled cue lines must never widen the page on phones */

/* ---------------------------------------------------------------- */
/* Buttons                                                            */
/* ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease; white-space: nowrap; }
.btn i { font-style: normal; display: inline-block; transition: transform 600ms var(--ease); }
.btn:hover i { transform: translateY(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--lime); color: var(--ink); }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #ecff70; }

/* ---------------------------------------------------------------- */
/* HERO                                                               */
/* ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px var(--g) 34px; display: grid; grid-template-rows: auto 1fr auto auto; }
.hero-meta { display: flex; justify-content: space-between; color: var(--mute); }
.hero-meta .r { text-align: right; }
.hero-meta b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-h { align-self: end; font-weight: 250; font-size: clamp(60px, 10.4vw, 200px); line-height: 0.86; white-space: nowrap; letter-spacing: -0.07em; margin-left: -0.05em; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-line .sw { overflow: visible; }
.hero-line:last-child { padding-left: 1.1em; }
.hero-h em { font-style: italic; font-weight: 200; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(24px, 4vh, 48px); padding-top: 22px; border-top: 1px solid var(--line); }
.hero-lead { max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); color: #2d312d; }
.hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--mute); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Depth photos (2.5D parallax) */
.depth { position: relative; overflow: hidden; background: #0b0e0d; }
.depth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 600ms ease; }
.depth-cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.depth.is-gl .depth-cv { opacity: 1; }
.depth.is-gl img { opacity: 1; } /* the photo stays underneath, so the effect fades in over it, never over black */

/* ---------------------------------------------------------------- */
/* HOW THE AI WORKS — a stack that comes apart                       */
/* ---------------------------------------------------------------- */
.ov { position: relative; height: 460vh; background: var(--light); }
.ov-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 4vw; align-items: center; padding: 100px var(--g) 64px; }
.ov-h { font-size: clamp(40px, 4.6vw, 80px); }
.ov-lead { margin-top: 18px; color: var(--mute); max-width: 40ch; font-size: 17px; }
.stk-index { margin-top: 30px; display: flex; gap: 6px; flex-wrap: wrap; }
.stk-index li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; color: var(--mute); transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease; }
.stk-index li span { margin-right: 8px; opacity: 0.6; }
.stk-index li.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stk-caps { position: relative; margin-top: 28px; min-height: 230px; }
.stk-cap { position: absolute; left: 0; top: 0; max-width: 46ch; opacity: 0; transform: translateY(-14px); transition: opacity 220ms ease, transform 400ms ease; pointer-events: none; }
.stk-cap.is-on { opacity: 1; transform: none; transition: opacity 600ms ease 200ms, transform 900ms var(--ease) 200ms; }.stk-who { color: var(--olive); }
.stk-cap h3 { margin-top: 10px; font-size: clamp(26px, 2.4vw, 40px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; }
.stk-cap p:last-child { margin-top: 12px; color: #3c413c; font-size: 16.5px; line-height: 1.55; }
.stk-scene { position: relative; height: min(80vh, 720px); perspective: 2400px; perspective-origin: 50% 0%; }
.stk { --w: min(400px, 30vw); position: absolute; left: 50%; top: 62%; width: var(--w); height: var(--w); margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); will-change: transform; }
.stk-plate {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; transform: translateZ(var(--z, 0px));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 237, 228, 0.9)); border: 1px solid rgba(10, 11, 10, 0.18);
  box-shadow: 0 50px 60px -40px rgba(10, 20, 15, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 600ms var(--ease), border-color 500ms ease, box-shadow 500ms ease, opacity 500ms ease;
}
.stk-plate.is-dim { opacity: 0.5; }
.stk-plate.is-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--lime), 0 70px 80px -40px rgba(10, 20, 15, 0.5); }
.stk-lbl { position: absolute; left: 7%; top: 7%; font-size: 11px; }
.pat-grid { position: absolute; inset: 20% 7% 24%; background-image: radial-gradient(circle, rgba(10, 11, 10, 0.38) 1.4px, transparent 1.7px); background-size: 18px 18px; }
.pat-grid::before, .pat-grid::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.4); }
.pat-grid::before { left: 36%; top: 18%; } .pat-grid::after { left: 72%; top: 62%; box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.4), -90px -18px 0 0 var(--lime); }
.stk-tags { position: absolute; left: 7%; right: 7%; bottom: 7%; display: flex; gap: 5px; flex-wrap: wrap; }
.stk-tags i { font-style: normal; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 9px; background: #fff; }
.pat-rings { position: absolute; inset: 22% 7% 10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; align-items: center; }
.pat-rings i { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(10, 11, 10, 0.35); display: grid; place-content: center; text-align: center; font: 400 9px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-style: normal; color: var(--mute); transition: box-shadow 600ms ease; }
.pat-rings b { display: block; font: 400 15px/1.1 var(--sans); color: var(--ink); text-transform: none; letter-spacing: -0.02em; }
.p1.is-on .pat-rings i { box-shadow: inset 0 0 0 6px rgba(220, 255, 34, 0.7); }
.pat-lines { position: absolute; inset: 24% 7% 12%; display: grid; gap: 11px; align-content: start; }
.pat-lines i { height: 9px; border-radius: 5px; background: rgba(10, 11, 10, 0.14); }
.pat-lines i:nth-child(1) { width: 92%; } .pat-lines i:nth-child(2) { width: 78%; } .pat-lines i:nth-child(3) { width: 86%; background: linear-gradient(90deg, var(--lime) 40%, rgba(10, 11, 10, 0.14) 40%); } .pat-lines i:nth-child(4) { width: 64%; } .pat-lines i:nth-child(5) { width: 40%; height: 6px; background: rgba(111, 133, 0, 0.5); }
.stk-plate.pdark { background: linear-gradient(135deg, #171c1a, #070909); color: var(--paper); border-color: rgba(255, 255, 255, 0.16); }
.pat-act { position: absolute; left: 7%; right: 7%; bottom: 9%; display: flex; gap: 6px; }
.pat-act i { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); font: 400 10px/1 var(--mono); letter-spacing: 0.08em; font-style: normal; text-transform: uppercase; }
.pat-act i:first-child { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.stk-pulse { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 24px 8px rgba(220, 255, 34, 0.55); transform: translateZ(var(--pz, 0px)); opacity: var(--po, 0); }
.stk-foot { position: absolute; left: var(--g); bottom: 26px; color: var(--mute); font-size: 10px; }

/* ---------------------------------------------------------------- */
/* JOURNEY — beats over the canvas                                   */
/* ---------------------------------------------------------------- */
.journey { position: relative; }
.beat { position: relative; height: 230vh; }
.beat-cue { height: 190vh; }
.beat-in { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--g) 80px; color: var(--ink); transition: color 400ms ease; }
body[data-tone="dark"] .beat-in { color: var(--paper); }
.beat-in.left { align-items: flex-start; padding-left: calc(var(--g) + 70px); }
.beat-in::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 600ms ease; }
.beat-in.left::after { background: linear-gradient(90deg, rgba(7, 9, 10, 0.62), rgba(7, 9, 10, 0.22) 40%, transparent 58%); }
.beat-in.right::after { background: linear-gradient(270deg, rgba(7, 9, 10, 0.62), rgba(7, 9, 10, 0.22) 40%, transparent 58%); }
body.deep .beat-in::after { opacity: 1; }
.beat-in { isolation: isolate; }
.beat-in.right { align-items: flex-end; text-align: left; }
.beat-in.right > * { width: min(470px, 40vw); }
.beat-in.center { align-items: center; text-align: center; }
.beat-in.left > :not(.note):not(.ecg) { max-width: min(470px, 40vw); }
.fig { display: flex; align-items: center; gap: 12px; opacity: 0.6; }
.fig::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; }
.beat .kick { margin-top: 30px; color: inherit; opacity: 0.75; }
.beat-h { margin-top: 16px; font-size: clamp(32px, 3.3vw, 54px); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.beat-h.big { font-size: clamp(48px, 6vw, 104px); font-weight: 250; }
.beat-p { margin-top: 18px; font-size: 16.5px; line-height: 1.55; opacity: 0.78; max-width: 46ch; }
.ai-dl { margin-top: 20px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); max-width: 470px; }
.ai-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); align-items: baseline; }
.ai-dl dt { font-size: 10px; opacity: 0.55; display: flex; align-items: center; gap: 7px; }
.ai-dl div:nth-child(2) dt { opacity: 1; }
.ai-dl div:nth-child(2) dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.5); }
.ai-dl dd { margin: 0; font: 400 14px/1.45 var(--sans); text-transform: none; letter-spacing: 0; }
.beat-name { margin-top: 16px; font-size: 10px; opacity: 0.55; text-transform: none; letter-spacing: 0.02em; max-width: 52ch; }
.beat-aside { margin-top: 22px; padding-left: 16px; border-left: 2px solid var(--lime); font-style: italic; font-size: 16px; line-height: 1.45; opacity: 0.85; max-width: 40ch; }
.beat-aside.strong { font-style: normal; font-weight: 500; font-size: 19px; opacity: 1; }
.slice-read { margin-top: 26px; font-size: 12px; }
.slice-read b { font: 200 44px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-right: 8px; vertical-align: -6px; }
.ecg { position: absolute; left: 0; bottom: 2vh; width: 100%; height: 90px; z-index: -1; overflow: visible; pointer-events: none; }
.ecg path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0.55; }
.cue-h { max-width: min(92vw, 13ch); font-size: clamp(60px, 9vw, 176px); font-weight: 200; letter-spacing: -0.06em; line-height: 0.92; text-wrap: balance; will-change: transform, filter; }
.cue-p { margin-top: 34px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; line-height: 1.35; opacity: 0.8; }

/* Hakeem's note */
.note {
  position: absolute; right: var(--g); top: 0; bottom: 0; margin: auto 0; height: fit-content; width: min(420px, 34vw);
  background: rgba(251, 252, 248, 0.92); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 40px 90px -30px rgba(20, 24, 21, 0.35); backdrop-filter: blur(10px); opacity: 0; will-change: opacity, transform;
}
.note-top { display: flex; justify-content: space-between; color: var(--mute); font-size: 10px; }
.note-top span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.note-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.6); }
.note.is-live .note-top i { animation: blink 1.2s ease-in-out infinite; }
.note-t { margin-top: 18px; font-size: 26px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.note ul { margin-top: 12px; }
.note li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.note li::before { content: "→"; position: absolute; left: 0; color: var(--olive); font-family: var(--mono); font-size: 11px; top: 9px; }
.note-src { margin-top: 10px; color: var(--mute); font-size: 9.5px; }
.note-act { margin-top: 14px; display: flex; gap: 6px; }
.note-act span { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.note-act .na-ok { background: var(--lime); border-color: var(--lime); }
.note-ar { margin-top: 12px; font-family: var(--ar); font-weight: 300; font-size: 15px; color: var(--mute); text-align: right; }

/* ---------------------------------------------------------------- */
/* Word band                                                          */
/* ---------------------------------------------------------------- */
.band { position: relative; background: var(--light); overflow: hidden; padding: 6vh 0; border-top: 1px solid var(--line); }
.band-row { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.band-row span { font-size: clamp(64px, 11vw, 190px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; padding-right: 0.25em; display: inline-block; }
.band-row.ar-row span { font-family: var(--ar); font-weight: 300; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px rgba(10, 11, 10, 0.35); font-size: clamp(54px, 9vw, 160px); }

/* ---------------------------------------------------------------- */
/* Section scaffolding                                                */
/* ---------------------------------------------------------------- */
.sec-h { margin-top: 22px; font-size: clamp(44px, 6vw, 104px); font-weight: 250; line-height: 0.94; letter-spacing: -0.055em; text-wrap: balance; }
.sec-p { margin-top: 26px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.55; color: var(--mute); max-width: 46ch; }

/* ---------------------------------------------------------------- */
/* IMMERSIVE — a horizontal track                                     */
/* ---------------------------------------------------------------- */
.xr { position: relative; height: 470vh; background: var(--dark); color: var(--paper); }
.xr::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 70% 30%, rgba(220, 255, 34, 0.06), transparent 70%); pointer-events: none; }
.xr-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.xr-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.xr-panel { flex: 0 0 100vw; width: 100vw; height: 100%; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4vw; align-items: center; padding: 90px var(--g) 76px; perspective: 1400px; }
.xr-intro { display: flex; align-items: center; }
.xr-intro-in { max-width: 1160px; }
.xr .kick { color: rgba(246, 247, 242, 0.6); }
.xr-h { margin-top: 22px; font-size: clamp(44px, 5vw, 92px); font-weight: 250; line-height: 0.92; letter-spacing: -0.06em; text-wrap: balance; }
.xr-lead { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: rgba(246, 247, 242, 0.72); }

.xr-hint { margin-top: 44px; display: flex; align-items: center; gap: 14px; color: var(--lime); }
.xr-hint i { width: 64px; height: 1px; background: currentColor; transform-origin: left; animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.xr-copy { will-change: transform; }
.xr-name { margin-top: 18px; font-size: clamp(32px, 3.3vw, 56px); font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.xr-p { margin-top: 18px; font-size: 16.5px; line-height: 1.55; color: rgba(246, 247, 242, 0.72); max-width: 46ch; }
.xr-vis { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); will-change: transform; }
.xr-fig { position: absolute; inset: 0; }
.xr-prog { position: absolute; left: var(--g); right: var(--g); bottom: 30px; display: flex; gap: clamp(16px, 4vw, 60px); font-size: 10px; color: rgba(246, 247, 242, 0.38); padding-bottom: 12px; border-bottom: 1px solid var(--line-d); }
.xr-prog span { transition: color 400ms ease; }
.xr-prog span.is-on { color: var(--paper); }
.xr-prog i { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* HUD overlays */
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 900ms ease 200ms; }
.is-on .hud { opacity: 1; }
.hud-card { position: absolute; left: 3%; top: 5%; width: min(290px, 44%); padding: 14px 16px; border-radius: 14px; background: rgba(8, 12, 11, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--paper); }
.hud-k { display: flex; align-items: center; gap: 8px; font-size: 9.5px; }
.hud-k i { width: 6px; height: 6px; border-radius: 50%; background: #ff7a62; animation: blink 1s ease-in-out infinite; }
.hud-k b { margin-left: auto; font-weight: 400; color: var(--lime); font-variant-numeric: tabular-nums; }
.hud-steps { margin-top: 12px; display: grid; gap: 7px; font-size: 10px; text-transform: none; letter-spacing: 0.01em; }
.hud-steps li { display: flex; gap: 9px; align-items: center; opacity: 0.35; transition: opacity 500ms ease; }
.hud-steps li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background-color 400ms ease, border-color 400ms ease; }
.is-on .hud-steps li:not(.now) { opacity: 0.85; }
.is-on .hud-steps li:not(.now)::before { background: var(--lime); border-color: var(--lime); box-shadow: inset 0 0 0 2px rgba(8, 12, 11, 0.85); }
.hud-steps li:nth-child(1), .hud-steps li:nth-child(1)::before { transition-delay: 500ms; }
.hud-steps li:nth-child(2), .hud-steps li:nth-child(2)::before { transition-delay: 900ms; }
.hud-steps li:nth-child(3), .hud-steps li:nth-child(3)::before { transition-delay: 1300ms; }
.hud-steps li:nth-child(4), .hud-steps li:nth-child(4)::before { transition-delay: 1700ms; }
.is-on .hud-steps li.now { opacity: 1; color: var(--lime); transition-delay: 2100ms; }
.hud-steps li.now::before { animation: blink 0.9s ease-in-out infinite; }
.hud-ring { position: absolute; transform: translate(-50%, -50%); }
.hud-ring i { display: block; width: clamp(44px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--lime); box-shadow: 0 0 22px rgba(220, 255, 34, 0.55); animation: cpr 0.536s ease-out infinite; }
@keyframes cpr { 0% { transform: scale(0.78); opacity: 1; } 100% { transform: scale(1.3); opacity: 0.15; } }
.hud-ring span { position: absolute; left: 50%; top: -12px; transform: translate(-50%, -100%); white-space: nowrap; background: rgba(8, 12, 11, 0.66); color: var(--paper); padding: 6px 10px; border-radius: 999px; font-size: 9px; }
.hud-score { position: absolute; right: 3%; top: 5%; display: grid; justify-items: end; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(8, 12, 11, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 9px; color: rgba(246, 247, 242, 0.7); }
.hud-score b { font: 200 44px/0.9 var(--sans); letter-spacing: -0.04em; color: var(--lime); }
.hud-ar { width: 100%; height: 100%; }
.hud-ar path, .hud-ar ellipse, .hud-ar circle { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ar-brk path { stroke-width: 3; }

.ar-draw { stroke-dasharray: 460; stroke-dashoffset: 460; stroke-width: 3 !important; }
.is-on .ar-draw { animation: ardraw 4s var(--ease) 1s infinite; }
@keyframes ardraw { 0% { stroke-dashoffset: 460; opacity: 1; } 35% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ar-lead { stroke-width: 1.2 !important; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s var(--ease) 0.6s; }
.is-on .ar-lead { stroke-dashoffset: 0; }
.hud-ar-txt span { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(8, 12, 11, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(220, 255, 34, 0.35); color: var(--paper); font-size: 9.5px; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 800ms var(--ease); }
.is-on .hud-ar-txt span { opacity: 1; transform: none; }
.ar-t1 { left: 3%; top: 5%; transition-delay: 400ms !important; }
.ar-t2 { left: 51.5%; top: 42.2%; transform: translate(0, -50%) !important; transition-delay: 1400ms !important; }
.ar-t3 { right: 3%; bottom: 5%; transition-delay: 900ms !important; }
.ar-t3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.2s ease-in-out infinite; }
.ar-t4 { left: 3%; bottom: 5%; transition-delay: 700ms !important; }

/* Understudy wipe (inside the track) */

/* ---------------------------------------------------------------- */
/* JISR — remote operations                                           */
/* ---------------------------------------------------------------- */

 

/* What has to be true */

/* Services */

/* SLIDES */

/* DEMO — night again */

.live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.2s ease-in-out infinite; }

@keyframes bedAlert { 50% { background: #1a2010; } }

.note-small { margin-top: 16px; color: rgba(246, 247, 242, 0.45); font-size: 10px; }

/* HOW */
.how { background: var(--light); padding: clamp(110px, 14vw, 200px) 0; }
.how-list { position: relative; margin-top: clamp(56px, 7vw, 100px); padding-left: clamp(28px, 6vw, 110px); }
.how-line { position: absolute; left: 0; top: 0; height: 100%; width: 4px; overflow: visible; }
.how-line path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.how-i { position: relative; display: grid; grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr); gap: 4vw; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.how-i::before { content: ""; position: absolute; left: calc(clamp(28px, 6vw, 110px) * -1 - 5px); top: clamp(52px, 7vw, 96px); width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--ink); }
.how-n { font: 200 clamp(90px, 12vw, 200px)/0.8 var(--sans); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(10, 11, 10, 0.4); will-change: transform; }
.how-i h3 { font-size: clamp(30px, 3.2vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.how-i p { margin-top: 18px; color: var(--mute); max-width: 52ch; font-size: 17px; }

/* WON'T */
.wont { background: var(--paper); padding: clamp(110px, 14vw, 200px) 0; border-top: 1px solid var(--line); }
.wont-list { margin-top: clamp(48px, 6vw, 90px); counter-reset: w; }
.wont-list li { counter-increment: w; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 4vw; align-items: end; padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.wont-s { position: relative; display: inline-block; justify-self: start; font-size: clamp(32px, 4.5vw, 78px); font-weight: 300; line-height: 1; letter-spacing: -0.045em; padding-left: 64px; }
.wont-s::before { content: "0" counter(w); position: absolute; left: 0; top: 0.4em; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--mute); }
.wont-s i { display: none; }
.wont-s span { background: linear-gradient(var(--ink), var(--ink)) 0 58% / 0% 3px no-repeat; -webkit-box-decoration-break: slice; box-decoration-break: slice; }
.wont-p { color: var(--ink); font-size: 17px; line-height: 1.45; max-width: 34ch; padding-bottom: 6px; }

/* EPILOGUE */
.epilogue { position: relative; height: 120vh; background: var(--dark); color: var(--paper); overflow: hidden; }
.epi-photo { position: absolute; inset: 0; will-change: clip-path; }
.epi-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 8, 0.75) 0%, rgba(8, 9, 8, 0.25) 50%, transparent 70%), linear-gradient(0deg, rgba(8, 9, 8, 0.6), transparent 45%); pointer-events: none; }
.epi-copy { position: absolute; left: var(--g); bottom: clamp(60px, 12vh, 140px); max-width: 640px; }
.epi-time { color: var(--lime); }
.epi-h { margin-top: 16px; font-size: clamp(56px, 8vw, 140px); font-weight: 250; letter-spacing: -0.06em; line-height: 0.9; }
.epi-p { margin-top: 24px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: rgba(246, 247, 242, 0.82); max-width: 46ch; }
.epi-note { margin-top: 20px; color: rgba(246, 247, 242, 0.5); font-size: 10px; }

/* CONTACT */
.contact { background: var(--light); padding: clamp(120px, 15vw, 220px) 0 0; }
.ct-h { margin-top: 26px; font-size: clamp(68px, 12.5vw, 230px); font-weight: 200; letter-spacing: -0.07em; line-height: 0.86; }
.ct-h em { font-style: italic; position: relative; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5vw; margin-top: clamp(48px, 6vw, 90px); }
.ct-p { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; color: #2d312d; max-width: 36ch; }
.ct-links { border-top: 1px solid var(--ink); }
.ct-links a { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 18px; min-height: 86px; border-bottom: 1px solid var(--line); transition: padding-left 600ms var(--ease), background-color 300ms ease; }
.ct-links a:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(220, 255, 34, 0.5), transparent 70%); }
.ct-links span { color: var(--mute); }
.ct-links b { font-size: clamp(20px, 2.1vw, 32px); font-weight: 300; letter-spacing: -0.03em; }
.ct-links i { font-style: normal; font-size: 20px; transition: transform 500ms var(--ease); }
.ct-links a:hover i { transform: translate(4px, -4px); }
.ft { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 90px; padding-bottom: 40px; color: var(--mute); font-size: 10px; }
.ft img { width: 160px; height: auto; margin-right: auto; }

/* ---------------------------------------------------------------- */
/* Header navigation, depth pill, menu                                */
/* ---------------------------------------------------------------- */
.hd-nav { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.hd-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background-color 300ms ease, color 300ms ease; }
.hd-nav a i { font: 400 9px/1 var(--mono); font-style: normal; opacity: 0.55; }
.hd-nav a:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.hd-nav a.is-on { background: var(--ink); color: var(--paper); }
.hd-nav a.is-on i { opacity: 1; color: var(--lime); }
body[data-tone="dark"] .hd-nav { background: rgba(10, 13, 12, 0.5); }
body[data-tone="dark"] .hd-nav a.is-on { background: var(--paper); color: var(--ink); }
body[data-tone="dark"] .hd-nav a.is-on i { color: var(--olive); }
.hd-depth { position: fixed; left: 50%; bottom: 20px; z-index: 120; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; font: 400 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  background: color-mix(in srgb, var(--bg) 60%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity 500ms ease, transform 600ms var(--ease), color 400ms ease; pointer-events: none; }
body[data-tone="dark"] .hd-depth { color: var(--paper); }
.hd-depth.is-on { opacity: 1; transform: translate(-50%, 0); }
.hd-depth i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.5); animation: blink 1.2s ease-in-out infinite; }
.menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; }
.menu-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); font-size: clamp(28px, 3vw, 46px); font-weight: 250; letter-spacing: -0.04em; line-height: 1.05; transition: color 250ms ease; }
.menu-h span { font: 400 10px/1 var(--mono); letter-spacing: 0.1em; color: var(--lime); }
.menu-h:hover { color: var(--lime); }
.menu-col ul { margin-top: 14px; display: grid; }
.menu-col li a { display: block; padding: 9px 0; font-size: 11px; color: rgba(246, 247, 242, 0.62); transition: color 250ms ease, padding-left 500ms var(--ease); }
.menu-col li a:hover { color: var(--paper); padding-left: 8px; }

/* Overview plates */
.stk-cap.is-on { pointer-events: auto; }
.stk-go { display: inline-flex; margin-top: 18px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 10px; transition: background-color 250ms ease, color 250ms ease; }
.stk-go:hover { background: var(--ink); color: var(--paper); }
.pat-approve { position: absolute; left: 7%; right: 7%; bottom: 9%; display: flex; gap: 6px; }
.pat-approve i { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-style: normal; font-size: 10px; }
.pat-approve i:first-child { background: var(--lime); border-color: var(--lime); }
.pat-vr { position: absolute; inset: 20% 7% 24%; border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(220, 255, 34, 0.4) 0 1px, transparent 1px 26px), repeating-linear-gradient(0deg, rgba(220, 255, 34, 0.4) 0 1px, transparent 1px 26px);
  -webkit-mask: radial-gradient(circle at 50% 55%, #000 30%, transparent 72%); mask: radial-gradient(circle at 50% 55%, #000 30%, transparent 72%); }
.pat-score { position: absolute; left: 7%; bottom: 8%; display: flex; align-items: baseline; gap: 10px; font-size: 9px; color: rgba(246, 247, 242, 0.7); }
.pat-score b { font: 200 34px/1 var(--sans); letter-spacing: -0.04em; color: var(--lime); }

/* ---------------------------------------------------------------- */
/* MEDICAL OPERATIONS — the hospital model                           */
/* ---------------------------------------------------------------- */
.ops { position: relative; height: 640vh; background: #0a0e0d; color: var(--paper); }
.ops .kick { color: rgba(246, 247, 242, 0.6); }
.ops-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hx-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-labels { position: absolute; inset: 0; pointer-events: none; }
.hx-lab { position: absolute; left: 0; top: 0; translate: -50% -100%; display: grid; justify-items: center; gap: 3px; padding: 5px 9px; border-radius: 999px; font-size: 9px; white-space: nowrap; color: rgba(246, 247, 242, 0.85); background: rgba(10, 14, 13, 0.72); border: 1px solid rgba(246, 247, 242, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 500ms ease, border-color 400ms ease; }
.hx-lab b { font-weight: 400; display: inline-flex; align-items: center; gap: 7px; }
.hx-lab b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.hx-lab span { display: none; color: var(--lime); }
.hx-lab.is-on, .is-overview .hx-lab { opacity: 1; }
.is-overview .hx-lab b::before { background: rgba(246, 247, 242, 0.5); box-shadow: none; }
.hx-lab.is-on { border-color: rgba(220, 255, 34, 0.45); }
.show-metric .hx-lab { border-radius: 10px; }
.show-metric .hx-lab span { display: block; }
.ops-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0a0e0d 0%, rgba(10, 14, 13, 0.94) 30%, rgba(10, 14, 13, 0) 52%), radial-gradient(80% 70% at 65% 50%, transparent 55%, rgba(10, 14, 13, 0.7) 100%); }
.ops-copy { position: absolute; left: var(--g); top: 50%; transform: translateY(-46%); width: min(500px, 38vw); z-index: 2; }
.ops-h { font-size: clamp(40px, 4.3vw, 74px); }
.steps { margin-top: 24px; border-top: 1px solid var(--line-d); }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line-d); opacity: 0.42; transition: opacity 500ms ease; }
.steps li.is-on { opacity: 1; }
.steps li > span { padding-top: 5px; color: rgba(246, 247, 242, 0.5); transition: color 400ms ease; }
.steps li.is-on > span { color: var(--lime); }
.steps b { font-weight: 400; font-size: 18px; letter-spacing: -0.02em; }
.steps p { font-size: 14.5px; line-height: 1.45; color: rgba(246, 247, 242, 0.7); max-height: 0; overflow: hidden; transition: max-height 700ms var(--ease), margin 700ms var(--ease); }
.steps li.is-on p { max-height: 110px; margin-top: 5px; }
/* the explanation pinned to the model */
.hx-lead { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity 500ms ease; }
.hx-lead.is-on { opacity: 1; }
.hx-lead path { fill: none; stroke: var(--lime); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.hx-lead circle { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.hx-lead .hx-lead-ring { fill: none; stroke: var(--lime); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hx-call { position: absolute; left: 0; top: 0; width: 330px; padding: 18px 20px 16px; border-radius: 18px; background: rgba(14, 19, 18, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(246, 247, 242, 0.12); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06); opacity: 0; transition: opacity 500ms ease; will-change: transform; z-index: 3; }
.hx-call.is-on { opacity: 1; }
.hx-call-k { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: rgba(246, 247, 242, 0.6); }
.hx-call-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.2s ease-in-out infinite; }
.hx-call-k em { margin-left: auto; font-style: normal; color: rgba(246, 247, 242, 0.4); }
.hx-call h3 { margin-top: 12px; font-size: 24px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.hx-call-p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: rgba(246, 247, 242, 0.68); }
.hx-call-v { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-d); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hx-call-v b { display: block; font: 200 30px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--lime); }
.hx-call-v span { display: block; margin-top: 6px; font-size: 8.5px; color: rgba(246, 247, 242, 0.55); }
.hx-ext { position: absolute; left: 0; top: 0; translate: -50% -100%; display: grid; justify-items: center; gap: 3px; padding: 7px 11px; border-radius: 10px; font-size: 9px; color: var(--ink); background: var(--lime); opacity: 0; transition: opacity 400ms ease; pointer-events: none; white-space: nowrap; }
.hx-ext b { font-weight: 400; }
.hx-ext span { font-size: 8px; opacity: 0.7; }
.hx-ext.is-on { opacity: 1; }
.hx-legend { position: absolute; right: var(--g); bottom: 26px; display: flex; align-items: center; gap: 18px; font-size: 9px; color: rgba(246, 247, 242, 0.55); z-index: 2; }
.hx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hx-legend i { width: 7px; height: 7px; border-radius: 50%; }
.lg-p { background: var(--paper); box-shadow: 0 0 8px rgba(246, 247, 242, 0.8); }
.lg-s { background: #8fd8c8; box-shadow: 0 0 8px rgba(143, 216, 200, 0.8); }
.lg-d { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.lg-f { border-radius: 2px !important; border: 1px solid var(--lime); background: rgba(220, 255, 34, 0.12); }
.hx-legend em { font-style: normal; padding-left: 18px; border-left: 1px solid var(--line-d); color: rgba(246, 247, 242, 0.35); }

/* ---------------------------------------------------------------- */
/* Use cases                                                          */
/* ---------------------------------------------------------------- */
.cases { position: relative; background: var(--light); padding: clamp(100px, 12vw, 180px) 0; }
.case-list { margin-top: clamp(48px, 6vw, 90px); display: grid; gap: clamp(60px, 8vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.case-list .case:nth-child(even) .case-vis { order: 2; }
.case-vis { display: grid; place-items: center; min-height: 380px; padding: 30px; border-radius: 24px; background: linear-gradient(140deg, #fbfcf8, #e4e8df); border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(10, 20, 15, 0.35); transform-style: preserve-3d; will-change: transform; transform-origin: 50% 100%; }
.case-n { color: var(--olive); }
.case h3 { margin-top: 14px; font-size: clamp(30px, 3vw, 50px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.case-dl { margin-top: 24px; border-top: 1px solid var(--line); }
.case-dl div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.case-dl dt { color: var(--mute); padding-top: 4px; font-size: 10px; }
.case-dl dd { margin: 0; font-size: 16px; line-height: 1.5; color: #2d312d; }
.ai-cases { background: var(--dark); color: var(--paper); }
.ai-cases .kick, .ai-cases .case-dl dt { color: rgba(246, 247, 242, 0.55); }
.ai-cases .case-dl dd { color: rgba(246, 247, 242, 0.82); }
.ai-cases .case-dl, .ai-cases .case-dl div { border-color: var(--line-d); }
.ai-cases .case-n { color: var(--lime); }
.ai-cases .case-vis { background: linear-gradient(140deg, #141a18, #0a0d0c); border-color: var(--line-d); }
.case-wide { margin-top: clamp(48px, 6vw, 90px); grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); align-items: start; }
.case-pair { margin-top: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.case-small { display: block; }
.case-small .case-vis { min-height: 300px; margin-bottom: 30px; }
.case-small h3 { font-size: clamp(26px, 2.4vw, 40px); }

/* phone */
.phone { position: relative; width: 250px; height: 450px; border-radius: 38px; background: #0b0e0d; padding: 10px; box-shadow: 0 40px 80px -30px rgba(10, 20, 15, 0.55), inset 0 0 0 2px #2a302c; }
.ph-top { display: flex; justify-content: space-between; padding: 12px 14px 10px; font-size: 8.5px; color: rgba(246, 247, 242, 0.55); }
.ph-steps { height: calc(100% - 38px); padding: 16px 12px; border-radius: 28px; background: #f6f7f2; display: grid; gap: 9px; align-content: start; }
.ph-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); opacity: 0.35; transform: translateY(6px); transition: opacity 500ms ease, transform 600ms var(--ease), background-color 400ms ease, color 400ms ease; }
.ph-steps li.done { opacity: 1; transform: none; }
.ph-steps i { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 400ms ease, border-color 400ms ease; }
.ph-steps li.done i { background: var(--lime); border-color: var(--lime); }
.ph-steps li.done i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ph-steps b { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.ph-steps span { display: block; font-size: 11px; color: var(--mute); }
.ph-steps li.ph-qr.done { background: var(--ink); color: var(--paper); }
.ph-steps li.ph-qr.done span { color: rgba(246, 247, 242, 0.6); }
.ph-steps li.ph-qr.done i { border-radius: 4px; border-color: #fff; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
.ph-steps li.ph-qr.done i::after { display: none; }

/* cards inside visuals */
.board, .audit, .claim, .slots { width: 100%; max-width: 440px; padding: 18px; border-radius: 18px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(10, 20, 15, 0.3); }
.board-k { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 9px; color: var(--mute); }
.board-k .lg { display: flex; align-items: center; gap: 5px; }
.lg i, .slots-k i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.board-beds { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 18px; }
.board-beds i { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; transition: background-color 500ms ease; }
.board-beds span { font: 400 8px var(--mono); color: rgba(10, 11, 10, 0.5); }
.free { background: var(--lime); } .clean { background: #ffb08a; } .occ { background: #d9ded4; }
.board-th { position: relative; display: grid; gap: 8px; }
.board-th > div { position: relative; height: 22px; margin-left: 40px; border-radius: 6px; background: #f1f3ee; }
.board-th > div > span { position: absolute; left: -38px; top: 6px; font-size: 8.5px; color: var(--mute); }
.board-th i { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: var(--ink); opacity: 0.82; }
.board-th i.late { background: #ff8a6a; opacity: 1; }
.board-now { position: absolute; top: -5px; bottom: -5px; left: 40%; width: 1.5px; background: var(--olive); transition: left 900ms linear; }
.audit-l { display: grid; gap: 6px; font-size: 9.5px; text-transform: none; letter-spacing: 0.01em; }
.audit-l li { display: flex; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f4f6f1; opacity: 0; transform: translateX(-10px); transition: opacity 500ms ease, transform 600ms var(--ease); }
.audit-l li.is-on { opacity: 1; transform: none; }
.audit-l b { font-weight: 400; color: var(--olive); }
.audit-bar { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 9px; color: var(--mute); }
.audit-bar i { position: relative; height: 6px; border-radius: 3px; background: #eef0ea; overflow: hidden; }
.audit-bar em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); transition: width 800ms var(--ease); }
.audit-bar b { font: 200 22px/1 var(--sans); color: var(--ink); min-width: 3ch; text-align: right; }
.claim-l { display: grid; gap: 8px; font-size: 10px; text-transform: none; letter-spacing: 0.01em; }
.claim-l li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f4f6f1; opacity: 0.35; transition: opacity 400ms ease, background-color 400ms ease, color 400ms ease; }
.claim-l li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; line-height: 1; }
.claim-l li.is-on { opacity: 1; }
.claim-l li.is-on::before { content: "✓"; background: var(--lime); border-color: var(--lime); }
.claim-l li.bad.is-on { background: #fff0ea; color: #a33f1c; }
.claim-l li.bad.is-on::before { content: "!"; background: #ff8a6a; border-color: #ff8a6a; color: #fff; }
#claimSt.bad { color: #c2522b; }
.slots-g { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.slots-g i { aspect-ratio: 1.6; border-radius: 6px; background: #eef0ea; transition: background-color 400ms ease; }
.slots-g i.ok, .slots-k i.ok { background: #d9ded4; }
.slots-g i.rs, .slots-k i.rs { background: var(--lime); }
.slots-g i.risk, .slots-k i.risk { background: #ff8a6a; }
.slots-g i.risk { animation: blink 1s ease-in-out infinite; }
.slots-k { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-size: 8.5px; color: var(--mute); }
.slots-k i:first-child { margin-left: 0; }

/* the scribe demo */
.scribe { border: 1px solid var(--line-d); border-radius: 22px; background: rgba(246, 247, 242, 0.03); overflow: hidden; }
.sc-bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line-d); font-size: 10px; color: rgba(246, 247, 242, 0.55); }
.sc-bar b { font-weight: 400; color: var(--paper); font-variant-numeric: tabular-nums; }
.scribe .live i { background: #ff7a62; }
.sc-btn { margin-left: auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-d); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background-color 250ms ease, color 250ms ease; }
.sc-btn:hover { background: var(--paper); color: var(--ink); }
.sc-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.sc-tr { padding: 18px; border-right: 1px solid var(--line-d); }
.sc-k { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 9.5px; color: rgba(246, 247, 242, 0.5); }
.sc-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(10, 11, 10, 0.5); }
#scLines { display: grid; gap: 6px; }
#scLines li { display: grid; grid-template-columns: 30px 1fr; gap: 3px 10px; padding: 8px 10px; border-radius: 10px; opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 600ms var(--ease), background-color 250ms ease, box-shadow 250ms ease; }
#scLines li.is-on { opacity: 1; transform: none; }
#scLines li.is-hi { background: rgba(220, 255, 34, 0.14); box-shadow: inset 2px 0 0 var(--lime); }
#scLines b { font-weight: 400; font-size: 9px; color: rgba(246, 247, 242, 0.45); padding-top: 4px; }
#scLines span { font-size: 14.5px; line-height: 1.45; }
#scLines span[lang="ar"] { font-family: var(--ar); font-size: 16px; text-align: right; }
#scLines em { grid-column: 2; font-style: normal; font-size: 12px; color: rgba(246, 247, 242, 0.5); }
.sc-note { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--paper); color: var(--ink); }
.sc-note .sc-k { color: var(--mute); }
.sc-sec { opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 700ms var(--ease); }
.sc-sec.is-on { opacity: 1; transform: none; }
.sc-sec p:first-child { font-size: 9px; color: var(--olive); }
.sc-sec p[data-src] { margin: 4px 0 0 -8px; padding: 6px 8px; border-radius: 8px; font-size: 15px; line-height: 1.45; cursor: help; transition: background-color 250ms ease; }
.sc-sec p[data-src]:hover, .sc-sec p[data-src]:focus { background: rgba(220, 255, 34, 0.38); outline: none; }
.sc-sec p[contenteditable="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--olive); cursor: text; }
.sc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-foot p { font-size: 9.5px; color: var(--mute); text-transform: none; letter-spacing: 0.02em; }
.sc-act { display: flex; gap: 8px; }
.sc-act .btn { min-height: 40px; padding: 0 18px; }
.sc-act .btn:disabled { opacity: 0.35; pointer-events: none; }
.scribe .note-small { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line-d); }

/* ---------------------------------------------------------------- */
/* AI intro and the three extra assistants                            */
/* ---------------------------------------------------------------- */
.ai-intro { background: var(--light); padding: clamp(110px, 14vw, 200px) 0 clamp(60px, 8vw, 110px); }
.ai-intro-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: start; }
.ai-caps { margin-top: 26px; border-top: 1px solid var(--line); }
.ai-caps a { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 11px; transition: padding-left 500ms var(--ease); }
.ai-caps a span { color: var(--olive); }
.ai-caps a:hover { padding-left: 10px; }
.ai-cue { margin-top: clamp(60px, 8vw, 110px); display: flex; align-items: center; gap: 14px; color: var(--mute); }
.ai-cue i { width: 1px; height: 54px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
.more { background: var(--light); padding: clamp(110px, 14vw, 200px) 0; }
.more-g { margin-top: clamp(48px, 6vw, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scr-n { margin-top: 22px; color: var(--olive); }
.scr h3 { margin-top: 10px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.scr > p:last-child { margin-top: 10px; color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.scr-vis { height: 350px; padding: 14px; border-radius: 20px; background: #0d1110; color: var(--paper); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(10, 20, 15, 0.5); }
.scr-bar { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-d); font-size: 9px; color: rgba(246, 247, 242, 0.55); }
.scr-bar span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); }
.scr-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.chat-l { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding-top: 12px; }
.cb { max-width: 84%; padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.4; animation: cbIn 500ms var(--ease) both; flex: none; }
@keyframes cbIn { from { opacity: 0; transform: translateY(8px); } }
.cb.p { align-self: flex-end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 4px; }
.cb.a { align-self: flex-start; background: #1e2522; border-bottom-left-radius: 4px; }
.cb.s { align-self: center; padding: 6px 10px; border: 1px dashed rgba(255, 138, 106, 0.6); color: #ffb39b; font: 400 9px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.cb span[lang="ar"] { display: block; font-family: var(--ar); font-size: 14px; text-align: right; }
.cb em { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; opacity: 0.62; }
.cb.typing { display: flex; gap: 4px; padding: 11px 12px; }
.cb.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 247, 242, 0.6); animation: blink 1s ease-in-out infinite; }
.cb.typing i:nth-child(2) { animation-delay: 0.2s; } .cb.typing i:nth-child(3) { animation-delay: 0.4s; }
.fc { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.fc-grid path { stroke: rgba(246, 247, 242, 0.08); fill: none; }
.fc-band { fill: rgba(220, 255, 34, 0.12); opacity: 0; transition: opacity 1.2s ease 0.8s; }
.scr-fc.is-on .fc-band { opacity: 1; }
.fc-line { fill: none; stroke: var(--lime); stroke-width: 2; }
.fc-cap rect { fill: rgba(255, 138, 106, 0.7); }
.fc-dot { fill: #ff8a6a; opacity: 0; transition: opacity 500ms ease 2s; }
.scr-fc.is-on .fc-dot { opacity: 1; }
.fc-x text { fill: rgba(246, 247, 242, 0.4); font-size: 8px; }
.fc-note { margin-top: auto; padding: 10px 12px; border-radius: 10px; background: rgba(255, 138, 106, 0.12); color: #ffc6b3; font-size: 9px; text-transform: none; letter-spacing: 0.02em; line-height: 1.45; }
.fc-note b { font-weight: 400; color: #ff8a6a; text-transform: uppercase; }
.kb-q { margin-top: 14px; min-height: 66px; padding: 12px 14px; border-radius: 12px; background: #1b211f; font-size: 14px; line-height: 1.45; }
.kb-caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--lime); animation: blink 0.9s ease-in-out infinite; }
.kb-a { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(220, 255, 34, 0.3); font-size: 13.5px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 700ms var(--ease); }
.kb-a.is-on { opacity: 1; transform: none; }
.kb-src { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.kb-src a { padding: 5px 8px; border-radius: 999px; background: rgba(220, 255, 34, 0.15); color: var(--lime); font-size: 8.5px; }

/* VR capability list, HUD extras */
.xr-caps { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; border-top: 1px solid var(--line-d); }
.xr-caps li { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line-d); }
.xr-caps b { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; letter-spacing: -0.01em; }
.xr-caps b::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.xr-caps span { padding-left: 17px; font-size: 13.5px; line-height: 1.4; color: rgba(246, 247, 242, 0.55); }
.is-on .hud-steps li.miss { color: #ff9a7c; }
.is-on .hud-steps li.miss::before { background: #ff8a6a; border-color: #ff8a6a; }
.ar-t2.ar-left { left: auto; right: 62.8%; top: 75.6%; }
.ar-left ~ .ar-t4 { left: 3%; top: 14%; bottom: auto; }
.hud-ring-r span { left: 100%; top: 50%; transform: translate(10px, -50%); }

/* ---------------------------------------------------------------- */
/* Responsive                                                         */
/* ---------------------------------------------------------------- */
@media (max-width: 1280px) {
  .hd-cta { display: none; }
  .hd-nav a i { display: none; }
  .hd-nav a { padding: 9px 11px; font-size: 12px; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .xr-caps span { display: none; }
  .xr-name { font-size: clamp(28px, 2.7vw, 46px); }
  .xr-p { margin-top: 12px; font-size: 15px; }
  .xr-panel .ai-dl { margin-top: 14px; } .xr-panel .ai-dl div { padding: 7px 0; } .xr-panel .ai-dl dd { font-size: 13px; }
  .xr-h { font-size: clamp(40px, 4.4vw, 78px); }
  .steps p { font-size: 13.5px; }
  .ops-h { font-size: clamp(36px, 3.6vw, 60px); }
}
@media (max-width: 1100px) {
  .more-g { grid-template-columns: 1fr 1fr; }
  .case-wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hd { grid-template-columns: 1fr auto; padding: 16px var(--g); }
  .hd-nav { display: none; }
  .hero { padding-top: 100px; }
  .hero-line:last-child { padding-left: 0.4em; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .menu-cols { grid-template-columns: 1fr; gap: 30px; }
  .menu-in { padding-top: 96px; }
  .beat-in { justify-content: flex-end; padding: 100px var(--g) 90px; z-index: 0; }
  .beat-in.left, .beat-in.right { align-items: flex-start; padding-left: var(--g); }
  .beat-in.left > :not(.note):not(.ecg), .beat-in.right > * { max-width: none; width: auto; }
  .beat-in::before { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 78%, transparent) 62%); z-index: -1; }
  .beat-p { font-size: 16px; }
  .beat-hakeem .beat-in { justify-content: flex-start; padding-top: 96px; }
  .beat-hakeem .beat-in::before { display: none; }
  .beat-hakeem .ai-dl { display: none; }
  .note { position: relative; right: auto; top: auto; bottom: auto; margin: 22px 0 0; width: 100%; max-width: 420px; }
  .ecg { bottom: auto; top: 16vh; }
  .cue-h { white-space: normal; }
  .beat-in:has(.ai-dl) .beat-p, .beat-name { display: none; }
  .ai-dl { margin-top: 16px; }
  .ai-dl div { grid-template-columns: 74px 1fr; padding: 7px 0; }
  .ai-dl dd { font-size: 13.5px; }
  .ov { height: 380vh; }
  .ov-pin { grid-template-columns: 1fr; grid-template-rows: 34vh auto; align-content: center; gap: 6px; padding: 84px var(--g) 40px; }
  .stk-scene { order: -1; height: 34vh; perspective-origin: 50% 0%; }
  .stk { --w: min(180px, 46vw); top: 68%; }
  .stk-lbl { font-size: 8px; } .stk-tags i, .pat-approve i { font-size: 7px; padding: 4px 0; } .pat-score b { font-size: 22px; }
  .ov-h { font-size: clamp(32px, 9vw, 48px); }
  .ov-lead, .stk-foot { display: none; }
  .stk-index { margin-top: 16px; } .stk-index li { padding: 6px 9px; font-size: 9px; }
  .stk-caps { margin-top: 16px; min-height: 250px; }
  .stk-cap p:last-child { font-size: 15px; }
  .ops { height: 560vh; }
  .ops-shade { background: linear-gradient(180deg, #0a0e0d 0, rgba(10, 14, 13, 0.6) 22%, rgba(10, 14, 13, 0) 34%, rgba(10, 14, 13, 0) 58%, rgba(10, 14, 13, 0.85) 74%); }
  .ops-copy { top: 84px; bottom: auto; right: var(--g); transform: none; width: auto; }
  .ops-copy .steps { display: none; }
  .ops-h { font-size: clamp(28px, 8vw, 40px); }
  .steps { margin-top: 14px; }
  .steps li { padding: 7px 0; } .steps b { font-size: 15px; } .steps p { font-size: 13.5px; }
  .hx-lab { font-size: 7px; padding: 3px 5px; }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .case-list .case:nth-child(even) .case-vis { order: 0; }
  .case-vis { min-height: 0; padding: 22px; }
  .case-dl div { grid-template-columns: 1fr; gap: 4px; }
  .case-pair { grid-template-columns: 1fr; gap: 70px; }
  .ai-intro-g { grid-template-columns: 1fr; gap: 0; }
  .more-g { grid-template-columns: 1fr; gap: 50px; }
  .sc-body { grid-template-columns: 1fr; }
  .sc-tr { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .xr-panel { grid-template-columns: 1fr; align-content: center; gap: 20px; padding: 84px var(--g) 70px; }
  .xr-panel .xr-vis { order: -1; border-radius: 16px; }
  .xr-h { font-size: clamp(32px, 9vw, 48px); }
  .xr-lead { margin-top: 14px; font-size: 15px; }
  .xr-caps { grid-template-columns: 1fr; margin-top: 18px; }
  .xr-caps li { padding: 7px 0; } .xr-caps b { font-size: 14px; }
  .xr-hint { margin-top: 18px; }
  .xr-name { margin-top: 12px; font-size: clamp(24px, 7vw, 34px); }
  .xr-p { margin-top: 10px; font-size: 15px; }
  .xr-prog { bottom: 22px; gap: 0; padding-bottom: 10px; font-size: 9px; }
  .xr-prog span:not(.is-on) { display: none; }
  .hud-card { width: 62%; padding: 9px 10px; } .hud-steps { gap: 4px; font-size: 8px; } .hud-steps li:nth-child(-n+2) { display: none; }
  .hud-score b { font-size: 24px; } .hud-ring span { display: none; }
  .hud-ar-txt span { font-size: 7.5px; padding: 4px 7px; } .ar-t2, .ar-t4 { display: none !important; }
  .how-i { grid-template-columns: 1fr; gap: 10px; }
  .how-n { font-size: 80px; }
  .wont-list li { grid-template-columns: 1fr; gap: 12px; }
  .wont-s { padding-left: 40px; }
  .ct-grid { grid-template-columns: 1fr; }
  .ct-links a { grid-template-columns: 1fr auto; min-height: 0; padding-bottom: 16px; }
  .ct-links span { grid-column: 1 / -1; padding-top: 16px; }
}
@media (max-width: 600px) {
  .hero-h { font-size: clamp(40px, 11.6vw, 72px); }
  .hero-meta .r { display: none; }
  .hero-act { width: 100%; } .hero-act .btn { flex: 1; }
  .hd-brand span { display: none; }
  .phone { transform: scale(0.92); }
  .board-beds { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .ft { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------------------------------------------------------- */
/* Clean layout: one sentence + For / Outcome                         */
/* ---------------------------------------------------------------- */
.case-p { margin-top: 14px; font-size: 17px; line-height: 1.5; color: #3c413c; max-width: 42ch; }
.ai-cases .case-p { color: rgba(246, 247, 242, 0.75); }
.meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 20px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.meta div { display: grid; gap: 5px; }
.meta dt { font-size: 9.5px; opacity: 0.5; }
.meta dd { margin: 0; font: 500 14.5px/1.3 var(--sans); letter-spacing: -0.01em; text-transform: none; }
.xr-panel .meta { margin-top: 18px; }
.xr-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xr-caps li { padding: 13px 0; }
@media (min-width: 901px) {
  .steps p { display: none; }
  .steps li { padding: 13px 0; }
}
.how { padding: clamp(100px, 12vw, 170px) 0; }
.how-g { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.how-g li { padding-top: 18px; border-top: 1px solid var(--ink); }
.how-g span { color: var(--olive); }
.how-g h3 { margin-top: 14px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.how-g p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--mute); }
.rules { margin-top: clamp(80px, 10vw, 130px); }
.rules .wont-list { margin-top: 18px; }
.rules .wont-s { font-size: clamp(24px, 2.8vw, 44px); }
.rules .wont-list li { padding: clamp(18px, 2vw, 28px) 0; }
@media (max-width: 900px) {
  .how-g { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .xr-caps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .how-g { grid-template-columns: 1fr; }
}
.how-g li.how-i { display: block; padding: 18px 0 0; border-bottom: 0; }
.how-g li.how-i::before { display: none; }

/* Phones: keep the photos clear of overlays, and give the closing photo a sensible crop */
@media (max-width: 760px) {
  .hud-card, .hud-score, .hud-ar-txt { display: none; }
  .epilogue { height: auto; padding-bottom: 72px; }
  .epi-photo { position: relative; inset: auto; height: 58svh; }
  .epi-photo img { object-position: 58% 35%; }
  .epi-shade { background: linear-gradient(180deg, rgba(8, 9, 8, 0) 0, rgba(8, 9, 8, 0) 34svh, #080908 58svh); }
  .epi-copy { position: relative; left: auto; bottom: auto; margin: -64px var(--g) 0; }
}

/* Phones: one step at a time, so the hospital keeps most of the screen */
@media (max-width: 900px) {
  .ops-h { font-size: clamp(26px, 7.4vw, 36px); }
  .steps { margin-top: 12px; }
  .steps li:not(.is-on) { display: none; }
  .steps li.is-on { padding: 10px 0 4px; }
  .steps li.is-on p { max-height: none; }
}
@media (max-width: 900px) and (max-height: 520px) {
  .ops-copy .kick, .ops-h { display: none; }   /* phone held sideways: keep just the current step */
  .steps { margin-top: 0; border-top: 0; }
}

/* ---------------------------------------------------------------- */
/* Section openers                                                    */
/* ---------------------------------------------------------------- */
.chapter { position: relative; height: 210vh; }
.ch-dark { background: #090c0b; color: var(--paper); }
.ch-light { background: var(--light); color: var(--ink); }
.ch-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--g) clamp(52px, 10vh, 120px); }
.ch-dark .ch-pin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 78% 45%, rgba(220, 255, 34, 0.07), transparent 70%); pointer-events: none; }
.ch-num { position: absolute; right: -0.02em; top: 50%; font: 200 clamp(220px, 44vw, 760px)/0.8 var(--sans); letter-spacing: -0.08em; color: transparent; -webkit-text-stroke: 1px rgba(246, 247, 242, 0.18); pointer-events: none; will-change: transform, opacity; user-select: none; }
.ch-light .ch-num { -webkit-text-stroke-color: rgba(10, 11, 10, 0.14); }
.ch-top { position: absolute; left: var(--g); right: var(--g); top: 116px; display: flex; align-items: center; gap: 18px; font-size: 10px; letter-spacing: 0.12em; }
.ch-top > span:nth-child(2) { opacity: 0.7; }
.ch-name { margin-left: auto; opacity: 0.7; }
.ch-dots { display: flex; gap: 6px; }
.ch-dots i { width: 24px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.22; }
.ch-dots i.on { opacity: 1; background: var(--lime); box-shadow: 0 0 10px rgba(220, 255, 34, 0.7); }
.ch-light .ch-dots i.on { background: var(--olive); box-shadow: none; }
.ch-main { position: relative; z-index: 1; max-width: 1200px; will-change: transform, opacity; }
.ch-h { font-weight: 250; font-size: clamp(60px, 10.5vw, 196px); line-height: 0.88; letter-spacing: -0.065em; }
.ch-l { display: block; overflow: hidden; padding-bottom: 0.07em; }
.ch-l:last-child { padding-left: 1.1em; }
.ch-in { display: inline-block; will-change: transform; }
.ch-h em { font-style: italic; font-weight: 200; }
.ch-rule { display: block; height: 1px; margin-top: clamp(24px, 4vh, 44px); background: currentColor; opacity: 0.25; transform-origin: left; }
.ch-p { margin-top: 22px; max-width: 40ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; opacity: 0.8; }
@media (max-width: 900px) {
  .chapter { height: 170vh; }
  .ch-pin { padding: 100px var(--g) 64px; }
  .ch-top { top: 92px; flex-wrap: wrap; gap: 10px 14px; }
  .ch-num { font-size: 76vw; top: 42%; }
  .ch-h { font-size: clamp(52px, 15vw, 84px); }
  .ch-l:last-child { padding-left: 0.5em; }
  .ch-p { font-size: 17px; }
}
body.deep .beat-in { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45); } /* keeps text readable with the lighter scrims */

/* Falaj card on phones: full width, docked above the legend */
@media (max-width: 900px) {
  .hx-call { padding: 14px 16px 12px; border-radius: 16px; }
  .hx-call h3 { margin-top: 6px; font-size: 20px; }
  .hx-call-p { font-size: 13px; }
  .hx-call-v { margin-top: 10px; padding-top: 10px; }
  .hx-call-v b { font-size: 24px; }
  .hx-legend { left: var(--g); right: var(--g); bottom: 16px; gap: 12px; font-size: 8px; flex-wrap: wrap; }
  .hx-legend em { display: none; }
}
.hx-call-s { display: none; margin-top: 10px; font-size: 9.5px; color: var(--lime); }
@media (max-width: 900px) { .hx-call-s { display: block; } }

/* ---------------------------------------------------------------- */
/* Sideways track: Medical Operations use cases                       */
/* ---------------------------------------------------------------- */
.cases.ht { height: 380vh; padding: 0; }
.ht-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ht-kick { position: absolute; left: var(--g); top: 104px; z-index: 2; }
.ht-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.case.ht-panel { flex: 0 0 100vw; width: 100vw; height: 100%; padding: 150px var(--g) 96px; gap: 5vw; perspective: 1400px; }
.ht-panel:nth-child(even) .case-vis { order: 2; }
.ht-panel .case-copy { will-change: transform, opacity; }
.ht-prog { position: absolute; left: var(--g); right: var(--g); bottom: 30px; display: flex; gap: clamp(16px, 4vw, 60px); padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 10px; color: rgba(10, 11, 10, 0.38); }
.ht-prog span { transition: color 400ms ease; }
.ht-prog span.is-on { color: var(--ink); }
.ht-prog i { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--olive); transform-origin: left; transform: scaleX(0); }

/* Swipe hint, phones only */
.swipe-hint { display: none; }

@media (max-width: 900px) {
  .case.ht-panel { grid-template-columns: 1fr; align-content: center; gap: 18px; padding: 136px var(--g) 72px; }
  .ht-panel .case-vis, .ht-panel:nth-child(even) .case-vis { order: -1; min-height: 0; padding: 16px; }
  .ht-kick { top: 92px; }
  .ht .phone { zoom: 0.6; }
  .ht .board, .ht .audit { padding: 12px; }
  .ht .case h3 { font-size: clamp(24px, 7vw, 32px); margin-top: 8px; }
  .ht .case-p { font-size: 15px; margin-top: 8px; }
  .ht .meta { margin-top: 12px; padding-top: 12px; }
  .ht-prog { bottom: 22px; gap: 0; padding-bottom: 10px; font-size: 9px; }
  .ht-prog span:not(.is-on) { display: none; }

  /* Phone carousels: swipe sideways instead of a long column */
  .swipe-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--olive); font-size: 10px; }
  .ai-cases .swipe-hint { color: var(--lime); margin-top: 56px; }
  .swipe-hint i { font-style: normal; animation: nudge 1.6s var(--ease) infinite; }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
  .more-g, .case-pair {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-left: calc(var(--g) * -1); margin-right: calc(var(--g) * -1); padding: 4px var(--g) 12px; scroll-padding: 0 var(--g); scrollbar-width: none;
  }
  .more-g::-webkit-scrollbar, .case-pair::-webkit-scrollbar { display: none; }
  .more-g { margin-top: 24px; }
  .case-pair { margin-top: 18px; }
  .more-g > .scr, .case-pair > .case-small { flex: 0 0 84%; scroll-snap-align: start; }
  .more-g > .scr:last-child, .case-pair > .case-small:last-child { margin-right: var(--g); }
}

/* Phones: use-case panels always fit between the label and the progress bar */
@media (max-width: 900px) {
  .case.ht-panel { align-content: start; padding: 128px var(--g) 76px; gap: 14px; }
  .ht-panel .case-vis, .ht-panel:nth-child(even) .case-vis { height: min(38svh, 320px); overflow: hidden; padding: 12px; }
  .ht .board, .ht .audit { zoom: 0.86; }
  .ht .phone { zoom: 0.5; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .case.ht-panel { padding-top: 120px; gap: 12px; }
  .ht-panel .case-vis, .ht-panel:nth-child(even) .case-vis { height: 32svh; }
  .ht .board, .ht .audit { zoom: 0.7; }
  .ht .phone { zoom: 0.4; }
  .ht .case h3 { font-size: 22px; margin-top: 6px; }
  .ht .case-p { font-size: 14px; margin-top: 6px; }
  .ht .meta { margin-top: 10px; padding-top: 10px; gap: 8px 24px; }
  .ht .meta dd { font-size: 13.5px; }
}

/* Phones: card rows driven by scroll (replaces the manual swipe) */
@media (max-width: 900px) {
  .more.hs { padding: 0; }
  .hs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
  .more .hs-pin { padding-left: var(--g); padding-right: var(--g); }
  .ai-cases .hs { margin-top: 40px; }
  .more-g.hs-row, .case-pair.hs-row {
    display: flex; gap: 16px; width: max-content; margin: 18px 0 0; padding: 0; overflow: visible;
    scroll-snap-type: none; will-change: transform;
  }
  .hs-row > .scr, .hs-row > .case-small { flex: 0 0 min(82vw, 340px); margin-right: 0 !important; }
  .hs-row .scr-vis { height: min(300px, 38svh); }
  .hs-row .scr h3 { font-size: 20px; }
  .hs-row .scr > p:last-child { font-size: 14px; }
  .hs-row .case-small .case-vis { min-height: 0; height: min(250px, 32svh); margin-bottom: 14px; padding: 14px; overflow: hidden; }
  .hs-row .claim, .hs-row .slots { zoom: 0.86; }
  .hs-row .case-small h3 { font-size: 22px; margin-top: 8px; }
  .hs-row .case-p { font-size: 14px; margin-top: 6px; }
  .hs-row .meta { margin-top: 10px; padding-top: 10px; }
  .swipe-hint { margin-top: 10px; }
  .ai-cases .swipe-hint { margin-top: 0; }
}
@media (max-width: 900px) {
  .more .hs-pin .sec-h { font-size: clamp(30px, 8.6vw, 40px); margin-top: 12px; }
  .hs-row .scr-vis { height: min(280px, 33svh); }
  .hs-row .scr-n { margin-top: 14px; }
  .hs-row .scr h3 { margin-top: 6px; }
}
