:root {
  --accent: #d97757;
  --ink: #141413;
  --ink-soft: #5f5e56;
  --cream: #faf9f5;
  --surface: #ffffff;
  --line: #e8e6dc;
  --mid: #b0aea5;
  --radius: 16px;
  --font-display: "Poppins", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --header-h: 4.1rem;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}
@media (min-width: 768px) and (min-height: 560px) {
  html.snap { scroll-snap-type: y mandatory; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}
::selection { background: var(--accent); color: var(--cream); }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: fixed; left: -999px; top: 0; z-index: 30;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- fixed header over the panels */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header-h);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav {
  max-width: 72rem; height: 100%; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand .sep { color: var(--mid); font-family: var(--font-display); }
.brand .project { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.wordmark img { width: 36px; height: 36px; display: block; }
.wordmark span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 1.5rem; font-family: var(--font-display); font-size: 0.9rem; }
.nav nav a { text-decoration: none; color: var(--ink-soft); }
.nav nav a:hover { color: var(--accent); }

/* ---- full-screen snap panels */
.panel {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
}
.panel.alt { background: var(--surface); }
.panel.dark { background: var(--ink); color: var(--cream); }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- snap dot nav */
.dots {
  position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 0.8rem; margin: 0; padding: 0; list-style: none;
}
.dots a {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--mid); background: transparent;
}
.dots a:hover { border-color: var(--accent); }
.dots a.active { background: var(--accent); border-color: var(--accent); }
.dots a span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 880px) { .dots { display: none; } }

/* ---- type */
.eyebrow {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0;
}
h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1.02; margin: 0.9rem 0 1.25rem; max-width: 18ch;
}
h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.4rem; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--ink-soft); max-width: 40rem; margin: 0 0 2rem; font-style: italic; }
.dark .lede, .dark .muted { color: var(--mid); }
.muted { color: var(--ink-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 500;
  padding: 0.5rem 1.05rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface);
}
.badge .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.scroll-hint {
  margin-top: 3.5rem; font-family: var(--font-display); font-size: 0.85rem;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.scroll-hint::after { content: "↓"; color: var(--accent); font-size: 1.1rem; }

/* ---- roadmap timeline */
.timeline { list-style: none; display: flex; margin: 3rem 0 0; padding: 0; }
.timeline li { flex: 1; position: relative; padding-top: 1.6rem; padding-right: 1rem; }
.timeline li::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line);
}
.timeline li.done::before { background: var(--accent); }
.timeline li.now::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.timeline .dot {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); outline: 3px solid var(--surface);
}
.timeline li.future .dot { background: var(--surface); border: 2px solid var(--mid); width: 10px; height: 10px; }
.timeline li.now .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.timeline .when { font-family: var(--font-display); font-size: 0.82rem; color: var(--ink-soft); }
.timeline li.future strong { color: var(--ink-soft); }

/* ---- pillar / portfolio cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.panel:not(.alt) .card { background: var(--surface); }
.card .tick { width: 26px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 0.9rem; }
.card p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }
.card a.cardlink { font-family: var(--font-display); font-size: 0.9rem; margin-top: 0.85rem; }

/* ---- notify form (dark panel) */
.notify form { margin-top: 2rem; max-width: 40rem; }
.fields { display: flex; gap: 0.75rem; align-items: flex-end; }
.fields > div { flex: 1; }
label { display: block; font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 0.45rem; color: var(--line); }
input[type="email"] {
  font: inherit; width: 100%; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1.5px solid #3a3934; background: #1f1e1c; color: var(--cream);
}
input[type="email"]::placeholder { color: #8a887f; }
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type="email"][aria-invalid="true"] { border-color: #e08d7a; }
.field-error { color: #f0b4a6; font-size: 0.9rem; min-height: 1.3em; margin: 0.5rem 0 0; font-family: var(--font-display); }
button {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 0.8rem 1.7rem; border: 0; border-radius: 10px;
  background: var(--accent); color: #141413;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform 0.12s ease;
}
button:hover { transform: translateY(-1px); }
button[disabled] { opacity: 0.75; cursor: wait; transform: none; }
.spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(20,20,19,0.3); border-top-color: #141413;
  animation: spin 0.7s linear infinite; display: none;
}
button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } button { transition: none; } }

/* ---- footer (lives inside the last dark panel) */
.foot {
  margin-top: 4rem; padding-top: 1.75rem; border-top: 1px solid #3a3934;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--mid);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-family: var(--font-display); font-size: 0.88rem; }
.foot a { color: var(--mid); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot p { margin: 0; font-size: 0.85rem; }
.foot .madeby {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--cream);
}
.foot .madeby img { }
.foot .madeby a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--accent); }
.foot .madeby a:hover { color: var(--accent); }

/* ---- stage pages (404 / thanks / derp) */
.stage { text-align: left; max-width: 46rem; }
.big { font-size: clamp(4rem, 15vw, 6.5rem); margin: 0 0 1rem; line-height: 1; }
pre.dog { font-family: ui-monospace, monospace; color: var(--ink-soft); line-height: 1.3; overflow-x: auto; }
.madeby-light {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 2.5rem;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--ink-soft);
}
.madeby-light img { }

/* ---- prose pages */
.prose { padding: 2rem 0 3rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose p { max-width: 44rem; }

/* ---- mobile breakpoints */
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .fields { flex-direction: column; align-items: stretch; }
  button { width: 100%; }
  .panel { padding-top: calc(var(--header-h) + 1.5rem); }
  .timeline { flex-direction: column; gap: 1.35rem; margin-top: 2rem; }
  .timeline li { padding: 0 0 0 1.65rem; }
  .timeline li::before { top: 0.4rem; bottom: -1.35rem; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li.now::before { background: linear-gradient(180deg, var(--accent) 50%, var(--line) 50%); }
  .timeline .dot { top: 0.32rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
