:root {
  --paper: #fbf8f1;
  --paper-2: #fffdf6;
  --ink: #14120e;
  --ink-soft: #3a362e;
  --muted: #8a8272;
  --grid: rgba(20, 18, 14, 0.055);
  --hi: #ffe23f;
  --blue: #4d7cff;
  --red: #ff6b57;
  --green: #2fbf71;
  --shadow: 4px 4px 0 var(--ink);
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0c0a;
  --paper-2: #171512;
  --ink: #e8e2d4;
  --ink-soft: #b8b0a0;
  --muted: #9a9180;
  --grid: rgba(232, 226, 212, 0.07);
  --hi: #ffe23f;
  --blue: #7c9bff;
  --red: #ff8a78;
  --green: #4fd98a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--hi); color: #14120e; }

a { color: inherit; }
img, svg { max-width: 100%; }

/* ---------- cursor ---------- */
.cursor-dot, .cursor-hi {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; opacity: 0; z-index: 9999;
}
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--ink); z-index: 9999; }
.cursor-hi { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--ink); background: transparent; border-radius: 50%; z-index: 9998; }
body.cursor-on .cursor-dot, body.cursor-on .cursor-hi { opacity: 1; }
body.cursor-on, body.cursor-on * { cursor: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--ink);
}
.brand { font-family: var(--font-mono); font-weight: 700; text-decoration: none; }
.brand-dot { color: var(--red); }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { text-decoration: none; font-size: 0.9rem; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 0;
  background: var(--hi); transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-status { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 980px) { .nav-status { display: none; } }
.blink-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.theme-toggle {
  font-family: var(--font-sans); font-size: 0.95rem; line-height: 1;
  background: var(--paper-2); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  border-radius: 6px; padding: 0.35rem 0.55rem; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.theme-toggle:hover { box-shadow: 1px 1px 0 var(--ink); }
.theme-toggle:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.mark {
  color: #14120e;
  background-image: linear-gradient(var(--hi), var(--hi));
  background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0;
  padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hi-note { font-family: var(--font-hand); font-size: 1.2em; color: var(--blue); }
.mono { font-family: var(--font-mono); }

.section-title { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.6rem; font-weight: 700; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; margin: 0 0 2.5rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 1.5rem 3rem; position: relative;
  max-width: 1100px; margin: 0 auto;
}
.hero-eyebrow { margin-bottom: 1.2rem; }
.hero-name {
  font-size: clamp(3rem, 13vw, 9rem); line-height: 0.95; letter-spacing: -0.04em;
  font-weight: 700; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3em;
}
.word { display: inline-block; }
.ch { display: inline-block; will-change: transform; }
.hero-tag { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 500; margin: 1.4rem 0 0.4rem; }
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.scroll-cue {
  margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); text-decoration: none;
}
.cue-arrow { display: inline-block; animation: bob 1.4s ease-in-out infinite; color: var(--ink); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

.doodle { position: absolute; font-family: var(--font-hand); font-size: 1.3rem; color: var(--blue); transform: rotate(-4deg); }
.doodle-a { top: 13%; right: 2%; }
.doodle-b { bottom: 5%; right: 2%; transform: rotate(3deg); color: var(--red); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--hi); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-1deg); overflow: hidden; padding: 0.7rem 0; margin: 2rem 0; color: #14120e;
}
.marquee-track { display: flex; align-items: center; gap: 1.4rem; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-track span { font-weight: 700; font-size: 1.1rem; }
.marquee-track i { font-style: normal; opacity: 0.45; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 1.5rem; max-width: 1100px; margin: 0 auto; position: relative; }

/* ---------- receipts ---------- */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.receipt {
  background: var(--paper-2); border: 2px dashed var(--ink); padding: 1.5rem;
  position: relative;
}
.receipt-bad { transform: rotate(-1deg); }
.receipt-good { transform: rotate(1deg); }
.receipt-head { font-weight: 700; font-family: var(--font-mono); display: flex; justify-content: space-between; margin-bottom: 1rem; }
.receipt-bad .receipt-icon { color: var(--red); }
.receipt-good .receipt-icon { color: var(--green); }
.receipt ul { list-style: none; margin: 0 0 1rem; padding: 0; font-family: var(--font-mono); font-size: 0.85rem; }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dotted var(--muted); }
.receipt-total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.receipt-total.bad .strike { position: relative; color: var(--ink-soft); }
.receipt-total.bad .strike::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s ease;
}
.receipt-total.bad.struck .strike::after { transform: scaleX(1); }
.receipt-total.good .zero { color: var(--green); font-size: 1.3rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.85rem; padding: 0.5rem 0.9rem;
  background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  cursor: default; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chip:nth-child(2n) { transform: rotate(1deg); }
.chip:nth-child(3n) { transform: rotate(-1deg); }
.chip:hover { box-shadow: 1px 1px 0 var(--ink); }

/* ---------- system ---------- */
.system { max-width: 1200px; }
.system-stage { will-change: transform; }
.system-svg { width: 100%; height: auto; display: block; }
.system-svg text { font-family: var(--font-sans); }
.box { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.draw { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.tailnet { stroke-dasharray: 6 6; stroke: var(--blue); }
.machine-title { fill: var(--ink); font-size: 15px; }
.machine-sub { fill: var(--muted); font-size: 10px; }
.agent-label { fill: var(--ink); font-size: 11px; }
.dot { fill: var(--blue); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.15s ease; }
.agent { cursor: pointer; }
.agent:hover .dot { fill: var(--hi); }
.agent:hover .agent-label { font-weight: 700; }
.fade { fill: var(--ink); font-size: 12px; }
.system-caption { max-width: 720px; margin: 2rem auto 0; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- tally ---------- */
.tally { padding: clamp(4rem, 10vw, 8rem) 1.5rem; text-align: center; position: relative; overflow: hidden; }
.tally-inner { max-width: 900px; margin: 0 auto; }
.tally-doodle { font-family: var(--font-hand); font-size: 1.4rem; color: var(--blue); margin-bottom: 1rem; }
.tally-num {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.6rem, 11vw, 7rem);
  letter-spacing: -0.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums;
}
.tally-unit { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin: 1rem 0 0.8rem; }
.tally-free {
  font-family: var(--font-hand); font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700;
  display: inline-block; transform: rotate(-2deg); padding: 0 0.4rem;
  background-image: linear-gradient(var(--hi), var(--hi));
  background-repeat: no-repeat; background-size: 100% 100%; color: #14120e;
}
.tally-goof { color: var(--muted); font-family: var(--font-hand); font-size: 1.2rem; margin-top: 0.8rem; }

/* ---------- timeline ---------- */
.timeline { position: relative; border-left: 2px dashed var(--ink); padding-left: 2rem; max-width: 720px; }
.t-item { position: relative; padding: 0.6rem 0 1.8rem; }
.t-item::before {
  content: ""; position: absolute; left: -2.35rem; top: 0.35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--hi); border: 2px solid var(--ink);
}
.t-date { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }
.t-body { color: var(--ink-soft); line-height: 1.55; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.team-card {
  background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow);
  padding: 1.4rem; position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}
.team-card:nth-child(2n) { transform: rotate(0.6deg); }
.team-card:nth-child(3n) { transform: rotate(-0.6deg); }
.team-card:hover { box-shadow: 2px 2px 0 var(--ink); }
.card-doodle { font-family: var(--font-hand); font-size: 1.15rem; color: var(--blue); margin-bottom: 0.4rem; }
.card-name { font-size: 1.6rem; margin: 0 0 0.5rem; }
.card-name:hover { background: var(--hi); color: #14120e; }
.team-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0 0 1rem; }
.card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-meta span { font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid var(--ink); padding: 0.2rem 0.5rem; border-radius: 3px; }

/* ---------- chat ---------- */
.chat { max-width: 640px; margin: 0 auto; }
.bubble {
  max-width: 80%; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem;
  border: 2px solid var(--ink); position: relative; line-height: 1.5; font-size: 1rem;
}
.bubble.in { background: var(--paper-2); margin-right: auto; border-radius: 4px 14px 14px 14px; }
.bubble.out { background: var(--hi); margin-left: auto; border-radius: 14px 4px 14px 14px; color: #14120e; }
.bubble-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-bottom: 0.3rem; }
.bubble.out .bubble-meta { color: rgba(20, 18, 14, 0.6); }
.type-cursor { animation: blink 1s steps(1) infinite; }
.chat-note { font-family: var(--font-hand); font-size: 1.4rem; color: var(--red); text-align: center; margin-top: 1.6rem; transform: rotate(-1deg); }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 auto 2rem; max-width: 620px; }
.checklist li {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 1.3rem; font-weight: 500; padding: 0.8rem 0;
  border-bottom: 1px dotted var(--muted);
}
.check { width: 30px; height: 30px; flex: 0 0 auto; }
.check path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.hire-line { text-align: center; font-size: 1.4rem; margin-top: 2rem; }

/* ---------- sticky / talk ---------- */
.sticky {
  background: var(--hi); border: 2px solid var(--ink); box-shadow: var(--shadow);
  max-width: 620px; margin: 0 auto; padding: 2.4rem 2rem 2rem; position: relative;
  transform: rotate(-2deg); color: #14120e;
}
.tape {
  position: absolute; top: -14px; left: 50%; width: 110px; height: 28px;
  margin-left: -55px; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(20,18,14,0.15);
  transform: rotate(-2deg);
}
.sticky .section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.sticky-body { font-size: 1.1rem; line-height: 1.5; }
.big-link {
  display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  margin: 0.8rem 0; text-decoration: none; width: fit-content; position: relative;
}
.big-link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 0.45em; width: 100%;
  background: var(--hi); z-index: -1; transition: transform 0.2s ease; transform: scaleY(0.4);
  transform-origin: bottom;
}
.big-link:hover::after { transform: scaleY(1); background: var(--blue); }
.big-link { z-index: 1; }
.sticky-ps { font-family: var(--font-hand); font-size: 1.3rem; margin: 1.4rem 0 0; color: rgba(20, 18, 14, 0.75); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem 1.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  border-top: 2px dashed var(--ink); max-width: 1100px; margin: 4rem auto 0;
}
.footer-top { text-decoration: none; color: var(--ink); }
.footer-top:hover { background: var(--hi); color: #14120e; }

/* ---------- tooltip ---------- */
.tooltip {
  position: fixed; z-index: 9998; pointer-events: none; opacity: 0;
  background: #14120e; color: #fbf8f1; font-family: var(--font-sans);
  font-size: 0.85rem; padding: 0.5rem 0.7rem; border-radius: 6px; max-width: 240px;
  transform: translate(-50%, -120%); transition: opacity 0.15s ease;
}
.tooltip.show { opacity: 1; }
.tooltip strong { display: block; color: var(--hi); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.stat { background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 1.3rem 1rem; text-align: center; transition: box-shadow 0.15s ease; }
.stat:nth-child(3n) { transform: rotate(0.6deg); }
.stat:nth-child(4n) { transform: rotate(-0.6deg); }
.stat:hover { box-shadow: 2px 2px 0 var(--ink); }
.stat-num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.stat:hover .stat-num { background: var(--hi); color: #14120e; }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.55rem; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; }

/* ---------- experience ---------- */
.exp { max-width: 820px; margin: 0 auto; border-left: 2px dashed var(--ink); padding-left: 1.8rem; }
.exp-item { position: relative; margin-bottom: 2.2rem; }
.exp-item::before { content: ""; position: absolute; left: -2.15rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--hi); border: 2px solid var(--ink); }
.exp-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; }
.exp-role { font-weight: 700; font-size: 1.15rem; }
.exp-when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.exp-org { font-family: var(--font-hand); font-size: 1.15rem; color: var(--blue); margin-bottom: 0.5rem; }
.exp-item ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }
.edu { display: flex; flex-wrap: wrap; gap: 0.8rem; max-width: 820px; margin: 2rem auto 0; }
.edu-item { font-family: var(--font-mono); font-size: 0.85rem; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); padding: 0.5rem 0.8rem; }

/* ---------- alt marquee ---------- */
.marquee-alt { transform: rotate(1deg); background: var(--paper-2); color: var(--ink); }
.marquee-alt .marquee-track { animation-direction: reverse; }

.stat-token { text-align: center; margin-top: 1.2rem; padding: 2rem 1rem; }
.stat-token .stat-num { font-size: clamp(2rem, 7vw, 4.5rem); }
.cloud-cost { margin-top: 3.5rem; }
.cloud-title { font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin: 0 0 0.3rem; }
.cloud-sub { color: var(--muted); font-family: var(--font-hand); font-size: 1.25rem; margin: 0 0 1.5rem; }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.provider { position: relative; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 1.2rem; cursor: pointer; overflow: hidden; }
.provider:nth-child(2n) { transform: rotate(0.5deg); }
.provider:nth-child(3n) { transform: rotate(-0.5deg); }
.prov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.6rem; }
.prov-name { font-weight: 700; font-size: 1rem; }
.prov-rate { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.prov-cost { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.03em; }
.prov-math { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); margin-top: 0.4rem; opacity: 0; transition: opacity 0.2s; }
.provider:hover .prov-math { opacity: 1; }
.provider:hover .prov-cost { background: var(--hi); color: #14120e; }
.prov-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg) scale(0); border: 3px solid var(--red); color: var(--red); font-family: var(--font-hand); font-size: 1.5rem; padding: 0.2rem 0.7rem; border-radius: 4px; background: var(--paper-2); pointer-events: none; white-space: nowrap; }
.provider.stamped .prov-stamp { transform: translate(-50%, -50%) rotate(-14deg) scale(1); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.scale { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.scale-label { font-family: var(--font-hand); font-size: 1.25rem; color: var(--blue); }
.scale-btn { font-family: var(--font-mono); font-size: 0.85rem; padding: 0.5rem 0.9rem; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.scale-btn:hover { box-shadow: 1px 1px 0 var(--ink); }
.scale-btn.active { background: var(--hi); color: #14120e; }
.cloud-result { text-align: center; margin-top: 2rem; font-size: 1.3rem; }
.cloud-result .zero { color: var(--green); font-family: var(--font-mono); font-weight: 700; font-size: 1.5em; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .receipts { grid-template-columns: 1fr; }
  .doodle { display: none; }
  .bubble { max-width: 92%; }
}

#progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: var(--hi); z-index: 101; box-shadow: 0 2px 0 var(--ink);
}
#progress::after {
  content: "✎"; position: absolute; right: -8px; top: -8px;
  font-size: 14px; transform: rotate(90deg);
}

/* ---------- word-mask reveals ---------- */
.hero-inner { will-change: transform; }
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.wi.hl {
  background-image: linear-gradient(var(--hi), var(--hi));
  background-size: 100% 100%; background-repeat: no-repeat;
  padding: 0 0.12em; color: #14120e;
}

/* ---------- horizontal journey ---------- */
.h-section { max-width: none; overflow: hidden; }
.h-section .section-title, .h-section .section-sub { max-width: 1100px; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }
.h-track { display: flex; gap: 2rem; padding: 2rem 1.5rem 3rem; will-change: transform; align-items: stretch; }
.h-panel { flex: 0 0 auto; width: min(82vw, 420px); background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 1.6rem; }
.h-panel:nth-child(2n) { transform: rotate(0.6deg); }
.h-panel:nth-child(3n) { transform: rotate(-0.6deg); }
.h-panel .t-date { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.h-panel .t-body { color: var(--ink-soft); line-height: 1.55; font-size: 1rem; }
@media (max-width: 767px) {
  .h-track { flex-direction: column; gap: 1.2rem; }
  .h-panel { width: auto; }
}

/* ---------- parallax background words ---------- */
.bg-word {
  position: fixed; z-index: -1; pointer-events: none; line-height: 1;
  font-family: var(--font-sans); font-weight: 700; white-space: nowrap;
  color: var(--ink); opacity: 0.06;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cue-arrow, .type-cursor, .blink-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ambient: background life + in-section stickers ---------- */

.badge {
  position: absolute; right: 1%; top: 50%; translate: 0 -50%; width: 130px; height: 130px;
  animation: spin 16s linear infinite;
}
.badge svg text { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); letter-spacing: 2px; }
.badge-core { fill: var(--hi); stroke: var(--ink); stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .badge { display: none; } }

.sticker {
  position: absolute; font-family: var(--font-hand); font-weight: 700;
  font-size: 1.5rem; line-height: 1.1; text-align: center; color: var(--ink);
  border: 2px solid var(--ink); background: var(--hi); border-radius: 50%;
  width: 96px; height: 96px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); pointer-events: none; color: #14120e;
}
.sticker-thesis { top: 1.2rem; right: 1.2rem; rotate: 8deg; animation: bob 3.2s ease-in-out infinite; }
.sticker-numbers { top: 1.2rem; right: 1.2rem; rotate: -7deg; animation: bob 3.8s ease-in-out infinite 0.6s; }
.sticker-hire { top: 1.2rem; right: 1.2rem; rotate: 6deg; animation: bob 3.4s ease-in-out infinite 0.3s; }
@media (min-width: 1101px) { .section-title { max-width: calc(100% - 130px); } }
@media (max-width: 1100px) { .sticker { display: none; } }

.section-title .wm { animation: wordFloat 6s ease-in-out infinite; }
.section-title .wm:nth-child(2n) { animation-delay: -2s; }
.section-title .wm:nth-child(3n) { animation-delay: -4s; }
@keyframes wordFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.marquee:hover .marquee-track { animation-duration: 7s; }
.receipt:hover { transform: rotate(0deg) scale(1.02); transition: transform 0.25s ease; }
.chip:hover { transform: rotate(0deg) scale(1.06); background: var(--hi); color: #14120e; }
.team-card:hover .card-doodle { transform: rotate(-4deg) scale(1.08); transition: transform 0.25s ease; }
.scale-btn:hover { transform: translateY(-3px); }
.big-link:hover { transform: translateX(6px); transition: transform 0.2s ease; color: #14120e; }
.t-item:hover .t-date { background: var(--hi); color: #14120e; }
.exp-item:hover .exp-role { background: var(--hi); color: #14120e; }
.h-panel:hover { transform: rotate(0deg) translateY(-6px); transition: transform 0.25s ease; }
.stat:hover { transform: translateY(-6px) rotate(0deg); transition: transform 0.25s ease; }
