@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #F4F2EE;
  --ink: #151412;
  --mute: #6B6862;
  --line: rgba(21, 20, 18, 0.12);
  --canvas: #E9E7E2;
  --dot: rgba(21, 20, 18, 0.13);
  --accent: #E2562A;
  --night: #12100E;
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
code { font-family: var(--mono); font-size: 0.92em; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; background: var(--ink); color: var(--bg); font: 600 16px/1 var(--sans); text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.button:hover { transform: translateY(-1px); background: #000; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.small { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.button.large { padding: 18px 30px; font-size: 18px; border-radius: 16px; background: var(--accent); }
.button.large:hover { background: #C9461C; }

/* Nav: an island, as in the app */
.nav { position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 2 * 16px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 12px; border-radius: 18px; background: rgba(244, 242, 238, 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.06); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { border-radius: 7px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-by { font-size: 13px; color: var(--mute); }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; }
.links a:hover { color: var(--ink); background: rgba(21, 20, 18, 0.05); }
@media (max-width: 760px) { .links { display: none; } .brand-by { display: none; } }

/* Hero: a Facet canvas the wall is built on */
.hero { position: relative; height: 100vh; height: 100svh; }
.stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--canvas); }
.canvas { position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; }
.wall { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.wall figure { position: absolute; margin: 0; opacity: 0; }
.wall figure img { display: block; width: 100%; height: 100%; }
.wall figure.screen img { border-radius: 9.5% / 4.4%; box-shadow: 0 30px 60px -20px rgba(18, 16, 14, 0.45); }
.wall figure.overlay { z-index: 2; }
.wall .callout { position: absolute; opacity: 0; display: flex; align-items: center; gap: 12px; font: 600 21px/1.25 var(--sans); color: var(--ink); white-space: nowrap; }
.wall .callout::before { content: ""; width: 64px; height: 1.5px; background: var(--accent); }
.wall .callout small { display: block; font: 400 17px/1.3 var(--sans); color: var(--mute); }

.brief { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100% - 2 * var(--gutter))); text-align: center; z-index: 5; }
.brief-label { display: inline-block; margin-bottom: 14px; font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.brief-text { margin: 0; padding: 22px 26px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(0, 0, 0, 0.25); font: 500 clamp(19px, 2.4vw, 28px)/1.35 var(--sans); letter-spacing: -0.01em; text-align: left; min-height: 1.35em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hud { position: absolute; left: var(--gutter); bottom: 22px; z-index: 6; display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: rgba(18, 16, 14, 0.9); color: #F3EBDD; font-size: 13px; opacity: 0; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); }
.hud b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hud-cmd { color: #F0A830; font-size: 12.5px; }
.hud-dots { display: flex; gap: 5px; margin-top: 4px; }
.hud-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(243, 235, 221, 0.2); }
.hud-dots i.on { background: var(--accent); }

.headline { position: absolute; left: var(--gutter); top: calc(50% + 38px); transform: translateY(-50%); z-index: 6; width: min(640px, calc(100% - 2 * var(--gutter))); padding: 34px 34px 30px; border-radius: 28px; background: rgba(244, 242, 238, 0.9); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; }
.headline h1 { font-size: clamp(42px, 5.6vw, 80px); }
.headline p { margin: 18px 0 22px; color: var(--mute); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.zoom-note, .mode-note { position: absolute; right: var(--gutter); bottom: 34px; z-index: 6; width: min(360px, calc(100% - 2 * var(--gutter))); padding: 18px 20px; border-radius: 18px; background: rgba(244, 242, 238, 0.92); box-shadow: 0 0 0 1px var(--line); opacity: 0; visibility: hidden; }
.zoom-note p, .mode-note p { margin: 8px 0 0; font-size: 16px; }
.scroll-hint { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); z-index: 6; font: 500 14px/1.3 var(--sans); color: var(--mute); text-align: center; width: min(420px, calc(100% - 32px)); }
.scroll-hint::after { content: ""; display: block; width: 1.5px; height: 34px; margin: 14px auto 0; background: linear-gradient(var(--mute), transparent); }
.wall-still { width: 100%; display: block; }

/* Sections */
section:not(.hero) { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.intro { text-align: center; }
.intro h2 { margin: 18px auto 24px; max-width: 14ch; }
.lead { max-width: 640px; margin: 0 auto; font-size: clamp(18px, 2vw, 21px); color: var(--mute); }

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); }
.steps p { margin: 10px 0 0; color: var(--mute); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; }
@media (max-width: 860px) { .steps ol { grid-template-columns: 1fr; } }

.real h2 { margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.grid article { padding: 30px; background: var(--bg); }
.grid p { margin: 10px 0 0; color: var(--mute); font-size: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.language { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.language h2 { margin: 16px 0 20px; }
.language-text p { color: var(--mute); }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 18px; margin: 28px 0 32px; }
.facts dt { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts dd { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.code { margin: 0; padding: 26px; border-radius: 24px; background: var(--night); color: #E8DFCF; font: 400 13.5px/1.6 var(--mono); overflow-x: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.code .k { color: #F0A830; }
.code .s { color: #E8DFCF; }
.code .n { color: #E0532B; }
@media (max-width: 960px) { .language { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, auto); } }

.download { text-align: center; }
.download img { border-radius: 22px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4); }
.download h2 { margin: 26px 0 10px; }
.download p { margin: 0 0 30px; color: var(--mute); }

.footer { display: grid; gap: 10px; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); max-width: 1240px; margin: 0 auto; }
.footer a { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); }

@media (max-width: 899px) {
  .headline { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; padding: 22px; }
  .headline h1 { font-size: 40px; }
  .headline p { font-size: 15px; margin: 12px 0 16px; }
  .zoom-note, .mode-note { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .hud { left: 16px; bottom: 16px; }
  .wall .callout { font-size: 26px; }
  .wall .callout small { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
