@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #08060E;
  --dusk: #0C0916;
  --room: #100B1C;
  --line: #251B40;
  --line-lit: #3B2B63;
  --ink: #F0EAF8;
  --ink-2: #B3A2D4;
  --ink-3: #8B77A8;
  --violet: #B44AFF;
  --pink: #FF3D8A;
  --gold: #E8A33C;
  --cyan: #5FD8EC;
  --live: #3DDC97;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #FF8FBC; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 560px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--void); padding: 12px 16px; font-weight: 700; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.lede { color: var(--ink-2); font-size: 19px; text-wrap: pretty; }
.band { border-top: 1px solid var(--line); }
.band-dusk { background: var(--dusk); }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn svg { flex: none; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-solid { background: var(--gold); color: var(--void); }
.btn-solid:hover { background: #F4B95C; color: var(--void); }
.btn-ghost { border-color: var(--line-lit); color: var(--ink); font-weight: 600; background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--void); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.pill { color: var(--ink); padding: 0 18px; border: 1px solid var(--line-lit); border-radius: 999px; font-weight: 600; }
.site-nav a.pill:hover { border-color: var(--ink-2); }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow { color: var(--violet); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.hero-sub { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-art img { width: min(420px, 100%); height: auto; aspect-ratio: 1 / 1; -webkit-mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%); }
@media (max-width: 560px) { .hero { padding-top: 56px; padding-bottom: 56px; } }

/* Doors */
.doors { padding-bottom: 104px; scroll-margin-top: 24px; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.door { background: var(--room); border: 1px solid var(--line); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.door-open { border-color: var(--line-lit); }
@media (max-width: 560px) { .door { padding: 24px; } }
.door-tag { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.door-tag .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.door-open .door-tag { color: var(--live); }
.door-open .door-tag .dot { background: var(--live); }
.door-wait .door-tag { color: var(--gold); }
.door-wait .door-tag .dot { border: 1.5px solid var(--gold); }
.door h2 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.door > p { color: var(--ink-2); text-wrap: pretty; }
.door-list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.door-list li { display: flex; gap: 12px; }
.door-list li::before { content: "+"; color: var(--live); flex: none; }
.door-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }

.notify { display: flex; flex-direction: column; gap: 12px; }
.notify label.field-label { font-size: 14px; font-weight: 600; }
.notify-row { display: flex; flex-wrap: wrap; gap: 12px; }
.notify input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-lit); background: var(--void); color: var(--ink); font-family: inherit; font-size: 16px; }
.notify input[type="email"]::placeholder { color: var(--ink-3); }
.notify .check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-top: 4px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.notify .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--violet); }
.notify-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.notify-status.ok { color: var(--live); }
.notify-status.err { color: #FF8FA0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { margin-top: auto; padding-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Inside the house */
.house .eyebrow { color: var(--pink); }
.house-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 48px; }
.house-grid li { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-lit); padding-top: 24px; }
.house-grid h3 { font-size: 20px; font-weight: 700; }
.house-grid p { color: var(--ink-2); font-size: 16px; }

/* Memory */
.memory .eyebrow, .memory .more { color: var(--cyan); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.steps li { background: var(--room); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.steps h3 { font-size: 22px; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Promise */
.promise { padding-top: 104px; padding-bottom: 104px; gap: 56px; scroll-margin-top: 24px; }
.promise .eyebrow, .promise .more { color: var(--gold); }
.promise-head { display: flex; flex-direction: column; gap: 20px; max-width: 880px; }
.promise-head h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.promise-head .promise-sub { color: var(--ink-2); font-size: 20px; max-width: 720px; text-wrap: pretty; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.principles li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-lit); padding-top: 24px; }
.principles h3 { font-size: 20px; font-weight: 700; }
.principles p { color: var(--ink-2); font-size: 16px; }

/* Makers */
.makers { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.makers-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.makers h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.makers p { color: var(--ink-2); max-width: 620px; text-wrap: pretty; }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.legal { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--ink-3); }

/* ---------- Shared pieces for the inner pages ---------- */
.site-nav a[aria-current="page"] { color: var(--ink); }

.page-hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; max-width: 900px; }
.page-hero .lede { font-size: 20px; max-width: 720px; }
.page-hero .byline { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) { .page-hero { padding-top: 56px; padding-bottom: 48px; } .section { padding-top: 64px; padding-bottom: 64px; } }

.eyebrow-violet { color: var(--violet); }
.eyebrow-pink { color: var(--pink); }
.eyebrow-cyan { color: var(--cyan); }
.eyebrow-gold { color: var(--gold); }
.eyebrow-live { color: var(--live); }

.body-text { color: var(--ink-2); max-width: 720px; text-wrap: pretty; }
.body-text strong, .card strong { color: var(--ink); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card { background: var(--room); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card .num, .card .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.card p { color: var(--ink-2); font-size: 16px; }
.band-dusk .card { background: var(--void); }

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.rules > li, .rules > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-lit); padding-top: 24px; }
.rules-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.rules h3 { font-size: 20px; font-weight: 700; }
.rules p { color: var(--ink-2); font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; padding: 6px 12px; border: 1px solid var(--line-lit); border-radius: 999px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px 64px; align-items: start; }
.split > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.tree { margin: 0; padding: 24px 28px; background: var(--room); border: 1px solid var(--line); border-radius: 12px; font-family: var(--mono); font-size: 14px; line-height: 1.9; color: var(--ink-2); overflow-x: auto; }
.band-dusk .tree { background: var(--void); }
@media (max-width: 560px) { .tree { font-size: 12px; padding: 18px 16px; } .tree i { display: none; } }
.tree b { color: var(--ink); font-weight: 500; }
.tree i { color: var(--ink-3); font-style: normal; }

.steps-list { counter-reset: step; display: flex; flex-direction: column; max-width: 820px; }
.steps-list li { counter-increment: step; display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.steps-list li:last-child { border-bottom: 1px solid var(--line); }
.steps-list li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--gold); padding-top: 3px; flex: none; }

.bullets { display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); max-width: 720px; }
.bullets li { display: flex; gap: 14px; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; margin-top: 11px; }
.bullets strong { color: var(--ink); font-weight: 600; }

.callout { border: 1px solid var(--line-lit); border-radius: 12px; padding: 24px 28px; color: var(--ink-2); max-width: 820px; background: var(--room); }
.band-dusk .callout { background: var(--void); }
.callout strong { color: var(--ink); font-weight: 600; }

/* Table that turns into stacked cards on a phone */
.layers { width: 100%; border-collapse: collapse; font-size: 16px; }
.layers caption { text-align: left; }
.layers th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 24px 14px 0; }
.layers td { vertical-align: top; padding: 20px 24px 20px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.layers td:first-child { width: 26%; }
.layers td:nth-child(2) { width: 26%; }
.layers .term { display: block; color: var(--ink); font-weight: 700; font-size: 18px; }
.layers .sub { display: block; font-size: 14px; color: var(--ink-3); }
.layers .tech { font-family: var(--mono); font-size: 14px; color: var(--cyan); line-height: 1.7; }
@media (max-width: 760px) {
  .layers thead { position: absolute; left: -9999px; }
  .layers, .layers tbody, .layers tr, .layers td { display: block; width: auto; }
  .layers td:first-child, .layers td:nth-child(2) { width: auto; }
  .layers tr { border-top: 1px solid var(--line-lit); padding: 20px 0; }
  .layers td { border: 0; padding: 4px 0; }
}

/* Essay */
.essay { padding-top: 24px; padding-bottom: 104px; }
.essay-body { max-width: 720px; display: flex; flex-direction: column; gap: 28px; font-size: 20px; line-height: 1.65; color: #DCD2EE; text-wrap: pretty; }
.essay-body .pull { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: var(--gold); padding: 16px 0; text-wrap: balance; }
.essay-sign { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; max-width: 960px; }
.photos figure { display: flex; flex-direction: column; gap: 10px; }
.photos img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.photos figcaption { font-size: 14px; color: var(--ink-3); }

.next { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.next h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label, .contact-form legend { font-size: 14px; font-weight: 600; padding: 0; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line-lit); background: var(--void); color: var(--ink); font-family: inherit; font-size: 16px; line-height: 1.5; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form ::placeholder { color: var(--ink-3); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-lit); border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.radio-row input { accent-color: var(--violet); width: 18px; height: 18px; margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--violet); color: var(--ink); }
.contact-form .btn { align-self: flex-start; }
.form-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--live); }
.form-status.err { color: #FF8FA0; }
