/* wuts.wtf — manifesto edition */
:root {
  --paper: #f4efe4;
  --paper-2: #ebe4d3;
  --ink: #17150f;
  --ink-2: #4a463c;
  --ink-3: #8a8474;
  --rule: #cfc6ae;
  --yellow: #ffcb05;
  --navy: #0d1f4a;
  --silver: #b9bcc2;
  --slate: #0d1f4a;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 64rem;
  --measure: 36rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171511;
    --paper-2: #211e18;
    --ink: #efe9da;
    --ink-2: #c2bba9;
    --ink-3: #8b8574;
    --rule: #3a352a;
  }
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.2rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 0.5em; letter-spacing: -0.015em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
em { font-style: italic; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 72; }
code { font-family: var(--mono); font-size: 0.82em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }
pre { font-family: var(--mono); font-size: 0.85rem; line-height: 1.55; background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem 1.25rem; overflow-x: auto; margin: 0 0 1.5rem; }
pre code { background: none; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-3); }
.small { font-size: 0.95rem; }
.sc { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.95rem; color: var(--ink-3); margin-bottom: 1rem; }
.num { font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--ink-3); font-variation-settings: "opsz" 72; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.18em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 2.75rem; height: 2.75rem; }
.nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; font-size: 1rem; font-style: italic; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 6vw, 4rem); }
.hero .huh { font-family: var(--display); font-weight: 300; font-size: clamp(5rem, 20vw, 15rem); line-height: 0.85; letter-spacing: -0.04em; margin: 0 0 1.5rem; font-variation-settings: "opsz" 72; }
.hero .huh .q { color: var(--yellow); font-weight: 600; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 800px) { .hero-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.hero-meta { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.hero-meta .wordmark { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.22em; color: var(--ink); line-height: 1; padding-right: 1rem; border-right: 1px solid var(--rule); }
.hero-meta .expansion { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 1.05rem; color: var(--ink-3); }
.hero-links { display: flex; gap: 0.75rem 1.75rem; flex-wrap: wrap; margin-top: 1.5rem; font-style: italic; }
.btn { display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-family: var(--display); font-style: normal; font-size: 1rem; letter-spacing: 0.02em; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.ghost { border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }

/* sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section.alt { background: var(--paper-2); }
.center { text-align: center; margin-inline: auto; }

/* photos + illustrations (placeholders until the real files land) */
figure { margin: 0; }
figcaption { font-style: italic; font-size: 1rem; color: var(--ink-3); margin-top: 0.6rem; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); border: 1px solid var(--rule); }
.photo.wide { aspect-ratio: 16 / 9; }
.placeholder { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-3); font-family: var(--mono); font-size: 0.8rem; border: 1px dashed var(--rule); }
.illus { display: grid; place-items: center; aspect-ratio: 1; background: transparent; border: 1px dashed var(--rule); font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--ink-2); letter-spacing: -0.02em; }
.illus small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.7rem; color: var(--ink-3); margin-top: 0.5rem; letter-spacing: 0.08em; }
.illus-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); margin: 2.5rem auto; max-width: 48rem; align-items: end; }
.sticker { display: block; width: 100%; height: auto; max-width: 100%; filter: drop-shadow(0 6px 14px rgba(23,21,15,0.12)); }
.hero-sticker { max-width: 22rem; margin-inline: auto; }
figure.aside { margin-top: 1rem; }
figure.aside .sticker { max-width: 13rem; }
figure.aside figcaption { font-size: 0.95rem; max-width: 13rem; }
.illus-row figcaption { text-align: center; }
@media (max-width: 560px) { .illus-row { gap: 0.75rem; } .illus { font-size: 1.5rem; } }

/* side-by-side */
.cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; gap: 4rem; } .cols.narrow-right { grid-template-columns: 3fr 2fr; } .cols.narrow-left { grid-template-columns: 2fr 3fr; } }

/* manifesto tenets */
.tenets { list-style: none; padding: 0; margin: 2rem 0 0; }
.tenet { display: grid; grid-template-columns: 1fr; gap: 1rem 2.5rem; padding-block: 2.75rem; border-top: 1px solid var(--rule); }
@media (min-width: 800px) {
  .tenet { grid-template-columns: 7.5rem 1fr 13rem; }
  .tenet .mark { grid-row: 1 / span 2; }
  .tenet figure.aside { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; justify-self: end; }
}
/* the illustrated quadrant mark, one per discipline, its letter lit */
.tenet .mark { display: block; width: 7.5rem; height: auto; max-width: 100%; filter: drop-shadow(0 4px 10px rgba(23,21,15,0.14)); }
.tenet-head { display: grid; gap: 0.15rem; }
.tenet h3 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin: 0; line-height: 1; letter-spacing: -0.02em; }
.tenet .discipline { font-family: var(--display); font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; margin: 0.35rem 0 0; font-variation-settings: "opsz" 72; }
.tenet .temptation { font-style: italic; color: var(--ink-3); margin: 0.5rem 0 0; font-size: 1.05rem; }
.tenet .body { max-width: var(--measure); }
.tenet .asks { margin: 0.5rem 0 0.75rem; padding: 0; list-style: none; color: var(--ink-2); font-size: 1.1rem; }
.tenet .asks li { padding-left: 1.4rem; position: relative; margin-bottom: 0.25em; }
.tenet .asks li::before { content: "?"; position: absolute; left: 0; color: var(--yellow); font-family: var(--display); font-weight: 600; }
.tenet .moveon { font-size: 1.05rem; color: var(--ink-2); }
.tenet .moveon b { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--ink-3); }

/* pull quote */
.pull { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0; max-width: 52rem; font-variation-settings: "opsz" 72; }
.pull .q { color: var(--yellow); }

/* faq */
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "?"; color: var(--yellow); font-weight: 600; }
.faq details[open] summary::after { content: "·"; color: var(--ink-3); }
.faq details p { margin-top: 0.75rem; color: var(--ink-2); font-size: 1.1rem; }

/* agents page */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.steps > li { padding-left: 3.25rem; position: relative; }
.steps > li::before { counter-increment: s; content: counter(s, upper-roman) "."; position: absolute; left: 0; top: -0.1rem; font-family: var(--display); font-weight: 300; font-size: 1.75rem; color: var(--ink-3); }
.trap { display: grid; gap: 0.2rem; margin-top: 0.4rem; font-size: 1.05rem; }
.trap span:first-child { color: var(--ink-3); font-style: italic; }
.callout { border-left: 3px solid var(--yellow); padding: 0.25rem 0 0.25rem 1.25rem; margin: 2rem 0; font-style: italic; color: var(--ink-2); }
.callout p { margin: 0; }

/* footer */
footer { padding-block: 3rem 3.5rem; font-size: 1rem; color: var(--ink-3); }
footer .row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
footer a { color: var(--ink-2); }
footer .ascii { font-family: var(--mono); font-size: 0.85rem; white-space: pre; color: var(--ink-3); margin: 0 0 1.25rem; overflow-x: auto; }

/* ---------------------------------------------------------------------------
   v2: scroll reveals, side-scrolling example decks, outcomes, social
   --------------------------------------------------------------------------- */

/* scroll reveal — only hides content when JS is running, so a failed script
   can never leave the page blank */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }

  .hero .huh { animation: huhIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero .huh .q { display: inline-block; animation: qDrop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both; }
  @keyframes huhIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes qDrop { from { opacity: 0; transform: translateY(-0.3em) rotate(-10deg); } to { opacity: 1; transform: none; } }
}

/* how a cycle ends */
.outcomes { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcomes > li { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.outcomes h4 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; margin: 0 0 0.45rem; font-variation-settings: "opsz" 48; }
.outcomes p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* on the posture section, reuse the move-on treatment */
#age .moveon { font-size: 1.05rem; color: var(--ink-2); margin-top: 1.25rem; }
#age .moveon b { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--ink-3); }

/* say hello */
.social { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin: 1.75rem 0 1.25rem; }
.social a {
  display: inline-block; padding: 0.55rem 1.4rem; border: 1px solid var(--rule);
  text-decoration: none; font-family: var(--display); font-size: 1.05rem; color: var(--ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.social a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

/* anchors clear of the top edge */
section[id], li[id] { scroll-margin-top: 1.5rem; }

@media (max-width: 560px) {
  .deck { grid-auto-columns: minmax(14rem, 78vw); }
  .deck-head { align-items: flex-start; }
}

/* hero rewrite: WTF? settling into Huh?, with the "?" holding still */
.huh .caret {
  display: inline-block; width: 0.055em; height: 0.6em; margin-left: 0.03em;
  background: var(--ink-3); vertical-align: baseline; opacity: 0;
}
.huh.typing .caret { opacity: 1; animation: caretBlink 1s steps(1, end) infinite; }
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

@media (max-width: 799px) { .tenet .mark { width: 6rem; } }

/* ---------------------------------------------------------------------------
   v3: the 47-second opening, folded detail, and a bit of life
   --------------------------------------------------------------------------- */

#fast { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
#fast h2 { position: relative; z-index: 0; }
.n47 { position: relative; z-index: 0; }
.n47::after {
  content: ""; position: absolute; z-index: -1; left: -0.05em; right: -0.05em;
  bottom: 0.1em; height: 0.24em; background: var(--yellow); opacity: 0.9;
}

.fast-row { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; gap: 2.25rem 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .fast-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .fast-row { grid-template-columns: repeat(4, 1fr); } }
.fast-row > li { display: flex; flex-direction: column; align-items: flex-start; }
.fast-row .mark { width: 6rem; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(23,21,15,0.14)); }
.fast-row h3 { font-size: clamp(1.7rem, 3vw, 2rem); margin: 0 0 0.2rem; }
.fast-row .line { font-family: var(--display); font-weight: 300; font-size: 1.2rem; line-height: 1.25; color: var(--ink); margin: 0 0 0.55rem; font-variation-settings: "opsz" 48; }
@media (min-width: 1020px) { .fast-row .line { min-height: 2.5em; } }
.fast-row .temptation { font-style: italic; color: var(--ink-3); font-size: 1rem; margin: 0; }

.fast-test { font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.3; max-width: 44rem; margin: 3rem 0 0; font-variation-settings: "opsz" 60; }

.confess { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.confess p { max-width: 34rem; }
.confess .onward { color: var(--ink-2); }
.scroll-cue { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.95rem; color: var(--ink-3); margin: 1.75rem 0 0; display: flex; align-items: center; gap: 0.5rem; }
.scroll-cue::after { content: "\2193"; font-size: 1.15rem; }

/* folded detail */
.more { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 0; font-family: var(--display); font-size: 1.1rem; color: var(--ink-2); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: "+"; display: grid; place-items: center; flex: none;
  width: 1.6rem; height: 1.6rem; border: 1px solid var(--rule); border-radius: 50%;
  font-size: 1.05rem; line-height: 1; color: var(--ink-3);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.more[open] > summary::before { content: "\2013"; }
.more > summary:hover { color: var(--ink); }
.more > summary:hover::before { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.more > summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.more-body { padding-bottom: 0.75rem; }
.more-body > :first-child { margin-top: 0.25rem; }

/* cards respond to the cursor */

@media (prefers-reduced-motion: no-preference) {
  .more[open] .more-body { animation: foldIn 0.34s cubic-bezier(0.22,0.61,0.36,1) both; }
  @keyframes foldIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
  .scroll-cue::after { animation: cueBob 2.1s ease-in-out infinite; }
  @keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  /* stickers drift in from the side, then tilt under the cursor */
  .js .sticker { opacity: 0; transform: translateX(20px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22,0.61,0.36,1); }
  .js .sticker.in { opacity: 1; transform: none; }
  .js figure:hover .sticker.in { transform: rotate(-1.8deg) scale(1.03); }

  /* the quadrant marks click into place */
  .js .mark { opacity: 0; transform: rotate(-14deg) scale(0.88); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.34,1.32,0.64,1); }
  .js .mark.in { opacity: 1; transform: none; }
  .js .disc-sticky:hover .mark.in, .js .fast-row > li:hover .mark.in { transform: rotate(-8deg) scale(1.06); }

  .js figure[data-drift] { will-change: transform; }
}

/* ---------------------------------------------------------------------------
   v4: each discipline gets its own ground, its own shape, and beats that
   come into focus as you scroll. No horizontal scrolling anywhere.
   --------------------------------------------------------------------------- */

.disc { padding-block: clamp(3.5rem, 9vw, 7rem); background: var(--paper); color: var(--ink); }

/* the two dark grounds take the mark's navy, and every token flips with them */
.disc--dark {
  --paper: #0e2050;
  --paper-2: #17306d;
  --ink: #f6f1e4;
  --ink-2: #c9d2e9;
  --ink-3: #8d9bc2;
  --rule: #2c4482;
}
.disc--light { --paper: #f4efe4; --paper-2: #e9e1cd; }
#share.disc--light { --paper: #f8f4ea; --paper-2: #ece4d2; }

/* At night the cream grounds would be a flashbang, and leaving them cream
   while the root ink stays pale is worse: cream text on cream paper. So the
   light disciplines keep their *relative* warmth and lightness against the
   sections around them, but as warm darks, and they redefine the whole token
   set the same way .disc--dark does. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .disc--light {
    --paper: #2b2417;
    --paper-2: #372e1d;
    --ink: #f3ede0;
    --ink-2: #cdc5b0;
    --ink-3: #ada48b;
    --rule: #55492f;
  }
  :root:not([data-theme="light"]) #share.disc--light {
    --paper: #352d1c;
    --paper-2: #413723;
    --ink: #f3ede0;
    --ink-2: #cdc5b0;
    --ink-3: #ada48b;
    --rule: #605236;
  }
}

/* Tinker gets the bench: faint graph paper under everything */
.disc--zigzag {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
}

.disc-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .disc-grid { grid-template-columns: 22rem 1fr; gap: 4.5rem; }
  .disc--right .disc-grid { grid-template-columns: 1fr 22rem; }
  .disc--right .disc-pane { order: 2; }
  .disc--right .disc-stream-wrap { order: 1; }
  .disc-sticky { position: sticky; top: clamp(1.5rem, 9vh, 5rem); }
}

.disc-sticky .mark { width: 7rem; height: auto; margin-bottom: 1.1rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.22)); }
.disc-sticky h3 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0 0 0.3rem; line-height: 1; letter-spacing: -0.02em; }
.disc-sticky .line { font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.2; margin: 0 0 0.6rem; font-variation-settings: "opsz" 60; }
.disc-sticky .temptation { font-style: italic; color: var(--ink-3); font-size: 1.05rem; margin: 0; }
.disc-sticky .more { margin-top: 1.25rem; }
.disc-sticky .asks li::before { color: var(--yellow); }
.disc-count { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.9rem; color: var(--ink-3); margin: 1.5rem 0 0; }
.disc-count .now { color: var(--ink); }

.disc-figure { margin-top: 1.75rem; }
.disc-figure .sticker { max-width: 15rem; }
.disc-figure figcaption { font-size: 0.95rem; max-width: 15rem; }
/* Keep the character beside the reading, even on shorter laptop windows. */
@media (max-height: 940px) and (min-width: 900px) {
  .disc-sticky { top: 1.5rem; }
  .disc-sticky .mark { width: 4.5rem; margin-bottom: 0.75rem; }
  .disc-sticky .sc { margin-bottom: 0.65rem; }
  .disc-sticky h3 { font-size: 2.75rem; }
  .disc-sticky .line { font-size: 1.45rem; }
  .disc-figure { display: flex; align-items: center; gap: 0.85rem; margin-top: 1rem; }
  .disc-figure .sticker { width: 8rem; max-width: 8rem; flex: 0 0 8rem; }
  .disc-figure figcaption { max-width: 10rem; margin-top: 0; font-size: 0.875rem; }
  .disc-count { margin-top: 0.85rem; }
}
/* A very short window needs normal document flow to reach the whole pane. */
@media (max-height: 620px) and (min-width: 900px) {
  .disc-sticky { position: static; }
}

.stream-label { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.95rem; color: var(--ink-3); margin: 0 0 1.5rem; }
.disc-stream { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 5vh, 3.5rem); }

.beat {
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 1.6rem 1.8rem 1.7rem; max-width: 34rem;
}
.beat .tag { font-family: var(--display); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.88rem; color: var(--ink-3); margin: 0 0 0.55rem; }
.beat h4 { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.7rem; font-variation-settings: "opsz" 48; }
.beat p { font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 0.75rem; }
.beat .turn { color: var(--ink); font-style: italic; border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-bottom: 0; }

/* Wonder: the beats wander gently to the right and back */
.disc--indent .beat:nth-child(2n) { margin-left: 1.75rem; }
.disc--indent .beat:nth-child(4n) { margin-left: 3.5rem; }

/* Unpack: a traced line down the margin, its node lighting as you reach it */
.disc--trace .disc-stream { position: relative; padding-left: 2.5rem; }
.disc--trace .disc-stream::before { content: ""; position: absolute; left: 0.6rem; top: 0.75rem; bottom: 0.75rem; width: 1px; background: var(--rule); }
.disc--trace .beat { position: relative; }
.disc--trace .beat::before {
  content: ""; position: absolute; left: -2.28rem; top: 1.9rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 1px solid var(--ink-3); background: var(--paper);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.disc--trace .beat.focus::before { background: var(--yellow); border-color: var(--yellow); transform: scale(1.25); }

/* Tinker: zigzag across the bench */
.disc--zigzag .beat:nth-child(even) { margin-left: auto; }

/* Share: a looser mosaic, widths varying as things get handed on */
.disc--mosaic .beat:nth-child(3n+2) { max-width: 37rem; margin-left: 1.75rem; }
.disc--mosaic .beat:nth-child(3n) { max-width: 29rem; margin-left: 3.5rem; }

/* The active example changes its ground; every example stays readable. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .beat {
    background: transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  }
  .js .beat.focus {
    background: var(--paper-2);
    border-color: var(--ink-3);
    box-shadow: inset 3px 0 0 var(--ink-3);
  }
  .js .beat:hover { border-color: var(--ink-3); }
}
@media (prefers-reduced-motion: reduce) {
  .disc--trace .beat::before { transition: none; }
}

/* how you end up here, as a grid rather than a scroller */
.inherit-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .inherit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .inherit-grid { grid-template-columns: repeat(3, 1fr); } }
.inherit-grid > li { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.inherit-grid h4 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; margin: 0 0 0.4rem; }
.inherit-grid p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

#overlap { padding-block: clamp(3rem, 7vw, 5rem); }

/* the hero's question mark is the drawn sign, not a glyph */
.huh .q-mark {
  display: inline-block; height: 0.62em; width: auto; vertical-align: baseline;
  margin-left: 0.06em; transform: translateY(0.06em);
  filter: drop-shadow(0 5px 12px rgba(23,21,15,0.18));
}
@media (prefers-reduced-motion: no-preference) {
  .huh .q-mark { animation: qDrop 0.9s cubic-bezier(0.34,1.56,0.64,1) 0.3s both; }
}

/* Chesterton's fence gets the picture it deserves */
.fence-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .fence-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } }
.fence-figure { text-align: center; }
.fence-figure .sticker { width: min(100%, 20rem); margin-inline: auto; filter: drop-shadow(0 14px 30px rgba(23,21,15,0.18)); }
.fence-figure figcaption { max-width: 20rem; margin-inline: auto; }
.fence-text > .aside { margin-top: 2rem; }

/* outcome stamps */
.outcomes > li { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.outcomes .stamp { display: block; height: 5rem; width: auto; max-width: 100%; margin: 0 0 0.9rem; filter: drop-shadow(0 4px 9px rgba(23,21,15,0.16)); }
@media (prefers-reduced-motion: no-preference) {
  .outcomes .stamp { transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1); }
  .outcomes > li:hover .stamp { transform: rotate(-5deg) scale(1.07); }
}

/* the drawn question sign, introducing the report-back invitation */
.say-q { display: block; width: 5.5rem; height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 6px 14px rgba(23,21,15,0.18)); }

/* the stamp says the word; the heading stays for screen readers and outlines */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* bigger, now that the artwork carries the label on its own */
.outcomes .stamp { height: 7rem; margin-bottom: 1.1rem; }

/* one signal, at a size you can actually see */
.signal-figure { margin: 3rem auto; text-align: center; max-width: 22rem; }
.signal-figure .sticker { width: min(100%, 17rem); margin-inline: auto; }
.signal-figure figcaption { text-align: center; }

/* the discipline's own guidance, now open at the top of its column */
.disc-intro { max-width: 34rem; margin-bottom: 2.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.disc-intro .lead-in { font-family: var(--display); font-weight: 300; font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.35; color: var(--ink); margin: 0 0 1.1rem; font-variation-settings: "opsz" 48; }
.disc-intro p { color: var(--ink-2); }
.disc-intro .asks { margin: 0 0 1.1rem; padding: 0; list-style: none; color: var(--ink-2); font-size: 1.08rem; }
.disc-intro .asks li { padding-left: 1.4rem; position: relative; margin-bottom: 0.3em; }
.disc-intro .asks li::before { content: "?"; position: absolute; left: 0; color: var(--yellow); font-family: var(--display); font-weight: 600; }
.disc-intro .moveon { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 0; }
.disc-intro .moveon b { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: 0.1em; color: var(--ink-3); }

/* FAFO: two toolboxes, wide enough that the labels are the joke */
.fafo-figure { margin: 3rem auto 0; max-width: 52rem; text-align: center; }
.fafo-figure .sticker { width: 100%; }
.fafo-figure figcaption { text-align: center; max-width: 34rem; margin-inline: auto; }
