/* wash — project site. Plain CSS, no build step. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ink: the Midnight pack's navy, deepened. */
  --ink-0: #05060c;
  --ink-1: #0b0e1a;
  --ink-2: #10142a;
  --ink-3: #161b36;
  --ink-4: #1e2445;
  --navy: #141831;
  --text: #ecebf5;
  --text-muted: #a9abc4;
  --text-faint: #7f82a0;
  /* Accents: the logo's sun and sea, and the wallpaper's violets. */
  --sun: #fcab1f;
  --ember: #f56f1b;
  --sky: #6fcdf6;
  --sea: #3aa2e2;
  --violet: #9b7bff;
  --rose: #f0679a;
  --accent: var(--sky);
  --line: #b4b9ff1a;
  --line-strong: #b4b9ff33;
  --line-bright: #d2d6ff5c;
  --selection: #3aa2e259;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--2: .75rem;
  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .13vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .25vw, 1.3125rem);
  --step-2: clamp(1.3125rem, 1.2rem + .5vw, 1.6875rem);
  --step-3: clamp(1.625rem, 1.4rem + 1vw, 2.375rem);
  --step-4: clamp(2rem, 1.6rem + 1.8vw, 3.375rem);
  --step-5: clamp(2.5rem, 1.85rem + 2.9vw, 4.75rem);
  --step-hero: clamp(2.75rem, .8rem + 6.2vw, 7.5rem);

  --tracking-tight: -.035em;
  --tracking-display: -.045em;
  --tracking-label: .14em;
  --space-section: clamp(6rem, 3.5rem + 10vw, 11rem);
  --gutter: clamp(1rem, .4rem + 2.6vw, 3rem);
  --width-page: 90rem;
  --header-height: 4rem;
  --radius-s: 6px;
  --radius-m: 9px;
  --radius-l: 14px;
  --radius-pill: 999px;
  --shadow-window: 0 0 0 1px #ffffff14, 0 2px 6px #00000059, 0 30px 80px -20px #000000c0, 0 60px 160px -40px #07082ae6;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --duration-reveal: .8s;
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-reveal: 0s; }
}

*, ::before, ::after { box-sizing: border-box; }
* { margin: 0; }
html {
  background: var(--ink-1);
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--text);
  background: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: var(--tracking-tight); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--selection); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, kbd, pre { font-family: var(--font-mono); }
:not(pre) > code { font-size: .88em; padding: .08em .35em; border-radius: 4px; background: #ffffff0d; border: 1px solid var(--line); }
kbd {
  display: inline-block; padding: .05em .45em .1em; font-size: .82em; font-weight: 500; line-height: 1.4;
  color: var(--text); background: #ffffff08; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 3px;
}

.wide { width: min(100% - 2 * var(--gutter), var(--width-page)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; top: .75rem; left: .75rem; z-index: 100; padding: .6rem 1rem;
  font-weight: 600; text-decoration: none; color: var(--ink-1); background: var(--text); border-radius: var(--radius-s);
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus-visible { transform: none; }

.label {
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-faint);
}
.label--accent { color: var(--sun); }
.link {
  color: var(--text); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .25s var(--ease-out), color .12s;
}
.link:hover { color: var(--sky); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.button {
  --bg: #ffffff0a; --fg: var(--text); --bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  min-height: 2.875rem; padding: .7em 1.25em;
  font-size: var(--step--1); font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius-pill);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .25s;
}
.button:hover { --bg: #ffffff14; --bd: var(--line-bright); }
.button:active { transform: translateY(1px); }
.button--primary { --bg: var(--text); --fg: var(--ink-1); --bd: transparent; }
.button--primary:hover { --bg: #fff; box-shadow: 0 0 0 6px #fcab1f26, 0 10px 40px -10px #fcab1f99; }
.button--ghost { --bg: transparent; --bd: transparent; padding-inline: .5em; }
.button--ghost:hover { --bg: transparent; --bd: transparent; color: var(--sky); }
.button--big { min-height: 3.25rem; padding: .85em 1.6em; font-size: var(--step-0); }
.arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.button:hover .arrow { transform: translateX(3px); }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height);
  transition: background-color .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: #0b0e1acc; border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { width: 26px; height: 26px; }
.brand__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.brand__status {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--sun);
  padding: .15em .55em; border: 1px solid #fcab1f55; border-radius: var(--radius-pill);
}
.nav ul { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); padding: 0; list-style: none; }
.nav a { font-size: var(--step--1); font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .12s; }
.nav a:hover { color: var(--text); }
.nav .nav__demo { color: var(--ink-1); background: var(--sun); padding: .42em .95em; border-radius: var(--radius-pill); font-weight: 600; }
.nav .nav__demo:hover { color: var(--ink-1); background: #ffc24d; }
.nav__github { display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 52rem) { .nav__secondary { display: none; } }
@media (max-width: 26rem) { .nav__github span { display: none; } }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: calc(var(--header-height) + clamp(3rem, 8vw, 7rem)); isolation: isolate; }
.hero__backdrop { position: absolute; inset: 0 0 auto; height: min(118vh, 74rem); z-index: -1; overflow: hidden; }
.hero__wallpaper {
  position: absolute; right: -8%; top: -4%; width: auto; height: 112%; max-width: none;
  opacity: .9; filter: saturate(1.15);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero__wallpaper { animation: none; } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0b0e1a 0%, #0b0e1ae6 30%, #0b0e1a59 62%, #0b0e1a1a 100%),
    linear-gradient(180deg, #0b0e1a66 0%, transparent 25%, transparent 50%, var(--ink-1) 92%);
}
.hero__inner { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; }
  .hero__eyebrow { grid-column: 1 / -1; }
}
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero__eyebrow > span:first-child { color: var(--sky); }
.hero__eyebrow-stack { color: var(--text-faint); }
.hero__title {
  font-size: clamp(2.4rem, .9rem + 3.6vw, 4.9rem); line-height: 1.02; letter-spacing: var(--tracking-display); font-weight: 700;
  max-width: 17ch; animation: fade 1.1s var(--ease-out) both;
}
.hero__aside { display: grid; gap: 1.75rem; padding-bottom: .6rem; animation: fade 1.1s .3s var(--ease-out) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__lede { font-size: var(--step-1); color: var(--text-muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.hero__stage { margin-top: clamp(3.5rem, 8vw, 6.5rem); perspective: 2400px; }
.hero__tilt { animation: tilt-in 1.4s .25s var(--ease-out) both; transform-origin: 50% 0; }
@keyframes tilt-in { from { opacity: 0; transform: rotateX(14deg) translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__tilt { animation: none; } }
.hero__screen { border-radius: var(--radius-l); }
.hero__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, #ffffff0d, transparent 18%);
}
.hero__caption { display: flex; gap: 1rem; margin-top: 1.25rem; max-width: 52rem; font-size: var(--step--1); color: var(--text-faint); }
.hero__caption .label { flex: none; padding-top: .15em; }

.shot { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius-m); box-shadow: var(--shadow-window); }
.shot img { width: 100%; }

/* Callouts: a dot on the screenshot, a hairline, and a label. */
.callout {
  --len: 4;
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  display: flex; align-items: center; pointer-events: none;
  animation: fade .9s 1.2s var(--ease-out) both;
}
.callout__dot {
  flex: none; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px #fcab1f40, 0 0 18px 2px #fcab1f80;
}
.callout__line { flex: none; width: calc(var(--len) * 1vw); height: 1px; background: linear-gradient(90deg, var(--sun), #fcab1f55); }
.callout__text {
  display: grid; gap: .1rem; padding: .55rem .8rem; white-space: nowrap;
  font-size: var(--step--1); color: var(--text-muted);
  background: #0b0e1ad9; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.callout__title { font-weight: 600; color: var(--text); }
/* Left callouts mirror: the dot stays at (--x, --y), the label runs left. */
.callout--left { flex-direction: row-reverse; translate: -100% 0; }
.callout--left .callout__line { background: linear-gradient(270deg, var(--sun), #fcab1f55); }
@media (max-width: 72rem) { .callout { display: none; } }

.hero__specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line);
}
.hero__spec { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.hero__spec + .hero__spec { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (max-width: 40rem) { .hero__spec + .hero__spec { padding-left: 0; border-left: 0; } }
.hero__spec dt { margin-bottom: .4rem; }
.hero__spec dd { font-size: var(--step--1); color: var(--text-muted); }

/* ─── Section scaffolding ──────────────────────────────────────────────── */
section { position: relative; }
.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-label__number { font-family: var(--font-mono); font-size: var(--step--1); color: var(--sun); }
.section-label__rule { width: 3rem; height: 1px; background: var(--line-strong); }
.section-label__text { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-faint); }
.section-title { font-size: var(--step-4); letter-spacing: var(--tracking-display); max-width: 24ch; }
.feature-title { font-size: var(--step-3); margin: .6rem 0 1rem; max-width: 22ch; }
.caption { margin-top: .9rem; font-size: var(--step--1); color: var(--text-faint); }
.caption strong { color: var(--text-muted); font-weight: 600; }

/* ─── Stats (closing) ───────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  background: linear-gradient(160deg, #161b36aa, #0b0e1a66);
}
.stats > div { padding: clamp(1.25rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-last-child(-n + 2) { border-bottom: 0; }
.stats dt { font-size: var(--step-4); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1; }
.stats dt small { margin-left: .2em; font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--sun); }
.stats dd { margin-top: .6rem; font-size: var(--step--1); color: var(--text-muted); }

/* ─── 02 Desktop features ──────────────────────────────────────────────── */
.desktop { padding-bottom: var(--space-section); }
.desktop__intro { padding-block: var(--space-section) clamp(1rem, 3vw, 2rem); }
.desktop__lede { margin-top: 1.5rem; max-width: 42rem; font-size: var(--step-1); color: var(--text-muted); }
.feature { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(5rem, 10vw, 9rem); }
.feature__text p:not(.label) { color: var(--text-muted); max-width: 36rem; }

/* split (Remote): text beside a tall shot */
@media (min-width: 64rem) {
  .feature--split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .feature--split.feature--flip .feature__main { grid-column: 8 / span 4; grid-row: 1; }
  .feature--split.feature--flip .feature__text { grid-column: 1 / span 6; grid-row: 1; align-self: center; }
}

/* the IDE: four apps in a row */
.ide { padding-block: var(--space-section) 0; }
.ide__lede { margin-top: 1.5rem; max-width: 46rem; font-size: var(--step-1); color: var(--text-muted); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding: 0; list-style: none; }
@media (max-width: 64rem) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .four { grid-template-columns: 1fr; } }
.four .shot { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in; transition: transform .4s var(--ease-out); }
.four .shot:hover { transform: translateY(-4px); }
.four .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.four__name { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); font-size: var(--step-2); font-weight: 600; letter-spacing: var(--tracking-tight); }
.four__desc { margin-top: .4rem; font-size: var(--step--1); color: var(--text-muted); }
.ide__more { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.ide__more p { max-width: 46rem; color: var(--text-muted); }

/* themes */
.themes__head { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .themes__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.themes__text { color: var(--text-muted); max-width: 36rem; }
.themes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
@media (min-width: 80rem) { .themes__grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.themes__grid li {
  position: relative; overflow: hidden; border-radius: var(--radius-m); box-shadow: var(--shadow-window);
  transition: transform .4s var(--ease-out);
}
.themes__grid li:hover { transform: translateY(-4px); }
.themes__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.themes__grid span {
  position: absolute; left: .6rem; bottom: .6rem; padding: .25em .7em;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); background: #0b0e1acc; border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* the real machine */
@media (min-width: 64rem) {
  .machine { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .machine__main { grid-column: 1 / span 7; position: sticky; top: calc(var(--header-height) + 2rem); }
  .machine__body { grid-column: 9 / -1; }
}
.machine__lede { color: var(--text-muted); }
.machine__list { display: grid; margin: 2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.machine__list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.machine__list .index { font-family: var(--font-mono); font-size: var(--step--2); color: var(--sun); padding-top: .25em; }
.machine__list .name { font-weight: 600; }
.machine__list .desc { margin-top: .2rem; font-size: var(--step--1); color: var(--text-muted); }

/* display */
.display__text p:not(.label) { color: var(--text-muted); max-width: 40rem; }
.display__text p:not(.label) + p { margin-top: 1rem; }
@media (min-width: 64rem) {
  .display { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .display__text { grid-column: 1 / span 6; }
  .display__main { grid-column: 1 / -1; }
}

/* ─── 03 How it works ──────────────────────────────────────────────────── */
.how {
  padding-block: var(--space-section); overflow: hidden;
  background: radial-gradient(70% 60% at 85% 10%, #9b7bff1f, transparent 70%), radial-gradient(60% 50% at 0% 100%, #3aa2e21a, transparent 70%), var(--ink-0);
  border-block: 1px solid var(--line);
}
.how__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.how .wide { position: relative; }
.manifesto { font-size: var(--step-4); letter-spacing: var(--tracking-display); max-width: 26ch; }
.manifesto em { font-style: normal; background: linear-gradient(90deg, var(--sun), var(--rose) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto__body { display: grid; gap: 1.5rem 3rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .manifesto__body { grid-template-columns: 1.2fr 1fr; } }
.manifesto__lead { font-size: var(--step-2); line-height: 1.4; color: var(--text); }
.manifesto__aside { color: var(--text-muted); }
.principles { display: grid; gap: clamp(4rem, 8vw, 7rem); margin-top: clamp(4rem, 8vw, 7rem); padding: 0; list-style: none; }
.principle { display: grid; gap: 1.5rem 3rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
@media (min-width: 64rem) {
  .principle { grid-template-columns: 1fr 1.1fr 1.1fr; align-items: start; }
}
.principle__head { display: grid; gap: .5rem; }
.principle__index { font-family: var(--font-mono); font-size: var(--step--1); color: var(--sun); }
.principle__word { font-size: var(--step-3); letter-spacing: var(--tracking-display); }
.principle__text { display: grid; gap: 1rem; color: var(--text-muted); }
.stack__layers { display: grid; gap: .5rem; padding: 0; list-style: none; }
.stack__layer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: linear-gradient(90deg, hsl(calc(200 + var(--i) * 28) 80% 60% / .14), transparent 80%);
  margin-left: calc(var(--i) * .6rem);
}
.stack__name { font-weight: 600; }
.stack__detail { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); text-align: right; }
.stack figcaption { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.facts > div { padding: 1.1rem; background: var(--ink-0); }
.facts dt { font-size: var(--step-2); font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--text); }
.facts dd { margin-top: .3rem; font-size: var(--step--1); color: var(--text-faint); }

/* ─── 04 Gallery ───────────────────────────────────────────────────────── */
.gallery { padding-block: var(--space-section); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0; list-style: none; }
.gallery__grid button {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 1rem; cursor: zoom-in;
  background: radial-gradient(80% 80% at 50% 0%, var(--ink-4), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .2s, transform .4s var(--ease-out);
}
.gallery__grid button:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.gallery__grid img { max-height: 100%; width: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 30px -10px #000c; }
.gallery__grid p { margin-top: .8rem; font-size: var(--step--1); color: var(--text-faint); }
.gallery__grid p strong { color: var(--text); font-weight: 600; margin-right: .35em; }
.pack { display: inline-block; margin-left: .35em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }

/* ─── 05 Install ───────────────────────────────────────────────────────── */
.install { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.install__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.install__card { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); }
.install__card h3 { font-size: var(--step-2); }
.install__card > p:not(.label) { font-size: var(--step--1); color: var(--text-muted); }
.install__card pre {
  position: relative; margin-top: auto; padding: 1rem 1.1rem; overflow-x: auto;
  font-size: .8rem; line-height: 1.7; color: #d7e3ff; background: var(--ink-0); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.install__card pre code { white-space: pre; }
.copy {
  position: absolute; top: .5rem; right: .5rem; padding: .25em .6em;
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-faint);
  background: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; opacity: 0; transition: opacity .15s;
}
pre:hover .copy, .copy:focus-visible { opacity: 1; }
.install__more { margin-top: 2rem; color: var(--text-muted); }

/* ─── Closing ──────────────────────────────────────────────────────────── */
.closing { padding-block: var(--space-section); overflow: hidden; background: radial-gradient(50% 80% at 50% 100%, #f56f1b26, transparent 70%), radial-gradient(40% 60% at 80% 100%, #9b7bff26, transparent 70%); border-top: 1px solid var(--line); }
.closing__inner { display: grid; justify-items: center; text-align: center; gap: 2.5rem; }
.closing__title { font-size: var(--step-5); line-height: 1.05; letter-spacing: var(--tracking-display); font-weight: 700; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.closing__lede { max-width: 44rem; font-size: var(--step-1); color: var(--text-muted); }
.closing .section-label { margin-bottom: 0; }
.stats--row { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left; }
.stats--row > div { border-bottom: 0; border-right: 1px solid var(--line); }
.stats--row > div:last-child { border-right: 0; }
@media (max-width: 52rem) {
  .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--row > div { border-bottom: 1px solid var(--line); }
  .stats--row > div:nth-child(2n) { border-right: 0; }
  .stats--row > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding-block: 4rem 2rem; border-top: 1px solid var(--line); background: var(--ink-0); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.site-footer__brand { grid-column: span 2; }
@media (max-width: 40rem) { .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand p { margin-top: 1rem; max-width: 22rem; font-size: var(--step--1); color: var(--text-faint); }
.site-footer nav ul { display: grid; gap: .55rem; margin-top: 1rem; padding: 0; list-style: none; }
.site-footer nav a { font-size: var(--step--1); color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); }

/* ─── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox { max-width: min(94vw, 1600px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: #05060ce6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: var(--radius-m); box-shadow: var(--shadow-window); }
.lightbox__close { position: absolute; top: -2.5rem; right: 0; width: 2rem; height: 2rem; font-size: 1.5rem; line-height: 1; color: var(--text); background: none; border: 0; cursor: pointer; }

/* ─── Scroll reveal ────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="focus"] { transform: translateY(32px) scale(.985); filter: blur(4px); transition-property: opacity, transform, filter; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; filter: none; }

/* ─── Live panel (closing) ─────────────────────────────────────────────── */
.live { width: 100%; margin-top: 1rem; text-align: left; }
.live__bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; font-size: var(--step--1); color: var(--text-muted); }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px #fcab1f33; animation: pulse 1.4s ease-in-out infinite; }
.live[data-ready] .live__dot { background: #6fdc8c; box-shadow: 0 0 0 4px #6fdc8c33; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.live__open { margin-left: auto; color: var(--text-muted); text-decoration: none; }
.live__open:hover { color: var(--sky); }
.live__frame { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-l); }
.live__launch { position: relative; z-index: 1; }
.live[data-booting] .live__launch { display: none; }
.live__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.55); transition: opacity .9s var(--ease-out); }
.live__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .9s var(--ease-out); }
.live[data-ready] .live__frame iframe { opacity: 1; }
.live[data-ready] .live__poster { opacity: 0; }

/* the IDE story: one bug, four steps */
.story { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding: 0; list-style: none; }
.story__step { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 64rem) {
  .story__step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .story__step:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .story__step:nth-child(even) .story__text { order: 2; }
}
.story__text p { margin-top: .6rem; color: var(--text-muted); max-width: 30rem; }
.story__index { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--sun); color: var(--sun); font-family: var(--font-mono); font-size: var(--step--1); }
.story__title { margin-top: .9rem; font-size: var(--step-2); font-weight: 600; letter-spacing: var(--tracking-tight); }
.story .shot { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }

.layouts__text { max-width: 46rem; }
.layouts__text p:not(.label) { color: var(--text-muted); }
.layouts__text p:not(.label) + p { margin-top: 1rem; }

.desktop__figure { margin-top: clamp(2rem, 4vw, 3rem); }
.desktop__figure .shot { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }

.themes__trio { display: grid; gap: 1rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .themes__trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.themes__trio .shot { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.themes__trio span { display: block; margin-top: .6rem; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.tryit { width: 100%; max-width: 56rem; text-align: left; }
.tryit__list { display: grid; gap: .75rem; margin-top: 1rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .tryit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tryit__list li { display: grid; gap: .3rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--text-muted); font-size: var(--step--1); }
.tryit__list li span { color: var(--text); font-weight: 600; font-size: var(--step-0); }

/* the live demo widens to the viewport as you reach it */
.live { transition: width .7s var(--ease-out), margin .7s var(--ease-out); }
.live__frame { transition: height .7s var(--ease-out), border-radius .7s var(--ease-out); }
@media (min-width: 64rem) {
  .live[data-near] { width: calc(100vw - 2rem); margin-inline: calc(50% - 50vw + 1rem); }
  .live[data-near] .live__frame { aspect-ratio: auto; height: min(calc((100vw - 2rem) * .625), calc(100vh - 7rem)); }
}
@media (prefers-reduced-motion: reduce) { .live, .live__frame { transition: none; } }
