/* =========================================================
   Fonts: self-hosted (latin + latin-ext). Archivo is variable
   (wdth 62-125, wght 100-900).
   ========================================================= */
/* Archivo italic 100 900 (latin-ext) */
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo italic 100 900 (latin) */
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-italic-latin.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;
}
/* Archivo normal 100 900 (latin-ext) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo normal 100 900 (latin) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-normal-latin.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;
}
/* Poppins normal 400 (latin-ext) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 400 (latin) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-latin.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;
}
/* Poppins normal 500 (latin-ext) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 500 (latin) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-latin.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;
}
/* Poppins normal 600 (latin-ext) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 600 (latin) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-latin.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;
}
/* Poppins normal 700 (latin-ext) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 700 (latin) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin.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;
}

/* Inter normal 100 900 (latin-ext): her display face. Variable: opsz 14-32, wght */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal 100 900 (latin): her display face. Variable: opsz 14-32, wght */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-normal-latin.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;
}
/* Inter italic 100 900 (latin-ext): her display face. Variable: opsz 14-32, wght */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter italic 100 900 (latin): her display face. Variable: opsz 14-32, wght */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-italic-latin.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;
}


/* =========================================================
   Palette: magenta / plum / blush. --blue is her colour (the name is kept
   from William's site so the shared code reads the same). Change it to rebrand.
   ========================================================= */
:root {
  --blue: #8b008b;        /* her magenta */
  --orange: #ee6722;      /* mezi brand orange */
  --orange-hi: #f5832f;
  --mit-red: #a31f34;
  --harvard: #a51c30;     /* Harvard crimson: only for Harvard */
  --orange-lo: #ea5c20;
  --mezi-ink: #14110f;
  --blue-hi: #b03ab0;     /* lighter magenta: the photo circle, highlights */
  --magenta: #5f0060;     /* deep true magenta: the contact frame */
  --pop: #ffd43b;
  --ink: #1e0f17;         /* plum ink */
  --plum: #1e0f17;
  --plum-2: #2a1622;
  --paper: #f6edf3;       /* blush paper */
  --paper-dim: #e3d3de;
  --klein: #1f2cff;       /* William's blue, for the "my brother" photo */
  --klein-hi: #4250ff;    /* his lighter blue: the circle behind his photo */
  /* the story's grown photos each get their own outline colour (STORY) */
  --rose: #ff4f9a;
  --teal: #14b8a6;
  --violet: #7c3aed;
  --crimson: #a51c30;     /* Harvard Crimson red: only on her Crimson article's cover */
  --spotify: #1ed760;     /* Spotify's green and card greys: only on the Spotify artist card */
  --spotify-hi: #3be477;
  --spotify-ink: #121212;
  --spotify-ink-hi: #1a1a1a;
  --display: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  /* one typeface for all of her: the old sans (Archivo) and mono (Geist Mono)
     roles now point at Inter too. Only the mezi frame (Poppins) and the meziTIS
     footer (Archivo) keep their own, because they match William's site. */
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --pad: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);  /* a little overshoot = a little life */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
/* while the fonts load: just the hero's blue, then everything fades in at once */
html.is-loading { background: var(--blue); }
html.is-loading body { opacity: 0; }
body { transition: opacity .35s var(--ease); }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
html.lenis, html.lenis body { height: auto; }
/* Lenis owns the scroll position. Without this, the browser's scroll anchoring
   nudges it every time fitName() measures the hero name at different sizes. */
html.lenis { overflow-anchor: none; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.45 var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;  /* digits still line up like the old mono */
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* placeholder text — delete this class as you fill things in */
.tbd {
  text-decoration: underline dashed 1px;
  text-underline-offset: .18em;
  opacity: .45;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------- Nav bar: compact, top centre; formed by shards (main.js) ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 120; pointer-events: none; }
.bar__pill {
  position: fixed; top: 16px; left: 50%; translate: -50% 0;
  height: 58px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 8px 0 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px -18px rgba(20, 17, 13, .3), 0 2px 6px -2px rgba(20, 17, 13, .06);
  color: #2d2823;
  opacity: 0; visibility: hidden;
}
.bar.is-docked .bar__pill { opacity: 1; visibility: visible; pointer-events: auto; }

/* the hero letters dropped onto a music staff on their way into the bar (positioned by main.js) */
.bar__shards { position: fixed; inset: 0; z-index: 121; pointer-events: none; display: none; }
.bar__shards.is-on { display: block; }
.bar__shards > * { position: absolute; left: 0; top: 0; will-change: transform; }
/* the staff: five fine magenta lines drawn out from the clef (pathLength is 1),
   bar lines, and the notes' stems */
.bar__shards > .staff { width: 100%; height: 100%; overflow: visible; will-change: auto; }
.staff path { fill: none; stroke: var(--blue); stroke-width: 1.25; stroke-linecap: round; }
.staff .staff__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.staff .staff__bar { stroke-linecap: butt; }
.staff .staff__bar--end { stroke-width: 3; }
/* while the flying letters are landing on (or leaving) the hero name, lift my
   photo above their overlay so it never ducks behind them */
.me-over .hero__name { z-index: auto; }
.me-over .me { z-index: 122; }
/* the clef: my photo at the staff's left end, in a fine white setting; it lands exactly on the nav photo */
.clef {
  z-index: 2; border-radius: 50%; overflow: hidden;
  background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue), 0 10px 24px -10px rgba(30, 15, 23, .45);
}
.clef img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
/* a note: the hero glyph (a) cross-fades into the nav glyph (b) as it lands in the bar.
   main.js drops its centre onto its line or space of the staff. */
.fly { line-height: 1; white-space: pre; opacity: 0; }
.fly > span { position: absolute; left: 0; top: 0; translate: -50% -50%; }
.fly__a { font-family: var(--display); line-height: .8; text-transform: uppercase; color: var(--paper); }
.fly__b { font: 600 1em/1.2 var(--display); opacity: 0; }

/* the moment it forms: the staff's last pull drops the bar a hair and it
   springs back, and a gloss of light runs across it */
@keyframes bar-tug {
  0%   { opacity: 0; transform: translateY(-6px); }
  30%  { opacity: 1; transform: translateY(2px); }
  55%  { transform: translateY(-1px); }
  100% { opacity: 1; transform: none; }
}
@keyframes bar-gloss { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.bar__pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(139, 0, 139, .14) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 130% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .bar.is-docked .bar__pill { animation: bar-tug .7s var(--ease); }
  .bar.is-docked .bar__pill::after { animation: bar-gloss 1.1s .25s ease-in-out both; }
}

/* "you are here": a separate box split off the left of the bar, same height.
   Desktop and tablet only; phones hide it (PHONES block). */
.where {
  position: absolute; right: calc(100% + 8px); top: 0;
  height: 100%; padding: 0 18px 0 14px;
  display: flex; align-items: center; overflow: hidden;
  border-radius: 14px; background: #fff;
  box-shadow: 0 16px 36px -18px rgba(20, 17, 13, .3), 0 2px 6px -2px rgba(20, 17, 13, .06);
  font: 600 22px/1.2 var(--display); letter-spacing: -.02em;
  white-space: nowrap;
  color: #2d2823;
  opacity: 0; transform: translateX(10px);
}
.where.is-on { opacity: 1; transform: none; transition: opacity .3s .7s, transform .5s var(--ease) .7s; }
.where__ico { display: grid; place-items: center; width: 24px; height: 24px; color: var(--blue); }
.where__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.where__in { display: flex; align-items: center; gap: 10px; will-change: transform; transform-origin: 50% 50%; }
.where__ico, .where__txt { display: inline-grid; }
@media (max-width: 768px) {
  /* no room beside the bar on tablets: tuck it underneath */
  .where { right: auto; left: 50%; top: calc(100% + 8px); height: 44px; translate: -50% 0; padding: 0 14px 0 12px; font-size: 18px; transform: translateY(-6px); }
  .where__in { gap: 8px; }
  .where__ico, .where__ico svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .where, .where.is-on { transition: none; }
}

.logo { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.logo:focus-visible { outline-offset: 5px; border-radius: 999px; }
.logo__photo {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(139, 0, 139, .25);
}
.logo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.logo__word {
  font: 600 22px/1.2 var(--display); letter-spacing: -.02em;
  white-space: nowrap;
}

/* --- what lands in the pill, one after another --- */
.logo__photo, .logo__word, .burger { opacity: 0; transition: opacity .15s, transform .2s, clip-path .2s; }
.logo__photo { transition: none; } /* the orbiting photo lands right on it (main.js), so it just appears */
.logo__word { transition: none; } /* its letters fly in from the hero (main.js), so it just appears */
.burger { transform: translateX(8px); }
.bar.is-docked .logo__photo { opacity: 1; }
.bar.is-docked .logo__word { opacity: 1; }
.bar.is-docked .burger { opacity: 1; transform: none; transition: opacity .2s .7s, transform .5s var(--ease) .7s; }
/* small hovers once it's in */
/* nav photo: same pop-out as the hero photo; only the head grows (see .pop--nav) */

@media (max-width: 768px) {
  .bar__pill { padding: 0 8px 0 8px; gap: 10px; }
  .logo { gap: 10px; }
  .bar__pill .burger { margin-left: -10px; } /* name → icon = 10, same as photo → name */
  .logo__photo { width: 38px; height: 38px; }
  .logo__word { font-size: 18px; }
  .bar__mezi { width: 30px; height: 30px; }
  .bar__mezi svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) { .logo__word { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .logo__photo, .logo__word, .bar__mezi, .burger { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* mezi's orange bubble-hover discs (placed by main.js) */
.bubble-layer {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden; pointer-events: none;
}
.bubble-layer--over { z-index: auto; }
.bubble-disc {
  position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .16) 0 64%, rgba(255, 255, 255, 0) 100%);
  will-change: transform, opacity;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease-out;
}
.bubble-disc.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bubble-disc { transition-duration: .01s; } }

/* ---------- Menu: a speech bubble that drops from the Menu button ---------- */
.menu {
  --tail-x: 40px;      /* set by JS so the tail points at the Menu button */
  --dur: .32s;
  --bw: 1.5px;
  --bg: var(--paper);
  position: fixed; z-index: 110;
  top: 110px; right: 24px;
  width: min(390px, calc(100vw - 48px));
  max-height: min(640px, calc(100dvh - 134px));
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 40, .55), 0 2px 0 rgba(12, 12, 13, .06);
  transform-origin: calc(100% - var(--tail-x)) -24px;
  opacity: 0; transform: scale(.6) rotate(4deg); filter: blur(4px);
  visibility: hidden;
  transition: opacity .2s ease, transform .35s var(--ease), filter .25s ease, visibility 0s .35s;
}
.menu-open .menu {
  opacity: 1; transform: none; filter: none; visibility: visible;
  transition: opacity .2s ease, transform .6s var(--spring), filter .25s ease, visibility 0s;
}
@media (hover: hover) and (pointer: fine) { .menu, .menu * { cursor: auto; } .menu a, .menu a *, .menu button, .menu button *, .menu .tree__toggle { cursor: pointer; } .menu input { cursor: text; } }

/* speech tail (browsing) ↔ thought puffs (searching) */
.menu__tail {
  position: absolute; top: -27px; right: calc(var(--tail-x) - 9px);
  width: 36px; height: 30px; overflow: visible;
  fill: var(--bg); stroke: var(--ink); stroke-width: var(--bw); stroke-linejoin: round;
  transition: opacity .15s, transform .3s var(--ease);
  transform-origin: 70% 100%;
}
.menu__puff {
  position: absolute; border-radius: 50%;
  background: var(--bg); border: var(--bw) solid var(--ink);
  opacity: 0; transform: scale(0);
  transition: opacity .15s, transform .45s var(--spring), scale .12s ease-out;
}
.menu__puff--big { width: 18px; height: 16px; top: -24px; right: calc(var(--tail-x) - 12px); }
.menu__puff--small { width: 9px; height: 8px; top: -37px; right: calc(var(--tail-x) - 4px); transition-delay: .06s; }
.menu.is-thinking .menu__tail { opacity: 0; transform: scale(.3); }
.menu.is-thinking .menu__puff { opacity: 1; transform: none; animation: puff-float 2.4s ease-in-out infinite; }
.menu.is-thinking .menu__puff--small { animation-delay: -1.2s; }
.menu.is-talking .menu__puff { scale: 1.3; }
@keyframes puff-float { 50% { translate: 2px -3px; } }

/* search */
.menu__search { position: relative; display: block; margin: 14px 14px 4px; }
.menu__search svg {
  position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 16px; fill: var(--ink); pointer-events: none;
  transition: fill .2s, transform .45s var(--ease);
}
.menu__search input {
  width: 100%; appearance: none;
  padding: 12px 14px 12px 40px;
  border: 1px solid rgba(12, 12, 13, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font: 500 15px var(--display); color: var(--ink);
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.menu__search input::-webkit-search-cancel-button { display: none; }
.menu__search input::placeholder { color: var(--blue); opacity: 1; }
.menu__search input::selection { background: var(--blue); color: var(--paper); }
/* hover: the field firms up and the magnifier leans in */
.menu__search:hover input { border-color: var(--ink); background: #fff; }
.menu__search:hover svg { animation: mag-wiggle .6s var(--ease); transform: rotate(-12deg) scale(1.1); }
@keyframes mag-wiggle { 25% { transform: rotate(-22deg) scale(1.15); } 55% { transform: rotate(8deg) scale(1.1); } }
.menu__search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(139, 0, 139, .14); }
.menu__search:focus-within svg { fill: var(--blue); transform: rotate(-12deg) scale(1.1); }

.menu__nav { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139, 0, 139, .4) transparent; padding: 6px 0 10px; }

/* tree */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree[hidden] { display: none; }
.tree [role="treeitem"] {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 14px 0 22px;
  text-decoration: none;
  font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-variation-settings: "wdth" 80;
  color: var(--ink);
  outline: none;
  transition: color .2s, background-color .2s;
}
.tree [aria-level="2"] { font-size: 17px; font-weight: 600; letter-spacing: -.01em; min-height: 38px; font-variation-settings: "wdth" 95; }
.tree__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .15em; }
.tree__ext { font-size: .65em; color: var(--blue); opacity: 0; translate: -8px 0; transition: opacity .25s, translate .45s var(--ease); }
.tree [aria-level="2"] .tree__ext { opacity: 1; translate: 0; font-size: .9em; }
/* hover: just turns blue (no stretch, italics or shift) */
.tree [role="treeitem"]:hover,
.tree [role="treeitem"]:focus-visible { color: var(--blue); }
.tree [role="treeitem"]:hover .tree__ext,
.tree [role="treeitem"]:focus-visible .tree__ext { opacity: 1; translate: 0; }
.tree [role="treeitem"]:focus-visible { background: rgba(139, 0, 139, .07); }
/* the section you're reading is just in blue (no status dot) */
.tree [role="treeitem"][aria-current="location"] { color: var(--blue); }

/* + that turns into × */
.tree__toggle {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink);
  font-style: normal;
  transition: background-color .25s, color .25s, border-color .25s, transform .45s var(--spring);
}
.tree__toggle:hover, [aria-expanded="true"] > .tree__toggle { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.tree__toggle:hover { transform: scale(1.15); }
.tree__toggle svg { width: 13px; stroke: currentColor; stroke-width: 2; fill: none; transition: rotate .35s var(--ease); }
[aria-expanded="true"] > .tree__toggle svg { rotate: 135deg; }

/* collapsible group: grid-rows trick + blur/slide on the contents */
.tree__wrap {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.tree__wrap[inert] { grid-template-rows: 0fr; }
.tree__wrap > ul {
  min-height: 0; overflow: hidden;
  position: relative; margin-left: 26px; padding-bottom: 6px;
  transition: opacity var(--dur) ease, translate var(--dur) var(--ease), filter var(--dur) ease;
}
.tree__wrap > ul::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--blue);
}
.tree__wrap[inert] > ul { opacity: .3; translate: 0 -10px; filter: blur(8px); }
.tree__wrap > ul [role="treeitem"] { padding-left: 16px; }

@media (prefers-reduced-motion: reduce) {
  .menu, .menu-open .menu, .tree__wrap, .tree__wrap > ul, .menu__tail, .menu__puff { transition: none; filter: none; }
  .res { animation: none; }
  .menu__puff, .menu__search svg, .tree [role="treeitem"] .tree__text::after { animation: none !important; transition-duration: .01s !important; }
}
@media (max-width: 520px) {
  .menu { top: 96px; right: 16px; width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 112px); }
}

/* ---------- Labels ---------- */
.label { display: flex; gap: 14px; margin-bottom: clamp(28px, 5vw, 64px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  padding: 0 var(--pad) 18px;
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
}

/* photo circle with spinning orange ring */
.hero__name { position: relative; z-index: 2; }
.me {
  display: grid; place-items: center;
  --px: clamp(130px, 13.5vw, 220px);
  width: clamp(175px, 18vw, 295px); aspect-ratio: 1;
  /* sits top right, overlapping the top of WILLIAM */
  position: absolute; right: 0; top: 0;
  translate: 0 -55%;
  /* on hover it grows down and out to the left (anchored top-right, so it
     never goes off the top of the page; the popped-out head gets room too) */
  transform-origin: 100% 22%;
  transition: scale .6s var(--ease);
  text-decoration: none;
  border-radius: 50%;
  /* blue disc behind the ring so its words stay readable over the name */
  background: var(--blue);
  /* second, feathered layer hides the anti-aliased edge where the white
     name letters bled through as specks (worse once scaled up on hover) */
  box-shadow: 0 0 0 6px var(--blue), 0 0 3px 8px var(--blue);
}
.me__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 22s linear infinite; /* hover speed-up is eased in main.js */
  transition: transform .8s var(--ease);
}
.me__ring text { font: 500 13px var(--mono); letter-spacing: .16em; fill: var(--paper); }
.me__ring .me__brand {
  fill: var(--orange-hi); cursor: pointer; transition: fill .2s; text-decoration: underline 0 transparent;
  /* the brand's own face, as in the nav wordmark */
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
/* MIT logo laid into the ring's text (main.js places it), in MIT's own
   colours: red bars, grey lower bar on the i */
.me__mit { fill: var(--mit-red); visibility: hidden; }
.me__mit.is-set { visibility: visible; }
.me__mit .i { fill: #8a8b8c; }
.me__ring .me__brand:hover { fill: var(--paper); text-decoration: underline 1.5px currentColor; }
/* Pop-out avatar (technique by Temani Afif): the photo sits in a circle,
   and on hover it scales up while the top half is unmasked, so your head
   "pops out" of the frame. Needs a transparent-background PNG. */
.pop {
  --b: 4px;                 /* ring thickness */
  --c: var(--paper);        /* ring color */
  --cb: var(--blue-hi);     /* circle color */
  --f: 1;                   /* current scale */
  --_g: 50% / calc(100% / var(--f)) 100% no-repeat content-box;
  --_o: calc((1 / var(--f) - 1) * var(--px) / 2 - var(--b));
  box-sizing: content-box;
  width: var(--px);
  aspect-ratio: 1;
  padding-top: calc(var(--px) / 5);
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 0 0 999px 999px;
  background: radial-gradient(circle closest-side, var(--cb) calc(99% - var(--b)), var(--c) calc(100% - var(--b)) 99%, #0000) var(--_g);
  -webkit-mask:
    linear-gradient(#000 0 0) no-repeat 50% calc(-1 * var(--_o)) / calc(100% / var(--f) - 2 * var(--b)) 50%,
    radial-gradient(circle closest-side, #000 99%, #0000) var(--_g);
          mask:
    linear-gradient(#000 0 0) no-repeat 50% calc(-1 * var(--_o)) / calc(100% / var(--f) - 2 * var(--b)) 50%,
    radial-gradient(circle closest-side, #000 99%, #0000) var(--_g);
  transform: scale(var(--f));
  translate: 0 calc(var(--px) * -0.1);
  transition: .5s var(--ease);
  position: relative; z-index: 1;
}
.me:hover, .me:focus-visible { scale: 1.9; }
.me:hover .pop, .me:focus-visible .pop { --f: 1.4; }

/* fallback until the photo exists */
.me__initials {
  display: none;
  place-items: center;
  width: var(--px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--paper) 55%, #c9c8c2);
  box-shadow: 0 0 0 4px var(--paper), 0 18px 40px -12px rgba(0,0,0,.5);
  font-weight: 900; font-size: calc(var(--px) * .28); letter-spacing: -.04em; color: var(--blue);
  font-variation-settings: "wdth" 120;
  transition: transform .6s var(--ease);
}
.no-photo .me__initials { display: grid; }
.no-photo:hover .me__initials { transform: scale(1.08) rotate(-6deg); }

@keyframes blink { 50% { opacity: .25; } }


.name {
  margin: 0 calc(var(--pad) * -0.15);
  display: flex; flex-direction: column;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.025em;
  text-transform: uppercase;
  user-select: none;
  min-width: 0;
  contain: layout style;
}
.name__line { display: block; white-space: nowrap; }
.name__line + .name__line { margin-top: .02em; }
.ch { display: inline-block; font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 800); transform: translateY(var(--y, 0)); }
.hero__foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 18px; margin-top: 14px;
  border-top: 1px solid rgba(233, 232, 227, .35);
}

/* tablet */
/* phone */
/* short landscape phones */

/* ---------- The card ---------- */
.card {
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  width: clamp(270px, 28vw, 400px);
  aspect-ratio: 1.586;
  perspective: 1200px;
  outline: none;
}
.card__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateZ(-7deg) rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform .9s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.card.is-tracking .card__inner { transition: transform .15s linear; }
@keyframes float { 50% { translate: 0 -10px; } }
.card__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7%;
  border-radius: 16px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.card__front { background: linear-gradient(140deg, var(--orange-hi) 0%, var(--orange) 55%, var(--orange-lo) 100%); color: #fff; }
.card__back { background: var(--paper); color: var(--ink); transform: rotateY(180deg); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.22), transparent 45%);
  mix-blend-mode: overlay;
}
.card__back .card__glare { background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.7), transparent 50%); }
.card__row { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.card__row--end { align-items: flex-end; }
.card__logo { font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.04em; font-variation-settings: "wdth" 120; }
.card__nfc { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.card__chip {
  width: 16%; aspect-ratio: 1.3; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(0,0,0,.25) 33% 35%, transparent 36% 64%, rgba(0,0,0,.25) 65% 67%, transparent 68%),
    linear-gradient(0deg, transparent 45%, rgba(0,0,0,.25) 46% 54%, transparent 55%),
    linear-gradient(135deg, #e9d79a, #b8964a 55%, #f1e2a8);
}
.card__name { font-weight: 700; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -.01em; }
.card__role, .card__no { opacity: .85; font-size: 10px; }
.card__back-big {
  font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); line-height: .85; letter-spacing: -.04em;
  font-variation-settings: "wdth" 115;
  color: var(--blue);
}
.card__back .mono { font-size: 10px; }

/* (STORY and STAGE styles live at the end of the file) */

/* =========================================================
   PRESS
   ========================================================= */
.press { padding-bottom: clamp(80px, 12vw, 160px); }
.marquee {
  overflow: hidden;
  padding: clamp(14px, 2vw, 24px) 0;
  background: var(--blue); color: var(--paper);
  border-block: 1px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee span {
  font-size: clamp(56px, 9vw, 140px); font-weight: 900; line-height: .9;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase; letter-spacing: -.01em;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.press__inner { padding: clamp(64px, 9vw, 110px) var(--pad) 0; }
.press { background: var(--ink); color: var(--paper); }
.press__note { margin: 28px 0 0; }
.press__note a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Press cards: glitter spotlight + reveal on hover ---------- */
.pcards {
  --glitter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --light: 300px;
  --smooth: cubic-bezier(.22, 1, .36, 1);
  --dur: .55s;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  --mx: 50%; --my: 50%;      /* pointer position, set in main.js */
  --rx: .5; --ry: .75;
  --head: 6.4rem;            /* outlet + title strip at rest (measured in main.js) */
  --panel: 44%;              /* height of the open text panel (measured in main.js) */
  contain: paint;
  position: relative; isolation: isolate;
  display: block;
  height: clamp(440px, 36vw, 540px);
  border-radius: 22px;
  background: #1c1c1e;
  color: #fff;
  text-decoration: none;
  overflow: clip;
  container-type: inline-size;
}

/* rainbow glow that follows the pointer (shows as a border + bloom) */
.pcard::before,
.pcard::after {
  content: ""; position: absolute; pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s ease;
}
.pcard::before {
  inset: 0; z-index: 1;
  background-image:
    conic-gradient(from 0deg at var(--mx) var(--my),
      #ffbd8c 0%, #fd8585 11%, #fd8585 15%, #f882ff 27%, #f882ff 31%, #8785fe 42%, #8785fe 46%,
      #9afcff 55%, #9afcff 59%, #99fd9c 70%, #99fd9c 74%, #fffd84 87%, #fffd84 91%, #ffbd8c 100%),
    radial-gradient(calc(var(--light) * 1.5) circle at var(--mx) var(--my), rgba(255,255,255,.7), rgba(0,0,0,.5) 50%),
    radial-gradient(calc(var(--light) * 1.5) circle at var(--mx) var(--my), transparent, rgb(33,22,44) 60%, var(--ink) 120%);
  background-blend-mode: hue, color-dodge;
}
/* noisy dark face with a soft spotlight */
.pcard::after {
  inset: 1px; z-index: 2;
  border-radius: 21px;
  background-color: #2c2c2c;
  background-image:
    radial-gradient(var(--light) circle at calc(var(--rx) * 100%) calc(var(--ry) * 100%), rgba(0,0,0,.55), #000),
    radial-gradient(var(--light) circle at calc(var(--rx) * 100%) calc(var(--ry) * 100%), #333c, #151515 var(--light)),
    var(--glitter),
    var(--glitter);
  background-position: center, center, center, calc(3px * var(--rx)) calc(3px * var(--ry));
  background-size: 300px 300px;
  background-blend-mode: normal, color-burn, color-dodge;
}
.pcards:hover > .pcard::before { opacity: 1; }
.pcards:hover > .pcard::after { opacity: .925; transition-delay: 0s; }

/* cover: fills the card at rest; on hover the bottom is clipped away
   (clip-path + transforms only, so nothing re-lays out mid-animation) */
.pcard--podcast { --c1: var(--orange-hi); --c2: var(--orange-lo); --btn: #fff;        --icon: var(--blue); --on-cover: #fff;        --p1: #f0702a; --p2: #d24c14; --on-panel: #fff; }
.pcard--article { --c1: var(--blue-hi);   --c2: #121bb8;          --btn: #fff;        --icon: var(--blue); --on-cover: #fff;        --p1: #2a36f0; --p2: #1018a8; --on-panel: #fff; }
.pcard--talk    { --c1: #f4f3ee;          --c2: #dcdbd4;          --btn: var(--blue); --icon: #fff;        --on-cover: var(--ink); --p1: #f4f3ee; --p2: #e6e5df; --on-panel: var(--ink); }
.pcard__cover {
  position: absolute; inset: 8px; z-index: 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  color: var(--on-cover);
  clip-path: inset(0 0 0 0 round 16px);
  transition: clip-path var(--dur) var(--smooth);
}
.pcard__art {
  position: absolute; left: 14px; right: 14px; top: 44px;
  font-size: clamp(40px, 13.5cqw, 92px); font-weight: 900; line-height: .86;
  font-variation-settings: "wdth" 62; letter-spacing: -.01em;
  text-transform: uppercase; overflow-wrap: break-word;
  transform-origin: 0 0;
  transition: scale var(--dur) var(--smooth);
}
.pcard__kind {
  position: absolute; left: 12px; top: 12px;
  font-size: 11px; letter-spacing: .06em;
}
.pcard__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  transition: scale var(--dur) var(--smooth);
}
/* soft blur strip, tinted with the cover colour, so the title reads */
.pcard__cover::after {
  content: ""; position: absolute; inset: auto 0 0; height: calc(var(--head) + 48px);
  background: linear-gradient(transparent, color-mix(in srgb, var(--c2) 92%, transparent) 70%);
  transition: opacity .3s;
}

/* magnetic button (play / read): eased toward the pointer in main.js */
.pcard__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--btn); color: var(--icon);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 20, .45);
  transition: scale .35s var(--smooth);
}
.pcard__play svg { width: 24px; height: 24px; display: block; }
.pcard__play .i-play { fill: currentColor; }
.pcard__play .i-read { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* text: sits on the cover's bottom edge at rest, slides up into view on hover */
.pcard__body {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: var(--panel);
  z-index: 4;
  display: flex; flex-direction: column;
  padding: 12px 12px 10px;
  color: var(--on-cover);
  translate: 0 calc(100% - var(--head));
  transition: translate var(--dur) var(--smooth), color .3s;
}
.pcard__body::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--p1), var(--p2));
  opacity: 0;
  transition: opacity .3s;
}
.pcard__body > * { flex-shrink: 0; }
.pcard__outlet { font-size: 11px; }
.pcard__title {
  margin: 6px 0 0; padding-bottom: .08em;
  font-size: clamp(19px, 1.7vw, 26px); font-weight: 700; line-height: 1.05;
  font-variation-settings: "wdth" 78; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__desc {
  margin: 6px 0 0;
  font-size: 15px; line-height: 1.38; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; translate: 0 6px;
  transition: opacity .15s, translate .3s var(--smooth);
}
.pcard__foot {
  margin-top: auto; padding-top: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  opacity: 0; translate: 0 6px;
  transition: opacity .15s, translate .3s var(--smooth);
}
/* footer: warm-white text in the site's own type (no pills, no mono caps) */
.pcard { --warm: #fff3e2; --foot-fg: var(--warm); }
.pcard--talk { --foot-fg: var(--ink); }
.pcard__meta,
.pcard__verb {
  font-family: var(--display); text-transform: none; letter-spacing: -.005em;
  font-size: 14px; line-height: 1.2;
  color: var(--foot-fg);
}
.pcard__meta { font-weight: 500; opacity: .8; }
.pcard__verb {
  display: inline-block; font-weight: 700;
  transition: translate .3s var(--spring);
}
.pcard:hover .pcard__verb { translate: 4px 0; }

/* open state */
.pcard:is(:hover, .is-active) .pcard__cover, .pcard:focus-visible .pcard__cover { clip-path: inset(0 0 calc(var(--panel) + 6px) 0 round 16px); }
.pcard:is(:hover, .is-active) .pcard__cover::after, .pcard:focus-visible .pcard__cover::after { opacity: 0; }
.pcard:is(:hover, .is-active) .pcard__cover img, .pcard:focus-visible .pcard__cover img { scale: 1.05; }
.pcard:is(:hover, .is-active) .pcard__art, .pcard:focus-visible .pcard__art { scale: .62; }
.pcard:is(:hover, .is-active) .pcard__play, .pcard:focus-visible .pcard__play { scale: 1.12; }
.pcard:is(:hover, .is-active) .pcard__body, .pcard:focus-visible .pcard__body { translate: 0 0; color: var(--on-panel); }
.pcard:is(:hover, .is-active) .pcard__body::before, .pcard:focus-visible .pcard__body::before { opacity: 1; }
.pcard:is(:hover, .is-active) .pcard__desc, .pcard:focus-visible .pcard__desc,
.pcard:is(:hover, .is-active) .pcard__foot, .pcard:focus-visible .pcard__foot {
  opacity: 1; translate: 0 0;
  transition: opacity .35s .08s, translate .5s .08s var(--smooth);
}
.pcard:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* floating button that carries the open card's button with the cursor (main.js) */
.pcards { position: relative; }
.pcards__fly {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--btn, #fff); color: var(--icon, var(--blue));
  box-shadow: 0 14px 30px -10px rgba(0, 0, 20, .5);
  pointer-events: none;
  opacity: 0; scale: .6;
  transition: opacity .2s, scale .35s var(--smooth), background-color .25s, color .25s;
  will-change: translate, transform;
}
.pcards__fly svg { width: 24px; height: 24px; display: block; }
/* the icon swaps when the button hops to another card (play ↔ read): ease the
   new one in so the hop doesn't blink; colours already cross-fade above */
.pcards__fly svg { animation: fly-icon .3s var(--smooth) both; }
@keyframes fly-icon { from { opacity: 0; scale: .5; } }
@media (prefers-reduced-motion: reduce) { .pcards__fly svg { animation: none; } }
.pcards__fly .i-play { fill: currentColor; }
.pcards__fly .i-read { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pcards.is-flying .pcards__fly { opacity: 1; scale: 1; }
.pcards.is-on .pcards__fly { scale: 1.12; }
/* the card being carried hides its own button while the floating one stands in */
.pcard.is-carried .pcard__play { opacity: 0; transition: opacity .1s; }
/* the magnetic button stands in for the cursor over the grid, so hide the
   system one (only once JS has the button up; is-on is set by main.js) */
@media (hover: hover) and (pointer: fine) {
  .pcards.is-on, .pcards.is-on * { cursor: none; }
}

/* touch: no hover, so every card shows open with the button centred on the cover */
@media (hover: none) {
  .pcard .pcard__cover { clip-path: inset(0 0 calc(var(--panel) + 6px) 0 round 16px); }
  .pcard .pcard__cover::after { opacity: 0; }
  .pcard .pcard__art { scale: .62; }
  .pcard .pcard__play { top: calc((100% - var(--panel) - 6px) / 2); }
  .pcard .pcard__body { translate: 0 0; color: var(--on-panel); }
  .pcard .pcard__body::before { opacity: 1; }
  .pcard .pcard__desc, .pcard .pcard__foot { opacity: 1; translate: 0 0; }
}
@media (max-width: 1000px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard { height: clamp(440px, 58vw, 540px); }
}
@media (max-width: 620px) {
  .pcards { grid-template-columns: minmax(0, 1fr); }
  .pcard { height: 460px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(90px, 12vw, 160px) var(--pad) clamp(80px, 10vw, 140px);
  background: var(--magenta); color: var(--paper);
}
.footer__word {
  margin: .12em calc(var(--pad) * -0.1) -.066em; /* top room for the hover lift; bottom: letters sit on the page edge */
  font-weight: 900; line-height: .74; letter-spacing: -.01em;
  font-variation-settings: "wdth" 62;
  white-space: nowrap;
}
.footer { overflow: hidden; }
/* "mezi" link (hero name + footer word): lowercase + orange. On hover the letters
   hop up in a quick wave and a rounded underline wipes in beneath them. */
.name__brand, .footer__mezi {
  position: relative; display: inline-block;
  color: var(--orange); text-decoration: none; text-transform: lowercase;
  transition: color .3s;
}
.name__brand > .ch, .footer__mezi > .l {
  display: inline-block;
  transition: translate .55s cubic-bezier(.34, 1.56, .64, 1);
}
.name__brand > :nth-child(2), .footer__mezi > :nth-child(2) { transition-delay: .04s; }
.name__brand > :nth-child(3), .footer__mezi > :nth-child(3) { transition-delay: .08s; }
.name__brand > :nth-child(4), .footer__mezi > :nth-child(4) { transition-delay: .12s; }
.name__brand:hover > *, .footer__mezi:hover > * { translate: 0 -.08em; }
/* hero: the lines sit only ~.06em apart, so a full .08em hop (on top of the
   cursor-proximity lift) pushes the dot of the "i" into the "L" above */
.name__brand:hover > * { translate: 0 -.025em; }
.name__brand::after, .footer__mezi::after {
  content: ""; position: absolute; left: .03em; right: .03em; bottom: -.02em; height: .045em;
  border-radius: 1em; background: currentColor;
  clip-path: inset(0 100% 0 0 round 1em);
  transition: clip-path .5s var(--ease) .08s;
}
.footer__mezi::after { bottom: .066em; height: .03em; } /* sits on the page's bottom edge, under the lifted letters */
.name__brand:hover, .footer__mezi:hover { color: var(--orange-hi); }
.name__brand:hover::after, .footer__mezi:hover::after { clip-path: inset(0 0 0 0 round 1em); }
/* tiny ".app" at the bottom right of the "i": out of flow so the big letters don't move.
   The outer span keeps the big font size, so its offsets and the hover lift (.08em)
   match the letters; the inner span carries the small text. */
.footer__tld {
  position: absolute; left: 100%; bottom: .066em; margin-left: -.016em; /* bottom = the page edge */
  transition: translate .55s cubic-bezier(.34, 1.56, .64, 1) .16s;
}
/* lifts a little less than the letters so the period lands on the bottom of the lifted "i" */
.footer__mezi:hover > .footer__tld { translate: 0 -.048em; }
.footer__tld > span {
  display: block; font-size: clamp(8px, .55vw, 11px); line-height: 1; letter-spacing: 0;
  font-weight: 700; font-variation-settings: "wdth" 100; text-transform: none;
}
.name__brand:focus-visible, .footer__mezi:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* =========================================================
   NFC TAP SCREEN
   ========================================================= */
.tap {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--blue); color: var(--paper);
  overflow-y: auto;
  transition: transform .8s var(--ease);
}
.tap[hidden] { display: none; }
.tap.is-leaving { transform: translateY(-100%); }
.tap__top { display: flex; justify-content: space-between; opacity: .8; }
.tap__stage { flex: 1; display: grid; place-items: center; min-height: 230px; perspective: 1000px; }
.card--tap { width: min(78vw, 340px); }
.card--tap .card__inner { animation: tapIn 1.4s var(--ease) both, float 6s 1.4s ease-in-out infinite; }
@keyframes tapIn {
  from { transform: translateY(70vh) rotateZ(25deg) rotateX(55deg) rotateY(-180deg); }
  to   { transform: rotateZ(-7deg); }
}
.tap__body { width: 100%; max-width: 480px; margin: 0 auto; animation: up .9s .5s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } }
.tap__title {
  margin: 0;
  font-size: clamp(44px, 13vw, 72px); line-height: .9; font-weight: 800; letter-spacing: -.04em;
  font-variation-settings: "wdth" 80;
}
.tap__title em { font-weight: 900; }
.tap__sub { margin: 14px 0 24px; font-size: 18px; opacity: .85; max-width: 30ch; }
.tap__enter {
  display: block; margin: 22px auto 0; padding: 8px;
  border: 0; background: none; opacity: .75;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- mezi content ---------- */
.card__logo { display: inline-flex; align-items: center; gap: 8px; }
.card__logo img { width: 1.1em; height: 1.1em; border-radius: 6px; }

/* =========================================================
   SIMPLE: words, not pills
   ========================================================= */
.hero__top {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 36px);
  align-self: start;
  padding-top: clamp(96px, 13vh, 150px);
  /* above the name: WILLIAM's box reaches higher than its letters and was
     swallowing hovers/clicks on these links. The row itself lets the mouse
     through (so the photo badge, which pokes up into it, still hovers);
     only the links catch it. */
  position: relative; z-index: 3;
  pointer-events: none;
}
.hero__top a { pointer-events: auto; }

.hero__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero__sub {
  font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; line-height: 1.1;
  font-variation-settings: "wdth" 88; letter-spacing: -.01em;
  color: var(--paper); opacity: .85;
}
/* "MIT Physics" (not ", Course 8"): links to the department, turns MIT red on hover */
.hero__mit {
  display: inline-block;   /* a solid hover box, not just the glyphs */
  color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: color .3s var(--ease), background-size .6s var(--ease);
}
.hero__mit:hover, .hero__mit:focus-visible { color: var(--mit-red); background-size: 100% 2px; outline: none; }

/* orange words, links to mezi */
.role {
  color: var(--orange-hi);
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 700; line-height: 1.05;
  font-variation-settings: "wdth" 88; letter-spacing: -.02em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size .6s var(--ease);
}
.role:hover { background-size: 100% 2px; }
.role__arrow { display: inline-block; transition: transform .5s var(--ease); }
.role:hover .role__arrow { transform: translate(3px, -3px); }

/* underlined text link (used for "Visit mezi.app", "Send it") */
.textlink {
  display: inline-flex; gap: .3em; align-items: baseline;
  padding: 0 0 6px; border: 0; background: none;
  font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.02em;
  font-variation-settings: "wdth" 90;
  color: inherit; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid currentColor;
}
.textlink span { display: inline-block; transition: transform .5s var(--ease); }
.textlink:hover span { transform: translate(4px, -4px); }

/* menu button: just three blue lines, they turn into an X */
.burger {
  /* name → burger icon matches photo → name: bar gap (14) + burger padding (10) - 12 = 12 */
  margin-left: -12px; flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--blue);
  cursor: pointer;
}
.burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.burger__icon { position: relative; width: 24px; height: 16px; }
.burger__icon i {
  position: absolute; right: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease), opacity .2s;
}
.burger__icon i:nth-child(1) { top: 0; }
.burger__icon i:nth-child(2) { top: 6.75px; }
.burger__icon i:nth-child(3) { top: 13.5px; }
/* hover: the lines stagger */
.burger:not([aria-expanded="true"]):hover .burger__icon i:nth-child(2) { width: 70%; }
.burger:not([aria-expanded="true"]):hover .burger__icon i:nth-child(3) { width: 45%; }
.menu-open .burger__icon i:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
.menu-open .burger__icon i:nth-child(2) { opacity: 0; }
.menu-open .burger__icon i:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }


/* NFC tap screen: words */
.tap__save {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-block: 2px solid var(--paper);
  font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.03em;
  font-variation-settings: "wdth" 85;
  text-decoration: none;
}
.tap__links { display: flex; gap: 22px; margin-top: 18px; }
.tap__links a { font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 560px) {
  .me { width: 120px; --px: 88px; }
  .hero__top { gap: 14px; }
  .hero__foot span:nth-child(3) { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__top { padding-top: 72px; padding-bottom: 32px; }
  .me { width: 110px; --px: 80px; }
}

/* =========================================================
   MEZI — one frame in mezi's style: mezi.app's landing hero
   (Poppins, brand gradient, me·Z·i wordmark, two buttons and a
   deal open on a tilted phone). The old demo: archive/mezi-demo/.
   ========================================================= */
.mz {
  --mz-font: "Poppins", system-ui, sans-serif;
  --mz-cream: #ebe7e1;   /* mezi.app's off-white: the wordmark, buttons, the app's screen */
  --mz-dark: #26272a;    /* mezi.app's dark button and phone frame */
  position: relative; isolation: isolate; overflow: hidden;
  font-family: var(--mz-font); font-variation-settings: normal;
  padding: 110px var(--pad) 70px;
  color: var(--mz-cream);
  background: linear-gradient(115deg, var(--orange-lo) 0%, var(--orange) 45%, var(--orange-hi) 100%);
}
.mz::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 40% at 78% 40%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(50% 46% at 10% 96%, rgba(214,74,16,.45), transparent 72%);
  animation: mzDrift 20s ease-in-out infinite alternate;
}
@keyframes mzDrift { to { transform: translate3d(2%, 1.5%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .mz::before { animation: none; } }

.mz-hero { width: 100%; max-width: 1280px; margin: 0 auto; }
.mz-copy { max-width: min(52%, 640px); }
.mz-kicker { margin: 0 0 6px; font-size: 15px; font-weight: 500; opacity: .85; }
.mz-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mz-kicker a:hover { opacity: .7; }
.mz-wordmark {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-weight: 700; line-height: 1; letter-spacing: -.02em;
  font-size: clamp(4.5rem, 11.5vw, 11rem);
}
.mz-z {
  flex: 0 0 auto; width: .63em; height: .7em; margin: 0 .02em;
  transform: translateY(.08em);
  filter: drop-shadow(0 2px 4px rgba(120,40,0,.25)) drop-shadow(0 0 9px rgba(255,255,255,.35));
}
.mz-headline {
  margin: clamp(4px, 1vw, 12px) 0 0; max-width: 22ch;
  font-size: clamp(1.4rem, 2.3vw, 2.3rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em;
}
.mz-actions { display: flex; align-items: center; gap: 10px; margin-top: clamp(22px, 3.4vh, 34px); flex-wrap: wrap; }
/* mezi.app's buttons, as rounded rectangles (no pills on this site) */
.mz-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; height: 50px; padding: 0 22px; border-radius: 13px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.mz-btn--light { background: var(--mz-cream); color: var(--mz-dark); box-shadow: 0 10px 26px -12px rgba(120, 40, 0, .5); }
.mz-btn--dark { background: var(--mz-dark); color: var(--mz-cream); box-shadow: 0 10px 26px -12px rgba(40, 14, 0, .6); }
@media (hover: hover) { .mz-btn:hover { transform: translateY(-2px); } }
.mz-btn:active { transform: translateY(1px); }
.mz-apps { margin: 16px 0 0; font-size: 13.5px; font-weight: 500; opacity: .85; }
.mz-apps a { margin-left: 8px; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mz-apps a:hover { opacity: .7; }

/* the phone: as wide as the screen's height allows, tilted the way mezi.app
   tilts it, its foot cut off by the frame. Everything inside is sized in
   cqw (1% of the phone's width) so the picture scales as one. It rises into
   place when the frame is read (.reveal); rotate is its own property so the
   reveal's transform doesn't undo the tilt. */
.mz-phone {
  --mz-phone-w: min(34vw, calc((100svh - 120px) / 1.5), 540px);
  position: absolute; top: 104px; right: max(var(--pad), calc((100% - 1280px) / 2 + 2%));
  container-type: inline-size;
  width: var(--mz-phone-w); aspect-ratio: 9 / 19.2;
  padding: 2.6cqw; border-radius: 15cqw;
  background: var(--mz-dark);
  box-shadow: inset 0 0 0 .5cqw #4a4b4f, 0 40px 80px -30px rgba(90, 28, 0, .6);
  rotate: 7deg; transform-origin: 50% 100%;
}
.mz-phone.reveal { transition-duration: 1.2s; }
.mz-phone.reveal:not(.is-in) { transform: translateY(14%); }
.mz-phone__screen {
  height: 100%; overflow: hidden; border-radius: 12.6cqw;
  padding: 4.5cqw 5cqw; background: var(--mz-cream); color: #1f1f22;
  display: flex; flex-direction: column; gap: 3.6cqw;
}
.mz-phone p { margin: 0; }
.mz-phone svg { display: block; }
.mzp-status { display: flex; align-items: center; justify-content: space-between; padding: 0 3cqw; font-size: 4.2cqw; font-weight: 600; }
.mzp-status svg { width: 13cqw; }
.mzp-island { width: 28cqw; height: 8cqw; border-radius: 4cqw; background: #111; }
.mzp-top { display: flex; align-items: center; gap: 3cqw; }
.mzp-back { flex: none; width: 5.5cqw; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mzp-toggle { flex: 1; display: flex; padding: 1cqw; border-radius: 3.6cqw; background: #dbd7d1; }
.mzp-toggle span { flex: 1; padding: 2.2cqw 0; border-radius: 2.8cqw; text-align: center; font-size: 4cqw; font-weight: 500; color: #77736e; }
.mzp-toggle .is-on { background: var(--mz-cream); color: var(--orange-lo); box-shadow: 0 .4cqw 1.2cqw rgba(0,0,0,.12); }
.mzp-deal { padding: 4.6cqw 5cqw 5cqw; border-radius: 4.6cqw; background: var(--orange-lo); color: #fff; }
.mzp-deal__title { font-size: 5.8cqw; font-weight: 700; letter-spacing: -.01em; }
.mzp-label { margin-top: 1.4cqw !important; font-size: 2.9cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mzp-label--orange { margin: 0 0 1cqw !important; color: var(--orange-lo); opacity: 1; }
.mzp-deal__row { display: flex; align-items: center; justify-content: space-between; margin-top: .6cqw; }
.mzp-deal__amount { font-size: 9.6cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.mzp-deal__when {
  display: inline-flex; align-items: center; gap: 1.4cqw;
  padding: 2cqw 3cqw; border-radius: 2.8cqw; background: var(--mz-cream); color: var(--orange-lo);
  font-size: 3.5cqw; font-weight: 600;
}
.mzp-deal__when svg { width: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mzp-card { padding: 4.4cqw 5cqw; border-radius: 4.6cqw; background: #f4f2ee; }
.mzp-card__title { font-size: 4.6cqw; font-weight: 600; }
.mzp-card__text { margin-top: 1.6cqw !important; font-size: 3.9cqw; line-height: 1.45; color: #3b3a38; }
.mzp-term { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 0; font-size: 4.1cqw; font-weight: 500; }
.mzp-term + .mzp-term { border-top: 1px solid #e3dfd9; }
.mzp-term span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mzp-term i { flex: none; display: grid; place-items: center; width: 7.4cqw; aspect-ratio: 1; border-radius: 50%; background: #d8f0dd; color: #2f9e55; }
.mzp-term i svg { width: 4.4cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mzp-chev { flex: none; width: 4.4cqw; fill: none; stroke: #8a8681; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* tablets: the words keep the left half, the phone a little narrower */
@media (min-width: 621px) and (max-width: 900px) {
  .mz-copy { max-width: 56%; }
  .mz-phone { --mz-phone-w: min(38vw, calc((100svh - 120px) / 1.5)); right: var(--pad); }
}


/* =========================================================
   FRAMES: every section is one screen
   ========================================================= */
.frame {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.press.frame { justify-content: flex-start; padding-bottom: 56px; }
.press.frame .press__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 48px; }
.contact.frame { padding: 86px var(--pad) 40px; }
.frame .label { margin-bottom: clamp(18px, 3.2vh, 40px); }

/* Page turns between frames are done in main.js ("Frames") for touch, wheel
   and keys alike, so phones and desktops scroll the same way. The old
   touch-only CSS scroll snap is in archive/touch-scroll-snap/. */

/* =========================================================
   PRESS: fit all six cards on one desktop screen
   (kept last so it wins over the .frame rules above)
   ========================================================= */
.press .label {
  padding: 0; background: none; border: 0; box-shadow: none; transform: none;
  color: #fff; font: 500 12px var(--mono); letter-spacing: .02em;
}
@media (min-width: 1001px) {
  /* no banner: the grid fills the screen, clearing the floating nav pill */
  .press.frame { height: 100svh; min-height: 640px; padding: 0; }
  .press.frame .press__inner { padding: 92px var(--pad) 24px; justify-content: flex-start; }
  .pcards { flex: 1; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pcard { height: auto; min-height: 0; container-type: size; }
  .pcard__title { font-size: clamp(18px, 1.5vw, 24px); }
  .pcard__desc { font-size: 14px; }
}
@container (max-height: 330px) { .pcard__desc { -webkit-line-clamp: 2; } }
@container (max-height: 280px) { .pcard__desc { -webkit-line-clamp: 1; } }
@container (max-height: 240px) { .pcard__desc { display: none; } }


/* =========================================================
   CONTACT: form card + two inboxes
   ========================================================= */
.cf {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px); align-items: stretch;
}
.cf__card {
  --acc: var(--orange);
  position: relative;
  padding: clamp(22px, 2.8vw, 44px);
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--ink);
}
.cf__card[data-topic="personal"] { --acc: var(--blue); }
.cf { min-height: min(740px, calc(100svh - 250px)); }
.cf__card { display: flex; flex-direction: column; }
.cf__form { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.fw { display: flex; flex-direction: column; gap: 6px; }
.fw--grow { flex: 1; }
.fw--grow textarea.fi { flex: 1; }
.cf__form[hidden], .cf__done[hidden] { display: none; }

.cf__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.cf__title {
  margin: 0; font-size: clamp(28px, 2.6vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1;
}

/* the pill: a yellow thumb springs between the two options */
.pill {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border: 2.5px solid var(--ink); border-radius: 14px;
  background: #fff; box-shadow: 3px 3px 0 var(--ink);
}
.pill__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--pop); border: 2px solid var(--ink); border-radius: 10px;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), rotate .5s;
}
[data-topic="personal"] > .pill .pill__thumb, [data-topic="personal"] .cf__head .pill__thumb { transform: translateX(100%); }
.pill label { position: relative; z-index: 1; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill label span {
  display: block; padding: 10px 18px; text-align: center; white-space: nowrap;
  font-weight: 700; font-size: 15px; opacity: .5; transition: opacity .25s;
}
.pill input:checked + span { opacity: 1; }
.pill input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
.pill:active .pill__thumb { rotate: -3deg; }

/* fields */
.fi {
  width: 100%; padding: 18px 20px;
  font: 600 19px/1.35 var(--display); color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 18px;
  outline: none; resize: vertical;
  transition: box-shadow .2s, transform .2s;
}
textarea.fi { min-height: 160px; }
.fi::placeholder { color: rgba(12,12,13,.4); font-weight: 500; }
.fi:focus { box-shadow: 4px 4px 0 var(--acc); transform: translate(-2px, -2px); }
.fi.is-bad { border-color: #e63946; background: #fff1f2; box-shadow: 4px 4px 0 #e63946; animation: shake .35s; }
.fi.is-bad::placeholder { color: rgba(230,57,70,.55); }
.fe { display: none; align-items: center; gap: 6px; padding-left: 4px; font: 600 13px var(--display); color: #e63946; }
.fe::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e63946; color: #fff; font-size: 11px; font-weight: 900; }
.fi.is-bad + .fe { display: flex; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

.cf__send {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 8px 8px 8px 26px;
  font: 800 19px/1 var(--display); letter-spacing: -.01em;
  background: var(--acc); color: #fff;
  border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: background .4s, transform .15s, box-shadow .15s;
}
.cf__arrow {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-size: 22px;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.cf__send:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.cf__send:hover .cf__arrow { transform: rotate(-45deg); }
.cf__send:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cf__send:disabled { opacity: .7; cursor: progress; }
.cf__send:disabled .cf__arrow { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cf__hint { margin: 0; min-height: 1em; font-size: 12px; color: #e63946; }
.cf__hint a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf__done { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px 0; }
.cf__check {
  display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px;
  font-size: 44px; font-weight: 900; color: var(--ink);
  background: var(--pop); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink);
  animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes pop-in { from { transform: scale(0) rotate(-90deg); } }
.cf__done-title { margin: 0; font-size: clamp(36px, 3.6vw, 60px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.cf__done-sub { margin: 0 0 10px; font-size: 19px; opacity: .7; }
.cf__again { padding: 0 0 2px; background: none; border: 0; border-bottom: 1.5px solid currentColor; color: inherit; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* icons */
.ic { width: 1em; height: 1em; flex: none; }
.pill label span { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pill label .ic { width: 16px; height: 16px; }

/* full-width form: name + email side by side, emails as chips in the header */
.cf { grid-template-columns: minmax(0, 1fr); }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 640px) {
  .cf__card { box-shadow: 6px 6px 0 var(--ink); border-radius: 22px; }
  .cf__head { flex-direction: column; align-items: stretch; }
  .cf__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pill__thumb, .cf__check, .fi.is-bad { transition: none; animation: none; }
}

/* nav photo uses the hero's pop-out: on hover the head scales up and pops out of
   the top of the circle, while the circle itself stays the same size */
.logo__photo { position: relative; overflow: visible; background: none; box-shadow: none; }
/* the circle part of the image fills the link exactly (the extra headroom sticks out the
   top), so the photo is centred in the bar and lines up with the orbiting photo (main.js) */
.logo__photo img.pop--nav {
  --px: 42px; --b: 2px; --c: #fff; --cb: var(--blue);
  position: absolute; left: 0; bottom: 0;
  width: var(--px); height: auto; object-position: 50% 0;
  translate: none;
  box-shadow: none;
}
.logo__photo:hover img.pop--nav, .logo__photo:focus-visible img.pop--nav { --f: 1.4; }
@media (max-width: 768px) { .logo__photo img.pop--nav { --px: 38px; } }

/* KEEP (nav): "mezi" inside "mezitis" is orange, links to mezi.app, underlines on hover */
.logo__top { color: inherit; text-decoration: none; }
.logo__mezi {
  color: var(--orange); text-decoration: underline;
  text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color .25s;
}
.logo__mezi:hover, .logo__mezi:focus-visible { text-decoration-color: currentColor; outline: none; }

/* KEEP (menu): matches the compact nav — a white card that drops straight down from the bar */
.menu {
  --bg: #fff;
  top: 86px; right: auto; left: 50%; translate: -50% 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(600px, calc(100dvh - 104px));
  border: 0; border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(20, 17, 13, .35), 0 2px 6px -2px rgba(20, 17, 13, .06);
  color: #2d2823;
  font-family: var(--display);
  transform-origin: 50% -12px;
  transform: translateY(-10px) scale(.97);
}
.menu-open .menu { transform: none; }
.menu__tail, .menu__puff { display: none; }
.menu__search { margin: 10px 10px 2px; }
.menu__search svg { fill: rgba(45, 40, 35, .55); }
.menu__search input {
  border: 1px solid transparent; border-radius: 10px; background: #f3f2ee;
  font: 500 15px var(--display); color: #2d2823;
}
.menu__search input::placeholder { color: rgba(45, 40, 35, .5); }
.menu__search:hover input { border-color: rgba(20, 17, 13, .12); background: #f3f2ee; }
.menu__search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(139, 0, 139, .12); }
.menu .tree [role="treeitem"] { font-family: var(--display); font-weight: 600; font-variation-settings: normal; letter-spacing: -.01em; border-radius: 10px; }
@media (max-width: 768px) {
  .menu { top: 82px; right: auto; width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 96px); }
}

/* KEEP (hero): "Founder & CEO of mezi" — white at rest; on hover only "mezi"
   fills with orange from the left, lifts a touch, and gets an orange underline;
   the arrow turns orange and nudges out. */
.role {
  color: var(--paper);
  background: none; padding-bottom: 6px;
  /* a solid hover box: as an inline link its hit area was just the glyphs, so
     "mezi" lifting 2px could slide out from under the cursor and drop the hover */
  display: inline-block; position: relative; padding-top: 4px; margin-top: -4px;
}
.role::after { content: ""; position: absolute; inset: -4px -6px; }   /* a little slack round the edges */
.role__mezi::after { pointer-events: none; }
.role__mezi {
  position: relative; display: inline-block;
  transition: translate .5s cubic-bezier(.34, 1.56, .64, 1);
}
.role__mezi::before {                 /* the orange copy that wipes in over the white */
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--orange-hi);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .5s var(--ease);
}
.role__mezi::after {                  /* orange underline under "mezi" only */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  border-radius: 3px; background: var(--orange-hi);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease) .06s;
}
.role__arrow { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.role:hover .role__mezi, .role:focus-visible .role__mezi { translate: 0 -2px; }
.role:hover .role__mezi::before, .role:focus-visible .role__mezi::before { clip-path: inset(0 0 0 0); }
.role:hover .role__mezi::after, .role:focus-visible .role__mezi::after { transform: scaleX(1); }
.role:hover .role__arrow, .role:focus-visible .role__arrow { transform: translate(4px, -4px); color: var(--orange-hi); }
.role:hover, .role:focus-visible { background: none; outline: none; }

/* Normal system cursor everywhere (the custom "Open" cursor is gone);
   every link and button carries its own hover instead. */
a, button, [role="button"], select, label[for], summary { cursor: pointer; }

/* KEEP (hero): "mezi" in "Founder & CEO of mezi" is orange; on hover it lifts
   and an orange underline draws in beneath it, and the arrow nudges out. */
.role__mezi { color: var(--orange-hi); }
.role__mezi::before { display: none; }

/* contact: narrower, centered form */
.cf { width: 100%; max-width: 920px; margin-inline: auto; }

/* icon picker: the picked option expands to show its label, the other is just an icon */
.pill { display: inline-flex; grid-template-columns: none; gap: 4px; }
.pill label span {
  display: inline-flex; align-items: center; gap: 0;
  padding: 9px 11px; border: 2px solid transparent; border-radius: 10px;
  opacity: .55;
  transition: background .3s, border-color .3s, opacity .2s, padding .45s cubic-bezier(.34, 1.56, .64, 1);
}
.pill label .ic { width: 19px; height: 19px; }
.pill label em {
  font-style: normal; white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s, margin .45s;
}
.pill label:hover span { opacity: .9; }
.pill input:checked + span { opacity: 1; padding-right: 16px; background: var(--acc); color: #fff; border-color: var(--ink); }
.pill input:checked + span em { max-width: 110px; opacity: 1; margin-left: 8px; }
@media (max-width: 640px) { .pill { align-self: flex-start; } }


/* smoother picker switch: one easing curve, synced timing, label fades in after the pill opens */
.pill { --sw: .5s; --se: cubic-bezier(.65, 0, .35, 1); }
.pill label span {
  transition: background-color var(--sw) var(--se), color var(--sw) var(--se),
              border-color var(--sw) var(--se), padding var(--sw) var(--se), opacity .3s;
}
.pill label em {
  transition: max-width var(--sw) var(--se), margin var(--sw) var(--se), opacity .15s ease;
}
.pill input:checked + span em {
  transition: max-width var(--sw) var(--se), margin var(--sw) var(--se), opacity .3s ease .18s;
}
.pill label .ic { transition: transform var(--sw) var(--se); }
.pill input:checked + span .ic { transform: scale(1.06); }

.cf__send, .fi { transition: background-color .5s cubic-bezier(.65, 0, .35, 1), box-shadow .2s, transform .2s, border-color .2s; }

/* the hint line only takes space when it has something to say */
.cf__hint:empty { display: none; }
/* the form came from William's site (in his Archivo); it now takes her Inter via --sans */
.cf__card { --display: var(--sans); font-family: var(--sans); }
/* neither Inter nor Archivo carries →, so on William's site it falls back to
   Arial Black; borrow his fallback so the send arrow is the same chunky one */
.cf__arrow { font-family: "Archivo", "Arial Black", system-ui, sans-serif; }
/* Archivo's tight tracking runs Inter's heavy words together, so ease it */
.cf__title, .cf__done-title { letter-spacing: -.02em; }

/* =========================================================
   MENU 2.0 — original look + popups, commands, logo links
   with tabs, a calculator, popups (panes) and logo social buttons
   ========================================================= */
.menu {
  --surf: #f3f2ee; --line: rgba(20, 17, 13, .08); --muted: rgba(45, 40, 35, .6);
  display: flex; flex-direction: column; gap: 8px; overflow: visible;
  background: none; box-shadow: none;
}
/* two boxes: the main card, and the socials box under it */
.menu__card, .menu__foot {
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(20, 17, 13, .35), 0 2px 6px -2px rgba(20, 17, 13, .06);
}
.menu__card { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: clip; }
/* never scroll sideways: hover nudges and wide italics stay clipped */
.menu__nav, .pane__body { overflow-x: clip; }
.menu__nav { flex: 1 1 auto; min-height: 0; padding: 4px 0 8px; }
.menu__search { flex: none; }
.menu kbd { font-family: var(--mono); }

/* icons */
.ico { width: 18px; height: 18px; flex: none; display: block; }
.ico--mezi {
  display: block; background: currentColor;
  -webkit-mask: url(/assets/mezi-mark-white.svg) center / contain no-repeat;
          mask: url(/assets/mezi-mark-white.svg) center / contain no-repeat;
}

/* footer: the original text links, each with its logo in brand colour */
.menu__foot { flex: none; position: relative; z-index: 1; } /* above the card's shadow, so it stays pure white */
.menu__chips { display: flex; flex-wrap: nowrap; justify-content: space-evenly; padding: 8px 6px; }
.soc {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; margin: 0;
  appearance: none; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer;
  font: 500 14px var(--display); color: rgba(45, 40, 35, .75);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.soc { padding: 8px; }
.soc .ico { width: 20px; height: 20px; transition: transform .4s var(--spring); }
.soc--x .ico { color: #000; }
.soc--instagram .ico { color: #e1306c; }
.soc--mezi .ico { color: var(--orange); }
.soc--mail .ico { color: var(--blue); }
.soc--linkedin .ico { color: #0a66c2; }
.soc--youtube .ico { color: #ff0000; }
.soc--tiktok .ico, .soc--threads .ico { color: #000; }
/* brand logo next to a link's name in search results */
.res__logo { display: inline-block; margin-right: 8px; vertical-align: -2px; }
.res__logo .ico { width: 18px; height: 18px; }
.res.is-top .res__logo .ico { color: var(--paper); }
.soc:hover, .soc:focus-visible { color: var(--blue); background: none; text-decoration-color: currentColor; outline: none; }
.soc:hover .ico, .soc:focus-visible .ico { transform: scale(1.18); }

/* search tabs: centered, in the page face; one underline runs under the name and its count */
.menu__tabs { flex: none; display: flex; justify-content: space-between; gap: 8px; padding: 12px 24px 2px; }
.menu__tabs[hidden] { display: none; }
.menu__tabs button {
  display: inline-flex; align-items: baseline; gap: 4px; flex: none;
  padding: 2px 0 4px; border: 0; border-bottom: 2px solid transparent; background: none;
  font: 600 14px var(--display); letter-spacing: -.01em; font-variation-settings: "wdth" 90;
  color: var(--muted); transition: color .2s, border-color .2s;
}
.menu__tabs button i { font: 500 12px var(--mono); font-style: normal; opacity: .7; }
.menu__tabs button:hover:not(:disabled) { color: var(--ink); }
.menu__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu__tabs button:disabled { opacity: .35; cursor: default; }

/* ---- smart search results (original look) ---- */
.menu__results { padding: 8px 12px 4px; display: grid; gap: 4px; }
.menu__results[hidden] { display: none; }
.res {
  position: relative; display: grid; gap: 3px; width: 100%;
  padding: 10px 14px 10px 16px; border: 0; border-radius: 14px; background: none;
  text-align: left; text-decoration: none; color: var(--ink); font: inherit;
  animation: res-in .4s var(--ease) both;
  transition: background .2s, transform .45s var(--spring), padding .4s var(--spring);
}
.res:nth-child(2) { animation-delay: .03s; } .res:nth-child(3) { animation-delay: .06s; }
.res:nth-child(4) { animation-delay: .09s; } .res:nth-child(n+5) { animation-delay: .12s; }
@keyframes res-in { from { opacity: 0; transform: translateY(6px); } }
.res small { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.res b {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-variation-settings: "wdth" 85;
  transition: font-variation-settings .5s var(--ease);
}
.res b i { display: inline-block; font-style: normal; font-weight: 600; color: var(--blue); transition: transform .4s var(--ease); }
.res > span { font-size: 14px; line-height: 1.35; opacity: .8; }
.res mark { background: none; color: inherit; text-decoration: underline 2px var(--blue); text-underline-offset: 3px; }
.res[aria-selected="true"] { background: rgba(139, 0, 139, .07); }
.res[aria-selected="true"] b { font-variation-settings: "wdth" 105; }
.res[aria-selected="true"] b i { transform: translate(5px, -2px) rotate(-10deg); }
.res.is-top { margin: 6px 0 8px; padding: 14px 16px; background: var(--blue); color: var(--paper); }
.res.is-top small { color: var(--paper); opacity: .7; }
.res.is-top b { font-size: 26px; }
.res.is-top b i, .res.is-top > span { color: var(--paper); }
.res.is-top mark { text-decoration-color: var(--paper); }
.res.is-top[aria-selected="true"] { background: var(--blue-hi); }
/* calculator: a right-aligned display in the site's type — expression small on top, answer in the headline face */
.res.is-calc {
  gap: 0; margin: 2px 0 6px; padding: 12px 16px 14px;
  background: var(--surf); animation: none; cursor: default; text-align: right;
}
.res.is-calc[aria-selected="true"] { background: var(--surf); }
.calc__q { font: 400 13px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.res.is-calc .calc__a {
  margin-top: 2px;
  font: 800 44px/1 var(--display); letter-spacing: -.02em; font-variation-settings: "wdth" 80;
  font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere;
}
.res.is-calc .calc__a--sm { font-size: 26px; line-height: 1.1; }
.calc__alt { margin-top: 4px; font: 500 15px var(--display); color: var(--muted); }
.calc__copy {
  position: absolute; top: 12px; left: 16px;
  font: 400 11px var(--mono); color: var(--muted); opacity: 0; transition: opacity .2s;
}
.res.is-calc[aria-selected="true"] .calc__copy, .res.is-calc:hover .calc__copy { opacity: 1; }
.res.is-calc .plot { text-align: left; }

.plot { margin-top: 8px; }
.plot svg {
  display: block; width: 100%; border-radius: 8px; background: #fff;
  touch-action: none; cursor: crosshair; user-select: none;
}
.plot svg.is-dragging { cursor: grabbing; }
.plot__grid { stroke: rgba(20, 17, 13, .07); stroke-width: 1; }
.plot__axis { stroke: rgba(20, 17, 13, .45); stroke-width: 1; }
.plot__labels { font: 400 9.5px var(--mono); fill: rgba(45, 40, 35, .6); stroke: #fff; stroke-width: 3px; paint-order: stroke; stroke-linejoin: round; }
.plot__curve { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.plot__mark { fill: #fff; stroke: rgba(20, 17, 13, .45); stroke-width: 1.5; }
.plot__dot { stroke: #fff; stroke-width: 2; }
.plot__read { display: flex; min-height: 18px; padding-top: 6px; font: 400 12px var(--mono); color: var(--ink); }
.plot__read em { font-style: normal; color: var(--muted); }
.plot__tip { color: var(--muted); }

.menu__none { display: grid; justify-items: center; gap: 2px; padding: 18px 8px 12px; text-align: center; }
.menu__none b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; font-variation-settings: "wdth" 85; color: var(--ink); }
.menu__none span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px var(--display); color: var(--muted); }

/* clear-search ×, inside the right end of the field */
.menu__clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none;
  color: var(--muted); cursor: pointer; transition: color .2s, background .2s;
}
.menu__clear[hidden] { display: none; }
.menu__clear::before, .menu__clear::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.75px; border-radius: 2px;
  background: currentColor; translate: -50% -50%; rotate: 45deg;
}
.menu__clear::after { rotate: -45deg; }
.menu__clear:hover, .menu__clear:focus-visible { color: var(--ink); background: rgba(20, 17, 13, .06); outline: none; }
.menu__search:has(.menu__clear:not([hidden])) input { padding-right: 42px; }


/* ---------- panes: popups that slide in over the menu ---------- */
.pane {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  background: #fff; opacity: 0; transform: translateX(28px);
  transition: opacity .2s ease, transform .4s var(--ease);
}
.pane[hidden] { display: none; }
.pane.is-in { opacity: 1; transform: none; }
.pane__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pane__back {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: var(--surf); color: #2d2823; transition: background .2s, color .2s, transform .35s var(--spring);
}
.pane__back svg { width: 18px; height: 18px; }
.pane__back:hover, .pane__back:focus-visible { background: var(--blue); color: #fff; transform: translateX(-2px); outline: none; }
.pane__title { flex: 1; font-size: 16px; font-weight: 600; }
.pane__esc { font-size: 10px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); text-transform: lowercase; }
.pane__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: grid; gap: 10px; align-content: start; }
.pane__body > * { animation: res-in .4s var(--ease) both; }
.pane__body > :nth-child(2) { animation-delay: .04s; } .pane__body > :nth-child(3) { animation-delay: .08s; } .pane__body > :nth-child(n+4) { animation-delay: .12s; }
.pane__label { margin: 4px 2px 0; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.pane__note { margin: 0 2px; font-size: 13px; color: var(--muted); }

.pbtn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 11px; background: var(--surf); color: #2d2823;
  font: 500 13.5px var(--display); text-align: left; text-decoration: none;
  transition: background .2s, color .2s, transform .35s var(--spring);
}
.pbtn .ico { width: 17px; height: 17px; }
.pbtn:hover, .pbtn:focus-visible { background: var(--blue); color: #fff; transform: translateY(-2px); outline: none; }
.pbtn:active { transform: scale(.97); }
.pbtn--solid { justify-content: center; background: var(--blue); color: #fff; }
.pbtn--solid:hover, .pbtn--solid:focus-visible { background: var(--blue-hi); }
.pbtn--ghost { justify-content: center; background: none; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
.pgrid--3 .pbtn { flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; text-align: center; font-size: 12px; }
@media (max-width: 380px) { .pgrid--3 { grid-template-columns: 1fr 1fr; } }

/* email */
.pe__addr {
  display: grid; gap: 4px; justify-items: center; padding: 22px 12px; border: 1.5px dashed rgba(139, 0, 139, .35);
  border-radius: 14px; background: rgba(139, 0, 139, .04); color: var(--blue);
  font: 700 clamp(18px, 5.4vw, 22px) var(--display); letter-spacing: -.02em;
  transition: background .2s, color .2s, border-color .2s, transform .4s var(--spring);
}
.pe__addr small { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.pe__addr small .ico { width: 12px; height: 12px; }
.pe__addr:hover, .pe__addr:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; outline: none; transform: rotate(-1deg) scale(1.01); }
.pe__addr:hover small, .pe__addr:focus-visible small { color: rgba(255, 255, 255, .75); }

/* share */
.ps__url {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left;
  font: 500 14px var(--mono); color: #2d2823;
}
.ps__url span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps__url b {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px;
  background: var(--blue); color: #fff; font: 600 13px var(--display);
  transition: background .2s, transform .35s var(--spring);
}
.ps__url b .ico { width: 14px; height: 14px; }
.ps__url:hover b, .ps__url:focus-visible b { background: var(--blue-hi); transform: scale(1.05); }
.ps__url:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* time */
.ptime { display: grid; justify-items: center; text-align: center; padding: 4px 0; }
.ptime__clock { width: 150px; height: 150px; margin-bottom: 10px; overflow: visible; }
.ptime__face { fill: var(--surf); stroke: #2d2823; stroke-width: 1.5; }
.ptime__tick { stroke: rgba(45, 40, 35, .35); stroke-width: 1.5; stroke-linecap: round; }
.ptime__tick.is-major { stroke: #2d2823; stroke-width: 2.5; }
.ptime__h, .ptime__m, .ptime__s { stroke-linecap: round; transform-origin: 50px 50px; transform-box: view-box; }
.ptime__h { stroke: #2d2823; stroke-width: 4.5; }
.ptime__m { stroke: #2d2823; stroke-width: 3; }
.ptime__s { stroke: var(--orange); stroke-width: 1.5; transition: transform .35s var(--spring); }
.ptime__pin { fill: var(--orange); }
.ptime__big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ptime__city { margin-top: 6px; font-size: 11px; color: var(--muted); }
/* plain words in the mood's colour: no pill, no status dot */
.ptime__status {
  margin: 12px 0 14px; color: #11804a;
  font-size: 13px; font-weight: 600;
}
.ptime__status[data-mood="zz"] { color: #5b4fb0; }
.ptime__status[data-mood="am"] { color: #c0501a; }
.ptime__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin: 0; }
.ptime__rows div { padding: 10px; border-radius: 11px; background: var(--surf); }
.ptime__rows dt { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ptime__rows dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }


/* shortcuts */
.pkeys { display: grid; gap: 2px; }
.pkeys__row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pkeys__row:last-child { border-bottom: 0; }
.pkeys__row span { display: flex; gap: 4px; min-width: 74px; }
.pkeys__row b { font-size: 13.5px; font-weight: 500; }
.pkeys kbd {
  min-width: 26px; padding: 3px 7px; border-radius: 6px; text-align: center;
  background: #fff; border: 1px solid rgba(20, 17, 13, .15); box-shadow: 0 2px 0 rgba(20, 17, 13, .12);
  font-size: 12px; color: #2d2823;
}

/* coin flip: a two-sided 3D coin with a real edge */
/* fill the whole pane: coin in the middle of the space, controls at the bottom */
/* Ask a musician: a five-line staff with one note, a question, an answer */
.pmus { display: grid; gap: 6px; }
.pmus__staff { width: 100%; max-height: 80px; overflow: visible; }
.pmus__line, .pmus__bar { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .45; }
.pmus__bar { stroke-width: 2; }
.pmus__note { fill: var(--blue); }
.pmus__stem { fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.pmus__q {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 15px/1.3 var(--display); color: var(--ink); background: #fff;
}
.pmus__q:focus-visible { outline: none; border-color: var(--blue); }
.pmus__a { min-height: 2.5em; margin: 2px 2px 0; font: italic 500 17px/1.25 var(--display); color: var(--ink); }
.pmus__go {
  justify-self: stretch; padding: 11px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 18px/1 var(--display); color: var(--paper); background: var(--blue);
  transition: background-color .2s var(--ease), translate .15s var(--ease);
}
@media (hover: hover) { .pmus__go:hover { background: var(--plum); } }
.pmus__go:active { translate: 0 1px; background: var(--plum); }
.pmus__go:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- toast + petals + little page effects ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 400;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px;
  border-radius: 12px; background: var(--blue); color: #fff;
  font: 600 15px var(--display); box-shadow: 0 0 0 2px #fff, 0 14px 30px -14px rgba(20, 17, 13, .5);
  translate: -50% 20px; opacity: 0; scale: .9; pointer-events: none;
  transition: translate .45s var(--spring), opacity .2s, scale .45s var(--spring);
}
.toast .ico { width: 16px; height: 16px; }
.toast.is-in { translate: -50% 0; opacity: 1; scale: 1; }
.petals { position: fixed; inset: 0; z-index: 300; width: 100vw; height: 100vh; pointer-events: none; }
/* ⌘K "Spotlight": the page goes dark except a pool of light at --x/--y (main.js) */
.spotlight {
  position: fixed; inset: 0; z-index: 290; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0, transparent 110px, rgba(30, 15, 23, .55) 150px, rgba(30, 15, 23, .86) 260px);
  transition: opacity .35s var(--ease);
}
.spotlight.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .spotlight { transition: none; } }
.pcard.is-picked { animation: picked 2.4s var(--ease); z-index: 2; }
@keyframes picked { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 103, 34, 0); } 15%, 70% { box-shadow: 0 0 0 5px var(--orange); transform: translateY(-8px) rotate(-1.5deg); } }

/* "Lights off": invert the page content (not the nav/menu), keep photos looking normal */

/* the picked search result is solid blue, so ⌃ ⌄ (and arrow keys) are easy to follow.
   Once you move off the top result it drops to a tint, so only one row is ever solid. */
.res[aria-selected="true"]:not(.is-calc) { background: var(--blue); color: var(--paper); }
.res[aria-selected="true"] small,
.res[aria-selected="true"] b i { color: var(--paper); }
.res[aria-selected="true"] small { opacity: .75; }
.res[aria-selected="true"] mark { text-decoration-color: var(--paper); }
.res.is-top:not([aria-selected="true"], .is-calc) { background: rgba(139, 0, 139, .08); color: var(--ink); }
.res.is-top:not([aria-selected="true"]) small,
.res.is-top:not([aria-selected="true"]) b i { color: var(--blue); opacity: 1; }
.res.is-top:not([aria-selected="true"]) > span { color: inherit; }
.res.is-top:not([aria-selected="true"]) mark { text-decoration-color: var(--blue); }

/* keyboard bar (touch only, main.js): ⌃ ⌄ on the left, ✓ on the right, docked
   above the on-screen keyboard. --kb is the keyboard's height, set from visualViewport. */
.kbar {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 120;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(243, 242, 238, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(20, 17, 13, .1);
  opacity: 0; translate: 0 8px; transition: opacity .2s ease, translate .3s var(--ease);
}
.kbar[hidden] { display: none; }
.kbar.is-in { opacity: 1; translate: 0 0; }
.kbar__btn {
  display: grid; place-items: center; width: 40px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--blue);
  transition: background .15s, color .15s;
}
.kbar__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kbar__btn:active:not(:disabled) { background: rgba(139, 0, 139, .12); }
.kbar__btn:disabled { color: rgba(45, 40, 35, .3); }
.kbar__done { margin-left: auto; width: 48px; background: var(--blue); color: var(--paper); }
.kbar__done:active:not(:disabled) { background: var(--blue-hi); }

@media (prefers-reduced-motion: reduce) {
  .res, .pane, .pane__body > *, .toast, .soc { animation: none !important; transition-duration: .01s !important; }
  .kbar { translate: none; transition: none; }
}

/* =========================================================
   HER LOOK: Inter, clean and professional, on magenta and blush
   ========================================================= */
/* The hero name: Inter at its display optical size (the "opsz" axis tops
   out at 32, so 144 just asks for the largest). Weight 720 reads heavy
   without going blobby at 300px. "SOFT"/"WONK" were Fraunces axes; Inter
   has none, so they do nothing (nor does the shared "wdth"). */
.name { font-weight: 720; letter-spacing: -.035em; line-height: .82; }
.ch { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0, "wght" var(--g, 720); }
/* "mezi" in the surname stays mezi orange. On magenta, orange alone has
   no contrast (about 1.4:1), so it gets the brand's comic edge: a hard
   plum offset shadow. */
.name__brand { text-shadow: .03em .03em 0 var(--plum); }
.name__brand:hover { color: var(--orange-hi); }
.fly__a { font-variation-settings: "opsz" 144, "SOFT" 100 !important; font-weight: 720; }

/* "Economics at Harvard": the word underlines on hover and turns crimson's
   light cousin (crimson itself vanishes on magenta) */
.hero__harvard {
  display: inline-block; color: inherit; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px;
  transition: background-size .6s var(--ease);
}
.hero__harvard:hover, .hero__harvard:focus-visible { background-size: 100% 2px; outline: none; }
.hero__sub { font-family: var(--display); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 48, "SOFT" 100; }
/* "Harvard" (a link to harvard.edu). Crimson text on magenta is only ~2:1 and
   blurred into the pink, so the word is paper and heavier, with the same hard
   plum edge "mezi" wears. */
.hero__crimson { color: var(--paper); font-weight: 800; text-shadow: .07em .07em 0 var(--plum); }
.role { font-family: var(--display); font-weight: 650; font-variation-settings: "opsz" 72, "SOFT" 100; letter-spacing: -.025em; }
.role__mezi { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
/* orange on magenta is ~1.4:1, so "mezi" in the role line (and its hover
   underline) get the same hard plum edge as "mezi" in the name */
.role__mezi { text-shadow: .06em .06em 0 var(--plum); }
.role__mezi::after { box-shadow: 2px 2px 0 var(--plum); }
.role:hover .role__arrow, .role:focus-visible .role__arrow { color: var(--paper); }
/* and the tiny "mezi" in the photo ring: a plum outline drawn under the fill */
.me__ring .me__brand { stroke: var(--plum); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }

/* the ring round the photo: plain spaces between the phrases */
.me__ring text { letter-spacing: .14em; }

/* the hero gets a slow, soft sheen (very light, so the name stays the star) */
.hero::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 20%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(45% 40% at 85% 80%, rgba(120, 20, 80, .28), transparent 70%);
  animation: sheen 18s ease-in-out infinite alternate;
}
@keyframes sheen { to { transform: translate(4%, -3%) rotate(4deg); } }

/* ---------- The shared footer: identical on both sites ----------
   The meziTIS footer is the one piece that's pixel-for-pixel William's,
   so it pins his font and colours instead of using this site's tokens. */
.footer { background: #e9e8e3; color: #0c0c0d; font-family: "Archivo", "Arial Black", system-ui, sans-serif; }
.footer .footer__mezi { color: #ee6722; }
.footer .footer__mezi:hover { color: #f5832f; }

/* =========================================================
   STORY: one paragraph; the pink words' photos live round it as critters
   ========================================================= */
.st { position: relative; background: var(--paper); color: var(--ink); overflow: clip; }
.st.frame { padding: 110px var(--pad) 80px; }
.st__inner { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; }
.st__text {
  margin: 0;
  font-family: var(--display); font-weight: 460;
  /* the line gap is room for the critters to sit in, off the letters */
  font-size: clamp(32px, 5vw, 84px); line-height: 1.24; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  text-wrap: pretty;
}
/* a pink word: italic magenta, a hairline that draws in on hover */
.st-w {
  position: relative; display: inline;
  color: var(--blue); font-style: italic; font-weight: 520;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  text-decoration: none; cursor: default; outline: none;
  background: linear-gradient(currentColor, currentColor) 0 94% / 0 .055em no-repeat;
  transition: background-size .55s var(--ease), color .3s;
}
a.st-w { cursor: pointer; }
.st-w:hover, .st-w:focus-visible, .st-w.is-on { background-size: 100% .055em; }
/* "Athenasia": her gold wordmark itself, in place of the letters. The word
   stays real text (for reading aloud, and for main.js to measure where its
   badge goes), just see-through, with the logo drawn over it; the hover
   hairline is in the wordmark's gold */
.st-w--athenasia {
  color: transparent; font-style: normal;
  letter-spacing: .01em;   /* a little wider than the text, so the logo reads as big as the words round it */
  filter: drop-shadow(0 1px 0 rgba(30, 15, 23, .3));   /* a hard edge so pale gold holds up on blush */
  background:
    linear-gradient(#c9a24a, #c9a24a) 0 100% / 0 .055em no-repeat,
    url(/assets/athenasia-wordmark.webp) 50% 55% / contain no-repeat;
}
.st-w--athenasia:hover, .st-w--athenasia:focus-visible, .st-w--athenasia.is-on { background-size: 100% .055em, contain; }
/* "my brother": in William's blue, like his badge */
.st-w--will { color: var(--klein); }
.st-w--mezi { color: var(--orange); font-family: var(--display); font-style: normal; font-weight: 600; letter-spacing: -.04em; }

/* the critters (built and moved by main.js). The layer lets the pointer
   through; only a critter's shaped body catches it, so hover follows the shape.
   A grown one grows in place, so it stays under the cursor. */
.st-shapes { position: absolute; }
.st-crits { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.st-c {
  position: absolute; left: 0; top: 0; width: var(--cs, 50px); height: var(--cs, 50px);
  filter: drop-shadow(0 6px 8px rgba(30, 15, 23, .22));
  opacity: 0; scale: .2;
  will-change: transform;
}
.st-crits.is-in .st-c { animation: st-pop .8s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes st-pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
.st-c.is-big { z-index: 3; }
.st-c__body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--paper-dim);
  pointer-events: auto;
  transform: scale(1);
  transition: transform .6s var(--spring);
}
.st-c.is-link .st-c__body { cursor: pointer; }
.st-c.is-big .st-c__body { transform: scale(var(--big, 4)); }
.st-c.is-big { filter: drop-shadow(0 16px 20px rgba(30, 15, 23, .25)); }
/* grown, each photo is outlined in its own colour, traced round its shape
   (four hard shadows, one per side, make a solid line of --ow) */
.st-c__frame {
  --ol: transparent; --ow: 0px;
  width: 100%; height: 100%;
  filter: drop-shadow(var(--ow) 0 0 var(--ol)) drop-shadow(calc(-1 * var(--ow)) 0 0 var(--ol)) drop-shadow(0 var(--ow) 0 var(--ol)) drop-shadow(0 calc(-1 * var(--ow)) 0 var(--ol));
  transition: filter .15s;
}
.st-c.is-big .st-c__frame { --ow: 4px; --ol: var(--oc); transition: filter .35s .15s; }
.st-c[data-shape="blob"] { --oc: var(--pop); }
.st-c[data-shape="arch"] { --oc: var(--harvard); }
.st-c[data-shape="heart"] { --oc: var(--rose); }
.st-c[data-shape="flower"] { --oc: var(--teal); }
.st-c[data-shape="drop"] { --oc: var(--violet); }
.st-c[data-shape="pebble"] { --oc: var(--orange); }
.st-c[data-shape="star"] { --oc: var(--blue); }
/* (no outline for William's photo: his ring is its edge, as in the hero) */
.st-c[data-shape="pop"] { --oc: transparent; }
.st-c__body img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.st-c.is-cut .st-c__body { background: var(--klein); }
.st-c.is-cut .st-c__body img { object-position: 50% 0; }

/* the shapes: soft corners for some, cut-outs (#st-star etc. in index.html) for the rest */
.st-c[data-shape="blob"] .st-c__body { border-radius: 58% 42% 47% 53% / 52% 61% 39% 48%; animation: st-wobble 7s ease-in-out infinite alternate; }
.st-c[data-shape="pebble"] .st-c__body { border-radius: 44% 56% 62% 38% / 48% 40% 60% 52%; animation: st-wobble 9s ease-in-out infinite alternate-reverse; }
.st-c[data-shape="arch"] .st-c__body { border-radius: 50% 50% 14% 14% / 46% 46% 14% 14%; }
.st-c[data-shape="drop"] .st-c__body { border-radius: 50% 50% 50% 10%; }
.st-c[data-shape="star"] .st-c__body { clip-path: url(#st-star); }
.st-c[data-shape="flower"] .st-c__body { clip-path: url(#st-flower); }
.st-c[data-shape="heart"] .st-c__body { clip-path: url(#st-heart); }
/* pop (William, "my brother"): the hero photo in small. A magenta disc, a
   ring of words spinning round its edge, and his cut-out inside it, which
   pops its head out of the circle when the badge grows (.pop, HERO) */
.st-c[data-shape="pop"] .st-c__body {
  display: grid; place-items: center; overflow: visible;
  border-radius: 50%; background: var(--klein);   /* William's blue, as on his site */
}
.st-c[data-shape="pop"] .st-c__body img.pop {
  --px: calc(var(--cs) * .745); --b: calc(var(--cs) * .025); --cb: var(--klein-hi);
  width: var(--px); height: auto; object-fit: cover; object-position: 50% 0;
  grid-area: 1 / 1;
}
.st-c.is-big[data-shape="pop"] .st-c__body img.pop { --f: 1.4; }
.st-c__ring { grid-area: 1 / 1; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.st-c__ring text { font: 500 13px var(--mono); letter-spacing: .14em; fill: var(--paper); }
.st-c__ring .st-c__brand { fill: var(--orange-hi); font-weight: 600; font-size: 15px; letter-spacing: .02em; stroke: #121bb8; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
/* the blobs breathe: their outline shifts slowly, like something soft */
@keyframes st-wobble { to { border-radius: 42% 58% 55% 45% / 58% 44% 56% 42%; } }

/* eyes: white, with pupils main.js points at the cursor; they close to blink */
.st-c__eyes {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%;
  display: flex; gap: calc(var(--cs) * .12);
  pointer-events: none;
  transition: opacity .2s;
}
.st-c[data-shape="star"] .st-c__eyes { top: 50%; }
.st-c[data-shape="flower"] .st-c__eyes, .st-c[data-shape="drop"] .st-c__eyes { top: 46%; }
.st-c[data-shape="heart"] .st-c__eyes { top: 42%; }
.st-c__eyes i {
  display: grid; place-items: center;
  width: calc(var(--cs) * .17); aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(30, 15, 23, .3);
  transition: scale .08s;
}
.st-c__eyes b { width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.st-c.is-blink .st-c__eyes i { scale: 1 .12; }
.st-c.is-big .st-c__eyes { opacity: 0; }

/* the rest of each face (main.js picks one per shape: data-face), all drawn
   with plain shapes and sized off the badge (--cs) */
.st-c__face { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s; }
.st-c.is-big .st-c__face { opacity: 0; }
.st-c__eyes i { position: relative; }
.st-c__mouth {
  position: absolute; left: 50%; top: 62%; translate: -50% 0;
  width: calc(var(--cs) * .24); height: calc(var(--cs) * .12);
  border: calc(var(--cs) * .035) solid var(--ink); border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transition: width .15s, height .15s;
}
/* smile (blob): rosy cheeks */
.st-c__cheek {
  position: absolute; top: 56%; width: calc(var(--cs) * .14); height: calc(var(--cs) * .08);
  border-radius: 50%; background: var(--blue); opacity: .55;
}
.st-c__cheek:first-of-type { left: 18%; }
.st-c__cheek:last-of-type { right: 18%; }
/* glasses (arch): rings round the eyes, a bridge, and a thinking mouth */
.st-c[data-face="glasses"] .st-c__eyes i { outline: calc(var(--cs) * .028) solid var(--ink); outline-offset: calc(var(--cs) * .02); }
.st-c[data-face="glasses"] .st-c__mouth { width: calc(var(--cs) * .14); height: 0; border-width: calc(var(--cs) * .032) 0 0; border-top: calc(var(--cs) * .032) solid var(--ink); border-radius: 2px; top: 66%; }
/* singer (heart): an open mouth, mid-note */
.st-c[data-face="singer"] .st-c__mouth {
  top: 58%; width: calc(var(--cs) * .14); height: calc(var(--cs) * .17);
  border: 0; border-radius: 50%; background: var(--ink);
  box-shadow: inset 0 calc(var(--cs) * -.05) 0 var(--blue-hi);
}
/* tongue (flower): a grin with its tongue out */
.st-c[data-face="tongue"] .st-c__mouth::after {
  content: ""; position: absolute; left: 50%; top: 60%; translate: -30% 0;
  width: calc(var(--cs) * .09); height: calc(var(--cs) * .1);
  border-radius: 0 0 50% 50%; background: var(--blue-hi);
}
/* cyclops (drop): one big eye and an antenna with a light on (it's the idea) */
.st-c[data-face="cyclops"] .st-c__eyes i { width: calc(var(--cs) * .27); }
.st-c__antenna {
  position: absolute; left: 50%; top: calc(var(--cs) * -.2); translate: -50% 0;
  width: calc(var(--cs) * .035); height: calc(var(--cs) * .24); background: var(--ink);
}
.st-c__antenna::after {
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% -60%;
  width: calc(var(--cs) * .13); aspect-ratio: 1; border-radius: 50%;
  background: var(--pop); box-shadow: 0 0 calc(var(--cs) * .12) var(--pop);
}
/* teeth (pebble): a big D-shaped grin with two front teeth */
.st-c[data-face="teeth"] .st-c__mouth {
  width: calc(var(--cs) * .28); height: calc(var(--cs) * .14); border: 0;
  background: var(--ink); overflow: hidden;
}
.st-c[data-face="teeth"] .st-c__mouth::before {
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0;
  width: calc(var(--cs) * .14); height: calc(var(--cs) * .055);
  background: linear-gradient(90deg, var(--paper) 46%, transparent 46% 54%, var(--paper) 54%);
}
/* brows (star): eyebrows, one cocked, and a sideways smirk */
.st-c[data-face="brows"] .st-c__eyes i::before {
  content: ""; position: absolute; left: -10%; top: -45%;
  width: 120%; height: calc(var(--cs) * .03); border-radius: 2px; background: var(--ink);
}
.st-c[data-face="brows"] .st-c__eyes i:last-child::before { top: -60%; rotate: -14deg; }
.st-c[data-face="brows"] .st-c__mouth { width: calc(var(--cs) * .16); translate: -30% 0; rotate: -10deg; }
/* when another critter grows, they all go "ooh" */
.st-c.is-ooh .st-c__mouth {
  width: calc(var(--cs) * .1); height: calc(var(--cs) * .12);
  border: 0; border-radius: 50%; background: var(--ink); box-shadow: none; translate: -50% 0; rotate: 0deg;
}
.st-c.is-ooh .st-c__mouth::before, .st-c.is-ooh .st-c__mouth::after { display: none; }

/* the caption, under the grown photo */
.st-c__cap {
  position: absolute; left: 50%; top: calc(var(--cs, 50px) * (.5 + var(--big, 4) / 2) + 10px); translate: -50% 0;
  padding: 3px 7px; border-radius: 5px; background: var(--paper);
  font-size: 10.5px; white-space: nowrap; text-transform: uppercase; color: rgba(30, 15, 23, .7);
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.st-c.is-big .st-c__cap { opacity: 1; transition: opacity .25s .25s; }
/* a caption that links (data-site) can be clicked once it shows */
.st-c a.st-c__cap { text-transform: none; }   /* a web address reads as typed */
.st-c.is-big a.st-c__cap { pointer-events: auto; text-decoration: none; }
@media (hover: hover) { .st-c a.st-c__cap:hover { color: var(--blue); } }
/* mezi: the caption in mezi's orange, lowercase, and the app icon (an orange
   tile with the white mark) stuck over the grown photo's bottom-right edge.
   --big * .32 of the badge is about two thirds of the way out on the
   diagonal, so the tile sits half on the photo, half off */
.st-c.is-mezi .st-c__cap { text-transform: none; color: var(--orange); font-family: var(--display); font-weight: 650; font-size: 13px; letter-spacing: -.01em; }
.st-c.is-mezi a.st-c__cap:hover { color: var(--ink); }
.st-c__logo {
  --s: clamp(40px, calc(var(--cs) * var(--big) * .19), 60px);
  --w: var(--s); --lx: .32; --ly: .32;   /* size, and where its centre sits */
  position: absolute; width: var(--w); height: var(--s);
  left: calc(var(--cs) * (.5 + var(--big) * var(--lx)) - var(--w) / 2);
  top: calc(var(--cs) * (.5 + var(--big) * var(--ly)) - var(--s) / 2);
  border-radius: 24%; background: #fff;   /* shows through the mark's cut-out */
  box-shadow: 0 6px 14px rgba(30, 15, 23, .25);
  /* it slides up into place rather than growing: a browser can paint a
     growing element at its small starting size and stretch that, which
     blurs a fine logo (Firefox did) */
  opacity: 0; translate: 0 10px; rotate: 10deg; pointer-events: none;
  transition: opacity .15s, translate .15s;
}
.st-c__logo--mezi::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--orange);
  -webkit-mask: url(/assets/mezi-mark-white.svg) center / 100% no-repeat;
          mask: url(/assets/mezi-mark-white.svg) center / 100% no-repeat;
}
.st-c.is-big .st-c__logo { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .25s .3s, translate .5s .3s var(--spring); }
/* Athenasia: her gold wordmark (from athenasiaofficial.com) on a plum tag;
   it's wide, so it sits further in, along the bottom edge, to stay on screen */
.st-c__logo--athenasia {
  --s: clamp(34px, calc(var(--cs) * var(--big) * .14), 46px);
  --w: calc(var(--s) * 3.4); --lx: .2; --ly: .4;
  border-radius: 10px; rotate: -6deg;
  background: var(--plum) url(/assets/athenasia-wordmark.webp) center / 84% auto no-repeat;
}
@media (hover: hover) { .st-c.is-big .st-c__logo:hover { translate: 0 -3px; transition: translate .2s var(--ease); } }

@media (prefers-reduced-motion: reduce) {
  .st-c, .st-crits.is-in .st-c { opacity: 1; scale: 1; animation: none; }
  .st-c__body, .st-c__cap, .st-c.is-big .st-c__cap { animation: none !important; transition: none; }
  .st-c__face, .st-c__mouth { transition: none; }
  .st-c__ring { animation: none; }
  .st-c__frame, .st-c.is-big .st-c__frame { transition: none; }
  .st-c__logo, .st-c.is-big .st-c__logo { transition: none; }
  .st-c__body img.pop { transition: none; }
}

/* =========================================================
   STAGE (her press page): a bento of objects
   The frame is still #stage / .sg. Every tile is a container (cqw/cqh) so each object sizes itself to
   its cell and keeps its real proportions. The follow-spot version is in
   archive/stage-spotlight/, the first bento in archive/stage-bento/.
   ========================================================= */
.sg { position: relative; background: var(--plum); color: #fff; overflow: clip; isolation: isolate; }
.sg::before {             /* stage light: magenta and violet glows */
  content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 45% at 22% 18%, rgba(255, 45, 135, .3), transparent 70%),
    radial-gradient(40% 45% at 82% 88%, rgba(107, 43, 255, .26), transparent 70%);
  filter: blur(10px);
}
.sg.frame { height: 100svh; min-height: 640px; padding: 92px var(--pad) 22px; justify-content: flex-start; gap: clamp(8px, 1.4vh, 16px); }
.sg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.sg__title {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 78px); line-height: .9; letter-spacing: -.04em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.sg__title em { color: var(--blue); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.sg__grid {
  flex: 1 1 auto; min-height: 0;
  display: grid; gap: 10px;
  /* sized so each object fills its cell at its own proportions */
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas:
    "vd vd vd vd vd vn vn vn vn vn ig ig"
    "np np np pc pc pc mp mp mg mg pl pl";
}
.tile--vd { grid-area: vd; } .tile--vn { grid-area: vn; } .tile--ig { grid-area: ig; } .tile--np { grid-area: np; }
.tile--mg { grid-area: mg; } .tile--pc { grid-area: pc; } .tile--mp { grid-area: mp; } .tile--pl { grid-area: pl; }

/* a tile: flies in once (scale/opacity), bobs at its depth (translate),
   and, when it's the one under the cursor, leans toward it (transform, from
   main.js vars). Nothing else follows the cursor, so the grid holds still. */
.tile {
  position: relative; min-height: 0; min-width: 0; margin: 0; container-type: size;
  color: inherit; text-decoration: none;
  opacity: 0; scale: .86; filter: blur(10px);
  transform:
    perspective(1200px)
    rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg));
  transition: opacity .9s var(--ease), scale 1.1s var(--spring), filter .9s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s;
}
.sg.is-in .tile { opacity: 1; scale: 1; filter: none; animation: bob calc(6s + var(--d) * 3s) ease-in-out calc(var(--d) * -6s) infinite; }
@keyframes bob { 50% { translate: 0 calc(var(--d) * -8px); } }
.tile.is-hot { transition-duration: .9s, 1.1s, .9s, .12s; transition-timing-function: var(--ease), var(--spring), var(--ease), linear; }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---- the stage: a proscenium arch with velvet curtains ---- */
.tile--vd { display: flex; }
.vd__arch {
  position: relative; flex: 1; min-height: 0; margin: 9px; overflow: hidden; background: #000;
  border-radius: 50% 50% 10px 10px / 26% 26% 10px 10px;
  box-shadow: 0 0 0 3px var(--blue-hi), 0 0 0 9px var(--plum-2), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.sg-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the music video's still, a play button until it's tapped; then YouTube's player */
.vd__play { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.vd__play img { width: 100%; height: 100%; object-fit: cover; }
.vd__play::after {        /* the play triangle */
  content: ""; position: absolute; left: 50%; top: 46%; translate: -35% -50%;
  border-left: 34px solid #fff; border-block: 21px solid transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); transition: scale .25s var(--ease);
}
@media (hover: hover) { .vd__play:hover::after { scale: 1.15; } }
.vd__play:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
/* playing, the arch squares off into a screen and the curtains pull right back,
   so YouTube's title bar and controls aren't clipped */
.vd__yt { position: absolute; top: 0; bottom: 0; left: 3%; width: 94%; height: 100%; border: 0; background: #000; }
.tile--vd.is-playing .vd__cap { opacity: 0; }
.vd__arch { transition: border-radius .6s var(--ease); }
.tile--vd.is-playing .vd__arch { border-radius: 10px; }
.sg.is-in .tile--vd.is-playing .vd__curtain { transform: scaleX(.06); transition-delay: 0s; transition-duration: .8s; }
/* velvet: folds are light and shadow bands; parting, they bunch up at the sides */
.vd__curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 30%, transparent 85%, rgba(0, 0, 0, .4)),
    repeating-linear-gradient(90deg, #6e0731 0, #b3125a 9%, #d81b72 13%, #a0104f 19%, #6e0731 25%);
  transition: transform 1.8s cubic-bezier(.65, 0, .2, 1) .35s;
}
.vd__curtain--l { left: 0; transform-origin: 0 50%; }
.vd__curtain--r { right: 0; transform-origin: 100% 50%; }
.sg.is-in .vd__curtain { transform: scaleX(.16); }
.vd__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(14, 5, 10, .8));
  font-family: var(--display); font-weight: 560; font-size: clamp(17px, 1.5vw, 23px); letter-spacing: -.02em; font-variation-settings: "opsz" 48, "SOFT" 100;
  pointer-events: none; transition: color .25s, opacity .3s;
}
.tile--vd:hover .vd__cap { color: var(--blue-hi); }

/* ---- the single: sleeve, record, tonearm ---- */
.tile--vn { position: relative; display: grid; place-items: center; }
/* sleeve + the record half out (.56) + the arm: about 1.55 sleeves wide */
.vn__deck { --s: min(100cqw / 1.55, 100cqh); position: relative; width: calc(var(--s) * 1.55); height: var(--s); }
/* the sleeve: square-cornered card stock in a shrink-wrap */
.vn__sleeve {
  position: absolute; left: 0; top: 0; z-index: 2; width: var(--s); height: var(--s);
  overflow: hidden; border-radius: 2px; background: #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 28px 44px -18px rgba(0, 0, 0, .9);
}
.vn__sleeve img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vn__sleeve::before {     /* ring wear: the record inside has rubbed a faint circle into the card */
  content: ""; position: absolute; z-index: 1; left: 4%; top: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .14);
}
.vn__sleeve::after {      /* the shrink-wrap's gloss, the card's edges, and a shade so the bar reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .18), transparent 26%, transparent 72%, rgba(255, 255, 255, .06) 84%, transparent 92%),
    linear-gradient(transparent 50%, rgba(0, 0, 0, .35) 66%, rgba(0, 0, 0, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset -3px 0 2px -1px rgba(0, 0, 0, .35);
}
/* a holographic sticker on the shrink-wrap; the foil shifts as you move */
.vn__sticker {
  position: absolute; right: 5%; top: 5%; z-index: 2; display: grid; place-items: center; align-content: center;
  width: calc(var(--s) * .27); aspect-ratio: 1; rotate: 12deg; padding: 6%;
  color: var(--ink); text-align: center; font: 600 calc(var(--s) * .03) / 1.05 var(--display);
  clip-path: polygon(50% 0, 61% 13%, 78% 7%, 81% 24%, 98% 28%, 90% 44%, 100% 58%, 85% 67%, 88% 85%, 70% 85%, 60% 100%, 48% 88%, 33% 98%, 27% 82%, 9% 83%, 13% 66%, 0 54%, 11% 42%, 4% 25%, 21% 21%, 25% 4%, 40% 12%);
  background:
    linear-gradient(115deg, #ffd1e6, #ffe98a calc(var(--mx, .5) * 60%), #b9f1ff calc(20% + var(--mx, .5) * 60%), #e2c4ff 90%);
}
.vn__sticker b { display: block; font: 700 calc(var(--s) * .085) / .9 var(--display); letter-spacing: -.04em; }
/* the player, laid on the cover the way Spotify lays out a track: title and
   artist, its logo, the green play, and the seek line with the times */
.vn__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px;
  padding: calc(var(--s) * .05) calc(var(--s) * .055) calc(var(--s) * .05);
  color: #fff; font-family: var(--display);
}
.vn__track { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vn__track b { font-weight: 700; font-size: clamp(13px, calc(var(--s) * .05), 17px); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn__track span { font-size: clamp(11px, calc(var(--s) * .037), 13px); color: rgba(255, 255, 255, .7); }
.vn__spot { justify-self: end; align-self: start; display: block; width: 22px; height: 22px; color: var(--spotify); transition: scale .2s var(--ease); }
.vn__spot svg { width: 100%; height: 100%; fill: currentColor; }
@media (hover: hover) { .vn__spot:hover { scale: 1.1; } }
.vn__spot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 50%; }
.vn__seek { display: flex; align-items: center; gap: 8px; min-width: 0; font: 500 10px var(--mono); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.vn__prog { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.vn__prog::before {       /* how far along: white, green while you're near it, like Spotify's */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: background .2s;   /* moved every frame by main.js */
}
.vn__prog::after {        /* the playhead */
  content: ""; position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 12px; height: 12px; translate: -50% -50%;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s;
}
.tile--vn.is-playing .vn__prog::after { opacity: 1; }
@media (hover: hover) { .vn__bar:hover .vn__prog::before { background: var(--spotify); } }
.vn__play {
  display: grid; place-items: center; width: clamp(40px, calc(var(--s) * .15), 54px); aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 50%; background: var(--spotify); color: #000; cursor: pointer;
  /* Spotify's flat green, with a hairline of light on top and a soft lift off the cover */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 4px rgba(0, 0, 0, .12), 0 8px 18px rgba(0, 0, 0, .45);
  transition: background .2s, scale .2s var(--ease), box-shadow .4s var(--ease);
}
.vn__play svg { width: 42%; height: 42%; fill: currentColor; }   /* Spotify's glyphs are drawn optically centred */
/* playing, the button glows green, like a lit transport button */
.tile--vn.is-playing .vn__play { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 4px rgba(30, 215, 96, .22), 0 0 24px rgba(30, 215, 96, .45), 0 8px 18px rgba(0, 0, 0, .45); }
.vn__i-pause, .tile--vn.is-playing .vn__i-play { display: none; }
.tile--vn.is-playing .vn__i-pause { display: block; }
@media (hover: hover) { .vn__play:hover { background: var(--spotify-hi); scale: 1.06; } }
.vn__play:active { scale: .94; background: var(--spotify); }
.vn__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* the record: grooves, a smooth lead-in at the rim and run-out by the label,
   a paper label and the spindle through it. It sits half out of the sleeve. */
.vn__disc {
  position: absolute; z-index: 1; top: 4%; left: calc(var(--s) * .56); width: calc(var(--s) * .92); height: calc(var(--s) * .92);
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle, transparent 0 33.6%, #1a141a 33.8% 37.2%, transparent 37.4%),
    radial-gradient(circle, transparent 0 95.6%, #1d171c 95.8% 99%, #2c2329 99.2%),
    repeating-radial-gradient(circle, #121014 0 .55px, #1e181d .55px 1.25px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 30px -10px rgba(0, 0, 0, .9);
}
.vn__disc::after {        /* the sheen: light from the room, so it doesn't turn with the record; the paper label stays matte */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 30deg, transparent, rgba(255, 255, 255, .15) 5%, rgba(255, 255, 255, .03) 11%, transparent 16%, transparent 50%, rgba(255, 255, 255, .11) 55%, rgba(255, 255, 255, .02) 61%, transparent 66%);
  -webkit-mask: radial-gradient(circle, transparent 0 33.5%, #000 34%); mask: radial-gradient(circle, transparent 0 33.5%, #000 34%);
}
.vn__label { position: absolute; inset: 33.5%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.vn__label img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(.95); }
.vn__label::before {      /* printed paper: a thin ring, and the label's own slight dullness */
  content: ""; position: absolute; inset: 6%; z-index: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
}
.vn__label::after {       /* the spindle, through the centre hole */
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 9%; height: 9%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2eef0, #8f878b 60%, #4a4447); box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.vn__disc:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* the tonearm. Its pivot sits off the record's top right (1.43s, .12s); the
   stylus is .645s out, a little inboard of the tube. Parked (-12deg) it lies
   on the rest, clear of the record. Playing, it drops into the lead-in groove
   (.5deg) and travels in to the run-out by the label (25.5deg) as the song
   plays (--p, 0-1, from main.js). */
.vn__base {               /* the base: turned aluminium, its rings catching the light from the top left */
  position: absolute; z-index: 3; left: calc(var(--s) * 1.355); top: calc(var(--s) * .045); width: calc(var(--s) * .15); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, #141013 0 24%, #3b3438 25% 27%, transparent 28%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, .07) 0 .6px, rgba(0, 0, 0, .06) .6px 1.3px),
    conic-gradient(from 210deg, #8a8286, #f2eef0 12%, #a59da1 26%, #6f676b 45%, #b9b2b6 62%, #e9e4e7 74%, #8a8286);
  box-shadow: 0 0 0 calc(var(--s) * .008) #1b1619, 0 0 0 calc(var(--s) * .011) rgba(255, 255, 255, .08), 0 8px 16px rgba(0, 0, 0, .65);
}
.vn__fix {
  position: absolute; z-index: 2;   /* the arm-board sits under the base */ left: calc(var(--s) * 1.33); top: 0; width: calc(var(--s) * .24); height: calc(var(--s) * .8);
  overflow: visible; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .55));
}
.vn__arm {
  position: absolute; z-index: 4; left: calc(var(--s) * 1.33); top: 0; width: calc(var(--s) * .2); height: calc(var(--s) * .8);
  overflow: visible; transform-origin: 50% 15%; rotate: -12deg;
  filter: drop-shadow(4px 8px 5px rgba(0, 0, 0, .55));
  transition: rotate .6s cubic-bezier(.45, 0, .2, 1), filter .6s var(--ease);
}
.vn__cart { fill: var(--blue); }
/* lowered onto the record, its shadow draws in under it */
.tile--vn.is-playing .vn__arm { rotate: calc(.5deg + var(--p, 0) * 25deg); filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, .6)); }
/* Spotify's player does the playing out of sight. If the browser won't let
   the record start it, it shows over the foot of the deck for one more tap. */
.vn__player {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(100%, 420px); height: 80px;
  border: 0; border-radius: 12px; background: var(--plum-2); color-scheme: normal;
  opacity: 0; pointer-events: none;
}
.tile--vn.is-embed .vn__player { opacity: 1; pointer-events: auto; z-index: 4; }
.tile--vn.is-embed .vn__bar { visibility: hidden; }
/* ---- Instagram: a phone in the Reels feed, full screen like the app ---- */
.ig__phone {
  --tabs: 34px;             /* the app's tab bar */
  position: relative; display: block; margin: 0 auto; overflow: hidden;
  height: 100cqh; width: min(100cqw, 100cqh * .48); max-height: calc(100cqw / .48);
  border: 7px solid #120a0e; border-radius: 34px; background: #000; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.ig__phone::before {      /* the camera island */
  content: ""; position: absolute; left: 50%; top: 8px; z-index: 4; translate: -50% 0;
  width: 30%; height: 16px; border-radius: 10px; background: #000; pointer-events: none;
}
.ig__phone svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
/* the feed: two screens stacked; once the frame is read it's flicked up one
   screen, quick then settling, like a swipe that snaps to the next reel */
.ig__feed {
  position: absolute; left: 0; right: 0; top: 0; height: calc((100% - var(--tabs)) * 2);
  translate: 0 0; transition: translate .75s cubic-bezier(.2, .8, .25, 1) .5s;
}
.sg.is-in .ig__feed { translate: 0 -50%; }
.ig__slide { position: relative; display: block; height: 50%; overflow: hidden; background: #000; }
.ig__slide img, .ig__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig__slide::after {       /* the app's shade, so the white text reads on any frame */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .35), transparent 16%, transparent 58%, rgba(0, 0, 0, .65));
}
.ig__tap { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer; }
.ig__tap:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 26px; }
.ig__top, .ig__side, .ig__meta, .ig__mute, .ig__prog { position: absolute; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); pointer-events: none; }
.ig__top { left: 12px; right: 12px; top: 30px; z-index: 3; display: flex; justify-content: space-between; align-items: center; font: 700 15px var(--display); }
.ig__top svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
/* the rail: each icon with its count under it, then the song's cover */
.ig__side { right: 5px; bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 9px/1 var(--display); }
.ig__side > span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ig__side svg { width: 19px; height: 19px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.ig__song { width: 18px !important; height: 18px !important; border-radius: 5px; border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.ig__meta {
  left: 8px; right: 32px; bottom: 12px; display: flex; flex-direction: column; gap: 6px;
  font: 400 10.5px/1.3 var(--display); pointer-events: auto;
}
.ig__who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ig__who img { flex: none; width: 18px !important; height: 18px !important; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); }
.ig__who a { min-width: 0; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig__meta b { font-weight: 600; font-size: 10px; }
@media (hover: hover) { .ig__meta a:hover b { color: var(--blue-hi); } }
/* Instagram's Follow: a small outlined box (rounded corners, not a pill) */
.ig__follow { flex: none; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 7px; font-weight: 600; font-size: 10px; }
.ig__audio { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.ig__audio svg { flex: none; width: 11px; height: 11px; }
/* how far through the reel: a hairline along the foot, from main.js (--t, 0-1) */
.ig__prog { left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .25); }
.ig__prog::before { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
/* the speaker in the corner: struck through while the reel is muted */
.ig__mute {
  right: 10px; top: 54px; z-index: 3; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(0, 0, 0, .5);
}
.ig__mute svg { width: 14px; height: 14px; }
/* the speaker is the sound button (the screen itself opens her Instagram), so
   it takes taps, with a hit area bigger than it looks for a finger */
.ig__mute { pointer-events: auto; padding: 0; border: 0; color: inherit; cursor: pointer; }
.ig__mute::before { content: ""; position: absolute; inset: -10px; }
.ig__mute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ig__i-on, .tile--ig.is-sound .ig__i-off { display: none !important; }
.tile--ig.is-sound .ig__i-on { display: block !important; }
/* a tap flashes the new state in the middle of the screen, then it fades */
.ig__flash {
  position: absolute; left: 50%; top: calc((100% - var(--tabs)) / 2); z-index: 3; translate: -50% -50%;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none;
}
.ig__flash svg { width: 26px; height: 26px; }
.tile--ig.is-flash .ig__flash { animation: ig-flash .9s var(--ease) both; }
@keyframes ig-flash { 0% { opacity: 0; scale: .7; } 15% { opacity: 1; scale: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
/* the tab bar, Reels selected */
.ig__tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--tabs);
  display: flex; justify-content: space-around; align-items: center; padding: 0 6px 4px;
  background: #000; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92);
}
.ig__tabs svg { width: 18px; height: 18px; stroke-width: 1.7; }
.ig__tabs .is-on { stroke-width: 2.2; }
.ig__tabs .ig__fill { fill: currentColor; stroke: none; }
.ig__tabs img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* ---- press: a newspaper, as a gatefold ---- */
/* Set like a broadsheet: an ear, the nameplate between rules, a serif headline,
   a halftone photo, the story in ruled columns. Two half-width flaps fold in
   from the sides and meet in the middle as the front page (one layout, split
   down the seam). Opened, each swings out toward you round its hinge and lies
   flat beside the middle, and the sheet slides right by one flap so it opens
   over the grid rather than off the page's edge. */
.tile--np { --np-ink: #1d1a17; --np-serif: Georgia, "Times New Roman", serif; z-index: 5; }   /* always above its neighbours, so the flaps open and close over them */
.np__paper {
  position: absolute; left: 3%; top: 3%; width: 94%; height: 94%;
  rotate: -1.5deg; perspective: 1600px; color: var(--np-ink);
  transition: translate .8s var(--ease), rotate .5s var(--ease);
}
.np__face {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px; padding: 12px 14px;
  background: radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(150, 115, 60, .14)), #efe8da;   /* newsprint, yellowed at the edges */
}
.np__mid { box-shadow: 0 18px 26px -8px rgba(0, 0, 0, .55); }
.np__out, .np__in {
  inset: 0 auto; width: 50%;
  /* a symmetric ease, so half the time is exactly edge-on: that's when the faces swap */
  transition: transform .85s cubic-bezier(.45, 0, .55, 1), visibility 0s .425s;
}
.np__out--l { left: 0; transform-origin: 0 50%; }
.np__out--r { left: 50%; transform-origin: 100% 50%; }
.np__in--l { left: -50%; transform-origin: 100% 50%; transform: rotateY(180deg); visibility: hidden; }
.np__in--r { left: 100%; transform-origin: 0 50%; transform: rotateY(-180deg); visibility: hidden; }
.np__out { padding: 0; }
.np__front { position: absolute; top: 0; bottom: 0; width: 200%; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; }
.np__out--l .np__front { left: 0; }
.np__out--r .np__front { left: -100%; }
/* the seam: each flap's edge curls a touch where they meet, so it catches a shadow */
.np__out--l { box-shadow: inset -7px 0 8px -7px rgba(60, 45, 25, .45); }
.np__out--r { box-shadow: inset 7px 0 8px -7px rgba(60, 45, 25, .45); }
.np__in { box-shadow: 0 18px 26px -8px rgba(0, 0, 0, .55); }
.np__in--l { justify-content: center; gap: 10px; }
/* open: hover, keyboard focus, or a first tap on touch (main.js) */
.tile--np.is-open .np__paper, .tile--np:focus-visible .np__paper { translate: 50% 0; rotate: 0deg; }
.tile--np.is-open .np__out--l, .tile--np:focus-visible .np__out--l { transform: rotateY(-180deg); visibility: hidden; }
.tile--np.is-open .np__out--r, .tile--np:focus-visible .np__out--r { transform: rotateY(180deg); visibility: hidden; }
.tile--np.is-open .np__in, .tile--np:focus-visible .np__in { transform: none; visibility: visible; }
@media (hover: hover) {
  .tile--np:hover .np__paper { translate: 50% 0; rotate: 0deg; }
  .tile--np:hover .np__out--l { transform: rotateY(-180deg); visibility: hidden; }
  .tile--np:hover .np__out--r { transform: rotateY(180deg); visibility: hidden; }
  .tile--np:hover .np__in { transform: none; visibility: visible; }
  .tile--np:hover .np__head--in, .tile--np:hover .np__more { color: var(--blue); }
}

/* the ear above the nameplate: place and date in small caps */
.np__ear { flex: none; display: flex; justify-content: space-between; padding-bottom: 3px; font: 400 8px/1 var(--np-serif); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.np__mid .np__ear { border-bottom: 3px double var(--np-ink); opacity: 1; }
/* the nameplate, between double rules */
.np__mast {
  flex: none; padding: 4px 0 3px; text-align: center; white-space: nowrap;
  font: 700 min(28px, 7.6cqw)/1 var(--np-serif); letter-spacing: -.01em;
  border-top: 3px double var(--np-ink); border-bottom: 3px double var(--np-ink);
}
.np__head { flex: none; margin-top: 2px; font: 700 clamp(15px, 1.25vw, 21px)/1.08 var(--np-serif); letter-spacing: -.01em; transition: color .2s; }
.tile--np.is-nophoto .np__front .np__head { flex: 1; display: flex; align-items: center; font-size: clamp(22px, 2.1vw, 34px); }   /* no photo yet: a banner headline fills the front */
.np__by { flex: none; padding-bottom: 4px; border-bottom: 1px solid rgba(29, 26, 23, .35); font: 400 7.5px var(--np-serif); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
/* the photo, printed: newsprint takes ink in greys, as dots, and the paper shows through */
.np__fig { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 3px; }
.np__photo { position: relative; display: block; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.np__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 46% 32%; filter: grayscale(1) sepia(.3) contrast(1.2) brightness(.97); }   /* no blend modes: they glitch on faces turning in 3D */
.np__photo::after {       /* the halftone screen */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background: radial-gradient(circle at 50% 50%, rgba(29, 26, 23, .9) 28%, transparent 62%) 0 0 / 3px 3px;
}
.np__cap { flex: none; font: 400 8px/1.3 var(--np-serif); opacity: .8; }
.np__cap i { opacity: .8; }
.tile--np.is-nophoto .np__fig { display: none; }
.np__body {
  flex: 1; min-height: 0; overflow: hidden; column-count: 2; column-gap: 12px; column-rule: 1px solid rgba(29, 26, 23, .22);
  column-fill: auto;        /* run the first column to the foot of the page, as a paper sets type */
  /* sized to the tile, so the short article fills its page rather than sitting at the top */
  font: 400 clamp(10px, 4cqw, 20px)/1.38 var(--np-serif); text-align: justify; hyphens: auto;
}
/* the drop cap opens the story */
.np__body::first-letter { float: left; margin: 2px 4px 0 0; font: 700 3em/.8 var(--np-serif); }
.np__body b { font-weight: 700; letter-spacing: .04em; }
.np__kicker { flex: none; text-align: center; font: 400 clamp(8px, 2.2cqw, 11px) var(--np-serif); letter-spacing: .16em; text-transform: uppercase; }
/* the pull quote, between rules, as papers set one */
.np__pull {
  flex: none; padding: 10px 2px; text-align: center; border-top: 1px solid var(--np-ink); border-bottom: 1px solid var(--np-ink);
  font: italic 400 clamp(14px, 5.6cqw, 27px)/1.22 var(--np-serif);
}
.np__more { flex: none; align-self: flex-end; font: 600 8.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }

/* ---- press: a magazine cover ---- */
.tile--mg { display: grid; place-items: center; }
.mg__cover {
  position: relative; display: block; overflow: hidden; flex: none;
  width: min(100cqw, 100cqh * .75); aspect-ratio: 3 / 4; rotate: 2deg; background: #222;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .85);
  transition: rotate .5s var(--ease);
}
.mg__cover img { width: 100%; height: 100%; object-fit: cover; }
.mg__cover::after {       /* the gloss of a printed cover */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 35%);
}
.mg__mast {
  position: absolute; left: 0; right: 0; top: 3%; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: calc(min(100cqw, 100cqh * .75) * .25); line-height: .8;
  letter-spacing: -.06em; color: var(--blue); font-variation-settings: "opsz" 144, "SOFT" 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.mg__line { position: absolute; left: 7%; right: 7%; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.mg__line--a { bottom: 15%; font-family: var(--display); font-weight: 650; font-size: calc(min(100cqw, 100cqh * .75) * .085); line-height: 1; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "SOFT" 100; }
.mg__line--a em { color: var(--pop); font-weight: 500; }
.mg__line--b { bottom: 5%; font: 500 calc(min(100cqw, 100cqh * .75) * .042) / 1.2 var(--display); }
.mg__issue { position: absolute; right: 6%; top: 27%; font: 600 calc(min(100cqw, 100cqh * .75) * .034) var(--display); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
/* the Crimson piece: the photo is landscape, so the cover crops to the
   "Welcome to Harvard Kempner" sign; a shade at the foot keeps the lines legible */
.tile--mg .mg__cover > img { object-position: 42% 50%; }
.tile--mg .mg__cover::before {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(20, 6, 18, .78));
}
.tile--mg .mg__mast { font-size: calc(min(100cqw, 100cqh * .75) * .22); color: var(--crimson); text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 18px rgba(0, 0, 0, .3); }
.tile--mg .mg__issue { top: 24%; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.tile--mg .mg__line--a { bottom: 17%; right: 26%; }
.tile--mg .mg__line--b { right: 26%; }
/* her face in the corner, as the byline */
.mg__me {
  position: absolute; right: 5%; bottom: 4.5%; z-index: 1;
  width: calc(min(100cqw, 100cqh * .75) * .17); aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); background: var(--paper);
}
.mg__me img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .tile--mg:hover .mg__cover { rotate: -1deg; }
  .tile--pc:hover .pc__txt { color: var(--blue-hi); }
}

/* ---- press: a podcast, its studio seen through the episode's waveform ---- */
.tile--pc { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.pc__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* the on-air light on the studio wall: a red glass box in a black frame, lit */
.pc__air {
  padding: 4px 9px; border: 2px solid #111; border-radius: 5px; outline: 1px solid rgba(255, 255, 255, .12);
  font: 800 11px var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: #e5162b; text-shadow: 0 0 6px rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(255, 80, 90, .6) inset, 0 0 22px rgba(255, 40, 60, .75);
}
.pc__wave { --at: 42%; position: relative; flex: 1; min-height: 0; display: flex; }
/* the waveform: rounded bars of an episode's loud and quiet stretches, opening
   out from the centre line when the frame is read */
.pc__win {
  position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20220%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Crect%20x%3D%271%27%20y%3D%2733.0%27%20width%3D%278%27%20height%3D%2734%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2722.0%27%20width%3D%278%27%20height%3D%2756%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2721%27%20y%3D%2728.0%27%20width%3D%278%27%20height%3D%2744%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2731%27%20y%3D%2714.0%27%20width%3D%278%27%20height%3D%2772%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2741%27%20y%3D%275.0%27%20width%3D%278%27%20height%3D%2790%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2751%27%20y%3D%2719.0%27%20width%3D%278%27%20height%3D%2762%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2761%27%20y%3D%2726.0%27%20width%3D%278%27%20height%3D%2748%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2771%27%20y%3D%2710.0%27%20width%3D%278%27%20height%3D%2780%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2781%27%20y%3D%272.0%27%20width%3D%278%27%20height%3D%2796%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2791%27%20y%3D%278.0%27%20width%3D%278%27%20height%3D%2784%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27101%27%20y%3D%2721.0%27%20width%3D%278%27%20height%3D%2758%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27111%27%20y%3D%2730.0%27%20width%3D%278%27%20height%3D%2740%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27121%27%20y%3D%2717.0%27%20width%3D%278%27%20height%3D%2766%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27131%27%20y%3D%270.0%27%20width%3D%278%27%20height%3D%27100%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27141%27%20y%3D%277.0%27%20width%3D%278%27%20height%3D%2786%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27151%27%20y%3D%2719.0%27%20width%3D%278%27%20height%3D%2762%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27161%27%20y%3D%2728.0%27%20width%3D%278%27%20height%3D%2744%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27171%27%20y%3D%2721.0%27%20width%3D%278%27%20height%3D%2758%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27181%27%20y%3D%279.0%27%20width%3D%278%27%20height%3D%2782%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27191%27%20y%3D%2715.0%27%20width%3D%278%27%20height%3D%2770%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27201%27%20y%3D%2726.0%27%20width%3D%278%27%20height%3D%2748%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27211%27%20y%3D%2735.0%27%20width%3D%278%27%20height%3D%2730%27%20rx%3D%274%27%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20220%20100%27%20preserveAspectRatio%3D%27none%27%3E%3Crect%20x%3D%271%27%20y%3D%2733.0%27%20width%3D%278%27%20height%3D%2734%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2722.0%27%20width%3D%278%27%20height%3D%2756%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2721%27%20y%3D%2728.0%27%20width%3D%278%27%20height%3D%2744%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2731%27%20y%3D%2714.0%27%20width%3D%278%27%20height%3D%2772%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2741%27%20y%3D%275.0%27%20width%3D%278%27%20height%3D%2790%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2751%27%20y%3D%2719.0%27%20width%3D%278%27%20height%3D%2762%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2761%27%20y%3D%2726.0%27%20width%3D%278%27%20height%3D%2748%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2771%27%20y%3D%2710.0%27%20width%3D%278%27%20height%3D%2780%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2781%27%20y%3D%272.0%27%20width%3D%278%27%20height%3D%2796%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%2791%27%20y%3D%278.0%27%20width%3D%278%27%20height%3D%2784%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27101%27%20y%3D%2721.0%27%20width%3D%278%27%20height%3D%2758%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27111%27%20y%3D%2730.0%27%20width%3D%278%27%20height%3D%2740%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27121%27%20y%3D%2717.0%27%20width%3D%278%27%20height%3D%2766%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27131%27%20y%3D%270.0%27%20width%3D%278%27%20height%3D%27100%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27141%27%20y%3D%277.0%27%20width%3D%278%27%20height%3D%2786%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27151%27%20y%3D%2719.0%27%20width%3D%278%27%20height%3D%2762%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27161%27%20y%3D%2728.0%27%20width%3D%278%27%20height%3D%2744%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27171%27%20y%3D%2721.0%27%20width%3D%278%27%20height%3D%2758%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27181%27%20y%3D%279.0%27%20width%3D%278%27%20height%3D%2782%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27191%27%20y%3D%2715.0%27%20width%3D%278%27%20height%3D%2770%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27201%27%20y%3D%2726.0%27%20width%3D%278%27%20height%3D%2748%27%20rx%3D%274%27%2F%3E%3Crect%20x%3D%27211%27%20y%3D%2735.0%27%20width%3D%278%27%20height%3D%2730%27%20rx%3D%274%27%2F%3E%3C%2Fsvg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(49% 0 49% 0); transition: clip-path 1s cubic-bezier(.2, .8, .25, 1) .4s;
}
.sg.is-in .pc__win { clip-path: inset(0); }
.pc__win video { width: 100%; height: 100%; object-fit: cover; }
.pc__win::after {         /* not played yet: dimmed, as the app greys the rest of the scrubber */
  content: ""; position: absolute; inset: 0 0 0 var(--at); background: rgba(24, 10, 22, .62); pointer-events: none;
}
/* the playhead, standing across the waveform where the dim part starts */
.pc__head {
  position: absolute; left: var(--at); top: -4px; bottom: -4px; width: 2px; translate: -50% 0; border-radius: 1px;
  background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); pointer-events: none;
}
.pc__head::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.pc__txt { flex: none; transition: color .25s; font-family: var(--display); font-weight: 560; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "opsz" 48, "SOFT" 100; }

/* ---- mezi, open on a phone (as on the pitch deck's cover) ---- */
/* The screen is a picture of mezi's app, so it wears mezi's orange and
   Poppins; the rest of the tile is hers. Everything on the screen is sized off
   the phone's width (--u = 1% of it). It wakes when the frame is read (dark
   glass, then lit), and hover stands the phone up a little. */
.tile--mp { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 2px; }
/* the phone fills the tile above the caption, so the caption sits on the
   same line, the same gap below its object, as the podcast's next door */
.mp__phone {
  --h: min(calc(100cqh - 62px), 100cqw * 1.9); margin-top: auto; --w: calc(var(--h) / 2.05); --u: calc(var(--w) / 100);
  flex: none; position: relative; height: var(--h); width: var(--w); padding: calc(var(--u) * 3.6);
  border-radius: calc(var(--u) * 15); background: #0c0b0d;
  box-shadow: 0 0 0 1.5px #3a3238 inset, 0 0 0 1px rgba(255, 255, 255, .08), 0 22px 34px -14px rgba(0, 0, 0, .8);
  rotate: 5deg; transition: rotate .6s var(--spring), translate .6s var(--spring);
}
.mp__phone::before {      /* the Dynamic Island */
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--u) * 6.5); translate: -50% 0;
  width: 32%; height: calc(var(--u) * 7.5); border-radius: calc(var(--u) * 4); background: #000;
}
.mp__screen {
  position: relative; display: flex; flex-direction: column; gap: calc(var(--u) * 3);
  height: 100%; overflow: hidden; padding: calc(var(--u) * 5) calc(var(--u) * 4.5) 0;
  border-radius: calc(var(--u) * 11.5); background: #f2f1f3; color: #1c1a1d;
  font-family: "Poppins", system-ui, sans-serif; font-variation-settings: normal; font-size: calc(var(--u) * 4.6); line-height: 1.3;
}
.mp__screen::after {      /* the glass while the screen's asleep */
  content: ""; position: absolute; inset: 0; background: #08070a; transition: opacity .45s ease-out .9s;
}
.sg.is-in .mp__screen::after { opacity: 0; }
.mp__status { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--u) * 4); height: calc(var(--u) * 7.5); font-size: calc(var(--u) * 5); }
.mp__status svg { width: calc(var(--u) * 12); color: #1c1a1d; }
.mp__nav { display: flex; align-items: center; gap: calc(var(--u) * 2); margin-top: calc(var(--u) * 1.5); }
.mp__back { font-size: calc(var(--u) * 8); line-height: 1; font-weight: 500; }
.mp__seg { flex: 1; display: flex; padding: calc(var(--u) * 1); border-radius: calc(var(--u) * 4); background: #e4e2e6; }
.mp__seg span { flex: 1; text-align: center; padding: calc(var(--u) * 1.6) 0; border-radius: calc(var(--u) * 3); font-weight: 500; color: #77727a; font-size: calc(var(--u) * 4.2); }
.mp__seg .is-on { background: #fff; color: #c95120; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.mp__deal {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: end;
  padding: calc(var(--u) * 4); border-radius: calc(var(--u) * 5); color: #fff;
  background: linear-gradient(150deg, var(--orange-hi), var(--orange-lo)); box-shadow: 0 6px 14px -6px rgba(180, 70, 20, .6);
}
.mp__deal::before { content: ""; position: absolute; right: -12%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mp__title { grid-column: 1 / -1; font-weight: 700; font-size: calc(var(--u) * 5.6); letter-spacing: -.01em; }
.mp__lbl { grid-column: 1 / -1; font-weight: 600; font-size: calc(var(--u) * 3); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.mp__amt { font-weight: 700; font-size: calc(var(--u) * 11); line-height: 1; letter-spacing: -.02em; }
.mp__amt small { font-size: .5em; margin-right: .2em; vertical-align: .55em; }
.mp__chip { position: relative; padding: calc(var(--u) * 1.4) calc(var(--u) * 2.4); border-radius: calc(var(--u) * 3); background: #fff; color: #c95120; font-weight: 600; font-size: calc(var(--u) * 3.6); }
.mp__card { display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); padding: calc(var(--u) * 3.6) calc(var(--u) * 4); border-radius: calc(var(--u) * 5); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.mp__row { display: flex; align-items: center; justify-content: space-between; }
.mp__row b { font-weight: 600; font-size: calc(var(--u) * 5); }
.mp__mode { display: flex; gap: calc(var(--u) * 1); font-size: calc(var(--u) * 3.4); font-style: normal; }
.mp__mode i { font-style: normal; padding: calc(var(--u) * .8) calc(var(--u) * 1.8); border-radius: calc(var(--u) * 2.4); color: #77727a; background: #f2f1f3; }
.mp__mode .is-on { color: #c95120; background: #fff1e8; }
.mp__txt { font-size: calc(var(--u) * 4.4); }
.mp__lbl--o { color: #c95120; opacity: 1; }
.mp__term { display: flex; align-items: center; gap: calc(var(--u) * 2.4); padding: calc(var(--u) * 1.2) 0; border-top: 1px solid #eee; font-weight: 500; font-size: calc(var(--u) * 4.2); color: #8a858c; }
.mp__lbl--o + .mp__term { border-top: 0; }
.mp__term i { flex: none; display: grid; place-items: center; width: calc(var(--u) * 7); aspect-ratio: 1; border-radius: 50%; background: #e7f5ec; color: #2f9e5b; font-style: normal; font-size: calc(var(--u) * 3.8); }
.mp__term span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #1c1a1d; }
.mp__lbl--d { color: #77727a; opacity: 1; }
.mp__opt { display: flex; align-items: center; gap: calc(var(--u) * 2.4); font-weight: 600; font-size: calc(var(--u) * 4.4); }
.mp__dot { width: calc(var(--u) * 4.4); aspect-ratio: 1; border-radius: 50%; border: calc(var(--u) * 1.4) solid var(--orange); }
.mp__cta {
  margin: auto 0 calc(var(--u) * 6); padding: calc(var(--u) * 3.2) 0; border-radius: calc(var(--u) * 4);
  background: var(--orange); color: #fff; text-align: center; font-weight: 600; font-size: calc(var(--u) * 4.8);
  box-shadow: 0 6px 12px -6px rgba(180, 70, 20, .7);
}
.mp__foot { flex: none; margin-top: 8px; transition: color .25s; font-family: var(--display); font-weight: 560; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.1; letter-spacing: -.015em; }
@media (hover: hover) {
  .tile--mp:hover .mp__phone { rotate: 1deg; translate: 0 -4px; }
  .tile--mp:hover .mp__foot { color: var(--blue-hi); }
}
.tile--mp:active .mp__phone { rotate: 1deg; }

/* ---- Spotify: the artist card, the way Spotify draws one ---- */
.tile--pl { display: grid; place-items: center; }
.sa {
  --w: min(100cqw, 100cqh * .66);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; overflow: hidden;
  width: var(--w); height: min(100cqh, var(--w) / .66); padding: calc(var(--w) * .07);
  border-radius: 14px; color: #fff; background: var(--spotify-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -24px rgba(0, 0, 0, .9);
  font-family: var(--display);
  transition: background .3s;
}
.sa::before {             /* the header wash Spotify takes from the photo's colours */
  content: ""; position: absolute; inset: 0 0 45%; z-index: 0; pointer-events: none;
  background: url("/assets/stage/athenasia.jpg") 50% 30% / cover; filter: blur(28px) saturate(1.4); opacity: .55;
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent);
}
.sa > * { position: relative; z-index: 1; }
.sa__brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: calc(var(--w) * .07); letter-spacing: -.01em; }
.sa__brand svg { width: 1.35em; height: 1.35em; fill: var(--spotify); }
.sa__photo {
  align-self: center; display: block; width: 66%; aspect-ratio: 1; margin: calc(var(--w) * .07) 0 calc(var(--w) * .06);
  border-radius: 50%; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
.sa__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--ease); }
.sa__name { font-weight: 800; font-size: calc(var(--w) * .13); line-height: 1; letter-spacing: -.03em; }
.sa__foot { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: auto; }
.sa__play {
  display: grid; place-items: center; flex: none; width: calc(var(--w) * .19); aspect-ratio: 1; border-radius: 50%;
  background: var(--spotify); color: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 4px rgba(0, 0, 0, .12), 0 8px 18px rgba(0, 0, 0, .5);
  transition: scale .25s var(--ease), background .2s;
}
.sa__play svg { width: 42%; height: 42%; fill: currentColor; }
.sa__go { font-size: calc(var(--w) * .055); font-weight: 600; opacity: .85; transition: opacity .2s; }
@media (hover: hover) {
  .tile--pl:hover .sa { background: var(--spotify-ink-hi); }
  .tile--pl:hover .sa__play { scale: 1.07; background: var(--spotify-hi); }
  .tile--pl:hover .sa__photo img { scale: 1.04; }
  .tile--pl:hover .sa__go { opacity: 1; }
}
.tile--pl:active .sa__play { scale: .96; }

@media (prefers-reduced-motion: reduce) {
  .tile, .sg.is-in .tile { opacity: 1; scale: 1; filter: none; animation: none; transition: none; transform: none !important; }
  .vd__curtain, .vd__arch, .vn__disc, .vn__arm, .ig__feed, .np__paper, .np__face, .mp__phone, .mp__screen::after, .pc__win { transition: none !important; }
  .vd__curtain { transform: scaleX(.16); }
}

/* =========================================================
   PHONES: one block so the mobile layout lives in one place
   ========================================================= */
@media (max-width: 620px) {
  /* no "you are here" box on phones: the bar is all the screen has room for */
  .where { display: none; }

  /* Hero, phone edition: built for a tall screen, read top to bottom.
     1. who I am (role and MIT), top left
     2. the photo badge, big and centred in the free space (a tap pops the
        head out of the ring; main.js adds .is-popped)
     3. the name, WILLIAM / meziTIS, edge to edge along the bottom; main.js
        narrows the letters until the name takes up whatever height is left */
  .hero {
    display: flex; flex-direction: column;
    /* the role sits as close to the top as the name sits to the bottom */
    --edge: var(--pad);
    padding: calc(var(--edge) + env(safe-area-inset-top, 0px)) var(--pad) calc(var(--edge) + env(safe-area-inset-bottom, 0px));
  }
  /* static, so the photo below positions against the whole hero */
  .hero__name { position: static; order: 1; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
  /* the photo's centre is the screen's exact vertical middle */
  .me {
    --d: min(80vw, 38svh);
    position: absolute; right: auto; left: 50%; top: 50%;
    margin: 0; translate: -50% -50%; z-index: 2;
    width: var(--d); --px: calc(var(--d) * .745);
    transform-origin: 50% 50%;
  }
  .me.is-popped { scale: 1.06; }
  .me.is-popped .pop { --f: 1.4; }
  /* small nudges so the letters themselves (not their line boxes) sit exactly
     --edge from the top and bottom, matching the side margin */
  .hero__top { order: 0; align-self: stretch; padding-top: 0; margin-top: -3px; transition: opacity .4s var(--ease), visibility .4s; }
  .hero__name .name { margin-bottom: -8px; }
  /* once the nav bar has formed (it stays after the first scroll), the role
     and MIT lines bow out: the ring round the photo says the same thing */
  .bar.is-docked ~ main .hero__top { opacity: 0; visibility: hidden; }
  .hero__intro { gap: 6px; }
  .role { font-size: 21px; }
  .hero__sub { font-size: 15px; opacity: .85; }

  /* Nav: a slimmer bar */
  .bar__pill { height: 52px; gap: 10px; }
  .logo__word { font-size: 16px; }

  /* Frames, as on desktop: every section is exactly one screen and the page
     turns between them. Content clears the floating bar (top) and the edge. */
  .press.frame, .contact.frame, .mz.frame { height: 100svh; min-height: 0; }

  /* mezi on phones: the same hero, stacked. The words sit at the top and the
     phone stands below them, tilted, running off the bottom of the screen. */
  .mz.frame { padding: 84px var(--pad) 0; justify-content: flex-start; }
  .mz-copy { max-width: none; }
  .mz-kicker { font-size: 13px; }
  .mz-wordmark { font-size: clamp(76px, 25vw, 104px); }
  .mz-headline { max-width: 20ch; font-size: clamp(20px, 5.6vw, 24px); }
  .mz-actions { margin-top: 20px; gap: 8px; }
  .mz-btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .mz-apps { margin-top: 12px; font-size: 12.5px; }
  .mz-phone {
    --mz-phone-w: min(78vw, 330px);
    position: relative; top: auto; right: auto;
    flex: none; margin: 34px 4vw 0 auto;
  }

  /* Press: all six cards on one screen in a 2×3 grid, at rest like desktop
     (cover + title strip). The glow follows your finger (main.js). */
  .press.frame { padding-bottom: 14px; }
  .press.frame .press__inner { padding-top: 80px; }
  .pcards {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    --row: calc((100svh - 80px - 14px - 20px) / 3);
  }
  .pcard { height: var(--row); border-radius: 18px; }
  .pcard::after { border-radius: 17px; }
  .pcard .pcard__cover { inset: 6px; border-radius: 13px; clip-path: inset(0 0 0 0 round 13px); }
  .pcard .pcard__cover::after { opacity: 1; height: 60%; }
  .pcard .pcard__art { scale: 1; top: 28px; left: 10px; right: 10px; font-size: clamp(22px, 7.4vw, 30px); overflow-wrap: normal; }
  .pcard .pcard__kind { left: 10px; top: 10px; font-size: 9.5px; }
  .pcard .pcard__play { top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .pcard .pcard__play svg { width: 17px; height: 17px; }
  .pcard .pcard__body {
    left: 6px; right: 6px; bottom: 6px; height: auto; padding: 8px 10px 9px;
    translate: 0 0; color: var(--on-cover);
  }
  .pcard .pcard__body::before { opacity: 0; }
  .pcard .pcard__outlet { font-size: 9.5px; }
  .pcard .pcard__title { margin-top: 3px; font-size: 15px; }
  .pcard .pcard__desc, .pcard .pcard__foot { display: none; }
  .pcard.is-lit::before { opacity: 1; }
  .pcard.is-lit::after { opacity: .925; }
  .pcard.is-lit .pcard__play { scale: 1.12; }

  /* contact: the form card fits the screen */
  :where(.is-dark) .contact .cf__card { box-shadow: 6px 6px 0 #0c0609; }
  .contact.frame { padding: 80px var(--pad) 20px; }
  textarea.fi { min-height: 0; }
  .fw--grow { flex: 1 1 auto; min-height: 110px; }
  /* topic picker: full width with both words showing, so it lines up with the
     fields below instead of hanging off the left as a half-labelled pill.
     Same 18px corners as the fields; the picked half fills with the accent. */
  .cf__head .pill { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; border-radius: 18px; }
  .cf__head .pill label span { width: 100%; justify-content: center; padding: 11px 12px; border-radius: 13px; }
  .cf__head .pill label em { max-width: 110px; opacity: 1; margin-left: 8px; }
  .cf__title { text-align: center; }

  /* menu: a compact card on phones, so it reads as a dropdown over the page
     rather than a sheet that covers it */
  .menu { width: min(320px, calc(100vw - 48px)); }
  .menu__search { margin: 8px 8px 2px; }
  .menu__search input { padding: 9px 12px 9px 36px; font-size: 14px; }
  .menu__search svg { left: 13px; width: 14px; }
  .menu__nav { padding: 2px 0 6px; }
  .tree [role="treeitem"] { min-height: 42px; padding: 0 12px 0 18px; font-size: 22px; }
  .tree [aria-level="2"] { min-height: 34px; font-size: 15px; }
  .tree__toggle { width: 26px; height: 26px; }
  .tree__toggle svg { width: 11px; }
  .menu__chips { padding: 4px 4px; }
  .soc { padding: 7px; }
  .soc .ico { width: 18px; height: 18px; }
}
/* touch: sticky :hover would leave the photo stuck big; main.js drives it with .is-popped */
@media (hover: none) {
  .me:hover:not(.is-popped), .me:focus-visible:not(.is-popped) { scale: 1; }
  .me:hover:not(.is-popped) .pop, .me:focus-visible:not(.is-popped) .pop { --f: 1; }
}

/* ===== Nav name animations (main.js "Nav name shows") =====
   Eight little shows the name plays now and then. Letters are wrapped in .nl
   inline-block so they can move. Everything else is a throwaway .nfx overlay. */
.logo__word { position: relative; }
.logo__word.is-anim .nl { display: inline-block; transform-origin: 50% 80%; }
.nfx { position: absolute; left: 0; top: 0; pointer-events: none; }
/* spotlight: a soft pool of magenta light, centred on its left/top */
.nspot {
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 0, 139, .2), rgba(139, 0, 139, .07) 62%, transparent);
}
/* melody: the notes */
.nnote { width: .5em; height: .66em; color: var(--blue); }
.nnote svg { display: block; width: 100%; height: 100%; fill: currentColor; overflow: visible; }
/* sparkle: four-point glints on the i's */
.nglint { opacity: 0; }   /* hidden until its turn to flash */
.nglint svg { display: block; width: 100%; height: 100%; fill: currentColor; }
/* signature: the pen line (pathLength is 1, so a dash of 1 is the whole stroke) */
.nsign { overflow: visible; }
.nsign path, .nmarket path {
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.nmarket { overflow: visible; }
.nmarket path { stroke-width: 1.4; opacity: .8; }
.narrow { font: 600 .8em/1 var(--mono); color: var(--blue); }
/* petals: a rose petal is a rounded leaf, blush at the base and magenta at the tip */
.npetal {
  width: .44em; height: .32em; border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue));
  box-shadow: inset 0 -1px 2px rgba(30, 15, 23, .12);
}
/* hero: "MIT" is the MIT logo. White on the blue at rest; MIT's own red and
   grey on hover (or tap, via :active on touch) */
.hero__mit { white-space: nowrap; }
.hero__mit-logo { height: .74em; width: auto; vertical-align: -.02em; margin-right: .08em; overflow: visible; }
.hero__mit-logo rect { fill: currentColor; transition: fill .3s var(--ease); }
.hero__mit-logo .i { fill-opacity: .6; }
.hero__mit:hover, .hero__mit:focus-visible, .hero__mit:active { color: var(--paper); }
.hero__mit:hover .hero__mit-logo rect, .hero__mit:focus-visible .hero__mit-logo rect, .hero__mit:active .hero__mit-logo rect { fill: var(--mit-red); }
.hero__mit:hover .hero__mit-logo .i, .hero__mit:focus-visible .hero__mit-logo .i, .hero__mit:active .hero__mit-logo .i { fill: #8a8b8c; fill-opacity: 1; }
/* the planets orbiting "physics" swing past the screen edge; in Firefox that
   widened the whole page (phones then zoomed out). Clip them at the edge. */

/* hero: the MIT logo in MIT's own colours (red bars, grey "i"), on a small
   light plate so the dark red reads on the blue */
.hero__mit-logo {
  height: .74em; padding: .14em .2em; box-sizing: content-box;
  background: var(--paper); border-radius: .14em;
  vertical-align: -.2em; margin-right: .22em;
}
.hero__mit-logo rect, .hero__mit:hover .hero__mit-logo rect, .hero__mit:focus-visible .hero__mit-logo rect, .hero__mit:active .hero__mit-logo rect { fill: var(--mit-red); fill-opacity: 1; }
.hero__mit-logo .i, .hero__mit:hover .hero__mit-logo .i, .hero__mit:focus-visible .hero__mit-logo .i, .hero__mit:active .hero__mit-logo .i { fill: #8a8b8c; fill-opacity: 1; }

/* ⌘K "Blush": the whole page goes a little rosy */
html.is-blush::after {
  content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: rgba(255, 110, 165, .16); mix-blend-mode: multiply;
}

/* =========================================================
   COLOUR MODE: System / Dark / Light, at the far end of the
   menu's Home row. Same build as William's: icons, and only the
   picked one opens to show its word. Square-ish corners, not a pill.
   ========================================================= */
.menu__home { position: relative; }
/* Home's row keeps clear of the switch (its → would sit under it) */
.menu__home .tree > li:first-child > [role="treeitem"] { padding-right: 190px; }
.mode {
  --sw: .5s; --se: cubic-bezier(.65, 0, .35, 1);
  position: absolute; top: 0; right: 12px; height: 52px;
  display: flex; align-items: center; gap: 2px;
}
.mode label { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode label span {
  display: inline-flex; align-items: center;
  padding: 6px 8px; border: 1.5px solid transparent; border-radius: 10px;
  font: 600 13px var(--display); color: var(--ink);
  opacity: .5;
  transition: background-color var(--sw) var(--se), color var(--sw) var(--se),
              border-color var(--sw) var(--se), padding var(--sw) var(--se), opacity .3s;
}
.mode label .ic { width: 17px; height: 17px; flex: none; transition: transform var(--sw) var(--se); }
.mode label em {
  font-style: normal; white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width var(--sw) var(--se), margin var(--sw) var(--se), opacity .15s ease;
}
.mode input:checked + span { opacity: 1; padding-right: 11px; background: var(--blue); color: #fff; border-color: var(--blue); }
.mode input:checked + span .ic { transform: scale(1.06); }
.mode input:checked + span em {
  max-width: 70px; opacity: 1; margin-left: 6px;
  transition: max-width var(--sw) var(--se), margin var(--sw) var(--se), opacity .3s ease .18s;
}
.mode input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) { .mode label:hover span { opacity: .9; } }
/* touch: the pressed icon dips, so a tap answers before the word opens */
.mode label:active span { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .mode label span, .mode label em, .mode label .ic { transition: none !important; }
}
/* switching modes: every colour changes in the same frame */
.is-theming, .is-theming *, .is-theming *::before, .is-theming *::after { transition: none !important; }

/* =========================================================
   DARK MODE: the blush parts of the page go to a plum night; the
   magenta hero, the orange mezi frame, the dark stage and the
   magenta contact frame stay as they are. The meta tags declare both
   schemes and lock out dark-mode extensions, so nothing repaints it.
   ========================================================= */
:root { color-scheme: light; --night: #160b11; --night-up: #24141d; --night-line: rgba(247, 236, 238, .16); }
/* .is-dark is set on <html> by boot.js (before paint) and by the menu's
   colour mode switch: the visitor's pick, else the system's setting */
:root:where(.is-dark) { color-scheme: dark; }
html:where(.is-dark), :where(.is-dark) body { background: var(--night); }
:where(.is-dark) ::selection { background: var(--blue-hi); color: #fff; }

/* the story: light words on night. Swapping the two tokens inside it flips
   the text and rules; the little critters keep their own ink and paper so
   their eyes still read as eyes */
:where(.is-dark) .st { --ink: #f7ecee; --paper: var(--night); background: var(--night); color: var(--ink); }
:where(.is-dark) .st .st-crits { --ink: #1e0f17; --paper: #f7ecee; }
/* dark magenta barely shows on night, so the accent goes lighter on the
   night parts (the story, the menu, the nav), like William's lighter blue */
:where(.is-dark) .st, :where(.is-dark) .menu, :where(.is-dark) .bar__pill, :where(.is-dark) .where { --blue: #d05ad0; }
/* and "my brother" takes William's own night blue (his site's dark mode);
   only the words: his badge keeps its day blue, like the hero photo does */
:where(.is-dark) .st-w--will { color: #6470ff; }

/* the shared footer word sits on night too (William's footer does the same) */
:where(.is-dark) .footer { background: var(--night); color: #e9e8e3; }

/* contact: a night card on the magenta. Inside it the tokens swap so fields,
   the toggle and the send button draw light rules; the card keeps its dark
   edge and offset shadow */
:where(.is-dark) .cf__card {
  --ink: #f7ecee; --paper: var(--night);
  background: var(--night-up); color: var(--ink);
  border-color: #0c0609; box-shadow: 10px 10px 0 #0c0609;
}
:where(.is-dark) .cf__card .pill, :where(.is-dark) .cf__card .fi { background: var(--night); }
:where(.is-dark) .cf__card .fi::placeholder { color: rgba(247, 236, 238, .45); }
:where(.is-dark) .cf__card .fi.is-bad { background: #2a1214; }
:where(.is-dark) .cf__card .cf__check { color: #0c0609; }

/* the ⌘K menu: night cards. --ink goes light; --paper stays light because
   the menu uses it for text on magenta */
:where(.is-dark) .menu {
  --ink: #f7ecee; --bg: var(--night-up);
  --surf: #2e1a25; --line: rgba(247, 236, 238, .1); --muted: rgba(247, 236, 238, .6);
  color: #f7ecee;
}
:where(.is-dark) .menu__card, :where(.is-dark) .menu__foot, :where(.is-dark) .pane {
  background: var(--night-up);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--night-line);
}
:where(.is-dark) .menu__search input { background: rgba(255, 255, 255, .04); border-color: var(--night-line); }
:where(.is-dark) .menu__search:hover input, :where(.is-dark) .menu__search input:focus { background: var(--surf); }
:where(.is-dark) .menu__search svg { fill: rgba(247, 236, 238, .55); }
:where(.is-dark) .menu__search input::placeholder { color: rgba(247, 236, 238, .5); }
:where(.is-dark) .menu__clear:hover, :where(.is-dark) .menu__clear:focus-visible { background: rgba(255, 255, 255, .08); }
:where(.is-dark) .soc { color: rgba(247, 236, 238, .75); }
:where(.is-dark) .soc--x .ico, :where(.is-dark) .soc--tiktok .ico, :where(.is-dark) .soc--threads .ico { color: #f7ecee; }
:where(.is-dark) .menu__search input, :where(.is-dark) .pane, :where(.is-dark) .pane__back, :where(.is-dark) .pbtn, :where(.is-dark) .ps__url, :where(.is-dark) .pkeys kbd { color: #f7ecee; }
:where(.is-dark) .ps__url { background: var(--night); }
:where(.is-dark) .pkeys kbd { background: var(--surf); border-color: var(--night-line); box-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
:where(.is-dark) .ptime__face, :where(.is-dark) .ptime__tick.is-major { stroke: #f7ecee; }
:where(.is-dark) .ptime__tick { stroke: rgba(247, 236, 238, .35); }
:where(.is-dark) .ptime__h, :where(.is-dark) .ptime__m { stroke: #f7ecee; }
:where(.is-dark) .plot svg { background: var(--surf); }
:where(.is-dark) .plot__grid { stroke: rgba(247, 236, 238, .08); }
:where(.is-dark) .plot__axis, :where(.is-dark) .plot__mark { stroke: rgba(247, 236, 238, .45); }
:where(.is-dark) .plot__labels { fill: rgba(247, 236, 238, .6); stroke: var(--surf); }
:where(.is-dark) .plot__mark { fill: var(--surf); }
:where(.is-dark) .plot__dot { stroke: var(--surf); }
:where(.is-dark) .kbar { background: rgba(36, 20, 29, .92); border-top-color: var(--night-line); }
:where(.is-dark) .kbar__btn:disabled { color: rgba(247, 236, 238, .3); }

/* nav bar and the "you are here" box */
:where(.is-dark) .bar__pill, :where(.is-dark) .where {
  background: var(--night-up); color: #f7ecee;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .7), 0 0 0 1px var(--night-line);
}
