:root {
  color-scheme: light;
  --bg: #f5f5f1;
  --ink: #1b1a1d;
  --muted: #777477;
  --box: #e9e9e4;
  --box-strong: #deded8;
  --line: rgba(27, 26, 29, .09);
  --accent: #d95332;
  --success: #317a54;
  --warning: #bd6b28;
  --text: var(--ink);
  --surface: var(--box);
  --border: var(--line);
  --blue: #3267c8;
  --blue-hover: #214f9f;
  --green: var(--success);
  --orange: var(--warning);
  --red: #ba493f;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 13px; line-height: 1.6; letter-spacing: -.006em; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
h1, h2, h3, p { margin-top: 0; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 8px 12px; background: var(--ink); color: var(--bg); text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.corner-nav { position: fixed; top: 26px; right: 30px; z-index: 10; display: flex; gap: 18px; font-size: 11px; }
.corner-nav a { color: color-mix(in srgb, var(--ink) 58%, transparent); text-decoration: none; transition: color .16s ease; }
.corner-nav a:hover { color: var(--ink); }
.page { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 92px 20px 112px; }
.hero { min-height: 970px; }
.brand-mark { display: inline-block; margin-bottom: 178px; }
.brand-mark img { display: block; width: 36px; height: 36px; }
.hero-copy { max-width: 470px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 47px); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; text-wrap: balance; }
.hero-copy > p { max-width: 440px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 0; border-radius: 9px; padding: 12px 15px 12px 20px; background: var(--ink); color: var(--bg); cursor: pointer; font-weight: 500; transition: opacity .16s ease, transform .15s ease, background-color .2s ease; }
.primary-button:hover { opacity: .88; }
.primary-button:active { transform: scale(.98); }
.primary-button.is-copied { background: var(--success); opacity: 1; }
.button-key { border: 1px solid rgba(255,255,255,.19); border-radius: 4px; padding: 1px 5px; font-family: var(--mono); font-size: 9px; font-weight: 400; }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 500; text-decoration: none; }
.arrow-link svg { width: 28px; height: 13px; overflow: visible; }
.arrow-link path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow-head { transition: transform .3s var(--ease); }
.arrow-tail { stroke-dasharray: 24; stroke-dashoffset: 13; transition: stroke-dashoffset .3s var(--ease); }
.arrow-link:hover .arrow-head { transform: translateX(11px); }
.arrow-link:hover .arrow-tail { stroke-dashoffset: 0; }
.install-note { display: flex; gap: 10px; align-items: center; margin: 13px 0 0 2px; color: var(--muted); font-size: 9px; }
.install-note code { color: var(--ink); font-family: var(--mono); }
.install-note span::before { content: "·"; margin-right: 10px; }

.hero > * { opacity: 0; transform: translateY(12px); animation: hero-enter .7s var(--ease) forwards; }
.hero > :nth-child(1) { animation-delay: .04s; }
.hero > :nth-child(2) { animation-delay: .12s; }
.hero > :nth-child(3) { animation-delay: .2s; }
.hero > :nth-child(4) { animation-delay: .28s; }
.hero > :nth-child(5) { animation-delay: .42s; }
@keyframes hero-enter { to { opacity: 1; transform: translateY(0); } }

.hero-scene, .product-scene { background: var(--box); border-radius: 7px; overflow: hidden; }
.hero-scene { margin-top: 104px; box-shadow: 0 26px 70px rgba(51, 47, 40, .08); }
.scene-toolbar, .scene-caption { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 16px; color: var(--muted); font-size: 10px; }
.status-light { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--success); animation: status-pulse 2.2s ease-in-out infinite; }
@keyframes status-pulse { 50% { opacity: .38; } }
.scene-body { padding: 22px; }
.task-line { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.task-index { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: white; font-size: 9px; }
.task-line div { display: grid; gap: 2px; }
.task-line small, .runway-window small, .story-number, .sequence-row small, .window-card small, .scene-agents small { color: var(--muted); font-size: 9px; font-weight: 400; }
.task-line strong { font-weight: 500; }
.runway-window { display: grid; grid-template-columns: 1fr 48px; gap: 7px 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 17px 0; }
.runway-window div { display: flex; align-items: baseline; gap: 10px; }
.runway-window strong { font-family: var(--mono); font-size: 11px; font-weight: 500; text-align: right; }
.runway-track, .window-meter { grid-column: 1 / -1; height: 4px; background: rgba(27,26,29,.1); overflow: hidden; }
.runway-track i, .window-meter i { display: block; height: 100%; background: var(--success); transform: scaleX(0); transform-origin: left; transition: transform 1s .18s var(--ease); }
.is-visible .runway-track i, .is-visible .window-meter i { transform: scaleX(1); }
.bar-62 { width: 62%; }
.bar-18 { width: 18%; }
.runway-track i.warning, .window-meter i.warning { background: var(--warning); }
.agent-decision { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding-top: 20px; }
.agent-decision span { color: var(--muted); font-size: 10px; }
.agent-decision strong { font-weight: 500; }

.story-section { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 44px; align-items: start; margin-top: 240px; }
.story-copy { grid-column: 2; grid-row: 1; }
.story-number { display: block; margin-bottom: 18px; }
.story-copy h2 { margin-bottom: 12px; font-size: 19px; font-weight: 500; line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.story-copy p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.55; text-wrap: pretty; }
.product-scene { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; min-width: 0; padding: 16px; }
.scene-sequence { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.sequence-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; border-radius: 5px; padding: 11px 12px; background: rgba(255,255,255,.43); opacity: .58; transform: translateY(8px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.is-visible .sequence-row { opacity: 1; transform: translateY(0); }
.is-visible .sequence-row:nth-child(2) { transition-delay: .14s; }
.is-visible .sequence-row:nth-child(3) { transition-delay: .28s; }
.sequence-row.active { box-shadow: inset 0 0 0 1px rgba(27,26,29,.1); background: rgba(255,255,255,.75); }
.sequence-row div { display: grid; gap: 1px; }
.sequence-row strong { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sequence-state { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(27,26,29,.08); color: var(--muted); font-size: 8px; }
.sequence-state.is-done { background: var(--success); color: white; }
.sequence-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: status-pulse 1.5s ease-in-out infinite; }
.scene-windows { padding: 0; }
.window-card { position: relative; margin: 13px 16px 0; border-radius: 5px; padding: 13px; background: rgba(255,255,255,.46); }
.window-card.selected { background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(27,26,29,.09); }
.window-heading { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 10px; }
.window-heading strong { font-family: var(--mono); font-weight: 500; }
.window-card small { display: block; margin-top: 7px; color: var(--warning); }
.decision-chip { width: max-content; margin: 14px 16px; border-radius: 4px; padding: 6px 9px; background: var(--ink); color: var(--bg); font-size: 9px; }
.scene-agents { padding: 0; }
.scene-agents ul { margin: 0; padding: 5px 16px 12px; list-style: none; }
.scene-agents li { display: grid; grid-template-columns: 1fr 64px 16px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 10px; }
.scene-agents li:last-child { border-bottom: 0; }
.scene-agents i { color: var(--success); font-style: normal; text-align: right; }

[data-reveal] { opacity: 0; filter: blur(6px); transform: translateY(26px) scale(.985); transition: opacity .75s var(--ease), filter .75s var(--ease), transform .75s var(--ease); }
[data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
.closing { max-width: 470px; margin-top: 230px; }
.closing > p { max-width: 430px; margin-bottom: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.02em; text-wrap: pretty; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 24px; border-top: 1px solid var(--line); margin-top: 190px; padding-top: 24px; color: var(--muted); font-size: 9px; }
.site-footer p { margin: 0; }
.site-footer strong { color: var(--ink); font-weight: 500; }
.site-footer p:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; border-radius: 6px; padding: 10px 13px; background: var(--ink); color: var(--bg); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s var(--ease); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 680px) {
  .corner-nav { top: 18px; right: 20px; }
  .page { width: min(100% - 30px, 560px); padding: 70px 5px 80px; }
  .hero { min-height: 860px; }
  .brand-mark { margin-bottom: 130px; }
  h1 { font-size: clamp(32px, 10vw, 42px); }
  .hero-scene { margin-top: 78px; }
  .scene-body { padding: 16px; }
  .runway-window div { display: grid; gap: 1px; }
  .agent-decision { grid-template-columns: 1fr; gap: 4px; }
  .story-section { display: flex; flex-direction: column; gap: 28px; margin-top: 150px; }
  .story-copy { order: 1; max-width: 320px; }
  .product-scene { order: 2; width: 100%; }
  .closing { margin-top: 160px; }
  .site-footer { display: block; margin-top: 130px; line-height: 2; }
  .site-footer p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero > *, [data-reveal], .sequence-row { opacity: 1; filter: none; transform: none; }
  .runway-track i, .window-meter i { transform: scaleX(1); }
}
