@font-face { font-family: Figtree; src: url("/fonts/Figtree-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Figtree; src: url("/fonts/Figtree-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Figtree; src: url("/fonts/Figtree-680.ttf") format("truetype"); font-weight: 680; font-style: normal; font-display: swap; }
@font-face { font-family: Fraunces; src: url("/fonts/Fraunces-Italic-600.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

/* Flat colour only. */
:root {
  --ink: #16131c;
  --chalk: #f7f1e8;
  --saffron: #ffb31a;
  --pink: #f2668b;
  --clay: #d9c8b8;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --bar: 64px;
  --round: clamp(1.75rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--chalk);
  font-family: Figtree, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.125rem; line-height: 1.6;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--saffron); color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--saffron); color: var(--ink); padding: 0.5rem 0.85rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }
.wrap { width: min(1200px, calc(100% - 2 * var(--gut))); margin-inline: auto; }

/* sticky slim header, flat */
.mast { position: sticky; top: 0; z-index: 50; height: var(--bar); background: var(--ink); border-bottom: 3px solid var(--saffron); }
.mast-in { height: 100%; display: flex; align-items: center; }
.brand { display: inline-block; text-decoration: none; line-height: 0; }
.lockup-tight { width: auto; height: 30px; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 0; background: var(--ink);
  min-height: calc(100svh - var(--bar) - 1.5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 calc(var(--round) + clamp(2rem, 4vw, 3rem));
  display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.6rem; padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border: 2px solid var(--chalk); border-radius: 999px;
  font-size: 0.75rem; font-weight: 680; letter-spacing: 0.15em; text-transform: uppercase; color: var(--chalk);
}
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
h1, h2, h3 { margin: 0; }
h1, .sec-h, .step-body h3, .founder-close {
  font-family: Fraunces, "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-weight: 600;
}
h1 { font-size: clamp(2.55rem, 5.8vw, 5.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--chalk); margin-bottom: clamp(1.4rem, 2.5vw, 2.2rem); }
.hl { color: var(--saffron); }
.lede { margin: 0; max-width: 34rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--clay); }
.hero-art-wrap { min-width: 0; margin-right: calc(-1 * clamp(0rem, 3vw, 3rem)); }
.hero-art { width: 100%; height: auto; display: block; overflow: visible; }

/* eyes: blink now and then, pupils follow the cursor (site.js) */
.eyes { transform-box: fill-box; transform-origin: center; overflow: visible; }
.eyes .eg { transform-box: fill-box; transform-origin: center 70%; animation: blink 7s infinite; animation-delay: var(--bd, 0s); }
.eyes .pu { transition: transform 0.12s ease-out; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
.lounge { animation: lounge 7s ease-in-out infinite; transform-box: fill-box; }
@keyframes lounge { 50% { transform: translateY(-5px); } }

/* ---------- panels ---------- */
.panel { position: relative; z-index: 1; margin-top: calc(-1 * var(--round)); border-radius: var(--round) var(--round) 0 0; padding-block: clamp(4.5rem, 9vw, 8rem); }
.panel-chalk { background: var(--chalk); color: var(--ink); }
.panel-saffron { background: var(--saffron); color: var(--ink); }
.panel-pink { background: var(--pink); color: var(--ink); }
.panel-ink { background: var(--ink); color: var(--chalk); }
.sec-h { font-size: clamp(2.05rem, 4.2vw, 3.35rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 16em; }
.sec-h::before { content: ""; display: block; width: 52px; height: 8px; border-radius: 4px; background: var(--ink); margin-bottom: 1.4rem; }
.panel-ink .sec-h::before, .panel-chalk .sec-h::before { background: var(--saffron); }
.panel-chalk .sec-h::before { background: var(--pink); }
.panel p { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.62; max-width: 36rem; }
.panel-ink p { color: var(--clay); }
.panel-ink .sec-h { color: var(--chalk); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-flip .split-text { order: 2; }
.split-flip .eye-stage { order: 1; }
.split-art { min-width: 0; }
.art { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; overflow: visible; }

/* large sparse eye pairs, never behind body text */
.eye-stage { position: relative; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; }
.eye-stage .e-a { max-width: 100%; height: auto; }
.eye-stage .e-b { height: auto; align-self: flex-end; margin-right: 8%; }
.eye-stage-2 .e-b { align-self: flex-start; margin: 0 0 0 6%; }

/* ---------- how it works: flat colour blocks ---------- */
.how .sec-h { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.step {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num art" "body body"; grid-template-rows: 8rem 1fr; align-items: start; gap: 0.5rem 0.5rem;
  height: 100%; border-radius: 28px; padding: 1.7rem 1.7rem 2.1rem; box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--ink); }
.step-saffron { background: var(--saffron); color: var(--ink); }
.step-pink { background: var(--pink); color: var(--ink); }
.step-ink { background: var(--ink); color: var(--chalk); box-shadow: 8px 8px 0 var(--saffron); }
.step-ink:hover { box-shadow: 12px 12px 0 var(--saffron); }
.step-num { grid-area: num; font-weight: 680; font-size: clamp(4rem, 6vw, 5.5rem); line-height: 0.85; letter-spacing: -0.05em; }
.step-ink .step-num { color: var(--saffron); }
.step-art { grid-area: art; min-width: 0; margin: -0.6rem -1rem 0 -1.4rem; height: 8rem; display: flex; align-items: center; justify-content: flex-end; }
.vig { width: auto; max-width: 100%; max-height: 8rem; height: auto; display: block; overflow: visible; }
.step-body { grid-area: body; margin-top: 0.4rem; }
.step-body h3 { font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.panel .step-body p { font-size: 1.125rem; line-height: 1.65; font-weight: 400; letter-spacing: 0; max-width: none; color: inherit; }

/* ---------- data: the house ---------- */
.art-house { max-width: 520px; }

/* ---------- founder ---------- */
.founder { padding-bottom: calc(clamp(4.5rem, 9vw, 8rem) + var(--round)); }
.founder-card {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "photo text" "sheet sheet";
  gap: clamp(1.6rem, 4vw, 2.4rem) clamp(2rem, 5vw, 5rem); align-items: start;
  background: var(--ink); color: var(--chalk); border-radius: 32px; padding: clamp(1.75rem, 4vw, 3.5rem); box-shadow: 10px 10px 0 var(--pink);
}
.founder-photo { grid-area: photo; position: relative; margin: 0.5rem 0.9rem 0.9rem 0; }
.founder-text { grid-area: text; }
.sheet { grid-area: sheet; }
.founder-block { position: absolute; inset: 0; transform: translate(18px, 18px) rotate(2.5deg); background: var(--saffron); border-radius: 26px; }
.founder-img { position: relative; width: 100%; height: auto; border-radius: 26px; aspect-ratio: 8 / 9; object-fit: cover; object-position: center top; background: var(--clay); }
.founder-card .sec-h { color: var(--chalk); }
.founder-card .sec-h::before { background: var(--saffron); }
.founder-text p { color: var(--chalk); max-width: 40rem; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.5; letter-spacing: -0.012em; }
.panel .founder-text p.founder-link { margin-top: 2rem; font-size: 1.1rem; font-weight: 680; letter-spacing: 0; }
.founder-link a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--saffron); text-decoration: none; padding-bottom: 0.2rem; border-bottom: 3px solid currentColor; }
.founder-link a:hover { color: var(--pink); }
.founder-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.founder-link a:hover svg { transform: translateX(4px); }


/* ---------- character sheet ---------- */
.sheet {
  position: relative;
  background: var(--chalk);
  color: var(--ink);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 8px 8px 0 var(--saffron);
  /* notched, pixel-ish corners — no gradients */
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.sheet-eyes { position: absolute; top: 1.1rem; right: 1.2rem; width: 72px; height: auto; }
.sheet-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem; font-weight: 680; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.sheet-head { margin: 0 0 0.85rem; padding-right: 5.5rem; }
.sheet-head h3 { font-family: Figtree, "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: 680; font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.35rem; }
.sheet-class { margin: 0; font-size: 0.98rem; line-height: 1.45; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.sheet-lvl small { display: inline; font-weight: 400; font-size: 0.85em; letter-spacing: 0; margin-left: 0.35rem; }
.sheet-motto, .sheet-origin, .sheet-inv, .sheet-unlock { margin: 0 0 0.7rem; font-size: 1rem; line-height: 1.45; }
.sheet-motto, .sheet-cry {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: baseline;
}
.sheet-cry { margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.35; }
.sheet-cry .sheet-lab { font-style: normal; vertical-align: baseline; }
.sheet-cry-line { font-style: italic; font-weight: 400; }
.sheet-lab {
  display: inline-block; margin-right: 0.55rem;
  font-size: 0.68rem; font-weight: 680; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: middle;
}
.sheet-motto .sheet-lab, .sheet-cry .sheet-lab { margin-right: 0; }
.sheet-origin .sheet-lab, .sheet-inv .sheet-lab, .sheet-unlock .sheet-lab {
  min-width: 6.2rem;
}
.sheet-lab + * { }
.stats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.65rem; }
.stats li { margin: 0; }
.stat-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.28rem; }
.stat-meta span:last-child { font-weight: 400; font-variant-numeric: tabular-nums; }
.bar {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px;
  height: 12px; padding: 3px; background: var(--ink);
}
.bar span { display: block; height: 100%; min-width: 0; background: transparent; }
.bar span.on.saffron { background: var(--saffron); }
.bar span.on.pink { background: var(--pink); }
.bar span.on.chalk { background: var(--chalk); }
.sheet-caption { margin: 0.28rem 0 0; font-size: 0.88rem; line-height: 1.35; font-style: italic; font-weight: 400; color: var(--ink); }
.sheet-unlock { margin-bottom: 0; }

@media (max-width: 640px) {
  .sheet { padding: 1.2rem 1.15rem 1.3rem; }
  .sheet-eyes { width: 56px; top: 0.9rem; right: 0.9rem; }
  .sheet-head { padding-right: 4.2rem; }
  .sheet-class { display: grid; gap: 0.2rem; }
  .sheet-motto, .sheet-cry, .sheet-origin, .sheet-inv, .sheet-unlock { display: grid; grid-template-columns: 1fr; gap: 0.15rem; }
  .sheet-lab { margin: 0; }
  .stat-meta { font-size: 0.88rem; }
}

.panel .founder-close {
  margin: clamp(2.25rem, 4.5vw, 3.25rem) auto 0;
  max-width: 32rem;
  text-align: center;
  font-family: Fraunces, "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; margin-top: calc(-1 * var(--round)); border-radius: var(--round) var(--round) 0 0; background: var(--ink); color: var(--chalk); padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; font-size: 1.05rem; line-height: 1.55; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.foot-lockup { height: 40px; margin-bottom: 1.8rem; }
.foot .legal { margin: 0 0 0.7rem; font-weight: 680; font-size: 1.15rem; }
.foot .addr { margin: 0; max-width: 28rem; color: var(--clay); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.contact li { padding-bottom: 0.6rem; border-bottom: 1px solid var(--chalk); color: var(--clay); }
.contact a { color: var(--chalk); overflow-wrap: anywhere; }
.contact a:hover { color: var(--saffron); }
.foot .copy { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--chalk); font-size: 0.95rem; color: var(--chalk); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .step.reveal.in { transition: opacity 0.7s ease var(--d, 0ms), transform 0.25s ease, box-shadow 0.25s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 2rem; }
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step-art { max-width: 280px; justify-self: end; width: 100%; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-art-wrap { width: min(100%, 520px); margin-inline: auto; }
  .split, .split-flip { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-flip .split-text { order: 1; } .split-flip .eye-stage { order: 2; }
  .eye-stage { min-height: 0; }
  .founder-card { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "sheet"; }
  .founder-photo { max-width: 360px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .lockup-tight { height: 26px; }
  .kicker { font-size: 0.68rem; letter-spacing: 0.12em; }
  .step-num { font-size: 4.5rem; }
  .founder-card { border-radius: 24px; }
}
