/* ---- design tokens ---- */
:root {
  --bg-deep:  #8aa166;
  --bg-mid:   #a8bf80;
  --bg-light: #c2d4a0;
  --cream:    #fbf6e7;
  --paper:    #fdfaf0;
  --ink:      #0f100d;
  --skin:     #fbdcbf;
  --blue:     #2f6cb0;
  --blue-bright: #6db8f0;
  --pink:     #e1497a;
  --yellow:   #f0c64b;
  --rust:     #c95c3a;
  --olive:    #7e946e;

  --display: "Bowlby One", "Archivo Black", system-ui, sans-serif;
  --marker:  "Caveat Brush", "Caveat", cursive;
  --mono:    "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-snap-type: y proximity;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg-mid);
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(ellipse 70% 60% at 20% 15%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(ellipse 80% 70% at 85% 90%, rgba(60,80,40,0.20), transparent 70%),
    linear-gradient(168deg, var(--bg-light) 0%, var(--bg-mid) 60%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* painterly canvas texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.014' numOctaves='2' seed='11'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.5  0 0 0 0 0.3  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23b)'/></svg>");
  background-size: 1400px 1400px;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

/* ---- scroll choreography ---- */
.scroll-runway {
  height: 700vh;          /* long enough to comfortably step through 8 chapters */
  position: relative;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 2;
}

/* nav */
.nav {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  z-index: 50;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.nav .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.nav .logo b {
  font-family: var(--marker);
  font-size: 28px;
  letter-spacing: 0.02em;
}
.nav .logo small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(0,0,0,0.65);
  margin-top: 6px;
}
.nav .links { display: flex; gap: 30px; }
.nav .links a {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-weight: 700;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav .links a:hover::after { transform: scaleX(1); }

.nav .cta {
  border: 2px solid var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
}

/* LinkedIn icon in nav */
.nav-li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
  transition: background 160ms ease, transform 160ms ease;
}
.nav-li:hover {
  background: #0077B5;
  color: #fff;
  border-color: #0077B5;
  transform: translateY(-2px);
}

/* ── Hamburger menu button ── */
.menu-btn {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.menu-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.menu-btn span {
  display: block;
  width: 16px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.18s ease;
  transform-origin: center;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Dropdown nav menu ── */
.nav-menu {
  position: fixed;
  top: 70px; right: 36px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 10px 0;
  z-index: 100;
  min-width: 200px;
  transform: scale(0.9) translateY(-10px);
  transform-origin: top right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s ease;
}
.nav-menu.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-menu-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 12px 22px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.nav-menu-item:hover { background: #f0ece0; }
.nm-num {
  font-size: 9px; letter-spacing: 0.15em;
  color: var(--rust); opacity: 0.7;
  min-width: 20px;
}

/* ---- character (now position:fixed, inline-driven) ---- */
/* .character legacy rule removed — geometry set via inline styles in app.jsx */

.character-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 88%;
  animation: breathe 4.5s ease-in-out infinite;
}
.character-art img,
.character-art svg.expr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.character-art svg.expr {
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}

/* reaction speech bubble — fixed above character head */
.reaction-bubble {
  position: fixed;
  transform: translateX(-50%);
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 10px 16px;
  border-radius: 22px;
  font-family: var(--marker);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
  white-space: nowrap;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bubble-pop 380ms cubic-bezier(0.25, 0.85, 0.3, 1.1);
}
.reaction-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 36px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.reaction-bubble .emoji { font-size: 26px; }
@keyframes bubble-pop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.6); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1.05); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

@keyframes illo-float {
  0%   { opacity: 0; transform: translateY(0)     scale(0.5) rotate(var(--rot, 0deg)); }
  18%  { opacity: 1; transform: translateY(-12px)  scale(1)   rotate(var(--rot, 0deg)); }
  80%  { opacity: 1; transform: translateY(-70px)  scale(1)   rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: translateY(-90px)  scale(0.9) rotate(var(--rot, 0deg)); }
}
.illo-float { animation: illo-float 2s ease-out forwards; }

.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.45;
  animation: scroll-bounce 1.2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(4px); }
}

/* ── frame hover bubble ── */
.frame-bubble {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
  animation: bubble-pop 0.3s cubic-bezier(0.25, 0.85, 0.3, 1.1);
}
.frame-bubble::after {
  content: '';
  position: absolute;
  bottom: -11px; left: 44px;
  width: 13px; height: 13px;
  background: var(--paper);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
}

/* ── radiating lines ── */
@keyframes ray-pop {
  0%   { opacity: 0; stroke-dashoffset: 60; }
  40%  { opacity: 1; stroke-dashoffset: 0; }
  70%  { opacity: 1; }
  100% { opacity: 0.6; stroke-dashoffset: 0; }
}
.char-ray {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: ray-pop 0.6s ease-out forwards infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.006, 1.012); }
}

/* the section card the character holds — positioned at hand level. Text content swaps when chapter changes. */
.section-card {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--paper);
  width: 300px;
  min-height: 130px;
  padding: 20px 24px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  pointer-events: none;
}
.section-card .kicker,
.section-card .title {
  transition: opacity 180ms ease;
}
.section-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 78px;
  height: 18px;
  background: rgba(240, 198, 75, 0.75);
  border: 2px solid rgba(0,0,0,0.3);
  transform: translateX(-50%) rotate(-3deg);
}
.section-card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--rust);
}
.section-card .title {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: pre-line;
  text-align: center;
  transition: opacity 200ms ease;
}

/* ---- hero scene props ---- */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 80ms linear;
}
.hero-title {
  position: absolute;
  left: 50%;
  top: 8vh;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--display);
  z-index: 7;
  pointer-events: none;
  white-space: nowrap;
}
.hero-title .l1 {
  font-family: var(--marker);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-title .l2 {
  font-family: var(--marker);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.85;
  color: var(--paper);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 3px var(--ink);
  margin-top: 2px;
}
.hero-title .tag {
  font-family: var(--marker);
  font-size: 18px;
  margin-top: 8px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.prop {
  position: absolute;
  filter: drop-shadow(0 5px 0 rgba(0,0,0,0.15));
}

/* picture frame */
.prop.frame {
  top: 17vh; left: 2vw;
  background: var(--ink);
  padding: 8px;
  transform: rotate(-4deg);
  transition: transform 0.2s ease;
}
.prop.frame:hover { transform: rotate(-4deg) scale(1.04); }
.prop.frame .inner {
  width: 150px;
  height: 115px;
  background: #cfe1a3;
  border: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.frame-photo {
  width: 100%; height: 160%;
  object-fit: cover;
  object-position: top;
  margin-top: -10%;
  display: block;
}
.frame-hover-hint {
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--ink); opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.prop.frame:hover .frame-hover-hint { opacity: 0.7; }
.frame-hov { transform: rotate(-4deg) translateY(-6px) !important; }

/* sticky notes */
.prop.sticky {
  width: 74px;
  height: 74px;
  padding: 10px 6px 8px 6px;
  font-family: var(--marker);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0,0,0,0.55);
  line-height: 1;
}
.prop.sticky::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 24px;
  height: 9px;
  background: rgba(64, 96, 38, 0.55);
}
/* moved right so they don't cover the picture frame (left:2vw, top:28vh) */
.prop.sticky.green    { background: #d3e3ad; transform: rotate(-7deg); top: 46vh; left: 4vw;  }
.prop.sticky.yellow   { background: #f8e7a3; transform: rotate(3deg);  top: 44vh; left: 13vw; }
.prop.sticky.pink     { background: #f6c8d0; transform: rotate(-2deg); top: 46vh; left: 22vw; }
.prop.sticky.note-got { background: #f4eecf; transform: rotate(6deg);  top: 55vh; right: 13vw; width: 88px; height: 70px; font-size: 14px; }

/* monitor */
.prop.monitor {
  bottom: 14vh; left: 2vw;
  transform: rotate(-2deg);
}
.prop.monitor .screen {
  width: 200px;
  height: 130px;
  background: var(--ink);
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 19px;
  color: var(--cream);
  letter-spacing: 0.03em;
  line-height: 1.15;
}
.prop.monitor .stand {
  width: 30px;
  height: 16px;
  background: var(--ink);
  margin: 0 auto;
}
.prop.monitor .desk {
  width: 320px;
  height: 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
  margin: 0 -40px;
  position: relative;
}
.prop.monitor .desk::before,
.prop.monitor .desk::after {
  content: "";
  position: absolute;
  bottom: -54px;
  width: 12px;
  height: 54px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-top: 0;
}
.prop.monitor .desk::before { left: 14px;  transform: rotate(-6deg); transform-origin: top; }
.prop.monitor .desk::after  { right: 14px; transform: rotate(6deg);  transform-origin: top; }

/* chalkboard */
.prop.chalkboard {
  top: 18vh; right: 2vw;
  background: #6b4f30;
  padding: 6px;
  border: 2px solid var(--ink);
  transform: rotate(2deg);
  width: 220px;
}
.prop.chalkboard .inner {
  background: #1c2820;
  padding: 14px 16px 18px 16px;
  font-family: var(--marker);
  font-size: 16px;
  color: #f1ead6;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.prop.chalkboard .inner h4 {
  margin: 0 0 8px 0;
  font-family: var(--marker);
  font-size: 22px;
  letter-spacing: 0.03em;
  border-bottom: 2px dashed rgba(241,234,214,0.4);
  padding-bottom: 4px;
}
.prop.chalkboard .inner li {
  list-style: none;
}
.prop.chalkboard .inner li::before {
  content: "☐ ";
  opacity: 0.85;
}
.prop.chalkboard ul { padding: 0; margin: 0; }
.prop.chalkboard::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--ink);
  transform: translateX(-50%);
}
.prop.chalkboard::after {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* shelf with books */
.prop.shelf {
  bottom: 12vh; right: 3vw;
  background: #b59672;
  border: 3px solid var(--ink);
  padding: 6px 8px 12px 8px;
  display: flex;
  gap: 5px;
  transform: rotate(-1deg);
}
.prop.shelf .book {
  width: 20px; height: 56px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  color: rgba(0,0,0,0.7);
}
.prop.shelf::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -10px; right: -10px;
  height: 3px;
  background: var(--ink);
}
.prop.shelf .pot {
  width: 38px;
  height: 60px;
  background: #d9b08d;
  border: 2px solid var(--ink);
  margin-left: 6px;
  position: relative;
}
.prop.shelf .pot::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 30px;
  background: #5b8848;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 30% 30%;
}

/* social row — positioned above character's head */
.prop.socials {
  top: 11vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 12;
}
.prop.socials .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
}
.prop.socials .icon:hover { transform: translateY(-3px); }

/* hero cta buttons */
.prop.cta-left {
  bottom: 5vh; left: 4vw;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
}
.prop.cta-right {
  bottom: 5vh; right: 4vw;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  border: 2px solid var(--ink);
  pointer-events: auto;
  cursor: pointer;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 8vh;
  right: 4vw;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink);
  opacity: 0.55;
  z-index: 20;
  pointer-events: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---- scattered prop cards (post-hero, change content per chapter) ---- */
.scattered {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.prop-card {
  position: absolute;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 18px;
  pointer-events: auto;
  font-family: var(--mono);
  color: var(--ink);
}
.prop-card .pin {
  position: absolute; top: -10px; left: 18px;
  width: 14px; height: 14px;
  border: 2px solid var(--ink); border-radius: 50%;
}

/* channel-style card: dot + label + sub */
.prop-card.channel { width: 190px; }
.prop-card.channel .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.prop-card.channel .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink);
}
.prop-card.channel .label {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.prop-card.channel .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.62);
}

/* big metric callout */
.prop-card.metric { width: 190px; }
.prop-card.metric .value {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.005em;
}
.prop-card.metric .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-top: 4px;
  color: rgba(0,0,0,0.65);
}

/* tags / chips card */
.prop-card.tags {
  width: 210px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.prop-card.tags .chip {
  display: inline-block;
  border: 2px solid var(--ink);
  background: rgba(0,0,0,0.05);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

/* longer body note */
.prop-card.note {
  width: 230px;
}
.prop-card.note .head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--rust);
  margin-bottom: 6px;
}
.prop-card.note h4 {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
}
.prop-card.note p {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
  color: rgba(0,0,0,0.75);
}

/* hand grip overlay — small peach blobs that "grip" the card edges */
.section-card .grip {
  position: absolute;
  width: 26px;
  height: 32px;
  background: var(--skin);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 40% 40%;
  z-index: 1;
}
.section-card .grip.l { left: -16px;  top: 60%; transform: translateY(-50%) rotate(-15deg); }
.section-card .grip.r { right: -16px; top: 60%; transform: translateY(-50%) rotate(15deg); }
.section-card .grip::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

/* chapter counter */
.chapter-counter {
  position: fixed;
  right: 36px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink);
  z-index: 40;
}
.chapter-counter .bar {
  width: 140px;
  height: 2px;
  background: rgba(0,0,0,0.2);
  position: relative;
}
.chapter-counter .bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--ink);
  transition: width 120ms linear;
}

/* ═══════════════════════════════════════════
   POST-HERO SECTIONS
   Character is fixed center; cards flank left + right
═══════════════════════════════════════════ */

.sections-wrapper {
  position: relative;
  z-index: 6;
}

/* full-viewport section — snaps one-per-page */
.content-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.content-section:nth-child(odd)  { background: rgba(255,255,255,0.05); }
.content-section:nth-child(even) { background: rgba(0,0,0,0.04); }

/*
  cs-inner: 3-column layout.
  Center column is a reserved gap matching the fixed character width.
  --char-w is set inline by App, defaults to 460px.
*/
.cs-inner {
  width: 100%;
  display: grid;
  grid-template-columns:
    1fr
    var(--char-w, 360px)
    1fr;
  gap: 0 20px;
  padding: 60px 32px;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
}

/* left / right card columns */
.sc-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sc-left  { align-items: flex-end;   }
.sc-right { align-items: flex-start; }

/* wider left on layout 2 */
.sc-left--wide { gap: 18px; }

/* card enter animations — subtle fade+slide on intersection */
.enter-left  { animation: slideL 0.55s ease both; }
.enter-right { animation: slideR 0.55s ease both; }
@keyframes slideL {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideR {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* big metric variant in case-study layout */
.metric-hero .value { font-size: 48px !important; }


/* ── Held sign card (separate fixed element, independent of character clip) ── */
.section-card-held {
  position: relative;
  background: var(--paper);
  width: 240px;
  min-height: 110px;
  padding: 16px 20px;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.section-card-held::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 78px; height: 18px;
  background: rgba(240,198,75,0.80);
  border: 2px solid rgba(0,0,0,0.28);
  transform: translateX(-50%) rotate(-3deg);
}
.section-card-held .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--rust);
}
.section-card-held .title {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: pre-line;
  text-align: center;
}
/* grip hands on sides of sign */
.section-card-held .grip {
  position: absolute;
  width: 26px;
  height: 32px;
  background: var(--skin);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 40% 40%;
  z-index: 1;
}
.section-card-held .grip.l { left: -16px;  top: 60%; transform: translateY(-50%) rotate(-15deg); }
.section-card-held .grip.r { right: -16px; top: 60%; transform: translateY(-50%) rotate(15deg); }
.section-card-held .grip::after {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

/* ══════════════════════════════════════
   CORNER PHOTO FRAME (top-left fixed widget)
══════════════════════════════════════ */
.corner-photo-frame {
  position: fixed;
  top: 68px;
  left: 36px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  z-index: 51;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.corner-photo-frame:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.corner-photo-img {
  width: 165%; height: 165%;
  object-fit: cover;
  margin-left: -30%; margin-top: -5%;
  pointer-events: none;
}

/* ══════════════════════════════════════
   ABOUT PAGE OVERLAY — two-colour wipe from character centre
══════════════════════════════════════ */
/* green lead layer */
.about-overlay-lead {
  position: fixed;
  inset: 0;
  background: #a6c8a0;
  z-index: 198;
  clip-path: circle(0% at 50% 55%);
  transition: clip-path 0.62s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.about-overlay-lead.open {
  clip-path: circle(160% at 50% 55%);
}

/* cream main layer — slightly delayed */
.about-overlay {
  position: fixed;
  inset: 0;
  background: #F5F0E6;
  z-index: 200;
  clip-path: circle(0% at 50% 55%);
  transition: clip-path 0.72s cubic-bezier(0.65, 0, 0.35, 1) 0.08s;
  overflow: hidden;
  pointer-events: none;
}
.about-overlay.open {
  clip-path: circle(160% at 50% 55%);
  pointer-events: auto;
}

.about-close {
  position: fixed;
  top: 24px; right: 36px;
  z-index: 201;
}

.about-inner {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 72px 60px 48px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* photo col */
.about-photo-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.about-photo-frame {
  width: 280px; height: 330px;
  border: 4px solid var(--ink);
  border-radius: 180px 180px 120px 120px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  background: #e8d5c0;
  position: relative;
}
.about-photo-img {
  width: 100%; height: 130%;
  object-fit: cover;
  object-position: top;
  margin-top: -10%;
}
.about-tags {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
}
.about-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* text col */
.about-text-col {
  display: flex; flex-direction: column;
  gap: 13px;
}
.about-eyebrow {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--rust); margin: 0;
}
.about-name {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
}
.about-role {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink); opacity: 0.55;
  margin: 0;
}
.about-bio {
  font-family: var(--mono);
  font-size: 12.5px; line-height: 1.7;
  color: var(--ink); margin: 0;
  max-width: 480px;
}
.about-links {
  display: flex; gap: 14px;
  flex-wrap: wrap; margin-top: 8px;
}
.about-link-btn {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.12em;
  padding: 10px 22px;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--rust);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.about-link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--rust);
}
.about-link-btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.about-link-btn.secondary:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

@media (max-width: 700px) {
  .nav {
    top: 20px;
    padding: 0 22px;
    gap: 12px;
  }
  .nav .logo b {
    font-size: 25px;
  }
  .nav .logo small {
    font-size: 8px;
    letter-spacing: 0.22em;
  }
  .nav-li {
    display: none;
  }
  .nav .cta {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .menu-btn {
    width: 44px;
    height: 44px;
  }
  .hero-title {
    top: 86px;
  }
  .hero-title .l1,
  .hero-title .l2 {
    font-size: clamp(42px, 14vw, 54px);
    line-height: 0.86;
  }
  .hero-title .l2 {
    -webkit-text-stroke-width: 2px;
  }
  .hero-title .tag {
    font-size: 17px;
    margin-top: 10px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    padding: 80px 24px 40px;
    gap: 36px;
  }
  .about-photo-frame { width: 240px; height: 290px; }
}

/* ── Hero prop SVG components ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes noteFloat {
  0%   { opacity: 0; transform: translate(0, 0); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-12px, -54px); }
}
@keyframes steam1 {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50%      { opacity: 0.35; transform: translateY(-8px); }
}
@keyframes steam2 {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50%      { opacity: 0.35; transform: translateY(-10px); }
}
@keyframes steam3 {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50%      { opacity: 0.35; transform: translateY(-9px); }
}
@keyframes twinkle {
  0%   { opacity: 0; transform: scale(0.5); }
  50%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes tailWag {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(18deg); }
}
@keyframes zfade {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40%      { opacity: 1; }
  100%     { opacity: 0; transform: translateY(-14px); }
}
@keyframes swayLeft  { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes swayRight { from { transform: rotate(4deg);  } to { transform: rotate(-4deg); } }
@keyframes clapperSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes soundWave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes growIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes rainDrop {
  0%   { opacity: 0; transform: translateY(-30px); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(180px); }
}

@keyframes cp-fly {
  0%   { opacity: 1; transform: translate(-50%, -50%) translate(0px, 0px) rotate(0deg) scale(1); }
  60%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--cp-dx), var(--cp-dy)) rotate(var(--cp-rot)) scale(0.4); }
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   SEO & GEO SHOWCASE SECTION
═══════════════════════════════════════════ */

.seo-section {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-top: 4px solid var(--ink);
  padding: 80px 7vw 100px;
  overflow: hidden;
}

/* painterly texture overlay (same as body) */
.seo-section::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23b)'/></svg>");
}

.seo-section > * { position: relative; z-index: 1; }

/* ── Header ── */
.seo-header {
  margin-bottom: 52px;
}

.seo-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--olive);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.seo-title {
  font-family: var(--display);
  font-size: clamp(52px, 9vw, 108px);
  line-height: 0.88;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.seo-subtitle {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.55;
  margin: 0;
}

/* ── Screenshots strip ── */
.seo-screenshots {
  display: flex;
  gap: 20px;
  margin-bottom: 52px;
  align-items: flex-start;
}

.seo-shot {
  flex: 1;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-shot:hover {
  box-shadow: 7px 7px 0 var(--ink);
}

.seo-shot-1 { transform: rotate(-1.8deg); }
.seo-shot-2 { transform: rotate(0.6deg);  }
.seo-shot-3 { transform: rotate(1.4deg);  }

.seo-shot-1:hover { transform: rotate(-1.8deg) translate(-2px, -3px); }
.seo-shot-2:hover { transform: rotate(0.6deg) translate(-2px, -3px); }
.seo-shot-3:hover { transform: rotate(1.4deg) translate(-2px, -3px); }

.seo-shot-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  padding: 8px 10px 4px;
  background: var(--paper);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.seo-shot img {
  width: 100%;
  display: block;
}

/* ── Agent row ── */
.seo-agent-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.seo-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.seo-agent-desc {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  opacity: 0.65;
  margin: 0;
  line-height: 1.7;
}

/* ── Dashboard / iframe ── */
.seo-dashboard-wrap {
  position: relative;
}

.seo-hand-note {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.seo-arrow-svg {
  width: 64px;
  height: 40px;
  flex-shrink: 0;
  margin-bottom: -4px;
}

.seo-hand-text {
  font-family: var(--marker);
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}

.seo-hand-text--sm {
  font-size: 21px;
  opacity: 0.6;
}

.seo-iframe-container {
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}

.seo-iframe {
  width: 100%;
  height: 720px;
  display: block;
  border: none;
}

.seo-hand-bottom {
  margin-top: 14px;
  text-align: right;
}

@media (max-width: 768px) {
  .seo-section { padding: 56px 24px 80px; }
  .seo-screenshots { flex-direction: column; gap: 16px; }
  .seo-shot-1, .seo-shot-2, .seo-shot-3 { transform: none; }
  .seo-agent-row { flex-direction: column; align-items: flex-start; }
  .seo-iframe { height: 500px; }
  .seo-hand-text { font-size: 22px; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
