/* Null's site: the editor's own look, true black with an amber caret, its own fonts. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSans-Regular.ttf"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("fonts/InstrumentSans-Medium.ttf"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("fonts/InstrumentSans-SemiBold.ttf"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/GeistMono-Regular.ttf"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("fonts/GeistMono-Medium.ttf"); }

:root {
  --bg: #000;
  --surface: #08080a;
  --raised: #111114;
  --line: #1d1d22;
  --line-2: #2c2c33;
  --text: #ebe8e2;
  --soft: #c9c7cf;
  --muted: #8b8a92;
  --faint: #55545c;
  --amber: #f2b35b;
  --amber-ink: #1b1206;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(242, 179, 91, .25); }
a { color: var(--text); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
img, video { display: block; }

.caret { display: inline-block; width: 3px; height: .95em; border-radius: 2px; background: var(--amber); box-shadow: 0 0 16px rgba(242,179,91,.7); vertical-align: -0.12em; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.eyebrow { margin: 0 0 14px; font: 500 13px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.lead { color: var(--muted); font-size: 19px; max-width: 640px; margin: 18px 0 0; }
.small { color: var(--faint); font-size: 14px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); transition: background .4s var(--ease), border-color .4s, padding .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(0, 0, 0, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); padding-top: 12px; padding-bottom: 12px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: .01em; }
.mark .caret { height: 20px; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--amber); }

/* ---------- buttons ---------- */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 16px/1 var(--ui); text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: rgba(17,17,20,.6); color: var(--text); backdrop-filter: blur(10px); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s; }
.button:hover { transform: translateY(-2px); border-color: var(--muted); }
.button.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.button.primary:hover { box-shadow: 0 10px 40px rgba(242,179,91,.35); }
.play { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.slides, .slide, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.slide video { object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.slide.on { opacity: 1; }
.slide.on video { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.35) 100%),
  linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 38%),
  linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 22%); }
.hero-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; left: 0; top: 0; pointer-events: none; background: radial-gradient(circle, rgba(242,179,91,.09), rgba(242,179,91,0) 62%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s; }
.hero:hover .hero-glow { opacity: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px) 150px; }
.hero-copy { position: relative; min-height: 290px; max-width: 760px; }
.copy { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.copy > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.copy.on { pointer-events: auto; }
.copy.on > * { opacity: 1; transform: none; }
.copy.on > :nth-child(2) { transition-delay: .08s; }
.copy.on > :nth-child(3) { transition-delay: .16s; }
.hero h1 { font-size: clamp(42px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lead { color: var(--soft); font-size: clamp(17px, 1.6vw, 21px); }
.hero-tabs { position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hero-tabs button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; font: 500 14px/1 var(--ui); color: var(--muted); transition: color .3s; }
.hero-tabs button:hover, .hero-tabs button[aria-selected="true"] { color: var(--text); }
.hero-tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 4px; }
.hero-tabs .bar { height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero-tabs .bar i { display: block; height: 100%; width: 0; background: var(--amber); }

/* ---------- statement ---------- */
.statement { padding: 22vh clamp(16px, 6vw, 80px); max-width: 1280px; margin: 0 auto; }
.scrub { margin: 0; font-size: clamp(32px, 5vw, 64px); line-height: 1.18; font-weight: 500; letter-spacing: -0.025em; }
.scrub span { color: var(--text); opacity: .14; transition: opacity .35s linear; }
.scrub span.lit { opacity: 1; }
.scrub span.key { color: var(--amber); }

/* ---------- story ---------- */
.story { position: relative; height: 560vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1480px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 56px) 40px; }
.story h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 12px 0 12px 44px; cursor: pointer; color: var(--faint); transition: color .4s; }
.steps li::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 14px; font: 500 13px/1 var(--mono); color: var(--faint); transition: color .4s; }
.steps li b { display: block; font-size: 20px; font-weight: 600; transition: color .4s; }
.steps li span { display: block; max-height: 0; overflow: hidden; font-size: 15px; color: var(--muted); transition: max-height .5s var(--ease), opacity .4s; opacity: 0; }
.steps li.on { color: var(--text); }
.steps li.on::before { color: var(--amber); }
.steps li.on span { max-height: 60px; opacity: 1; margin-top: 4px; }
.steps li.done { color: var(--muted); }
.story-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.9), 0 0 120px rgba(242,179,91,.05); }
.story-frame iframe, .story-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-poster { object-fit: cover; transition: opacity .6s; }
.story-frame.ready .story-poster { opacity: 0; }
.story-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.story-progress div { height: 100%; width: 0; background: var(--amber); }

/* ---------- sections ---------- */
section.features, section.ai, section.film, section.download { max-width: 1280px; margin: 0 auto; padding: 18vh clamp(16px, 5vw, 64px) 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.card .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card.wide .pic { aspect-ratio: 16 / 7; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); transform-origin: var(--focus, 50% 30%); transform: scale(var(--zoom, 1.02)); transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.86); }
.card:hover .pic img { transform: scale(calc(var(--zoom, 1.02) * 1.06)); filter: brightness(1); }
.card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(8,8,10,0) 40%); }
.card .txt { padding: 4px 24px 24px; margin-top: -18px; position: relative; }
.card.plain .txt { margin-top: 0; padding-top: 24px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card h3 em { display: inline-block; white-space: nowrap; font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(242,179,91,.4); border-radius: 999px; padding: 4px 8px; margin-left: 8px; vertical-align: 3px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.numbers div { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), #000); }
.numbers b { display: block; font: 500 clamp(34px, 4vw, 52px)/1 var(--mono); letter-spacing: -0.03em; color: var(--text); }
.numbers span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- AI ---------- */
.marquee { position: relative; overflow: hidden; display: flex; gap: 14px; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 14px; flex: none; animation: slide 46s linear infinite; }
.track span { flex: none; padding: 14px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 20px; font-weight: 500; white-space: nowrap; }
.track i { font-style: normal; color: var(--faint); font-size: 15px; margin-left: 8px; }
@keyframes slide { to { transform: translateX(calc(-100% - 14px)); } }
.marquee:hover .track { animation-play-state: paused; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.three > div { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.three .k { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); border-bottom-width: 3px; font: 500 17px/1 var(--ui); color: var(--amber); margin-bottom: 18px; }
.three h3 { font-size: 20px; margin-bottom: 8px; }
.three p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- film ---------- */
.film-card { all: unset; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: #000; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.8); }
.film-card:hover img { transform: scale(1.03); filter: brightness(1); }
.film-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.film-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,179,91,.95); color: var(--amber-ink); box-shadow: 0 0 0 0 rgba(242,179,91,.5); animation: pulse 2.4s infinite; transition: transform .4s var(--ease); }
.film-play .play { border-width: 12px 0 12px 20px; margin-left: 6px; }
.film-card:hover .film-play { transform: scale(1.08); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,179,91,.45); } 70% { box-shadow: 0 0 0 28px rgba(242,179,91,0); } 100% { box-shadow: 0 0 0 0 rgba(242,179,91,0); } }

/* ---------- download ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.platform:hover { transform: translateY(-4px); border-color: var(--line-2); }
.platform .os { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.platform .req { font: 400 13px/1.4 var(--mono); color: var(--faint); }
.platform .how { color: var(--muted); font-size: 15px; margin: 10px 0 18px; }
.platform .get { margin-top: auto; align-self: flex-start; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; transition: background .3s, color .3s, border-color .3s; }
.platform:hover .get { border-color: var(--text); }
.platform .how code { font-size: .85em; color: var(--soft); }
.platform .alt { margin-top: 12px; font-size: 13px; color: var(--faint); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; }
.platform .alt:hover { color: var(--muted); }
.platform.mine { border-color: rgba(242,179,91,.55); box-shadow: 0 0 80px rgba(242,179,91,.08); }
.platform.mine::before { content: "Your computer"; position: absolute; top: 18px; right: 18px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.platform.mine .get { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.download .small { margin-top: 28px; }

/* ---------- footer ---------- */
.foot { max-width: 1280px; margin: 0 auto; padding: 80px clamp(16px, 5vw, 64px) 40px; }
.open { max-width: 1280px; margin: 18vh auto 0; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line); text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(242,179,91,.10), rgba(242,179,91,0) 55%), var(--surface); }
.open h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }
.open .lead { margin: 18px auto 0; }
.open .buttons { justify-content: center; }
.open .button svg { flex: none; }
@media (max-width: 1340px) { .open { margin-left: clamp(16px, 5vw, 64px); margin-right: clamp(16px, 5vw, 64px); } }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot-row a { color: var(--muted); }

/* ---------- the film, over the page ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(12px, 4vw, 60px); background: rgba(0,0,0,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s var(--ease); }
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }
.modal video { width: min(100%, 1600px); max-height: 100%; border-radius: 14px; background: #000; box-shadow: 0 40px 140px rgba(0,0,0,.9); }
.modal-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font-size: 16px; cursor: pointer; }
.modal-close:hover { border-color: var(--muted); }

/* ---------- other pages (privacy, code signing) ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 760px; padding: 140px 0 40px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.prose h2 { margin-top: 44px; font-size: 26px; }
.prose p, .prose li { color: var(--soft); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.86) 55%, rgba(0,0,0,.6) 100%); }
  .story { height: auto; }
  .story-pin { position: relative; height: auto; display: block; padding-top: 18vh; }
  .story-text { margin-bottom: 28px; }
  .steps { display: flex; gap: 8px; overflow-x: auto; margin-top: 22px; }
  .steps li { flex: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
  .steps li::before, .steps li span { display: none; }
  .steps li b { font-size: 15px; }
  .steps li.on { border-color: var(--amber); }
  .bento, .numbers, .three, .platforms { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero-content { padding-bottom: 120px; }
  .hero-copy { min-height: 330px; }
  .hero-tabs { gap: 10px; bottom: 28px; }
  .hero-tabs button { font-size: 12px; }
  .bento, .numbers, .three, .platforms { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card.wide .pic { aspect-ratio: 16 / 10; }
}

/* Less motion, when asked. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .copy > * { transition: none; transform: none; }
  .slide video { transition: none; transform: none; }
  .track { animation: none; }
  .caret, .film-play { animation: none; }
  .scrub span { opacity: 1; transition: none; }
}
