/* SeventhVoid: a nocturnal field guide.
   Palette sampled from Images/HeadShot.png; autumn specimens in bark and dim amber. */

/* ---------- fonts ----------
   Served from fonts/ rather than Google, so the page needn't wait on another
   site before it draws. Latin characters only, which covers everything here. */
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/alegreya-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/alegreya-sans-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/alegreya-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 700; font-stretch: 75% 85%; font-display: swap; src: url("../fonts/bricolage-grotesque-600-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Kaushan Script'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/kaushan-script-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nanum Pen Script'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nanum-pen-script-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/sofia-sans-condensed.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* grounds, darkest to lightest */
  --night: #120f1c;
  --dusk: #1b1629;
  --slate: #251f37;
  --plum: #261d3b;
  --soil: #221812;

  /* fursona */
  --fur: #5c526e;
  --violet: #903bdc;
  --violet-hover: #7a2cc2;
  --violet-deep: #500787;
  --lilac: #b98af0;

  /* ink */
  --ink: #ebeaec;
  --ink-2: #c3b8da;
  --ink-3: #aea4c6;
  --rule: rgb(195 184 218 / 0.18);

  /* autumn */
  --bark: #6b4a35;
  --leaf-russet: #7a5638;
  --leaf-ochre: #8a6a3c;
  --amber: #c08d45;
  --amber-ink: #d9ac6c;
  /* Telegram's blue, toned down a touch to sit with the dusk palette */
  --tg: #2a8fc9;
  --tg-hover: #2178ab;

  /* forest floor (footer) ink */
  --floor-ink: #efe4d2;
  --floor-ink-2: #d8c6ac;
  --floor-ink-3: #bfae96;

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-label: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --f-text: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --f-script: "Kaushan Script", "Brush Script MT", cursive;
  --f-pencil: "Nanum Pen Script", "Comic Sans MS", cursive;

  --gutter: clamp(22px, 5.5vw, 84px);
  --wrap: min(1240px, 100% - var(--gutter) * 2);
  --bar-h: 58px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .9 0 0 0 0 .95 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
  scrollbar-color: var(--fur) var(--night);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
/* no double-tap zoom anywhere, so quick boops and fox taps never zoom the page (pinch zoom still works) */
html { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  background: var(--dusk);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--lilac);
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--fur); border: 3px solid var(--night); border-radius: 12px; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--lilac); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; text-wrap: balance; }
h2 {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  font-variation-settings: "wdth" 78;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
p { margin: 0; text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.i--sm { width: 1em; height: 1em; vertical-align: -0.12em; }

.pencil { font-family: var(--f-pencil); font-size: 1.55em; line-height: 1; color: var(--lilac); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--night); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- specimens (inline SVG symbols) ---------- */
.leaf-body { fill: var(--leaf, var(--bark)); }
.leaf-vein { fill: none; stroke: var(--vein, rgb(18 12 10 / 0.45)); stroke-width: 1.4; stroke-linecap: round; }
.acorn-nut { fill: url(#g-nut); }
.acorn-shade { fill: #6e4318; opacity: 0.28; }
.acorn-tip { fill: #6e4a2c; }
.acorn-shine { fill: none; stroke: rgb(255 244 222 / 0.55); stroke-width: 2.6; stroke-linecap: round; }
.acorn-cap { fill: url(#g-cap); }
.acorn-scales { fill: none; stroke: #3f2a1b; stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; }
.acorn-rim { fill: none; stroke: rgb(255 230 200 / 0.28); stroke-width: 1.6; stroke-linecap: round; }
.acorn-stalk { fill: none; stroke: #5e3f29; stroke-width: 3.4; stroke-linecap: round; }
.acorn-leaf { fill: #7d8a3e; }
.acorn-leaf-vein { fill: none; stroke: #4f5a24; stroke-width: 0.9; stroke-linecap: round; }

.specimen { position: absolute; pointer-events: none; }

/* ---------- the marking line (signature) ---------- */
.mark-line {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  pointer-events: none; z-index: 1; overflow: visible;
}
.mark-line > path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.mark-line__main { stroke: var(--violet); stroke-width: 3; }
.mark-line__thin { stroke: var(--lilac); stroke-width: 1.2; opacity: 0.55; }

/* the fox, with the squirrel riding on its back, running the line */
.duo {
  --w: 90px; --h: 47px; --f: 0;
  position: absolute; left: 0; top: 0; z-index: 1;
  width: var(--w); height: var(--h);
  background: url("../Images/fox-squirrel-run.png") calc(var(--f) * -1 * var(--w)) 0 / calc(var(--w) * 6) var(--h) no-repeat;
  image-rendering: pixelated;
  transform-origin: 50% calc(100% - 2px); /* the point on the line */
  pointer-events: none; opacity: 0; transition: opacity 0.6s;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0.35));
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.duo.is-ready { opacity: 1; pointer-events: auto; }
/* the tap counter, pinned to the top of the screen once they've been tapped twice */
.tally {
  position: fixed; left: 50%; top: 72px; z-index: 30; translate: -50% 0;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1;
  color: var(--ink); background: var(--violet);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
  font-variant-numeric: tabular-nums;
}
.tally.is-on { opacity: 1; }
.tally.is-hidden { opacity: 0; }

/* 30th tap: poof */
.duo.is-vanished { opacity: 0; scale: 0.2; filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0)) blur(8px); pointer-events: none; transition: opacity 0.35s, scale 0.35s var(--ease-out), filter 0.35s; }
.duo.is-away { visibility: hidden; }
.duo.is-shy:not(:hover) { opacity: 0.35; transition: opacity 0.4s; }
/* tapped: a little double hop to go with the yap */
.duo.is-yapping { animation: yap-hop 0.4s var(--ease-out); }
@keyframes yap-hop {
  0%, 50%, 100% { translate: 0 0; }
  22% { translate: 0 -7px; }
  72% { translate: 0 -5px; }
}
.heart { fill: var(--violet); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.mark-line.is-home .heart { animation: crit-heart 0.7s var(--ease-out) 0.3s both, crit-float 2.6s ease-in-out 1s infinite alternate; }
@keyframes crit-heart { from { opacity: 0; transform: translateY(6px) scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes crit-float { from { opacity: 1; transform: none; } to { opacity: 1; transform: translateY(-3px); } }
/* narrow margins push it over the content, so run in front of it rather than behind */
@media (max-width: 900px) { .duo { z-index: 3; } }
@media (max-width: 600px) { .duo { --w: 68px; --h: 35.5px; } }

main > section, .floor { position: relative; }
main > section > *, .floor > * { position: relative; z-index: 2; }

/* ---------- guide bar ---------- */
.guide-bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  background: rgb(18 15 28 / 0.94);
  border-bottom: 1px solid var(--rule);
}
.guide-bar__title {
  font-family: var(--f-label); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.02em; text-decoration: none;
  color: var(--ink-2); white-space: nowrap;
}
.guide-bar__title span { color: var(--ink); }
.guide-bar__tabs { display: flex; gap: 6px; align-items: center; }
.guide-bar__tabs a {
  font-family: var(--f-label); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; color: var(--ink-2);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.25s, border-color 0.25s;
}
.guide-bar__tabs a:hover { color: var(--ink); border-color: var(--rule); }
.guide-bar__tabs a[aria-current="location"] { color: #fff; background: var(--violet-deep); border-color: var(--violet); }
.guide-bar__menu { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.3em;
  font-family: var(--f-label); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.02em; text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.btn--solid { background: var(--violet); color: #fff; }
.btn--solid:hover { background: var(--violet-hover); }
.btn--line { border: 1px solid var(--rule); color: var(--ink); }
.btn--line:hover { border-color: var(--lilac); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

/* ---------- species (first viewport) ---------- */
.species {
  background: var(--grain), var(--dusk);
  min-height: calc(100svh - var(--bar-h));
  padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(72px, 12vh, 128px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-inline: max(var(--gutter), (100% - 1240px) / 2);
}
.species__text { align-self: center; }
/* the name, centred across the top in plain bone script, like the signature on the forest floor */
.species__name {
  grid-column: 1 / -1; justify-self: center; text-align: center;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 1rem + 6.6vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--floor-ink);
  padding-bottom: 0.08em;
}
.species__tag {
  grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 2px;
  font-family: var(--f-label); font-weight: 600; font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac);
}
.species__lede {
  margin-top: 26px; max-width: 30ch;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; color: var(--ink-2);
}
.species__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn .i { width: 22px; height: 22px; flex: none; }
.btn__short { display: none; }
/* the photo and archive icons are for the round phone buttons; on wider screens the words do it */
@media (min-width: 901px) { .btn:not(.btn--tg) .btn__lead { display: none; } }

/* phones and small tablets: me first. The name, then the portrait, the buttons below
   it, then the intro line. Normally the buttons are pills; while I'm at a meet Telegram
   becomes the big pill and Photos and Archive shrink to round icons beside it */
@media (max-width: 900px) {
  .species { gap: 0; }
  .species__text { display: contents; }
  .species__name, .species__tag { order: 1; }
  .plate--hero { order: 2; margin-top: 24px; }
  .here-now { order: 3; justify-self: center; margin-top: 20px; }
  .species__actions { order: 4; margin-top: 20px; justify-content: center; gap: 8px; }
  .here-now + .species__actions { margin-top: 16px; }
  .bday { order: 5; margin-top: 24px; }
  .species__lede { order: 6; margin-top: 26px; justify-self: center; text-align: center; }
  .species__actions .btn__long, .species__actions .btn__out { display: none; }
  .species__actions .btn__short { display: inline; }
  /* pills: an equal share of the row each */
  .species__actions .btn { flex: 1 1 auto; justify-content: center; gap: 0.4em; min-height: 52px; padding: 0 0.85em; font-size: 1.05rem; white-space: nowrap; }
  .species__actions .btn .btn__lead { width: 20px; height: 20px; }

  /* at a meet: a big Telegram pill, with Photos and Archive as small round icons beside it */
  .is-at-event .species__actions { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .is-at-event .species__actions .btn--tg { flex: 1 1 auto; min-height: 58px; font-size: 1.2rem; gap: 0.5em; }
  .is-at-event .species__actions .btn--tg .btn__lead { width: 24px; height: 24px; }
  .is-at-event .species__actions .btn:not(.btn--tg) { flex: none; width: 58px; height: 58px; min-height: 0; padding: 0; border-radius: 50%; }
  .is-at-event .species__actions .btn:not(.btn--tg) .btn__lead { width: 22px; height: 22px; }
  /* the round ones keep their words for screen readers only */
  .is-at-event .species__actions .btn:not(.btn--tg) .btn__short {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: var(--tg-hover); }

/* ---------- at a meet right now (main.js, from the "Coming up" list) ---------- */
.here-now {
  display: flex; align-items: flex-start; line-height: 1.35; gap: 10px; width: fit-content; max-width: 100%;
  margin-top: 22px; padding: 8px 16px 8px 12px;
  border: 1px solid rgb(185 138 240 / 0.45); border-radius: 14px;
  background: rgb(144 59 220 / 0.14);
  font-family: var(--f-label); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.02em; color: var(--ink-2);
}
.here-now b { color: var(--ink); }
.here-now__dot { flex: none; width: 10px; height: 10px; margin-top: 0.35em; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 0 rgb(95 211 138 / 0.6); animation: here-pulse 1.8s ease-out infinite; }
@keyframes here-pulse { to { box-shadow: 0 0 0 9px rgb(95 211 138 / 0); } }
.here-now + .species__actions { margin-top: 18px; }
.guide-bar__tg {
  display: none; align-items: center; gap: 7px; flex: none;
  height: 40px; padding: 0 15px 0 11px;
  font-family: var(--f-label); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em;
  color: #fff; text-decoration: none; background: var(--tg); border-radius: 999px;
  transition: background-color 0.25s;
}
.guide-bar__tg:not([hidden]) { display: inline-flex; }
.guide-bar__tg:hover { background: var(--tg-hover); }
.guide-bar__tg .i { width: 20px; height: 20px; }
.guide-bar__pre { color: inherit; }
.guide-bar__title .guide-bar__pre { color: var(--ink-2); }

/* ---------- birthday countdown (main.js shows it in the run-up to the day) ----------
   It sits under the headshot, the full width of the frame */
@media (min-width: 901px) {
  .species { row-gap: 16px; }
  .species { align-content: center; }
  .species__name { grid-row: 1; }
  .species__tag { grid-row: 2; margin-bottom: 12px; }
  .species__text { grid-row: 3; }
  .plate--hero { grid-row: 3; grid-column: 2; }
  .bday { grid-row: 4; grid-column: 2; align-self: start; justify-self: center; width: min(100%, 540px); }
}
.bday { padding: 16px 18px 18px; text-align: center;
  border: 1px solid rgb(185 138 240 / 0.45); border-radius: 14px;
  background: linear-gradient(160deg, rgb(144 59 220 / 0.16), rgb(144 59 220 / 0.04));
  box-shadow: 0 18px 36px -24px rgb(0 0 0 / 0.8);
}
.bday__label { font-family: var(--f-label); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lilac); }
.bday__clock { display: flex; gap: 10px; margin-top: 10px; }
.bday__unit { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; }
.bday__unit b {
  display: block; width: 100%;
  padding: 6px 0; border-radius: 8px;
  background: var(--night); border: 1px solid var(--rule);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.bday__unit small { font-family: var(--f-label); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-2); }
/* on the day itself */
.bday.is-today { border-color: var(--amber); background: linear-gradient(160deg, rgb(192 141 69 / 0.18), rgb(144 59 220 / 0.12)); }
.bday.is-today .bday__label {
  font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; color: var(--amber-ink);
}
.bday__note { margin-top: 4px; color: var(--ink-2); font-size: 1.1rem; }
.bday__again {
  margin-top: 10px; min-height: 40px; padding: 0 1.1em;
  font: 700 1rem var(--f-label); letter-spacing: 0.03em; color: var(--ink);
  background: none; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.bday__again:hover { border-color: var(--amber); transform: translateY(-2px); }
.bday__again:active { transform: translateY(1px); }
/* resting between showers */
.bday__again:disabled { opacity: 0.45; cursor: default; transform: none; border-color: var(--rule); }
@media (max-width: 600px) {
  .bday { padding: 16px; }
  .bday__again { width: 100%; min-height: 46px; }
}
.confetti {
  position: absolute; top: -30px; width: calc(9px * var(--s)); height: calc(15px * var(--s));
  background: var(--c); border-radius: 2px;
  animation: fall linear both;
}
/* a boop on the day: a burst out from the headshot */
.confetti--puff { animation: puff 1.2s var(--ease-out) both; }
@keyframes puff {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(calc(var(--dx) - 50%), calc(var(--dy) - 50% + 40px)) rotate(var(--spin)); opacity: 0; }
}

/* ---------- the birthday itself: decorations main.js adds for 5 October only ---------- */
.bunting {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 5;
  display: flex; justify-content: space-around; padding-inline: 1.5%;
  pointer-events: none;
}
.bunting svg { position: absolute; inset: 0 0 auto; width: 100%; height: 28px; overflow: visible; }
.bunting path { fill: none; stroke: rgb(235 234 236 / 0.4); stroke-width: 1.2; }
.bunting i {
  width: 24px; height: 26px; margin-top: calc(var(--sag) * 13px + 1px);
  background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0; animation: flutter 3s ease-in-out var(--d) infinite alternate;
  opacity: 0.92;
}
@keyframes flutter { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@media (max-width: 600px) {
  .bunting { height: 40px; } .bunting i { width: 18px; height: 20px; }
  .is-bday .species { padding-top: 56px; } /* clear of the bunting */
}

.balloon { position: absolute; z-index: 5; width: 46px; pointer-events: none; animation: float 5s ease-in-out infinite alternate; }
.balloon svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); }
.balloon--a { left: -26px; top: -48px; --r: -8deg; }
.balloon--b { left: 6px; top: -22px; width: 38px; --r: 6deg; animation-delay: -2s; animation-duration: 6s; }
.balloon--c { right: -22px; top: 70cqw; width: 40px; --r: 10deg; animation-delay: -3.5s; }
@keyframes float { from { transform: translateY(0) rotate(var(--r)); } to { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }
/* phones: the name sits right above the portrait, so the top balloons tuck inside the frame */
@media (max-width: 900px) { .balloon--a { left: 8px; top: 8px; } .balloon--b { left: 40px; top: 30px; } .balloon--c { right: -8px; } }

.guide-bar__bday {
  margin-left: 0.6em; padding: 2px 9px; border-radius: 999px;
  font-size: 0.78em; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--night); background: var(--amber-ink);
}
@media (max-width: 600px) { .guide-bar__bday { display: none; } }

/* phones: the hero buttons stack full width, the most useful one on top, and the bar
   drops its "A Field Guide to me" when a Telegram or radio button needs the room */
@media (max-width: 600px) {
  .here-now { padding: 10px 14px; }
  .guide-bar:has(.guide-bar__tg:not([hidden])) .guide-bar__pre,
  .guide-bar:has(.guide-bar__radio:not([hidden])) .guide-bar__pre { display: none; }
  /* both showing: Telegram goes icon-only so everything fits */
  .guide-bar:has(.guide-bar__radio:not([hidden])) .guide-bar__tg { width: 40px; padding: 0; justify-content: center; }
  .guide-bar:has(.guide-bar__radio:not([hidden])) .guide-bar__tg-text { display: none; }
}
@media (max-width: 370px) { .guide-bar__pre { display: none; } }
/* the section headings get a touch of party colour */
.is-bday main h2 { text-shadow: 0 0.08em 0 rgb(192 141 69 / 0.55); }

/* ---------- plates ---------- */
.plate { margin: 0; position: relative; }
.plate__open {
  display: block; width: 100%; padding: 10px; cursor: zoom-in;
  background: rgb(235 234 236 / 0.035);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.plate__open img { width: 100%; transition: transform 0.8s var(--ease-out), filter 0.4s; }
.plate__open:hover, .plate__open:focus-visible {
  border-color: rgb(185 138 240 / 0.6);
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgb(0 0 0 / 0.8);
}
.plate__open:hover img, .plate__open:focus-visible img { transform: scale(1.04); }

.plate--hero { position: relative; justify-self: center; width: min(100%, 540px); container-type: inline-size; /* the balloons measure from its width */ }
.portrait {
  position: relative;
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid var(--rule);
  background: var(--grain), var(--slate);
  display: grid; place-items: center;
  overflow: hidden;
}
.portrait::before {
  /* inner hairline, like a printed plate border */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgb(195 184 218 / 0.12); pointer-events: none;
}
.portrait__cameo {
  position: relative; z-index: 2;
  width: 68%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--fur);
  border: 4px solid var(--dusk);
  outline: 1px solid var(--lilac); outline-offset: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / 0.7);
}
.portrait__cameo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait__leaf { height: auto; z-index: 1; }
.portrait__leaf { --r: 0deg; transform: rotate(var(--r)); animation: sway 7s ease-in-out infinite alternate; }
.portrait__leaf--a { --leaf: var(--bark); --r: -32deg; width: 26%; aspect-ratio: 100 / 170; left: 2%; top: 4%; transform-origin: 50% 95%; }
.portrait__leaf--b { --leaf: var(--leaf-ochre); --r: 38deg; width: 16%; aspect-ratio: 80 / 150; right: 5%; top: 8%; opacity: 0.85; transform-origin: 50% 95%; animation-duration: 5.5s; animation-delay: -2s; }
.portrait__leaf--c { --leaf: var(--leaf-russet); --r: 140deg; width: 22%; aspect-ratio: 100 / 170; right: 0; bottom: 2%; opacity: 0.9; animation-duration: 8s; animation-delay: -4s; }
.portrait__acorn { --r: -24deg; width: 8%; aspect-ratio: 60 / 84; height: auto; left: 12%; bottom: 9%; transform: rotate(var(--r)); z-index: 3; animation: bob 3.2s ease-in-out infinite; }
/* party hat, worn for the birthday */
.portrait__hat { position: absolute; z-index: 4; width: 15%; height: auto; left: 54%; top: 4%; transform: rotate(22deg); transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.45)); pointer-events: none; animation: hat-bob 2.8s ease-in-out infinite; }
@keyframes hat-bob { 50% { transform: rotate(16deg) translateY(-3px); } }
.portrait__cameo img { transition: transform 0.8s var(--ease-out); }
.portrait:hover .portrait__cameo img { transform: scale(1.06) rotate(-2deg); }
.portrait__cameo { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* tapped: a quick squish to go with the buh */
.portrait__cameo.is-buh { animation: buh-squish 0.45s var(--ease-out); }
@keyframes buh-squish {
  0%, 100% { scale: 1; }
  25% { scale: 1.08 0.92; }
  55% { scale: 0.96 1.05; }
}
/* everyone's boops, today. Sits inside the frame, under the cameo, since
   the marking line leaves from the bottom of the plate */
.boops {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3;
  text-align: center; line-height: 1; pointer-events: none;
  font-family: var(--f-label); font-size: 1.05rem; letter-spacing: 0.02em; color: var(--ink-2);
}
.boops__n { display: inline-block; font-weight: 700; color: var(--lilac); font-variant-numeric: tabular-nums; }
.boops__n.is-bump { animation: boop-bump 0.3s var(--ease-out); }
@keyframes boop-bump { 40% { scale: 1.25; } }
@keyframes sway { from { transform: rotate(calc(var(--r) - 5deg)); } to { transform: rotate(calc(var(--r) + 5deg)); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-6px) rotate(calc(var(--r) + 8deg)); } }

/* ---------- entry (about) ---------- */
.entry {
  background: var(--grain), var(--slate);
  padding: clamp(80px, 11vw, 150px) 0;
  border-top: 1px solid var(--rule);
}
.entry__inner {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px); row-gap: clamp(36px, 5vw, 56px);
}
.entry__head { grid-column: 1 / 8; }
.entry__head h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); max-width: 14ch; }
.entry__intro--more { margin-top: 18px; color: var(--ink-2); }
.entry__intro {
  margin-top: 28px; max-width: 44ch;
  font-size: clamp(1.2rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--ink);
}
.entry__fig { grid-column: 8 / 13; grid-row: 1 / 3; margin: 0; align-self: start; position: relative; }
.entry__fig img {
  width: 100%; aspect-ratio: 1;
}
.entry__more { grid-column: 1 / 8; }
.entry__more-btn { display: none; }
.entry__marks { margin: 0; border-top: 1px solid var(--rule); }
.entry__marks > div {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.entry__marks dt {
  font-family: var(--f-label); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); padding-top: 0.28em;
}
.entry__marks dd { margin: 0; color: var(--ink-2); max-width: 52ch; }
.entry__marks dd a { color: var(--ink); }
.specimen--entry-leaf {
  --leaf: var(--leaf-russet); --r: -38deg; width: 90px; aspect-ratio: 100 / 170; height: auto;
  left: -100px; bottom: -120px; transform: rotate(var(--r)); opacity: 0.9;
  transform-origin: 50% 95%; animation: sway 6s ease-in-out infinite alternate;
}

/* ---------- plates section ---------- */
.plates {
  background: var(--grain), var(--night);
  padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 12vw, 160px);
}
.plates__head, .plates__grid, .drawers { width: var(--wrap); margin-inline: auto; }
.plates__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.plates__head p { max-width: 40ch; color: var(--ink-2); }
.plates__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px) clamp(16px, 2.4vw, 32px);
  grid-template-areas:
    "a a a a a a a b b b b b"
    "d d d d d d d b b b b b"
    "c c c c r r r r r r r r"
    "e e e e e e e e e e e e";
  align-items: start;
}
.plate--a { grid-area: a; }
.plate--b { grid-area: b; }
.plate--c { grid-area: c; }
.plate--d { grid-area: d; }
.plate--e { grid-area: e; }
/* all five change every hour (src/worker.js): each frame keeps its shape whatever photo lands in it */
.plate--a img, .plate--d img { aspect-ratio: 3 / 2; object-fit: cover; }
.plate--e img { aspect-ratio: 16 / 9; object-fit: cover; }
/* on wide screens the tall one fills exactly the height of the two wide ones beside it */
@media (min-width: 901px) {
  .plate--b { align-self: stretch; }
  .plate--b .plate__open { height: 100%; }
  .plate--b img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); aspect-ratio: auto; }
}
.plate--b img, .plate--c img { aspect-ratio: 2 / 3; object-fit: cover; }

.drawers { grid-area: r; width: auto; align-self: center; padding-left: clamp(0px, 3vw, 48px); }
.drawers__title {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
  font-variation-settings: "wdth" 80; line-height: 1;
}
.drawers__title span { font-family: var(--f-pencil); font-weight: 400; font-size: 0.9em; color: var(--lilac); margin-left: 0.2em; }
.drawers__list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.drawers__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 4.2rem 1.4rem; align-items: baseline; gap: 14px;
  padding: 16px 4px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color 0.25s, padding 0.35s var(--ease-out);
}
.drawers__list a:hover { background: rgb(144 59 220 / 0.12); padding-inline: 14px 10px; }
.drawers__name { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 1.3rem; }
.drawers__count {
  font-family: var(--f-label); font-weight: 700; font-size: 1.3rem;
  font-variant-numeric: tabular-nums; color: var(--amber-ink);
}
.drawers__unit { font-family: var(--f-label); font-size: 0.95rem; color: var(--ink-3); }
.drawers__list .i { align-self: center; color: var(--ink-3); transition: color 0.2s, transform 0.3s var(--ease-out); }
.drawers__list a:hover .i { color: var(--lilac); transform: translate(2px, -2px); }
.drawers__more { margin-top: 22px; color: var(--ink-2); max-width: 46ch; }

/* ---------- meets & cons ---------- */
.events {
  background: var(--grain), var(--slate);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.events__inner { width: var(--wrap); margin-inline: auto; }
.events__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.events__head p { max-width: 40ch; color: var(--ink-2); }
.events__sub {
  font-family: var(--f-label); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac);
  padding-bottom: 12px; border-bottom: 1px solid var(--violet);
}
.events__sub--past { margin-top: clamp(48px, 6vw, 72px); }
.upcoming { margin-top: clamp(36px, 5vw, 60px); }
.upcoming__empty {
  margin-top: 18px; padding: 22px 24px;
  border: 1px dashed rgb(185 138 240 / 0.35); border-radius: 14px;
  color: var(--ink-2); display: flex; align-items: center; gap: 16px;
}
.upcoming__empty::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lilac);
}
.upcoming__list { list-style: none; margin: 0; padding: 0; }
.upcoming__list li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2.4vw, 32px);
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.upcoming__date { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-ink); line-height: 1; }
.upcoming__date span { display: block; font-family: var(--f-display); font-size: 2.4rem; letter-spacing: -0.02em; color: var(--ink); }
.upcoming__name { font-family: var(--f-display); font-size: 1.5rem; font-variation-settings: "wdth" 82; }
.upcoming__where { color: var(--ink-3); font-size: 0.95rem; }
.upcoming__link {
  display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; text-decoration: none;
  font-family: var(--f-label); font-weight: 700; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px;
  transition: border-color 0.25s, background-color 0.25s;
}
.upcoming__link:hover { border-color: var(--lilac); background: rgb(144 59 220 / 0.14); }
/* An upcoming event with its poster art behind it: add upcoming__item--art and an <img class="upcoming__art">. */
.upcoming__list li.upcoming__item--art {
  position: relative; isolation: isolate; margin-top: 18px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  min-height: 190px; border: 1px solid rgb(217 172 108 / 0.35); border-radius: 14px; overflow: hidden;
  background: var(--soil);
}
.upcoming__art {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 55%;
}
.upcoming__item--art::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(24 17 12 / 0.94) 0%, rgb(24 17 12 / 0.82) 38%, rgb(24 17 12 / 0.25) 72%, rgb(24 17 12 / 0.05) 100%);
}
.upcoming__item--art .upcoming__name { text-wrap: balance; }
.upcoming__item--art .upcoming__where { color: var(--ink-2); }
.upcoming__item--art .upcoming__link {
  background: rgb(24 17 12 / 0.7); border-color: rgb(235 234 236 / 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.upcoming__item--art .upcoming__link:hover { border-color: var(--lilac); background: rgb(80 7 135 / 0.7); }
.upcoming__credit {
  position: absolute; right: 12px; bottom: 8px;
  font-family: var(--f-label); font-size: 0.86rem; letter-spacing: 0.06em;
  color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.7);
}
/* Happening now: main.js adds .is-live from an event's date until its data-ends.
   A violet and amber border runs slowly round the card, and a badge pulses. */
@property --live-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.upcoming__list li.is-live {
  position: relative; isolation: isolate; margin-top: 18px;
  padding-inline: clamp(20px, 3vw, 36px); border-radius: 14px; border-color: transparent;
  background-color: rgb(144 59 220 / 0.1);
  animation: live-glow 2.8s ease-in-out infinite;
}
.upcoming__list li.is-live::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--live-turn), var(--violet), var(--lilac), var(--amber), var(--violet-deep), var(--violet));
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: live-turn 6s linear infinite;
}
@keyframes live-turn { to { --live-turn: 360deg; } }
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(144 59 220 / 0), 0 0 18px rgb(144 59 220 / 0.25); }
  50% { box-shadow: 0 0 0 4px rgb(144 59 220 / 0.12), 0 0 32px rgb(144 59 220 / 0.45); }
}
.upcoming__live {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--violet); color: #fff;
  font-family: var(--f-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.upcoming__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: live-dot 1.6s ease-out infinite;
}
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.7); }
  100% { box-shadow: 0 0 0 8px rgb(255 255 255 / 0); }
}
/* Attended: finished events, moved here by main.js. Quieter than what's coming up. */
.attended { margin-top: clamp(40px, 5vw, 60px); }
.attended__list .upcoming__art { filter: grayscale(0.7) brightness(0.8); transition: filter 0.4s; }
.attended__list li:hover .upcoming__art { filter: none; }
.attended__list .upcoming__date, .attended__list .upcoming__date span { color: var(--ink-3); }
.upcoming__been {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  padding: 3px 11px 3px 9px; border: 1px solid rgb(192 141 69 / 0.6); border-radius: 999px;
  background: rgb(24 17 12 / 0.7); color: var(--amber-ink);
  font-family: var(--f-label); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.upcoming__been::before {
  content: ""; width: 0.45em; height: 0.8em; margin: -0.2em 0.1em 0 0.1em;
  border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg;
}
@media (prefers-reduced-motion: reduce) {
  .upcoming__list li.is-live, .upcoming__list li.is-live::after, .upcoming__live::before { animation: none; }
  .upcoming__list li.is-live { box-shadow: 0 0 24px rgb(144 59 220 / 0.35); }
}
.events__list {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.events__list li {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(22px, 2.6vw, 30px);
  background: rgb(18 15 28 / 0.45);
  border: 1px solid var(--rule); border-radius: 14px;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s var(--ease-out);
}
.events__list li:hover { transform: translateY(-5px) rotate(-0.4deg); border-color: rgb(185 138 240 / 0.5); box-shadow: 0 24px 40px -26px rgb(0 0 0 / 0.9); }
/* A place's group photo sits behind its card, under a night scrim so the text stays readable. */
.events__list li:has(.events__photo) { isolation: isolate; overflow: hidden; min-height: 240px; }
.events__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.85;
  transition: transform 0.8s var(--ease-out), opacity 0.4s;
}
.events__list li:has(.events__photo)::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(18 15 28 / 0.9) 0%, rgb(18 15 28 / 0.62) 42%, rgb(18 15 28 / 0.5) 62%, rgb(18 15 28 / 0.92) 100%);
}
.events__list li:hover .events__photo { transform: scale(1.04); opacity: 1; }
.events__list li:has(.events__photo) .events__kind { background: rgb(18 15 28 / 0.7); }
.events__list li:has(.events__photo) .events__name,
.events__list li:has(.events__photo) .events__count { text-shadow: 0 1px 12px rgb(0 0 0 / 0.8); }
@media (prefers-reduced-motion: reduce) { .events__list li:hover .events__photo { transform: none; } }
.events__kind {
  font-family: var(--f-label); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.events__kind--con { color: var(--lilac); border-color: rgb(185 138 240 / 0.45); }
.events__kind--meet { color: var(--amber-ink); border-color: rgb(192 141 69 / 0.5); }
#places { scroll-margin-top: 24px; } /* the hero's "Find your photos" lands here, clear of the bar */
.events__sub-hint { display: block; margin-top: 6px; font-family: var(--f-text); font-weight: 400; font-size: 0.98rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.events__count { font-family: var(--f-label); font-weight: 600; color: var(--amber-ink); margin-top: -6px; }
.events__name {
  margin: 0; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem);
  font-variation-settings: "wdth" 80; line-height: 1; letter-spacing: -0.01em;
}
.events__link {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--f-label); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--ink-2); text-decoration: none;
}
.events__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.events__link .i { transition: transform 0.3s var(--ease-out); }
.events__list li:hover .events__link { color: var(--ink); }
.events__list li:hover .events__link .i { transform: translate(2px, -2px); }

/* ---------- vrchat ---------- */
.vr {
  background: var(--grain), var(--night);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.vr__inner { width: var(--wrap); margin-inline: auto; position: relative; }
.vr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.vr__head p { max-width: 42ch; color: var(--ink-2); }
.vr__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-areas:
    "w w w w w w w w p p p p"
    "g g g v v v s s s s s s";
}
.vr__shot { display: grid; }
.vr__shot .plate__open { height: 100%; }
.vr__shot--wide { grid-area: w; }
.vr__shot--wide .plate__open, .vr__shot--wide2 .plate__open { aspect-ratio: 16 / 9; }
.vr__shot--wide2 { grid-area: s; }
.vr__shot--tall:nth-child(2) { grid-area: p; }
.vr__shot--tall:nth-child(3) { grid-area: g; }
.vr__shot--tall:nth-child(4) { grid-area: v; }
.vr__shot .plate__open img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; }
.vr__shot--tall .plate__open { min-height: 220px; }
.vr__shot--tall:nth-child(3) img, .vr__shot--tall:nth-child(4) img { object-position: 50% 62%; }
.vr__extras {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
}
.vr__kit ul { list-style: none; margin: 6px 0 0; padding: 0; }
.vr__kit li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  transition: padding 0.35s var(--ease-out), background-color 0.25s;
}
.vr__kit li:hover { padding-inline: 12px 8px; background: rgb(144 59 220 / 0.1); }
.vr__kit-name { font-family: var(--f-display); font-weight: 600; font-variation-settings: "wdth" 85; font-size: 1.3rem; }
.vr__kit-what { font-family: var(--f-label); color: var(--ink-3); }
.events__list--single { grid-template-columns: 1fr; }
.vr__more { margin-top: 18px; color: var(--ink-2); }

/* ---------- music taste ---------- */
.taste {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 32px;
}
.taste .events__sub { border: 0; padding: 0; }
.taste__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.taste__list li {
  font-family: var(--f-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  padding: 7px 16px; border-radius: 999px;
  background: rgb(144 59 220 / 0.18); border: 1px solid rgb(185 138 240 / 0.35);
}
.taste__link {
  display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; text-decoration: none;
  font-family: var(--f-label); font-weight: 700; font-size: 1.05rem;
  padding: 10px 16px; border: 1px solid rgb(235 234 236 / 0.3); border-radius: 999px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.taste__link:hover { background: var(--ink); color: var(--plum); border-color: var(--ink); }

/* ---------- calls (radio) ---------- */
.calls {
  background: var(--grain), var(--plum);
  border-top: 1px solid var(--rule);
  padding: clamp(80px, 10vw, 140px) 0;
}
.calls__inner { width: var(--wrap); margin-inline: auto; position: relative; }
.calls__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.calls__head p { max-width: 38ch; color: var(--ink-2); }
.calls__list { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; border-top: 1px solid rgb(235 234 236 / 0.2); }
.calls__row {
  display: grid; grid-template-columns: minmax(10rem, 3fr) minmax(0, 5fr) 14rem auto;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  width: 100%; padding: clamp(20px, 2.6vw, 30px) 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid rgb(235 234 236 / 0.2);
}
.calls__name {
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 78;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); line-height: 1; letter-spacing: -0.015em;
}
.sono { width: 100%; height: 48px; color: var(--lilac); overflow: visible; }
.sono rect { fill: currentColor; transition: fill 0.3s; }
/* bars all sit on the same baseline, so scaling a group from its bottom squashes each bar from its own */
.sono g {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: idle 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -4s);
}
@keyframes idle { from { transform: scaleY(1); } to { transform: scaleY(0.72); } }
.calls__meta { font-family: var(--f-label); font-size: 1rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; white-space: nowrap;
  min-width: 6.5em;
  font-family: var(--f-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  padding: 10px 16px; border: 1px solid rgb(235 234 236 / 0.3); border-radius: 999px;
  transition: background-color 0.25s, border-color 0.25s;
}
.calls__row:hover .calls__go { background: var(--ink); color: var(--plum); border-color: var(--ink); }
.calls__row:hover .sono { color: var(--ink); }
.calls__row:hover .sono g, .calls__row.is-on .sono g { animation: call 0.45s var(--ease-out) infinite alternate; animation-delay: calc(var(--d, 0) * -1s); }
@keyframes call { from { transform: scaleY(1); } to { transform: scaleY(0.35); } }
/* the station that's playing */
.calls__row[aria-pressed="true"] .calls__name { color: var(--lilac); }
.calls__row[aria-pressed="true"] .calls__meta { color: var(--ink); }
.calls__row[aria-pressed="true"] .calls__go { background: var(--violet-deep); color: #fff; border-color: var(--violet); }
.calls__row[aria-pressed="true"]:hover .calls__go { background: var(--violet); }
.calls__row.is-loading .sono { opacity: 0.55; }
/* bars driven by the real audio (main.js); without it, .is-on's bounce above plays instead */
.calls__row.is-live .sono g { animation: none; }
.calls__row.is-live .sono rect { transition: none; }
.calls.is-away .sono g { animation-play-state: paused; }
.calls__row.is-error .calls__meta { color: var(--amber-ink); }
.i--pause, [aria-pressed="true"] > .i--play, [aria-pressed="true"] .calls__go .i--play { display: none; }
[aria-pressed="true"] > .i--pause, [aria-pressed="true"] .calls__go .i--pause { display: block; }
.calls__ext { margin-top: 18px; font-size: 0.98rem; color: var(--ink-3); }
.calls__ext a { color: var(--ink-2); }
.calls__ext a:hover { color: var(--ink); }

/* radio button in the top bar: plays and pauses from anywhere on the page */
.guide-bar__title { margin-right: auto; }
.guide-bar__radio {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 40px; padding: 0 14px 0 10px; margin-left: -12px;
  font-family: var(--f-label); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--ink); background: none; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px;
  transition: background-color 0.25s, border-color 0.25s;
}
.guide-bar__radio:hover { border-color: var(--lilac); }
.guide-bar__radio[aria-pressed="true"] { background: var(--violet-deep); border-color: var(--violet); color: #fff; }
.guide-bar__radio .i { width: 20px; height: 20px; }
.guide-bar__radio-kind { color: var(--ink-3); }
.guide-bar__radio[aria-pressed="true"] .guide-bar__radio-kind { color: var(--ink-2); }
.guide-bar__radio-name b { font-weight: 700; }
.guide-bar__radio-eq { display: none; align-items: end; gap: 2px; height: 14px; }
.guide-bar__radio-eq i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: 50% 100%; animation: eq 0.9s ease-in-out infinite alternate; }
.guide-bar__radio-eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.3s; }
.guide-bar__radio-eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.5s; }
.guide-bar__radio.is-on .guide-bar__radio-eq { display: inline-flex; }
.guide-bar__radio.is-live .guide-bar__radio-eq i { animation: none; transition: transform 0.08s linear; }
.guide-bar__radio.is-loading .i--pause { animation: blink 1s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes blink { to { opacity: 0.35; } }

/* ---------- where to spot (socials) ---------- */
.spot {
  background: var(--grain), var(--dusk);
  padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 12vw, 160px);
}
.spot__inner { width: var(--wrap); margin-inline: auto; }
.spot__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.spot__head p { max-width: 40ch; color: var(--ink-2); }
.handle { color: var(--ink); font-weight: 500; }
.spot__head .snapped {
  flex-basis: 100%; max-width: 62ch; padding: 12px 16px;
  border-left: 3px solid var(--amber); border-radius: 4px 12px 12px 4px; background: rgb(192 141 69 / 0.08);
  font-size: 1rem; color: var(--ink-2);
}
.snapped b { color: var(--amber-ink); }
.snapped a { color: var(--ink); }
.range {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px);
}
.range__group h3 {
  font-family: var(--f-label); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac);
  padding-bottom: 12px; border-bottom: 1px solid var(--violet);
}
.range__group > p { margin-top: 14px; color: var(--ink-2); font-size: 0.98rem; }
/* each link is its own soft tile: the icon in a round badge, the name, and what it's for */
.range ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.range li a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: center;
  height: 100%; padding: 10px 14px 10px 10px; text-decoration: none;
  background: rgb(235 234 236 / 0.035); border: 1px solid var(--rule); border-radius: 14px;
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.range li a:hover, .range li a:focus-visible {
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-color: color-mix(in srgb, var(--brand) 60%, transparent); transform: translateY(-2px);
}
.range li a .i {
  grid-row: span 2; box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand-ink, var(--brand));
  transition: color 0.2s, background-color 0.25s, transform 0.3s var(--ease-out);
}
.range__name { font-weight: 700; line-height: 1.25; }
.range__name {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c20-3 38 1 58-1s40-2 58 1' fill='none' stroke='%23903bdc' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 0% 6px;
  justify-self: start; padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out);
}
.range__what { font-size: 0.92rem; color: var(--ink-3); overflow-wrap: anywhere; line-height: 1.3; }
.range li a:hover .i { color: var(--brand-on, #fff); background: var(--brand); transform: rotate(-8deg); }
/* each app in its own colour. --brand fills the badge on hover; --brand-ink is the
   icon at rest, lifted where the real colour is too dark to read on the page */
.range li a { --brand: var(--violet); --brand-ink: var(--lilac); }
.range a[href*="playbook.com"] { --brand: #6c5ce7; --brand-ink: #a99ff5; }
.range a[href*="t.me"] { --brand: #2aabee; --brand-ink: #5cc2f5; }
.range a[href*="furtrack.com"] { --brand: #e8833a; --brand-ink: #f0a468; }
.range a[href*="bsky.app"] { --brand: #1185fe; --brand-ink: #5aaaff; }
.range a[href*="x.com"] { --brand: #e7e9ea; --brand-ink: #e7e9ea; --brand-on: #0f1419; }
.range a[href*="discord.com"] { --brand: #5865f2; --brand-ink: #8b94f7; }
.range a[href*="twitch.tv"] { --brand: #9146ff; --brand-ink: #b685ff; }
.range a[href*="tiktok.com"] { --brand: #fe2c55; --brand-ink: #ff6b86; }
.range a[href*="steamcommunity.com"] { --brand: #66c0f4; --brand-ink: #8fd0f7; --brand-on: #171a21; }
.range a[href*="spotify.com"] { --brand: #1ed760; --brand-ink: #4fe183; --brand-on: #0b2e17; }
.range a[href*="last.fm"] { --brand: #d51007; --brand-ink: #f05048; }
.range a[href*="ko-fi.com"] { --brand: #ff5e5b; --brand-ink: #ff8a88; }
.range a[href*="paypal"] { --brand: #0070e0; --brand-ink: #4da0f0; }
.range li a:hover .range__name, .range li a:focus-visible .range__name { background-size: 100% 6px; }
.range__group--support h3 { color: var(--amber-ink); border-color: var(--amber); }
.range__group--support .range__name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c20-3 38 1 58-1s40-2 58 1' fill='none' stroke='%23c08d45' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- stickers (SeventhVoid's own) ---------- */
.sticker {
  width: clamp(96px, 10vw, 140px); height: auto;
  margin-right: auto; margin-left: clamp(4px, 1.5vw, 20px);
  --r: -6deg;
  transform: rotate(var(--r));
  filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35));
  align-self: center;
}
.sticker--tilt { --r: 7deg; }

/* ---------- forest floor (footer) ---------- */
.floor {
  background: var(--grain), var(--soil);
  padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  border-top: 1px solid rgb(192 141 69 / 0.25);
}
.floor__inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 40px;
}
.cache { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.cache__sticker { --r: -5deg; grid-row: span 2; width: 110px; height: auto; transform: rotate(var(--r)); filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); }
.cache__row { display: flex; gap: 10px; }
.cache__slot { width: 30px; height: 42px; opacity: 0.22; filter: grayscale(1); transition: opacity 0.5s, filter 0.5s, transform 0.6s var(--ease-out); }
.cache__slot.is-filled { opacity: 1; filter: none; transform: translateY(-4px) rotate(-6deg); }
.cache__slot.is-new { animation: pop 0.6s var(--ease-out); }
@keyframes pop { 0% { transform: translateY(-20px) scale(1.6) rotate(20deg); } 100% { transform: translateY(-4px) rotate(-6deg); } }
.cache__text { margin-top: 16px; color: var(--floor-ink-2); font-size: 1.35rem; line-height: 1.15; max-width: 30ch; } /* the same pencil hand as the secret stash note */
.cache.is-full .cache__text { color: var(--amber-ink); }

/* the secret stash: only there once all seven are cached */
.stash {
  grid-column: 1 / -1; margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgb(217 172 108 / 0.35);
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  animation: stash-in 0.8s var(--ease-out) both;
}
.stash__sticker { --r: 6deg; grid-row: span 2; width: 96px; height: auto; transform: rotate(var(--r)); filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); transition: transform 0.3s var(--ease-out); }
.stash__sticker:hover { transform: rotate(0deg) scale(1.05); }
.stash__note { color: var(--amber-ink); font-size: 1.35rem; line-height: 1.15; max-width: 26ch; }
.stash__again {
  justify-self: start; margin-top: 10px; padding: 5px 14px; border: 1px solid rgb(217 172 108 / 0.4); border-radius: 999px;
  background: none; color: var(--floor-ink-2); font: 600 0.82rem var(--f-label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.stash__again:hover { border-color: var(--amber-ink); color: var(--floor-ink); }
@keyframes stash-in { from { opacity: 0; transform: translateY(14px); } }

/* the finale: leaves and acorns fall, and the fox carries the squirrel off */
.shower { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.shower__bit {
  position: absolute; top: -60px; width: calc(46px * var(--s)); aspect-ratio: 100 / 170;
  animation: fall linear both;
}
.shower__bit--acorn { width: calc(26px * var(--s)); aspect-ratio: 60 / 86; }
.shower__bit svg { width: 100%; height: 100%; display: block; }
@keyframes fall {
  from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  to { transform: translate(var(--drift), calc(100vh + 120px)) rotate(var(--spin)); opacity: 0; }
}
.dash {
  --w: 135px; --h: 70.5px;
  position: absolute; left: 0; bottom: 18px; width: var(--w); height: var(--h);
  background: url("../Images/fox-squirrel-run.png") 0 0 / calc(var(--w) * 6) var(--h) no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0.45));
  animation: dash-legs 0.42s steps(6) infinite, dash-across 3.4s linear 0.6s both;
}
@keyframes dash-legs { to { background-position-x: calc(var(--w) * -6); } }
@keyframes dash-across { from { transform: translateX(calc(var(--w) * -1)); } to { transform: translateX(100vw); } }
.floor__sign { text-align: right; color: var(--floor-ink-3); font-size: 0.95rem; }
.floor__name {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; color: var(--floor-ink); margin-bottom: 12px;
}
.floor__sign .pencil { margin-top: 10px; color: var(--amber-ink); font-size: 1.5rem; }
.floor__cookies { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.floor__cookies img { width: 56px; height: auto; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.35)); }
.specimen--floor-leaf { --leaf: var(--bark); --r: 112deg; width: 150px; aspect-ratio: 100/170; height: auto; left: 38%; bottom: -70px; transform: rotate(var(--r)); opacity: 0.55; z-index: 1 !important; animation: sway 9s ease-in-out infinite alternate; }
.specimen--floor-leaf2 { --leaf: var(--leaf-ochre); --r: -150deg; width: 96px; aspect-ratio: 80/150; height: auto; left: 55%; top: -30px; transform: rotate(var(--r)); opacity: 0.4; z-index: 1 !important; animation: sway 7s ease-in-out -3s infinite alternate; }

/* 20th tap: 500 cigarettes rain down and fade out on the way */
.cig {
  position: absolute; top: -60px; width: calc(5px * var(--s)); height: calc(40px * var(--s));
  border-radius: 1px;
  background: linear-gradient(180deg, #ff6a2a 0 5%, #6d6660 5% 10%, #f4f0e8 10% 70%, #c9803e 70% 100%);
  rotate: var(--r);
  animation: fall linear both;
}

/* 40th tap: time stops */
.za { position: fixed; inset: 0; z-index: 70; overflow: hidden; touch-action: none; }
.za__grey {
  position: absolute; inset: 0;
  -webkit-backdrop-filter: grayscale(1) contrast(1.1); backdrop-filter: grayscale(1) contrast(1.1);
  animation: za-spread 1s cubic-bezier(0.3, 0, 0.2, 1) 0.3s both;
}
.za__ring {
  position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  border-radius: 50%;
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg); backdrop-filter: invert(1) hue-rotate(180deg);
  -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 90%, #000 96%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 84%, #000 90%, #000 96%, transparent 100%);
  animation: za-ring 1s cubic-bezier(0.3, 0, 0.2, 1) 0.3s both;
}
.za.is-undoing .za__grey { animation: za-gather 0.9s cubic-bezier(0.8, 0, 0.7, 1) both; }
.za.is-undoing .za__ring { animation: za-ring-back 0.9s cubic-bezier(0.8, 0, 0.7, 1) both; }
@keyframes za-spread { from { clip-path: circle(0 at 50% 50%); } to { clip-path: circle(85vmax at 50% 50%); } }
@keyframes za-gather { from { clip-path: circle(85vmax at 50% 50%); } to { clip-path: circle(0 at 50% 50%); } }
@keyframes za-ring { 0% { transform: scale(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes za-ring-back { 0% { transform: scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(0); opacity: 1; } }
.duo.za-duo {
  position: fixed; z-index: 71; opacity: 1; pointer-events: none;
  transform-origin: 50% 50%;
  transition: transform 0.7s var(--ease-out);
}
/* everything else holds still while time is stopped */
html.is-frozen *:not(.za, .za *, .za-duo), html.is-frozen *::before, html.is-frozen *::after { animation-play-state: paused !important; }

/* ---------- entrances ---------- */
.species__name, .species__lede, .species__actions, .plate--hero {
  animation: rise 0.9s var(--ease-out) both;
}
.species__lede { animation-delay: 0.12s; }
.species__actions { animation-delay: 0.24s; }
.plate--hero { animation-name: rise-plate; animation-delay: 0.1s; animation-duration: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-plate { from { transform: translateY(24px); } }

/* sections simply sit in place as you scroll: no fade or slide in */

/* ---------- hidden acorns ---------- */
.acorn-count {
  position: fixed; z-index: 65; pointer-events: none;
  padding: 3px 10px; border-radius: 999px; translate: -50% -100%;
  font-family: var(--f-label); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  color: var(--night); background: var(--amber-ink); box-shadow: 0 6px 14px rgb(0 0 0 / 0.4);
  animation: acorn-count 1.3s var(--ease-out) both;
}
@keyframes acorn-count {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  15% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  25% { transform: translateY(-6px) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px); }
}
@media (prefers-reduced-motion: reduce) { .acorn-count { animation: none; } } /* it just shows, then goes */
.acorn-find {
  position: absolute; left: var(--x); top: var(--y);
  width: 30px; height: 42px; padding: 0; margin: -21px 0 0 -15px;
  background: none; border: 0; cursor: pointer;
  transform: rotate(var(--r, 0deg));
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 4;
}
.acorn-find svg { width: 100%; height: 100%; display: block; }
.acorn-find:hover { opacity: 1; animation: wobble 0.6s ease-in-out; }
.acorn-find.is-taken { animation: take 0.55s var(--ease-out) forwards; pointer-events: none; }
@keyframes wobble { 0%, 100% { transform: rotate(var(--r)); } 30% { transform: rotate(calc(var(--r) - 14deg)); } 65% { transform: rotate(calc(var(--r) + 10deg)); } }
@keyframes take { to { transform: translateY(-30px) rotate(calc(var(--r) + 180deg)) scale(0.2); opacity: 0; } }
.viewer .acorn-find { position: static; margin: 0; width: 22px; height: 30px; }

/* ---------- plate viewer ---------- */
.viewer {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 3vw, 40px);
  border: 0; background: rgb(12 10 19 / 0.97); color: var(--ink);
  flex-direction: column; justify-content: center; align-items: center; gap: 18px;
}
.viewer[open] { display: flex; animation: viewer-in 0.4s var(--ease-out); }
.viewer::backdrop { background: transparent; }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; min-height: 0; }
html:has(.viewer[open]) { overflow: hidden; }
.viewer img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; max-width: 100%; object-fit: contain; }
.viewer__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.viewer__more, .viewer__close {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; padding: 0 1.1em;
  font-family: var(--f-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  border-radius: 999px; border: 1px solid var(--rule); background: none; cursor: pointer; text-decoration: none;
}
.viewer__close { background: var(--ink); color: var(--night); border-color: var(--ink); }
.viewer__more:hover { border-color: var(--lilac); }
.viewer__step { display: inline-flex; align-items: center; gap: 4px; }
.viewer__step[hidden] { display: none; }
.viewer__prev, .viewer__next {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--rule); background: none; color: inherit; cursor: pointer;
}
.viewer__prev:hover, .viewer__next:hover { border-color: var(--lilac); }
.viewer__count { min-width: 3.5em; text-align: center; font-family: var(--f-label); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }
@keyframes viewer-in { from { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  /* room for the Telegram button next to the tabs */
  .guide-bar:has(.guide-bar__tg:not([hidden])) .guide-bar__pre { display: none; }
  .guide-bar__title { font-size: 1rem; }
  .guide-bar__tabs a { padding-inline: 10px; }
  .guide-bar__radio-kind { display: none; }
}

@media (max-width: 900px) {
  :root { --bar-h: 56px; }
  .mark-line__thin { display: none; }
  .mark-line__main { stroke-width: 2.4; }
  /* phones and small tablets: the tabs fold into a menu that drops down under the bar */
  .guide-bar { gap: 12px; }
  .guide-bar__title { overflow: hidden; text-overflow: ellipsis; }
  .guide-bar__menu {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; margin-right: -8px;
    color: var(--ink); background: none; cursor: pointer;
    border: 1px solid transparent; border-radius: 999px;
    transition: border-color 0.25s, background-color 0.25s;
  }
  .guide-bar__menu .i { width: 26px; height: 26px; }
  .guide-bar__menu:hover { border-color: var(--rule); }
  .guide-bar__menu[aria-expanded="true"] { background: var(--plum); border-color: var(--rule); }
  .guide-bar__radio { order: 1; margin-left: 0; height: 40px; padding: 0 12px 0 9px; }
  .guide-bar__menu { order: 2; }
  .guide-bar__tg { order: 1; }
  .guide-bar__menu[aria-expanded="true"] .i--open, .guide-bar__menu[aria-expanded="false"] .i--shut { display: none; }
  .guide-bar__tabs {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px calc(var(--gutter) - 18px) 18px;
    background: var(--night);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 32px -12px rgb(0 0 0 / 0.5);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .guide-bar.is-open .guide-bar__tabs { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
  .guide-bar__tabs a { padding: 11px 18px; font-size: 1.2rem; }
  /* never taller than the screen (phones on their side): scroll inside it instead */
  .guide-bar__tabs { max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain; }
  /* main.js never ran: no menu button, so keep the links on show under the title */
  html:not(.js) { --bar-h: auto; scroll-padding-top: 100px; }
  html:not(.js) .guide-bar { height: auto; flex-wrap: wrap; gap: 6px; padding-block: 10px; }
  html:not(.js) .guide-bar__menu { display: none; }
  html:not(.js) .guide-bar__tabs {
    position: static; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding: 0;
    background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none;
  }
  html:not(.js) .guide-bar__tabs a { padding: 5px 12px; font-size: 0.95rem; }

  .species { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .species__lede { max-width: 36ch; }
  .plate--hero { width: min(100%, 440px); }

  .entry__head, .entry__more { grid-column: 1 / -1; }
  .entry__fig { grid-column: 2 / 12; grid-row: auto; width: 100%; max-width: 380px; justify-self: center; }

  .plates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "a a" "b c" "d d" "e e" "r r";
  }
  .drawers { padding-left: 0; }

  .calls__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; }
  .taste { grid-template-columns: 1fr; justify-items: start; }
  .vr__extras { grid-template-columns: 1fr; }
  .vr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "w w" "p g" "s s" "v v"; }
  .vr__shot--tall .plate__open { aspect-ratio: 3 / 4; }
  .vr__shot--tall:nth-child(4) .plate__open { aspect-ratio: 16 / 10; }
  .sono { grid-column: 1 / -1; grid-row: 2; }
  .calls__meta { grid-column: 1 / -1; grid-row: 3; }

  .floor__sign { text-align: left; }
  .floor__cookies { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .guide-bar__title { font-size: 0.98rem; }

  /* phones: a tighter rhythm, so the page reads in fewer thumb-scrolls */
  h2 { font-size: 2.35rem; }
  .entry, .plates, .events, .vr, .calls, .spot { padding-block: 56px; }
  .plates__grid, .vr__grid, .range { margin-top: 28px; }
  .sticker { width: 76px; }

  .species { padding-top: 28px; padding-bottom: 56px; }
  .plate--hero { width: min(100%, 400px); }

  .entry__inner { row-gap: 28px; }
  .entry__head h2 { font-size: 2.1rem; }
  .entry__intro { margin-top: 18px; font-size: 1.12rem; }
  .entry__intro--more { margin-top: 12px; }
  .entry__fig { max-width: 190px; }
  .entry__marks > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  /* phones: the details fold away behind a button */
  .entry__more-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    font-family: var(--f-label); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
    border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; list-style: none;
  }
  .entry__more-btn::-webkit-details-marker { display: none; }
  .entry__more-btn::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s; }
  .entry__more[open] .entry__more-btn { margin-bottom: 8px; }
  .entry__more[open] .entry__more-btn::after { transform: translateY(2px) rotate(-135deg); }
  .entry__more-btn:hover { border-color: var(--lilac); }

  /* photos as a mosaic rather than a long stack; tap any one to see it whole */
  .plates__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    grid-template-areas: "a a" "b c" "d e" "r r";
  }
  .plate__open { padding: 5px; }
  .plate--d img, .plate--e img { aspect-ratio: 4 / 3; object-fit: cover; }
  .drawers { margin-top: 18px; }
  .drawers__list { margin-top: 16px; }
  .drawers__list a { grid-template-columns: minmax(0, 1fr) auto 1.2rem; padding-block: 12px; }
  .drawers__name, .drawers__count { font-size: 1.12rem; }
  .drawers__unit { display: none; }

  .upcoming { margin-top: 28px; }
  .events__sub--past { margin-top: 36px; }
  .events__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .events__list--single { grid-template-columns: 1fr; }
  .events__list li { padding: 14px; gap: 8px; }
  .events__list li:has(.events__photo) { min-height: 0; }
  .events__name { font-size: 1.2rem; }
  .events__count { margin-top: -4px; font-size: 0.92rem; }
  .events__link { font-size: 0.92rem; }
  .events__kind { font-size: 0.76rem; padding: 3px 8px; }

  .vr__grid { gap: 10px; grid-template-areas: "w w" "p g" "v s"; }
  .vr__shot .plate__open img { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
  .vr__shot--tall .plate__open { min-height: 0; }
  .vr__shot--tall:nth-child(4) .plate__open, .vr__shot--wide2 .plate__open { aspect-ratio: 1; }
  .vr__extras { margin-top: 36px; gap: 32px; }
  .vr__kit li { padding-block: 10px; }
  .vr__kit-name { font-size: 1.1rem; }

  .calls__list { margin-top: 28px; }
  .calls__row { padding-block: 14px; row-gap: 8px; }
  .calls__name { font-size: 1.6rem; }
  .sono { height: 28px; }
  .calls__meta { font-size: 0.9rem; }
  .calls__go { padding: 7px 12px; font-size: 0.95rem; }
  .taste { margin-top: 28px; gap: 12px; }
  .taste__list { gap: 8px; }
  .taste__list li { padding: 5px 12px; font-size: 0.95rem; }

  /* socials two to a row */
  .range { gap: 28px; }
  .range ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .range li a { grid-template-columns: 34px minmax(0, 1fr); column-gap: 9px; padding: 9px 10px 9px 8px; }
  .range li a .i { width: 34px; height: 34px; padding: 8px; }
  .range__what { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

  .floor { padding-block: 44px 76px; } /* room for the acorn hidden under the sign */
  .floor__inner { gap: 28px; }
  .cache { column-gap: 14px; }
  .cache__sticker { width: 64px; max-width: none; }
  .cache__row { gap: 6px; }
  .cache__slot { width: 24px; height: 34px; }
  .cache__text { margin-top: 10px; font-size: 1.15rem; }
  .stash { column-gap: 12px; }
  .stash__sticker { width: 64px; }
  .stash__note { font-size: 1.15rem; }
  /* the floor leaves are decoration: float them rather than pad out the footer */
  .floor > .specimen { position: absolute; }
  .specimen--floor-leaf2 { left: auto; right: -34px; }
  .upcoming__link { grid-column: 2; justify-self: start; }
  .upcoming__list li { grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 14px; row-gap: 10px; padding: 12px 0; }
  .upcoming__list li.upcoming__item--art { min-height: 0; margin-top: 12px; padding: 14px 16px 26px; }
  .upcoming__date span { font-size: 1.9rem; }
  .upcoming__date { font-size: 0.85rem; }
  .upcoming__name { margin: 0; font-size: 1.2rem; line-height: 1.15; }
  .upcoming__where { display: block; margin-top: 4px; font-size: 0.92rem; line-height: 1.35; color: var(--ink-2); }
  .upcoming__link { padding: 6px 12px; font-size: 0.9rem; }
  .upcoming__item--art::before {
    background: linear-gradient(180deg, rgb(24 17 12 / 0.9) 0%, rgb(24 17 12 / 0.78) 60%, rgb(24 17 12 / 0.45) 100%);
  }
  .specimen--entry-leaf { display: none; }
  /* the Last.fm button may wrap rather than push past the screen edge */
  .taste__link { white-space: normal; max-width: 100%; }
  /* the acorn slots shrink to fit next to the sticker on the narrowest phones */
  .cache__row { min-width: 0; }
  .cache__slot { flex: 0 1 24px; min-width: 14px; height: auto; aspect-ratio: 24 / 34; }
}

/* phones on their side: the menu goes two across so it fits the short screen */
@media (max-width: 900px) and (max-height: 500px) {
  .guide-bar__tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .guide-bar__tabs a { padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
[hidden] { display: none !important; }
