/* Worth Building — editorial field-catalogue.
   Warm paper, ink, one serif with character. No dark mode: this page is paper. */

:root {
  --paper: oklch(97% 0.012 85);
  --paper-deep: oklch(94.5% 0.018 85);
  --ink: oklch(24% 0.02 60);
  --ink-soft: oklch(42% 0.02 60);
  --moss: oklch(48% 0.09 145);
  --clay: oklch(55% 0.11 45);
  --rule: oklch(85% 0.02 85);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-base: clamp(1.02rem, 0.95rem + 0.35vw, 1.16rem);
  --text-hero: clamp(2.2rem, 1.2rem + 4.5vw, 4.6rem);
  --text-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);

  --measure: 42rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background:
    radial-gradient(120% 60% at 50% 0%, oklch(98.5% 0.01 90), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-base);
  font-weight: 340;
  line-height: 1.65;
  padding: 0 var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  max-width: none;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 560;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  width: 22px;
  height: 22px;
  display: block;
  transform: translateY(-1px);
}

.wordmark .wm-text { color: var(--ink); transition: opacity 0.2s; }
.wordmark:hover .wm-text { opacity: 0.8; }

.masthead nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.masthead nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--moss);
  border-color: var(--moss);
}

/* ---------- hero ---------- */

.hero {
  max-width: 58rem;
  margin: 0 auto;
  padding: calc(var(--space-section) * 0.55) 0 calc(var(--space-section) * 0.8);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.hero-soft { color: var(--ink-soft); }

.hero-yes {
  color: var(--moss);
}

.hero-strike {
  color: var(--ink-soft);
}

.dek {
  margin-top: 2rem;
  max-width: var(--measure);
  font-size: calc(var(--text-base) * 1.12);
  color: var(--ink-soft);
}

/* ---------- the phone seed: the hand-drawn one (a quiet motif, not a control) ----------
   A tiny seed rests in the sentence, just after "worth building.", like something
   that fell out of the words. Desktop shows nothing; "Curious? Open one." stays the
   control everywhere. Button = function. Seed = meaning. */
.hero-sprout { display: none; }

@media (max-width: 639.98px) {
  .hero-sprout {
    display: block;
    width: 30px; height: 30px;
    margin: 1.5rem auto 0;       /* centered, below the heading */
    line-height: 0;
    transition: width 480ms cubic-bezier(.34,1.4,.5,1),
                height 480ms cubic-bezier(.34,1.4,.5,1);
  }
  /* when it sprouts, the whole thing grows so you can actually read the shoot */
  .hero-sprout.reacting,
  .hero-sprout.grown {
    width: 52px; height: 52px;
  }
  .hero-sprout svg {
    width: 100%; height: 100%; display: block;
    overflow: visible;
    transform: rotate(12deg);    /* resting like a tiny physical thing */
    transform-origin: 50px 72px;
  }
  .hero-sprout.reacting svg,
  .hero-sprout.grown svg { transform: rotate(0deg); }   /* stands upright as it grows */

  /* the sprout parts start invisible; the seed lies there until it wakes */
  .hs-crack { opacity: 0; }
  .hs-stem  { stroke-dasharray: 52; stroke-dashoffset: 52; opacity: 0; }
  .hs-leafL { transform: scale(0); transform-origin: 50px 58px; opacity: 0; }
  .hs-leafR { transform: scale(0); transform-origin: 50px 52px; opacity: 0; }
  .hs-seed  { transform-origin: 50px 72px; }

  /* on load: one tiny sequence — roll, crack, a 4px shoot — then it stops. no loop. */
  .hero-sprout.woke .hs-seed  { animation: hs-roll  900ms cubic-bezier(.34,1.3,.5,1) both; }
  .hero-sprout.woke .hs-crack { animation: hs-crack 900ms ease-out both; }
  .hero-sprout.woke .hs-stem  { animation: hs-shoot 900ms cubic-bezier(.5,0,.2,1) both; }

  /* on CTA tap: the seed answers — crack, full sprout, two leaves, settle — as emotional feedback */
  .hero-sprout.reacting .hs-seed  { animation: hs-press 820ms cubic-bezier(.34,1.4,.5,1) both; }
  .hero-sprout.reacting .hs-crack { animation: hs-crack 820ms ease-out both; }
  .hero-sprout.reacting .hs-stem  { animation: hs-stem-full 820ms cubic-bezier(.5,0,.2,1) both; }
  .hero-sprout.reacting .hs-leafL { animation: hs-leaf 720ms cubic-bezier(.34,1.56,.64,1) 0.40s both; }
  .hero-sprout.reacting .hs-leafR { animation: hs-leaf 720ms cubic-bezier(.34,1.56,.64,1) 0.48s both; }

  /* grown: the settled end-state, held for the life of the tab (no animation) */
  .hero-sprout.grown .hs-seed  { opacity: 0; }
  .hero-sprout.grown .hs-crack { opacity: 0.5; }
  .hero-sprout.grown .hs-stem  { stroke-dashoffset: 0; opacity: 1; }
  .hero-sprout.grown .hs-leafL,
  .hero-sprout.grown .hs-leafR { transform: scale(1); opacity: 1; }

  /* every tap after it's grown: the plant just *notices* — the newest leaf lifts a
     couple of degrees and the stem extends a hair, then settles. no bounce, no show. */
  .hero-sprout.grown.pop .hs-leafR { animation: hs-leaf-notice 200ms ease-out; transform-origin: 50px 56px; }
  .hero-sprout.grown.pop .hs-stem  { animation: hs-stem-notice 200ms ease-out; transform-origin: 50px 86px; }
}
@keyframes hs-leaf-notice {
  0%   { transform: scale(1) rotate(0deg); }
  45%  { transform: scale(1.03) rotate(-2deg); }   /* the leaf lifts */
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes hs-stem-notice {
  0%   { transform: scaleY(1); }
  45%  { transform: scaleY(1.02); }                /* a ~1px extension */
  100% { transform: scaleY(1); }
}

/* load: the seed rolls a touch and a small shoot appears (4px), then rests */
@keyframes hs-roll {
  0%   { transform: rotate(0deg); }
  35%  { transform: rotate(-9deg) translateX(-1px); }   /* slight roll */
  70%  { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}
@keyframes hs-crack {
  0%, 45% { opacity: 0; }
  60%     { opacity: 1; }
  100%    { opacity: 0.5; }
}
@keyframes hs-shoot {   /* only a small shoot on load */
  0%, 55% { stroke-dashoffset: 52; opacity: 0; }
  65%     { opacity: 1; }
  100%    { stroke-dashoffset: 47; opacity: 1; }          /* ~4px of stem */
}

/* tap: the full answer — press into soil, crack, whole stem, one leaf, settle */
@keyframes hs-press {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  24%  { transform: translateY(3px) scale(1.06, 0.82); }
  48%  { transform: translateY(1px) scale(0.98, 1.04); }
  72%  { transform: translateY(0) scale(0.5); opacity: 0.6; }
  100% { transform: translateY(-1px) scale(0); opacity: 0; }
}
@keyframes hs-stem-full {
  0%, 30% { stroke-dashoffset: 52; opacity: 0; }
  40%     { opacity: 1; }
  100%    { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hs-leaf {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  /* Anton's house rule: slow it, don't freeze it */
  .hero-sprout.woke .hs-seed,
  .hero-sprout.woke .hs-crack,
  .hero-sprout.woke .hs-stem { animation-duration: 1900ms; }
  .hero-sprout.reacting .hs-seed,
  .hero-sprout.reacting .hs-crack,
  .hero-sprout.reacting .hs-stem { animation-duration: 1500ms; }
  .hero-sprout.reacting .hs-leaf { animation-delay: 0.7s; animation-duration: 1500ms; }
}

/* ---------- sections ---------- */

.prose-section,
.catalogue {
  max-width: 58rem;
  margin: 0 auto;
  padding: calc(var(--space-section) * 0.7) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-num {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--clay);
}

.section-head h2 {
  font-size: var(--text-h2);
  font-weight: 420;
  letter-spacing: -0.01em;
}

.prose {
  max-width: var(--measure);
}

.prose p + p { margin-top: 1.2em; }

.prose em { font-style: italic; }
.prose strong { font-weight: 560; color: var(--moss); }

/* ---------- catalogue ---------- */

.catalogue-note {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

/* the front of the index is the curated part. the rest waits behind one quiet link. */
.entries li.idx { display: none; }
body.all .entries li.idx { display: grid; }
.whole { margin-top: 3rem; text-align: center; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }
.whole a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.whole a:hover { color: var(--ink); }

.cluster { margin-bottom: 3.8rem; }
.cluster:last-child { margin-bottom: 0; }

.cluster h3 {
  font-size: var(--text-h3);
  font-weight: 560;
}

.cluster-num {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  display: inline-block;
  min-width: 1.6rem;
  margin-right: 0.9rem;
}

.cluster-intro {
  margin: 0.5rem 0 1.6rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-style: italic;
}

.entries {
  list-style: none;
}

.entries li {
  padding: 0.75rem 0 0.75rem 1.4rem;
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) 1fr;
  gap: 0.35rem 2rem;
  align-items: baseline;
  transition: background-color 150ms ease;
}

.entries li:hover {
  background: var(--paper-deep);
}

.entries li + li { border-top: 1px solid var(--rule); }

.domain {
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--moss);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 150ms ease;
}

a.domain:hover,
a.domain:focus-visible {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gloss {
  color: var(--ink);
  max-width: var(--measure);
}

/* the catalogue stands centred: each category's name and intro, and every entry as a stack,
   the domain above its gloss, on one axis */
.cluster { text-align: center; }
.cluster-intro { margin-left: auto; margin-right: auto; }
.entries li { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 0; padding-right: 0; justify-items: center; }
.gloss { margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .entries { margin-left: 0; }
  .cluster-intro { margin-left: auto; }
}

/* ---------- essays ---------- */

.essay-list {
  list-style: none;
  max-width: var(--measure);
}

.essay-list li + li { margin-top: 2rem; }

.essay-list a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}

.essay-list h3 {
  font-size: var(--text-h3);
  font-weight: 560;
  transition: color 150ms ease;
}

.essay-list a:hover h3,
.essay-list a:focus-visible h3 {
  color: var(--moss);
}

.essay-list .essay-dek {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.essay {
  max-width: 58rem;
  margin: 0 auto;
}

.essay-head {
  max-width: var(--measure);
  padding: calc(var(--space-section) * 0.5) 0 3rem;
}

.essay-head h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 420;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.essay-head .dek { margin-top: 1.4rem; font-style: italic; }

.essay-body {
  max-width: var(--measure);
  padding-bottom: 3rem;
}

.essay-body p + p { margin-top: 1.2em; }

.essay-body h2 {
  font-size: calc(var(--text-h3) * 0.95);
  font-weight: 560;
  margin: 2.4em 0 0.8em;
  color: var(--moss);
}

.essay-body > p:first-child::first-letter {
  font-size: 3.2em;
  font-weight: 420;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--moss);
}

.essay-foot {
  max-width: var(--measure);
  padding-bottom: calc(var(--space-section) * 0.6);
}

.back-link {
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--moss);
}

/* ---------- contact & footer ---------- */

/* dictionary words: same ink as the surrounding text, zigzag underline */
.defword {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease, color 150ms ease;
}

.defword:hover,
.defword:focus-visible {
  color: var(--clay);
  text-decoration-color: var(--clay);
}

.contact-link {
  color: var(--moss);
  font-weight: 560;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--clay);
}

.contact-soft { color: var(--ink-soft); font-style: italic; }

/* emphasis inside an italic line goes upright, per book convention */
.contact-soft em { font-style: normal; }

.colophon {
  max-width: 58rem;
  margin: 0 auto;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.colophon-soft { margin-top: 0.4rem; opacity: 0.75; }

/* ---------- focus ---------- */

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* hero flows straight into the first section, no rule */
#idea { border-top: none; }
#foundation { border-top: none; padding-top: 0; }

/* contact lives in the colophon now */
.colophon .contact-line {
  font-family: var(--serif);
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.colophon .contact-soft {
  font-family: var(--serif);
  font-size: calc(var(--text-base) * 0.92);
  margin-bottom: 1.8rem;
}

/* the receipt under the hero */
.receipt {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.colophon .fineprint {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  opacity: 0.75;
}


.colophon .colophon-right{margin-top:3.5rem;text-align:left;margin-left:0;max-width:34rem}
.colophon .asterisk{font-size:.75em;opacity:.7;margin-left:.1em}
.colophon .who{margin-top:1.2rem;font-size:.72rem;opacity:.7}
.colophon .wb-copyright{margin-top:2.4rem;font-size:.6rem;line-height:1.8;opacity:.55}
@media(max-width:640px){.colophon .colophon-right{text-align:left;margin-left:0;margin-top:2.5rem}}

/* The open questions: the destination, not entry thirteen */
.cluster-questions{margin-top:5rem;padding:2.6rem 0 0;border-top:3px double var(--rule);position:relative}
.questions-kicker{font-family:var(--sans);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--moss);margin:0 0 .6rem}
.cluster-questions h3{font-size:calc(var(--text-h3) * 1.45);font-weight:420;letter-spacing:-.01em}
.cluster-questions .cluster-intro{font-style:normal;font-size:1.12rem;color:var(--ink);max-width:var(--measure)}
.cluster-questions .entries li{padding-top:1rem;padding-bottom:1rem}
.cluster-questions .gloss{font-size:1.06rem}



/* The one door: open an entry at random */
.start-line{margin:1.6rem 0 .55rem;display:flex;align-items:center;gap:.9rem;flex-wrap:wrap}
.start-hint{font-family:var(--sans);font-size:.78rem;color:var(--ink-soft)}
.open-random .arrow{display:inline-block;margin-left:.3rem;transition:transform .15s}
.open-random:hover .arrow{transform:translateX(3px)}
.open-random{display:inline-block;font-family:'Inter',-apple-system,'Helvetica Neue',var(--sans);font-weight:600;font-size:.92rem;letter-spacing:-.02em;color:#f5f5f7;text-decoration:none;border:1px solid var(--rule);border-radius:999px;padding:.6rem 1.2rem;background:var(--moss);border-color:var(--moss);transition:border-color .15s,transform .15s,filter .15s}
.open-random:hover{filter:brightness(1.08);transform:translateY(-1px)}
/* a black pill ring around the button, with a sliver of paper between (24 Aug) */
.open-random{box-shadow:0 0 0 5px var(--paper),0 0 0 6.5px var(--ink)}
/* no browser tap-flash: the press feedback is ours (25 Aug) */
.open-random{-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.open-random:active{transform:translateY(1px) scale(.985)}

/* a neon tron ray rides the black ring (24 Aug) */
@property --tron{syntax:'<angle>';inherits:false;initial-value:0deg}
.open-random{position:relative}
.open-random::before{
  content:"";position:absolute;inset:-8px;border-radius:999px;padding:2.5px;
  background:conic-gradient(from var(--tron), transparent 0deg 286deg,
    rgba(57,255,20,.25) 306deg, #39ff14 334deg, #d6ffcf 346deg, #39ff14 352deg, transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  filter:drop-shadow(0 0 5px rgba(57,255,20,.8));
  animation:tron 3.4s linear infinite;
  pointer-events:none;
}
@keyframes tron{to{--tron:360deg}}
@media (prefers-reduced-motion: reduce){.open-random::before{animation-duration:10s}}
.hero{padding-bottom:calc(var(--space-section) * 0.22)}

/* button editor (desktop placement as set in the editor; phones get their own) */
@media(min-width:640px){
  .start-line{margin:-33px 0 22px 121px}
  .open-random{font-size:.68rem;font-weight:600;letter-spacing:.03em;padding:.34rem .73rem}
}
@media(max-width:639.98px){
  .start-line{margin:1rem 0 1.2rem 0}
  .open-random{font-size:.82rem;font-weight:600;padding:.48rem .9rem}
}
/* The scuffle: r bothers O, O shoves back, r behaves */
.org-word .org-o,.org-word .org-r{display:inline-block;transform-origin:50% 88%}
.scuffle .org-r{animation:org-r-scuffle 3.2s cubic-bezier(.33,1,.68,1) both}
.scuffle .org-o{animation:org-o-shove 3.2s cubic-bezier(.33,1,.68,1) both}
@keyframes org-r-scuffle{
  0%{transform:none}
  8%{transform:translateX(-2.5px) rotate(-11deg)}
  14%{transform:none}
  22%{transform:translateX(-2.5px) rotate(-11deg)}
  28%{transform:none}
  36%{transform:translateX(-3px) rotate(-14deg)}
  44%{transform:translateX(-2px) rotate(-8deg)}
  52%{transform:translateX(6px) rotate(16deg)}
  62%{transform:translateX(3.5px) rotate(7deg)}
  74%{transform:translateX(1.5px) rotate(2deg)}
  88%{transform:translateX(.4px)}
  100%{transform:none}
}
@keyframes org-o-shove{
  0%,40%{transform:none}
  46%{transform:translateX(-1.2px) scaleX(.96)}
  52%{transform:translateX(2.8px) scaleX(1.07)}
  60%{transform:translateX(.6px)}
  68%,100%{transform:none}
}
@media (prefers-reduced-motion: reduce){
  .scuffle .org-r{animation-duration:4.8s}
  .scuffle .org-o{animation-duration:4.8s}
}

/* The jump: r is just excited. no reason. */
.jump .org-r{animation:org-r-jump 1.6s cubic-bezier(.34,1.56,.5,1) both}
@keyframes org-r-jump{
  0%{transform:none}
  12%{transform:translateY(1px) scaleY(.86) scaleX(1.1)}
  26%{transform:translateY(-3.4px) scaleY(1.07) scaleX(.95)}
  38%{transform:translateY(0) scaleY(.9) scaleX(1.08)}
  50%{transform:translateY(-2.4px) rotate(4deg)}
  62%{transform:translateY(0) scaleY(.93) scaleX(1.05)}
  72%{transform:translateY(-1.2px) rotate(-3deg)}
  82%{transform:translateY(0) scaleY(.97)}
  100%{transform:none}
}
@media (prefers-reduced-motion: reduce){
  .jump .org-r{animation-duration:3.4s}
}

/* phones: the masthead floats free, no rule beneath it */
@media(max-width:639.98px){
  .masthead{border-bottom:none}
  .masthead .mark{display:none}
  .hero{padding-top:calc(var(--space-section) * 0.35)}
}

/* The rescue: r loses its footing; O pays out a rope over its right shoulder —
   it dangles, sways, goes taut at the catch, then shortens in step with the haul */
.org-word{position:relative}
.org-word .rope{position:absolute;left:.78em;top:.56em;width:1.5px;height:0;background:var(--ink);border-radius:1px;opacity:0;transform-origin:top center;pointer-events:none}
.org-word .rope::after{content:"";position:absolute;left:50%;top:100%;width:2.5px;height:2.5px;margin-left:-1.25px;border-radius:50%;background:var(--ink);transform-origin:top center}
.rescue .org-r{animation:org-r-fall 6.4s cubic-bezier(.36,1.2,.5,1) both}
.rescue .org-o{animation:org-o-haul 6.4s ease-in-out both}
.rescue .rope{animation:org-rope 6.4s ease-in-out both}
.rescue .rope::after{animation:org-rope-tail 6.4s ease-in-out both}
@keyframes org-r-fall{
  0%{transform:none}
  4%{transform:rotate(9deg)}
  7%{transform:rotate(-7deg)}
  11.5%{transform:translateY(.08em) rotate(22deg)}
  19%{transform:translateY(1.4em) rotate(86deg)}
  32%{transform:translateY(1.4em) rotate(84deg)}
  34%{transform:translateY(1.45em) rotate(88deg)}
  36%{transform:translateY(1.36em) rotate(80deg)}
  40%{transform:translateY(.94em) rotate(55deg)}
  43%{transform:translateY(1.06em) rotate(61deg)}
  49%{transform:translateY(.51em) rotate(28deg)}
  52%{transform:translateY(.61em) rotate(33deg)}
  58%{transform:translateY(.09em) rotate(5deg)}
  63%{transform:translateY(-.05em) rotate(-4deg)}
  68%{transform:translateY(.01em) rotate(1deg)}
  72%{transform:none}
  /* the hug: g falls into n, holds a beat too long, then lets go with a soft decaying wobble */
  75%{transform:translateX(-2px) rotate(-6deg)}
  79%,87%{transform:translateX(-3.6px) rotate(-12deg) scaleX(.97)}   /* the squeeze, held */
  90%{transform:translateX(1.4px) rotate(4deg)}                       /* releases, overshoots out */
  93%{transform:translateX(-1.1px) rotate(-2.6deg)}                   /* wobble back */
  95.5%{transform:translateX(.7px) rotate(1.4deg)}                    /* smaller */
  97.5%{transform:translateX(-.35px) rotate(-.7deg)}                  /* smaller still */
  100%{transform:translateX(.12px) rotate(.2deg)}                     /* not quite dead center — entropy */
}
@keyframes org-o-haul{
  0%,14%{transform:none}
  19%{transform:translateX(1.4px) rotate(7deg)}
  23%{transform:translateX(1px) rotate(11deg) translateY(.05em)}
  34%{transform:translateX(1px) rotate(9deg) translateY(.04em)}
  39%{transform:translateX(-1.8px) rotate(-5deg)}
  43%{transform:translateX(.4px) rotate(2deg)}
  47.5%{transform:translateX(-2.2px) rotate(-7deg)}
  52%{transform:translateX(0) rotate(0deg)}
  58%{transform:translateX(-2px) rotate(-5deg)}
  63%{transform:rotate(3deg)}
  72%{transform:none}
  /* the hug, from n's side: lean in, squeeze, linger, then settle with its own little wobble */
  75%{transform:translateX(1.5px) rotate(4deg)}
  79%,87%{transform:translateX(2.9px) rotate(9deg) scaleX(.97)}       /* squeeze, held */
  91%{transform:translateX(-1px) rotate(-2.4deg)}                     /* release, slight recoil */
  94%{transform:translateX(.6px) rotate(1.2deg)}                      /* wobble */
  96.5%{transform:translateX(-.3px) rotate(-.5deg)}
  100%{transform:translateX(-.1px) rotate(-.15deg)}                   /* rests just off-center */
}
/* the rope: pays out, sways loose, leans right and goes taut at the catch,
   then its length tracks the r's rise exactly — slips and all */
@keyframes org-rope{
  0%,19%{opacity:0;height:0;transform:rotate(0deg)}
  21.5%{opacity:.9;height:.5em;transform:rotate(-20deg)}      /* flung out loose */
  24%{opacity:.9;height:.72em;transform:rotate(11deg)}         /* swings back the other way */
  27%{opacity:.9;height:.62em;transform:rotate(-16deg)}        /* and again — free swinging */
  30%{opacity:.9;height:.9em;transform:rotate(8deg)}
  32%{opacity:.9;height:1.2em;transform:rotate(-12deg)}
  34%{opacity:.9;height:2.05em;transform:rotate(-18deg)}       /* snaps taut, overshoots long */
  35.5%{opacity:.9;height:1.7em;transform:rotate(-8deg)}       /* recoils from the snap */
  37.5%{opacity:.9;height:1.92em;transform:rotate(-15deg)}     /* bounces back out */
  40%{opacity:.9;height:1.3em;transform:rotate(-9deg)}
  43%{opacity:.9;height:1.55em;transform:rotate(-14deg)}       /* still slack, swaying */
  46%{opacity:.9;height:1.05em;transform:rotate(-6deg)}
  49%{opacity:.9;height:.72em;transform:rotate(-12deg)}
  52%{opacity:.9;height:.86em;transform:rotate(-4deg)}         /* wobbles as it reels in */
  55%{opacity:.9;height:.5em;transform:rotate(-8deg)}
  58%{opacity:.9;height:.36em;transform:rotate(-2deg)}
  62%{opacity:.9;height:.26em;transform:rotate(-4deg)}
  66%,100%{opacity:0;height:0;transform:rotate(0deg)}
}
/* the hook at the tip: swings free while the rope dangles, then locks on */
@keyframes org-rope-tail{
  0%,19%{transform:rotate(0deg)}
  21.5%{transform:rotate(34deg)}       /* hook flung wide */
  24%{transform:rotate(-28deg)}         /* whips back */
  27%{transform:rotate(22deg)}          /* keeps swinging free */
  30%{transform:rotate(-16deg)}
  33%{transform:rotate(11deg)}
  36%{transform:rotate(-7deg)}          /* settling as it goes taut */
  40%{transform:rotate(4deg)}
  45%{transform:rotate(-2deg)}
  50%,100%{transform:rotate(0deg)}
}

@media (prefers-reduced-motion: reduce){
  .rescue .org-r,.rescue .org-o,.rescue .rope,.rescue .rope::after{animation-duration:10s}
}

/* the idea section sits closer to the hero (layout pass, 24 Aug) */
#idea{padding-top:calc(var(--space-section) * 0.3)}

/* masthead divider (from the editor, 24 Aug): a quiet pill under the title —
   it spans the letters, not the icon, inset a touch at both ends */
.masthead{border-bottom:none}
.wordmark .wm-text{position:relative}
.wordmark .wm-text::after{content:"";position:absolute;left:.2em;right:.2em;bottom:-.62em;height:.5em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 1 Q50 13 99 1' fill='none' stroke='%233f7a4a' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat}
/* phones: the arc sits closer to the title, and thinner */
@media(max-width:639.98px){.wordmark .wm-text::after{bottom:-.42em;height:.34em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M1 1 Q50 13 99 1' fill='none' stroke='%233f7a4a' stroke-width='1.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E")}}

/* phones: the pill centers, and the first hero line stays one line (24 Aug) */
@media(max-width:639.98px){
  .start-line{text-align:center;justify-content:center}
  /* three big lines, centered, edge to edge: the first thing a curious reader sees */
  .masthead{justify-content:center}
  .hero{text-align:center}
  .hero h1{font-size:min(calc((100vw - 20px) / 9.4), 3.1rem);max-width:none;margin-left:-10px;margin-right:-10px}
  /* the strike line drops a little, a beat after the first line */
  .hero-strike{display:inline-block;margin-top:.35em}
  /* hero rhythm on phones (tuned) */
  .dek{margin-top:2.30rem}
  .start-line{margin:3.35rem 0 1.10rem}
  .receipt{margin-top:4.10rem}
}

/* the entrance of an institution: centered landing, from the archive prototype (24 Aug).
   Desktop only; the rest of the page stays exactly as it was. */
@media(min-width:980px){
  .hero{min-height:78vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding-top:0}
  .hero h1{font-size:calc(var(--text-hero) * 1.15)}
  .hero .dek{margin-left:auto;margin-right:auto;max-width:34rem}
  .start-line{margin:2.2rem 0 1.4rem !important;justify-content:center}
  .hero .receipt{margin-left:auto;margin-right:auto}
  #idea .prose{margin:0 auto}
}

/* ---- the wordmark reads "Worth Building" everywhere; animation on n and g ---- */
.org-tail{display:none}
.wm-the{display:none}
.bld-n,.bld-g{display:inline-block;transform-origin:50% 88%;position:relative}
/* scuffle: g pesters n, n shoves back (g plays the r's part, n plays the O's) */
.scuffle .bld-g{animation:org-r-scuffle 3.2s cubic-bezier(.33,1,.68,1) both}
.scuffle .bld-n{animation:org-o-shove 3.2s cubic-bezier(.33,1,.68,1) both}
/* jump: g is just excited */
.jump .bld-g{animation:org-r-jump 1.6s cubic-bezier(.34,1.56,.5,1) both}
/* rescue: g falls, n hauls it back on a rope */
.rescue .bld-g{animation:org-r-fall 6.4s cubic-bezier(.36,1.2,.5,1) both}
.rescue .bld-n{animation:org-o-haul 6.4s ease-in-out both}
.bld-n .rope-m{position:absolute;left:.72em;top:1.02em;width:1.5px;height:0;background:var(--ink);border-radius:1px;opacity:0;transform-origin:top center;pointer-events:none}
.bld-n .rope-m::after{content:"";position:absolute;left:50%;top:100%;width:2.5px;height:2.5px;margin-left:-1.25px;border-radius:50%;background:var(--ink);transform-origin:top center}
.rescue .bld-n .rope-m{animation:org-rope 6.4s ease-in-out both}
.rescue .bld-n .rope-m::after{animation:org-rope-tail 6.4s ease-in-out both}

@media (prefers-reduced-motion: reduce){
  .scuffle .bld-g,.scuffle .bld-n{animation-duration:4.8s}
  .jump .bld-g{animation-duration:3.4s}
  .rescue .bld-g,.rescue .bld-n,.rescue .bld-n .rope-m,.rescue .bld-n .rope-m::after{animation-duration:10s}
}

/* the culmination: the synthesis before the open questions */
.culmination{max-width:58rem;margin:0 auto;padding:calc(var(--space-section) * 0.6) 0 calc(var(--space-section) * 0.2);border-top:1px solid var(--rule);text-align:center}
.culmination .questions-kicker{margin-bottom:1.4rem}
.culmination-line{font-family:var(--serif);font-weight:340;font-size:clamp(1.7rem,1.1rem+2.6vw,2.9rem);line-height:1.2;letter-spacing:-.01em;max-width:24ch;margin:0 auto;color:var(--ink)}
.culmination-line em{font-style:italic;color:var(--moss)}
/* the open-questions cluster now follows the culmination without its own top rule */
.cluster-questions{border-top:none !important;padding-top:calc(var(--space-section) * 0.4)}

/* hero rhythm, desktop (29 Aug): statement, small clarification, action. the argument waits below the fold. */
#idea .receipt{max-width:var(--measure);margin:0 auto 1.6rem}
@media(max-width:639.98px){#idea .receipt{margin-top:0}}
@media(min-width:980px){
  .hero{min-height:100svh;max-width:64rem;justify-content:center;padding-bottom:176px}   /* the block sits 88px above true centre; the logo stays put */
  .hero h1{max-width:none;line-height:.95}
  .hero h1 br{display:none}
  .hero-yes{display:block;font-size:clamp(4.5rem,6.4vw,6rem);line-height:.95;letter-spacing:-.025em}
  .hero-strike{display:block;font-size:clamp(3.4rem,5.2vw,4.9rem);line-height:1;margin-top:.1em;letter-spacing:-.02em;color:oklch(31% 0.018 60)}
  .hero .dek{margin-top:2.9rem;font-size:calc(var(--text-base) * 1.04);color:oklch(46% 0.02 60);max-width:34rem}
  .start-line{margin:1.5rem 0 0 !important}
  #idea .receipt{text-align:center}
}

/* desktop: "Open one" opens. a green aperture from the button's centre, with a thin paper edge, fills the view;
   the project appears beneath it. an aperture, not a bubble: flat fill, one ease, no glow, no bounce. */
#wb-aperture,#wb-aperture-rim{position:fixed;inset:0;z-index:9998;pointer-events:none;clip-path:circle(0px at var(--ax,50%) var(--ay,50%));transition:clip-path 300ms cubic-bezier(.4,0,.2,1)}
#wb-aperture{background:var(--moss);z-index:9999}
#wb-aperture-rim{background:var(--paper)}
body.opening #wb-aperture{clip-path:circle(150vmax at var(--ax,50%) var(--ay,50%))}
body.opening #wb-aperture-rim{clip-path:circle(calc(150vmax + 3px) at var(--ax,50%) var(--ay,50%))}
.open-random.pressing{transform:scale(.97);transition:transform 60ms ease}
@media(prefers-reduced-motion:reduce){#wb-aperture,#wb-aperture-rim{transition-duration:560ms}}

/* papers: the same wordmark at the bottom as at the top (mark and name), not stretched, not in the colophon's sans */
.colophon .wordmark{display:inline-flex;width:auto;font-family:var(--serif);font-size:1.15rem;font-weight:560;color:var(--ink)}
