/* ==========================================================
   The LinkedIn Playbook - The Birdhouse
   Hand-built vintage-cartoon system:
   sky #DEF3FF · ink #04324D · brand blue #00ACEE
   pastels: peach #FFECDE · mint #E2FFDE · lilac #F3DEFF · pink #FFDEDF
   type: Instrument Serif (display) + Roboto (body)
   ========================================================== */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sky: #DEF3FF;
  --ink: #04324D;
  --blue: #00ACEE;
  --peach: #FFECDE;
  --mint: #E2FFDE;
  --lilac: #F3DEFF;
  --pink: #FFDEDF;
  --gold: #FFB13D;
  --paper: #FFFDF8;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Roboto', -apple-system, sans-serif;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --r: 18px;      /* soft radius system */
  --r-lg: 28px;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* springy pop */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

/* misregistered-print paper grain, fixed + inert */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blue); color: #fff; }

img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------- shared ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

.section { padding: 110px 0; position: relative; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 21ch;
  padding-bottom: 4px; /* italic descender reserve */
}
.h2 em { font-style: italic; }
.accent-ink {
  background-image: linear-gradient(transparent 68%, rgba(0,172,238,0.45) 68%);
  border-radius: 4px;
}

.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.1rem;
  max-width: 58ch;
  margin: 18px 0 48px;
  color: rgba(4, 50, 77, 0.78);
}

.footnote {
  margin-top: 48px;
  font-size: 1.02rem;
  max-width: 62ch;
  color: rgba(4, 50, 77, 0.75);
}
.footnote em, .footnote strong { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border: var(--border);
  border-radius: 999px;
  padding: 14px 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--blue); color: var(--ink); }
.btn--small { padding: 9px 20px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--big { font-size: 1.2rem; padding: 18px 44px; }
.btn--ghost { background: var(--paper); font-weight: 500; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--stagger, 0s);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px;
  background: rgba(222, 243, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--ink); text-decoration: none;
}
.nav__mark { width: 30px; height: 30px; }
.nav__title {
  margin-left: auto; margin-right: 18px;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(4, 50, 77, 0.6);
}
@media (max-width: 720px) { .nav__title { display: none; } .nav .btn { margin-left: auto; } }
@media (max-width: 480px) {
  .nav { padding: 10px 16px; gap: 10px; }
  .nav__brand { font-size: 1.1rem; }
  .nav__mark { width: 24px; height: 24px; }
  .nav .btn--small { padding: 8px 14px; font-size: 0.82rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100dvh - 62px), 880px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__cloud { position: absolute; pointer-events: none; opacity: 0.85; filter: brightness(1.35) contrast(0.85); }
.hero__cloud--1 { top: 4%; left: -80px; width: 420px; animation: drift 46s linear infinite alternate; }
.hero__cloud--2 { top: 12%; right: -60px; width: 330px; animation: drift 38s linear infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(70px); } }

.hero__inner {
  max-width: 1160px; margin: 0 auto; padding: 40px 24px 70px;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px;
  align-items: center; position: relative; z-index: 2;
}

.ticket {
  display: inline-block;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--paper);
  border: var(--border); border-radius: 10px;
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__word { position: relative; display: inline-block; font-style: italic; padding-bottom: 6px; }
.squiggle {
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 14px;
}
.squiggle path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1s ease 0.6s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__sub {
  font-size: 1.22rem; max-width: 44ch;
  margin: 26px 0 34px;
  color: rgba(4, 50, 77, 0.8);
}
.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__time { font-size: 0.92rem; color: rgba(4, 50, 77, 0.6); font-weight: 500; }

.hero__art { display: flex; justify-content: center; }
.birdhouse-hero { width: min(100%, 340px); }

.bh-sway { transform-origin: 170px 260px; animation: sway 5.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.bh-blink { animation: blink 4.6s infinite; transform-origin: 170px 168px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96%, 98% { transform: scaleY(0.08); } }
.bh-bird { transform-origin: 170px 207px; animation: peek 7s ease-in-out infinite; }
@keyframes peek { 0%, 20%, 100% { transform: translateY(26px) scale(0.6); opacity: 0; } 30%, 80% { transform: translateY(0) scale(1); opacity: 1; } 90% { transform: translateY(26px) scale(0.6); opacity: 0; } }
.bh-wing--l { transform-origin: 70px 200px; animation: flapL 5.5s ease-in-out infinite; }
.bh-wing--r { transform-origin: 270px 200px; animation: flapR 5.5s ease-in-out infinite; }
@keyframes flapL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes flapR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
.sparkle { animation: twinkle 3s ease-in-out infinite; transform-origin: center; }
.sparkle--2 { animation-delay: 1.4s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; padding-bottom: 40px; }
  .hero__art { order: -1; }
  .birdhouse-hero { width: 190px; }
  .hero { min-height: auto; }
}

/* ---------- stats ---------- */
.stats { padding: 30px 0 80px; }
.stats__grid {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 20px 22px;
  text-align: center;
  transform: rotate(var(--tilt, -1deg));
}
.stat:nth-child(2) { --tilt: 1deg; }
.stat:nth-child(3) { --tilt: -0.6deg; }
.stat:nth-child(4) { --tilt: 1.2deg; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--blue);
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 8px;
}
.stat__label { font-size: 0.92rem; font-weight: 500; color: rgba(4, 50, 77, 0.75); }
.stats__kicker {
  text-align: center; margin-top: 44px;
  font-family: var(--serif); font-size: 1.5rem;
}
.stats__kicker em { font-style: italic; color: var(--blue); -webkit-text-stroke: 0.6px var(--ink); }
@media (max-width: 880px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- marquee ---------- */
.marquee {
  border-top: var(--border); border-bottom: var(--border);
  background: var(--ink); color: var(--sky);
  overflow: hidden; padding: 13px 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee__track {
  display: flex; width: max-content;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  animation: marquee 30s linear infinite;
}
.marquee__track span { white-space: nowrap; padding-right: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- equation ---------- */
.section--equation { padding-top: 130px; }

.equation { display: grid; gap: 40px; }
.eq-switches {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px; align-items: stretch;
}
.eq-op {
  align-self: center;
  font-family: var(--serif); font-size: 3rem; line-height: 1;
  color: var(--blue); -webkit-text-stroke: 1.5px var(--ink);
}
.eq-switch {
  text-align: left;
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), background 0.3s ease;
}
.eq-switch:hover { transform: translateY(-3px); }
.eq-switch[data-on="true"] { background: var(--mint); }
.eq-switch__toggle {
  width: 64px; height: 34px;
  border: var(--border); border-radius: 999px;
  background: #fff;
  display: inline-flex; align-items: center;
  padding: 3px;
  transition: background 0.25s ease;
}
.eq-switch[data-on="true"] .eq-switch__toggle { background: var(--blue); }
.eq-switch__knob {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--ink);
  transition: transform 0.25s var(--ease);
}
.eq-switch[data-on="true"] .eq-switch__knob { transform: translateX(29px); }
.eq-switch__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.eq-switch__desc { font-size: 0.95rem; color: rgba(4, 50, 77, 0.72); }

.eq-result {
  position: relative;
  border: var(--border); border-radius: var(--r-lg);
  background: var(--ink);
  min-height: 150px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background 0.5s ease;
  text-align: center;
  padding: 30px 20px;
}
.eq-result__off {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: rgba(222, 243, 255, 0.45);
  transition: opacity 0.4s ease;
}
.eq-result__on {
  position: absolute;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: #fff;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
  max-width: 24ch;
  line-height: 1.15;
}
.eq-result[data-lit="true"] { background: var(--blue); }
.eq-result[data-lit="true"] .eq-result__off { opacity: 0; }
.eq-result[data-lit="true"] .eq-result__on { opacity: 1; transform: scale(1); }
.eq-result__rays {
  position: absolute; z-index: 0; width: 90px; height: 90px;
  top: 50%; margin-top: -45px;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.4s ease 0.15s, transform 0.4s var(--ease) 0.15s;
  pointer-events: none;
}
.eq-result__rays--left { left: 5%; }
.eq-result__rays--right { right: 5%; }
.eq-result[data-lit="true"] .eq-result__rays { opacity: 1; transform: scale(1); }
@media (max-width: 720px) {
  .eq-result__rays--left { left: -6px; }
  .eq-result__rays--right { right: -6px; }
  .eq-result__rays { width: 64px; height: 64px; margin-top: -32px; }
}

@media (max-width: 880px) {
  .eq-switches { grid-template-columns: 1fr; }
  .eq-op { justify-self: center; }
}

/* ---------- who ---------- */
.section--who { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
.who-card {
  border: var(--border); border-radius: var(--r);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.who-card--yes { background: var(--mint); transform: rotate(-0.8deg); }
.who-card--no { background: var(--pink); transform: rotate(0.8deg); }
.who-card__title { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 18px; }
.who-list { list-style: none; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; flex: 1; }
.who-list li { position: relative; padding-left: 36px; }
.who-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border: 2.5px solid var(--ink); border-radius: 7px;
  background: #fff center / 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%2304324D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.who-list--no li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6 L18 18 M18 6 L6 18' fill='none' stroke='%2304324D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 820px) { .who { grid-template-columns: 1fr; } }

/* ---------- pesto ---------- */
.pesto { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.pesto__letters { display: grid; gap: 14px; }
.pesto-letter {
  width: 84px; height: 84px;
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  background: var(--tint);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pesto-letter:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pesto-letter.is-active {
  transform: translate(3px, 3px) scale(1.02);
  box-shadow: 1px 1px 0 var(--ink);
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.pesto__panel { min-height: 380px; }
.pesto-content {
  background: var(--tint);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 42px 44px;
  animation: pop-in 0.35s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.97) translateY(8px); } }
.pesto-content__name { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 14px; }
.pesto-content p { max-width: 58ch; }
.hook-sample {
  margin-top: 26px;
  background: var(--paper);
  border: var(--border); border-radius: 14px;
  padding: 20px 24px;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.35;
  box-shadow: var(--shadow-sm);
  transform: rotate(-0.6deg);
}
.hook-sample__note {
  display: block; margin-top: 10px;
  font-family: var(--sans); font-size: 0.9rem;
  color: rgba(4, 50, 77, 0.68);
}
@media (max-width: 820px) {
  .pesto { grid-template-columns: 1fr; }
  .pesto__letters { grid-auto-flow: column; justify-content: start; overflow-x: auto; padding-bottom: 6px; }
  .pesto-letter { width: 64px; height: 64px; font-size: 2rem; }
  .pesto-content { padding: 30px 24px; }
  .pesto__panel { min-height: 0; }
}

/* ---------- linkedinify ---------- */
.section--ify { background: var(--lilac); border-top: var(--border); border-bottom: var(--border); }
.ify { display: grid; gap: 34px; justify-items: center; }
.ify__stage {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.ify-card {
  position: relative;
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 54px 36px 36px;
  min-height: 190px;
  display: flex; align-items: center;
  transition: background 0.4s ease;
}
.ify-card[data-state="after"] { background: #fff; }
.ify-card__tag {
  position: absolute; top: -16px; left: 24px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 5px 14px;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.ify-card__tag--before { background: var(--pink); }
.ify-card__tag--after { background: var(--mint); opacity: 0; transform: translateY(6px); }
.ify-card[data-state="after"] .ify-card__tag--before { opacity: 0; transform: translateY(6px); }
.ify-card[data-state="after"] .ify-card__tag--after { opacity: 1; transform: none; }
.ify-card__text {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25;
  transition: opacity 0.2s ease;
}
.ify-card.is-swapping .ify-card__text { opacity: 0; }

.ify__meter { text-align: center; width: 170px; }
.ify__meter svg { width: 100%; }
.ify-needle { transform-origin: 100px 102px; transform: rotate(0deg); transition: transform 0.9s var(--ease); }
.ify-card[data-state="after"] ~ * .ify-needle,
.ify__meter.is-hot .ify-needle { transform: rotate(142deg); }
.ify-meter-fill { transition: stroke-dashoffset 0.9s ease; }
.ify__meter.is-hot .ify-meter-fill { stroke-dashoffset: 40; }
.ify__meter-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(4,50,77,0.65); }

.lever { display: flex; align-items: center; gap: 16px; }
.lever__track {
  width: 92px; height: 46px;
  background: var(--paper);
  border: var(--border); border-radius: 999px;
  display: flex; align-items: center; padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease;
}
.lever[aria-pressed="true"] .lever__track { background: var(--blue); }
.lever__knob {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink);
  transition: transform 0.3s var(--ease);
}
.lever[aria-pressed="true"] .lever__knob { transform: translateX(44px); }
.lever__label { font-family: var(--serif); font-size: 1.5rem; }

.ify-test {
  margin-top: 64px;
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 34px 38px;
  transform: rotate(0.5deg);
}
.ify-test__list { margin-top: 8px; padding-left: 0; counter-reset: q; list-style: none; display: grid; gap: 12px; }
.ify-test__list li { counter-increment: q; position: relative; padding-left: 44px; font-size: 1.05rem; }
.ify-test__list li::before {
  content: counter(q);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.1rem;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 50%;
}
@media (max-width: 760px) {
  .ify__stage { grid-template-columns: 1fr; }
  .ify__meter { margin: 0 auto; }
}

/* ---------- funnel ---------- */
.funnel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.funnel__viz { display: grid; gap: 12px; justify-items: center; }
.funnel-band {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 22px 10px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.funnel-band span { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
.funnel-band--tofu { background: var(--sky); border-radius: 24px 24px 10px 10px; width: 100%; }
.funnel-band--mofu { background: var(--peach); width: 74%; border-radius: 10px; }
.funnel-band--bofu { background: var(--mint); width: 48%; border-radius: 10px 10px 24px 24px; }
.funnel-band:hover { transform: translateY(-3px); }
.funnel-band.is-active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.funnel__panel {
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 40px 42px;
  min-height: 260px;
}
.funnel-info { animation: pop-in 0.35s var(--ease); }
.funnel-info p { max-width: 52ch; }
.funnel-info__mix {
  margin-top: 18px;
  display: inline-block;
  background: var(--gold);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.95rem;
}
@media (max-width: 820px) { .funnel { grid-template-columns: 1fr; } .funnel__panel { min-height: 0; padding: 30px 26px; } }

/* ---------- week ---------- */
.section--week { background: var(--paper); border-top: var(--border); border-bottom: var(--border); overflow: hidden; }
.week {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(24px, calc((100vw - 1080px) / 2 + 24px)) 26px;
  scrollbar-width: none;
}
.week::-webkit-scrollbar { display: none; }
.week-card {
  flex: 0 0 215px;
  scroll-snap-align: start;
  background: var(--tint, #fff);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 24px;
  transform: rotate(var(--tilt, 0deg));
}
.week-card:nth-child(odd) { --tilt: -1deg; }
.week-card:nth-child(even) { --tilt: 1deg; }
.week-card__day {
  display: inline-block;
  font-family: var(--serif); font-size: 1.9rem; line-height: 1;
  margin-bottom: 10px;
}
.week-card__pillar {
  display: block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(4, 50, 77, 0.6);
  margin-bottom: 8px;
}
.week-card p { font-size: 0.95rem; line-height: 1.45; }
.week-card--cta { background: var(--ink); color: var(--sky); }
.week-card--cta .week-card__pillar { color: rgba(222, 243, 255, 0.7); }

/* ---------- math ---------- */
.math-machine {
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 46px 48px;
}
.math-machine__slider { display: grid; gap: 12px; margin-bottom: 42px; }
.math-machine__slider label { font-weight: 700; font-size: 1.05rem; }
.math-machine__followers {
  font-family: var(--serif); font-size: 3rem; line-height: 1;
  color: var(--blue); -webkit-text-stroke: 1.5px var(--ink);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 14px;
  background: var(--sky);
  border: 2.5px solid var(--ink); border-radius: 999px;
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  cursor: grab;
}
.math-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.3fr;
  gap: 10px; align-items: center;
}
.math-arrow { font-size: 1.6rem; text-align: center; color: rgba(4, 50, 77, 0.5); }
.math-step {
  background: #fff;
  border: 2.5px solid var(--ink); border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  display: grid; gap: 4px;
}
.math-step__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(4, 50, 77, 0.6); }
.math-step__num { font-family: var(--serif); font-size: 2.1rem; line-height: 1.05; }
.math-step__rule { font-size: 0.78rem; color: rgba(4, 50, 77, 0.55); }
.math-step--cash { background: var(--mint); border-width: 3px; box-shadow: var(--shadow-sm); }
.math-step--cash .math-step__num { font-size: 2.5rem; color: var(--ink); }
.math-step__num.is-ticking { animation: tick-pop 0.3s var(--ease); }
@keyframes tick-pop { 50% { transform: scale(1.12); } }
.math-machine__note { margin-top: 34px; text-align: center; font-size: 1.1rem; }
@media (max-width: 880px) {
  .math-machine { padding: 32px 24px; }
  .math-chain { grid-template-columns: 1fr; }
  .math-arrow { transform: rotate(90deg); }
}

/* ---------- dm ---------- */
.section--dm { background: var(--peach); border-top: var(--border); border-bottom: var(--border); }
.dm { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.dm-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.dm-tab {
  font-weight: 700; font-size: 0.95rem;
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 9px 20px;
  background: var(--paper);
  transition: background 0.2s ease, transform 0.15s var(--ease);
}
.dm-tab.is-active { background: var(--blue); color: var(--ink); transform: translateY(2px); }

.dm-window {
  background: var(--paper);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
  min-height: 380px;
  padding: 26px 22px;
  display: flex; flex-direction: column;
}
.dm-messages { display: flex; flex-direction: column; gap: 12px; }
.dm-msg {
  max-width: 85%;
  border: 2.5px solid var(--ink);
  padding: 12px 16px;
  font-size: 0.98rem; line-height: 1.45;
  opacity: 0; transform: translateY(10px) scale(0.97);
  animation: msg-in 0.4s var(--ease) forwards;
}
@keyframes msg-in { to { opacity: 1; transform: none; } }
.dm-msg--you { align-self: flex-end; background: var(--sky); border-radius: 16px 16px 4px 16px; }
.dm-msg--them { align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px; }
.dm-msg__who { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-bottom: 3px; }
.dm-typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px;
  padding: 14px 18px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px 16px 16px 4px;
}
.dm-typing i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); opacity: 0.4;
  animation: typing 1s infinite;
}
.dm-typing i:nth-child(2) { animation-delay: 0.16s; }
.dm-typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.35; } 50% { transform: translateY(-4px); opacity: 0.9; } }
.dm-replay { margin-top: 18px; }

.stamp {
  display: inline-block;
  font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; text-align: center;
  color: #C0392B;
  border: 4px solid #C0392B; border-radius: 12px;
  padding: 16px 26px;
  transform: rotate(-4deg);
  margin-bottom: 22px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0.1'/%3E%3C/filter%3E%3Crect width='120' height='120' fill='%23fff' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: 130px;
}
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.check-list li { position: relative; padding-left: 32px; font-size: 0.98rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border: 2.5px solid var(--ink); border-radius: 50%;
  background: var(--blue) center / 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.dm__rules p { margin-bottom: 20px; max-width: 48ch; }
@media (max-width: 880px) { .dm { grid-template-columns: 1fr; } }

/* ---------- mistakes ---------- */
.mistakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mistake {
  position: relative;
  text-align: left;
  border: var(--border); border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  min-height: 170px;
  overflow: hidden;
  transition: transform 0.18s var(--ease);
}
.mistake:hover { transform: translateY(-4px) rotate(-0.5deg); }
.mistake__front {
  display: block;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.25;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mistake__no {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  background: var(--pink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  font-size: 1.3rem;
}
.mistake__fix {
  position: absolute; inset: 0;
  padding: 26px;
  background: var(--mint);
  display: flex; align-items: center;
  font-size: 0.98rem; line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
.mistake__fix::before {
  content: "The fix";
  position: absolute; top: 12px; left: 26px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(4, 50, 77, 0.55);
}
.mistake[aria-expanded="true"] .mistake__fix,
.mistake:hover .mistake__fix { opacity: 1; transform: none; }
.mistake[aria-expanded="true"] .mistake__front,
.mistake:hover .mistake__front { opacity: 0; }
@media (max-width: 880px) { .mistakes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .mistakes { grid-template-columns: 1fr; } .mistake { min-height: 0; } .mistake__fix { position: relative; inset: auto; opacity: 1; transform: none; margin-top: 16px; padding: 18px; border-radius: 12px; border: 2.5px solid var(--ink); display: block; } .mistake__fix::before { position: static; display: block; margin-bottom: 6px; } .mistake:hover .mistake__front, .mistake[aria-expanded="true"] .mistake__front { opacity: 1; } }

/* ---------- hooks ---------- */
.section--hooks { background: var(--mint); border-top: var(--border); border-bottom: var(--border); }
.hook-deck { display: grid; gap: 26px; justify-items: center; }
.hook-card {
  width: 100%;
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 44px 46px;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  transform: rotate(-0.5deg);
}
.hook-card.is-swapping { animation: card-swap 0.4s var(--ease); }
@keyframes card-swap { 0% { opacity: 0; transform: rotate(2deg) translateX(40px); } }
.hook-card__framework {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
.hook-card__example { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; }
.hook-card__why { font-size: 0.98rem; color: rgba(4, 50, 77, 0.7); max-width: 52ch; }
.hook-deck__controls { display: flex; align-items: center; gap: 20px; }
.hook-deck__count { font-family: var(--serif); font-size: 1.2rem; min-width: 52px; text-align: center; }
@media (max-width: 620px) { .hook-card { padding: 30px 24px; min-height: 0; } }

/* ---------- execution ---------- */
.exec { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.todo { list-style: none; display: grid; gap: 14px; }
.todo label {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper);
  border: var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.25s ease;
  font-size: 1.02rem;
}
.todo label:hover { transform: translateX(4px); }
.todo input { position: absolute; opacity: 0; }
.todo__box {
  flex: 0 0 26px; height: 26px;
  border: 3px solid var(--ink); border-radius: 8px;
  background: #fff;
  transition: background 0.2s ease;
}
.todo input:checked ~ .todo__box {
  background: var(--blue) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 l5 5 L20 6' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.todo input:checked ~ span:last-child { text-decoration: line-through; opacity: 0.55; }
.todo input:focus-visible ~ .todo__box { outline: 3px solid var(--blue); outline-offset: 3px; }
.exec__done {
  margin-top: 22px;
  font-family: var(--serif); font-size: 1.5rem;
  animation: pop-in 0.4s var(--ease);
}
.exec__side { display: grid; gap: 22px; }
.exec-note {
  background: var(--tint);
  border: var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px;
  transform: rotate(0.7deg);
}
.exec-note + .exec-note { transform: rotate(-0.7deg); }
.exec-note p { font-size: 0.98rem; }
@media (max-width: 820px) { .exec { grid-template-columns: 1fr; } }

/* ---------- compound ---------- */
.compound-chart {
  background: var(--paper);
  border: var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 40px 30px 24px;
}
.compound-chart svg { width: 100%; height: auto; }
.compound-chart text { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--ink); }
.compound-marker__note { font-family: var(--serif) !important; font-style: italic; font-weight: 400 !important; font-size: 16px !important; fill: rgba(4, 50, 77, 0.7) !important; }
.compound-path { stroke-dasharray: 720; stroke-dashoffset: 720; }
.compound-chart.is-in .compound-path { animation: draw-long 2s ease forwards; }
@keyframes draw-long { to { stroke-dashoffset: 0; } }
.compound-marker { opacity: 0; }
.compound-chart.is-in .compound-marker { animation: pop-in 0.5s var(--ease) forwards; }
.compound-chart.is-in .compound-marker[data-delay="0"] { animation-delay: 0.55s; }
.compound-chart.is-in .compound-marker[data-delay="1"] { animation-delay: 1.1s; }
.compound-chart.is-in .compound-marker[data-delay="2"] { animation-delay: 1.75s; }

/* ---------- cta / footer ---------- */
.cta {
  position: relative;
  padding: 130px 24px 200px;
  text-align: center;
  overflow: hidden;
  border-top: var(--border);
  background: linear-gradient(#DEF3FF, #C9EBFF);
}
.cta__cloud { position: absolute; top: 40px; right: 6%; width: 240px; opacity: 0.85; animation: drift 40s linear infinite alternate; }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; }
.cta__bird { width: 110px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; padding-bottom: 6px; }
.cta__sub { font-size: 1.15rem; max-width: 44ch; color: rgba(4, 50, 77, 0.78); }
.cta__grass {
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 150px;
  background: url('assets/grass.webp') bottom center / cover no-repeat;
  pointer-events: none;
}
.footer {
  background: #2E7D32;
  color: #EAF7EC;
  text-align: center;
  padding: 44px 24px 54px;
}
.footer__brand { font-family: var(--serif); font-size: 1.6rem; }
.footer__tag { font-size: 0.95rem; opacity: 0.85; margin: 6px 0 14px; }
.footer__link { color: #fff; font-weight: 700; text-decoration-thickness: 2.5px; text-underline-offset: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .compound-path { stroke-dashoffset: 0; }
  .compound-marker { opacity: 1; }
  .squiggle path { stroke-dashoffset: 0; }
}

/* ---------- cta alt links ---------- */
.cta__alt { font-size: 0.98rem; color: rgba(4,50,77,0.75); }
.cta__alt a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2.5px; text-underline-offset: 3px; }
