:root {
  --white: #fff;
  --ink: #2c2c2c;
  --slate: #34495e;
  --red: #cf3f34;
  --blue: #1672ad;
  --purple: #82439a;
  --amber: #e69400;
  --green: #197a46;
  --mist: #f6f8fa;
  --line: #d9e0e6;
  --shadow: 0 2px 12px rgb(44 44 44 / 8%);
  --radius: 8px;
  --shell: 1280px;
  --measure: 72ch;
  --section-gap: clamp(4rem, 8vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--slate); text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: #0f5c8c; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button, summary { font: inherit; }
button { min-height: 44px; }
p, li { font-size: 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--white); border: 2px solid var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.utility { color: var(--white); background: var(--slate); }
.utility__inner { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility__inner p, .utility__brand { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
.utility__brand { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; }
.utility__pulse { width: 22px; height: 14px; background: linear-gradient(90deg, transparent 0 10%, var(--red) 10% 18%, transparent 18% 32%, var(--amber) 32% 42%, transparent 42% 56%, #6fcf97 56% 68%, transparent 68%); }
.menu-bar { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); }
.menu-bar__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quick-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.quick-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .6rem .85rem; border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none; }
.quick-nav a[aria-current="page"] { background: #eaf5fb; color: #0d5d8e; }
.chapter-menu { position: relative; }
.chapter-menu summary { min-height: 44px; display: flex; align-items: center; gap: 1rem; padding: .55rem .8rem; border: 1px solid var(--ink); border-radius: var(--radius); font-weight: 700; cursor: pointer; list-style: none; }
.chapter-menu summary::-webkit-details-marker { display: none; }
.chapter-menu[open] summary span { transform: rotate(45deg); }
.chapter-menu nav { position: absolute; right: 0; top: calc(100% + .6rem); width: min(680px, calc(100vw - 3rem)); max-height: min(72vh, 680px); overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 18px 50px rgb(44 44 44 / 18%); }
.chapter-menu ol { columns: 2; column-gap: 1rem; margin: 0; padding: 0; list-style: none; }
.chapter-menu li { break-inside: avoid; }
.chapter-menu nav a { min-height: 48px; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.chapter-menu nav a span { width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid var(--blue); border-radius: 50%; }
.chapter-menu nav a[aria-current="page"] { background: #eef7fc; }
.hero { position: relative; isolation: isolate; padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 6rem); overflow: hidden; background-color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, transparent 0 55%, #f4f8fb 55% 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; bottom: -120px; border: 28px solid rgb(231 76 60 / 12%); border-radius: 50%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); }
.hero__copy { position: relative; z-index: 1; }
.eyebrow, .myth__label, .myth__answer-label, .site-footer__label { margin: 0 0 1rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.eyebrow { font-size: 1rem; letter-spacing: .08em; }
.hero__dek { max-width: 66ch; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.hero__beats { height: 32px; display: flex; align-items: end; gap: 6px; margin-top: 2rem; }
.hero__beats i { width: 8px; border-radius: 4px; background: var(--blue); animation: equalize 1.8s ease-in-out infinite; }
.hero__beats i:nth-child(1) { height: 12px; background: var(--red); }
.hero__beats i:nth-child(2) { height: 25px; animation-delay: .1s; }
.hero__beats i:nth-child(3) { height: 17px; background: var(--purple); animation-delay: .2s; }
.hero__beats i:nth-child(4) { height: 30px; background: var(--amber); animation-delay: .3s; }
.hero__beats i:nth-child(5) { height: 15px; background: var(--green); animation-delay: .4s; }
.hero__beats i:nth-child(6) { height: 22px; animation-delay: .5s; }
.hero__beats i:nth-child(7) { height: 10px; background: var(--red); animation-delay: .6s; }
.hero__visual { position: relative; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.hero__score { width: 100%; }
.hero__line, .hero__score-lines { fill: none; stroke-width: 4; stroke-linecap: round; }
.hero__line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s .1s ease-out forwards; }
.hero__line--blue { stroke: var(--blue); }
.hero__line--purple { stroke: var(--purple); animation-delay: .35s; }
.hero__score-lines { stroke: #dbe3e9; stroke-width: 2; }
.hero__note { transform-box: fill-box; transform-origin: center; animation: note-rise 2.6s ease-in-out infinite alternate; }
.hero__note--red { fill: var(--red); }
.hero__note--amber { fill: var(--amber); animation-delay: .3s; }
.hero__note--green { fill: var(--green); animation-delay: .6s; }
.hero__visual p { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 1rem 0 0; color: var(--slate); font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; font-weight: 700; letter-spacing: .05em; }
.hero__visual b { color: var(--red); }
.reading-flow { padding-block: var(--section-gap); }
.reading-flow > * + * { margin-top: var(--section-gap); }
.chapter-section, .card-section, .step-section { max-width: var(--measure); }
.chapter-section--blue { padding: clamp(1.5rem, 4vw, 3rem); border-left: 8px solid var(--blue); background: #f1f8fc; }
.chapter-section--soft { margin-left: min(8vw, 6rem); }
.chapter-section__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.beat-mark { min-height: 32px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--white); background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 10px), #eaf5fb; }
.chapter-section p { max-width: var(--measure); }
.chapter-section p + p { margin-top: 1rem; }
.check-list { padding-left: 1.4rem; }
.check-list li { padding: .45rem 0 .45rem .35rem; }
.check-list li::marker { color: var(--green); }
.card-section, .step-section { max-width: none; }
.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.signal-card { grid-column: span 5; min-width: 0; min-height: 230px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: var(--radius); color: var(--ink); background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease; }
.signal-card:nth-child(4n + 2), .signal-card:nth-child(4n + 3) { grid-column: span 7; }
.signal-card:nth-child(4n + 4) { grid-column: 3 / span 8; }
a.signal-card:hover { color: var(--ink); transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 28px rgb(44 44 44 / 13%); }
.signal-card--red { border-top-color: var(--red); }
.signal-card--purple { border-top-color: var(--purple); }
.signal-card--amber { border-top-color: var(--amber); }
.signal-card--green { border-top-color: var(--green); }
.signal-card__index { width: 52px; height: 18px; display: block; background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 9px); }
.signal-card h3 { margin-top: auto; font-size: 1.35rem; }
.signal-card p { margin-bottom: 0; }
.signal-card__link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-weight: 700; }
.myth { position: relative; max-width: 920px; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); color: var(--white); background: var(--slate); box-shadow: 14px 14px 0 #eaf0f4; }
.myth__meter { position: absolute; top: 1rem; right: 1rem; height: 34px; display: flex; align-items: end; gap: 5px; }
.myth__meter i { width: 5px; height: 12px; background: var(--red); }
.myth__meter i:nth-child(2) { height: 24px; background: var(--blue); }
.myth__meter i:nth-child(3) { height: 18px; background: var(--purple); }
.myth__meter i:nth-child(4) { height: 31px; background: var(--amber); }
.myth__meter i:nth-child(5) { height: 20px; background: #54c47b; }
.myth__meter i:nth-child(6) { height: 10px; background: var(--blue); }
.myth__label { color: #aeddf6; }
.myth h2 { max-width: 32ch; padding-right: 3.5rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.myth__button { display: none; }
.js .myth__button { min-width: 180px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: .7rem 1rem; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--white); font-weight: 700; cursor: pointer; }
.js .myth__button:hover { transform: scale(1.03); }
.js .myth__button b { color: var(--red); font-size: 1.4rem; transition: transform 240ms ease; }
.js .myth__button[aria-expanded="true"] b { transform: rotate(45deg); }
.myth__answer { margin-top: 1.5rem; padding: 1.25rem; border-left: 6px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); background: var(--white); }
.myth__answer[hidden] { display: none; }
.myth__answer p:last-child { margin-bottom: 0; }
.myth__answer-label { color: var(--green); }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 66px; bottom: -2px; width: 2px; background: repeating-linear-gradient(to bottom, var(--blue) 0 8px, transparent 8px 16px); }
.step-list__number { width: 64px; height: 48px; display: grid; place-items: center; z-index: 1; border: 1px solid var(--line); border-radius: var(--radius); color: var(--white); background: radial-gradient(circle at center, var(--white) 0 5px, transparent 6px), var(--blue); }
.step-list li:nth-child(2n) .step-list__number { background: var(--purple); }
.step-list li:nth-child(3n) .step-list__number { background: var(--green); }
.step-list p { margin: .5rem 0 0; }
.recap { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfd; box-shadow: var(--shadow); }
.recap__bars { display: flex; align-items: end; gap: 4px; height: 24px; }
.recap__bars i { width: 7px; height: 8px; background: var(--red); }
.recap__bars i:nth-child(2) { height: 18px; background: var(--blue); }
.recap__bars i:nth-child(3) { height: 12px; background: var(--purple); }
.recap__bars i:nth-child(4) { height: 22px; background: var(--amber); }
.recap__bars i:nth-child(5) { height: 14px; background: var(--green); }
.recap h3 { margin-top: .75rem; }
.recap ul { margin-bottom: 0; padding-left: 1.25rem; }
.record-links { display: grid; gap: .5rem; padding: 0; list-style: none; }
.record-links a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); font-weight: 700; text-decoration: none; }
.record-links a:hover { border-color: var(--blue); background: #f3f9fc; }
.record-links a span { color: var(--blue); }
.source-drawer { max-width: 920px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.source-drawer summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; font-weight: 700; }
.source-drawer summary small { color: #4f5f6d; font-size: .875rem; font-weight: 500; }
.source-drawer > div { padding: 0 1.25rem 1.25rem; }
.next-link { min-height: 88px; max-width: 920px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform 280ms ease, background 280ms ease; }
.next-link:hover { color: var(--white); background: var(--slate); transform: translateX(8px); }
.next-link span { grid-column: 1; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.next-link strong { grid-column: 1; }
.next-link b { grid-column: 2; grid-row: 1 / span 2; color: var(--red); font-size: 1.5rem; }
.site-footer { padding: 3rem 0; color: var(--white); background: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2rem; }
.site-footer p { max-width: 58ch; }
.site-footer__label { color: #86d4ff; }
.site-footer nav { display: grid; align-content: start; }
.site-footer a { min-height: 48px; display: flex; align-items: center; color: var(--white); border-bottom: 1px solid #53606b; text-decoration-color: #86d4ff; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes equalize { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
@keyframes note-rise { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
@media (max-width: 767px) {
  .shell { width: min(100% - 2rem, var(--shell)); }
  .utility__inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 0; padding-block: .4rem; }
  .utility__inner p { font-size: .75rem; }
  .menu-bar__inner { align-items: stretch; flex-direction: column-reverse; padding-block: .65rem; }
  .quick-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-nav a { justify-content: center; border: 1px solid var(--line); }
  .chapter-menu summary { justify-content: space-between; }
  .chapter-menu nav { position: static; width: 100%; max-height: none; margin-top: .5rem; box-shadow: var(--shadow); }
  .chapter-menu ol { columns: 1; }
  .hero { padding-top: 3rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { padding: .75rem; }
  .reading-flow { padding-block: 4rem; }
  .reading-flow > * + * { margin-top: 4rem; }
  .chapter-section--soft { margin-left: 0; }
  .chapter-section__head { grid-template-columns: 40px minmax(0, 1fr); gap: .75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .signal-card, .signal-card:nth-child(n) { grid-column: 1; min-height: 210px; }
  .myth { box-shadow: 8px 8px 0 #eaf0f4; }
  .myth h2 { padding-right: 0; }
  .myth__meter { position: static; margin-bottom: 1rem; }
  .step-list li { grid-template-columns: 52px minmax(0, 1fr); }
  .step-list__number { width: 52px; }
  .step-list li:not(:last-child)::after { left: 25px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__line { stroke-dashoffset: 0; }
}