/* AtomWorks Content: AtomWorks palette (ink, cream, gold) on a light, editorial page. */

:root {
  --ink: #0a0905;
  --coal: #15120a;
  --char: #211c10;
  --cream: #f6eedb;
  --paper: #fffaf0;
  --sand: #c7b78f;
  --gold: #c9a13b;
  --champagne: #e6cf8f;
  --bronze: #8a6420;
  --muted: rgba(10, 9, 5, 0.64);
  --line: rgba(10, 9, 5, 0.12);
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background-color: var(--cream);
  /* graph paper */
  background-image:
    linear-gradient(rgba(138, 100, 32, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 100, 32, 0.075) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.5;
}

/* Paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.25 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bronze);
}
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

h2 {
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.038em;
}
h2 .serif { font-size: 1.08em; letter-spacing: -0.02em; }

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  margin-top: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .idx {
  background: var(--ink);
  color: var(--cream);
  padding: 3px 7px;
  border-radius: 6px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 161, 59, 0.6);
  animation: pulse 2.2s infinite;
}
.eyebrow--light { color: rgba(246, 238, 219, 0.6); }
.eyebrow--light .idx { background: var(--gold); color: var(--ink); }

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(201, 161, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 161, 59, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.25s, color 0.25s, box-shadow 0.35s;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(10, 9, 5, 0.55);
}
.btn .arr { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 22px 38px; font-size: 19px; }
.btn--wide { width: 100%; margin-top: 28px; }

/* Progress + nav */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--champagne));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1240px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav__brand em {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15em;
  color: var(--bronze);
}
.nav__mark { width: 36px; height: 29px; color: var(--ink); }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav__links a:hover { background: rgba(10, 9, 5, 0.06); }

/* Mascot spots: zero-size points Proto stands on */
.slot {
  position: absolute;
  left: var(--sx, 50%);
  top: var(--sy, 0%);
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ───────── Scenes: flow layout by default, pinned stages on desktop (.is-desk) ───────── */
.scene { position: relative; }
.stage {
  position: relative;
  padding: calc(var(--nav-h) + 48px) var(--pad) 96px;
}
.is-desk .scene .stage {
  height: 100vh;
  min-height: 600px;
  padding: var(--nav-h) var(--pad) 0;
  overflow: hidden;
}

/* HERO */
.hero .stage {
  display: grid;
  gap: 56px;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
}
.is-desk .hero .stage { grid-template-columns: 1.15fr 0.85fr; }

.hero__title {
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero__title .muted { color: rgba(10, 9, 5, 0.38); }
.hero__title .serif { font-size: 1.1em; letter-spacing: -0.03em; }
.h-a, .h-b { display: block; }
.h-a { font-size: 0.48em; margin-bottom: 0.5em; letter-spacing: -0.025em; }
.is-desk .h-a { letter-spacing: inherit; }
.is-desk .hero__title { display: grid; }
.is-desk .h-a, .is-desk .h-b { grid-area: 1 / 1; font-size: 1em; margin: 0; }
.h-b .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h-b .w > span { display: inline-block; }

.hero__sub {
  margin-top: 30px;
  max-width: 33em;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__visual { display: flex; justify-content: center; }
.is-desk .hero__visual { align-self: end; padding-bottom: max(40px, 7vh); }
.is-desk .hero__visual .profile { transform-origin: 50% 100%; }
@media (max-height: 820px) { .is-desk .hero__visual .profile { scale: 0.86; } }
.profile {
  position: relative;
  width: min(100%, 390px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(80, 56, 8, 0.45), 0 2px 0 rgba(10, 9, 5, 0.04);
}
.profile__head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--champagne), var(--gold) 55%, var(--bronze));
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold);
}
.profile__who strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.profile__who span { font-size: 13.5px; color: var(--muted); }
.profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 14px;
  text-align: center;
}
.profile__stats b {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.profile__stats span { font-size: 12.5px; color: var(--muted); }
.profile__stats .is-key b { color: var(--bronze); }

.chart { background: #f4ead2; border-radius: 18px; padding: 12px 14px 10px; }
.chart__top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.chart__top .mono { color: var(--bronze); }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: rgba(10, 9, 5, 0.08); stroke-width: 1; fill: none; }
.chart__flat { stroke: rgba(10, 9, 5, 0.45); stroke-width: 2; fill: none; stroke-linecap: round; }
.chart__grow { stroke: var(--gold); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.chart__head { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.chart__axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.tiles i {
  position: relative;
  aspect-ratio: 1.3;
  border-radius: 10px;
  background: var(--c);
  display: grid;
  place-items: center;
  font-style: normal;
  overflow: hidden;
}
.tiles i > span { opacity: 0.45; font-size: 20px; }
.tiles em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--ink);
}
.tiles em::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.tiles em.alt { background: var(--gold); color: var(--ink); }
.tiles em.alt::before { background: var(--ink); }
.no-js .tiles em, .is-desk .tiles em { opacity: 0; }

.badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--cream);
}
.badge::before { content: "✓ "; color: var(--gold); }

.scrollcue {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: center;
  gap: 10px;
}
.is-desk .scrollcue { display: inline-flex; }
.scrollcue span {
  width: 18px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  position: relative;
}
.scrollcue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(9px); opacity: 0; } }

/* DIAGNOSIS */
.diag .stage { max-width: 1340px; margin: 0 auto; }
.is-desk .diag .stage {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.diag__head { position: relative; }

.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.is-desk .board { grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.note {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px 6px 18px 6px;
  padding: 18px 20px 24px;
  transform: rotate(var(--r));
  box-shadow: 0 18px 30px -22px rgba(80, 56, 8, 0.5);
  min-height: 150px;
}
.note:nth-child(even) { background: #fbf0d2; }
.note small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}
.note p {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.02;
  margin-top: 8px;
}
.strike {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 38%;
  width: calc(100% - 24px);
  height: 46%;
  overflow: visible;
  pointer-events: none;
}
.strike path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.breakdown {
  position: relative;
  margin-top: 40px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 40px 80px -40px rgba(10, 9, 5, 0.7);
}
.is-desk .breakdown {
  position: absolute;
  right: calc(var(--pad) + 2%);
  top: 50%;
  width: min(470px, 40vw);
  margin: 0;
  top: 27%;
}
.breakdown .eyebrow { color: rgba(246, 238, 219, 0.6); }
.breakdown h3 { font-size: 38px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.4; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0905' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.breakdown .ticks li { color: rgba(246, 238, 219, 0.88); }

/* PLAN: the notebook */
.is-desk .plan .stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(120px, 18vh, 170px);
}
.is-desk .plan h2 { font-size: clamp(36px, 3.8vw, 58px); }
.plan__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.rail { width: min(380px, 100%); display: none; }
.is-desk .rail { display: block; }
.rail__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rail__labels .js-plan-day { color: var(--bronze); font-weight: 500; }
.rail__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rail__bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; }
.is-desk .rail__bar i { transform: scaleX(0); }

.hand { font-family: var(--hand); font-weight: 700; }

.book { position: relative; display: grid; gap: 16px; margin-top: 40px; }
.leaf, .face {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  overflow: hidden;
}
.page { display: grid; gap: 16px; }

.is-desk .book {
  display: block;
  width: min(1080px, 88vw);
  height: min(470px, 52vh);
  min-height: 400px;
  margin: 0 auto;
  perspective: 2600px;
}
/* the cover behind the pages */
.is-desk .book::before {
  content: "";
  position: absolute;
  inset: -12px -14px -16px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2a2213, var(--ink) 60%);
  box-shadow: 0 50px 90px -40px rgba(10, 9, 5, 0.7);
}
.is-desk .leaf, .is-desk .page { position: absolute; top: 0; width: 50%; height: 100%; }
.is-desk .leaf, .is-desk .face { border: 0; }
.is-desk .leaf--left { left: 0; border-radius: 16px 0 0 16px; }
.is-desk .leaf--right, .is-desk .page { left: 50%; }
.is-desk .leaf--right { border-radius: 0 16px 16px 0; }
.is-desk .page { transform-origin: 0 50%; transform-style: preserve-3d; display: block; will-change: transform; }
.is-desk .face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 16px 16px 0;
}
.is-desk .face.back { transform: rotateY(180deg); border-radius: 16px 0 0 16px; }
/* the gutter darkens toward the spine */
.is-desk .leaf--right::before, .is-desk .face.front::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60px;
  background: linear-gradient(to right, rgba(60, 40, 0, 0.16), transparent);
  pointer-events: none;
}
.is-desk .leaf--left::before, .is-desk .face.back::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 60px;
  background: linear-gradient(to left, rgba(60, 40, 0, 0.16), transparent);
  pointer-events: none;
}
/* light falls off as a page lifts */
.is-desk .face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 28, 0, 0.32), rgba(40, 28, 0, 0.06) 70%);
  opacity: var(--shade, 0);
  pointer-events: none;
}

.front h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.05; margin-top: 16px; }
.front p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.front .viz { height: clamp(90px, 12vh, 124px); }

.back, .leaf--left {
  background-color: #fffaf0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(138, 100, 32, 0.16) 39px 40px);
  background-position: 0 66px;
}
.back__t { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.scrawl { list-style: none; margin: 18px 0 0; padding: 0; font-size: clamp(24px, 2.2vw, 31px); line-height: 40px; color: #2b2414; }
.scrawl li::before { content: "– "; color: var(--gold); }
.doodle { position: absolute; right: 26px; bottom: 22px; width: 120px; height: 60px; overflow: visible; }
.doodle path, .intro__arrow path { fill: none; stroke: var(--bronze); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.intro__t { font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--ink); transform: rotate(-2deg); margin-top: 18px; }
.intro__s { color: var(--muted); max-width: 18em; margin-top: 18px; }
.intro__arrow { width: 150px; height: 56px; margin-top: 18px; overflow: visible; }
.intro__d, .finale__d { position: absolute; left: 30px; bottom: 24px; font-size: 12px; color: var(--bronze); }
.finale { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.finale__d { position: static; margin-bottom: 8px; }
.finale__n {
  font-size: clamp(70px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  padding: 0 0.06em;
  background: linear-gradient(180deg, var(--champagne), var(--gold) 55%, var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.finale__s { font-size: clamp(24px, 2.2vw, 32px); margin-top: 6px; }

.step__top { display: flex; justify-content: space-between; align-items: center; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--bronze); }
.step__when {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}

.viz { height: 96px; } .is-desk .step p { font-size: 15px; } }
.plan__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}
.rail { width: min(420px, 100%); }
.rail__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rail__labels .js-plan-day { color: var(--bronze); font-weight: 500; }
.rail__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rail__bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; }
.is-desk .rail__bar i { transform: scaleX(0); }
.rail { display: none; }
.is-desk .rail { display: block; }

.track { display: grid; gap: 18px; margin-top: 40px; }
.is-desk .track {
  display: flex;
  gap: 24px;
  margin: 0;
  width: max-content;
  padding-left: max(0px, calc((100vw - 1240px) / 2 - var(--pad)));
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), border-color 0.4s, box-shadow 0.5s, opacity 0.5s;
}
.is-desk .step { width: 390px; flex: none; opacity: 0.55; }
.is-desk .step.is-active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-10px);
  box-shadow: 0 40px 70px -40px rgba(80, 56, 8, 0.55);
}
.step__top { display: flex; justify-content: space-between; align-items: center; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--bronze); }
.step__when {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.step h3 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 10px; font-size: 16px; }

.viz {
  margin-top: 16px;
  height: 128px;
  border-radius: 16px;
  background: #f4ead2;
  padding: 16px;
  overflow: hidden;
}
.viz--wave { display: flex; align-items: center; justify-content: center; gap: 6px; }
.viz--wave i {
  width: 7px;
  height: 70%;
  border-radius: 4px;
  background: var(--ink);
  animation: wave 1.2s ease-in-out infinite;
}
.viz--wave i:nth-child(3n) { background: var(--gold); }
.viz--wave i:nth-child(1) { animation-delay: -0.1s; } .viz--wave i:nth-child(2) { animation-delay: -0.5s; }
.viz--wave i:nth-child(3) { animation-delay: -0.3s; } .viz--wave i:nth-child(4) { animation-delay: -0.8s; }
.viz--wave i:nth-child(5) { animation-delay: -0.2s; } .viz--wave i:nth-child(6) { animation-delay: -0.6s; }
.viz--wave i:nth-child(7) { animation-delay: -0.4s; } .viz--wave i:nth-child(8) { animation-delay: -0.9s; }
.viz--wave i:nth-child(9) { animation-delay: -0.15s; } .viz--wave i:nth-child(10) { animation-delay: -0.7s; }
.viz--wave i:nth-child(11) { animation-delay: -0.35s; } .viz--wave i:nth-child(12) { animation-delay: -0.55s; }
.viz--wave i:nth-child(13) { animation-delay: -0.25s; } .viz--wave i:nth-child(14) { animation-delay: -0.65s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }

.viz--audit { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; align-content: center; }
.viz--audit i {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}
.viz--audit .y { background: var(--gold); }
.viz--audit .y::after { content: "✓"; }
.viz--audit .n { background: rgba(10, 9, 5, 0.12); color: rgba(10, 9, 5, 0.55); }
.viz--audit .n::after { content: "✕"; }

.viz--pillars { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 0; }
.viz--pillars i {
  position: relative;
  width: 64px;
  height: var(--h);
  border-radius: 10px 10px 0 0;
  background: var(--ink);
}
.viz--pillars i:nth-child(2) { background: var(--gold); }
.viz--pillars b {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cream);
}
.viz--pillars i:nth-child(2) b { color: var(--ink); }

.viz--cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-content: center; }
.viz--cal i { height: 26px; border-radius: 6px; background: rgba(10, 9, 5, 0.07); position: relative; }
.viz--cal i.on::after {
  content: "";
  position: absolute;
  inset: 8px 30%;
  border-radius: 4px;
  background: var(--gold);
}
.viz--cal i.on:nth-child(4n)::after { background: var(--ink); }

.viz--list { display: grid; gap: 7px; align-content: center; font-size: 13px; font-weight: 500; }
.viz--list span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.viz--list i {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--gold);
}
.viz--list span:last-child i { background: transparent; }

.viz--bars { display: flex; align-items: flex-end; gap: 9px; padding-bottom: 0; }
.viz--bars i { flex: 1; height: var(--h); background: var(--gold); border-radius: 6px 6px 0 0; }
.viz--bars i:last-child { background: var(--ink); }

/* STACK */
.stack { padding: 140px 0 120px; }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.group { border-top: 2px solid var(--ink); padding-top: 18px; }
.group h3 { font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.group h3 .mono {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--gold);
  font-size: 12px;
}
.group ol { list-style: none; padding: 0; margin: 12px 0 0; }
.group li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.35;
}
.group li b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--bronze); padding-top: 3px; }
.yourpart {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: 26px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 36px 40px;
}
.yourpart .eyebrow { color: var(--gold); width: 100%; margin: 0; }
.yourpart__big { font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.yourpart__small { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 34px); color: var(--champagne); }

/* GUARANTEE */
.guarantee { background: var(--ink); color: var(--cream); }
.guarantee .stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.guarantee .stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 70vmin;
  height: 70vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 161, 59, 0.22), transparent 65%);
  pointer-events: none;
}
.g__pre { font-size: clamp(22px, 2.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.g__pre .serif { color: var(--champagne); font-size: 1.15em; }
.g__num {
  position: relative;
  font-size: clamp(96px, 19vw, 290px);
  transform-origin: 50% 60%;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 6px 0 12px;
  padding: 0 0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--champagne) 10%, var(--gold) 55%, var(--bronze) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g__line {
  width: min(520px, 80%);
  height: 3px;
  margin: 34px 0 26px;
  border-radius: 3px;
  background: rgba(246, 238, 219, 0.14);
  overflow: hidden;
}
.g__line i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; }
.g__fine { max-width: 36em; color: rgba(246, 238, 219, 0.66); font-size: 16px; }

/* PRICE */
.price { padding: 140px 0 100px; }
.price__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pcard {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 50px 90px -50px rgba(80, 56, 8, 0.5);
}
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pill {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
}
.pcard__amt {
  font-size: clamp(76px, 8vw, 116px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-top: 22px;
}
.pcard__amt .cur { font-size: 0.45em; vertical-align: 0.8em; margin-right: 4px; letter-spacing: 0; }
.pcard__note { color: var(--muted); margin: 6px 0 26px; }

/* FAQ */
.faq { padding: 80px 0 120px; }
.faq__wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq__head { position: relative; align-self: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.35s, background 0.25s, color 0.25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.faq__list details p { color: var(--muted); padding: 0 50px 26px 0; max-width: 40em; }

/* PUNCH */
.punch { padding: 140px 0 170px; text-align: center; }
.punch .wrap { display: flex; flex-direction: column; align-items: center; }
.punch__q { font-family: var(--hand); font-size: clamp(30px, 3vw, 44px); color: var(--bronze); transform: rotate(-3deg); }
.punch__a { font-size: clamp(56px, 9vw, 150px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; margin-top: 10px; }
.punch .lede { margin: 28px auto 0; }
.punch__cta { position: relative; margin-top: 150px; }

/* FOOTER */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot__wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot__links { display: flex; gap: 24px; font-size: 15px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { font-size: 12px; color: var(--muted); }

/* ───────── Proto, the mascot ───────── */
.proto {
  --pw: 200px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: var(--pw);
  pointer-events: none;
  will-change: transform;
  opacity: 0;
}
.proto.is-ready { opacity: 1; }
.proto.is-docked { --pw: 96px; }
.proto__svg { width: 100%; height: auto; overflow: visible; }

.p-blob { fill: url(#pg-body); }
.p-arm { fill: none; stroke: #d2c4a8; stroke-width: 20; stroke-linecap: round; }
.p-arm-in { fill: none; stroke: url(#pg-arm); stroke-width: 15.5; stroke-linecap: round; }
.p-hand { fill: url(#pg-hand); stroke: #d2c4a8; stroke-width: 1.5; }
.p-ink { fill: #1d170c; }
.p-stroke { fill: none; stroke: #1d170c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.p-thin { stroke-width: 5; }
.p-brow { fill: none; stroke: #1d170c; stroke-width: 5.5; stroke-linecap: round; }
.p-line { fill: none; stroke: #1d170c; stroke-width: 5; stroke-linecap: round; }

[data-part] { display: none; }
[data-part].on { display: inline; }

.p-squash {
  transform-box: view-box;
  transform-origin: 120px 250px;
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.965); } }
.p-face { transform-box: view-box; }
.p-eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 0.07s; }
.blink .p-eye { transform: scaleY(0.12); }

.p-wave { transform-box: view-box; transform-origin: 156px 130px; animation: wavearm 0.55s ease-in-out infinite alternate; }
@keyframes wavearm { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.p-write { transform-box: view-box; transform-origin: 154px 148px; animation: scribble 0.32s ease-in-out infinite alternate; }
@keyframes scribble { from { transform: rotate(-5deg) translateX(-2px); } to { transform: rotate(6deg) translateX(3px); } }
.proto[data-mood="celebrate"] .proto__body { animation: hop 0.6s cubic-bezier(.3, 0, .3, 1) infinite alternate; }
@keyframes hop { from { translate: 0 0; } to { translate: 0 -12px; } }

.proto__bubble {
  position: absolute;
  bottom: calc(100% - 22px);
  right: 64%;
  white-space: nowrap;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
  background: #fffdf8;
  border: 2.5px solid var(--ink);
  border-radius: 18px 18px 4px 18px;
  padding: 9px 16px 11px;
  box-shadow: 4px 5px 0 var(--ink);
  transform-origin: 100% 100%;
}
.proto.side-right .proto__bubble { right: auto; left: 64%; border-radius: 18px 18px 18px 4px; transform-origin: 0 100%; }
.proto__bubble:empty, .proto__bubble.is-empty { visibility: hidden; }
.proto.is-docked .proto__bubble { font-size: 20px; padding: 7px 12px 9px; bottom: calc(100% - 8px); }

/* ───────── Small screens ───────── */
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav { top: 10px; padding-left: 14px; }
  .nav__links { display: none; }
  .nav__brand { font-size: 16px; }
  .hero .stage { padding-top: calc(var(--nav-h) + 56px); }
  .profile { margin-bottom: 24px; }
  .stack, .price { padding: 96px 0 72px; }
  .stack__grid, .price__wrap, .faq__wrap { grid-template-columns: 1fr; gap: 36px; }
  .yourpart { padding: 28px; }
  .faq { padding-top: 40px; }
  .faq__list details p { padding-right: 0; }
  .punch { padding: 100px 0 150px; }
  .guarantee .stage { padding-top: 110px; padding-bottom: 110px; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .note { min-height: 0; }
  .btn--lg { padding: 18px 26px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ───────── Board: a framed pinboard the notes get pasted onto ───────── */
.board {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 22px;
  border: 10px solid #c9ad78;
  background-color: #efe3c4;
  background-image: radial-gradient(rgba(138, 100, 32, 0.28) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  box-shadow: inset 0 2px 10px rgba(60, 40, 0, 0.18), 0 40px 70px -45px rgba(60, 40, 0, 0.6);
}
.is-desk .board { padding: 34px 28px 30px; }
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 62px;
  height: 20px;
  margin-left: -31px;
  background: rgba(201, 161, 59, 0.42);
  border-left: 2px dotted rgba(255, 255, 255, 0.45);
  border-right: 2px dotted rgba(255, 255, 255, 0.45);
  transform: rotate(-4deg);
  transform-origin: 0 50%;
}

/* marker highlight, swept in by script */
.mark {
  --m: 0%;
  background: linear-gradient(transparent 56%, rgba(201, 161, 59, 0.5) 56%, rgba(201, 161, 59, 0.5) 94%, transparent 94%) no-repeat 0 0 / var(--m) 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.no-js .mark { --m: 100%; }
.mark--dark, .yourpart .mark { background-image: linear-gradient(transparent 60%, rgba(201, 161, 59, 0.4) 60%, rgba(201, 161, 59, 0.4) 94%, transparent 94%); }

.rec {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: #d9483b;
  vertical-align: 0.36em;
  margin-right: 0.16em;
  box-shadow: 0 0 0 0.06em rgba(217, 72, 59, 0.25);
  animation: rec 1.3s steps(2, jump-none) infinite;
}
@keyframes rec { 50% { opacity: 0.15; } }


.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 44; pointer-events: none; }

.proto__scale { transform-origin: 50% 100%; will-change: transform; }
.proto__body { transform-origin: 50% 72%; }
.proto__bubble { will-change: transform; }

@media (max-width: 899px) {
}

.is-desk .g__num { font-size: clamp(110px, 15vw, 230px); }

/* flowing layout: doodles sit under the notes instead of over them */
html:not(.is-desk) .doodle { position: relative; right: auto; bottom: auto; display: block; margin: 14px 0 0 auto; }

/* ───────── Loading screen ───────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.no-js .loader { display: none; }
.loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 161, 59, 0.2), transparent 62%);
  pointer-events: none;
}
.loader__hi {
  position: relative;
  font-size: clamp(30px, 3.6vw, 56px);
  color: var(--bronze);
  transform: rotate(-3deg);
  margin-bottom: 0.1em;
}
.loader__word {
  position: relative;
  display: flex;
  align-items: center;
  font-size: clamp(54px, 12.5vw, 210px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.loader__word .ch { display: inline-block; will-change: transform; }
.loader__o {
  width: 1.34em;
  height: 1.06em;
  margin: 0 -0.1em 0 -0.08em;
  position: relative;
  top: 0.07em;
}
.lo-atom { width: 100%; height: 100%; overflow: visible; }
.lo-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: loblink 3.2s infinite; }
@keyframes loblink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(0.1); } }
.lo-happy { opacity: 0; }
.loader.is-done .lo-open { opacity: 0; }
.loader.is-done .lo-happy { opacity: 1; }
.loader__foot {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 8vh, 72px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(420px, 76vw);
}
.loader__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(10, 9, 5, 0.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.loader__pct { font-size: 12px; color: var(--muted); min-width: 3.5em; text-align: right; }
html.is-loading, html.is-loading body { overflow: hidden; }
.proto.is-waiting { visibility: hidden; }

/* ───────── One-screen stage (desktop) ───────── */
.scrollspace { display: none; }
.is-desk .scrollspace { display: block; }
.is-desk main { position: fixed; inset: 0; overflow: hidden; }
.is-desk main > section { position: absolute; inset: 0; height: 100vh; z-index: 1; }
.is-desk #guarantee { z-index: 5; }
.is-desk .stack, .is-desk .price, .is-desk .faq {
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 0;
}
.is-desk .stack > .wrap, .is-desk .price > .wrap, .is-desk .faq > .wrap { width: 100%; }
.is-desk .stack__head h2 { font-size: clamp(36px, 3.8vw, 58px); }
.is-desk .stack__head .lede { margin-top: 14px; }
.is-desk .stack__grid { margin-top: 34px; grid-template-columns: repeat(3, 1fr) 0.8fr; }
.is-desk .group li { padding: 11px 0; font-size: 16px; }
.is-desk .yourpart { grid-column: 1 / 4; margin-top: 18px; padding: 26px 32px; }
.is-desk .punch { display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) 0 130px; }
.is-desk .punch .foot { position: absolute; left: 0; right: 0; bottom: 0; }
.punch .foot { margin-top: 120px; text-align: left; }
.punch { padding-bottom: 0; }
.is-desk .faq__list summary { padding: 18px 0; }

/* chapter rail */
.chapters { display: none; }
.is-desk .chapters {
  position: fixed;
  left: 22px;
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 1.5px solid rgba(10, 9, 5, 0.12);
}
.chapters a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(10, 9, 5, 0.38);
  transition: color 0.3s;
}
.chapters a::before {
  content: "";
  position: absolute;
  left: -13.5px;
  top: 50%;
  width: 1.5px;
  height: 0;
  background: var(--gold);
  transform: translateY(-50%);
  transition: height 0.35s;
}
.chapters a span {
  font-family: var(--sans);
  font-size: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.chapters a.is-on { color: var(--ink); }
.chapters a.is-on::before { height: 100%; }
.chapters a.is-on span, .chapters:hover a span { opacity: 1; transform: none; }
html.dark-scene .chapters a { color: rgba(246, 238, 219, 0.4); }
.stack__head, .price__copy { position: relative; }
.is-desk .punch__cta { margin-top: 90px; }
