@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/public-sans.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: hsl(150 8% 5%);
  --fg: hsl(44 24% 93%);
  --card: hsl(150 8% 8%);
  --muted: hsl(142 9% 68%);
  --line: hsl(150 8% 17%);
  --lime: hsl(74 94% 60%);
  --ink: hsl(150 26% 6%);
  --paper: hsl(44 30% 93%);
  --paper-fg: hsl(150 14% 9%);
  --paper-muted: hsl(150 8% 28%);
  --paper-line: hsl(44 14% 79%);
  --max: 72rem;
  --pad: 1.25rem;
  --bar: 4.5rem;
  --font-display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-x: clip;
}

body.has-bar { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.5rem;
  z-index: 50;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.skip:focus { transform: none; }

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.signal {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--lime);
  flex: none;
}

.icon { width: 1.05rem; height: 1.05rem; flex: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  min-height: 4rem;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-height: 2.75rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-role { display: block; color: var(--muted); margin-top: 0.1rem; }

.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.45rem;
}

.nav a[aria-current="page"],
.nav a:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ink { background: var(--ink); color: var(--lime); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

.section { padding: 2.5rem 0; }
.section.tight { padding-top: 0; }
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.paper { background: var(--paper); color: var(--paper-fg); }
.paper .mono, .quiet { color: var(--paper-muted); }

h1 { font-size: clamp(2.15rem, 9vw, 4rem); }
h2 { margin-top: 0.7rem; font-size: clamp(1.8rem, 6vw, 2.6rem); }
h2 .quiet { color: var(--muted); }
.paper h2 .quiet { color: var(--paper-muted); }

.stack { display: grid; gap: 0.9rem; margin-top: 1rem; max-width: 40rem; }
.lead { margin-top: 0.85rem; max-width: 40rem; }
.stack p, .prose { font-size: 1.0625rem; line-height: 1.55; }
.paper .stack p { color: var(--paper-muted); }

.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: -10rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--lime) 28%, transparent), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 1.5rem 0 1.75rem; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
}
h1 .lime { color: var(--lime); }
.sub { margin-top: 1rem; max-width: 36rem; color: var(--muted); font-size: 1.0625rem; }

.choices { display: grid; gap: 0.75rem; margin-top: 1.35rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-underline-offset: 0.18em;
}
.text-link:hover { color: var(--fg); }

body.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.home main,
body.home .hero { flex: 1; display: flex; flex-direction: column; }
body.home .hero { border-bottom: 0; }
body.home h1 { font-size: clamp(1.9rem, 8.4vw, 3.1rem); }
.who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.who .kicker { margin: 0; }
.who-photo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--lime);
}
body.home h1 { margin-top: 1rem; max-width: 22ch; }
body.home .choices { max-width: 36rem; }
.who-strip { margin-top: 0.75rem; color: var(--muted); }
.who-proof { margin-top: 0.35rem; max-width: 36rem; }
.build-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.7rem;
}
.build-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 0.35rem;
}
.build-row p { margin-top: 0; }
.home-screen {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.cards { display: grid; gap: 0.75rem; margin-top: 1rem; }
.card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1rem;
}
.paper .card {
  background: transparent;
  border-color: var(--paper-line);
}
.card h3 { font-size: 1.25rem; line-height: 1.15; }
.card p { margin-top: 0.55rem; color: var(--muted); }
.paper .card p { color: var(--paper-muted); }
.step-index { color: var(--lime); }

.receipts { display: grid; gap: 0.75rem; margin-top: 1rem; }
.receipt { background: var(--bg); border: 1px solid var(--line); padding: 1rem; }
.metric {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--lime);
}
.metric-note { margin-top: 0.35rem; color: var(--muted); }
.receipt p { margin-top: 0.75rem; }
.disclaimer { margin-top: 0.9rem; max-width: 40rem; color: var(--muted); font-size: 1rem; }

.faq { border-top: 1px solid var(--line); margin-top: 0.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  align-items: center;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 1rem; max-width: 40rem; color: var(--muted); }

.close { background: var(--lime); color: var(--ink); }
.close .mono, .close .quiet-ink { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.close-actions { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.tertiary { margin-top: 1rem; }
.tertiary p { margin-bottom: 0.4rem; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-underline-offset: 0.18em;
}
.status { min-height: 1.4rem; margin-top: 0.55rem; }
.copy-fallback {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 16rem;
  height: 6rem;
}
.copy-fallback.is-shown {
  position: static;
  left: auto;
  width: 100%;
  height: auto;
  min-height: 6.5rem;
  margin-top: 0.6rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  background: var(--paper);
  color: var(--paper-fg);
  font: inherit;
  font-size: 1rem;
}

.portrait { margin: 0; }
.portrait img { width: 100%; border: 1px solid var(--paper-line); }
.portrait figcaption { margin-top: 0.55rem; }

.year-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
.year-row details { border: 1px solid var(--paper-line); background: transparent; }
.year-row summary {
  min-height: 3.25rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
  display: grid;
  align-content: center;
  gap: 0.15rem;
}
.year-row summary::-webkit-details-marker { display: none; }
.year-row details p { margin: 0; padding: 0 0.7rem 0.75rem; color: var(--paper-muted); }

.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-row a { color: var(--muted); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-row a:hover { color: var(--lime); }

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  padding: 0.5rem var(--pad) calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--line);
}
.bar .btn { width: 100%; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  :root { --pad: 2rem; }
  .choices, .close-actions { grid-template-columns: 1fr 1fr; }
  .receipts, .cards.three { grid-template-columns: repeat(3, 1fr); }
  .year-row { grid-template-columns: repeat(4, 1fr); }
  body.home h1 { font-size: clamp(2.3rem, 3.4vw, 3.1rem); }
  .who-photo { width: 3.25rem; height: 3.25rem; }
  body.home h1 { font-size: clamp(2.6rem, 4.6vw, 3.6rem); max-width: 20ch; }
  .build-row { grid-template-columns: 10rem 1fr; }
  .nav { width: auto; }
}

@media (max-width: 719px) {
  .nav { width: 100%; justify-content: space-between; }
  .brand-role { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .rise:nth-child(2) { animation-delay: 0.06s; }
  .rise:nth-child(3) { animation-delay: 0.12s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
