/* Tharaka Hettihamu — one dark world. Three voices in the type: Instrument Serif for the person,
   Geist for the product, Geist Mono for the machine. */

:root {
  --bg: #04050a;
  --surface: #0a0d17;
  --surface-2: #10142a;
  --ink: #eef1ff;
  --ink-soft: #c9cfe4;
  --muted: #8f98b5;
  --line: rgba(140, 160, 255, 0.14);
  --blue: #6b8cff;
  --blue-strong: #2f5bff;
  --hot: #ffb35c;
  --ok: #58cd78;
  --warn: #f9b64f;
  --bad: #ff645f;
  --paper: #f1f1ef;
  --paper-ink: #111111;
  --paper-muted: #5f5f5f;
  --biro: #1a4be0;

  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step-xs: 0.75rem;
  --step-small: 0.875rem;
  --step-body: clamp(1.03rem, 0.98rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.3rem, 1.1rem + 0.6vw, 1.625rem);
  --step-h2: clamp(3rem, 1.2rem + 3.8vw, 5rem);
  --step-display: clamp(4rem, 1rem + 5.6vw, 7rem);

  --margin: clamp(24px, 3vw, 48px);
  --section: clamp(7rem, 11vw, 12rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--step-body); line-height: 1.55; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, p, figure, ol, ul, dl, dd, table { margin: 0; }
ol[class], ul[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--blue-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
:target { scroll-margin-top: 2rem; }
.mono { font-family: var(--mono); font-feature-settings: normal; letter-spacing: 0; }
.nums { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; padding: 0.6rem 1rem; background: var(--ink); color: var(--bg); }
.skip:focus { top: var(--margin); }

h1, h2, h3 { font-weight: 400; text-wrap: balance; }
.display { font-family: var(--serif); font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.018em; }
.head { font-family: var(--serif); font-size: var(--step-h2); line-height: 0.98; letter-spacing: -0.012em; }
.lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.is-noise { color: var(--blue); }
p { text-wrap: pretty; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 3.25rem; padding: 0 1.5rem; background: var(--blue-strong); color: #fff; border-radius: 2px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.button::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 220ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease, color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #2448d6; }
  .button:hover::after { transform: translateX(3px) rotate(45deg); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- the mark ---------- */
.mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.mark__blades { fill: var(--ink); transform-origin: 50px 50px; animation: mark-spin 14s linear infinite; }
.mark__hub { fill: var(--blue); }
.wordmark:hover .mark__blades { animation-duration: 1.4s; }
@keyframes mark-spin { to { transform: rotate(360deg); } }

/* ---------- hero: Tharaka, and the machine's view of the room around him ---------- */
.hero { position: relative; height: 100svh; min-height: 720px; background: var(--bg); overflow: hidden; isolation: isolate; }
.field { position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden; }
.field__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 10% 30%; opacity: 0.5; }
.js .field.is-drawn .field__photo { opacity: 0; }
.field__canvas { position: absolute; inset: 0; }
.field__him { position: absolute; left: 0; display: none; max-width: none; height: auto; translate: var(--lean-x, 0px) var(--lean-y, 0px); will-change: translate; filter: contrast(1.04) saturate(0.94) drop-shadow(1px 0 0 rgba(150, 172, 255, 0.28)); opacity: 0; transition: opacity 1100ms var(--ease-out) 200ms; }
.js .field__him { display: block; }
.js .field.is-drawn .field__him { opacity: 1; }
.field::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, var(--bg) 0, rgba(4, 5, 10, 0.82) 9%, rgba(4, 5, 10, 0) 26%); }
.dets { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.js .field.is-drawn .dets { display: block; }
.det { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 1px solid rgba(107, 140, 255, 0.38); transition: border-color 240ms ease; }
.det.is-off { display: none; }
.det__tag { position: absolute; left: -1px; bottom: 100%; padding: 3px 7px 2px; background: rgba(8, 11, 26, 0.86); box-shadow: inset 0 0 0 1px rgba(107, 140, 255, 0.38); color: #a9bbff; font-family: var(--mono); font-size: 11px; line-height: 1.25; white-space: nowrap; transition: background-color 240ms ease, color 240ms ease; }
.det__tag .is-noise { color: inherit; opacity: 0.55; }
.det--human { border-color: rgba(255, 179, 92, 0.85); translate: var(--lean-x, 0px) var(--lean-y, 0px); }
.det--human .det__tag { background: var(--hot); box-shadow: none; color: var(--bg); }
.det.is-hot { border-color: #fff; }
.det.is-hot .det__tag { background: #fff; color: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  .js .field.is-drawn .det { animation: det-in 700ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
}
@keyframes det-in { from { opacity: 0; scale: 1.08; } }

.nav { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px var(--margin); }
.nav__id { display: flex; align-items: center; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.nav__where { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav__links { display: flex; gap: 30px; font-size: var(--step-small); }
.hero__copy { position: absolute; z-index: 2; right: 0; bottom: 0; width: 46%; padding: 0 var(--margin) clamp(56px, 10vh, 110px); }
.hero__copy .display { max-width: 11.5em; }
.hero__lede { margin-top: 30px; max-width: 34ch; color: var(--ink-soft); font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.5; }
.hero__actions { margin-top: 36px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero__alt { color: var(--ink); }

/* ---------- the live call ---------- */
.agent { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 5vw, 96px); align-items: center; padding: clamp(7rem, 10vw, 10rem) var(--margin); }
.agent__text p { margin-top: 22px; max-width: 36ch; color: var(--ink-soft); }
.agent__text .muted { color: var(--muted); }

.console { --c-bg: #080a12; --c-panel: #0c0f1b; --c-line: rgba(255, 255, 255, 0.07); --c-muted: #7f89a8;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; font-size: 14.5px; line-height: 1.45; box-shadow: 0 60px 120px -60px rgba(47, 91, 255, 0.55); }
.console__bar { display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 18px; background: var(--c-panel); border-bottom: 1px solid var(--c-line); }
.console__state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(255, 100, 95, 0.12); color: #ff9a96; font-size: 12px; font-weight: 500; }
.console__state i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.console.is-live .console__state i { animation: pulse 1.4s ease-in-out infinite; }
.console.is-done .console__state { background: rgba(88, 205, 120, 0.12); color: #8fe3a6; }
.console.is-done .console__state i { background: var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: 0.25; } }
.console__timer { font-size: 13px; color: var(--ink); }
.console__queue { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.console__queue .mono { color: var(--c-muted); font-size: 12px; }
.console__wave { flex: 1; height: 30px; min-width: 60px; }
.console__caller { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: 12px; white-space: nowrap; }
.console__caller svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.console__body { display: grid; grid-template-columns: 1.55fr 1fr; height: 400px; }
.console__talk { display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; }
.console__label { font-size: 11px; color: var(--c-muted); margin-bottom: 12px; }
.console__log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.say { display: grid; gap: 4px; max-width: 86%; }
.say p { padding: 10px 14px; border-radius: 14px; }
.say--caller { align-self: flex-start; }
.say--caller p { background: #141a2c; color: #e6e9f5; border-bottom-left-radius: 4px; }
.say--agent { align-self: flex-end; }
.say--agent p { background: var(--blue-strong); color: #fff; border-bottom-right-radius: 4px; }
.say--you { align-self: flex-end; }
.say--you p { background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.say__meta { font-family: var(--mono); font-size: 11px; color: var(--c-muted); }
.say--agent .say__meta, .say--you .say__meta { text-align: right; }
.say--typing p { display: inline-flex; gap: 5px; padding: 14px 16px; }
.say--typing p i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); animation: dot 1s ease-in-out infinite; }
.say--typing p i:nth-child(2) { animation-delay: 150ms; }
.say--typing p i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: 0.4; } }
.pii { border-radius: 3px; transition: background-color 400ms ease; }
.pii.is-masking { background: rgba(255, 179, 92, 0.3); }
.say--draft p { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(107, 140, 255, 0.6); border-bottom-right-radius: 4px; }
.say__actions { display: flex; gap: 8px; justify-content: flex-end; }
.say__actions button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; }
.say__send { background: var(--blue-strong); color: #fff; }
.say__back { color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.js .say.is-new { animation: say-in 420ms var(--ease-out) both; }
@keyframes say-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.console__trace { display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; border-left: 1px solid var(--c-line); background: rgba(255, 255, 255, 0.015); }
.trace { flex: 1; display: grid; align-content: start; gap: 0; }
.trace li { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 7px 0 9px; color: var(--c-muted); transition: color 300ms ease; }
.trace li::before { content: ""; position: absolute; left: 9px; top: 28px; bottom: -6px; width: 1px; background: var(--c-line); }
.trace li:last-child::before { display: none; }
.trace i { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); margin-top: 1px; transition: background-color 300ms ease, border-color 300ms ease; }
.trace li.is-running i { border-color: var(--blue); border-top-color: transparent; animation: spin 800ms linear infinite; }
.trace li.is-done, .trace li.is-waiting, .trace li.is-declined { color: var(--ink); }
.trace li.is-done i { background: var(--blue); border-color: var(--blue); }
.trace li.is-done i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(45deg); }
.trace li.is-waiting i { border-color: var(--hot); animation: pulse 1.2s ease-in-out infinite; }
.trace li.is-waiting span { color: #ffd39a; }
.trace li.is-declined i { border-color: var(--bad); background: rgba(255, 100, 95, 0.2); }
.trace li.is-skipped { opacity: 0.45; }
@keyframes spin { to { transform: rotate(360deg); } }
.trace span { font-size: 13.5px; }
.trace code { display: block; font-family: var(--mono); font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.trace time { font-family: var(--mono); font-size: 11px; color: var(--c-muted); padding-top: 2px; white-space: nowrap; }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.console__stats dt { font-size: 11px; color: var(--c-muted); }
.console__stats dd { font-size: 15px; color: var(--ink); margin-top: 2px; }
.console__foot { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 14px 18px; background: var(--c-panel); border-top: 1px solid var(--c-line); }
.console__hint { flex: 1; color: var(--c-muted); font-size: 13px; }
.console__take { flex: none; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 13.5px; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.console__take:hover { background: #ffffff; }
.console__take:active, .approval button:active, .say__actions button:active { transform: scale(0.97); }
.console__take[aria-pressed="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.approval { flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 10px; background: rgba(255, 179, 92, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.35); }
.approval[hidden] { display: none; }
.approval:not([hidden]) ~ .console__hint { display: none; }
.js .approval:not([hidden]) { animation: say-in 420ms var(--ease-out) both; }
.approval__tag { font-family: var(--mono); font-size: 11px; color: var(--hot); white-space: nowrap; }
.approval p { flex: 1; font-size: 13.5px; }
.approval button { height: 32px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.approval__yes { background: var(--hot); color: #1a1206; }
.approval__no { color: #ffd39a; box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.4); }

/* ---------- work ---------- */
.work { padding: var(--section) var(--margin) 0; }
.index { display: none; }
.work__panes { display: grid; gap: clamp(4rem, 8vw, 7rem); margin-top: clamp(3rem, 6vw, 5rem); }
.pane { display: grid; gap: 0; background: var(--paper); color: var(--paper-ink); }
.pane__art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.pane__art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pane__text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 8px 40px 40px; }
.pane__text > div > * + * { margin-top: 12px; }
.pane h3 { font-family: var(--serif); font-size: clamp(1.9rem, 1.2rem + 1.2vw, 2.5rem); line-height: 1.02; letter-spacing: -0.01em; }
.pane__meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--paper-muted); }
.pane__meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--biro); box-shadow: 0 0 0 0 rgba(26, 75, 224, 0.5); }
.pane.is-active .pane__meta::before { animation: beacon 2s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(26, 75, 224, 0.45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(26, 75, 224, 0); } }
.pane__text p { color: #2a2a2a; }
.count { font-weight: 600; color: var(--biro); font-variant-numeric: tabular-nums; }
.pane__did { display: grid; gap: 12px; }
.pane__did li { position: relative; padding-left: 1.25em; color: #2a2a2a; }
.pane__did li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 8px; height: 1.5px; background: var(--biro); transform-origin: left; }

.is-pinned .work { padding: 0; height: calc(var(--count, 6) * 70svh + 100svh); }
.is-pinned .work__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 38fr 62fr; }
.is-pinned .work__rail { display: flex; flex-direction: column; justify-content: space-between; padding: 44px var(--margin) 36px; }
.work__rail h2 { max-width: 9.5em; }
.is-pinned .index { display: block; position: relative; }
.index li { position: relative; }
.index a { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0 10px 18px; text-decoration: none; color: #7b84a3; transition: color 300ms ease, transform 400ms var(--ease-out); }
.index a span:first-child { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; }
.index a span:nth-child(2) { font-family: var(--mono); font-size: 11px; text-align: right; white-space: nowrap; }
.index a[aria-current="true"] { color: #fff; transform: translateX(6px); }
.index a:hover { color: #fff; }
.index__marker { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--blue); transition: transform 600ms var(--ease-expo), height 600ms var(--ease-expo); }
.index__progress { position: absolute; left: 18px; right: 0; bottom: 2px; height: 1px; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.is-pinned .work__panes { position: relative; margin: 24px var(--margin) 24px 0; background: var(--paper); overflow: hidden; border-radius: 2px; }
.is-pinned .pane { position: absolute; inset: 0; grid-template-rows: minmax(0, 1fr) auto; visibility: hidden; }
.is-pinned .pane.is-active { visibility: visible; }
.is-pinned .pane__art { aspect-ratio: auto; padding: 24px 40px 0; }

/* ---------- jet ---------- */
.jet { --j-blue: var(--blue); --j-hot: var(--hot); height: 300svh; }
.jet__stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 32px var(--margin) 24px; overflow: hidden; }
.jet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.jet__head .head { font-size: clamp(2.6rem, 1rem + 3vw, 4.25rem); }
.jet__art { flex: 1; min-height: 0; margin-top: 6px; display: flex; align-items: center; justify-content: center; }
.jet__box { position: relative; width: min(100%, calc((100svh - 190px) * 1.944)); aspect-ratio: 1400 / 720; }
.engine { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jet__hint { color: var(--muted); font-size: var(--step-small); }

/* the instruments, after Mission Control's usage rings */
.rings { display: flex; gap: 22px; align-items: center; }
.ring { display: flex; align-items: center; gap: 12px; }
.ring svg { width: 54px; height: 54px; overflow: visible; }
.ring__track { fill: none; stroke: rgba(232, 230, 223, 0.12); stroke-width: 4; }
.ring__arc { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke 300ms ease; }
.ring__inner { fill: none; stroke-width: 2; stroke-linecap: round; opacity: 0.6; }
.ring__num { font-family: var(--mono); font-weight: 700; font-size: 13px; fill: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring__txt dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ring__txt dd { font-family: var(--mono); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ring__txt dd small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }

.g-minor { fill: none; stroke: rgba(107, 140, 255, 0.07); stroke-width: 1; }
.g-major { stroke: rgba(107, 140, 255, 0.12); stroke-width: 1; }
.g-hatch { stroke: rgba(238, 241, 255, 0.28); stroke-width: 1.1; }
.e-axis { stroke: rgba(107, 140, 255, 0.5); stroke-width: 1; stroke-dasharray: 18 6 3 6; }
.e-line { fill: none; stroke: rgba(238, 241, 255, 0.78); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.e-strong { stroke: #fff; stroke-width: 2.2; }
.e-fine { stroke: rgba(238, 241, 255, 0.5); stroke-width: 1; }
.e-pipe { stroke: rgba(107, 140, 255, 0.8); stroke-width: 2.4; }
.e-harness { stroke: rgba(255, 179, 92, 0.55); stroke-width: 1.2; }
.e-wall { fill: url(#jet-hatch); stroke: none; }
.e-wall--core { fill: rgba(107, 140, 255, 0.08); }
.e-liner, .e-cascade { fill: url(#jet-cross); opacity: 0.8; }
.e-box, .e-bearing { fill: rgba(238, 241, 255, 0.06); }
.e-bolt { fill: var(--bg); stroke: rgba(238, 241, 255, 0.85); stroke-width: 1; }
.e-clamp { fill: var(--bg); stroke: rgba(107, 140, 255, 0.9); stroke-width: 1.2; }
.e-nozzle { fill: var(--j-hot); }
.e-hole { fill: var(--bg); stroke: var(--j-hot); stroke-width: 1.2; }
.e-perf { fill: rgba(238, 241, 255, 0.55); }
.e-blade { fill: rgba(238, 241, 255, 0.16); stroke: rgba(238, 241, 255, 0.75); stroke-width: 1; }
.e-blade--hot { fill: rgba(255, 179, 92, 0.14); stroke: rgba(255, 179, 92, 0.8); }
.e-vane { fill: rgba(107, 140, 255, 0.1); stroke: rgba(107, 140, 255, 0.75); stroke-width: 1; }
.e-seal { fill: none; stroke: rgba(255, 179, 92, 0.7); stroke-width: 1; }
.e-rotor { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.e-rotor--hot { stroke: var(--j-hot); }
.e-flame { fill: none; stroke: var(--j-hot); stroke-width: 2.2; stroke-linecap: round; }
.e-shimmer { fill: none; stroke: rgba(255, 179, 92, 0.45); stroke-width: 1.4; stroke-linecap: round; }
.e-shaft { stroke: var(--j-blue); stroke-width: 2.4; stroke-dasharray: 16 10; fill: none; }
.e-shaft--hp { stroke: rgba(238, 241, 255, 0.7); stroke-width: 1.6; }
.e-gear { fill: rgba(238, 241, 255, 0.08); stroke: #fff; stroke-width: 1.2; }
.e-disc { fill: rgba(107, 140, 255, 0.06); }
.e-fanblade { fill: rgba(238, 241, 255, 0.2); stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.e-fanedge { fill: none; stroke: var(--j-blue); stroke-width: 1.4; stroke-linecap: round; }
.e-spinner { fill: #0b0d14; stroke: #fff; stroke-width: 2; }
.e-spiral { fill: none; stroke: var(--j-blue); stroke-width: 3; stroke-linecap: round; }
.e-leader { stroke: rgba(238, 241, 255, 0.34); stroke-width: 1; fill: none; }
.e-dot { fill: var(--j-blue); }
.e-tag rect { fill: #0a0d18; stroke: rgba(107, 140, 255, 0.45); stroke-width: 1; }
.e-tag .e-ico { fill: none; stroke: var(--j-blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.e-tag .e-stage { fill: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.e-tag .e-aero { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.e-tag--product rect { fill: var(--blue-strong); stroke: none; }
.e-tag--product .e-ico { stroke: #fff; }
.e-tag--product .e-aero { fill: rgba(255, 255, 255, 0.7); }
.e-tag { transition: opacity 300ms ease; }
.e-title text { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.e-title rect { fill: none; stroke: rgba(107, 140, 255, 0.3); }
.e-p { stroke: rgba(238, 241, 255, 0.9); stroke-width: 1.4; stroke-linecap: round; }
.e-p--core { stroke: var(--j-blue); stroke-width: 1.8; }
.e-p--hot { stroke: var(--j-hot); stroke-width: 1.8; }
.e-stream { fill: none; stroke: var(--j-blue); stroke-width: 2.4; stroke-linecap: round; }
.js .jet:not(.is-drawing) .e-line, .js .jet:not(.is-started) .e-fills, .js .jet:not(.is-started) .e-move, .js .jet:not(.is-started) .e-air, .js .jet:not(.is-started) .e-notes { opacity: 0; }
.e-fills, .e-move, .e-air, .e-notes { transition: opacity 900ms ease; }

.jet__msgs { position: absolute; inset: 0; pointer-events: none; }
.msg { position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%); width: 25.4%; }
.msg__port { position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--blue); }
.msg__port::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.msg__card { position: relative; margin-left: 16px; padding: 14px 18px 18px; background: #0a0d18; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(107, 140, 255, 0.32), 0 30px 60px -30px rgba(47, 91, 255, 0.6); }
.msg__card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.msg__card img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.msg__card b { font-weight: 500; font-size: 13px; }
.msg__card header .mono { margin-left: auto; font-size: 11px; color: var(--muted); }
.msg__text { font-family: var(--serif); font-size: clamp(1.25rem, 0.9rem + 0.6vw, 1.6rem); line-height: 1.18; letter-spacing: -0.005em; color: var(--ink); }
.msg__text .is-noise { color: var(--blue); }
.jet.is-scrubbed .msg { opacity: 0; }

/* ---------- how I work ---------- */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 120px); padding: clamp(8rem, 12vw, 12rem) var(--margin); align-items: start; }
.about__statement { position: sticky; top: 14vh; }
.about__big { font-family: var(--serif); font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.018em; max-width: 9em; }
.about__who { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.about__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.about__who b { display: block; font-weight: 500; }
.about__who span span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.about__body p { font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.62; color: var(--ink-soft); max-width: 38ch; }
.about__body p + p { margin-top: 1.1em; }
.podcast { margin-top: 48px; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 12px; text-decoration: none; background: var(--surface); border-radius: 4px; transition: background-color 200ms ease; }
.podcast img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.9; }
.podcast__text { display: grid; gap: 4px; }
.podcast__title { font-weight: 500; }
.podcast__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.podcast:hover { background: var(--surface-2); }
.podcast:hover .podcast__title { color: var(--blue); }

/* ---------- flight log ---------- */
.log { padding: 0 var(--margin) clamp(8rem, 12vw, 12rem); }
.log__list { margin-top: clamp(2.5rem, 4vw, 4rem); }
.log__list li { display: grid; grid-template-columns: 9rem 1.2fr 2fr 6rem; gap: 24px; align-items: baseline; padding: 22px 0; box-shadow: inset 0 1px 0 var(--line); transition: background-color 240ms ease, padding 300ms var(--ease-out); }
.log__list li:hover { background: var(--surface); padding-left: 16px; padding-right: 16px; }
.log__year { font-family: var(--serif); font-size: clamp(2.5rem, 1.5rem + 2vw, 3.5rem); line-height: 1; color: var(--blue); }
.log__what { font-size: var(--step-lead); letter-spacing: -0.02em; }
.log__detail { color: var(--muted); }
.log__link { justify-self: end; font-family: var(--mono); font-size: 12px; color: var(--blue); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(8rem, 12vw, 12rem) var(--margin) 0; overflow: hidden; }
.contact__top { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 120px); align-items: end; }
.contact__top .display { font-size: clamp(5rem, 1rem + 9vw, 11rem); }
.contact__side p { color: var(--ink-soft); max-width: 36ch; }
.contact__side .button { margin-top: 28px; }
.contact__where { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--muted) !important; }
.contact__city { display: block; width: 100%; height: auto; margin-top: -4vw; filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(1.05); mix-blend-mode: screen; }

/* ---------- footer ---------- */
.foot { padding: 0 var(--margin) 28px; }
.foot__name { font-family: var(--serif); font-size: clamp(3rem, 12.4vw, 14rem); line-height: 0.86; letter-spacing: -0.03em; white-space: nowrap; margin-top: -1vw; }
.foot__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot__row p:last-child { justify-self: end; }
.foot__links { display: flex; gap: 24px; }
.foot__links a { color: var(--ink); }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mark__blades, .console.is-live .console__state i, .trace li.is-running i, .trace li.is-waiting i, .pane.is-active .pane__meta::before { animation: none; }
}


/* ---------- work: micro-animations (after React Bits' BlurText, DecryptedText, CountUp, TiltedCard, GlareHover) ---------- */
.is-pinned .work__panes { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out); transform-style: preserve-3d; }
.pane h3 .w { position: relative; display: inline-block; backface-visibility: hidden; transform-origin: 50% 0%; }
.pane h3 .w::after { content: attr(data-fold-text); position: absolute; inset: 0; pointer-events: none; color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%); -webkit-background-clip: text; background-clip: text; opacity: var(--fold-crease, 0); }
/* StatusMark */
.smark { display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px; color: #7b84a3; transition: color 300ms ease; }
.index a[aria-current="true"] .smark { color: var(--blue); }
.smark svg { width: 100%; height: 100%; overflow: visible; }
.smark__track { fill: none; stroke: rgba(238, 241, 255, 0.14); stroke-width: 2; }
.smark__ring { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.smark__check { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.05; opacity: 0; transition: stroke-dashoffset 160ms var(--ease-out), opacity 0ms linear 160ms; }
.smark[data-status="done"] .smark__check { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 240ms var(--ease-out) 120ms, opacity 0ms linear 120ms; }
@media (prefers-reduced-motion: no-preference) {
  .pane.is-play .pane__meta { animation: rise-in 600ms var(--ease-out) both 220ms; }
  .pane.is-play .pane__text > div > p:not(.pane__meta) { animation: rise-in 700ms var(--ease-out) both 320ms; }
  .pane.is-play .pane__did li { animation: rise-in 700ms var(--ease-out) both; animation-delay: calc(420ms + var(--b) * 90ms); }
  .pane.is-play .pane__did li::before { animation: dash-in 600ms var(--ease-out) both; animation-delay: calc(560ms + var(--b) * 90ms); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dash-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ring__track--in { stroke-width: 2; }
.ring__num--sm { font-size: 10.5px; }
.ring__txt { display: grid; gap: 1px; }
.ring__txt .ring__sub { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.3; }

/* the fire: a WebGL layer over the drawing, added with screen */
.jet__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }


/* ---------- stage cards (small screens) ---------- */
.jet__stages { display: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 63.99em) {
  :root { --section: 96px; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .field { position: relative; inset: auto; height: 72svh; min-height: 480px; }
  .hero__copy { position: relative; right: auto; bottom: auto; width: 100%; padding: 12px var(--margin) 80px; }
  .hero__copy .display { max-width: none; }

  .agent { grid-template-columns: 1fr; padding: 96px var(--margin); }
  .console__body { grid-template-columns: 1fr; height: auto; }
  .console__talk { height: 380px; }
  .console__trace { border-left: 0; border-top: 1px solid var(--c-line); }
  .console__foot { flex-wrap: wrap; }
  .approval { flex-wrap: wrap; }

  .work { padding-top: 96px; }
  .work__rail h2 { max-width: none; }
  .work__panes { margin-top: 40px; gap: 32px; }
  .pane__art { padding: 16px 16px 0; }
  .pane__text { grid-template-columns: 1fr; gap: 20px; padding: 8px 24px 28px; }

  .jet { height: auto; }
  .jet__stage { position: relative; height: auto; padding: 96px var(--margin) 56px; overflow: visible; }
  .jet__head { flex-direction: column; gap: 20px; }
  .rings { flex-wrap: wrap; }
  .jet__art { margin-top: 20px; }
  .jet__box { width: 100%; }
  .e-tag, .e-title, .e-stream { display: none; }
  .jet__msgs { position: static; display: grid; gap: 12px; margin-top: 16px; pointer-events: auto; }
  .msg { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .msg__port { display: none; }
  .msg__card { margin-left: 0; }
  .jet.is-scrubbed .msg { opacity: 1; }
  .jet__stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .jet__stages li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 12px 14px; background: #0a0d18; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(107, 140, 255, 0.3); }
  .jet__stages svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .jet__stages b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
  .jet__stages li > span > span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .jet__stages li.is-product { background: var(--blue-strong); box-shadow: none; }
  .jet__stages li.is-product svg { stroke: #fff; }
  .jet__stages li.is-product li > span > span, .jet__stages li.is-product span span { color: rgba(255, 255, 255, 0.75); }
  .jet__hint { margin-top: 20px; }

  .about { grid-template-columns: 1fr; gap: 40px; padding: 96px var(--margin); }
  .about__statement { position: static; }
  .log { padding-bottom: 96px; }
  .log__list li { grid-template-columns: 4.6rem 1fr; gap: 4px 16px; padding: 18px 0; }
  .log__list li:hover { padding-left: 0; padding-right: 0; background: none; }
  .log__year { grid-row: span 3; font-size: 2.4rem; }
  .log__what, .log__detail, .log__link { grid-column: 2; }
  .log__link { justify-self: start; }
  .contact { padding-top: 96px; }
  .contact__top { grid-template-columns: 1fr; gap: 28px; }
  .contact__city { margin-top: 24px; }
  .foot__row { grid-template-columns: 1fr; gap: 10px; }
  .foot__row p:last-child { justify-self: start; }
}

@media (max-width: 47.99em) {
  .nav { padding: 18px var(--margin); }
  .nav__where { display: none; }
  .wordmark { font-size: 1.4rem; gap: 10px; }
  .mark { width: 24px; height: 24px; }
  .nav__links { gap: 18px; }
  .nav__links a:nth-child(2) { display: none; }
  .field { height: 66svh; min-height: 440px; }
  .hero__actions { gap: 20px; }
  .hero__actions .button { flex: 1 1 100%; justify-content: center; }
  .hero__copy .display { font-size: clamp(2.9rem, 1rem + 8vw, 4rem); }
  .head { font-size: clamp(2.5rem, 1rem + 6vw, 3.25rem); }
  .console { font-size: 14px; border-radius: 12px; }
  .console__bar { gap: 10px; padding: 0 14px; }
  .console__queue, .console__caller { display: none; }
  .console__talk, .console__trace { padding: 14px; }
  .say { max-width: 92%; }
  .console__stats { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .ring svg { width: 46px; height: 46px; }
  .rings { gap: 18px; }
  .jet__stages { grid-template-columns: 1fr; }
  .about__big { font-size: clamp(3rem, 1rem + 9vw, 4rem); }
  .contact__top .display { font-size: clamp(4rem, 1rem + 13vw, 5.5rem); }
  .podcast { grid-template-columns: 112px 1fr; gap: 14px; }
  .podcast img { width: 112px; }
  .log__what { font-size: 1.15rem; }
}


/* narrow screens: the drawing keeps its own box, the cards flow beneath it */
@media (max-width: 63.99em) {
  .jet__box { aspect-ratio: auto; }
  .engine { position: relative; inset: auto; height: auto; aspect-ratio: 1400 / 720; }
  .jet__fx { inset: 0 0 auto 0; height: auto; aspect-ratio: 1400 / 720; }
}

/* on small screens the drawing keeps readable strokes */
@media (max-width: 63.99em) {
  .engine path, .engine line, .engine ellipse, .engine circle, .engine rect { vector-effect: non-scaling-stroke; }
  .e-line { stroke-width: 0.9; }
  .e-strong { stroke-width: 1.3; }
  .e-fine, .g-minor, .g-major { stroke-width: 0.6; }
  .e-fanblade { stroke-width: 0.9; }
  .e-p, .e-p--core, .e-p--hot { stroke-width: 1; }
}
@media (max-width: 47.99em) { .hero__copy { padding-top: 32px; } }

/* ---------- the launch gate ---------- */
.gate { position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink); overflow: hidden; }
html.is-open .gate:not(.is-gone) { display: none; }
html:not(.is-open) body { overflow: hidden; }
html:not(.is-open) .hero [data-rise] { animation-play-state: paused; }
.gate__stage { position: absolute; inset: 0; }
.gate__sky, .gate__scene, .gate__fire { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gate__fire { mix-blend-mode: screen; }
.gate__scene { overflow: visible; }
.r-plate { fill: #0a0d17; stroke: #c3cdf5; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.r-dark { fill: #070912; }
.r-line { fill: none; stroke: #c3cdf5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-fine { fill: none; stroke: rgba(195, 205, 245, 0.42); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.r-rim { stroke: rgba(195, 205, 245, 0.22); }
.r-ground { stroke: rgba(107, 140, 255, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-far { fill: #05070f; stroke: rgba(107, 140, 255, 0.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-beacon { fill: var(--bad); animation: beacon 1.6s steps(1) infinite; }
@keyframes beacon { 50% { opacity: 0.15; } }
.r-mark { fill: #c3cdf5; }
.r-type { fill: rgba(195, 205, 245, 0.7); font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; }
.gate__hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; padding: 24px var(--margin); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gate__panel { position: absolute; left: var(--margin); bottom: calc(14vh + 44px); width: min(31rem, 42vw); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.gate__title { font-family: var(--serif); font-size: clamp(3rem, 1rem + 4.2vw, 5.4rem); line-height: 0.95; letter-spacing: -0.015em; text-wrap: balance; }
.gate__lede { margin-top: 18px; color: var(--ink-soft); font-size: 1.125rem; }
.gate__label { display: block; margin-top: 34px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gate__row { display: flex; gap: 10px; margin-top: 10px; }
.gate__row input { flex: 1; min-width: 0; height: 3.25rem; padding: 0 1rem; background: #0a0d17; border: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(107, 140, 255, 0.4); color: var(--ink); font: 500 1.1rem/1 var(--mono); letter-spacing: 0.24em; }
.gate__row input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px rgba(47, 91, 255, 0.28); }
.gate__status { margin-top: 14px; min-height: 1.4em; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gate__status.is-bad { color: var(--warn); }
.gate__status.is-go { color: var(--ok); }
.gate__panel.is-shake { animation: gate-shake 420ms var(--ease-out); }
@keyframes gate-shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.gate.is-launching .gate__panel { opacity: 0; transform: translateY(14px); pointer-events: none; }
.gate__count { position: absolute; left: var(--margin); bottom: calc(14vh + 44px); font-family: var(--serif); font-size: clamp(7rem, 3rem + 11vw, 14rem); line-height: 0.85; letter-spacing: -0.02em; opacity: 0; pointer-events: none; }
.gate.is-launching .gate__count { opacity: 1; transition: opacity 300ms ease 250ms; }
.gate__count.is-tick { animation: tick 700ms var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(6px); } }
.gate__tele { position: absolute; right: var(--margin); bottom: 24px; display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; }
.gate__tele div { display: flex; gap: 8px; }
.gate__tele dt { color: var(--muted); }
.gate__tele dd { min-width: 5.5em; color: var(--ink); font-variant-numeric: tabular-nums; }
.gate.is-gone { opacity: 0; transition: opacity 800ms ease; pointer-events: none; }
.gate__noscript { position: absolute; left: var(--margin); top: 50%; font-size: 1.125rem; }
@media (max-width: 47.99em) {
  .gate__panel, .gate__count { right: var(--margin); width: auto; bottom: 28px; }
  .gate__title { font-size: clamp(2.4rem, 1rem + 7vw, 3.2rem); }
  .gate__lede { margin-top: 10px; font-size: 1rem; }
  .gate__label { margin-top: 18px; }
  .gate__hud { padding: 18px var(--margin); font-size: 11px; }
  .gate__tele { display: none; }
}
