
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  overflow-wrap: anywhere;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  overflow-x: hidden;
}
h1 { overflow-wrap: normal; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.05rem + 0.35vw, 1.3rem); }
p { margin: 0; }
a { color: var(--link); }
.mono { font-family: var(--f-mono); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 60; padding: 10px 16px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease-out);
}
.skip:focus-visible { transform: none; }
.wrap {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-left: max(16px, 4vw, env(safe-area-inset-left));
  padding-right: max(16px, 4vw, env(safe-area-inset-right));
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: var(--btn-border) solid var(--primary); border-radius: var(--radius-btn);
  background: transparent; color: var(--text);
  font: 700 0.875rem/1.2 var(--f-btn); letter-spacing: var(--btn-track); text-transform: var(--btn-case);
  text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform 0.16s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--primary); color: var(--on-primary); }
.btn-ctrl[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--primary); color: var(--on-primary); }
  .btn-main:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .nav a:hover { color: var(--label); }
  .social-list a:hover { color: var(--accent); }
}
.btn:active { transform: scale(0.97); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; min-height: 44px; }
.wordmark .mono { font-size: 1.05rem; }
.nav { display: none; margin-left: auto; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font: 600 0.8125rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 0; white-space: nowrap; }
.pill { margin-left: auto; min-height: 44px; }
@media (max-width: 559px) { .wordmark .mono { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .pill { flex: 0 1 auto; min-width: 0; text-align: center; font-size: 0.8rem; } }
@media (min-width: 1080px) { .nav { display: flex; } .pill { margin-left: 8px; } }

/* Hero */
.hero { display: grid; gap: clamp(14px, 3vw, 40px); align-items: center; padding-block: clamp(14px, 4vw, 44px); }
@media (min-width: 900px) { .hero { min-height: calc(100svh - var(--header-h)); } }
@media (max-width: 899px) { .hero-text { gap: 10px; } .pitch { font-size: 0.95rem; line-height: 1.5; } .hero-name { font-size: 0.85rem; } .btn { padding: 8px 16px; } }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hero-text { container-type: inline-size; display: grid; gap: 16px; align-content: center; justify-items: start; }
.kicker, .eyebrow { font: 600 0.75rem/1.3 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: var(--h1-track, -0.01em); }
.h1-ticker { display: block; font-size: clamp(1.4rem, calc(100cqw / var(--fit, 8)), 4.2rem); line-height: 1.05; }
.h1-line { display: block; margin-top: 6px; }
.h1-line em { font-style: normal; color: var(--accent); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.hero-name { color: var(--muted); font-size: 0.95rem; }
.hero-name strong { color: var(--text); }
.pitch { max-width: 46ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.chip strong { color: var(--text); }
.chip a { min-height: 44px; display: inline-flex; align-items: center; }
.chip-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--personal); border: 2px solid var(--text); flex: none; }

/* Toy */
.toy { min-width: 0; display: grid; gap: 12px; touch-action: pan-y; }
.toy-stage { position: relative; width: 100%; aspect-ratio: 9 / 8; border-radius: var(--radius); overflow: hidden; background: var(--stage-bg); border: var(--stage-border); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
#scene:focus-visible { outline-offset: -4px; }
.hud { position: absolute; left: 10px; top: 10px; display: grid; gap: 2px; padding: 8px 10px; background: var(--hud-bg); color: var(--hud-text); border-radius: var(--radius-sm); font: 600 0.72rem/1.35 var(--f-mono); pointer-events: none; max-width: 58%; }
@media (max-width: 559px) { .hud { font-size: 0.62rem; padding: 6px 8px; } .toy-status { font-size: 0.7rem; padding: 5px 8px; } }
.hud-row { display: flex; justify-content: space-between; gap: 12px; }
.hud-k { opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-bar { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hud-rail { flex: 1; height: 6px; background: rgba(128, 128, 128, 0.35); border-radius: 3px; overflow: hidden; min-width: 56px; }
.hud-fill { display: block; height: 100%; background: var(--hud-fill); transform-origin: left center; transform: scaleX(1); }
.toy-status { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; background: var(--hud-bg); color: var(--hud-text); border-radius: var(--radius-sm); font: 600 0.78rem/1.35 var(--f-mono); pointer-events: none; }
.toy-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.toy-help { color: var(--muted); font-size: 0.875rem; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 60ch; }
.lede { color: var(--muted); max-width: 60ch; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0.4; transform: translateY(24px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* About: scroll gauge */
.charter { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .charter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .charter-head { position: sticky; top: calc(var(--header-h) + 24px); } }
.charter-body { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; }
.trail { position: relative; }
.trail-rail { position: absolute; left: 12px; top: 0; bottom: 0; width: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.trail-fill { position: absolute; inset: 0; background: var(--primary); transform-origin: top center; transform: scaleY(0.04); }
.trail-mark { position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; will-change: transform; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 6vw, 72px); }
.chapter { opacity: 0.55; transition: opacity 0.3s var(--ease-out); }
.chapter.is-lit { opacity: 1; }
.chapter-no { display: block; font: 700 0.8rem/1 var(--f-mono); color: var(--label); letter-spacing: 0.1em; margin-bottom: 8px; }
.chapter p { color: var(--muted); max-width: 52ch; margin-top: 6px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-tag { font: 700 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.step p { color: var(--muted); }

/* Contract */
.registry { display: grid; gap: 24px; }
@media (min-width: 900px) { .registry { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.plate { display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plate-label { font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plate code { display: block; padding: 14px; background: var(--code-bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font: 600 0.95rem/1.5 var(--f-mono); overflow-wrap: anywhere; cursor: pointer; color: var(--text); }
.plate-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-note { color: var(--muted); font-size: 0.875rem; }

/* Tokenomics */
.ledger-wrap { display: grid; gap: 24px; max-width: 880px; }
.ledger { margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.ledger-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 700; text-align: right; }
.allocation h3 { margin-bottom: 12px; }
.shares { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.share-text { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.share-rail { display: block; height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.share-fill { display: block; height: 100%; background: var(--primary); transform-origin: left center; transform: scaleX(calc(var(--share) / 100)); }
.notes { color: var(--muted); max-width: 64ch; }
.sign { font: 600 0.75rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; padding: 16px 20px; min-height: 44px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 700 1.3rem/1 var(--f-mono); color: var(--label); flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-strong); padding-block: clamp(36px, 6vw, 64px); background: var(--footer-bg); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); } }
.footer-mark { font-weight: 800; display: flex; align-items: center; gap: 10px; }
.footer-motto { color: var(--muted); margin-top: 6px; }
.footer-name { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.footer-h { font: 700 0.8rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); margin-bottom: 12px; }
.social-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.social-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; }
.footer-fine p { color: var(--muted); font-size: 0.875rem; max-width: 70ch; }
.colophon { margin-top: 14px; font: 600 0.8rem/1.4 var(--f-mono); color: var(--text) !important; }
.workshop-wrap { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .workshop-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.swatches { border: 0; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font: 700 0.75rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 0.875rem; background: var(--surface); }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { border-color: var(--label); box-shadow: inset 0 0 0 2px var(--primary); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatch-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text); background: var(--dot); flex: none; }
.fine { color: var(--muted); font-size: 0.85rem; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field label { font: 700 0.75rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input { min-height: 44px; padding: 8px 12px; background: var(--code-bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 600 1rem/1.3 var(--f-body); max-width: 320px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* The windy meadow: dusted velvet in late-morning sun. */
:root {
  --bg: #fff5fb;
  --surface: #ffffff;
  --text: #3a2b4d;
  --muted: #6f5f87;
  --primary: #ff85c0;
  --on-primary: #3a2b4d;
  --accent: #b79bff;
  --on-accent: #2a1d3d;
  --label: #b0206f;
  --link: #6a3fd0;
  --focus: #6a3fd0;
  --line: rgba(58, 43, 77, 0.14);
  --line-strong: rgba(58, 43, 77, 0.4);
  --header-bg: rgba(255, 245, 251, 0.92);
  --footer-bg: #ffe9f5;
  --code-bg: #fff5fb;
  --personal: #5b3a29;
  --stage-bg: #bfe6ff;
  --stage-border: 3px solid var(--text);
  --hud-bg: rgba(58, 43, 77, 0.84);
  --hud-text: #fff5fb;
  --hud-fill: #ffd24d;
  --f-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-btn: "Baloo 2", "Nunito", system-ui, sans-serif;
  --btn-border: 2px;
  --btn-track: 0.02em;
  --btn-case: none;
  --radius: 28px;
  --radius-sm: 16px;
  --radius-btn: 999px;
  --container: 1240px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
body { background: var(--bg) radial-gradient(circle at 12% 0%, #ffe3f2 0, transparent 38%) no-repeat; }
h1, h2, h3 { font-weight: 700; }
.mark { width: 24px; height: 18px; border-radius: 50%; background: repeating-linear-gradient(90deg, #ffd24d 0 6px, #5b3a29 6px 10px); border: 2px solid var(--text); }
.btn { font-size: 1rem; }
.hero { position: relative; }
.chip-dot { border-radius: 50% 50% 50% 8px; }
.toy-stage { box-shadow: 8px 10px 0 rgba(183, 155, 255, 0.55); }

/* Flight log: a route chart with a bee that rides the fill */
.charter-body { background: linear-gradient(180deg, rgba(255, 133, 192, 0.1), rgba(183, 155, 255, 0.14)); border-radius: var(--radius); padding: clamp(18px, 3vw, 34px); }
.trail-rail { background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.trail-fill { background: var(--primary); }
.chapter-no { display: inline-block; padding: 4px 10px; background: #fff; border: 2px solid var(--text); border-radius: 999px; font-size: 0.72rem; }

/* Bee shed */
.bee-preview { display: grid; place-items: center; padding: 20px; background: #dff2ff; border: 3px solid var(--text); border-radius: var(--radius); box-shadow: 8px 10px 0 rgba(255, 133, 192, 0.6); }
.bee-svg { width: min(100%, 360px); height: auto; }

/* Pick-up points: petal-shaped cards, each tilted a little */
.step { border: 2px solid var(--text); border-radius: 30px 30px 30px 6px; background: #fff; }
.step:nth-child(2n) { border-radius: 30px 30px 6px 30px; background: #f5efff; }
.step:nth-child(3n) { background: #fff0f7; }
.step-tag { color: var(--label); }
.step h3 { color: var(--text); }

/* Plate on the gate */
.plate { background: #fff; border: 3px solid var(--text); border-radius: var(--radius-sm); box-shadow: 6px 8px 0 rgba(255, 133, 192, 0.6); }
.plate code { border-radius: 12px; }

/* Honey ledger: rows like jar labels */
.ledger { border-top: 0; gap: 8px; }
.ledger-row { background: #fff; border: 2px solid var(--text); border-radius: 999px; padding: 10px 22px; }
.share-fill { background: linear-gradient(90deg, #ffd24d, #ff85c0); }
.share-rail { height: 14px; background: #fff; border: 2px solid var(--text); border-radius: 999px; }

.faq-item { border: 2px solid var(--text); border-radius: 22px; background: #fff; }
.faq-item[open] { background: #fff0f7; }
.site-footer { border-top: 3px solid var(--text); }
.social-list a { text-decoration: underline; text-decoration-thickness: 2px; }
