/* ──────────────────────────────────────────────────────────
   HARSH KUMAR ARYA — Avant-garde personal site
   Four aesthetic modes scoped via body[data-mode]:
   · warhol    — Pop art, 4-up portrait grid, hot colors
   · issue     — Fashion-magazine cover, big serif masthead
   · margiela  — Avant-garde minimal, garment-tag editorial
   · tabloid   — Broadsheet newsprint, multi-column density
   Tweaks panel can override accent / font / density.
   ────────────────────────────────────────────────────────── */

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; }

/* ─── BASE TOKENS (overridden per mode) ─────────────────── */
:root {
  --container-max: 1280px;
  --container-pad: 36px;
  --bg: #f6f3eb;
  --text: #1a1a1a;
  --muted: #6b6358;
  --line: #d6cfc1;
  --accent: #ff2d87;
  --accent-2: #00b3ff;
  --accent-3: #ffc700;
  --accent-4: #00d68f;
  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-display-alt: "Archivo Black", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-serif: "Fraunces", "Bodoni Moda", serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --section-pad-y: 96px;
  --hero-pad-top: 36px;
  --hero-pad-bot: 80px;
  --gap-block: 64px;
  --type-h1-min: 56px;
  --type-h1-max: 132px;
  --type-h2-min: 36px;
  --type-h2-max: 64px;
  --type-body: 17px;
  --type-tagline: 19px;
}

body[data-density="compact"]  { --section-pad-y: 64px; --hero-pad-bot: 56px; --gap-block: 40px; --type-body: 15px; --type-tagline: 17px; }
body[data-density="normal"]   { --section-pad-y: 96px; --hero-pad-bot: 80px; --gap-block: 64px; --type-body: 17px; --type-tagline: 19px; }
body[data-density="spacious"] { --section-pad-y: 144px; --hero-pad-bot: 120px; --gap-block: 96px; --type-body: 18px; --type-tagline: 21px; }

body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: var(--type-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.break { display: block; }
em { font-style: italic; }
strong { font-weight: 600; }

/* ─── COMMON: MARQUEE (Warhol / Tabloid only) ───────────── */
.marquee { display: none; overflow: hidden; width: 100%; }
.marquee-track {
  display: flex; gap: 28px; white-space: nowrap;
  animation: marquee 38s linear infinite;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.04em;
  line-height: 1; text-transform: uppercase;
}
.marquee-track span sup { font-size: 0.45em; vertical-align: super; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ─── COMMON: NAV ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.logo {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 18px;
  letter-spacing: 0.01em; color: var(--text);
}
.logo sup { font-size: 0.55em; vertical-align: super; color: var(--muted); margin-left: 1px; }
.issue-meta { display: none; gap: 18px; flex: 1; justify-content: center; }
.issue-meta span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; gap: 24px; font-size: 13px; }
.nav-links a {
  color: var(--muted); transition: color 0.15s;
  font-family: var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }

/* ─── COMMON: HERO WRAPPER ──────────────────────────────── */
.hero-wrap { padding: var(--hero-pad-top) 0 var(--hero-pad-bot); }

/* MASTHEAD — used by Issue + Margiela */
.masthead { display: none; }
.masthead .mast-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(120px, 26vw, 380px);
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.masthead .mast-side {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
}

/* HERO LAYOUT */
.hero {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: var(--gap-block); align-items: start;
}

.hero-kid-anchor {
  /* the noun the pointer sentence calls out — already accent (inherits
     from .hero-pointer-text), just stays italic + bolder */
  font-style: italic;
  font-weight: 600;
}

/* Anchor lead — anchor-led wink arrival mode pulses the .hero-kid-anchor
   with a soft accent wash so the reader's eye is led from the sentence
   up to the portrait before the wink fires. Background-only so layout
   never shifts; box-decoration-break clones the wash across line breaks. */
.hero-kid-anchor.is-leading {
  animation: kid-anchor-lead 760ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 2px;
}
@keyframes kid-anchor-lead {
  0%   { background: transparent; }
  25%  { background: color-mix(in oklab, var(--accent) 26%, transparent); }
  60%  { background: color-mix(in oklab, var(--accent) 18%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kid-anchor.is-leading { animation: none; }
}

/* Both intro sentences — the editor's-note hint and the pointer opener
   — wear the accent color so they read as a coordinated kicker pair
   leading into the kid-story body. */
.hero-pointer-text,
.fn-hint-body,
.fn-hint-body .fn-hint-soft {
  color: var(--accent);
}
.fn-hint-body .fn-hint-soft {
  /* keep the italic + lower-intensity feel via opacity, not via mixing
     the accent away — preserves the family relationship to the line above */
  opacity: 0.72;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(var(--type-h1-min), 8vw, var(--type-h1-max));
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-h1 em { font-style: italic; }

/* New hero structure — identity stack, pointer, story */
.hero-roles {
  list-style: none;
  padding: 16px 0;
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  text-wrap: pretty;
}
.hero-roles li { padding: 0; }

.hero-bridge {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 500;
}

.hero-pointer {
  /* .hero-pointer is now an inline <span> wrapping the opener sentence
     of the kid-story. The base rule is just the click-affordance hook;
     the *visual* affordance is opted in via body[data-pointer-affordance]
     and only when the stamp treatment is "auto" — the newyorker / hbr
     stamps carry their own block-level chrome. */
  cursor: pointer;
  user-select: none;
  transition: text-decoration-color 180ms ease-out,
              text-decoration-style 180ms ease-out,
              background-color 180ms ease-out,
              background-size 220ms ease-out;
}
.hero-pointer:focus-visible { outline: none; }

/* DOTTED — faint editorial citation underline, promotes to solid on
   hover / focus / wink. Echoes .inline-link[data-pending]. */
body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, var(--accent) 38%, transparent);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer:hover,
body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer:focus-visible {
  text-decoration-color: var(--accent);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer:active,
body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer.is-pointing {
  text-decoration-color: var(--accent);
  text-decoration-style: solid;
}
@media (hover: none) {
  body[data-pointer-stamp="auto"][data-pointer-affordance="dotted"] .hero-pointer {
    text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent);
  }
}

/* WAVY — handwritten editorial mark, like a margin annotation. */
body[data-pointer-stamp="auto"][data-pointer-affordance="wavy"] .hero-pointer {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="wavy"] .hero-pointer:hover,
body[data-pointer-stamp="auto"][data-pointer-affordance="wavy"] .hero-pointer:focus-visible {
  text-decoration-color: var(--accent);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="wavy"] .hero-pointer.is-pointing {
  text-decoration-color: var(--accent);
}

/* HIGHLIGHT — magazine highlighter wash. Uses a background gradient so
   it animates: 0 → 100% width on hover, full width when winking. */
body[data-pointer-stamp="auto"][data-pointer-affordance="highlight"] .hero-pointer {
  background-image: linear-gradient(
    transparent 62%,
    color-mix(in oklab, var(--accent) 22%, transparent) 62%,
    color-mix(in oklab, var(--accent) 22%, transparent) 96%,
    transparent 96%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  padding: 0 2px;
  margin: 0 -2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
body[data-pointer-stamp="auto"][data-pointer-affordance="highlight"] .hero-pointer:hover,
body[data-pointer-stamp="auto"][data-pointer-affordance="highlight"] .hero-pointer:focus-visible,
body[data-pointer-stamp="auto"][data-pointer-affordance="highlight"] .hero-pointer.is-pointing {
  background-image: linear-gradient(
    transparent 58%,
    color-mix(in oklab, var(--accent) 38%, transparent) 58%,
    color-mix(in oklab, var(--accent) 38%, transparent) 96%,
    transparent 96%
  );
}

/* MANICULE — pointing-hand glyph ☞ in the accent, before the sentence.
   Old-print device that's perfectly on-theme for "the kid in the corner". */
body[data-pointer-stamp="auto"][data-pointer-affordance="manicule"] .hero-pointer::before {
  content: "☞";
  display: inline-block;
  margin-right: 0.35em;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05em;
  vertical-align: -0.04em;
  transition: transform 220ms ease-out;
}
body[data-pointer-stamp="auto"][data-pointer-affordance="manicule"] .hero-pointer:hover::before,
body[data-pointer-stamp="auto"][data-pointer-affordance="manicule"] .hero-pointer:focus-visible::before {
  transform: translateX(2px);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="manicule"] .hero-pointer.is-pointing::before {
  transform: translateX(4px);
}

/* TAG — mono "[click]" tag tucked after the sentence; reads like a
   stage direction. Sits inline so it follows the line wrap. */
body[data-pointer-stamp="auto"][data-pointer-affordance="tag"] .hero-pointer::after {
  content: "[click]";
  display: inline-block;
  margin-left: 0.5em;
  padding: 1px 6px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.12em;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}
body[data-pointer-stamp="auto"][data-pointer-affordance="tag"] .hero-pointer:hover::after,
body[data-pointer-stamp="auto"][data-pointer-affordance="tag"] .hero-pointer:focus-visible::after {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
}
body[data-pointer-stamp="auto"][data-pointer-affordance="tag"] .hero-pointer.is-pointing::after {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 24%, transparent);
}
.hero-pointer-arrow {
  /* legacy — the manicule was dropped when the pointer became the
     opener sentence; kept as a no-op so any residual references
     don't break. */
  display: none;
}

/* Portrait wink — two passport images stacked; the wink composite
   reveals itself with an angular tilt. Click/scroll-past plays a one-shot
   snap-and-hold; hover holds the tilted-wink state. */
.warhol-cell.c1,
.passport-frame {
  position: relative;
  transform-origin: center;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* will-change applied only during active interaction to avoid permanent GPU
   layer (which causes text inside the frame to render slightly blurry) */
.warhol-cell.c1.is-winking,
.passport-frame.is-winking {
  will-change: transform;
}

.wink-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  display: none;            /* truly removed from render pipeline at rest */
  z-index: 1;
}
.passport-frame .wink-overlay {
  aspect-ratio: 1485 / 1000;
}

/* Hover state: tilt + reveal wink, held while hovered */
.warhol-cell.c1:hover,
.passport-frame:hover {
  transform: rotate(-4deg) scale(1.03);
  will-change: transform;
}
.warhol-cell.c1:hover .wink-overlay,
.passport-frame:hover .wink-overlay {
  display: block;
  opacity: 1;
  transition: opacity 220ms ease-out;
}

/* One-shot snap: scroll-past or click on the pointer line */
.warhol-cell.c1.is-winking,
.passport-frame.is-winking {
  animation: portrait-snap 1700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.warhol-cell.c1.is-winking .wink-overlay,
.passport-frame.is-winking .wink-overlay {
  display: block;
  animation: portrait-snap-overlay 1700ms ease-out;
}
/* Overlay leads on the way in (0→1 by 10%) and trails on the way out
   (1→0 from 92→100%) so the base image's fade never leaves a gap. */
@keyframes portrait-snap-overlay {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes portrait-snap {
  0%   { transform: rotate(0deg) scale(1); }
  18%  { transform: rotate(-6deg) scale(1.05); }
  32%  { transform: rotate(-3deg) scale(1.025); }
  82%  { transform: rotate(-3deg) scale(1.025); }
  100% { transform: rotate(0deg) scale(1); }
}
/* Wink fx layer — tweakable single-point effect anchored on the photo.
   Render content via body[data-wink-fx]; animate on .is-winking + :hover. */
.wink-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  overflow: hidden;
}

/* ── SHINE ── diagonal light sweep across the photo */
body[data-wink-fx="shine"] .wink-fx {
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,0.85) 50%,
    transparent 65%);
  background-size: 220% 100%;
  background-position: 200% 0;
  mix-blend-mode: overlay;
}
body[data-wink-fx="shine"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="shine"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="shine"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="shine"] .passport-frame:hover .wink-fx {
  animation: wink-fx-shine 1500ms ease-out;
}
@keyframes wink-fx-shine {
  0%   { background-position: 200% 0; opacity: 1; }
  100% { background-position: -120% 0; opacity: 1; }
}

/* ── DOTS ── halftone screen-print pulse */
body[data-wink-fx="dots"] .wink-fx {
  background: radial-gradient(circle, rgba(0,0,0,0.65) 1.3px, transparent 2px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}
body[data-wink-fx="dots"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="dots"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="dots"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="dots"] .passport-frame:hover .wink-fx {
  animation: wink-fx-dots 1500ms ease-out;
}
@keyframes wink-fx-dots {
  0%   { opacity: 0; transform: scale(0.6); }
  20%  { opacity: 1; transform: scale(1); }
  82%  { opacity: 0.6; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* ── RAYS ── comic-burst lines radiating from center */
body[data-wink-fx="rays"] .wink-fx {
  background: repeating-conic-gradient(
    from 0deg at 50% 45%,
    rgba(0,0,0,0.55) 0deg 4deg,
    transparent 4deg 18deg
  );
  mix-blend-mode: multiply;
}
body[data-wink-fx="rays"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="rays"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="rays"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="rays"] .passport-frame:hover .wink-fx {
  animation: wink-fx-rays 1600ms ease-out;
}
@keyframes wink-fx-rays {
  0%   { opacity: 0; transform: scale(0.4) rotate(-30deg); }
  18%  { opacity: 0.85; transform: scale(1) rotate(0deg); }
  80%  { opacity: 0.55; transform: scale(1.12) rotate(20deg); }
  100% { opacity: 0; transform: scale(1.2) rotate(36deg); }
}

/* ── FLASH ── accent-color tint pulse across the photo */
body[data-wink-fx="flash"] .wink-fx {
  background: var(--accent-3);
  mix-blend-mode: multiply;
}
body[data-wink-fx="flash"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="flash"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="flash"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="flash"] .passport-frame:hover .wink-fx {
  animation: wink-fx-flash 1500ms ease-out;
}
@keyframes wink-fx-flash {
  0%   { opacity: 0; background: var(--accent-3); }
  16%  { opacity: 0.7; background: var(--accent-3); }
  38%  { opacity: 0.3; background: var(--accent-2); }
  58%  { opacity: 0.5; background: var(--accent); }
  100% { opacity: 0; background: var(--accent-3); }
}

/* ── VIGNETTE ── photo darkens at edges, focusing eye on center */
body[data-wink-fx="vignette"] .wink-fx {
  background: radial-gradient(ellipse at 50% 42%,
    transparent 40%,
    rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}
body[data-wink-fx="vignette"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="vignette"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="vignette"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="vignette"] .passport-frame:hover .wink-fx {
  animation: wink-fx-vignette 1500ms ease-out;
}
@keyframes wink-fx-vignette {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ── MARILYN ── rapid screenprint color cycle (Warhol's signature) */
body[data-wink-fx="marilyn"] .wink-fx {
  mix-blend-mode: multiply;
}
body[data-wink-fx="marilyn"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="marilyn"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="marilyn"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="marilyn"] .passport-frame:hover .wink-fx {
  animation: wink-fx-marilyn 1700ms steps(1, end);
}
@keyframes wink-fx-marilyn {
  0%   { background: transparent; opacity: 0; }
  10%  { background: #ff2d87; opacity: 0.78; }
  25%  { background: #ffc700; opacity: 0.78; }
  40%  { background: #00b3ff; opacity: 0.78; }
  55%  { background: #00d68f; opacity: 0.78; }
  70%  { background: #ff5a00; opacity: 0.78; }
  85%  { background: #ff2d87; opacity: 0.4; }
  100% { opacity: 0; }
}

/* ── NEGATIVE ── color invert / solarization flash */
body[data-wink-fx="negative"] .wink-fx {
  backdrop-filter: invert(1) hue-rotate(180deg);
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg);
  background: rgba(0,0,0,0);  /* needed for backdrop-filter to render */
}
body[data-wink-fx="negative"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="negative"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="negative"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="negative"] .passport-frame:hover .wink-fx {
  animation: wink-fx-negative 1700ms steps(1, end);
}
@keyframes wink-fx-negative {
  0%, 100%   { opacity: 0; }
  18%  { opacity: 1; }      /* hard cut to negative */
  35%  { opacity: 0; }      /* back to normal */
  52%  { opacity: 1; }      /* flicker again */
  64%  { opacity: 0; }
  78%  { opacity: 1; }
  92%  { opacity: 0; }
}

/* ── POSTER ── extreme contrast / silkscreen posterization */
body[data-wink-fx="poster"] .wink-fx {
  backdrop-filter: contrast(2.4) saturate(3) brightness(1.1);
  -webkit-backdrop-filter: contrast(2.4) saturate(3) brightness(1.1);
  background: rgba(0,0,0,0);
}
body[data-wink-fx="poster"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="poster"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="poster"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="poster"] .passport-frame:hover .wink-fx {
  animation: wink-fx-poster 1500ms ease-out;
}
@keyframes wink-fx-poster {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── CHROMATIC ── RGB misprint registration shift */
body[data-wink-fx="chromatic"] .wink-fx {
  background: var(--accent);
  mix-blend-mode: difference;
  opacity: 0;
}
body[data-wink-fx="chromatic"] .warhol-cell.c1.is-winking,
body[data-wink-fx="chromatic"] .passport-frame.is-winking,
body[data-wink-fx="chromatic"] .warhol-cell.c1:hover,
body[data-wink-fx="chromatic"] .passport-frame:hover {
  /* offset cyan + magenta shadows fake the misprint */
  filter: drop-shadow(-4px 0 0 rgba(0, 200, 255, 0.7))
          drop-shadow(4px 0 0 rgba(255, 0, 130, 0.7));
}

/* ── HOT ── pop-art hue rotation (everything shifts to lurid colors) */
body[data-wink-fx="hot"] .wink-fx {
  backdrop-filter: hue-rotate(45deg) saturate(2.6) brightness(1.05);
  -webkit-backdrop-filter: hue-rotate(45deg) saturate(2.6) brightness(1.05);
  background: rgba(0,0,0,0);
}
body[data-wink-fx="hot"] .warhol-cell.c1.is-winking .wink-fx,
body[data-wink-fx="hot"] .passport-frame.is-winking .wink-fx,
body[data-wink-fx="hot"] .warhol-cell.c1:hover .wink-fx,
body[data-wink-fx="hot"] .passport-frame:hover .wink-fx {
  animation: wink-fx-hot 1500ms ease-out;
}
@keyframes wink-fx-hot {
  0%   { opacity: 0; }
  22%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wink-fx { animation: none !important; }
}

.passport-stamp { z-index: 5; }

/* Hide the base portrait while the wink reveals itself — otherwise
   mix-blend-mode: multiply on both imgs darkens the result. */
.warhol-cell.c1 > img:not(.wink-overlay),
.passport-frame > img:not(.wink-overlay) {
  transition: opacity 320ms ease-out;
}
.warhol-cell.c1:hover > img:not(.wink-overlay),
.passport-frame:hover > img:not(.wink-overlay) {
  opacity: 0;
}
.warhol-cell.c1.is-winking > img:not(.wink-overlay),
.passport-frame.is-winking > img:not(.wink-overlay) {
  animation: portrait-base-fade 1700ms ease-out;
}
/* Base holds visible until the overlay has fully arrived (10%), then fades.
   Returns to opacity 1 by 92% — before the overlay fades — so the combined
   alpha never drops below 1 and the portrait never goes invisible. */
@keyframes portrait-base-fade {
  0%   { opacity: 1; }
  10%  { opacity: 1; }
  22%  { opacity: 0; }
  80%  { opacity: 0; }
  92%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Backdrop-filter modes (hot / negative / poster) need their own
   compositing layer while the parent is mid-transform, otherwise Chromium
   can drop a frame and the filter renders as transparent. */
body[data-wink-fx="hot"] .is-winking .wink-fx,
body[data-wink-fx="negative"] .is-winking .wink-fx,
body[data-wink-fx="poster"] .is-winking .wink-fx,
body[data-wink-fx="hot"] :hover > .wink-fx,
body[data-wink-fx="negative"] :hover > .wink-fx,
body[data-wink-fx="poster"] :hover > .wink-fx {
  will-change: opacity, backdrop-filter;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .warhol-cell.c1, .passport-frame { transition: none; }
  .wink-overlay { transition: opacity 120ms; }
  .warhol-cell.c1.is-winking,
  .passport-frame.is-winking { animation: none; }
  .warhol-cell.c1.is-winking .wink-overlay,
  .passport-frame.is-winking .wink-overlay {
    animation: none;
    opacity: 1;
  }
  .warhol-cell.c1.is-winking > img:not(.wink-overlay),
  .passport-frame.is-winking > img:not(.wink-overlay) {
    animation: none;
    opacity: 0;
  }
  .warhol-cell.c1:hover, .passport-frame:hover { transform: none; }
  .hero-pointer-arrow,
  .hero-pointer:hover .hero-pointer-arrow { transition: none; transform: translateY(2px); }
}

.hero-story p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-story p strong { font-weight: 600; }

/* === STORY OPENER variants — editorial dress on first paragraph ========
   data-story-opener on <body>: off (default), dropcap (New Yorker T),
   smallcaps (first line in caps), rule (hairline rule above).
   Targets :first-of-type so the .fn-hint <aside> sitting above doesn't
   steal the drop cap from the first real paragraph. */
body[data-story-opener="dropcap"] .hero-story > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 4.6em;
  line-height: 0.82;
  float: left;
  padding: 6px 10px 0 0;
  margin: 6px 4px 0 -2px;
  color: var(--text);
  text-shadow: 0 0 0 var(--text);
}
body[data-story-opener="dropcap"][data-mode="warhol"] .hero-story > p:first-of-type::first-letter {
  color: var(--accent);
}
body[data-story-opener="smallcaps"] .hero-story > p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-weight: 500;
}
body[data-story-opener="rule"] .hero-story > p:first-of-type {
  border-top: 1px solid color-mix(in oklab, var(--text) 30%, var(--bg));
  padding-top: 22px;
  margin-top: 8px;
  position: relative;
}
body[data-story-opener="rule"] .hero-story > p:first-of-type::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.hero-story .hero-synth {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 28px 0;
  color: var(--text);
  max-width: 56ch;
}
.hero-story .hero-now {
  font-size: 16px;
  margin-top: 24px;
}
.hero-story .hero-now strong { font-weight: 700; }
.hero-now-end {
  font-style: italic;
  color: var(--muted);
}
.hero-tagline {
  font-size: var(--type-tagline);
  line-height: 1.55; max-width: 560px;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.hero-creds { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cred-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 14px; border: 1px solid var(--text);
  color: var(--text); background: transparent;
}
.cred-tag strong { font-weight: 700; }

.hero-photo { position: relative; }

/* === KID LABEL — visual anchor for the pointer-line referent ============
   Off by default. Tweakable to plain / arrowed / tag — sits above the
   photo element (Warhol grid or passport frame), in lowercase italic
   serif, magazine-caption tone. */
.kid-label {
  position: absolute;
  z-index: 6;
  top: -18px;
  left: 4px;
  display: none;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.005em;
  color: color-mix(in oklab, var(--text) 72%, var(--bg));
  pointer-events: none;
  user-select: none;
}
.kid-label-arrow {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 14px;
  color: var(--accent);
  display: inline-block;
  transform: translateY(2px);
}
.kid-label-text {
  text-transform: lowercase;
}

/* Default style: arrow + lowercase serif, sitting above the photo */
body[data-kid-label="plain"] .kid-label { display: inline-flex; }
body[data-kid-label="plain"] .kid-label-arrow { display: none; }

body[data-kid-label="arrowed"] .kid-label { display: inline-flex; }

/* Chip treatment — small mono caps tag with a hairline border */
body[data-kid-label="tag"] .kid-label {
  display: inline-flex;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid color-mix(in oklab, var(--text) 60%, var(--bg));
  padding: 4px 8px 3px;
  background: var(--bg);
  color: color-mix(in oklab, var(--text) 85%, var(--bg));
  top: -14px;
}
body[data-kid-label="tag"] .kid-label-arrow { display: none; }
body[data-kid-label="tag"] .kid-label-text { text-transform: uppercase; }
body[data-kid-label="tag"] .kid-label-text::before { content: "Exhibit A · "; opacity: 0.55; }

/* Caption treatment — sits flush, with a leading rule + italic deck */
body[data-kid-label="caption"] .kid-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  top: -22px;
}
body[data-kid-label="caption"] .kid-label-arrow {
  width: 24px;
  height: 1px;
  background: var(--accent);
  font-size: 0;
  transform: none;
}

body[data-kid-label="off"] .kid-label { display: none; }

/* === HERO PULL-QUOTE — right-column visual weight =====================
   Sits below the name-card to fill the void where the left column's
   .hero-synth lands. EXHIBITS · ON DEMAND label marks the stage; the
   exhibits fn-mount underneath populates when refs 3/4/5/12 are clicked. */
.hero-stage {
  margin-top: clamp(36px, 5vw, 64px);
  display: block;
}
.hero-stage-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--text) 60%, transparent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.hero-stage-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in oklab, var(--text) 22%, transparent);
}
.hero-stage-dot {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  transform: translateY(-1px);
  display: inline-block;
}

.hero-pull {
  margin: 0;
  text-align: left;
}
.hero-pull-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  opacity: 0.9;
}
.hero-pull-quote {
  margin: 0;
  padding: clamp(14px, 1.8vw, 22px) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: balance;
}
.hero-pull-period {
  color: var(--accent);
  font-style: normal;
  margin-left: 1px;
}
/* When an exhibit is open in fn-mount-exhibits below, soften the quote so
   the eye goes to the receipt the visitor just opened. */
.hero-stage:has(+ #fn-mount-exhibits:not(:empty)) .hero-pull-quote {
  opacity: 0.42;
  transition: opacity 280ms ease-out;
}

/* WARHOL 4-up grid */
.warhol-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 4px solid var(--text);
  background: var(--text);
  margin-bottom: 20px;
}
.warhol-cell {
  position: relative; aspect-ratio: 1 / 1;
  overflow: hidden;
}
.warhol-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.55) saturate(0) brightness(1.05);
  mix-blend-mode: multiply;
  position: relative;
}
.warhol-cell.c1 { background: #ff2d87; }
.warhol-cell.c2 { background: #00b3ff; }
.warhol-cell.c3 { background: #ffc700; }
.warhol-cell.c4 { background: #00d68f; }

/* Passport frame (used by Issue / Margiela / Tabloid) */
.passport-frame {
  display: none;
  position: relative;
  background: #fff;
  padding: 14px 14px 22px;
  border: 1px solid var(--text);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
  margin-bottom: 20px;
}
.passport-frame img {
  width: 100%; aspect-ratio: 1485 / 1000;
  object-fit: cover;
}
.passport-stamp {
  position: absolute; bottom: 8px; right: 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em;
  /* Derived from --text so the stamp always clears WCAG AA 4.5:1 against
     the white passport-frame, in every mode (including Margiela where
     --muted #7a786f on #fff lands at 4.39:1). */
  color: color-mix(in oklab, var(--text) 72%, var(--bg));
}

/* Name card (dictionary) */
.name-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--text);
  padding: 22px 22px 18px;
  margin-bottom: 18px;
}
/* Flash highlight when the nav logo's [1] is clicked — accent-4 (green)
   matches the name-card color in the kind-coded footnote palette. */
.name-card.is-flashing {
  animation: name-card-flash 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes name-card-flash {
  0%   { outline: 0 solid var(--accent-4); outline-offset: 0; }
  18%  { outline: 4px solid var(--accent-4); outline-offset: 10px; }
  60%  { outline: 2px solid var(--accent-4); outline-offset: 5px; }
  100% { outline: 0 solid var(--accent-4); outline-offset: 0; }
}

/* Exhibit A flash — when the Hereinafter clause's [A] superscript is
   activated, ring the portrait in the accent (matching the Exhibit A
   corner stamp's drop-shadow) and trigger a wink. */
.hero-portrait.is-flashing {
  animation: hero-portrait-flash 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hero-portrait-flash {
  0%   { outline: 0 solid var(--accent); outline-offset: 0; }
  20%  { outline: 4px solid var(--accent); outline-offset: 12px; }
  60%  { outline: 2px solid var(--accent); outline-offset: 6px; }
  100% { outline: 0 solid var(--accent); outline-offset: 0; }
}
.card-tag {
  display: none;
  position: absolute; top: -10px; left: 14px;
  background: var(--bg); padding: 0 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.dict-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.dict-row:first-child { border-top: 0; padding-top: 0; }
.dict-row:last-child { padding-bottom: 0; }
.dict-word {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 19px;
  color: var(--text); letter-spacing: -0.005em;
}
.dict-word sup { font-size: 0.55em; vertical-align: super; color: var(--muted); margin-left: 1px; }
.dict-pron {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  margin-left: 8px; letter-spacing: 0.02em;
}
.dict-tag { font-style: italic; font-size: 12px; color: var(--muted); margin-left: 6px; }
.dict-def {
  display: block; font-size: 13.5px;
  color: var(--text); margin-top: 5px; line-height: 1.55;
}

.passport-caption {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; margin-top: 16px; line-height: 1.55;
}
.name-footnote {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--muted); line-height: 1.75;
  width: 100%;
}

/* Exhibits card — childhood-artifact archive sitting below the Harry footnote */
.exhibits-card {
  position: relative;
  margin-top: 20px;
  padding: 22px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.exhibit { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.exhibit-thumb {
  aspect-ratio: 4 / 5;
  background: var(--bg);
  border: 1px dashed var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px;
  text-wrap: pretty;
  line-height: 1.3;
}
.exhibit-thumb::after { content: attr(data-placeholder); }

/* === Footnote hint — editorial "Editor's note" kicker that signposts
   the footnote mechanic exactly once, between the pointer line and the
   kid-story. Italic serif (matches the rest of the page's voice) reads
   as editorial copy, not generic UI chrome — visitors register it
   before they reach the first footnote ref instead of after. */
.fn-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: color-mix(in oklab, var(--text) 78%, var(--bg));
  margin: 0 0 18px;
  max-width: 60ch;
  display: block;
  text-wrap: pretty;
  position: relative;
}
.fn-hint::before {
  content: "Editor's note";
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 10px;
  white-space: nowrap;
}
.fn-hint .fn-hint-soft {
  color: color-mix(in oklab, var(--text) 55%, var(--bg));
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}
body[data-fn-hint="off"] .fn-hint { display: none; }
/* "bare" hint omits the Editor's note kicker — used by the Terse copy
   variant which already starts with its own arrow/punctuation. */
body[data-fn-hint="bare"] .fn-hint::before { display: none; }

/* Demo legend next to the hint — three category swatches.
   At rest: bracketed numbers in their category colors — [1] [3] [6].
   On hover any item: the number inside fades + collapses, the label
   tag (NAMES / SKETCHES / ASIDES) expands into the same brackets in
   the item's color. Brackets themselves stay put.
   Each item is independent — the other two remain at rest. */
.fn-hint-body { display: inline; }
.fn-hint-legend {
  display: inline-flex;
  gap: 4px;
  margin-left: 10px;
  vertical-align: baseline;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  /* match the body sentence size so the legend reads as inline with
     the editor's-note copy, not as a separate caption */
  font-size: inherit;
  letter-spacing: 0.02em;
}
.fn-hint-legend-item {
  display: inline-flex;
  align-items: baseline;
  cursor: default;
  white-space: nowrap;
}
.fn-hint-legend-item--namecard { color: #ff2d87; }   /* unified */
.fn-hint-legend-item--image    { color: #ff2d87; }           /* unified */
.fn-hint-legend-item--text     { color: #ff2d87; }   /* unified */

.fn-hint-bracket {
  color: currentColor;
}
.fn-hint-num-glyph,
.fn-hint-tag-glyph {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  transition: max-width 260ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease-out;
}
.fn-hint-num-glyph {
  max-width: 1.4em;
  opacity: 1;
}
.fn-hint-tag-glyph {
  max-width: 0;
  opacity: 0;
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 0 0.15em;
}
.fn-hint-legend-item:hover .fn-hint-num-glyph {
  max-width: 0;
  opacity: 0;
}
.fn-hint-legend-item:hover .fn-hint-tag-glyph {
  max-width: 10em;
  opacity: 1;
}

/* === Footnote system === */
.fn-ref {
  display: inline;
  vertical-align: super;
  font-size: 0.72em;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 0;
  cursor: pointer;
  user-select: none;
  /* WCAG hit-area expansion: padding inflates the clickable box;
     matching negative margin keeps surrounding text layout unchanged. */
  padding: 6px 4px;
  margin: -6px -4px;
  color: var(--accent);
  border-radius: 2px;
  position: relative;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), color 180ms,
              background 180ms, border-color 180ms, text-decoration-color 180ms;
}
/* ── Affordance variants (data-fn-affordance on <body>) ──────────────
   default: "dotted" — printed-citation underline + hover background flash.
   The variants below give the user something to audition in Tweaks.       */

/* DOTTED (default) — printed-citation underline + hover background flash.
   text-decoration follows the text glyph (not the padding box) so the
   underline stays tight to the digit even with the expanded hit area.
   background-clip: content-box keeps the hover flash subtle. */
body[data-fn-affordance="dotted"] .fn-ref {
  text-decoration: underline dotted currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
body[data-fn-affordance="dotted"] .fn-ref:hover {
  background: color-mix(in oklab, currentColor 18%, transparent);
  background-clip: content-box;
}

/* BRACKETED — printed footnote brackets reveal on hover, hint on rest.
   Also serves as the no-attr fallback so any page without data-fn-affordance
   on its <body> still gets the larger hit-target bracketed style. */
body:not([data-fn-affordance]) .fn-ref::before,
body:not([data-fn-affordance]) .fn-ref::after,
body[data-fn-affordance="bracketed"] .fn-ref::before,
body[data-fn-affordance="bracketed"] .fn-ref::after {
  color: color-mix(in oklab, currentColor 55%, transparent);
  font-weight: 500;
  transition: color 180ms;
}
body:not([data-fn-affordance]) .fn-ref::before,
body[data-fn-affordance="bracketed"] .fn-ref::before { content: "["; margin-right: 1px; }
body:not([data-fn-affordance]) .fn-ref::after,
body[data-fn-affordance="bracketed"] .fn-ref::after  { content: "]"; margin-left: 1px; }
body:not([data-fn-affordance]) .fn-ref:hover::before,
body:not([data-fn-affordance]) .fn-ref:hover::after,
body[data-fn-affordance="bracketed"] .fn-ref:hover::before,
body[data-fn-affordance="bracketed"] .fn-ref:hover::after { color: currentColor; }

/* BOXED — outlined chip drawn via ::before so it stays close to the digit
   while the .fn-ref retains the full hit-area padding. */
body[data-fn-affordance="boxed"] .fn-ref {
  font-size: 0.62em;
}
body[data-fn-affordance="boxed"] .fn-ref::before {
  content: "";
  position: absolute;
  inset: 5px 1px;
  border: 1px solid color-mix(in oklab, currentColor 55%, transparent);
  border-radius: 3px;
  pointer-events: none;
  transition: border-color 180ms, background 180ms;
}
body[data-fn-affordance="boxed"] .fn-ref:hover::before {
  background: color-mix(in oklab, currentColor 14%, transparent);
  border-color: currentColor;
}

/* HIGHLIGHT — soft wash via ::before, kept tight to the digit */
body[data-fn-affordance="highlight"] .fn-ref::before {
  content: "";
  position: absolute;
  inset: 5px 1px;
  background: color-mix(in oklab, currentColor 14%, transparent);
  border-radius: 2px;
  pointer-events: none;
  transition: background 180ms;
}
body[data-fn-affordance="highlight"] .fn-ref:hover::before {
  background: color-mix(in oklab, currentColor 30%, transparent);
}

/* PULSE — gentle attention nudge, halo every few seconds */
body[data-fn-affordance="pulse"] .fn-ref {
  text-decoration: underline dotted currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  animation: fn-ref-pulse 3.6s ease-in-out infinite;
}
body[data-fn-affordance="pulse"] .fn-ref:nth-of-type(3n) { animation-delay: 1.2s; }
body[data-fn-affordance="pulse"] .fn-ref:nth-of-type(3n+1) { animation-delay: 2.4s; }
body[data-fn-affordance="pulse"] .fn-ref:hover {
  background: color-mix(in oklab, currentColor 22%, transparent);
  background-clip: content-box;
  animation-play-state: paused;
}
@keyframes fn-ref-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 0%, transparent); }
  82%           { box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 28%, transparent); }
}

/* PLAIN — the original behavior, no extra affordance */
body[data-fn-affordance="plain"] .fn-ref { /* default styling only */ }

.fn-ref:hover { transform: translateY(-1px) scale(1.5) rotate(8deg); }
.fn-ref:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── Kind-coded colors (replaces the old per-num rainbow which read
   as an oversight). Every ref now wears one of three colors:
     • Name-card refs    (#1, #2)          → green     — dictionary entries
     • Image exhibits    (#3, #4, #5, #12) → orange    — sketches/photos
     • Text exhibits     (#6-#11)          → cyan      — people/asides    */
.fn-ref[data-fn-num="1"],
.fn-ref[data-fn-num="2"]  { color: var(--accent-4); }          /* green */

.fn-ref[data-fn-num="3"],
.fn-ref[data-fn-num="4"],
.fn-ref[data-fn-num="5"],
.fn-ref[data-fn-num="12"] { color: #ff5a00; }                  /* orange */

.fn-ref[data-fn-num="6"],
.fn-ref[data-fn-num="7"],
.fn-ref[data-fn-num="8"],
.fn-ref[data-fn-num="9"],
.fn-ref[data-fn-num="10"],
.fn-ref[data-fn-num="11"] { color: var(--accent-2); }          /* cyan */

/* Hover background flash — applies across all affordance variants so the
   click target reads as alive on hover, not just on focus. content-box
   clip keeps the flash tight to the digit instead of filling the WCAG
   hit-area padding. */
.fn-ref:hover {
  background: color-mix(in oklab, currentColor 16%, transparent);
  background-clip: content-box;
}
.fn-ref[data-fn-num="1"] { color: var(--accent-4); }
.fn-ref[data-fn-num="2"] { color: var(--accent-4); }
.fn-ref[data-fn-num="3"] { color: #ff5a00; }
.fn-ref[data-fn-num="4"] { color: #ff5a00; }
.fn-ref[data-fn-num="5"] { color: #ff5a00; }
.fn-ref[data-fn-num="6"] { color: var(--accent-2); }
.fn-ref[data-fn-num="7"] { color: var(--accent-2); }
.fn-ref[data-fn-num="8"] { color: var(--accent-2); }
.fn-ref[data-fn-num="9"] { color: var(--accent-2); }
.fn-ref[data-fn-num="10"] { color: var(--accent-2); }
.fn-ref[data-fn-num="11"] { color: var(--accent-2); }
.fn-ref[data-fn-num="12"] { color: #ff5a00; }
/* Unified footnote colour — one theme colour (Warhol base pink) that
   stays visible on cream, the blue ISB card and the yellow GT card
   alike. Replaces per-kind green/orange/cyan, which vanished against
   the matching card backgrounds. .fn-ref[data-fn-num] matches the
   per-number specificity (0,2,0) and, placed later, wins. */
.fn-ref[data-fn-num] { color: #ff2d87; }
.fn-ref.is-open {
  background: var(--text);
  color: var(--bg);
  transform: scale(1.25);
  border-radius: 3px;
  /* keep the hit-area padding; clip the dark fill to just the digit so the
     visual chip stays tight while the click box stays WCAG-sized */
  background-clip: content-box;
  text-decoration: none;
}
.fn-ref.is-open::before,
.fn-ref.is-open::after { display: none; }

.fn-mount { margin: 16px 0 0; }
.fn-mount:empty { display: none; }

/* PHOTO MOUNT — image-style exhibits commandeer the portrait area */
.hero-portrait { position: relative; }
.fn-mount-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 12;
  pointer-events: none;
}
.fn-mount-photo:empty { display: none; }
.fn-mount-photo > * { pointer-events: auto; }
.fn-mount-photo .fn-card {
  width: 100%;
  height: 100%;
  margin: 0;
}
.fn-mount-photo .fn-card-thumb {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 60%;
  font-size: 14px;
}
.fn-mount-photo .fn-card { display: flex; flex-direction: column; }
.hero-portrait.has-exhibit > .warhol-grid,
.hero-portrait.has-exhibit > .passport-frame {
  opacity: 0.1;
  transition: opacity 280ms ease-out;
  pointer-events: none;
}
.hero-portrait > .warhol-grid,
.hero-portrait > .passport-frame {
  transition: opacity 280ms ease-out;
}

.fn-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 18px 20px 14px;
  background: var(--bg);
  border: 2px solid var(--text);
  box-shadow: 6px 6px 0 var(--fn-accent, var(--accent));
  font-family: var(--font-mono);
  color: var(--text);
  animation: fn-card-in 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* fn-1 special: the "name" footnote gets a rainbow Warhol stripe across the top */
.fn-card[data-fn-num="1"] { padding-top: 22px; }
.fn-card[data-fn-num="1"]::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 7px;
  background: linear-gradient(to right,
    var(--accent)    0%   17%,
    var(--accent-2) 17%   34%,
    var(--accent-3) 34%   51%,
    var(--accent-4) 51%   68%,
    #ff5a00         68%   85%,
    #b557ff         85%  100%);
}
.fn-card-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 28px;
}
.fn-card-body {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--text);
}
.fn-card-body .dict-ref {
  background: var(--fn-accent, var(--accent));
  padding: 1px 4px;
  color: var(--text);
  font-weight: 700;
}
.fn-card-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 4px 0 10px;
  background: var(--bg);
  border: 1px dashed var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  padding: 12px;
  font-weight: 700;
  text-wrap: pretty;
}
.fn-card-thumb::after { content: attr(data-placeholder); }
.fn-card-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 6px;
}
.fn-card-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fn-card-close:hover { transform: rotate(90deg) scale(1.1); }

@keyframes fn-card-in {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ref { transition: none; }
  .fn-ref:hover { transform: none; }
  .fn-card { animation: none; }
  .fn-card-close { transition: none; }
}
.footnote-num {
  font-family: var(--font-serif);
  font-size: 14px; color: var(--text); margin-right: 4px;
}
.dict-ref {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.05em;
}

/* COVER SELLS (Issue only) */
.cover-sells { display: none; }

/* ─── SECTIONS ──────────────────────────────────────────── */
section { padding: var(--section-pad-y) 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-side { font-style: italic; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(var(--type-h2-min), 5vw, var(--type-h2-max));
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 56px; max-width: 1000px;
  text-wrap: balance;
}
.section-title em { font-style: italic; }

/* ─── PRESS ─────────────────────────────────────────────── */
.press {
  padding: 56px 0 !important;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.press-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 36px;
}
.press-side { color: var(--text); font-style: italic; }
.clippings {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px; align-items: start;
}
.clipping {
  position: relative; background: #fff;
  padding: 14px 14px 22px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.clipping:nth-child(1) { transform: rotate(-1.6deg); }
.clipping:nth-child(2) { transform: rotate(0.8deg); }
.clipping:nth-child(3) { transform: rotate(-0.8deg); }
.clipping:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 26px 50px rgba(0,0,0,0.16);
  z-index: 2;
}
.clip-tape {
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px; height: 18px;
  background: rgba(255, 235, 130, 0.65);
  border: 1px dashed rgba(0,0,0,0.08);
}
.clipping img { display: block; width: 100%; height: auto; }
.clipping-cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #666;
  text-align: center;
}
.press-fineprint {
  margin-top: 44px; text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); line-height: 1.5;
}
.press-fineprint strong { color: var(--text); }

/* ─── ABOUT ─────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap-block); align-items: start;
}
.about-prose p {
  font-size: var(--type-body); line-height: 1.65;
  margin-bottom: 20px;
}
.about-prose p:last-child { margin-bottom: 0; }
.inline-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.inline-link:hover { border-bottom-color: var(--accent); color: var(--accent); }
.inline-link[data-pending] { border-bottom-style: dotted; }
.about-photo { position: sticky; top: 96px; }
.about-photo-frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--text);
  padding: 14px 14px 18px;
}
.about-photo-frame img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
}
.about-photo-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  text-align: right;
}

/* ─── WORK ──────────────────────────────────────────────── */
#work {
  position: relative;
}

/* CURRENTLY card */
.work-now {
  margin-top: 32px;
  margin-bottom: 64px;
}
.work-now-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 6px 14px;
  position: relative;
  z-index: 2;
}
.work-now-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid var(--text);
  position: relative;
}
.work-now-side { }
.work-now-role {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.work-now-co {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.work-now-co em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.work-now-summary {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 60ch;
}
.work-now-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-now-list li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  color: var(--muted);
}
.work-now-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* Logo placeholders — show "LOGO" text via data-placeholder attr */
.work-logo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px dashed var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  position: relative;
}
.work-logo::after {
  content: attr(data-placeholder);
}
.work-logo-lg {
  width: 200px;
}

/* STATS STRIP */
.work-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 80px;
}
.stat {
  padding: 28px 24px 22px;
  border: 1px solid var(--text);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

/* PAST LIFE */
.work-past {
  margin-top: 0;
}
.work-past-head {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  display: inline-block;
}
.work-role {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.work-role:last-child { border-bottom: 1px solid var(--line); }
.work-role-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-role-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-role-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.work-role-co {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.work-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.work-role-list li {
  font-size: 15px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.work-role-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -3px;
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
}
.work-role-list strong { font-weight: 700; }

@media (max-width: 760px) {
  .work-now-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .work-logo-lg { width: 120px; }
  .work-now-role { font-size: 32px; }
  .work-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 44px; }
  .work-role { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .work-role-side { flex-direction: row; align-items: center; gap: 18px; }
  .work-role-side .work-logo { width: 80px; }
  .work-role-title { font-size: 28px; }
}

/* ─── CREDENTIALS ───────────────────────────────────────── */
#credentials { position: relative; padding-top: 32px; }
#credentials > .container { position: relative; z-index: 1; }
.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  padding-top: 240px;        /* room for building crests above each card */
}

/* Building silhouettes — rise ABOVE each card like architectural crests.
   The institution dominates; the card becomes a caption. */
.creds-grid::before,
.creds-grid::after {
  content: "";
  position: absolute;
  top: 0;
  height: 230px;
  width: calc(50% - 14px);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  pointer-events: none;
  opacity: 0.22;
  filter: saturate(0.85);
  z-index: 0;
}
.creds-grid::before { left: 0;  background-image: url("assets/credentials/isb-campus.png"); }
.creds-grid::after  { right: 0; background-image: url("assets/credentials/gt-campus.png");  }
.cred { position: relative; z-index: 1; }

/* ID-card shadow prop — a real ID card from the school's archive
   sits behind the credential card, casually rotated, partially
   covered. Absolute-positioned inside the grid container (with its
   own grid spec, absolutely-positioned children are pulled out of
   the grid layout cleanly), z-index 0 so .cred (z-index 1) draws
   over it.

   Each prop slides IN from its outer edge as the credentials
   section scrolls into view (CSS scroll-driven animation; falls
   back to a static visible state on browsers without
   `animation-timeline: view()`). Final opacity is 60% so the cards
   read as memory/archive props, not co-equal with the cred card.

   data-creds-props on <body>:
     off       — props hidden
     subtle    — small, mostly behind the card
     prominent — bigger, co-equal with the card (default) */
.cred-prop {
  position: absolute;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  display: block;
  isolation: isolate;          /* contains mix-blend-mode of inner overlays */
  filter:
    drop-shadow(0 12px 24px rgba(0,0,0,0.20))
    drop-shadow(0 3px 6px rgba(0,0,0,0.12));
  transition: width 240ms ease, top 240ms ease,
              left 240ms ease, right 240ms ease;
}
.cred-prop > img {
  display: block;
  width: 100%;
  height: auto;
}
/* Per-card tint pair — drives the Warhol pop & halftone treatments
   (`--cred-prop-tint` = primary fill, `--cred-prop-light` = highlight). */
.cred-prop--isb { --cred-prop-tint: #ff2d87; --cred-prop-light: #00b3ff; }
.cred-prop--gt  { --cred-prop-tint: #ff5a00; --cred-prop-light: #ffc700; }

body[data-creds-props="off"] .cred-prop { display: none; }

/* PROMINENT — default. Cards peek out roughly two-thirds past their
   cred card, tilted outward away from the cred (ISB left, GT right).
   ISB is bumped slightly larger so the portrait reads clearly. */
body:not([data-creds-props]) .cred-prop--isb,
body[data-creds-props="prominent"] .cred-prop--isb,
body[data-creds-props="subtle"]    .cred-prop--isb {
  width: 230px;
  top: 252px;
  left: -168px;
  transform: rotate(-10deg);
}
body:not([data-creds-props]) .cred-prop--gt,
body[data-creds-props="prominent"] .cred-prop--gt,
body[data-creds-props="subtle"]    .cred-prop--gt {
  width: 300px;
  top: 332px;
  right: -188px;
  transform: rotate(8deg);
}

/* SUBTLE — smaller props, just a corner peeking past the card. */
body[data-creds-props="subtle"] .cred-prop--isb {
  width: 130px;
  top: 282px;
  left: -42px;
  transform: rotate(-13deg);
}
body[data-creds-props="subtle"] .cred-prop--gt {
  width: 200px;
  top: 340px;
  right: -52px;
  transform: rotate(11deg);
}

/* SCROLL-DRIVEN ENTRANCE — each prop starts tucked under its cred
   card (translated inward, opacity 0) and slides out + fades up to
   60% as the credentials section enters the viewport. Uses the
   modern `animation-timeline: view()` API; older browsers fall
   through to the static end-state above via the @supports guard. */
@supports (animation-timeline: view()) {
  .cred-prop--isb {
    animation: cred-prop-isb-in linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 85%;
  }
  .cred-prop--gt {
    animation: cred-prop-gt-in linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 85%;
  }
  @keyframes cred-prop-isb-in {
    from { opacity: 0; transform: translateX(120px) rotate(-10deg); }
    to   { opacity: 0.6; transform: translateX(0)    rotate(-10deg); }
  }
  @keyframes cred-prop-gt-in {
    from { opacity: 0; transform: translateX(-140px) rotate(8deg); }
    to   { opacity: 0.6; transform: translateX(0)    rotate(8deg); }
  }
  /* Subtle mode keeps its own tilts in the keyframes */
  body[data-creds-props="subtle"] .cred-prop--isb { animation-name: cred-prop-isb-in-subtle; }
  body[data-creds-props="subtle"] .cred-prop--gt  { animation-name: cred-prop-gt-in-subtle; }
  @keyframes cred-prop-isb-in-subtle {
    from { opacity: 0; transform: translateX(60px) rotate(-13deg); }
    to   { opacity: 0.6; transform: translateX(0)  rotate(-13deg); }
  }
  @keyframes cred-prop-gt-in-subtle {
    from { opacity: 0; transform: translateX(-80px) rotate(11deg); }
    to   { opacity: 0.6; transform: translateX(0)   rotate(11deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .cred-prop--isb,
    .cred-prop--gt { animation: none; opacity: 0.6; }
  }
}

/* ─── ID-card treatments (data-creds-fx on <body>) ───────────────
   Five Warhol-leaning treatments stacked over the ID-card photo.
   Each treatment isolates within the .cred-prop wrapper so blend
   modes mix with the IMG inside, not the page background. */

/* PHOTO — natural ID card, no treatment (fallback when attr is missing). */

/* POP — grayscale photo with a Warhol monotone wash (per-card tint).
   "Every pop a different color"; ISB pops hot-pink, GT pops orange. */
body[data-creds-fx="pop"] .cred-prop > img {
  filter: grayscale(1) contrast(1.08) brightness(1.04);
}
body[data-creds-fx="pop"] .cred-prop::before,
body[data-creds-fx="pop"] .cred-prop::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
body[data-creds-fx="pop"] .cred-prop::before {
  background: var(--cred-prop-tint, var(--accent));
  mix-blend-mode: multiply;
  opacity: 0.88;
}
body[data-creds-fx="pop"] .cred-prop::after {
  background: var(--cred-prop-light, var(--accent-3));
  mix-blend-mode: screen;
  opacity: 0.22;
}

/* HALFTONE — comic-book screen-print dots over the photo. */
body[data-creds-fx="halftone"] .cred-prop::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.78) 22%, transparent 26%);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
}
body[data-creds-fx="halftone"] .cred-prop > img {
  filter: contrast(1.15) brightness(1.06) saturate(1.1);
}

/* NEGATIVE — full color invert + hue swing. Pop-art psychedelia. */
body[data-creds-fx="negative"] .cred-prop > img {
  filter: invert(1) hue-rotate(180deg) saturate(1.4) contrast(1.08);
}

/* MISPRINT — RGB channel offsets via colored drop-shadows, like a
   four-color press out of registration. */
body[data-creds-fx="misprint"] .cred-prop > img {
  filter:
    drop-shadow(-3px 0 0 rgba(255, 45, 135, 0.82))
    drop-shadow(3px 0 0 rgba(0, 179, 255, 0.82))
    drop-shadow(0 2px 0 rgba(255, 199, 0, 0.55));
}

@media (max-width: 760px) {
  /* On mobile the grid collapses to a single column; shrink the props
     and tuck them at the top-right of each card so they don't fight
     the building silhouette above each card. */
  .cred-prop--isb {
    top: -16px !important;
    left: auto !important; right: -18px !important;
    width: 100px !important;
    transform: rotate(9deg) !important;
  }
  .cred-prop--gt {
    top: -14px !important;
    right: -22px !important; left: auto !important;
    width: 140px !important;
    transform: rotate(-8deg) !important;
  }
}

/* ─── School logos — placement modes (data-creds-logo on <body>) ─── */
/* Default: hidden unless a mode is selected */
.cred-logo {
  display: none;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* ── MODE: watermark — giant faded crest BEHIND the building silhouette,
   sitting in the top column area. Two scales of identity = institutional weight. */
body[data-creds-logo="watermark"] .creds-grid::before,
body[data-creds-logo="watermark"] .creds-grid::after {
  /* Push the silhouette slightly forward */
  z-index: 1;
}
body[data-creds-logo="watermark"] .cred-logo {
  display: block;
  position: absolute;
  top: -228px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0.12;
  z-index: 0;
  /* White logo → invert back to dark for visibility on cream background */
  filter: invert(1) saturate(0.4);
}

/* ── MODE: chip — small logo inline before the school name, on colored card */
body[data-creds-logo="chip"] .cred-logo {
  display: block;
  width: 56px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

/* ── MODE: seal — small mark in the top-right corner of the card */
body[data-creds-logo="seal"] .cred-logo {
  display: block;
  position: absolute;
  top: 28px;
  right: 28px;
  width: 72px;
  height: 36px;
  object-fit: contain;
  object-position: right center;
  opacity: 0.9;
}
body[data-creds-logo="seal"] .cred { padding-right: 116px; }

/* ── MODE: footer — logo sits inline with the meta strip at the bottom */
body[data-creds-logo="footer"] .cred { padding-bottom: 88px; }
body[data-creds-logo="footer"] .cred-logo {
  display: block;
  position: absolute;
  left: 36px;
  bottom: 24px;
  width: 72px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
}
body[data-creds-logo="footer"] .cred-meta {
  position: absolute;
  right: 36px;
  bottom: 36px;
  margin-top: 0;
}

/* ── MODE: combo — large watermark behind silhouette + small corner seal on card */
body[data-creds-logo="combo"] .cred-logo {
  display: block;
  position: absolute;
  top: 22px;
  right: 24px;
  width: 64px;
  height: 32px;
  object-fit: contain;
  object-position: right center;
  z-index: 2;
}
body[data-creds-logo="combo"] .cred { padding-right: 104px; }
body[data-creds-logo="combo"] .cred::before {
  content: "";
  position: absolute;
  top: -228px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: var(--combo-watermark) no-repeat center / contain;
  opacity: 0.12;
  filter: invert(1) saturate(0.4);
  z-index: 0;
  pointer-events: none;
}
body[data-creds-logo="combo"] .cred-isb { --combo-watermark: url("assets/credentials/isb-seal.png"); }
body[data-creds-logo="combo"] .cred-gt  { --combo-watermark: url("assets/credentials/gt-seal.png");  }
body[data-creds-logo="combo"] .creds-grid::before,
body[data-creds-logo="combo"] .creds-grid::after { z-index: 1; }

@media (max-width: 760px) {
  body[data-creds-logo="watermark"] .cred-logo { width: 160px; height: 160px; top: -168px; }
  body[data-creds-logo="seal"] .cred-logo { width: 44px; height: 44px; top: 18px; right: 18px; }
  body[data-creds-logo="seal"] .cred { padding-right: 72px; }
  body[data-creds-logo="combo"] .cred::before { width: 160px; height: 160px; top: -168px; }
}

@media (max-width: 760px) {
  .creds-grid { padding-top: 160px; }
  .creds-grid::before,
  .creds-grid::after { height: 150px; width: calc(50% - 8px); }
}

.cred {
  position: relative;
  padding: 40px 36px 32px;
  border: 1px solid var(--text);
  background: #fff;
}
.cred-stamp {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--muted);
  margin-bottom: 16px;
}
.cred-seal {
  display: block;
  height: 80px; width: auto;
  object-fit: contain;
}
.cred-stamp-fallback { display: none; }
.cred-school {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 8px;
}
.cred-program {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px;
}
.cred-divider { height: 1px; background: var(--line); margin: 24px 0; }

/* ID band — passport-style header strip at the top of each credential card */
.cred-id-band {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--text);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.cred-id-country {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}
.cred-id-type {
  color: var(--muted);
  font-weight: 500;
  flex: 1;
  text-align: center;
  letter-spacing: 0.18em;
}
.cred-id-num {
  letter-spacing: 0.06em;
  background: var(--text);
  color: var(--bg);
  padding: 3px 7px;
}

.cred-highlight { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.cred-highlight strong { color: var(--text); font-weight: 600; }
.cred-highlight--reflection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.cred-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 18px;
}

/* ─── OFF GRID ──────────────────────────────────────────── */
.off-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr; gap: 12px;
  position: relative; z-index: 1;
}
#off {
  position: relative;
}
.off-grid > div { position: relative; overflow: hidden; }
.off-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.off-2 { grid-column: 3 / 4; grid-row: 1; }
.off-3 { grid-column: 4 / 5; grid-row: 1; }
.off-4 { grid-column: 3 / 4; grid-row: 2; }
.off-5 { grid-column: 4 / 5; grid-row: 2; }
.off-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  --cell-pop: var(--accent);
}
.off-1 .off-photos { --cell-pop: #ff5a96; }   /* hot pink   */
.off-2 .off-photos { --cell-pop: #ffc700; }   /* yellow     */
.off-3 .off-photos { --cell-pop: #00b3ff; }   /* blue       */
.off-4 .off-photos { --cell-pop: #6de0a3; }   /* mint       */
.off-5 .off-photos { --cell-pop: #ff5a00; }   /* orange     */
/* Warhol screen-print wash — solid pop color on top, multiplies into the B&W photo underneath */
.off-photos::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--cell-pop);
  mix-blend-mode: multiply;
  opacity: 1;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.55s ease;
}
.off-cell:hover .off-photos::after { opacity: 0; }
.off-1 .off-photos { aspect-ratio: auto; height: 100%; }
.off-photos .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.55) saturate(0) brightness(1.12);
  transition: opacity 0.5s ease, filter 0.55s ease;
}
.off-photos .photo.active { opacity: 1; }
.off-cell:hover .off-photos .photo {
  filter: contrast(1.05) saturate(1) brightness(1);
}
.off-tag {
  position: absolute; bottom: 8px; left: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; color: #fff;
  background: rgba(0,0,0,0.5); padding: 3px 8px;
  z-index: 4;
}
.off-tag-count {
  font-style: normal;
  opacity: 0.7;
  margin-left: 2px;
}
/* Carousel dots — visible cue that a cell has multiple photos */
.off-dots {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex; gap: 6px;
  z-index: 4;
}
.off-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}
.off-dots span.active {
  background: var(--accent);
  transform: scale(1.15);
}
/* Idle pulse — nudges the viewer that something happens here */
.off-cell--multi:not(.is-playing) .off-dots {
  animation: off-dot-pulse 2.2s ease-in-out infinite;
}
@keyframes off-dot-pulse {
  0%, 100% { transform: translateY(0);      opacity: 1; }
  50%      { transform: translateY(-2px);   opacity: 0.7; }
}
.off-cell--multi { cursor: pointer; }
.off-caption {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 32px; margin-top: 36px;
}
.off-caption h4 {
  font-family: var(--font-display);
  font-weight: 400; font-size: 24px; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.off-caption p { color: var(--muted); line-height: 1.6; font-size: 15px; }

/* ─── SELECTED CREATIVE ─────────────────────────────────── */
.creative-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 64px 36px;
  margin-top: 24px;
}
.creative-tile { display: block; }
.folder {
  position: relative;
  aspect-ratio: 5 / 4;
  margin-top: 150px;  /* clearance for peeks above */
  --folder-color: #ffb3d9;
  --folder-color-dark: #d97aa3;
}
.folder::before {
  /* main folder body — macOS Finder style */
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--folder-color) 88%, white) 0%,
      var(--folder-color) 50%,
      var(--folder-color-dark) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.55) inset,
    0 0 0 1px rgba(0,0,0,0.04),
    0 16px 32px rgba(0,0,0,0.18),
    0 6px 12px rgba(0,0,0,0.10);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}
.folder::after {
  /* folder tab on the top-left, manila-style */
  content: "";
  position: absolute;
  top: -10px; left: 6%;
  width: 42%;
  height: 18px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--folder-color) 80%, white) 0%,
    var(--folder-color) 100%);
  border-radius: 8px 14px 0 0;
  border: 1px solid rgba(0,0,0,0.10);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
  z-index: 2;
}
.folder-1 { --folder-color: #ffb3d9; --folder-color-dark: #d97aa3; }
.folder-2 { --folder-color: #ffe27a; --folder-color-dark: #d4a000; }
.folder-3 { --folder-color: #b8e8c8; --folder-color-dark: #66c190; }

.peek-stack {
  position: absolute;
  top: -42%;          /* peeks extend 42% of folder height ABOVE folder top */
  left: 8%; right: 8%;
  height: 78%;        /* total peek height; bottom 36% tucks into folder, hidden behind folder body */
  z-index: 0;         /* sit behind folder body so the "tucked" portion is hidden */
}
.peek {
  position: absolute; inset: 0;
  border: 2px solid var(--text);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.14);
}
.peek-back-a {
  transform: rotate(-9deg) translateX(-12%) translateY(8%);
}
.peek-back-b {
  transform: rotate(7deg) translateX(14%) translateY(-3%);
}
/* Generic colored back-cards — fallback if no themed peek class applies */
.folder-1 .peek-back-a:not([class*="peek-"]):not(.peek-polaroid) { background: #fff8e7; }
.folder-1 .peek-back-b:not([class*="peek-"]):not(.peek-negative) { background: #fde2cf; }

/* ─── THEMED PEEK ITEMS ──────────────────────────────── */

/* PHOTOGRAPHY — Polaroid frame */
.peek-polaroid {
  background: #fff;
  padding: 9px 9px 22px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.peek-polaroid .polaroid-img {
  flex: 1;
  background:
    linear-gradient(140deg, #ff9ec7 0%, #ffd24a 65%, #6de0a3 100%);
  border: 1.5px solid var(--text);
}
.peek-polaroid .polaroid-cap {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-align: center; color: var(--text);
}

/* PHOTOGRAPHY — Negative film strip */
.peek-negative {
  background: #1a1a1a;
  padding: 8px 0;
  display: flex; flex-direction: column;
  justify-content: center; gap: 8px;
  position: relative;
}
.peek-negative::before,
.peek-negative::after {
  content: "";
  position: absolute; left: 8px; right: 8px;
  height: 10px;
  background: repeating-linear-gradient(to right,
    #f6e9c8 0 6px, transparent 6px 12px);
}
.peek-negative::before { top: 8px; }
.peek-negative::after  { bottom: 8px; }
.peek-negative .negative-strip {
  margin: 12px;
  flex: 1;
  background:
    linear-gradient(140deg, #b85ca6, #c9763c, #67a23a, #3c6dd6);
  background-size: 200% 100%;
  background-position: 60% 0;
  filter: contrast(0.9) saturate(0.7);
}

/* DESIGN — Color palette swatch card */
.peek-palette {
  background: #fff;
  display: flex; flex-direction: column;
  padding: 0;
  position: relative;
}
.peek-palette .swatch {
  flex: 1;
  border-bottom: 1.5px solid var(--text);
  display: block;
}
.peek-palette .swatch:last-of-type { border-bottom: 0; }
.peek-palette .s1 { background: #ff5a00; }
.peek-palette .s2 { background: #00b3ff; }
.peek-palette .s3 { background: #ffc700; }
.peek-palette .s4 { background: #1a1a1a; }
.peek-palette .swatch-cap {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--text);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* DESIGN — Sketch notebook page */
.peek-notebook {
  background: #fdfaf0;
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.peek-notebook .notebook-head {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.005em;
  border-bottom: 2px solid var(--text);
  padding-bottom: 6px;
}
.peek-notebook .notebook-line {
  height: 2px;
  background: var(--line);
}
.peek-notebook .w-90 { width: 90%; }
.peek-notebook .w-85 { width: 85%; }
.peek-notebook .w-70 { width: 70%; }
.peek-notebook .w-60 { width: 60%; }

/* FILM — Clapperboard slate */
.peek-slate {
  background: #fff;
  display: flex; flex-direction: column;
  padding: 0;
}
.peek-slate .slate-stripes {
  height: 38%;
  background: repeating-linear-gradient(
    -45deg,
    var(--text) 0 12px,
    #fff 12px 24px
  );
  border-bottom: 2px solid var(--text);
}
.peek-slate .slate-body {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  gap: 8px;
}
.peek-slate .slate-row {
  display: flex; align-items: baseline;
  gap: 14px;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 4px;
}
.peek-slate .slate-row span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
}
.peek-slate .slate-row b {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1;
  letter-spacing: 0;
  margin-left: auto;
}

/* FILM — Timecode panel */
.peek-timecode {
  background: var(--text); color: #fafa70;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 10px;
}
.peek-timecode .tc-time {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-3);
}
.peek-timecode .tc-meta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.peek-timecode .tc-bar {
  margin-top: 4px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  position: relative;
}
.peek-timecode .tc-bar span {
  display: block; height: 100%;
  width: 38%;
  background: var(--accent);
}

.peek-front {
  z-index: 3;
  background: #fff;
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.creative-tile:hover .peek-front { transform: rotate(0); }
.creative-tile:hover .folder::before { transform: translateY(-4px); }

.peek-front img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.peek-front img.active { opacity: 1; }

.peek-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 16px;
  background: #fff;
}
.peek-card .ph-mark {
  font-family: var(--font-display);
  font-size: 64px; line-height: 1;
  letter-spacing: 0;
}
.peek-card .ph-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase;
}
.peek-card .ph-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--muted);
}

.creative-meta { margin-top: 28px; text-align: center; }
.creative-meta h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-style: normal; font-weight: 600;
  font-size: 28px; letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.creative-meta p {
  position: relative;
  display: inline-block;
  font-size: 13px; color: var(--text);
  line-height: 1.55;
  text-align: left;
  padding: 12px 16px;
  max-width: 280px;
  background: var(--surlignage-bg, rgba(255,158,199,0.35));
  border-left: 2px solid var(--surlignage-line, #e85a9d);
  border-right: 2px solid var(--surlignage-line, #e85a9d);
}
.creative-meta p::before,
.creative-meta p::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surlignage-line, #e85a9d);
}
.creative-meta p::before { top: -7px;  left: -8px; }
.creative-meta p::after  { bottom: -7px; right: -8px; }

/* Per-tile surlignage colors — echo the folder above */
.creative-grid .creative-tile:nth-child(1) .creative-meta p {
  --surlignage-bg:   rgba(255,158,199,0.38);
  --surlignage-line: #e85a9d;
}
.creative-grid .creative-tile:nth-child(2) .creative-meta p {
  --surlignage-bg:   rgba(255,226,122,0.40);
  --surlignage-line: #d4a000;
}
.creative-grid .creative-tile:nth-child(3) .creative-meta p {
  --surlignage-bg:   rgba(109,224,163,0.35);
  --surlignage-line: #1ea866;
}

.creative-link-cue {
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-weight: 500;
}
.creative-tile:hover .creative-link-cue { color: var(--surlignage-line); border-bottom-color: var(--surlignage-line); }

/* ─── NOTES ─────────────────────────────────────────────── */
.notes-list { display: grid; gap: 0; }
.note-item {
  display: grid;
  grid-template-columns: 60px 110px 1fr auto;
  gap: 24px; padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.2s ease, background 0.2s ease;
}
.note-item:last-child { border-bottom: 1px solid var(--line); }
.note-item:hover { padding-left: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.note-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--muted);
}
.note-date {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.05em; color: var(--muted);
}
.note-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.15;
}
.note-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--muted);
  text-transform: uppercase;
}
.all-notes {
  margin-top: 32px; display: inline-block;
  font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── CONTACT ───────────────────────────────────────────── */
.contact-block { padding: 88px 0 64px; }
.section-label--contact { margin-bottom: 24px; }
.contact-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 36px; max-width: 1100px;
  text-wrap: balance;
}
.contact-line em { font-style: italic; }
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 44px);
  color: var(--text);
  border-bottom: 3px solid var(--text);
  padding-bottom: 4px; display: inline-block;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }

.contact-topics {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  max-width: 1100px;
}
.topic-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-right: 6px;
}
.topic {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 12px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.contact-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.contact-consult-line {
  font-size: 13.5px; color: var(--muted);
  margin: 0;
}
.contact-consult-line a {
  color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 1px;
}
.contact-consult-line a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Footnote link superscript on "note" */
.footnote-link {
  font-family: var(--font-serif);
  font-size: 0.4em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--muted);
  font-style: italic;
}

/* Contact footnote — mirrors the hero name-footnote pattern */
.contact-footnote {
  margin-top: 32px;
  padding: 16px 18px;
  border: 1.5px dashed var(--text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.75;
  max-width: 760px;
}
body[data-mode="warhol"] .contact-footnote {
  border: 2px dashed var(--text);
  background: var(--bg);
  color: var(--text);
  box-shadow: 6px 6px 0 var(--text);
}
body[data-mode="warhol"] .contact-footnote .dict-ref {
  background: linear-gradient(to top,
    var(--accent-3) 0,
    var(--accent-3) 38%,
    transparent 38%);
  padding: 0 2px;
  color: var(--text);
}
.contact-socials { display: flex; gap: 22px; flex-wrap: wrap; }
.contact-socials a {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text);
}
.contact-socials a:hover { color: var(--accent); }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--text);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.foot-left { justify-self: start; }
.foot-socials { justify-self: center; display: flex; gap: 18px; }
.foot-right { justify-self: end; }
.foot-email {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 50%, transparent);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.foot-email:hover { color: var(--text); border-bottom-color: var(--text); }
body[data-mode="warhol"] .foot-email { color: var(--accent-3); border-bottom-color: var(--accent-3); }
body[data-mode="warhol"] .foot-email:hover { color: var(--bg); border-bottom-color: var(--bg); }
body[data-mode="warhol"] .foot-socials a { color: var(--bg); }
body[data-mode="warhol"] .foot-socials a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   MODE: WARHOL POP
   Pop-art screen-print: 4-up portrait, hot colors,
   condensed display, marquee, fat borders, posterized vibe.
   ═══════════════════════════════════════════════════════════ */
body[data-mode="warhol"] {
  --bg: #fff8e7;
  --text: #0a0a0a;
  --muted: #5a544a;
  --line: #0a0a0a;
  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-display-alt: "Archivo Black", sans-serif;
  --font-serif: "Bodoni Moda", "Fraunces", serif;
  --type-h1-min: 72px; --type-h1-max: 196px;
  --type-h2-min: 52px; --type-h2-max: 96px;
  /* halftone-dot bg used as decoration in places */
  --halftone: radial-gradient(circle at center, var(--text) 1.4px, transparent 1.6px) 0 0 / 14px 14px;
  --halftone-light: radial-gradient(circle at center, var(--text) 1.2px, transparent 1.4px) 0 0 / 12px 12px;
}
body[data-mode="warhol"] .marquee { display: block; background: var(--text); color: var(--bg); padding: 12px 0; border-bottom: 4px solid var(--text); }
body[data-mode="warhol"] .marquee.marquee-bottom { background: var(--accent); color: var(--text); border-top: 4px solid var(--text); border-bottom: 0; }
body[data-mode="warhol"] .marquee-track span { font-family: var(--font-display); font-size: 32px; }

body[data-mode="warhol"] .nav-inner { padding: 14px 0; }
body[data-mode="warhol"] .logo { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.02em; }
body[data-mode="warhol"] .nav-links a { font-weight: 600; color: var(--text); }
body[data-mode="warhol"] .nav-links a:hover { color: var(--accent); }

body[data-mode="warhol"] .hero-h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
body[data-mode="warhol"] .hero-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.02em;
}
body[data-mode="warhol"] .hero-eyebrow {
  display: inline-block; background: var(--accent-3);
  padding: 5px 12px; border: 2px solid var(--text);
  color: var(--text); font-weight: 700;
}
body[data-mode="warhol"] .cred-tag { background: var(--text); color: var(--bg); border-color: var(--text); }
body[data-mode="warhol"] .cred-tag:nth-child(2) { background: var(--accent); color: var(--text); }
body[data-mode="warhol"] .warhol-grid { display: none; }
body[data-mode="warhol"] .passport-frame {
  display: block;
  border: 3px solid var(--text);
  background: var(--accent-4);  /* mint wash behind portrait */
  padding: 14px 14px 22px;
  transform: rotate(-1.2deg);
  box-shadow: 14px 14px 0 var(--accent);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body[data-mode="warhol"] .passport-frame:hover {
  transform: rotate(0deg);
  box-shadow: 8px 8px 0 var(--accent);
}
body[data-mode="warhol"] .passport-frame img {
  filter: contrast(1.85) saturate(0) brightness(1.15);
  mix-blend-mode: multiply;
}
body[data-mode="warhol"] .passport-stamp {
  background: var(--accent-3); color: var(--text);
  border: 1.5px solid var(--text); padding: 2px 6px;
  font-weight: 700;
}
body[data-mode="warhol"] .name-card {
  border: 3px solid var(--text);
  background: var(--bg);
  box-shadow: 8px 8px 0 var(--accent);
}
body[data-mode="warhol"] .card-tag { display: inline-block; background: var(--accent-3); border: 2px solid var(--text); color: var(--text); font-weight: 700; }
body[data-mode="warhol"] .dict-row { border-top-color: var(--text); border-top-style: dashed; }
body[data-mode="warhol"] .dict-word { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em; }
body[data-mode="warhol"] .passport-caption { color: var(--text); font-weight: 700; }
body[data-mode="warhol"] .name-footnote { padding: 16px 18px; border: 3px solid var(--text); background: var(--bg); box-shadow: 8px 8px 0 var(--accent-2); }
/* Exhibits card — matches Warhol pop treatment */
body[data-mode="warhol"] .exhibits-card {
  border: 3px solid var(--text);
  background: var(--bg);
  box-shadow: 8px 8px 0 var(--accent-3);
  padding: 26px 18px 18px;
}
body[data-mode="warhol"] .exhibits-card .card-tag {
  display: inline-block;
  background: var(--accent);
  border: 2px solid var(--text);
  color: var(--text);
  font-weight: 700;
}
body[data-mode="warhol"] .exhibit-thumb {
  border: 2px dashed var(--text);
  color: var(--text);
  font-weight: 700;
  background: #fff;
}
body[data-mode="warhol"] .exhibit-title { font-weight: 700; }
body[data-mode="warhol"] .name-footnote .dict-ref {
  background: linear-gradient(to top,
    var(--accent-3) 0,
    var(--accent-3) 38%,
    transparent 38%);
  padding: 0 2px;
  color: var(--text);
}

body[data-mode="warhol"] .section-label { border-bottom: 3px solid var(--text); color: var(--text); }
body[data-mode="warhol"] .section-side { background: var(--text); color: var(--bg); padding: 3px 8px; font-style: normal; }
body[data-mode="warhol"] .section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.95;
}
body[data-mode="warhol"] .section-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 700; text-transform: none; color: var(--accent);
}

body[data-mode="warhol"] .press { border-top: 4px solid var(--text); border-bottom: 4px solid var(--text); background: var(--accent-3); }
body[data-mode="warhol"] .clipping { border: 3px solid var(--text); box-shadow: 6px 6px 0 var(--text); }
body[data-mode="warhol"] .clip-tape { background: var(--accent); border-color: var(--text); }

body[data-mode="warhol"] .about-photo-frame {
  border: 3px solid var(--text);
  background: var(--about-wash, var(--accent));
  box-shadow: 12px 12px 0 var(--about-shadow, var(--accent-3));
  position: relative;
  overflow: hidden;
}
/* Treatment 1: WASH (current Warhol screenprint) */
body[data-mode="warhol"][data-about-photo="wash"] .about-photo-frame img {
  filter: contrast(1.85) saturate(0) brightness(1.15);
  mix-blend-mode: multiply;
}
/* Treatment 2: BW — plain high-contrast B&W, no color blend */
body[data-mode="warhol"][data-about-photo="bw"] .about-photo-frame {
  background: #fff;
}
body[data-mode="warhol"][data-about-photo="bw"] .about-photo-frame img {
  filter: contrast(1.25) saturate(0);
  mix-blend-mode: normal;
}
/* Treatment 3: HALFTONE — B&W base + colored dot overlay */
body[data-mode="warhol"][data-about-photo="halftone"] .about-photo-frame {
  background: #fff;
}
body[data-mode="warhol"][data-about-photo="halftone"] .about-photo-frame img {
  filter: contrast(1.35) saturate(0) brightness(1.02);
  mix-blend-mode: normal;
}
body[data-mode="warhol"][data-about-photo="halftone"] .about-photo-frame::after {
  content: "";
  position: absolute;
  inset: 14px 14px 18px;
  background: radial-gradient(circle at center, var(--about-wash, var(--accent)) 1.6px, transparent 1.8px) 0 0 / 5px 5px;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.85;
}
/* Treatment 4: PLAIN — unchanged photo, just the colored frame */
body[data-mode="warhol"][data-about-photo="plain"] .about-photo-frame {
  background: #fff;
}
body[data-mode="warhol"][data-about-photo="plain"] .about-photo-frame img {
  filter: none;
  mix-blend-mode: normal;
}

body[data-mode="warhol"] .cred { border: 3px solid var(--text); }
body[data-mode="warhol"] .cred-isb { background: var(--accent-2); color: var(--text); box-shadow: 8px 8px 0 var(--text); }
body[data-mode="warhol"] .cred-gt  { background: var(--accent-3); color: var(--text); box-shadow: 8px 8px 0 var(--text); }

/* WARHOL · Hero pointer line — pointer sentence is now the OPENER of the
   kid-story (lives inside the first <p> as an inline <span>). All the
   editorial-deck chrome (border-rule, accent tick, mono-caps, shadow)
   has been dropped; the .is-pointing jab is gone too since the portrait
   wink is the meaningful click feedback. */

/* When .hero-pointer sits inside the kid-story as an inline <span>, it
   inherits the paragraph's body-copy styling — no overrides needed. The
   click-feedback animation hook stays on .hero-pointer.is-pointing for
   the wink jab. */

/* === Hero pointer stamp treatment overrides (mode-agnostic) === */

/* NEW YORKER — italic serif deck with a short yellow Warhol accent rule */
body[data-pointer-stamp="newyorker"] .hero-pointer {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  box-shadow: none;
  text-decoration: none;
  padding: 18px 0 0;
  margin: 24px 0 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.005em;
  line-height: 1.55;
  transform: none;
  position: relative;
}
body[data-pointer-stamp="newyorker"] .hero-pointer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--text);
}
body[data-pointer-stamp="newyorker"] .hero-pointer::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--accent-3);   /* Warhol hint: yellow accent on the rule */
}
body[data-pointer-stamp="newyorker"] .hero-pointer:hover {
  transform: none;
  box-shadow: none;
}
body[data-pointer-stamp="newyorker"] .hero-pointer-arrow {
  color: var(--accent);          /* Warhol hint: hot-pink manicule */
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 22px;
}
body[data-pointer-stamp="newyorker"] .hero-pointer.is-pointing {
  animation: none;
}

/* HBR — clean sans-serif with a thick hot-pink left rule */
body[data-pointer-stamp="hbr"] .hero-pointer {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-left: 4px solid var(--accent);   /* Warhol hint: hot pink rule */
  box-shadow: none;
  text-decoration: none;
  padding: 4px 0 4px 16px;
  margin: 24px 0 32px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.55;
  transform: none;
  transition: border-color 220ms ease-out, border-left-width 220ms ease-out;
}
body[data-pointer-stamp="hbr"] .hero-pointer:hover {
  transform: none;
  box-shadow: none;
  border-left-width: 6px;
  border-left-color: var(--accent-3);     /* hover swap: yellow Warhol accent */
}
body[data-pointer-stamp="hbr"] .hero-pointer-arrow {
  color: var(--accent);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 18px;
}
body[data-pointer-stamp="hbr"] .hero-pointer.is-pointing {
  animation: none;
}

/* WARHOL · WORK section */
body[data-mode="warhol"] .work-now-stamp {
  border: 2px solid var(--text);
  font-weight: 700;
  transform: rotate(-1deg);
  margin-bottom: -2px;
  margin-left: 8px;
}
body[data-mode="warhol"] .work-now-card {
  border: 2px solid var(--text);
  box-shadow: 8px 8px 0 var(--text);
}
body[data-mode="warhol"] .work-now-role {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 48px;
  letter-spacing: -0.02em;
}
body[data-mode="warhol"] .work-now-list li::before { color: var(--accent); }

body[data-mode="warhol"] .work-logo {
  background: var(--bg);
  border: 2px dashed var(--text);
  color: var(--text);
}

/* Stats — each in a different accent for pop-art rhythm */
body[data-mode="warhol"] .stat {
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
}
body[data-mode="warhol"] .stat-1 { background: var(--accent); }
body[data-mode="warhol"] .stat-2 { background: var(--accent-2); }
body[data-mode="warhol"] .stat-3 { background: var(--accent-3); }
body[data-mode="warhol"] .stat-4 { background: var(--accent-4); }
body[data-mode="warhol"] .stat-num {
  font-family: var(--font-display);
  color: var(--text);
}
body[data-mode="warhol"] .stat-label {
  color: var(--text);
  font-weight: 700;
}

/* Past life — sharper timeline with thicker rules */
body[data-mode="warhol"] .work-past-head {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 32px;
  border-bottom: 3px solid var(--text);
}
body[data-mode="warhol"] .work-role { border-top: 2px solid var(--text); }
body[data-mode="warhol"] .work-role:last-child { border-bottom: 2px solid var(--text); }
body[data-mode="warhol"] .work-role-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 38px;
}
body[data-mode="warhol"] .cred-stamp-fallback { background: var(--text); color: var(--bg); padding: 4px 8px; }
body[data-mode="warhol"] .cred-school { font-family: var(--font-display); text-transform: uppercase; font-size: 42px; line-height: 0.95; }
body[data-mode="warhol"] .cred-divider { background: var(--text); height: 2px; }
body[data-mode="warhol"] .cred-highlight strong { color: var(--text); }

body[data-mode="warhol"] .off-grid > div { border: 3px solid var(--text); overflow: hidden; }
body[data-mode="warhol"] .off-tag { background: var(--accent); color: var(--text); border: 2px solid var(--text); font-weight: 700; }
body[data-mode="warhol"] .off-caption h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; }

body[data-mode="warhol"] .folder-1 { --folder-color: #ff9ec7; --folder-color-dark: #d65a96; }
body[data-mode="warhol"] .folder-2 { --folder-color: #ffd24a; --folder-color-dark: #c69100; }
body[data-mode="warhol"] .folder-3 { --folder-color: #6de0a3; --folder-color-dark: #2eaa72; }
body[data-mode="warhol"] .folder::before { border-width: 1px; }
body[data-mode="warhol"] .folder::after { border-width: 1px; }
body[data-mode="warhol"] .peek { border: 3px solid var(--text); box-shadow: 4px 4px 0 rgba(0,0,0,0.18); }
body[data-mode="warhol"] .peek-card .ph-mark { font-family: var(--font-display); font-size: 80px; color: var(--text); }
body[data-mode="warhol"] .creative-meta h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 30px;
  text-transform: none;
  letter-spacing: -0.022em;
}

body[data-mode="warhol"] .note-item:nth-child(odd):hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
body[data-mode="warhol"] .note-item:nth-child(even):hover { background: color-mix(in srgb, var(--accent-3) 25%, transparent); }
body[data-mode="warhol"] .note-title { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; line-height: 1.05; letter-spacing: 0.005em; }
body[data-mode="warhol"] .note-num { background: var(--text); color: var(--bg); padding: 3px 6px; font-weight: 700; }

body[data-mode="warhol"] .contact-block { background: var(--accent); color: var(--text); border-top: 4px solid var(--text); border-bottom: 4px solid var(--text); position: relative; overflow: hidden; }
body[data-mode="warhol"] .contact-block::before {
  content: ""; position: absolute; inset: 0;
  background: var(--halftone); opacity: 0.08;
  pointer-events: none;
}
body[data-mode="warhol"] .contact-line { font-family: var(--font-display); text-transform: uppercase; line-height: 0.95; }
body[data-mode="warhol"] .contact-line em { font-family: var(--font-serif); font-style: italic; font-weight: 700; text-transform: none; }
body[data-mode="warhol"] .contact-email { color: var(--text); border-bottom-color: var(--text); }
body[data-mode="warhol"] .contact-email:hover { color: var(--bg); border-bottom-color: var(--bg); }
body[data-mode="warhol"] .contact-socials a { color: var(--text); font-weight: 700; }

/* Warhol topic chips on hot-pink contact section */
body[data-mode="warhol"] .topic-label { color: var(--text); }
body[data-mode="warhol"] .topic {
  background: var(--accent-3);
  border: 2px solid var(--text);
  font-weight: 600;
}
body[data-mode="warhol"] .topic:nth-child(odd) { background: var(--bg); }
body[data-mode="warhol"] .contact-foot { border-top-color: var(--text); border-top-width: 2px; }

body[data-mode="warhol"] footer { background: var(--text); color: var(--bg); border-top: 0; }

/* ─── WARHOL: extra poster polish ─────────────────────────── */
body[data-mode="warhol"] .hero-h1 {
  -webkit-text-stroke: 0;
}

/* "Accent word" = yellow rotated box, site-wide. One system for every
   italicized hook so it reads as an intentional stamp — the homepage hero,
   section titles, contact line, AND every subpage title (.stack-title,
   .consult-title, .page-title, .post-title) all carry the same treatment.
   Specificity (body[data-mode="warhol"] .X em ≫ .X em) beats the subpages'
   inline pink-italic rules without needing to edit each subpage file. */
body[data-mode="warhol"] .hero-h1 em,
body[data-mode="warhol"] .section-title em,
body[data-mode="warhol"] .contact-line em,
body[data-mode="warhol"] .stack-title em,
body[data-mode="warhol"] .stack-section-title em,
body[data-mode="warhol"] .consult-title em,
body[data-mode="warhol"] .page-title em,
body[data-mode="warhol"] .post-title em,
body[data-mode="warhol"] .post-body h2 em {
  background: var(--accent-3);
  padding: 0 12px;
  margin: 0 -4px;
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 var(--text);
  border: 2px solid var(--text);
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent);
  font-weight: 700;
  text-transform: none;
}
/* Per-instance tilt variation so they don't all lean the same way */
body[data-mode="warhol"] #about       .section-title em { transform: rotate(-2deg); }
body[data-mode="warhol"] #credentials .section-title em { transform: rotate(1deg); box-shadow: -3px 3px 0 var(--text); }
body[data-mode="warhol"] #off         .section-title em { transform: rotate(-1.5deg); }
body[data-mode="warhol"] #creative    .section-title em { transform: rotate(2deg);  box-shadow: -3px 3px 0 var(--text); }
body[data-mode="warhol"] .contact-line em { transform: rotate(-1deg); padding: 2px 12px; }
body[data-mode="warhol"] .consult-title em { transform: rotate(2deg); box-shadow: -3px 3px 0 var(--text); }
body[data-mode="warhol"] .stack-title em { transform: rotate(-1.5deg); }
body[data-mode="warhol"] .page-title em { transform: rotate(1.5deg); box-shadow: -3px 3px 0 var(--text); }
body[data-mode="warhol"] .post-title em { transform: rotate(-2deg); }
body[data-mode="warhol"] .post-body h2 em { transform: rotate(-1deg); padding: 0 8px; box-shadow: 3px 3px 0 var(--text); }

/* Wry stamp decorations injected via pseudo-elements */
body[data-mode="warhol"] .hero-text {
  position: relative;
}

body[data-mode="warhol"] .hero-photo {
  position: relative;
}
body[data-mode="warhol"] .hero-photo::before {
  content: "Exhibit A \00B7 The Kid";
  position: absolute;
  top: -14px; left: -14px; z-index: 5;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.1em;
  background: var(--text); color: var(--bg);
  padding: 6px 12px;
  transform: rotate(-4deg);
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--accent);
}

/* Halftone dot strip on press section */
body[data-mode="warhol"] .press::before,
body[data-mode="warhol"] .press::after {
  content: "";
  display: block;
  height: 10px;
  background: var(--halftone-light);
  opacity: 0.5;
  margin: -56px 0 32px;
}
body[data-mode="warhol"] .press::after { margin: 32px 0 -56px; }

/* Color-cycle the note tags */
body[data-mode="warhol"] .note-item:nth-child(7n+1) .note-tag { background: var(--accent);   color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n+2) .note-tag { background: var(--accent-2); color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n+3) .note-tag { background: var(--accent-3); color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n+4) .note-tag { background: var(--accent-4); color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n+5) .note-tag { background: #ff5a36;        color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n+6) .note-tag { background: #b557ff;        color: var(--text); }
body[data-mode="warhol"] .note-item:nth-child(7n)   .note-tag { background: var(--text);    color: var(--bg); }
body[data-mode="warhol"] .note-tag {
  padding: 4px 10px;
  border: 2px solid var(--text);
  font-weight: 700;
}

/* Off-grid tags: slightly bigger + colored per cell */
body[data-mode="warhol"] .off-1 .off-tag { background: var(--accent);   color: var(--text); }
body[data-mode="warhol"] .off-2 .off-tag { background: var(--accent-3); color: var(--text); }
body[data-mode="warhol"] .off-3 .off-tag { background: var(--accent-2); color: var(--text); }
body[data-mode="warhol"] .off-4 .off-tag { background: var(--accent-4); color: var(--text); }
body[data-mode="warhol"] .off-5 .off-tag { background: var(--text);     color: var(--bg); }

/* All-notes link as a poster button */
body[data-mode="warhol"] .all-notes {
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border: 2px solid var(--text);
  box-shadow: 5px 5px 0 var(--accent);
  margin-top: 36px;
}
body[data-mode="warhol"] .all-notes:hover {
  box-shadow: 3px 3px 0 var(--accent);
  transform: translate(2px, 2px);
}

/* Big poster CTA on the consult line */
body[data-mode="warhol"] .contact-consult-line a {
  background: var(--text); color: var(--accent);
  padding: 3px 8px; border-bottom: 0;
  font-weight: 700;
}
body[data-mode="warhol"] .contact-consult-line a:hover {
  background: var(--bg); color: var(--text);
}

/* Diagonal stripe band before footer */
body[data-mode="warhol"] footer {
  position: relative;
  background: var(--text);
}
body[data-mode="warhol"] footer::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--text) 0 14px,
    var(--accent-3) 14px 28px
  );
}

/* Inline link gets a hot highlight on hover */
body[data-mode="warhol"] .inline-link:hover {
  background: var(--accent);
  color: var(--text);
  border-bottom-color: var(--text);
  padding: 1px 4px;
  margin: -1px -4px;
}

/* ═══ WARHOL FX TOGGLES (Tweaks panel) ══════════════════════ */

/* MARILYN — swap single passport for the 4-up portrait grid */
body[data-mode="warhol"][data-fx-marilyn="true"] .warhol-grid {
  display: grid;
  box-shadow: 14px 14px 0 var(--text);
}
body[data-mode="warhol"][data-fx-marilyn="true"] .passport-frame { display: none; }

/* HALFTONE — dot pattern overlay on photo frames */
body[data-mode="warhol"][data-fx-halftone="true"] .passport-frame,
body[data-mode="warhol"][data-fx-halftone="true"] .about-photo-frame,
body[data-mode="warhol"][data-fx-halftone="true"] .off-grid > div,
body[data-mode="warhol"][data-fx-halftone="true"] .clipping {
  position: relative;
}
body[data-mode="warhol"][data-fx-halftone="true"] .passport-frame::before,
body[data-mode="warhol"][data-fx-halftone="true"] .about-photo-frame::before,
body[data-mode="warhol"][data-fx-halftone="true"] .off-grid > div::before,
body[data-mode="warhol"][data-fx-halftone="true"] .clipping::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10,10,10,0.65) 1.2px, transparent 1.4px) 0 0 / 6px 6px;
  pointer-events: none;
  z-index: 3;
}
/* Keep stamps/tags visible above halftone */
body[data-mode="warhol"][data-fx-halftone="true"] .passport-stamp,
body[data-mode="warhol"][data-fx-halftone="true"] .off-tag {
  z-index: 4;
}

/* RGB MISPRINT — chromatic offset on display headlines */
body[data-mode="warhol"][data-fx-misprint="true"] .hero-h1,
body[data-mode="warhol"][data-fx-misprint="true"] .section-title,
body[data-mode="warhol"][data-fx-misprint="true"] .contact-line,
body[data-mode="warhol"][data-fx-misprint="true"] .cred-school,
body[data-mode="warhol"][data-fx-misprint="true"] .note-title,
body[data-mode="warhol"][data-fx-misprint="true"] .creative-meta h4 {
  text-shadow:
    -3px 0 0 var(--accent),
    3px 0 0 var(--accent-2);
}
body[data-mode="warhol"][data-fx-misprint="true"] .contact-email {
  text-shadow:
    -2px 0 0 var(--accent-3),
    2px 0 0 var(--accent-4);
}

/* ─── CONTACT EFFECTS ───────────────────────────────── */

/* Email wrap holds the live link and 3 ghost copies for stacking */
.contact-email-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  isolation: isolate;
}
.contact-email-ghost {
  display: none;
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 44px);
  letter-spacing: -0.01em;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  padding-bottom: 4px;
}

/* SOUP-CAN EMAIL — 4 stacked copies, each tinted */
body[data-mode="warhol"][data-fx-stack="true"] .contact-email-ghost { display: block; }
body[data-mode="warhol"][data-fx-stack="true"] .contact-email-ghost.g1 {
  transform: translate(6px, 6px);  color: var(--accent-3); z-index: -1;
}
body[data-mode="warhol"][data-fx-stack="true"] .contact-email-ghost.g2 {
  transform: translate(14px, 14px); color: var(--accent-2); z-index: -2;
}
body[data-mode="warhol"][data-fx-stack="true"] .contact-email-ghost.g3 {
  transform: translate(22px, 22px); color: var(--text); z-index: -3;
}
body[data-mode="warhol"][data-fx-stack="true"] .contact-email-wrap {
  margin-bottom: 56px;
  margin-right: 24px;
}

/* APPROVAL STAMP — circular rubber stamp tucked in the corner */
.contact-stamp {
  display: none;
  position: absolute;
  top: 40px;
  right: 56px;
  width: 180px; height: 180px;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 5;
}
.contact-stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp-ring {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.18em;
  fill: var(--text);
}
.stamp-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--accent-3);
  background: var(--text);
  padding: 6px 14px;
  border: 2.5px solid var(--text);
  white-space: nowrap;
}
body[data-mode="warhol"][data-fx-stamp="true"] .contact-stamp { display: block; }

/* HALFTONE FLOOD — intensify the dot overlay on the contact bg */
body[data-mode="warhol"][data-fx-flood="true"] .contact-block::before {
  opacity: 0.22 !important;
  background-size: 14px 14px !important;
}

/* ─── CONTACT FORM (sentence-form) ─────────────────────── */
.contact-form {
  margin-top: 28px;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}
.form-prose {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.85;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 36px;
}
.form-text { font-weight: 400; }
.form-blank {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 2.5px solid var(--text);
  padding: 2px 6px 4px;
  margin: 0 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.005em;
  outline: none;
  min-width: 0;
  width: auto;
  vertical-align: baseline;
}
.form-blank:focus {
  border-bottom-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.form-blank::placeholder {
  color: color-mix(in srgb, var(--text) 38%, transparent);
  font-style: italic;
  font-weight: 400;
}
.form-blank--name  { width: 14ch; min-width: 150px; }
.form-blank--org   { width: 20ch; min-width: 200px; }
.form-blank--email { width: 24ch; min-width: 240px; }

.form-select-wrap {
  display: inline-block;
  position: relative;
  margin: 0 4px;
}
.form-blank--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  margin: 0;
  cursor: pointer;
  background-image: none;
  width: auto;
}
.form-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  pointer-events: none;
  font-size: 0.7em;
}

.form-gist-row {
  margin-bottom: 28px;
}
.form-gist-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.form-gist {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  padding: 16px 18px;
  border: 2.5px solid var(--text);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.form-gist::placeholder {
  color: color-mix(in srgb, var(--text) 40%, transparent);
  font-style: italic;
}
.form-gist:focus {
  background: #fff;
}

.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.form-send {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.02em;
  background: var(--text); color: var(--bg);
  border: 2.5px solid var(--text);
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.form-send:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--text); }
.form-send:active { transform: translate(0, 0); box-shadow: none; }

/* ─── WARHOL form treatment ──────────────────────────── */
body[data-mode="warhol"] .form-prose { color: var(--text); }
body[data-mode="warhol"] .form-blank {
  border-bottom-color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
}
body[data-mode="warhol"] .form-blank:focus {
  background: var(--bg);
  border-bottom-color: var(--accent);
}
body[data-mode="warhol"] .form-blank::placeholder {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
body[data-mode="warhol"] .form-gist {
  background: var(--bg);
  border: 3px solid var(--text);
  box-shadow: 8px 8px 0 var(--text);
}
body[data-mode="warhol"] .form-gist::placeholder {
  font-family: var(--font-serif);
  font-style: italic;
}
body[data-mode="warhol"] .form-gist:focus {
  box-shadow: 4px 4px 0 var(--text);
}
body[data-mode="warhol"] .form-send {
  background: var(--text);
  color: var(--bg);
  border: 3px solid var(--text);
  box-shadow: 6px 6px 0 var(--accent-3);
  text-transform: uppercase;
  font-weight: 400;
}
body[data-mode="warhol"] .form-send:hover {
  box-shadow: 3px 3px 0 var(--accent-3);
  transform: translate(3px, 3px);
}
body[data-mode="warhol"] .form-gist-label { color: var(--text); }
body[data-mode="warhol"] .form-select-wrap::after { color: var(--text); }

/* ─── WARHOL contact — white/black text mix + textured textarea ───── */
body[data-mode="warhol"] .section-label--contact {
  color: var(--bg);
  border-bottom-color: var(--bg);
}
body[data-mode="warhol"] .section-label--contact .section-side {
  background: var(--bg);
  color: var(--text);
}
body[data-mode="warhol"] .form-gist-label { color: var(--bg); }
body[data-mode="warhol"] .contact-consult-line { color: var(--bg); }
body[data-mode="warhol"] .form-blank::placeholder {
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
/* Textured "white" box — watercolor wash of pop colors */
body[data-mode="warhol"] .form-gist {
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%,   rgba(255,45,135,0.22), transparent 70%),
    radial-gradient(ellipse 65% 50% at 82% 100%, rgba(0,179,255,0.18),  transparent 70%),
    radial-gradient(ellipse 50% 40% at 55% 45%,  rgba(255,199,0,0.16),  transparent 65%),
    var(--bg);
}
body[data-mode="warhol"] .form-gist:focus {
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%,   rgba(255,45,135,0.30), transparent 70%),
    radial-gradient(ellipse 65% 50% at 82% 100%, rgba(0,179,255,0.24),  transparent 70%),
    radial-gradient(ellipse 50% 40% at 55% 45%,  rgba(255,199,0,0.22),  transparent 65%),
    #fff;
}
body[data-mode="warhol"] .form-gist::placeholder {
  color: color-mix(in srgb, var(--text) 45%, transparent);
  font-family: var(--font-serif);
  font-style: italic;
}

/* ─── FOOTER with 3 columns: copyright+email · socials · motto ───────── */

/* ═══════════════════════════════════════════════════════════
   MODE: ISSUE №01 — Fashion magazine cover
   Massive serif masthead, sells column, single big portrait,
   restrained colors, refined editorial.
   ═══════════════════════════════════════════════════════════ */
body[data-mode="issue"] {
  --bg: #f1ebdd;
  --text: #14110b;
  --muted: #6a5f4d;
  --line: #c8bea7;
  --accent: #c63d2f;
  --font-display: "Bodoni Moda", "Fraunces", serif;
  --font-serif: "Bodoni Moda", serif;
  --font-body: "Inter", sans-serif;
  --type-h1-min: 56px; --type-h1-max: 100px;
  --type-h2-min: 40px; --type-h2-max: 72px;
}
body[data-mode="issue"] .marquee { display: none; }
body[data-mode="issue"] .nav { border-bottom: 1px solid var(--text); }
body[data-mode="issue"] .issue-meta { display: flex; }
body[data-mode="issue"] .logo { font-family: var(--font-serif); font-weight: 700; font-size: 22px; }
body[data-mode="issue"] .nav-links a { font-family: var(--font-mono); letter-spacing: 0.14em; }

body[data-mode="issue"] .hero-wrap { padding-top: 12px; }
body[data-mode="issue"] .masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end; gap: 18px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--text);
  margin-bottom: 36px;
}
body[data-mode="issue"] .masthead .mast-word {
  font-family: "Bodoni Moda", serif;
  font-weight: 900;
  text-align: center;
  text-transform: none;
  letter-spacing: -0.04em;
}
body[data-mode="issue"] .masthead .mast-side { align-self: end; padding-bottom: 14px; }

body[data-mode="issue"] .hero { grid-template-columns: 1fr 1fr; }
body[data-mode="issue"] .hero-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  line-height: 0.98; letter-spacing: -0.02em;
}
body[data-mode="issue"] .hero-h1 em {
  font-style: italic; color: var(--accent); font-weight: 500;
}
body[data-mode="issue"] .hero-eyebrow { color: var(--muted); }
body[data-mode="issue"] .cred-tag { border-color: var(--text); }

body[data-mode="issue"] .warhol-grid { display: none; }
body[data-mode="issue"] .passport-frame { display: block; transform: rotate(-1deg); }
body[data-mode="issue"] .name-card { border-color: var(--text); }
body[data-mode="issue"] .card-tag { display: inline-block; }

body[data-mode="issue"] .cover-sells {
  display: grid; gap: 8px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--text);
  grid-template-columns: repeat(2, 1fr); gap: 8px 48px;
}
body[data-mode="issue"] .sell {
  font-family: var(--font-serif);
  font-style: italic; font-size: 18px;
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
body[data-mode="issue"] .sell-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--accent); font-style: normal;
}

body[data-mode="issue"] .section-label { border-bottom: 1px solid var(--text); }
body[data-mode="issue"] .section-title {
  font-family: var(--font-serif); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.0;
}
body[data-mode="issue"] .section-title em {
  font-style: italic; color: var(--accent);
}

body[data-mode="issue"] .press { background: var(--bg); border-color: var(--text); }
body[data-mode="issue"] .clipping { transform: rotate(0); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
body[data-mode="issue"] .clipping:nth-child(1),
body[data-mode="issue"] .clipping:nth-child(2),
body[data-mode="issue"] .clipping:nth-child(3) { transform: none; }
body[data-mode="issue"] .clip-tape { display: none; }

body[data-mode="issue"] .about-photo-frame { transform: rotate(-0.6deg); }
body[data-mode="issue"] .cred { border-color: var(--text); background: transparent; }
body[data-mode="issue"] .cred-school { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 40px; }

body[data-mode="issue"] .off-caption h4 { font-family: var(--font-serif); font-style: italic; }
body[data-mode="issue"] .creative-meta h4 { font-family: var(--font-serif); font-style: italic; }
body[data-mode="issue"] .note-title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.2; }
body[data-mode="issue"] .contact-line { font-family: var(--font-serif); font-style: italic; }
body[data-mode="issue"] .contact-email { font-family: var(--font-serif); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   MODE: MARGIELA — Avant-garde minimal
   Bone background, ultra-thin display serif, garment-tag
   labels, B&W portrait, heavy whitespace, asymmetric grid.
   ═══════════════════════════════════════════════════════════ */
body[data-mode="margiela"] {
  --bg: #ecebe5;
  --text: #1d1d1a;
  --muted: #7a786f;
  --line: #cdccc4;
  --accent: #1d1d1a;
  --font-display: "Italiana", "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;
  --container-pad: 56px;
  --section-pad-y: 120px;
  --type-h1-min: 56px; --type-h1-max: 168px;
  --type-h2-min: 42px; --type-h2-max: 96px;
}
body[data-mode="margiela"] { font-weight: 300; }
body[data-mode="margiela"] .marquee { display: none; }
body[data-mode="margiela"] .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-mode="margiela"] .nav.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
body[data-mode="margiela"] .logo { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: 0.01em; }
body[data-mode="margiela"] .nav-links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; }

body[data-mode="margiela"] .hero-wrap { padding-top: 24px; padding-bottom: 160px; }
body[data-mode="margiela"] .masthead { display: grid; grid-template-columns: auto 1fr auto; align-items: end; padding-bottom: 14px; margin-bottom: 80px; }
body[data-mode="margiela"] .masthead .mast-word {
  font-family: var(--font-display);
  font-weight: 400; font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.85;
}
body[data-mode="margiela"] .masthead .mast-side { padding-bottom: 14px; }

body[data-mode="margiela"] .hero { grid-template-columns: 1fr 1fr; gap: 96px; }
body[data-mode="margiela"] .hero-eyebrow {
  display: inline-block; padding: 4px 8px;
  border: 1px solid var(--text); color: var(--text);
  background: #fff;
}
body[data-mode="margiela"] .hero-h1 {
  font-family: var(--font-display);
  font-weight: 400; font-size: clamp(56px, 8vw, 132px);
  line-height: 0.98; letter-spacing: -0.005em;
  text-transform: none;
}
body[data-mode="margiela"] .hero-h1 em { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-weight: 300; }
body[data-mode="margiela"] .cred-tag {
  background: #fff; border-color: var(--text);
  border-radius: 0; padding: 6px 10px;
  position: relative;
}
body[data-mode="margiela"] .cred-tag::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--text);
  transform: translateY(-50%);
  display: none;
}

body[data-mode="margiela"] .warhol-grid { display: none; }
body[data-mode="margiela"] .passport-frame {
  display: block;
  background: #fff; padding: 18px;
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
}
body[data-mode="margiela"] .passport-frame img { filter: grayscale(1) contrast(1.05); }
body[data-mode="margiela"] .passport-stamp { font-family: var(--font-mono); font-size: 10px; }

body[data-mode="margiela"] .name-card {
  background: transparent; border: 0; padding: 0;
  margin-top: 32px;
}
body[data-mode="margiela"] .card-tag { display: none; }
body[data-mode="margiela"] .dict-word { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
body[data-mode="margiela"] .dict-row { border-top-color: var(--line); }

body[data-mode="margiela"] .passport-caption { color: var(--muted); }
body[data-mode="margiela"] .name-footnote {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.8;
}

body[data-mode="margiela"] .section-label {
  border-bottom: 0;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em;
  padding-bottom: 0; margin-bottom: 64px;
}
body[data-mode="margiela"] .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.0;
  max-width: 1100px;
}
body[data-mode="margiela"] .section-title em { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-weight: 300; }

body[data-mode="margiela"] .press {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 !important;
}
body[data-mode="margiela"] .press-side { font-style: normal; }
body[data-mode="margiela"] .clipping {
  transform: none; box-shadow: none;
  background: #fff; border: 1px solid var(--line);
  padding: 18px 18px 24px;
}
body[data-mode="margiela"] .clipping:nth-child(1),
body[data-mode="margiela"] .clipping:nth-child(2),
body[data-mode="margiela"] .clipping:nth-child(3) { transform: none; }
body[data-mode="margiela"] .clipping img { filter: grayscale(1) contrast(1.05); }
body[data-mode="margiela"] .clip-tape { display: none; }

body[data-mode="margiela"] .about-grid { gap: 96px; }
body[data-mode="margiela"] .about-photo-frame { border: 1px solid var(--line); background: #fff; }
body[data-mode="margiela"] .about-photo-frame img { filter: grayscale(1); }

body[data-mode="margiela"] .creds-grid { gap: 96px; }
body[data-mode="margiela"] .cred { background: transparent; border: 0; padding: 0; border-top: 1px solid var(--text); padding-top: 28px; }
body[data-mode="margiela"] .cred-school { font-family: var(--font-display); font-weight: 400; font-size: 44px; letter-spacing: -0.005em; }
body[data-mode="margiela"] .cred-stamp { position: static; display: inline-block; margin-bottom: 12px; border: 1px solid var(--text); padding: 4px 8px; background: #fff; }

body[data-mode="margiela"] .off-grid { gap: 24px; }
body[data-mode="margiela"] .off-grid > div { border: 1px solid var(--line); }
body[data-mode="margiela"] .off-grid img { filter: grayscale(1) contrast(1.05); }
body[data-mode="margiela"] .off-tag { background: #fff; color: var(--text); border: 1px solid var(--text); }
body[data-mode="margiela"] .off-caption h4 { font-family: var(--font-display); font-weight: 400; font-size: 32px; }

body[data-mode="margiela"] .creative-frame { border: 1px solid var(--line); background: transparent; }
body[data-mode="margiela"] .creative-meta h4 { font-family: var(--font-display); font-weight: 400; font-size: 32px; }

body[data-mode="margiela"] .note-item { grid-template-columns: 60px 110px 1fr auto; padding: 28px 0; }
body[data-mode="margiela"] .note-item:hover { background: transparent; padding-left: 12px; }
body[data-mode="margiela"] .note-title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }

body[data-mode="margiela"] .contact-line { font-family: var(--font-display); font-weight: 400; }
body[data-mode="margiela"] .contact-email { font-family: var(--font-display); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════
   MODE: TABLOID — Broadsheet newsprint
   Multi-column about, condensed serif, italic flourish,
   newsprint cream, ink black, decorative rule lines.
   ═══════════════════════════════════════════════════════════ */
body[data-mode="tabloid"] {
  --bg: #f0e9d4;
  --text: #1a1812;
  --muted: #6e6452;
  --line: #b5a989;
  --accent: #8b1c1c;
  --font-display: "Old Standard TT", "EB Garamond", serif;
  --font-serif: "EB Garamond", "Old Standard TT", serif;
  --font-body: "EB Garamond", "Old Standard TT", serif;
  --font-mono: "Space Mono", monospace;
  --type-h1-min: 56px; --type-h1-max: 120px;
  --type-h2-min: 42px; --type-h2-max: 72px;
}
body[data-mode="tabloid"] { font-size: 18px; line-height: 1.55; }
body[data-mode="tabloid"] .marquee { display: block; background: var(--text); color: var(--bg); padding: 8px 0; }
body[data-mode="tabloid"] .marquee-track span { font-family: var(--font-serif); font-style: italic; font-size: 18px; text-transform: none; letter-spacing: 0.04em; }

body[data-mode="tabloid"] .nav { border-bottom: 2px solid var(--text); }
body[data-mode="tabloid"] .nav-inner { padding: 12px 0; }
body[data-mode="tabloid"] .logo { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 26px; }
body[data-mode="tabloid"] .issue-meta { display: flex; }
body[data-mode="tabloid"] .issue-meta span { font-family: var(--font-serif); font-style: italic; font-size: 13px; letter-spacing: 0.04em; text-transform: none; }
body[data-mode="tabloid"] .nav-links a { font-family: var(--font-serif); font-style: italic; font-size: 15px; letter-spacing: 0.02em; text-transform: none; color: var(--text); }

body[data-mode="tabloid"] .hero-wrap { padding-top: 20px; padding-bottom: 60px; }
body[data-mode="tabloid"] .masthead {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: end; padding: 12px 0 12px;
  margin-bottom: 24px;
  border-top: 6px double var(--text); border-bottom: 6px double var(--text);
}
body[data-mode="tabloid"] .masthead .mast-word {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(96px, 22vw, 320px);
  letter-spacing: -0.02em; line-height: 0.85;
  text-align: center;
}
body[data-mode="tabloid"] .masthead .mast-side { font-family: var(--font-serif); font-style: italic; font-size: 14px; padding-bottom: 16px; text-transform: none; letter-spacing: 0.02em; }

body[data-mode="tabloid"] .hero { grid-template-columns: 1.4fr 1fr; }
body[data-mode="tabloid"] .hero-h1 {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  line-height: 0.95; letter-spacing: -0.02em;
}
body[data-mode="tabloid"] .hero-h1 em { font-style: italic; color: var(--accent); }
body[data-mode="tabloid"] .hero-eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
body[data-mode="tabloid"] .hero-tagline { font-family: var(--font-serif); font-size: 19px; line-height: 1.6; }
body[data-mode="tabloid"] .hero-tagline::first-letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 4.5em; float: left; line-height: 0.8;
  padding: 6px 10px 0 0; color: var(--accent);
}
body[data-mode="tabloid"] .cred-tag { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.02em; text-transform: none; padding: 6px 12px; border: 1px solid var(--text); background: var(--bg); }

body[data-mode="tabloid"] .warhol-grid { display: none; }
body[data-mode="tabloid"] .passport-frame { display: block; background: var(--bg); border: 1px solid var(--text); transform: rotate(-0.8deg); }
body[data-mode="tabloid"] .passport-frame img { filter: sepia(0.35) contrast(1.05); }
body[data-mode="tabloid"] .name-card { background: var(--bg); border: 1px solid var(--text); }
body[data-mode="tabloid"] .card-tag { display: inline-block; background: var(--bg); font-family: var(--font-serif); font-style: italic; letter-spacing: 0.04em; }
body[data-mode="tabloid"] .dict-word { font-family: var(--font-display); font-style: italic; font-size: 22px; }
body[data-mode="tabloid"] .name-footnote { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.005em; text-transform: none; }

body[data-mode="tabloid"] .section-label { border-bottom: 4px double var(--text); font-family: var(--font-serif); font-style: italic; font-size: 14px; text-transform: none; letter-spacing: 0.02em; color: var(--text); }
body[data-mode="tabloid"] .section-side { font-style: italic; }
body[data-mode="tabloid"] .section-title {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  line-height: 1.0; letter-spacing: -0.02em;
}
body[data-mode="tabloid"] .section-title em { color: var(--accent); }

body[data-mode="tabloid"] .about-prose {
  columns: 2; column-gap: 32px;
  font-family: var(--font-serif);
  font-size: 17px; line-height: 1.65;
  text-align: justify;
  hyphens: auto;
}
body[data-mode="tabloid"] .about-prose p { font-size: 17px; }
body[data-mode="tabloid"] .about-prose p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 4.5em; float: left; line-height: 0.8;
  padding: 6px 10px 0 0; color: var(--accent);
}
body[data-mode="tabloid"] .about-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; }
body[data-mode="tabloid"] .about-photo-frame { transform: rotate(-1deg); background: var(--bg); border: 1px solid var(--text); }
body[data-mode="tabloid"] .about-photo-frame img { filter: sepia(0.35); }

body[data-mode="tabloid"] .press { background: var(--bg); border-top: 6px double var(--text); border-bottom: 6px double var(--text); }
body[data-mode="tabloid"] .clipping { background: #fdfaf0; }
body[data-mode="tabloid"] .clipping img { filter: sepia(0.4) contrast(1.05); }

body[data-mode="tabloid"] .cred { background: var(--bg); border: 1px solid var(--text); }
body[data-mode="tabloid"] .cred-school { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 40px; }
body[data-mode="tabloid"] .cred-program { font-family: var(--font-serif); font-style: italic; font-size: 14px; text-transform: none; letter-spacing: 0.02em; }
body[data-mode="tabloid"] .cred-highlight { font-family: var(--font-serif); font-size: 16px; }

body[data-mode="tabloid"] .off-grid img { filter: sepia(0.3); }
body[data-mode="tabloid"] .off-caption h4 { font-family: var(--font-display); font-style: italic; font-weight: 700; }
body[data-mode="tabloid"] .off-caption p { font-family: var(--font-serif); font-size: 16px; }

body[data-mode="tabloid"] .creative-meta h4 { font-family: var(--font-display); font-style: italic; font-weight: 700; }

body[data-mode="tabloid"] .note-title { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1.15; }
body[data-mode="tabloid"] .note-date { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
body[data-mode="tabloid"] .note-num { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.02em; }
body[data-mode="tabloid"] .note-tag { font-family: var(--font-serif); font-style: italic; font-size: 14px; letter-spacing: 0.02em; text-transform: none; }

body[data-mode="tabloid"] .contact-line { font-family: var(--font-display); font-weight: 700; font-style: italic; }
body[data-mode="tabloid"] .contact-line em { color: var(--accent); }
body[data-mode="tabloid"] .contact-email { font-family: var(--font-display); font-weight: 700; font-style: italic; }

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --container-pad: 22px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { position: static; max-width: 480px; }
  .creds-grid { grid-template-columns: 1fr; gap: 20px; }
  .creative-grid { grid-template-columns: 1fr; gap: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .clippings { grid-template-columns: 1fr; gap: 32px; max-width: 420px; margin: 0 auto; }
  .clipping:nth-child(1), .clipping:nth-child(3) { transform: rotate(-0.6deg); }
  .clipping:nth-child(2) { transform: rotate(0.5deg); }
  .off-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .off-1, .off-2, .off-3, .off-4, .off-5 { grid-column: auto; grid-row: auto; }
  .off-1 { grid-column: span 2; }
  .off-1 .off-photos { aspect-ratio: 4/3; height: auto; }
  .off-caption { grid-template-columns: 1fr; gap: 24px; }
  .issue-meta { display: none !important; }
  body[data-mode="tabloid"] .about-prose { columns: 1; }
  .note-item { grid-template-columns: 50px 100px 1fr; gap: 16px; }
  .note-tag { display: none; }
  .nav-links { gap: 14px; font-size: 11px; }
  .marquee-track span { font-size: 22px !important; }
}

@media (max-width: 560px) {
  :root { --container-pad: 18px; }
  .nav-inner { padding: 14px 0; }
  .nav-links { gap: 12px; }
  .nav-links a:nth-child(3) { display: none; }
  section { padding: 56px 0; }
  .section-title { margin-bottom: 36px; }
  .hero-wrap { padding: 24px 0 40px; }
  body[data-mode="warhol"] .cred-school { font-size: 32px; }
  body[data-mode="margiela"] .cred-school { font-size: 32px; }
  .clipping { padding: 10px 10px 16px; }
  .off-grid { grid-template-columns: 1fr; }
  .off-1 { grid-column: auto; }
  .note-item { grid-template-columns: 90px 1fr; gap: 12px; padding: 16px 0; }
  .note-num { display: none; }
  .contact-block { padding: 48px 0; }
}

/* ─── WORK section — rebuilt: stats strip + collapsible work list ─────── */
#work .wk-lead {
  max-width: 60ch; font-size: 17px; line-height: 1.55;
  color: var(--muted); margin: 0 0 44px;
}
.wk-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin: 0 0 44px;
}
.wk-stat {
  border: 3px solid var(--text); box-shadow: 6px 6px 0 var(--text);
  padding: 20px 18px 18px;
}
.wk-stat:nth-child(1) { background: #ff5a00; }
.wk-stat:nth-child(2) { background: #00b3ff; }
.wk-stat:nth-child(3) { background: #ffc700; }
.wk-stat:nth-child(4) { background: #00d68f; }
.wk-stat-num {
  font-family: var(--font-display); font-size: 38px;
  line-height: 1; letter-spacing: -0.01em;
}
.wk-stat-label {
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.45;
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 8px;
}
.wk-list { border-top: 2px solid var(--text); }
.wk-row {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 6px; cursor: pointer; background: none; border: 0;
  border-bottom: 1px solid var(--line); text-align: left;
  font: inherit; color: inherit; transition: background .12s ease;
}
.wk-row:hover { background: rgba(0,0,0,0.04); }
.wk-tile {
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 2px solid var(--text); background: var(--t, #ccc);
  color: #fff; font-family: var(--font-display); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.wk-co {
  font-family: var(--font-display); font-size: 23px;
  letter-spacing: -0.01em; text-transform: uppercase; flex: 1;
}
.wk-role {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
}
.wk-cur { color: var(--accent); font-weight: 700; }
.wk-chev {
  font-size: 20px; color: var(--muted);
  transition: transform .18s ease; margin-left: 4px;
}
.wk-row[aria-expanded="true"] .wk-chev { transform: rotate(90deg); color: var(--accent); }
.wk-detail { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.wk-detail ul { margin: 0; padding: 6px 0 22px 56px; }
.wk-detail li { font-size: 15px; line-height: 1.55; margin-bottom: 9px; max-width: 74ch; }
body[data-mode="warhol"] #work .section-title em { transform: rotate(-1.5deg); }
@media (max-width: 760px) {
  .wk-stats { grid-template-columns: 1fr 1fr; }
  .wk-co { font-size: 19px; }
  .wk-detail ul { padding-left: 18px; }
}
