/* app.css — global resets, layout, motion primitives, and helpers.
   Design tokens (colors, type, spacing) live in tokens.css.
   Scroll is driven by Lenis (darkroom.engineering/lenis); anchor jumps are
   handed to the Lenis instance from App.jsx, so we no longer set
   `html { scroll-behavior: smooth }` (it would double-smooth). */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--highlight-wash); }
:focus-visible { outline: 1px solid var(--vermilion); outline-offset: 3px; }

/* ============================================================
   PAGE SHELL — collapsible rail + scrolling content column
   ============================================================ */
.site { display: flex; align-items: flex-start; }
.rail {
  flex: 0 0 auto; width: var(--rail-w); position: sticky; top: 0; height: 100vh; z-index: 40;
  transition: width 460ms var(--ease-cinematic); overflow: hidden;
}
.site.nav-collapsed .rail { width: 60px; }
/* let the active "← you're here" note bleed a little past the rail edge */
.site:not(.nav-collapsed) .rail { overflow: clip; overflow-clip-margin: 28px; }
.content { flex: 1 1 auto; min-width: 0; }
.section { padding: var(--section-pad); scroll-margin-top: 58px; }

/* rail collapse toggle — a bare « / » glyph, per the comp's collapsible-rail spec */
.rail-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 4px 6px;
  font-family: var(--font-body); font-size: 17px; line-height: 1;
  color: var(--ink-4); transition: color 220ms var(--ease-soft);
}
.rail-toggle:hover { color: var(--vermilion); }
.rail-ext { color: var(--ink-3); transition: color var(--dur-nudge) var(--ease-nudge); }
.rail-ext:hover { color: var(--vermilion); }
/* nav: a small positional response, not a colour flash */
.rail-link { transition: color var(--dur-nudge) var(--ease-nudge), transform var(--dur-nudge) var(--ease-nudge); }
.rail-link:not(.is-active):hover { color: var(--ink) !important; transform: translateX(3px); }
.rail-sayhi:hover { color: var(--vermilion-2) !important; }

/* mobile top bar + full-screen menu */
.mobilebar {
  display: none; position: sticky; top: 0; z-index: 60;
  align-items: center; justify-content: space-between;
  height: 58px; padding: 0 20px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.mobilemenu {
  position: fixed; inset: 0; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; padding: 22px 24px 30px; overflow-y: auto;
  animation: menufade 260ms var(--ease-soft);
}
@keyframes menufade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   RESPONSIVE COLUMN HELPERS (media queries can't touch inline styles,
   so section grids opt into these classes)
   ============================================================ */
.cols { display: grid; gap: clamp(28px, 4vw, 64px); }
.cols--intro    { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr); align-items: center; }
.cols--mainrail { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); align-items: start; }
.cols--notes    { grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); align-items: start; }
.cols--about    { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); align-items: start; }
.cols--resume   { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); align-items: center; }
.cols--contact  { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.cols--media    { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.cols--colophon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--elsewhere{ grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Work — irregular magazine columns */
.workgrid { column-count: 3; column-gap: clamp(18px, 2vw, 30px); }
.workcard { break-inside: avoid; margin-bottom: clamp(20px, 2.4vw, 34px); }

/* Résumé sheet body — two manual columns of sections, one on small screens */
.resume-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(18px, 2.4vw, 34px); }
@media (max-width: 640px) { .resume-body { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   HORIZONTAL REELS & FILMSTRIPS
   ============================================================ */
.reel, .filmstrip {
  display: flex; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.reel > * { scroll-snap-align: start; }
.filmstrip > * { scroll-snap-align: center; }
.reel::-webkit-scrollbar, .filmstrip::-webkit-scrollbar { height: 4px; }
.reel::-webkit-scrollbar-thumb, .filmstrip::-webkit-scrollbar-thumb { background: var(--rule-strong); }
.reel::-webkit-scrollbar-track, .filmstrip::-webkit-scrollbar-track { background: var(--rule); }
.reel { scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }

/* ============================================================
   FLIPPABLE ARTIFACT (Résumé) — 3D card turn
   ============================================================ */
.flip { perspective: 2200px; }
.flip-inner {
  position: relative; transform-style: preserve-3d;
  transition: transform 900ms var(--ease-cinematic);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.flip-shadow { box-shadow: 0 26px 60px rgba(20, 18, 15, 0.22); }

/* ============================================================
   GRAIN + MOTION PRIMITIVES
   ============================================================ */
.grain-field {
  position: absolute; inset: 0; opacity: 0.45; mix-blend-mode: multiply; pointer-events: none;
  background-image: radial-gradient(rgba(20,18,15,0.22) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
}
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes bounce { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes rise   { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes driftX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes nudge  { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes pulse  { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes stopmo { to { transform: translateX(-50%); } }
@keyframes float  { 0%,100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-6px) rotate(var(--tilt, 0deg)); } }

.stars-pop:hover span { transform: translateY(-2px) scale(1.18) !important; }
.stopmo-track { display: flex; gap: 8px; width: max-content; animation: stopmo 9s steps(14) infinite; }

image-slot { width: 100%; height: 100%; display: block; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 981px) { .mobilebar { display: none !important; } }

@media (max-width: 1200px) and (min-width: 981px) {
  .workgrid { column-count: 2; }
  .cols--elsewhere { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 40px; }
}

@media (max-width: 980px) {
  .site { flex-direction: column; align-items: stretch; }
  .rail { display: none; }
  .mobilebar { display: flex; }
  .cols--intro, .cols--mainrail, .cols--notes, .cols--about,
  .cols--resume, .cols--contact, .cols--media { grid-template-columns: minmax(0, 1fr); }
  .cols--colophon { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cols--elsewhere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .workgrid { column-count: 1; }
  .cols--contact { align-items: start; }
}

/* ============================================================
   WIP HOME — the under-construction page (shown on the deployed build).
   Mirrors the Pencil "Home (WIP)" frame: a 1232px content column,
   48px gutters, long deliberate pauses between moments. Pencil rotates
   around the top-left corner, so rotated pieces use transform-origin 0 0.
   ============================================================ */
/* Pencil sets Newsreader from its static (opsz≈18) cut; pin the axis so
   the 64px headline keeps the comp's measure instead of the wider display cut */
.wip { overflow-x: clip; background: var(--paper); font-variation-settings: 'opsz' 18; }
.wip-mono { font-family: var(--font-mono); }
.wip-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.wip-hand { display: inline-block; font-family: var(--font-hand); line-height: normal; white-space: nowrap;
  transform-origin: 0 0; }
.wip-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 13px;
  line-height: 15px; color: var(--ink-3); }
.wip-link { background: none; border: none; padding: 0; font-family: var(--font-body); font-size: 15px;
  line-height: 18px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: underline 1px transparent; text-underline-offset: 4px;
  transition: color var(--dur-nudge) var(--ease-nudge), text-decoration-color var(--dur-nudge) var(--ease-nudge); }
.wip-link--strong { font-weight: 600; color: var(--ink); }
.wip-link--strong:hover { color: var(--vermilion); }
.wip-link--quiet { color: var(--ink-3); }
.wip-link--quiet:hover { color: var(--ink); text-decoration-color: var(--rule-strong); }

/* nudges: 3–4px directional response on arrows, nothing springy */
.nudge { display: inline-flex; transition: transform var(--dur-nudge) var(--ease-nudge), color var(--dur-nudge) var(--ease-nudge); }
a:hover > .nudge--right, button:hover > .nudge--right, a:focus-visible > .nudge--right { transform: translateX(4px); }
button:hover > .nudge--left { transform: translateX(-3px); }
.wip-speakez-btn:hover > .nudge--right { transform: translateX(3px); }
a:hover > .nudge--down, button:hover > .nudge--down, button:focus-visible > .nudge--down { transform: translateY(4px); }
a:hover > .nudge--ne, button:hover > .nudge--ne, a:focus-visible > .nudge--ne { transform: translate(3px, -3px); }
.wip-screen { position: relative; overflow: hidden; }
.wip-screen::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--rule); pointer-events: none; }
.wip-footage-screen, .wip-notes-screen, .wip-about-screen, .wip-resume-screen, .wip-print, .wip-print-tape {
  transition: transform 200ms var(--ease-nudge); }
.wip-footage-screen:hover, .wip-notes-screen:hover, .wip-about-screen:hover, .wip-resume-screen:hover,
.wip-print:hover { transform: translateY(-3px); }

/* intro */
.wip-intro { padding: 120px 48px 0; }
.wip-intro-row { display: flex; justify-content: space-between; gap: 40px; }
.wip-statement { flex: 0 1 800px; min-width: 0; display: flex; flex-direction: column; }
.wip-cues { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.wip-cue { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 14px;
  line-height: 16px; color: var(--ink-2); }
.wip-cue i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.wip-cue b { font-weight: 600; color: var(--ink); }
.wip-hello { margin-top: 16px; margin-right: -24px; font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(40px, calc((100vw - 640px) * 0.08), 64px);
  line-height: 1.08; letter-spacing: -1.2px; color: var(--ink); }
.wip-hello-name { font-family: var(--font-display); font-weight: 700; font-size: 0.89em; letter-spacing: 0;
  color: var(--vermilion); }
.wip-standfirst { margin-top: 36px; padding-left: 146px; display: flex; flex-direction: column; gap: 24px; }
.wip-standfirst p { max-width: 540px; font-family: var(--font-serif); font-size: 24px; line-height: 1.45; color: var(--ink-2); }
.wip-intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.wip-portrait-col { flex: 0 0 296px; margin: 0; padding-top: 84px; display: flex; flex-direction: column; gap: 14px; }
.wip-portrait { position: relative; width: 296px; height: 372px; }
.wip-portrait-plate { position: absolute; left: 0; top: 118px; width: 100%; height: 254px; background: var(--ink-blue); }
.wip-portrait img { position: absolute; left: 0; top: 2px; width: 296px; height: 370px; object-fit: cover; display: block;
  transition: transform 220ms var(--ease-nudge); }
.wip-portrait:hover img { transform: translateY(-4px); }
.wip-portrait-note { position: absolute; left: -122px; top: 142px; }
.wip-portrait-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; color: var(--ink-3); }

/* caution tape */
.wip-tape-zone { position: relative; height: 132px; margin-top: 112px; }
.wip-tape { position: absolute; left: -48px; top: 44px; width: calc(100% + 98px); height: 46px; overflow: hidden;
  transform: rotate(2.2deg); transform-origin: 0 0; background: #E2B33C;
  display: flex; align-items: center; justify-content: center; }
.wip-tape-badge { position: relative; padding: 6px 16px; background: var(--ink); color: #E2B33C; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; line-height: 13px; letter-spacing: 1.6px; }

/* found footage */
.wip-footage { margin-top: 72px; padding-left: 56.49%; }
.wip-footage-scrap { position: relative; width: 288px; display: flex; flex-direction: column; gap: 9px; }
.wip-footage-screen { width: 288px; height: 216px; display: flex; align-items: center; justify-content: center; }
.wip-standby { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 18px; background: #141210E6; outline: 1px solid #EDE7D84D; outline-offset: -0.5px;
  font-family: var(--font-mono); white-space: nowrap; }
.wip-footage-note { position: absolute; left: -222px; top: 150px; }

/* rooms */
.wip-rooms { margin-top: 140px; padding: 0 48px; }
.wip-folio { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule); }
.wip-folio > .wip-mono { font-size: 11.5px; color: var(--ink-4); }
.wip-rooms-head { display: flex; flex-direction: column; }
.wip-dust { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 4.7vw, 68px);
  line-height: 1; letter-spacing: -1.2px; color: var(--ink); }
.wip-tally { margin-top: 20px; font-family: var(--font-serif); font-size: 24px; line-height: 1.2; color: var(--ink-2); }
.wip-struck { position: relative; display: inline-block; }
.wip-strike { position: absolute; left: -6px; top: 12px; width: 58px; height: 2px; background: var(--vermilion);
  transform: rotate(9deg); transform-origin: 0 0; }
.wip-correction { position: absolute; left: 6px; top: -30px; }
.wip-rooms-body { margin-top: 14px; max-width: 520px; font-family: var(--font-serif); font-size: 17px; line-height: 1.6;
  color: var(--ink-2); }
.wip-wall { margin-top: 80px; display: flex; flex-direction: column; }
.wip-caption { display: flex; flex-direction: column; gap: 5px; }
.wip-caption--inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wip-room { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 18px; color: var(--ink); }
.wip-note { font-family: var(--font-serif); font-size: 17px; line-height: 1.2; color: var(--ink-2); }

.wip-rowA { display: flex; justify-content: space-between; gap: 40px; }
.wip-room-work { position: relative; flex: 0 1 744px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wip-brick { height: 400px; }
.wip-note-work { position: absolute; left: calc(100% - 158px); top: -27px; }
.wip-speakez { position: absolute; left: 36px; right: 36px; top: 30px; height: 340px; overflow: hidden;
  display: flex; gap: 18px; padding: 18px; background: var(--paper-bright);
  outline: 1px solid var(--rule-strong); outline-offset: -0.5px; }
.wip-speakez-stage { position: relative; flex: 0 0 300px; height: 304px; overflow: hidden; border-radius: 2px;
  background: var(--paper-ink); }
.wip-speakez-tag { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 2px;
  background: #FBFAF6E6; color: var(--ink); font-family: var(--font-card-micro); font-size: 10px; line-height: 15px;
  letter-spacing: 0.08px; }
.wip-speakez-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms var(--ease-nudge); }
.wip-speakez-slide.is-current { opacity: 1; z-index: 1; }
.wip-speakez-slide img, .wip-speakez-slide a { display: block; width: 100%; height: 100%; }
.wip-speakez-slide img { object-fit: cover; }
.wip-speakez-slide a:hover img { opacity: 0.92; }
.wip-speakez-tag { z-index: 2; }
.wip-speakez-btn { position: absolute; z-index: 2; top: 134px; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--rule-on-ink); border-radius: 2px; background: rgba(20, 18, 16, 0.55);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color var(--dur-nudge) var(--ease-nudge); }
.wip-speakez-btn:hover { background: rgba(20, 18, 16, 0.82); }
.wip-speakez-info { flex: 1 1 318px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wip-speakez-link { align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 4px; font-family: var(--font-card-body);
  font-size: 13px; font-weight: 600; line-height: 16px; color: var(--vermilion); text-decoration: none; }
.wip-speakez-link:hover { color: var(--vermilion-2); }
.wip-tape-strip { position: absolute; width: 78px; height: 18px; background: #EDE7D899; transform-origin: 0 0; }

.wip-room-archive { position: relative; flex: 0 0 300px; padding-top: 108px; display: flex; flex-direction: column; gap: 14px; }
.wip-print { position: relative; width: 300px; height: 258px; }
.wip-print-screen { position: absolute; left: 4px; top: 0; width: 292px; height: 244px;
  transform: rotate(-1.6deg); transform-origin: 0 0; }
.wip-print-tape { position: absolute; left: 108px; top: -9px; width: 82px; height: 22px; background: #E2D4B0D9;
  transform: rotate(5deg); transform-origin: 0 0; }
.wip-note-archive { position: absolute; left: -104px; top: 440px; }

.wip-rowB { margin-top: 128px; display: flex; align-items: flex-end; }
.wip-room-notes { flex: 0 1 511px; min-width: 0; padding-left: 71px; display: flex; flex-direction: column; gap: 10px; }
.wip-notes-screen { width: 100%; max-width: 440px; aspect-ratio: 440 / 300; }
.wip-notes-cap { align-self: flex-start; }
.wip-room-about { flex: 0 0 196px; margin-left: 56px; padding-bottom: 158px; display: flex; flex-direction: column; gap: 7px; }
.wip-about-screen { width: 196px; height: 168px; }
.wip-rowB-spacer { flex: 1 1 0; min-width: 24px; }
.wip-room-resume { flex: 0 0 288px; display: flex; flex-direction: column; gap: 8px; }
.wip-resume-screen { width: 288px; height: 400px; }

.wip-rowC { margin-top: 104px; padding-left: clamp(0px, calc(100% - 760px), 376px); display: flex; }
.wip-room-contact { flex: 0 1 760px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wip-beacon { height: 300px; }
.wip-beacon-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  gap: 12px; padding: 0 40px 0 336px; }
.wip-contact-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; border-radius: 6px;
  background: var(--paper-bright); box-shadow: 0 14px 32px #00000059; }
.wip-open { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 3px;
  background: var(--earth-pine); }
.wip-open i { width: 5px; height: 5px; border-radius: 50%; background: #BFE3C6; }
.wip-open span { font-family: var(--font-mono); font-size: 9px; line-height: 11px; letter-spacing: 1px; color: var(--paper-bright); }
.wip-email { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wip-email span { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 16px; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 1px;
  transition: color var(--dur-nudge) var(--ease-nudge), border-color var(--dur-nudge) var(--ease-nudge); }
.wip-email:hover span { color: var(--vermilion); border-color: var(--vermilion); }
.wip-social-name { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink);
  transition: color var(--dur-nudge) var(--ease-nudge); }
.wip-social .nudge { color: var(--ink-3); }
.wip-social:hover .wip-social-name, .wip-social:hover .nudge { color: var(--vermilion); }
.wip-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.wip-social { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.wip-social-badge { flex: 0 0 30px; height: 30px; border-radius: 6px; background: var(--ink); color: var(--paper-bright);
  display: flex; align-items: center; justify-content: center; }

/* finale */
.wip-finale { margin-top: 140px; container-type: inline-size; }
.wip-finale-words { padding: 0 48px; display: flex; flex-direction: column; }
.wip-under { margin-top: 32px; }
.wip-construction { margin-top: 14px; }
/* 100 monospace columns (0.6em each) must fit the column; 6 lines tall like the comp */
.wip-block { position: relative; width: fit-content; height: 6em; font-size: min(18px, calc((100cqw - 96px) / 60)); }
.wip-block pre { margin: 0; font-family: var(--font-ascii); font-size: 1em; line-height: 1; letter-spacing: 0;
  white-space: pre; color: var(--ink); }
.wip-block pre.wip-block-shadow { position: absolute; left: 0; top: 0; color: var(--vermilion); }
.wip-cone-row { padding: 56px 0 0 69.64%; }
.wip-cone { position: relative; width: fit-content; }
.wip-cone pre { margin: 0; font-family: var(--font-ascii); font-size: 14px; line-height: 1.05; color: var(--vermilion);
  transform: rotate(4deg); transform-origin: 0 0; }
.wip-cone-note { position: absolute; left: -186px; top: 62px; }
.wip-signoff { padding: 96px 48px 0; display: flex; flex-direction: column; gap: 10px; }
.wip-signoff-line { font-family: var(--font-serif); font-weight: 300; font-size: 28px; line-height: 1.25; letter-spacing: -0.3px;
  color: var(--ink-2); }
.wip-colophon { margin-top: 136px; padding: 0 48px 48px; display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 14px 24px; }

/* narrower desktops: let the fixed comp columns breathe, then stack */
@media (max-width: 1240px) {
  .wip-intro-row { flex-wrap: wrap; }
  .wip-statement { flex-basis: 100%; }
  .wip-hello { font-size: clamp(40px, calc((100vw - 304px) * 0.08), 64px); }
  .wip-portrait-col { margin-left: auto; padding-top: 56px; }
  .wip-rowA { flex-direction: column; gap: 0; }
  .wip-room-work { flex-basis: auto; max-width: 744px; }
  .wip-room-archive { flex: none; width: 300px; align-self: flex-end; margin-right: 24px; padding-top: 96px; }
  .wip-note-archive { left: -24px; top: auto; bottom: -48px; }
  .wip-rowB { margin-top: 112px; flex-wrap: wrap; align-items: flex-end; gap: 48px 0; }
  .wip-room-notes { padding-left: 0; }
  .wip-rowB-spacer { display: none; }
  .wip-room-resume { margin-left: auto; }
  .wip-footage { padding-left: max(220px, 50%); }
}

@media (max-width: 980px) {
  .wip-intro { padding: 56px 20px 0; }
  .wip-hello { font-size: clamp(34px, calc((100vw - 40px) * 0.08), 64px); margin-right: 0; }
  .wip-standfirst { padding-left: 0; margin-top: 32px; }
  .wip-standfirst p { font-size: 20px; }
  .wip-portrait-col { margin: 0 auto; padding-top: 64px; }
  .wip-portrait-note { left: auto; right: 8px; top: -2px; }
  .wip-tape-zone { margin-top: 80px; }
  .wip-footage { margin-top: 48px; padding: 0 20px; display: flex; flex-direction: column; align-items: flex-end; }
  .wip-footage-note { position: static; align-self: flex-start; margin-top: 10px; }
  .wip-footage-scrap { width: min(288px, 100%); }
  .wip-footage-screen { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .wip-rooms { margin-top: 96px; padding: 0 20px; }
  .wip-wall { margin-top: 56px; }
  .wip-note-work { left: auto; right: 0; }
  .wip-brick { height: auto; padding: 30px 14px; }
  .wip-speakez { position: relative; left: auto; right: auto; top: auto; height: auto; flex-direction: column; }
  .wip-speakez-stage { flex: 0 0 auto; height: auto; aspect-ratio: 1 / 1; }
  .wip-speakez-btn { top: calc(50% - 17px); }
  .wip-speakez-info { flex: none; }
  .wip-tape-strip:last-of-type { left: auto !important; right: 24px; }
  .wip-room-archive { align-self: center; margin-right: 0; }
  .wip-note-archive { left: 0; }
  .wip-rowB { flex-direction: column; align-items: stretch; margin-top: 96px; gap: 56px; }
  .wip-room-notes { flex-basis: auto; }
  .wip-notes-screen { max-width: none; }
  .wip-notes-cap { white-space: normal; }
  .wip-room-about { flex: none; width: 196px; margin-left: 0; padding-bottom: 0; align-self: flex-start; }
  .wip-room-resume { flex: none; width: 288px; max-width: 100%; margin-left: 0; align-self: flex-end; }
  .wip-resume-screen { width: 100%; }
  .wip-rowC { margin-top: 80px; padding-left: 0; }
  .wip-beacon { height: auto; }
  .wip-beacon-inner { padding: 170px 14px 18px; }
  .wip-finale { margin-top: 96px; }
  .wip-finale-words { padding: 0 20px; }
  .wip-block { font-size: min(18px, calc((100cqw - 40px) / 60)); }
  .wip-under { margin-top: 24px; }
  .wip-cone-row { padding: 64px 0 0 max(176px, 52%); }
  .wip-signoff { padding: 72px 20px 0; }
  .wip-signoff-line { font-size: 24px; }
  .wip-colophon { margin-top: 96px; padding: 0 20px 36px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .wip-socials { grid-template-columns: minmax(0, 1fr); }
  .wip-portrait-col { flex-basis: 100%; }
  .wip-portrait { width: 100%; height: auto; aspect-ratio: 296 / 372; }
  .wip-portrait img { width: 100%; height: auto; aspect-ratio: 296 / 370; }
  .wip-portrait-plate { top: 31.7%; height: 68.3%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .flip-inner { transition: none; }
}
