/* Animal Atlas — bright, friendly, uncluttered. --c / --c-dark / --c-light are set per animal on profile pages. */
:root { --paper: #F6F1E7; --ink: #1D1B16; --muted: #5F5A4E; --line: rgba(29, 27, 22, .14); --c: #F97316; --c-dark: #C2410C; --c-light: #FDBA74;
  --f: "Outfit", system-ui, sans-serif; --gut: clamp(18px, 4vw, 56px); --top: 64px; }
* { box-sizing: border-box; }
html { scroll-padding-top: var(--top); }
body { margin: 0; font: 400 1.0625rem/1.55 var(--f); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, p, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); }
.brand { font-weight: 700; text-decoration: none; padding: 10px 0; }
.tag { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .9375rem; max-width: 60ch; margin: 0 auto; padding: 0 var(--gut) 56px; text-align: center; text-wrap: balance; }
.btn { display: inline-block; margin-top: 18px; padding: 12px 20px; border-radius: 99px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }

/* home */
.intro { padding: clamp(36px, 8vw, 96px) var(--gut) clamp(24px, 4vw, 48px); text-align: center; }
.intro h1 { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.intro p { margin-top: 16px; font-size: clamp(1.0625rem, 1.8vw, 1.375rem); color: var(--muted); text-wrap: balance; }
.grid { list-style: none; padding: 0 var(--gut) 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; max-width: 1400px; margin: 0 auto; }
.grid a { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 14px 16px 16px; border-radius: 22px; background: #FFFDF8; border: 1px solid var(--line); text-decoration: none; transition: translate .25s, box-shadow .25s; }
.grid a:hover { translate: 0 -4px; box-shadow: 0 14px 30px rgba(29, 27, 22, .1); }
.grid canvas { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; display: block; }
.grid .num { grid-row: span 2; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.grid .name { font-weight: 600; font-size: 1.125rem; line-height: 1.2; }
.grid .place { font-size: .875rem; color: var(--muted); }
.foot { padding: 28px var(--gut) 40px; text-align: center; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }

/* profile */
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; padding: 16px var(--gut) 40px; max-width: 1400px; margin: 0 auto; }
.art { order: 2; }
.art canvas { display: block; width: 100%; height: min(68svh, 640px); }
.step { padding: 18px 0; }
.kicker { font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dark); }
.step h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; margin: 10px 0 8px; text-wrap: balance; }
.latin { font-style: italic; font-size: 1.25rem; color: var(--muted); }
.hint { display: none; margin-top: 28px; font-weight: 600; color: var(--c-dark); }
.step h2 { font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dark); margin-bottom: 10px; }
.big { font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.pop { font-size: clamp(3.5rem, 10vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--c-dark); margin-bottom: 14px; }
.pop small { display: block; font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--ink); margin-top: 6px; }
.step p { max-width: 46ch; text-wrap: pretty; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.src { margin-top: 22px; font-size: .8125rem; color: var(--muted); max-width: none; }
.dots { display: none; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 28px var(--gut) 56px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; font-size: 1.125rem; padding: 12px 0; }
.pager a:hover { color: var(--c-dark); }
.pager a:nth-child(2) { text-align: center; } .pager a:last-child { text-align: right; }
.pager small { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }

/* scroll-driven mode (html.anim): pinned stage, one panel at a time */
.anim .scene { height: 420svh; }
.anim .stage { position: sticky; top: var(--top); height: calc(100svh - var(--top)); padding-bottom: 24px; }
.anim .art canvas { height: min(74svh, 720px); }
.anim .steps { position: relative; align-self: stretch; }
.anim .step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; translate: 0 18px; pointer-events: none; transition: opacity .45s, translate .45s; }
.anim .step.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.anim .hint { display: block; }
.anim .dots { display: flex; gap: 8px; list-style: none; padding: 0; position: absolute; left: var(--gut); bottom: 22px; }
.dots li { width: 26px; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s, width .3s; }
.dots li.on { background: var(--c); width: 44px; }

@media (max-width: 820px) {
  .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; align-items: start; }
  .art { order: 0; }
  .art canvas, .anim .art canvas { height: 30svh; }
  .cols { grid-template-columns: 1fr; gap: 10px; }
  .src { margin-top: 12px; }
  .anim .step { justify-content: flex-start; padding-top: 30px; }
  .anim .step p:not(.pop, .big, .kicker, .src) { font-size: .9375rem; }
  .anim .dots { top: calc(30svh + 22px); bottom: auto; }
  .big { font-size: 1.25rem; }
  .pop { font-size: clamp(3rem, 16vw, 5rem); margin-bottom: 8px; }
  .pager { grid-template-columns: 1fr 1fr; } .pager a:nth-child(2) { display: none; }
}

/* home story */
.tag[href] { text-decoration: none; padding: 10px 0; }
.tag[href]:hover { color: var(--ink); }
.atlas .intro h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.story .art { display: none; }                                   /* plain (reduced-motion) mode: text only, the grid shows the animals */
.story .stage { display: block; max-width: 900px; }
.say { font-size: clamp(2.75rem, 8.5vw, 7rem); font-weight: 700; line-height: .98; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 18px; }
.who { font-size: clamp(2.25rem, 6vw, 4.75rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; color: var(--ink); text-transform: none; }
.step h2.who, .step h2.say { letter-spacing: -.02em; text-transform: none; color: var(--ink); font-weight: 700; line-height: 1; }
.step h2.say { font-size: clamp(2.5rem, 7.5vw, 6rem); margin-bottom: 18px; }
.step h2.who { font-size: clamp(2.25rem, 6vw, 4.75rem); margin: 10px 0 14px; }
.more { font-weight: 600; color: var(--c-dark); text-decoration: none; padding: 10px 0; display: inline-block; }
.more:hover { text-decoration: underline; }
.anim .story .art { display: block; }
.anim .story .stage { display: grid; max-width: 1400px; }
.anim .stage.msg .steps { position: static; }
.anim .stage.msg .art { position: absolute; inset: 0; }
.anim .stage.msg .art canvas { height: 100%; }                    /* message slots: words span the whole stage, pieces drift behind */
.anim .step.wide { align-items: center; text-align: center; padding: 0 var(--gut); }
.anim .step.wide .big { max-width: 34ch; color: var(--ink); }
.anim .story .art canvas { transition: opacity .3s; }
@media (max-width: 820px) {
  .anim .step.wide { justify-content: center; padding-top: 0; }
}

/* ───────── boutique layer: serif display type, quiet labels, paper grain, hairlines ───────── */
:root { --paper: #F3EDE1; --ink: #1B1A17; --muted: #6A6458; --line: rgba(27, 26, 23, .16);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .22  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
em { font-style: italic; }
.top { border-bottom: 1px solid var(--line); }
.brand { font: italic 400 1.375rem var(--serif); letter-spacing: 0; }
.tag { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.kicker, .step h2:not(.who, .say) { font-size: .75rem; letter-spacing: .2em; font-weight: 500; }
.say, .who, .step h1, .step h2.say, .step h2.who, .intro h1, .atlas .intro h2, .pop, .grid .name, .pager a, .thanks h2, .thanks h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.say em, .thanks h2 em { color: var(--c-dark); }
.step h1 { font-size: clamp(3rem, 7.5vw, 6.25rem); }
.say, .step h2.say { font-size: clamp(3rem, 9vw, 8rem); line-height: .95; margin-bottom: 26px; }
.step h2.who { font-size: clamp(2.75rem, 6.4vw, 5.5rem); margin: 14px 0 12px; }
.line { font: italic 400 clamp(1.125rem, 1.7vw, 1.4rem)/1.4 var(--serif); color: var(--muted); max-width: 34ch; margin-bottom: 22px; }
.pop { font-size: clamp(3.5rem, 9vw, 7rem); letter-spacing: -.02em; margin-bottom: 10px; }
.pop small { font: 500 .75rem var(--f); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.big { font-family: var(--serif); font-weight: 400; line-height: 1.35; }
.anim .step.wide .big { max-width: 40ch; font-size: clamp(1.25rem, 2vw, 1.75rem); color: #3B382F; }
.last { font: italic 400 clamp(1.5rem, 2.6vw, 2.25rem) var(--serif); margin-top: 22px; color: var(--c-dark); }
.latin { font-family: var(--serif); }
.more { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid currentColor; padding: 4px 0; margin-top: 14px; }
.more:hover { text-decoration: none; opacity: .7; }
.btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: 14px 26px; margin-top: 26px; transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.dots li { height: 2px; border-radius: 0; }
/* atlas grid: quiet plates instead of white cards */
.atlas { border-top: 1px solid var(--line); }
.atlas .intro p, .intro p { font-family: var(--serif); font-style: italic; }
.grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; margin: 0 var(--gut) 40px; max-width: none; }
.grid a { border-radius: 0; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 20px 24px; height: 100%; transition: background .3s; }
.grid a:hover { translate: none; box-shadow: none; background: rgba(255, 253, 247, .7); }
.grid .name { font-size: 1.5rem; }
.grid .num, .grid .place { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }
.pager a { font-size: 1.5rem; } .pager small { font: 500 .6875rem var(--f); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 4px; }
.foot { font-size: .8125rem; } .foot em { font-family: var(--serif); font-size: 1rem; }

/* with gratitude: team heads + supporters */
.thanks { border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 120px) var(--gut) clamp(40px, 6vw, 80px); text-align: center; }
.thanks h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1; margin: 14px auto 10px; max-width: 16ch; text-wrap: balance; }
.thanks h2.sub { font-size: clamp(1.75rem, 4vw, 3rem); margin-top: clamp(56px, 8vw, 104px); }
.thanks .lead { font: italic 400 1.125rem var(--serif); color: var(--muted); }
.heads { list-style: none; padding: 0; margin: 44px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 30px 14px; }
.head { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 4px; width: 100%; }
.head-art { display: block; width: 104px; height: 108px; overflow: hidden; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.head-art svg { display: block; width: 100%; height: 100%; }
.head-name { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.15; }
.head-role { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.head:hover .head-name { font-style: italic; }
.head:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .heads .head-art svg { translate: 0 105%; transition: translate .7s cubic-bezier(.2, 1.5, .4, 1); transition-delay: calc(var(--i) * 90ms); }   /* pop up from behind the line */
  .heads.in .head-art svg { translate: 0 0; }
  .head:hover .head-art svg { translate: 0 -5px; transition-delay: 0s; transition-duration: .25s; }
}
.card { width: min(92vw, 400px); padding: 30px 30px 26px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-align: center; }
.card::backdrop { background: rgba(27, 26, 23, .45); backdrop-filter: blur(3px); }
.card-art { display: block; width: 132px; margin: 0 auto 14px; border-bottom: 1px solid var(--ink); }
.card h3 { font: 400 2rem/1.1 var(--serif); margin: 8px 0 12px; }
.card p:not(.kicker) { font: italic 400 1.125rem/1.45 var(--serif); }
.card .kicker { color: var(--muted); }
.card .x { all: unset; cursor: pointer; margin-top: 22px; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding: 4px 0; }
.card .x:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.orgs { list-style: none; padding: 0; margin: 40px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); text-align: left; }
.orgs li { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.orgs svg { width: 34px; height: 34px; margin-bottom: 16px; }
.orgs h3 { font-size: 1.625rem; line-height: 1.1; margin: 6px 0 8px; }
.orgs .kicker { color: var(--muted); }
.orgs p:not(.kicker) { font-size: .9375rem; color: #3B382F; }
.fine { margin: 44px auto 0; max-width: 60ch; font-size: .8125rem; color: var(--muted); text-wrap: balance; }
/* 15 plates = 5 × 3 on desktop, 3 × 5 on tablets, 2 columns on phones */
.grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid a { padding: 14px 12px 16px; } .grid .name { font-size: 1.1875rem; } }
/* phones: the story's animal slots must fit under the drawing (name, one line, number, link) */
@media (max-width: 820px) {
  .story .step:not(.wide) { padding-top: 18px; }
  .story .step h2.who { font-size: clamp(2rem, 9vw, 2.75rem); margin: 8px 0 6px; }
  .story .line { font-size: 1rem; margin-bottom: 12px; }
  .story .pop { font-size: clamp(2.25rem, 12vw, 3.25rem); margin-bottom: 4px; }
  .story .pop small { margin-top: 6px; }
  .story .more { margin-top: 6px; }
}
@media (max-width: 820px) and (max-height: 700px) { .story .line { display: none; } }
