/* =============================================================================
   GOTHAM — shared design system for thejerrycheng.github.io
   NYC art deco × golden-age comic book, sibling of the MABEL site.
   Aged newsprint ground, Gotham-navy night for the covers, comic red for the
   highlight, deco brass on dark. Limelight (marquee display) · Bangers (action
   lettering) · Jost (everything you read) · Space Mono (numbers, dates, units).
   Surfaces are flat print: solid panel fills, 2 px ink line-work, hard offset
   shadows. No glass, no blur, no soft shadows.
   One stylesheet, used by every page.
   ============================================================================= */

:root {
  /* aged comic newsprint */
  --bone:      #F4EAD2;
  --paper:     #ECDFBC;
  --paper-2:   #E0D0A6;
  --panel:     #FDF6E2;   /* the white of a comic panel */
  --panel-2:   #FFFDF0;   /* hover / denser */
  /* Gotham night */
  --ink:       #151820;
  --ink-soft:  #2A2E3A;
  --night-2:   #1E2333;
  --night-3:   #2C3148;
  --ash:       #6D6551;
  --ash-light: #A99F87;
  /* printed colour — three voices */
  --hi:        #E4442A;   /* the highlight: warm comic red */
  --hi-deep:   #B92E17;   /* its hover and its shadow */
  --pop:       #FFCE0A;   /* the shout: cab yellow, at most one per screen */
  --pop-deep:  #E0A800;
  --rust:      #C6301A;   /* the deep voice: bursts, seals */
  /* support */
  --yellow:    #F2C94C;   /* narration boxes */
  --gold:      #D9A13F;   /* deco brass, the accent on night */
  --gold-deep: #B77E1E;
  --blue:      #23577E;
  --green:     #2E7D4F;

  --font-display: 'Limelight', 'Arial Narrow', Impact, sans-serif;
  --font-comic:   'Bangers', 'Arial Black', Impact, sans-serif;
  --font-sans:    'Jost', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'Space Mono', 'SFMono-Regular', Menlo, monospace;
  --sans-sc:      'Jost', 'Noto Sans SC', 'PingFang SC', sans-serif;

  /* print recipe */
  --line-w:    2px;
  --line:      var(--ink);                 /* line-work: ink by day, brass by night */
  --line-soft: rgba(21,24,32,0.35);
  --wash:      rgba(21,24,32,0.07);        /* hover wash on panels */
  --sh-c:      var(--sh-c);         /* hard-shadow colour */
  --imp:       #E0611A;                    /* IMPORTANT TEXT: one orange, never changes with the theme */
  --link:      var(--imp);                 /* small text accents / links */
  --cream:     #F4EAD2;                    /* constant: type on the night sky */
  --sh-xs:     2px 2px 0 var(--sh-c);
  --sh-sm:     4px 4px 0 var(--sh-c);
  --sh:        6px 6px 0 var(--sh-c);
  --sh-lg:     8px 8px 0 var(--sh-c);
  --sh-night:  6px 6px 0 rgba(0,0,0,0.8);
  --dots-ink:   radial-gradient(rgba(21,24,32,0.13) 1px, transparent 1.6px);
  --dots-cream: radial-gradient(rgba(244,234,210,0.12) 1px, transparent 1.6px);
  --dots-red:   radial-gradient(rgba(198,48,26,0.16) 1px, transparent 1.6px);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* layout */
  --nav-h:     52px;
  --maxw:      1040px;
  --radius:    10px;
  --radius-sm: 6px;
  --gap:       64px;

  /* legacy aliases so older inline styles keep resolving */
  --accent:      var(--hi);
  --accent-ink:  var(--hi-deep);
  --text:        var(--ink);
  --text-2:      var(--ink-soft);
  --text-3:      var(--ash);
  --nm:          var(--bone);
  --beige:       var(--bone);
  --sans:        var(--font-sans);
  --mono:        var(--font-mono);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-top: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}
::selection { background: var(--hi); color: #FFF9F0; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 700; }
p  { font-size: 15.5px; line-height: 1.62; }
a  { color: inherit; }
strong, b { font-weight: 600; }
em { color: var(--ink-soft); }
img { max-width: 100%; display: block; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
.accent { color: var(--link); font-weight: 600; }

/* --- Layout wrappers --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--gap) 20px 0; }
.section:last-of-type { padding-bottom: var(--gap); }
[id] { scroll-margin-top: calc(var(--nav-h) + 28px); }

/* Section title — marquee lettering, with a deco double rule running out to
   the right edge and a red diamond where the rule starts. */
.section-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: 0.02em; line-height: 1.1; color: var(--ink);
  margin-bottom: 26px; display: flex; align-items: center; gap: 16px;
}
.section-title::before { content: "◆"; color: var(--imp); font-size: 12px; margin-top: 2px; order: 1; }
.section-title::after {
  content: ""; flex: 1; height: 7px; order: 2; opacity: 0.85;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat,
              linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
}

/* Kickers — action lettering */
.kicker {
  font-family: var(--font-comic); font-weight: 400; font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--imp); line-height: 1.2;
}

/* =============================================================================
   NAV — a floating masthead sticker: solid print, ink line, hard shadow
   ============================================================================= */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000;
  width: -moz-fit-content; width: fit-content; max-width: min(calc(100% - 20px), 1120px);
  height: var(--nav-h);
  background: var(--panel);
  border: var(--line-w) solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .3s var(--ease-out), top .3s var(--ease-out);
}
.nav.scrolled { top: 8px; box-shadow: 5px 6px 0 var(--sh-c); }
.nav-inner { height: 100%; padding: 0 14px 0 16px; display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: 0.05em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--line); }
/* the marquee bulb */
.brand .bulb {
  width: 9px; height: 9px; border-radius: 50%; background: var(--hi); border: 1.5px solid var(--line);
  box-shadow: 0 0 0 3px rgba(228,68,42,0.18); animation: bulb 2.4s ease-in-out infinite;
}
@keyframes bulb { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .nav-links button {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink);
  opacity: .78; text-decoration: none; padding: 7px 12px; border-radius: 8px;
  background: transparent; border: 0; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links button:hover { opacity: 1; background: var(--wash); }
.nav-links a[aria-current="page"] { opacity: 1; background: var(--ink); color: var(--panel); }
.caret { font-size: 9px; opacity: .7; }

/* Robolog dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); right: 0; min-width: 270px; padding: 8px;
  background: var(--panel); border: var(--line-w) solid var(--line); border-radius: 12px;
  box-shadow: 5px 5px 0 var(--sh-c);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink); transition: background .15s ease, color .15s ease;
}
.dropdown-menu a:hover { background: rgba(228,68,42,0.12); color: var(--link); }
.dropdown-menu .ico {
  width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-size: 18px; background: var(--bone); border: 1.5px solid var(--line);
}
.dropdown-menu .label { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.dropdown-menu .label small { font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; color: var(--ash); margin-top: 2px; }

.menu-btn {
  display: none; cursor: pointer; margin-left: auto;
  font-family: var(--font-comic); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--panel); border: var(--line-w) solid var(--line);
  border-radius: 8px; padding: 6px 12px 5px; box-shadow: 3px 3px 0 var(--sh-c);
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-btn:active, .menu-btn[aria-expanded="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh-c); }

/* Mobile menu sheet */
.mobile-menu {
  position: fixed; top: calc(var(--nav-h) + 22px); left: 12px; right: 12px; z-index: 1001;
  padding: 10px; border-radius: 12px; background: var(--panel);
  border: var(--line-w) solid var(--line); box-shadow: var(--sh);
}
.mobile-menu a {
  display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: 15px; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.mobile-menu a:hover { background: rgba(228,68,42,0.12); color: var(--link); }
.mobile-menu hr { border: 0; height: 2px; margin: 8px 4px; background: var(--line); opacity: .85; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(21,24,32,0.35); z-index: 1000; }
[hidden] { display: none !important; }

/* =============================================================================
   PANELS + BUTTONS — flat ink on paper, printed slightly out of register
   ============================================================================= */
.card {
  background: var(--panel);
  border: var(--line-w) solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh);
}
.card-pad { padding: 28px 28px; }
.card-hover { transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s ease; }
.card-hover:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); background: var(--panel-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px 8px; border-radius: 8px; white-space: nowrap;
  font-family: var(--font-comic); font-weight: 400; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--panel); border: var(--line-w) solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s ease, color .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh); background: var(--panel-2); color: var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: var(--sh-xs); }
.btn img, .btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--hi); color: #FFF9F0; }
.btn-primary:hover { background: var(--hi-deep); color: #FFF9F0; }
.btn-pop { background: var(--pop); color: var(--ink); }
.btn-pop:hover { background: var(--hi); color: #FFF9F0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-row-social { gap: 10px; margin-top: 26px; }
.btn-row-social .btn { min-width: 88px; padding: 9px 14px 8px; }

/* Small link chips (paper links / project links) */
.links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  font-family: var(--font-comic); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 9px 5px; border: 1.5px solid var(--line); border-radius: 5px; background: var(--bone);
  box-shadow: var(--sh-xs); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.links a::before { content: "↗"; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.links a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--sh-c); background: var(--hi); color: #FFF9F0; }

/* Deco chevron band — the marquee's edge */
.deco-band {
  height: 12px; background: repeating-linear-gradient(45deg, var(--gold) 0 8px, var(--ink) 8px 16px);
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
}

/* Comic starburst — "NEW!" pinned to a media panel's corner */
.burst {
  position: relative; display: inline-grid; place-items: center;
  width: 104px; aspect-ratio: 1; padding: 20px;
  font-family: var(--font-comic); font-size: 20px; letter-spacing: 0.04em; line-height: .95;
  color: #FFF6E4; text-transform: uppercase; text-align: center;
  transform: rotate(-7deg); filter: drop-shadow(4px 4px 0 var(--sh-c));
  z-index: 3; pointer-events: none;
}
.burst::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--rust);
  clip-path: polygon(100% 50%, 85.31% 57.02%, 96.19% 69.13%, 79.93% 70%, 85.36% 85.36%, 70% 79.93%, 69.13% 96.19%, 57.02% 85.31%, 50% 100%, 42.98% 85.31%, 30.87% 96.19%, 30% 79.93%, 14.64% 85.36%, 20.07% 70%, 3.81% 69.13%, 14.69% 57.02%, 0% 50%, 14.69% 42.98%, 3.81% 30.87%, 20.07% 30%, 14.64% 14.64%, 30% 20.07%, 30.87% 3.81%, 42.98% 14.69%, 50% 0%, 57.02% 14.69%, 69.13% 3.81%, 70% 20.07%, 85.36% 14.64%, 79.93% 30%, 96.19% 30.87%, 85.31% 42.98%);
}
.burst.pin { position: absolute; top: -30px; right: -22px; }

/* Narration caption — the yellow box that says "MEANWHILE…" */
.caption-box {
  display: inline-block; background: var(--yellow); color: var(--ink);
  border: var(--line-w) solid var(--line); border-radius: 3px; box-shadow: 3px 3px 0 var(--sh-c);
  padding: 4px 10px; transform: rotate(-1deg);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
}

/* =============================================================================
   NIGHT — the covers (home hero, page heads, footer): Gotham sky, brass
   searchlights, an ink skyline along the bottom edge
   ============================================================================= */
.night {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(ellipse 70% 55% at 50% 104%, rgba(217,161,63,0.30), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--night-2) 55%, var(--night-3) 100%);
}
.night::before {   /* cream halftone screen, fading from the top */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--dots-cream); background-size: 22px 22px; opacity: .35;
  mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 70%);
}
.night-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; left: 34%; bottom: -2%; width: 160vmax; height: 160vmax;
  transform-origin: 0 0; opacity: .9;
  background: conic-gradient(from 0deg, rgba(217,161,63,0.24) 0deg, rgba(217,161,63,0.05) 5deg, rgba(217,161,63,0) 8deg);
  animation: sweep 16s ease-in-out infinite alternate;
}
.beam.b2 { left: 66%; animation-duration: 21s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes sweep { from { transform: rotate(-120deg); } to { transform: rotate(-58deg); } }
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none;
  height: clamp(90px, 15vw, 190px);
  background: url("../images/gotham-skyline.svg") center bottom / auto 100% repeat-x;
}
.night > .wrap, .night .cover-inner { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .beam { animation: none; transform: rotate(-95deg); }
  .brand .bulb { animation: none; }
}

/* ---- Home cover ---- */
.cover { margin-top: calc(-1 * (var(--nav-h) + 24px)); padding: calc(var(--nav-h) + 72px) 0 clamp(120px, 18vw, 230px); }
.cover-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.cover .kicker { color: var(--imp); margin-bottom: 18px; text-shadow: none; -webkit-text-stroke: .7px #151820; paint-order: stroke fill; }
.cover-name {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 5.6vw, 72px); /* sized so "Jerry (Qǐlóng)" holds one line */
  line-height: .95; letter-spacing: 0.015em; color: var(--cream);
  text-shadow: 5px 5px 0 rgba(0,0,0,0.55);
}
.cover-sc {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(18px, 2.6vw, 34px); margin-top: 12px;
  font-family: 'ZCOOL QingKe HuangYou', 'ZCOOL XiaoWei', 'PingFang SC', 'Noto Sans SC', sans-serif; font-weight: 400;
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.1; letter-spacing: .16em; color: var(--imp);
  text-shadow: 4px 4px 0 #151820;
}
.cover-tag {
  font-family: var(--font-comic); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.1; letter-spacing: .03em;
  color: var(--cream); margin-top: 18px; max-width: 18ch;
}
/* Pronunciation control: to the right of the surname, with its own caption.
   Press it and a speech bubble types out how the name sounds in English. */
.say-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px; line-height: 1; letter-spacing: 0; text-shadow: none; font-family: var(--font-sans); }
.say-name {
  display: grid; place-items: center; box-sizing: border-box; width: 54px; height: 54px; padding: 0;
  border-radius: 50%; cursor: pointer; text-shadow: none;
  background: var(--panel); border: 2px solid var(--line); color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,0.8);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.say-name svg { width: 50%; height: 50%; fill: currentColor; margin-left: 8%; }
.say-name:hover, .say-name:focus-visible { background: var(--hi); color: #FFF9F0; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,0.8); outline: none; }
.say-name.playing { background: var(--yellow); color: #151820; border-color: #151820; animation: sayPulse .9s ease-in-out infinite; }
@keyframes sayPulse { 50% { transform: scale(1.08); } }
.say-cap { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ash-light); white-space: nowrap; }
/* the bubble */
.say-bubble {
  position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-10%); z-index: 4;
  background: var(--yellow); color: #151820; border: 2px solid #151820; border-radius: 14px;
  padding: 8px 16px 5px; box-shadow: 4px 4px 0 rgba(0,0,0,0.8); white-space: nowrap;
  font-family: var(--font-comic); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .06em; line-height: 1.1;
  animation: bubblePop .35s var(--spring) both;
}
.say-bubble::before, .say-bubble::after { content: ''; position: absolute; left: 14%; }
.say-bubble::before { bottom: -16px; border: 8px solid transparent; border-top: 16px solid #151820; border-left-width: 4px; border-right-width: 12px; }
.say-bubble::after { bottom: -10.5px; left: calc(14% + 2.5px); border: 6px solid transparent; border-top: 13px solid var(--yellow); border-left-width: 3px; border-right-width: 9px; }
.say-bubble.gone { animation: bubbleGone .25s ease-in both; }
@keyframes bubblePop { from { opacity: 0; transform: translateX(-10%) translateY(12px) scale(.4) rotate(-6deg); } to { opacity: 1; transform: translateX(-10%); } }
@keyframes bubbleGone { to { opacity: 0; transform: translateX(-10%) translateY(-10px) scale(.9); } }
.say-typed::after { content: '|'; margin-left: 2px; animation: caret .5s steps(1) infinite; }
.say-typed.done::after { content: ''; }
@keyframes caret { 50% { opacity: 0; } }
.say-bubble small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; font-weight: 700; margin-top: 3px; opacity: .8; }
/* comic words flung out when it is pressed */
.say-fx { position: absolute; z-index: 5; pointer-events: none; font-size: clamp(20px, 2.4vw, 30px); }
.say-fx.f0 { right: -70px; top: -14px; animation-delay: 0s; }
.say-fx.f1 { left: -64px; bottom: 6px; animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .say-name.playing { animation: none; } .say-bubble { animation: none; } .say-fx { display: none; } }
@media (max-width: 620px) {
  .say-name { width: 46px; height: 46px; }
  .say-bubble { left: auto; right: -12px; transform: none; font-size: 20px; }
  .say-bubble::before { left: auto; right: 26px; } .say-bubble::after { left: auto; right: 28.5px; }
  @keyframes bubblePop { from { opacity: 0; transform: translateY(12px) scale(.4) rotate(-6deg); } to { opacity: 1; transform: none; } }
  @keyframes bubbleGone { to { opacity: 0; transform: translateY(-10px) scale(.9); } }
  .say-fx.f0 { right: -56px; top: -10px; } .say-fx.f1 { left: -54px; bottom: 0; }
}
.cover-lead { font-size: 16px; line-height: 1.55; color: var(--ash-light); max-width: 48ch; margin-top: 14px; }
.cover .btn { background: transparent; color: var(--cream); border-color: rgba(217,161,63,0.8); box-shadow: 4px 4px 0 rgba(0,0,0,0.8); }
.cover .btn:hover { background: rgba(253,246,226,0.1); border-color: var(--gold); box-shadow: 6px 6px 0 rgba(0,0,0,0.8); color: var(--cream); }
.cover-photo { justify-self: center; width: min(100%, 360px); }
.photo-panel {
  margin: 0; background: var(--panel); padding: 9px 9px 9px; border: var(--line-w) solid var(--line); border-radius: 6px;
  box-shadow: var(--sh-night); transform: rotate(2deg);
}
.photo-panel img { border-radius: 2px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.photo-panel a { display: block; }
/* one orchestrated reveal on load */
html.js .cover-copy > * { animation: rise .9s var(--ease-out) both; }
html.js .cover-copy > :nth-child(2) { animation-delay: .08s; }
html.js .cover-copy > :nth-child(3) { animation-delay: .16s; }
html.js .cover-copy > :nth-child(4) { animation-delay: .24s; }
html.js .cover-copy > :nth-child(5) { animation-delay: .32s; }
html.js .cover-photo { animation: rise 1s var(--ease-out) .25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .cover-copy > *, html.js .cover-photo { animation: none; } }


/* ---- Page cover (sub-pages) ---- */
.page-cover { margin-top: calc(-1 * (var(--nav-h) + 24px)); padding: calc(var(--nav-h) + 64px) 0 clamp(96px, 13vw, 150px); }
.page-cover .kicker { color: var(--imp); margin-bottom: 10px; text-shadow: none; -webkit-text-stroke: .7px #151820; paint-order: stroke fill; }
.page-cover h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6.5vw, 74px);
  line-height: 1; letter-spacing: .02em; color: var(--cream); text-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}
.page-cover p { color: var(--ash-light); font-size: 16px; max-width: 56ch; margin-top: 14px; }

/* =============================================================================
   HOME — about panel, the MABEL feature, sneak peeks
   ============================================================================= */
.about-panel .lead { font-size: 16.5px; line-height: 1.62; }
.about-panel .lead + .lead { margin-top: 14px; }
.about-panel .lead a, .vision a, .lead a { color: var(--link); font-weight: 600; text-decoration: none; }
.about-panel .lead a:hover, .vision a:hover, .lead a:hover { text-decoration: underline; }
.subhead { font-family: var(--font-comic); font-size: 19px; letter-spacing: .1em; text-transform: uppercase; color: var(--imp); margin: 26px 0 12px; }
.vision { font-size: 15.5px; line-height: 1.6; margin-bottom: 14px; }
.quote {
  position: relative; display: block; background: var(--yellow); color: var(--ink);
  border: var(--line-w) solid var(--line); border-radius: 4px; box-shadow: var(--sh-sm);
  padding: 12px 18px 12px 46px; font-style: italic; font-size: 15px; line-height: 1.5;
  transform: rotate(-0.6deg); margin: 18px 0;
}
.quote + .quote, .vision + .quote { margin-top: 18px; }
.quote::before {
  content: "❝"; position: absolute; left: 14px; top: 4px;
  font-family: var(--font-comic); font-style: normal; font-size: 30px; color: var(--hi); line-height: 1;
}
.quote:nth-of-type(even) { transform: rotate(0.5deg); }

/* Connect / coffee chat */
.connect-card { text-align: center; padding: 34px 24px; }
.connect-card p { max-width: 620px; margin: 0 auto; }
.connect-card .muted { font-family: var(--font-mono); font-size: 12px; color: var(--ash); margin: 10px auto 22px; }
.last-updated { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--ash); margin: 22px 0 0; letter-spacing: .02em; }

/* =============================================================================
   EDUCATION
   ============================================================================= */
.edu-row { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1.5px dashed var(--line-soft); }
.edu-row:first-child { padding-top: 0; }
.edu-row:last-child { border-bottom: none; padding-bottom: 0; }
.edu-logo {
  flex: none; width: 50px; height: 50px; border-radius: 8px; overflow: hidden;
  background: var(--bone); border: 1.5px solid var(--line); display: grid; place-items: center; box-shadow: var(--sh-xs);
}
.edu-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.edu-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.edu-head a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16.5px; }
.edu-head a:hover { color: var(--link); }
.edu-sub { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 2px; }
.edu-date { font-family: var(--font-mono); font-size: 12px; color: var(--ash); white-space: nowrap; }

/* =============================================================================
   PUBLICATIONS + PROJECTS (shared "media row" layout) — comic panels
   ============================================================================= */
.pub-list { display: flex; flex-direction: column; gap: 22px; }
.pub { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: center; padding: 18px; }
.pub-thumb {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 2;
  background: var(--bone); border: var(--line-w) solid var(--line);
}
.pub-thumb img, .pub-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pub-thumb .hover-video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; background: #151820; z-index: 3; pointer-events: none; }
.pub-thumb .hover-video video { object-fit: cover; }
@media (hover: hover) { .pub:hover .hover-video.playing { opacity: 1; } }
.papertitle { font-size: 17px; font-weight: 700; letter-spacing: -0.012em; color: var(--ink); line-height: 1.3; }
a .papertitle:hover { color: var(--link); }
.pub-meta a { text-decoration: none; }
.pub-meta { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.pub-meta .authors { display: block; margin: 6px 0 2px; color: var(--ink); }
.pub-meta .venue { font-family: var(--font-mono); font-size: 12.5px; color: var(--ash); }
.pub-meta .venue em { font-style: normal; color: var(--link); font-weight: 700; }
.pub-desc { font-size: 13.5px; line-height: 1.5; color: var(--ash); margin-top: 10px; }
.proj-year {
  display: inline-block; font-family: var(--font-comic); font-size: 13px; letter-spacing: .08em; color: var(--ink);
  background: var(--yellow); border: 1.5px solid var(--line); padding: 3px 9px 2px; border-radius: 3px; margin-left: 10px;
  box-shadow: var(--sh-xs); transform: rotate(-2deg); vertical-align: middle; line-height: 1.2;
}
.proj-body { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 10px; }
.proj-body em { color: var(--ash); font-style: italic; }

/* Publication mini carousel */
.pub-carousel { position: absolute; inset: 0; }
.carousel-track { display: flex; height: 100%; transition: transform .35s ease; }
.carousel-track > .slide, .carousel-track > div { flex: 0 0 100%; height: 100%; position: relative; }
.carousel-track img { width: 100%; height: 100%; object-fit: contain; }
.c-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line); color: var(--ink); font-size: 16px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--sh-xs);
  opacity: 1; transition: opacity .2s, background .15s ease, color .15s ease;
}
.c-btn:hover { background: var(--hi); color: #FFF9F0; }
@media (hover: hover) {
  .c-btn { opacity: 0; }
  .pub-thumb:hover .c-btn, .news-media:hover .c-btn { opacity: 1; }
}
.c-btn.prev { left: 8px; } .c-btn.next { right: 8px; }
.c-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* =============================================================================
   NEWS — a comic strip you scroll sideways; every date is a narration box.
   Cards share the publication / project card geometry (.slide): 292px wide,
   3:2 media on top, text below, so the three strips read as one system.
   ============================================================================= */
.news-scroll {
  display: flex; gap: 18px; overflow-x: auto; padding: 16px 20px 30px; margin: -16px -20px 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper);
}
.news-scroll::-webkit-scrollbar { height: 10px; }
.news-scroll::-webkit-scrollbar-track { background: var(--paper); border-radius: 0; border: 1.5px solid var(--line); }
.news-scroll::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 0; }
.news-card { flex: 0 0 min(292px, 78vw); scroll-snap-align: start; overflow: visible; display: flex; flex-direction: column; }
.news-text { padding: 14px 16px 15px; flex: 1; }
.news-text p {
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.news-text p > b:first-child {
  display: inline-block; background: var(--yellow); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 3px; box-shadow: var(--sh-xs);
  padding: 2px 8px 1px; margin: 0 8px 6px 0; transform: rotate(-1.2deg);
  font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; letter-spacing: .06em;
}
.news-text a { color: var(--link); font-weight: 600; text-decoration: none; }
.news-text a:hover { text-decoration: underline; }
.news-media { position: relative; aspect-ratio: 3 / 2; background: var(--bone); border-bottom: var(--line-w) solid var(--line); overflow: hidden; border-radius: 8px 8px 0 0; }
.news-media .carousel-track { height: 100%; }
.news-media img { width: 100%; height: 100%; object-fit: contain; }

/* =============================================================================
   STARTUPS + SKILLS + BLOG
   ============================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { padding: 24px; }
.mini-card h3 { font-size: 16px; margin-bottom: 4px; }
.mini-card .meta, .startup-body .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ash); margin-bottom: 12px; }
.mini-card p { font-size: 14px; color: var(--ink-soft); }
.skills p { font-size: 15px; line-height: 1.9; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); }
.blog-card .card-media { display: block; aspect-ratio: 16 / 9; background: var(--bone); border-bottom: var(--line-w) solid var(--line); }
.blog-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-body { padding: 20px 22px 24px; display: block; }
.blog-card .card-body h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.blog-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ash); margin-bottom: 10px; }
.blog-card .card-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.blog-card:hover .card-body h3 { color: var(--link); }

/* =============================================================================
   FOOTER — the last panel of the issue
   ============================================================================= */
.site-footer { margin-top: 96px; padding: 54px 0 clamp(96px, 13vw, 170px); }
.site-footer::after {   /* brass double rule along the top edge */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; z-index: 2; opacity: .8;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
              linear-gradient(var(--gold), var(--gold)) 0 5px / 100% 1px no-repeat;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.footer-name { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .03em; color: var(--cream); }
.footer-note { font-family: var(--font-mono); font-size: 12px; color: var(--imp); letter-spacing: .02em; }
.footer-rule { height: 2px; background: rgba(217,161,63,0.45); }
.footer-credit { font-size: 12px; color: var(--ash-light); }
.footer-credit a { color: var(--imp); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-copy { font-family: var(--font-mono); font-size: 10.5px; color: var(--ash-light); opacity: .8; }

/* =============================================================================
   CV — skill chips, résumé embed, startup cards
   ============================================================================= */
.skill-group { margin-bottom: 22px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-label { font-family: var(--font-comic); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--imp); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1;
  background: var(--bone); border: 1.5px solid var(--line); border-radius: 5px; padding: 7px 11px;
  box-shadow: var(--sh-xs); transition: transform .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { transform: translate(-1px, -1px); background: var(--yellow); }
.resume-embed { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: var(--line-w) solid var(--line); background: var(--bone); }
.resume-embed iframe { width: 100%; height: 80vh; min-height: 540px; border: 0; display: block; }
@media (max-width: 640px) { .resume-embed iframe { height: 64vh; min-height: 420px; } }

.startup { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: center; }
.startup-body h3 { margin-bottom: 4px; font-size: 20px; }
.startup-hero { width: 100%; border-radius: 4px; display: block; background: var(--panel); padding: 6px; border: var(--line-w) solid var(--line); box-shadow: var(--sh-sm); transform: rotate(1.2deg); }
.startup-shots { display: flex; gap: 10px; }
.startup-shots img { width: calc((100% - 20px) / 3); border-radius: 8px; display: block; background: #0b0b0f; border: 1.5px solid var(--line); box-shadow: var(--sh-xs); }

/* =============================================================================
   EXPERIENCE — expandable role cards (CV: research + industry)
   Closed, a card reads like an Education row: monogram tile, org, role, date.
   Open, it drops the panel of what the role actually produced. Native
   <details>, so it still expands with JS off; the +/× is the only ornament.
   ============================================================================= */
.exp-stack { display: flex; flex-direction: column; gap: 16px; }
.exp-hint { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ash); margin: -14px 0 18px; }
.exp { overflow: hidden; transition: box-shadow .18s var(--ease-out); }
.exp[open] { box-shadow: var(--sh-lg); }
.exp > summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "mark id date tog";
  align-items: center; gap: 4px 16px; padding: 16px 18px;
  cursor: pointer; list-style: none; transition: background .18s ease;
}
.exp > summary::-webkit-details-marker { display: none; }
.exp > summary:hover { background: var(--wash); }
.exp[open] > summary { background: var(--wash); }
.exp > summary:focus-visible { outline: 3px solid var(--hi); outline-offset: -3px; }
.exp-mark {
  grid-area: mark; width: 50px; height: 50px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bone); border: 1.5px solid var(--line); box-shadow: var(--sh-xs);
  font-family: var(--font-comic); font-size: 16px; letter-spacing: .06em; line-height: 1; color: var(--imp); text-align: center;
}
.exp-mark.sm { font-size: 12.5px; letter-spacing: .03em; }
.exp-mark img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
/* a company logo is printed art: it keeps its paper ground in both themes */
.exp-mark.logo { background: var(--cream); border-color: #151820; }
.exp-mark.bleed img { padding: 0; object-fit: cover; border-radius: 5px; }
.exp-mark.lg { width: 64px; height: 64px; }
.exp-id { grid-area: id; min-width: 0; }
.exp-org, .exp-role, .exp-where { display: block; }
.exp-org { font-size: 16.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.exp-role { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 2px; }
.exp-org a { color: inherit; text-decoration: none; }
.exp-org a:hover { color: var(--link); }
.exp-role a { color: var(--link); font-weight: 600; text-decoration: none; }
.exp-role a:hover { text-decoration: underline; }
.exp-where a { color: var(--link); text-decoration: none; }
.exp-where a:hover { text-decoration: underline; }
.exp-where { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ash); margin-top: 4px; }
.exp-date { grid-area: date; font-family: var(--font-mono); font-size: 12px; color: var(--ash); white-space: nowrap; }
.exp-tog {
  grid-area: tog; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; line-height: 1; color: var(--ink);
  background: var(--panel); border: 1.5px solid var(--line); box-shadow: 2px 2px 0 var(--sh-c);
  transition: background .18s ease, color .18s ease;
}
.exp-tog::before { content: "+"; display: block; transition: transform .18s var(--ease-out); }
.exp > summary:hover .exp-tog { background: var(--hi); color: #FFF9F0; }
.exp[open] .exp-tog { background: var(--hi); color: #FFF9F0; }
.exp[open] .exp-tog::before { transform: rotate(45deg); }
.exp-panel { border-top: 1.5px dashed var(--line-soft); padding: 16px 20px 20px; }
.exp-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-points li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.exp-points li::before { content: "▸"; position: absolute; left: 2px; top: 0; color: var(--imp); font-size: 13px; }
.exp-points b, .exp-points strong { color: var(--ink); font-weight: 600; }
.exp-panel .chips { margin-top: 15px; }
.exp-panel .links { margin-top: 13px; }
.exp-note { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .02em; color: var(--ash); margin-top: 14px; }
/* CV timeline — one line per entry, dates in the rail, detail lives elsewhere */
.tl { list-style: none; }
.tl-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
.tl-when { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--ash); text-align: right; padding-top: 1px; }
.tl-body { position: relative; border-left: 2px solid var(--line-soft); padding: 0 0 22px 22px; }
.tl-item:last-child .tl-body { border-left-color: transparent; padding-bottom: 0; }
.tl-body::before {
  content: "◆"; position: absolute; left: -8px; top: -2px; font-size: 12px; line-height: 1;
  color: var(--imp); background: var(--panel); padding: 2px 0;
}
.tl-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tl-title a { color: inherit; text-decoration: none; }
.tl-title a:hover { color: var(--link); }
.tl-sub { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 3px; }
.tl-sub a { color: var(--link); text-decoration: none; }
.tl-sub a:hover { text-decoration: underline; }
.tl-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ash); margin-top: 4px; }
.tl-meta a { color: var(--link); text-decoration: none; }
.tl-meta a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-when { text-align: left; padding-left: 22px; margin-bottom: 2px; }
  .tl-body { padding-bottom: 20px; }
  .tl-item:not(:last-child) .tl-when { border-left: 2px solid var(--line-soft); padding-left: 20px; }
}
/* projects listed inside a lab card: thumbnail, name, when, one paragraph */
.exp-projects { display: flex; flex-direction: column; gap: 18px; }
.proj-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.proj-thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone);
  border: 1.5px solid var(--line); border-radius: 6px; box-shadow: var(--sh-xs);
  transition: transform .15s ease, box-shadow .15s ease;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-sm); }
.proj-name { font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; }
.proj-name:hover { color: var(--link); }
.proj-when { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--ash); margin-top: 4px; }
.proj-text p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-top: 8px; }
.proj-text .links { margin-top: 10px; }
.exp-date br + span, .exp-date .second { display: block; }
@media (max-width: 620px) {
  .proj-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .proj-name { font-size: 14.5px; }
}
/* a panel can carry illustrations on the right; they stack under the text on phones */
.exp-panel.has-media { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.exp-media { display: flex; flex-direction: column; gap: 10px; }
.exp-media img {
  width: 100%; display: block; background: var(--bone); border-radius: 6px;
  border: 1.5px solid var(--line); box-shadow: var(--sh-xs);
}
.exp-media .shots { display: flex; gap: 8px; }
.exp-media .shots img { width: calc((100% - 16px) / 3); background: #0b0b0f; }
.exp-media figcaption { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; letter-spacing: .02em; color: var(--ash); }
.exp-media figcaption a { color: var(--link); text-decoration: none; }
.exp-media figcaption a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .exp-panel.has-media { grid-template-columns: 1fr; gap: 18px; }
  .exp-media { max-width: 340px; }
}
.see-all[data-expand-all] { cursor: pointer; font-family: var(--font-comic); }
@media (min-width: 721px) { .exp-panel { padding-left: 84px; } }
@media (prefers-reduced-motion: no-preference) {
  .exp[open] > .exp-panel { animation: expOpen .24s var(--ease-out) both; }
}
@keyframes expOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .exp > summary { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mark id tog" "mark date tog"; gap: 2px 12px; padding: 14px; }
  .exp-mark { width: 44px; height: 44px; font-size: 14px; }
  .exp-mark.sm { font-size: 11px; }
  .exp-org { font-size: 15.5px; }
  .exp-date { margin-top: 4px; }
  .exp-panel { padding: 14px 16px 18px; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 820px) {
  .nav { width: min(calc(100% - 20px), 1120px); left: 10px; transform: none; }
  .nav-inner { justify-content: space-between; padding: 0 12px 0 14px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .cover-inner { grid-template-columns: 1fr; gap: 34px; }
  .cover-photo { justify-self: center; width: min(100%, 300px); margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .startup { grid-template-columns: 1fr; gap: 18px; }
  .startup-media { order: -1; }
  .startup-shots { max-width: 330px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .pub { grid-template-columns: 1fr; gap: 16px; }
  .section { padding-top: 44px; }
  .card-pad { padding: 22px 18px; }
  .section-title { font-size: 26px; gap: 12px; }
  .slide, .news-card { flex-basis: min(340px, 86vw); }
  .slide-title { font-size: 16.5px; }
  .slide-sub { font-size: 13px; }
  .slide-body { padding: 15px 17px 16px; }
  .strip, .news-scroll { gap: 14px; }
  .cover-name { font-size: clamp(36px, 12vw, 64px); }
  .cover .kicker, .page-cover .kicker { font-size: 13px; letter-spacing: .1em; }
  .quote { padding-left: 40px; }
}

/* =============================================================================
   NYC DIE-CUT STICKERS — the same set as the MABEL site
   (assets/images/stickers/, 220x220 SVG). Decorative: empty alt, no pointer.
   ============================================================================= */
.sticker { pointer-events: none; user-select: none; filter: drop-shadow(3px 4px 0 rgba(21,24,32,0.35)); }
.section-title > .sticker { width: 64px; height: 64px; order: 0; margin: -16px 2px -14px -2px; }
.has-sticker { position: relative; }
.sticker-corner { position: absolute; top: -30px; right: -18px; width: 84px; height: 84px; z-index: 2; }
/* on a text panel the sticker is a FLOAT, so the paragraph wraps around it instead of running under it */
.about-panel .sticker-corner { position: static; float: right; margin: -42px -34px 6px 14px; }
@media (max-width: 620px) {
  .section-title > .sticker { width: 46px; height: 46px; margin: -10px 0 -8px -2px; }
  .sticker-corner { width: 60px; height: 60px; top: -22px; right: -8px; }
  .about-panel .sticker-corner { margin: -30px -20px 4px 10px; }
}

/* =============================================================================
   HOME — the "Made in NYC" sticker, publication + project card strips,
   and the quick-look popup
   ============================================================================= */
.sticker-nyc {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 12px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--line); border-radius: 4px;
  padding: 3px 11px 2px 6px; transform: rotate(-4deg); box-shadow: 3px 3px 0 rgba(0,0,0,0.8);
  font-family: var(--font-comic); font-size: 15px; letter-spacing: .1em; line-height: 1;
  color: #151820; text-shadow: none;   /* printed sticker: ink on yellow, no shadow, whatever the theme */
}
.sticker-nyc img { width: 28px; height: 28px; display: block; }

.section-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .section-title { flex: 1 1 260px; margin-bottom: 0; }
.see-all {
  font-family: var(--font-comic); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: var(--ink); text-decoration: none; padding: 8px 12px 7px; border: 2px solid var(--line); border-radius: 6px;
  background: var(--panel); box-shadow: var(--sh-xs); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.see-all:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-sm); background: var(--hi); color: #FFF9F0; }

.strip-wrap { position: relative; }
.strip {
  display: flex; gap: 18px; overflow-x: auto; padding: 16px 20px 26px; margin: -16px -20px 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 min(292px, 78vw); scroll-snap-align: start;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--panel); border: var(--line-w) solid var(--line); border-radius: var(--radius); box-shadow: var(--sh);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s ease;
}
.slide:hover, .slide:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); background: var(--panel-2); }
.slide-media {
  display: block; aspect-ratio: 3 / 2; background: var(--bone); overflow: hidden;
  border-bottom: var(--line-w) solid var(--line); border-radius: 8px 8px 0 0;
}
.slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-media img.fit-contain { object-fit: contain; padding: 8px; }
.slide-media { position: relative; }
.slide-media .hover-video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; background: #151820; }
.slide-media .hover-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .slide:hover .hover-video.playing { opacity: 1; } }
.slide-tag {
  position: absolute; top: -11px; left: 12px; z-index: 2;
  background: var(--yellow); color: var(--ink); border: 1.5px solid var(--line); border-radius: 3px; box-shadow: var(--sh-xs);
  padding: 3px 8px 2px; transform: rotate(-1.5deg);
  font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.slide-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 15px; flex: 1; }
.slide-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-sub { font-size: 12.5px; line-height: 1.45; color: var(--ash); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-sub b { font-weight: 700; color: var(--ink-soft); }
.slide-cta { margin-top: auto; padding-top: 8px; font-family: var(--font-comic); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--imp); }
.slide-cta::after { content: " ▸"; }
.slide:hover .slide-cta { color: var(--link); }
.strip-btn {
  position: absolute; top: 38%; z-index: 5; width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  background: var(--panel); border: var(--line-w) solid var(--line); color: var(--ink); box-shadow: var(--sh-sm);
  display: grid; place-items: center; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.strip-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.strip-btn:hover { background: var(--hi); color: #FFF9F0; transform: translate(-1px, -1px); box-shadow: var(--sh); }
.strip-btn.prev { left: -22px; } .strip-btn.next { right: -22px; }
@media (max-width: 1120px) { .strip-btn { display: none; } }

/* quick-look popup — opens like a comic panel reveal (same recipe as the MABEL site):
   the backdrop fades, the panel flies in from the thing you clicked with a spring
   overshoot, and a few onomatopoeia words burst out behind it and fade. */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21,24,32,0.78); animation: popFade .18s ease both; }
@keyframes popFade { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; z-index: 1; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--panel); border: 3px solid var(--line); border-radius: 8px;
  box-shadow: 12px 12px 0 var(--hi), 0 0 0 3px var(--ink);
  animation: popIn .42s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
@keyframes popIn {
  from { transform: translate(var(--from-x, 0px), var(--from-y, 0px)) scale(0.16) rotate(-7deg); opacity: 0; }
  62%  { transform: translate(0, 0) scale(1.05) rotate(1.2deg); opacity: 1; }
  to   { transform: none; opacity: 1; }
}
.modal-media { position: relative; aspect-ratio: 16 / 9; background: var(--bone); border-bottom: 3px solid var(--line); overflow: hidden; }
.modal-media img, .modal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-media img.fit-contain { object-fit: contain; padding: 10px; }
.modal-media .carousel-track { height: 100%; }
.modal-media .carousel-track > div { flex: 0 0 100%; height: 100%; }
.modal-media .c-btn { opacity: 1; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: var(--yellow); border: 3px solid #151820; border-radius: 50%; box-shadow: 3px 3px 0 #151820;
  transition: transform .18s var(--spring), background .15s ease;
}
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--hi); color: #FFF9F0; }
.modal-body { padding: 22px 24px 26px; }
.modal-body .caption-box { margin-bottom: 4px; }
.modal-body h3 { font-size: 21px; line-height: 1.25; margin: 12px 0 6px; letter-spacing: -0.015em; }
.modal-authors { font-size: 14px; color: var(--ink-soft); }
.modal-authors .venue { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--ash); margin-top: 4px; }
.modal-authors .venue em { font-style: normal; font-weight: 700; color: var(--link); }
.modal-desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 12px; }
.modal-body .btn-row { margin-top: 18px; }

/* the onomatopoeia flung out behind the panel */
.modal-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.pop-fx {
  position: absolute; font-family: var(--font-comic); color: var(--yellow); white-space: nowrap;
  -webkit-text-stroke: 3px #151820; paint-order: stroke fill; text-shadow: 5px 5px 0 var(--hi);
}
.pop-fx-main { top: 9%; left: 50%; font-size: clamp(48px, 9vw, 104px); animation: fxMain .85s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes fxMain {
  from { transform: translate(-50%, 40px) scale(0.2) rotate(-16deg); opacity: 0; }
  40%  { transform: translate(-50%, 0) scale(1.15) rotate(-6deg); opacity: 1; }
  75%  { opacity: 1; }
  to   { transform: translate(-50%, -26px) scale(1) rotate(-4deg); opacity: 0; }
}
.pop-fx-mini { font-size: clamp(22px, 3.4vw, 40px); color: var(--hi); text-shadow: 3px 3px 0 #151820; animation: fxMini .95s ease-out both; }
.pop-fx-0 { top: 24%; left: 9%; animation-delay: .06s; }
.pop-fx-1 { top: 68%; right: 11%; left: auto; animation-delay: .13s; }
.pop-fx-2 { bottom: 15%; left: 16%; animation-delay: .2s; }
@keyframes fxMini {
  from { transform: scale(0.2) rotate(12deg); opacity: 0; }
  45%  { transform: scale(1.1) rotate(-8deg); opacity: 1; }
  to   { transform: scale(0.9) rotate(-5deg); opacity: 0; }
}

/* portrait lightbox — the same panel, just the photograph and a name plate */
.photo-panel a { cursor: zoom-in; }
.modal-photo .modal-panel { width: min(620px, 100%); }
.modal-photo .modal-media { aspect-ratio: auto; background: #151820; }
.modal-photo .modal-media img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; padding: 0; }
.modal-photo .modal-body { padding: 16px 22px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.modal-photo .modal-body h3 { margin: 0; font-size: 19px; }
.modal-photo .modal-body h3 .sc { font-family: 'ZCOOL QingKe HuangYou', 'PingFang SC', 'Noto Sans SC', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .12em; color: var(--link); margin-left: 10px; vertical-align: -2px; }
.modal-photo .modal-authors, .modal-photo .modal-desc, .modal-photo #modalLinks, .modal-photo .btn-row { display: none; }

@media (prefers-reduced-motion: reduce) {
  .modal-panel { animation: popFade .2s ease both; }
  .pop-fx { display: none; }
}
body.modal-open { overflow: hidden; }
@media (max-width: 620px) {
  .modal { padding: 0; align-items: end; }
  .modal-panel { max-height: 94vh; border-radius: 12px 12px 0 0; border-bottom: 0; box-shadow: 0 0 0 3px var(--ink); }
  .modal-photo .modal-panel { max-height: 94vh; }
  .modal-body { padding: 18px 18px 26px; }
  .sticker-nyc { margin: 8px 0 0; }
}

/* =============================================================================
   DAY / NIGHT — html[data-theme]. Night (default) is Gotham after dark: the
   whole page goes ink, panels navy, line-work brass, shadows black, and bats
   cross the searchlights. Day keeps the newsprint ground and turns the covers
   into a Manhattan afternoon: blue sky, a comic sun, pigeons.
   ============================================================================= */
html[data-theme="night"] {
  --bone:      #12151E;
  --paper:     #181C28;
  --paper-2:   #1B2030;
  --panel:     #1E2333;
  --panel-2:   #262C40;
  --ink:       #F4EAD2;
  --ink-soft:  #D9CFB6;
  --ash:       #A99F87;
  --line:      #D9A13F;
  --line-soft: rgba(217,161,63,0.4);
  --wash:      rgba(244,234,210,0.08);
  --sh-c:      rgba(0,0,0,0.8);
  --dots-ink:  radial-gradient(rgba(244,234,210,0.10) 1px, transparent 1.6px);
}
html[data-theme="night"] :is(.caption-box, .slide-tag, .proj-year, .news-text p > b:first-child, .quote, .sticker-nyc, .btn-pop, .chip:hover) { color: #151820; border-color: #151820; }
html[data-theme="night"] .quote::before { color: var(--hi); }
html[data-theme="night"] .btn-primary { background: var(--pop); color: #151820; }
html[data-theme="night"] .btn-primary:hover { background: var(--hi); color: #FFF9F0; }
html[data-theme="night"] .nav-links a[aria-current="page"] { background: var(--gold); color: #151820; }
html[data-theme="night"] .modal-panel { box-shadow: 12px 12px 0 var(--hi), 0 0 0 3px #151820; }
html[data-theme="night"] .news-scroll::-webkit-scrollbar-thumb { background: var(--gold); }
html[data-theme="night"] .photo-panel { background: var(--cream); }
html[data-theme="night"] .sticker { filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.6)); }

/* the toggle in the masthead */
.theme-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-left: 4px;
  font-family: var(--font-comic); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  color: var(--ink); background: var(--panel); border: var(--line-w) solid var(--line);
  border-radius: 8px; padding: 6px 10px 5px; box-shadow: 3px 3px 0 var(--sh-c);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.theme-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sh-c); background: var(--yellow); color: #151820; }
.theme-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--sh-c); }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .if-day, .theme-btn .if-night { display: none; align-items: center; gap: 6px; }
html[data-theme="night"] .theme-btn .if-night { display: inline-flex; }
html[data-theme="day"] .theme-btn .if-day { display: inline-flex; }
@media (max-width: 820px) { .theme-btn { margin-left: auto; margin-right: 8px; } .theme-btn .lbl { display: none; } .menu-btn { margin-left: 0; } }

/* ---- DAY: the covers become a Manhattan afternoon ---- */
html[data-theme="day"] .night {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,206,10,0.55) 0, rgba(255,206,10,0.28) 90px, transparent 220px),
    linear-gradient(180deg, #7FB6DF 0%, #B6D6EA 52%, #EAD9B4 100%);
}
html[data-theme="day"] .night::before { background-image: var(--dots-ink); opacity: .35; }
html[data-theme="day"] .beam { display: none; }
/* the sun: a yellow disc with an ink outline and a deco sunburst behind it */
html[data-theme="day"] .night-sky::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, var(--pop) 0 46px, #151820 46px 50px, transparent 50px),
    repeating-conic-gradient(from 0deg at 82% 18%, rgba(217,161,63,0.3) 0deg 4deg, transparent 4deg 12deg);
  mask-image: radial-gradient(circle at 82% 18%, black 0, black 52px, rgba(0,0,0,0.9) 53px, transparent 42%);
  -webkit-mask-image: radial-gradient(circle at 82% 18%, black 0, black 52px, rgba(0,0,0,0.9) 53px, transparent 42%);
}
html[data-theme="day"] .skyline { background-image: url("../images/gotham-skyline-day.svg"); }
@media (max-width: 620px) {
  html[data-theme="day"] .night { background: radial-gradient(circle at 88% 6%, rgba(255,206,10,0.5) 0, rgba(255,206,10,0.24) 60px, transparent 150px), linear-gradient(180deg, #7FB6DF 0%, #B6D6EA 52%, #EAD9B4 100%); }
  html[data-theme="day"] .night-sky::before { background: radial-gradient(circle at 88% 6%, var(--pop) 0 30px, #151820 30px 33px, transparent 33px), repeating-conic-gradient(from 0deg at 88% 6%, rgba(217,161,63,0.3) 0deg 4deg, transparent 4deg 12deg); mask-image: radial-gradient(circle at 88% 6%, black 0, black 34px, rgba(0,0,0,0.9) 35px, transparent 36%); -webkit-mask-image: radial-gradient(circle at 88% 6%, black 0, black 34px, rgba(0,0,0,0.9) 35px, transparent 36%); }
}
html[data-theme="day"] :is(.cover-name, .page-cover h1, .footer-name) { color: #151820; text-shadow: 5px 5px 0 rgba(21,24,32,0.14); }
html[data-theme="day"] .cover-tag { color: #151820; }
html[data-theme="day"] :is(.cover-lead, .page-cover p, .say-cap) { color: #2A2E3A; }
html[data-theme="day"] .cover-sc { text-shadow: 4px 4px 0 #151820; }
html[data-theme="day"] .cover .btn, html[data-theme="day"] .say-name { background: var(--panel); color: #151820; border-color: #151820; box-shadow: 4px 4px 0 var(--sh-c); }
html[data-theme="day"] .cover .btn:hover, html[data-theme="day"] .say-name:hover { background: var(--yellow); color: #151820; border-color: #151820; box-shadow: 6px 6px 0 var(--sh-c); }
html[data-theme="day"] .photo-panel { box-shadow: var(--sh); }
html[data-theme="day"] .footer-credit, html[data-theme="day"] .footer-copy { color: #2A2E3A; }
html[data-theme="day"] .footer-rule { background: rgba(21,24,32,0.35); }
html[data-theme="day"] .site-footer::after { background: linear-gradient(#151820, #151820) 0 0 / 100% 2px no-repeat, linear-gradient(#151820, #151820) 0 5px / 100% 1px no-repeat; }

/* ---- Critters: bats after dark, pigeons by day (injected by site.js into every sky) ---- */
.critter {
  position: absolute; left: -8%; width: 36px; height: 24px; pointer-events: none; opacity: .95;
  background: no-repeat center / contain;
  animation: fly var(--dur, 26s) linear infinite var(--delay, 0s), flap .32s steps(1) infinite;
}
.critter.c1 { top: 12%; --dur: 24s; --delay: -3s; scale: .8; }
.critter.c2 { top: 22%; --dur: 31s; --delay: -14s; }
.critter.c3 { top: 7%;  --dur: 38s; --delay: -22s; scale: .6; }
.critter.c4 { top: 30%; --dur: 27s; --delay: -9s; scale: .7; }
.critter.c5 { top: 17%; --dur: 44s; --delay: -30s; scale: .5; }
@keyframes fly {
  0%   { translate: 0 0; }
  25%  { translate: 27vw -14px; }
  50%  { translate: 54vw 10px; }
  75%  { translate: 81vw -18px; }
  100% { translate: 116vw 0; }
}
/* bat: wings up / wings down */
html[data-theme="night"] .critter { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%230B0D14' d='M32 20c-2-5-4-8-8-9-6-2-12-2-22-9 4 6 5 10 4 14 6-1 10 0 13 3 2 2 3 4 4 6h18c1-2 2-4 4-6 3-3 7-4 13-3-1-4 0-8 4-14-10 7-16 7-22 9-4 1-6 4-8 9z'/%3E%3Cpath fill='%230B0D14' d='M28 17l4 6 4-6-1-5h-6z'/%3E%3C/svg%3E"); }
@keyframes flap { 50% { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%230B0D14' d='M32 14c-2 3-4 5-8 6-6 1-12 4-22 12 4-5 5-9 4-13 6-1 10-3 13-6 2-2 3-3 4-5h18c1 2 2 3 4 5 3 3 7 5 13 6-1 4 0 8 4 13-10-8-16-11-22-12-4-1-6-3-8-6z'/%3E%3Cpath fill='%230B0D14' d='M28 12l4 8 4-8-1-4h-6z'/%3E%3C/svg%3E"); } }
/* pigeon: wings up / wings down, slate grey with an ink outline so it reads on the sky */
html[data-theme="day"] .critter { width: 34px; height: 26px; opacity: 1; animation-name: fly, flap-p; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='%236E7A8C' stroke='%23151820' stroke-width='2' stroke-linejoin='round' d='M30 26c-6 0-12-2-18-1l-4 1 6-4c5-3 11-4 17-3l8 1 7-2 8 4-8 2c-2 4-8 6-16 2z'/%3E%3Cpath fill='%236E7A8C' stroke='%23151820' stroke-width='2' stroke-linejoin='round' d='M32 20c-3-9 2-16 10-18-1 6-3 11-2 17z'/%3E%3Cpath fill='%23F2C94C' d='M52 21l5 1-4 2z'/%3E%3C/svg%3E"); }
@keyframes flap-p { 50% { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='%236E7A8C' stroke='%23151820' stroke-width='2' stroke-linejoin='round' d='M30 22c-6 0-12-2-18-1l-4 1 6-4c5-3 11-4 17-3l8 1 7-2 8 4-8 2c-2 4-8 6-16 2z'/%3E%3Cpath fill='%236E7A8C' stroke='%23151820' stroke-width='2' stroke-linejoin='round' d='M32 22c-3 9 2 16 10 18-1-6-3-11-2-17z'/%3E%3Cpath fill='%23F2C94C' d='M52 17l5 1-4 2z'/%3E%3C/svg%3E"); } }
/* two pigeons perched on the top edge of the portrait, by day only */
.perch { position: absolute; top: -23px; width: 30px; height: 26px; pointer-events: none; display: none; z-index: 3;
  background: no-repeat center bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Cpath fill='%236E7A8C' stroke='%23151820' stroke-width='2' stroke-linejoin='round' d='M10 30c-4-10 4-19 14-19 7 0 10 4 11 8l8 2-8 3c-1 5-6 8-13 8-6 0-10-1-12-2z'/%3E%3Ccircle cx='31' cy='16' r='1.6' fill='%23151820'/%3E%3Cpath fill='%23F2C94C' d='M35 19l4 1-3 2z'/%3E%3Cpath stroke='%23C6301A' stroke-width='2' stroke-linecap='round' d='M18 32v6M24 32v6'/%3E%3C/svg%3E"); }
.perch.p1 { left: 18px; } .perch.p2 { right: 26px; transform: scaleX(-1) scale(.85); }
html[data-theme="day"] .perch { display: block; }
@media (prefers-reduced-motion: reduce) { .critter { animation: none; left: 30%; } .critter.c2 { left: 62%; } .critter.c3, .critter.c4, .critter.c5 { display: none; } }
