/* GodTerm site: calm graphite, warm ink, sage and sand. No glows, no neon. */
:root {
  --bg: #141516; --bg2: #1b1c1e; --card: #1e1f21; --card2: #232426;
  --line: rgba(238, 233, 224, 0.10); --line2: rgba(238, 233, 224, 0.18); --line3: rgba(238, 233, 224, 0.32);
  --ink: #eee9e0; --ink2: #b8b2a7; --ink3: #85807a;
  --sage: #a3b59a; --sand: #d3bf94;
  --dot1: #b9786c; --dot2: #c7a96a; --dot3: #8ea283; /* muted traffic lights */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 32px;
  --nav-h: 56px;
}
@media (max-width: 720px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink2); }
code { font-family: var(--mono); font-size: .88em; background: rgba(238, 233, 224, .06); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; color: var(--ink); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(211, 191, 148, .35); color: var(--ink); }

/* ---------- nav: frosted, translucent */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); background: rgba(20, 21, 22, .62); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(20, 21, 22, .74); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--display); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin: 0 auto; }
.nav-links a { color: var(--ink2); text-decoration: none; font-size: 13.5px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); text-decoration: none; font: 500 12.5px var(--mono); padding: 6px 8px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-gh:hover { color: var(--ink); background: rgba(238, 233, 224, .06); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-end { margin-left: auto; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #161718; }
.btn-primary:hover { background: #fff8ee; }
.btn-ghost { background: rgba(238, 233, 224, .04); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(238, 233, 224, .08); border-color: var(--line3); }
.btn-small { height: 32px; padding: 0 14px; font-size: 13px; gap: 7px; }
.btn-small.btn-primary, .nav .btn { background: var(--ink); color: #161718; }
.dl-ico { display: inline-flex; }
.dl-ico:empty { display: none; }
.nav .dl-ico svg { width: 14px; height: 14px; }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; margin-left: 2px; }

/* ---------- the live laptop: one fixed stage behind the hero and the overview */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 62%, rgba(238, 233, 224, .055), transparent 70%); }
.stage-canvas, .stage-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-canvas { opacity: 0; transition: opacity .7s var(--ease); }
.stage-still { object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .7s var(--ease); }
.gl .stage-canvas { opacity: 1; }
.gl .stage-still { opacity: 0; }
/* without the live laptop: the still sits in the hero, right under the copy (--copy-b is measured by films.js) */
html:not(.gl):not(.gl-pending) .stage-still { opacity: 1; position: relative; inset: auto; width: var(--still-w); height: auto; margin: 0 auto; object-fit: initial; }
.stage.off { visibility: hidden; }
/* without the live laptop (reduced motion, no WebGL): the still sits under the hero copy, and no fixed stage */
html:not(.gl):not(.gl-pending) { --still-w: min(760px, 86vw); }
html:not(.gl):not(.gl-pending) .stage { position: absolute; top: var(--copy-b, 72vh); bottom: auto; height: auto; }
html:not(.gl):not(.gl-pending) .stage::before { display: none; }
html:not(.gl):not(.gl-pending) .stage-canvas { display: none; }

main, .footer { position: relative; z-index: 1; }

/* ---------- hero */
.hero { position: relative; height: 230vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero-copy { padding-top: calc(var(--nav-h) + clamp(28px, 7vh, 84px)); text-align: center; display: flex; flex-direction: column; align-items: center; opacity: calc(1 - var(--hp, 0) * 2.6); transform: translateY(calc(var(--hp, 0) * -90px)); will-change: opacity, transform; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(30, 31, 33, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink2); font-size: 13px; text-decoration: none; transition: border-color .2s, color .2s; }
.eyebrow:hover { color: var(--ink); border-color: var(--line3); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.eyebrow [data-version] { color: var(--ink); font-weight: 600; }
.eyebrow-sep { width: 1px; height: 12px; background: var(--line2); }
.eyebrow-arrow { color: var(--ink3); font-size: 16px; line-height: 1; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 7.4vw, 96px); font-weight: 700; letter-spacing: -.042em; line-height: .98; max-width: 11.5em; }
.lede { margin: 22px auto 0; max-width: 640px; color: var(--ink2); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.dl-meta { margin: 14px 0 0; font-size: 13px; color: var(--ink3); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.dl-meta a { color: var(--ink2); text-decoration: none; }
.dl-meta a:hover { color: var(--ink); }
.dl-meta > * + *::before, .dl-meta a.sep::before { content: "·"; margin: 0 9px; color: var(--ink3); }
.curl-box { margin-top: 22px; width: min(100%, 520px); }
.win-note { margin: 18px auto 0; max-width: 520px; color: var(--ink2); font-size: 14px; }
.hero-tag { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(14px, 3.2vh, 40px)); margin: 0; text-align: center; font: 600 clamp(22px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.025em; color: var(--ink); opacity: clamp(0, calc((var(--hp, 0) - .62) * 4), 1); transform: translateY(calc((1 - clamp(0, calc((var(--hp, 0) - .62) * 4), 1)) * 24px)); pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 40px; margin-left: -13px; border: 1px solid var(--line2); border-radius: 14px; opacity: calc(1 - var(--hp, 0) * 6); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink2); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
html:not(.gl):not(.gl-pending) .hero { height: auto; min-height: 100vh; }
html:not(.gl):not(.gl-pending) .hero-sticky { position: relative; height: auto; min-height: calc(var(--copy-b, 72vh) + var(--still-w) * 0.79 + 40px); }
html:not(.gl):not(.gl-pending) .hero-copy { opacity: 1; transform: none; }
html:not(.gl):not(.gl-pending) .hero-tag, html:not(.gl):not(.gl-pending) .scroll-cue { display: none; }

/* ---------- command lines and macOS windows */
.cmd { display: flex; align-items: center; gap: 10px; min-width: 0; background: rgba(27, 28, 30, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 6px 6px 14px; font-size: 13.5px; }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: inherit; color: var(--ink); white-space: nowrap; overflow-x: auto; scrollbar-width: none; text-align: left; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .prompt { color: var(--sage); user-select: none; }
.copy { flex: none; font: 500 12.5px var(--sans); color: var(--ink2); background: rgba(238, 233, 224, .06); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.copy:hover { color: var(--ink); background: rgba(238, 233, 224, .1); border-color: var(--line3); }
.window { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -40px rgba(0, 0, 0, .7), 0 12px 30px -18px rgba(0, 0, 0, .5); }
.win-bar { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--card2); border-bottom: 1px solid var(--line); }
.win-bar i, .lb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot1); flex: none; }
.win-bar i:nth-of-type(1) { background: var(--dot1); }
.win-bar i:nth-of-type(2) { background: var(--dot2); }
.win-bar i:nth-of-type(3) { background: var(--dot3); }
.lb-player .win-bar i:nth-of-type(1) { background: var(--dot2); }
.lb-player .win-bar i:nth-of-type(2) { background: var(--dot3); }
.win-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--ink3); pointer-events: none; padding: 0 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- overview: chapters scroll beside the laptop */
.tour { position: relative; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.chapter-inner { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: center; }
.chapter-copy { padding: 28px 0; opacity: var(--cv, 1); transform: translateY(calc((1 - var(--cv, 1)) * 28px)); }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.chapter h3 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; }
.chapter p { color: var(--ink2); font-size: 17px; line-height: 1.6; margin: 20px 0 0; }
.film-link { margin-top: 26px; display: inline-flex; text-align: left; align-items: center; gap: 10px; font: 500 14px var(--sans); color: var(--ink); background: rgba(238, 233, 224, .05); border: 1px solid var(--line2); border-radius: 999px; padding: 9px 16px 9px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.film-link:hover { background: rgba(238, 233, 224, .1); border-color: var(--line3); }
.film-link .play-ico { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; color: var(--sage); }
.dim { color: var(--ink3); font-family: var(--mono); font-size: 12px; }
.chapter-shot { display: none; margin: 0; }
.chapter-shot img { width: 100%; height: auto; }
/* without the live laptop each chapter shows its screen in a window */
html:not(.gl):not(.gl-pending) .tour { background: var(--bg); }
html:not(.gl):not(.gl-pending) .chapter { min-height: 0; padding: 72px 0; }
html:not(.gl):not(.gl-pending) .chapter-inner { grid-template-columns: minmax(0, 400px) 1fr; gap: 56px; }
html:not(.gl):not(.gl-pending) .chapter-shot { display: block; }
html:not(.gl):not(.gl-pending) .chapter-copy { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .chapter { align-items: flex-end; padding-bottom: 6vh; }
  .chapter-inner { grid-template-columns: 1fr; }
  .chapter-copy { background: rgba(27, 28, 30, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 22px; }
  .chapter h3 { font-size: 30px; }
  .chapter p { font-size: 15.5px; margin-top: 12px; }
  .film-link { margin-top: 18px; }
  html:not(.gl):not(.gl-pending) .chapter { padding: 40px 0; }
  html:not(.gl):not(.gl-pending) .chapter-inner { grid-template-columns: 1fr; gap: 20px; }
  html:not(.gl):not(.gl-pending) .chapter-copy { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- solid sections slide over the stage */
.solid { position: relative; z-index: 2; background: var(--bg); box-shadow: 0 -40px 80px 0 var(--bg); }
.section { padding: clamp(80px, 12vw, 150px) 0 0; }
.section h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.section .sub { margin-top: 18px; max-width: 640px; color: var(--ink2); font-size: 18px; line-height: 1.55; }
.sub a { color: var(--ink); }

/* reveals: eased in once, as they enter */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- best-of film */
.best { margin: 48px auto 0; max-width: 1100px; }
.best { position: relative; }
.best video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f1011; }
.best-play { position: absolute; left: 0; right: 0; top: 36px; bottom: 0; border: 0; padding: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 21, 22, .55)); cursor: pointer; color: var(--ink); }
.best-play .film-play { opacity: 1; transform: none; width: 76px; height: 76px; margin: -38px 0 0 -38px; transition: transform .35s var(--ease), background .25s; }
.best-play .film-play::after { left: 30px; top: 25px; border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }
.best-play:hover .film-play { transform: scale(1.06); background: #fff8ee; }
.best-label { position: absolute; left: 24px; bottom: 20px; font: 500 15px var(--sans); display: inline-flex; gap: 10px; align-items: baseline; }
.best-play:focus-visible { outline-offset: -4px; border-radius: 0 0 14px 14px; }
.facts { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font: 600 clamp(20px, 2.2vw, 28px) var(--display); letter-spacing: -.02em; }
.facts span { color: var(--ink3); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 8px; } }

/* ---------- film grid */
.films h2 { max-width: 14em; }
.film-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.film { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease); }
.film-big { grid-column: span 3; }
.film:hover { border-color: var(--line2); }
.js .film.reveal.in:hover { transform: translateY(-3px); }
.film-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0f1011; cursor: pointer; overflow: hidden; border-radius: 0; }
.film-thumb:focus-visible { outline-offset: -3px; border-radius: 18px 18px 0 0; }
.film-thumb img, .film-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.film-thumb video { opacity: 0; }
.film-thumb.playing video { opacity: 1; }
.film:hover .film-thumb img { transform: scale(1.025); }
.film-num, .film-dur { position: absolute; font-size: 12px; color: var(--ink); background: rgba(20, 21, 22, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line2); }
.film-num { left: 14px; top: 12px; border-radius: 999px; padding: 3px 10px; }
.film-dur { right: 14px; bottom: 12px; border-radius: 7px; padding: 2px 8px; }
.film-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(238, 233, 224, .92); opacity: 0; transform: scale(.88); transition: opacity .3s, transform .3s var(--ease); }
.film-play::after { content: ""; position: absolute; left: 23px; top: 19px; border-left: 17px solid #161718; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.film-thumb:hover .film-play, .film-thumb:focus-visible .film-play { opacity: 1; transform: none; }
@media (hover: none) { .film-play { opacity: .9; transform: scale(.8); } }
.film-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.film-title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.film-big .film-title { font-size: 25px; }
.film-headline { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.5; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ticks li { position: relative; padding-left: 16px; color: var(--ink2); font-size: 13.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: .85; }
@media (max-width: 1000px) { .film-grid { grid-template-columns: 1fr 1fr; gap: 18px; } .film, .film-big { grid-column: span 1; } }
@media (max-width: 620px) { .film-grid { grid-template-columns: 1fr; } }

/* ---------- details */
.detail-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail { padding: 30px 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.detail h3::before { content: ""; display: block; width: 18px; height: 2px; background: var(--sand); border-radius: 2px; margin-bottom: 18px; opacity: .8; }
.detail p { margin: 10px 0 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .detail-grid { grid-template-columns: 1fr; } .detail { padding: 24px 4px 26px 18px; } }

/* ---------- install */
.install-wrap { max-width: 900px; }
.terminal { margin: 44px auto 0; }
.terminal .cmd { background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 22px 16px 6px 22px; font-size: 15px; }
.term-note { margin: 0; padding: 0 22px 20px; color: var(--ink3); font-size: 12.5px; }
.tabs { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.tablist { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); width: max-content; max-width: 100%; margin: 0 auto 20px; overflow-x: auto; scrollbar-width: none; }
.tablist button { font: 500 13.5px var(--sans); color: var(--ink2); background: none; border: 0; border-radius: 8px; padding: 7px 16px; cursor: pointer; transition: color .2s, background .25s; white-space: nowrap; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { background: rgba(238, 233, 224, .12); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.panel > p { color: var(--ink2); font-size: 15px; margin: 0 0 14px; }
.panel .note { font-size: 14px; color: var(--ink3); margin: 18px 0 8px; }
.panel .note a { color: var(--ink2); }
.panel .cmd + .cmd { margin-top: 8px; }
.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dl { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; transition: border-color .2s, background .2s; }
.dl:hover { border-color: var(--line3); background: #202123; }
.dl b { font-weight: 600; font-size: 14.5px; }
.dl span { color: var(--ink3); font-size: 12.5px; }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(211, 191, 148, .28); background: rgba(211, 191, 148, .06); color: var(--ink2); font-size: 14px; }
.callout b { color: var(--ink); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2); font: 500 13px var(--mono); color: var(--sand); }
.step h3 { margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin: 8px 0 0; color: var(--ink2); font-size: 14.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } .tabs { padding: 16px; } }

/* ---------- FAQ */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 2px; position: relative; font: 600 17.5px var(--display); letter-spacing: -.01em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--ink2); border-bottom: 1.5px solid var(--ink2); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: #fff8ee; }
.faq details p { margin: 0 0 18px; color: var(--ink2); font-size: 15px; line-height: 1.65; max-width: 720px; }
.faq details p:last-child { margin-bottom: 26px; }

/* ---------- final + footer */
.final { padding-bottom: clamp(80px, 12vw, 140px); }
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-inner img { border-radius: 20px; }
.final h2 { margin-top: 26px; font-size: clamp(32px, 4.6vw, 58px); }
.center-row { justify-content: center; }
.fine { color: var(--ink3); font-size: 13px; margin: 18px 0 0; }
.fine a { color: var(--ink2); }
.footer { border-top: 1px solid var(--line); background: var(--bg); padding: 34px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.footer .brand { font-size: 15px; align-self: center; }
.footer .fine { margin: 0; flex: 1; min-width: 260px; }
.footer .fine:last-child { flex: none; }

/* ---------- lightbox player */
.lightbox { width: min(1220px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(12, 12, 13, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.lb-inner { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.lb-video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.lb-dot { border: 0; padding: 0; cursor: pointer; }
.lb-dot:hover { filter: brightness(1.15); }
.lb-num { color: var(--ink3); }
.lb-title { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin-top: 4px; }
.lb-headline { color: var(--ink2); margin: 10px 0 0; font-size: 15.5px; }
.lb-bullets { margin-top: 18px; }
.lb-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 960px) {
  .lightbox { max-height: calc(100vh - 24px); overflow-y: auto; }
  .lb-inner { grid-template-columns: 1fr; gap: 18px; }
  .lb-title { font-size: 22px; }
}

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: rgba(238, 233, 224, .94); color: #161718; font: 500 13.5px var(--sans); padding: 9px 16px; border-radius: 999px; transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- phones */
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(40px, 12vw, 56px); letter-spacing: -.04em; }
  .hero-copy { padding-top: calc(var(--nav-h) + 26px); }
  .lede { font-size: 15.5px; margin-top: 16px; }
  .cta-row { margin-top: 22px; width: 100%; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .curl-box { margin-top: 16px; }
  .dl-notes, .scroll-cue { display: none; }
  .cmd { font-size: 12.5px; }
  .section .sub { font-size: 16px; }
  .best { margin-top: 32px; }
  .terminal .cmd { font-size: 12.5px; padding: 16px 10px 6px 14px; }
  .term-note { padding: 0 14px 16px; }
  .win-title { padding: 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .lightbox[open] { animation: none; }
  .film-thumb img, .film, .btn { transition: none; }
}
@media (max-width: 520px) {
  .tablist { width: 100%; }
  .tablist button { flex: 1; padding: 7px 4px; font-size: 13px; }
}

/* ---------- works with: the agent CLIs, each project's own mark in one muted color */
.works-list { list-style: none; margin: 48px auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.works-list li { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 10px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); color: var(--ink2); }
.works-logo { width: 40px; height: 40px; color: var(--ink2); }
.works-list span { font: 500 15px var(--sans); color: var(--ink); text-align: center; }
@media (max-width: 900px) { .works-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .works-list { gap: 10px; } .works-list li { padding: 20px 6px 16px; } .works-logo { width: 34px; height: 34px; } .works-list span { font-size: 14px; } }
