:root {
  --paper: #fff8f2;
  --paper-2: #f4ebe1;
  --paper-3: #eadfd2;
  --ink: #312019;
  --ink-soft: #5a4033;
  --muted: #6b4f42;
  --line: #d8c4b2;
  --terracotta: #b4472a;
  --terracotta-ink: #6e2414;
  --cta-text: #fff8f2;
  --teal: #0d5c58;
  --teal-soft: #e4f1ef;
  --sand: #e8d4be;
  --wash: #3a261c;
  --focus: #0d5c58;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(49, 32, 25, 0.08);
  --header-h: 72px;
  --max: 1180px;
  --font: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2-variations"),
       url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Segoe UI");
  size-adjust: 103%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

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

html { scroll-behavior: auto; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  min-width: 0;
}

img, video, svg { max-width: 100%; display: block; height: auto; }
img { width: 100%; object-fit: cover; }
table { width: 100%; border-collapse: collapse; }
button, input, textarea { font: inherit; }
a { color: var(--teal); text-underline-offset: 2px; }
.prose a { text-decoration: underline; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 400;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}
.container-narrow { width: min(760px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 320;
  height: var(--header-h);
  background: #fff8f2;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 15px;
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
  min-width: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a[aria-current="page"] { color: var(--terracotta); }
.main-nav a.nav-cta,
.header-cta {
  margin-left: auto;
  background: var(--terracotta);
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta { display: inline-flex; align-items: center; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  position: fixed;
  top: 14px;
  right: 12px;
  z-index: 500;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  touch-action: manipulation;
}
.hamburger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  min-height: 2px;
  flex: 0 0 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(49, 32, 25, 0.45);
}
.mobile-drawer.open,
.mobile-drawer.is-open { display: block; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--paper);
  padding: 20px 20px 32px;
  overflow: auto;
  border-left: 1px solid var(--line);
}
.drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.drawer-nav {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.drawer-nav a {
  display: block;
  padding: 12px 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--paper-3);
  white-space: nowrap;
}
.drawer-nav a.nav-cta {
  margin-top: 12px;
  background: var(--terracotta);
  color: var(--cta-text);
  text-align: center;
  border: 0;
  border-radius: 999px;
}

body.nav-open { overflow: hidden; }

section[id] { scroll-margin-top: 88px; }

.hero,
#hero {
  padding: 28px 0 40px;
  background:
    linear-gradient(180deg, #f7ece1 0%, var(--paper) 100%);
}
.hero-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero h1,
#hero-h {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.hero-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary,
.btn-play {
  background: var(--terracotta);
  color: var(--cta-text);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.band { padding: 56px 0; min-width: 0; }
@media (max-width: 899px) {
  .band {
    height: auto;
    max-height: none;
    overflow: visible;
    content-visibility: visible;
    contain-intrinsic-size: none;
  }
}
.band-sand { background: var(--paper-2); }
.band-ink { background: var(--wash); color: var(--paper); }
.band-ink a { color: #f2c7b4; }
.band-teal { background: var(--teal-soft); }
.band-header { margin-bottom: 22px; max-width: 68ch; }
.band-header h2,
.chapter h2,
.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lede { color: var(--ink-soft); margin: 10px 0 0; }

.compliance-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: #f8efe6;
}
.compliance-strip p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.timeline-deal,
.timeline-show {
  min-width: 0;
  padding: 24px;
}
.timeline-deal { background: var(--paper); border-right: 1px solid var(--line); }
.timeline-show { background: #f6eee5; }
.axis-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 14px;
}
.beat { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0 0 16px; }
.beat:last-child { margin-bottom: 0; }
.beat-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.beat h3 { margin: 0 0 4px; font-size: 16px; }
.beat p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.ledger {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row dt {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ledger-row dd { margin: 0; min-width: 0; color: var(--ink-soft); }
.ledger-row dd.bound,
.bound {
  justify-self: end;
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.thumb-stream {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.thumb {
  scroll-snap-align: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.thumb img { aspect-ratio: 4 / 3; }
.thumb figcaption {
  padding: 10px 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.stepper {
  display: grid;
  gap: 12px;
}
.step-card,
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  min-width: 0;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.sheet {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.sheet-row dt { margin: 0; font-weight: 800; }
.sheet-row dd { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.split img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.skill-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.skill-col article { padding: 22px; min-width: 0; }
.skill-col article:first-child { background: var(--paper); border-right: 1px solid var(--line); }
.skill-col article:last-child { background: #f3e7db; }
.skill-col h3 { margin: 0 0 8px; }

.gate {
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  padding: 22px 24px;
  background: var(--paper);
  border-radius: 0 12px 12px 0;
}
.workshop {
  display: grid;
  gap: 10px;
}
.workshop label,
.check-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.checkpoint {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--wash);
  color: var(--paper);
  border-radius: 16px;
}
.checkpoint h2 { margin: 0; }
.checkpoint p { margin: 0; color: #eadfd2; }

.data-table-wrap { overflow-x: auto; }
.data-table {
  min-width: 560px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { background: var(--paper-2); font-size: 13px; }

.faq,
.disclosure { display: grid; gap: 8px; }
.faq details,
.q-item,
.disclose {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 4px 14px;
}
.faq summary,
.q-item summary,
.disclose summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.register a {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.register h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}
.register time { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.route-list,
.text-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.route-list a,
.text-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.defs {
  display: grid;
  gap: 10px;
}
.defs div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.defs dt { margin: 0; font-weight: 800; }
.defs dd { margin: 0; color: var(--ink-soft); }

.colophon {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.page-hero { padding: 28px 0 20px; }
.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 20ch;
}
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: inherit; }
.page-hero img,
.banner {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.prose { max-width: 70ch; }
.prose h2 { margin: 1.6em 0 0.5em; letter-spacing: -0.02em; font-size: 28px; }
.prose h3 { margin: 1.3em 0 0.4em; font-size: 20px; }
.prose p { margin: 0 0 1em; }
.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 28px 0;
}
.inline-image-row img,
.inline-img {
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
figure { margin: 28px 0; }
figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.card,
.data-card,
.loose-card,
.hub-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--paper);
}
.card-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.band-elev-1 { background: var(--paper-2); }

.site-footer {
  background: var(--wash);
  color: #eadfd2;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #f3e7db; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 212, 190, 0.2);
  font-size: 13px;
  color: #cbb5a3;
}

.mobile-sticky {
  display: none;
}

.disclaimer { font-size: 13px; color: var(--muted); }

@media (max-width: 899px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  html.is-drawer-open .site-header {
    position: static;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    transform: none;
    will-change: auto;
  }
  html.is-drawer-open,
  html.is-drawer-open body { overflow: hidden; }
  .hero, #hero {
    min-height: 480px;
    max-height: 720px;
    padding: 20px 0 28px;
    overflow: hidden;
  }
  .hero h1, #hero-h { font-size: 32px; max-width: none; }
  .hero-lede { font-size: 16px; }
  .hero-trust { display: none !important; }
  .timeline,
  .ledger-row,
  .sheet-row,
  .split,
  .skill-col,
  .inline-image-row,
  .footer-grid,
  .defs div {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline-deal { border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-col article:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .bound { justify-self: start; }
  .thumb-stream { grid-auto-columns: 78%; }
  .mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 260;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 248, 242, 0.96);
    border-top: 1px solid var(--line);
  }
  .mobile-sticky .btn,
  .mobile-sticky a {
    display: flex;
    width: 100%;
    white-space: nowrap;
  }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 24px); }
  .hero h1, #hero-h { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
