/* LeytonLab — landing VERSION 04 (Figtree + IBM Plex Mono)
   Layout: full-bleed video bands, edit-suite labels, mixed-width work grid.
   Single dark theme on purpose: the site is built around video. */

:root {
  --bg: #111315;        /* graphite, cool like mirror glass at night */
  --bg-2: #191c1f;      /* tiles and placeholders */
  --fg: #ecebe7;        /* warm off-white text */
  --muted: #8d949a;     /* secondary text */
  --line: #2a2e33;      /* rules */
  --glass: #c3ced5;     /* accent: silver-blue of a mirror edge */

  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.muted { color: var(--muted); }

/* Placeholder slots (removed visually once real media loads) */
.slot-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}
.tbc {
  background: #5a4a12;
  color: #f3e3a5;
  font-family: var(--mono);
  font-size: .78em;
  padding: 0 .35em;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  transition: transform .35s var(--ease);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(10,11,12,.55), rgba(10,11,12,0));
}
.header-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 22px var(--gut-r) 22px var(--gut-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
  text-decoration: none;
  display: inline-flex;
}
.mirror-l { display: inline-block; }

.menu { display: flex; gap: clamp(14px, 3vw, 34px); }
.menu a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 15.5px;            /* V04: +25% (was 12.5px) */
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.menu a span { display: block; transition: transform .35s var(--ease); }
.menu a::after {
  content: attr(data-label);
  position: absolute;
  left: 0; top: 100%;
  color: var(--glass);
  transition: transform .35s var(--ease);
}
.menu a:hover span, .menu a:focus-visible span { transform: translateY(-100%); }
.menu a:hover::after, .menu a:focus-visible::after { transform: translateY(-100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 1200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
}
.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gut-r) 0 var(--gut-l);
  animation: cuts 2.4s steps(1) infinite;
}
/* Stand-in for hard cuts until reel-loop.mp4 arrives */
@keyframes cuts {
  0%   { background: #1b1e21; }
  25%  { background: #23272b; }
  50%  { background: #16181a; }
  75%  { background: #2a2622; }
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero.has-video .hero-video { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,9,10,.72) 0%, rgba(8,9,10,0) 55%);
}
.hero-copy {
  position: relative;
  width: 100%;
  padding-bottom: clamp(40px, 7vw, 88px);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2.4rem, 7.4vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.02em;
  max-width: 13ch;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-copy p {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  color: var(--fg);
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 80s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticker-list li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  padding-inline: 28px;
  position: relative;
}
.ticker-list li::after {
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  width: 4px; height: 4px;
  background: var(--line);
  transform: translateY(-50%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.work { border-top: 0; padding-top: clamp(48px, 6vw, 80px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 24px clamp(24px, 5vw, 72px);
}
.split > .label { padding-top: .55em; }
.split-body { min-width: 0; max-width: 62ch; }
.lead {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.closing {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin: 40px 0 0;
}

/* Read more */
details.more { margin-top: 4px; }
details.more summary,
.case-more summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--glass);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
details summary::-webkit-details-marker { display: none; }
details.more .when-open, .case-more .when-open { display: none; }
details.more[open] .when-open, .case-more[open] .when-open { display: inline; }
details.more[open] .when-closed, .case-more[open] .when-closed { display: none; }
details.more[open] summary, .case-more[open] summary { margin-bottom: 18px; }
details.more p, .case-more p { margin: 0 0 1em; }

/* How I work steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { border-bottom: 1px solid var(--line); }
.steps summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  align-items: baseline;
  padding-block: 20px;
}
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step-title {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.plus { width: 12px; height: 12px; position: relative; align-self: center; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1.5px; background: var(--fg);
  transition: transform .3s var(--ease);
}
.plus::after { transform: rotate(90deg); }
.steps details[open] .plus::after { transform: rotate(0deg); }
.steps details p { margin: 0 0 22px 3.2em; color: var(--fg); max-width: 54ch; }
.steps summary:hover .step-title { color: var(--glass); }

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 20px;
}
.tile { min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile a { text-decoration: none; display: block; }
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 14px),
    var(--bg-2);
}
.tile.wide .media { aspect-ratio: 16 / 7; }
.media .slot-label { position: absolute; left: 14px; top: 12px; z-index: 0; }
.media img, .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media img { z-index: 1; }
.media video { z-index: 2; opacity: 0; transition: opacity .3s ease; }
.media.playing video { opacity: 1; }
/* 5-second loop marker */
.media::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--glass);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
}
.media.active::after { animation: loopbar var(--loop, 5s) linear infinite; }
@keyframes loopbar { to { transform: scaleX(1); } }
.media .open-cue {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--fg); color: var(--bg);
  padding: 6px 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s var(--ease);
}
.tile a:hover .open-cue, .tile a:focus-visible .open-cue { opacity: 1; transform: none; }

.caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
}
.caption h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.2;
  margin: 0;
}
.caption .label { color: var(--muted); text-align: right; flex-shrink: 0; max-width: 55%; }
.tile .grid-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

/* More work */
.more-work { margin-top: clamp(72px, 9vw, 120px); }
.more-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 20px;
}
.more-grid li { min-width: 0; grid-column: span 2; }
.more-grid li.half { grid-column: span 3; }
.more-grid a { display: block; text-decoration: none; }
.more-grid .media { aspect-ratio: 16 / 9; }
.more-grid .open-cue { opacity: 0; }
.more-grid p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.logos-only { margin: 36px 0 0; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }

/* ---------- Me ---------- */
.me {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--bg-2);
  display: flex; align-items: flex-end; padding: 14px;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me-text { min-width: 0; max-width: 60ch; }
.me-text > p { margin: 0 0 16px; }
.affiliations { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.affiliations li { display: flex; gap: 14px; align-items: center; font-size: 15px; }
.affiliations strong { font-weight: 650; margin-right: 6px; }
.logo-slot {
  flex-shrink: 0;
  width: 56px; height: 32px;
  border: 1px dashed var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase;
}

/* ---------- Contact ---------- */
.bridge {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.8rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: 20ch;
  margin: 0 0 clamp(48px, 7vw, 96px);
  text-wrap: balance;
}
.email-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.email {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-decoration: none;
  border-bottom: 2px solid var(--glass);
  overflow-wrap: anywhere;
}
.copy {
  background: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.copy:hover { border-color: var(--glass); }
.links { margin: 0 0 48px; }
.links a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.light-mirror {
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  gap: 10px;
}
.light-mirror p { margin: 0; }
.tag { color: var(--glass); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Case view (full screen) ---------- */
.case-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: caseIn .35s var(--ease);
}
@keyframes caseIn { from { opacity: 0; transform: translateY(16px); } }
.case-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gut-r) 14px var(--gut-l);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* V04: "Back" instead of "Close", with more presence */
.close {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; cursor: pointer;
  border: 1px solid var(--muted);
  padding: 9px 16px 9px 13px;
  font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.close span { font-size: 1.15em; line-height: 1; transition: transform .25s var(--ease); }
.close:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.close:hover span { transform: translateX(-3px); }

/* V04: everything around the player is black, like the site, never white */
.case-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 82svh;
  width: 100%;
  background: #000;
  display: grid; place-items: center;
  color-scheme: dark;
}
.case-player iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  background: #000;
  /* The page is dark and Vimeo's player page is light; when the two schemes differ,
     browsers paint an opaque white canvas behind the iframe. Matching it avoids that. */
  color-scheme: light;
}
.case-body { padding-block: clamp(36px, 5vw, 64px) 72px; }
.case-head h2 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 8px 0 14px;
  text-wrap: balance;
}
.case-line { font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0; max-width: 40ch; line-height: 1.35; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0;
  padding-block: 20px;
  border-block: 1px solid var(--line);
  max-width: 62rem;
}
.case-meta div { min-width: 0; }
.case-meta dd { margin: 6px 0 0; font-size: 15px; }
.case-text { max-width: 62ch; }
.case-text > p { margin: 0 0 1em; }
.case-credit { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.case-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-nav button {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
}
.case-nav button:hover { color: var(--glass); }

/* Title card shown until a still or Vimeo thumbnail loads on top of it */
.media-title {
  position: absolute; inset: auto 16px 14px 16px; z-index: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--line);
  text-wrap: balance;
}
.more-grid li:not(.half) .media-title { font-size: 1.15rem; }

/* Several films in one case */
.case-reels {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-block: 14px 0;
}
.case-reels[hidden] { display: none; }
.case-reels button {
  background: none; cursor: pointer;
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.case-reels button:hover { color: var(--fg); border-color: var(--muted); }
.case-reels button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.case-player[hidden] { display: none; }
.player-fallback {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 10px; text-align: center;
  text-decoration: none; color: var(--muted);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 16px;
}
.player-fallback .label { color: var(--fg); font-size: 14px; }
.player-fallback:hover span:last-child { color: var(--glass); }

/* Share mode: no build labels, no grey "cuts" in the hero while the reel-loop is missing */
html[data-mode="share"] .slot-label,
html[data-mode="share"] .logo-slot { display: none; }
html[data-mode="share"] .hero-placeholder { animation: none; background: var(--bg); }
html[data-mode="share"] .hero:not(.has-video) {
  height: auto; min-height: 0; max-height: none;
  background: var(--bg);
  padding-top: calc(150px + env(safe-area-inset-top, 0px));
}
html[data-mode="share"] .hero:not(.has-video) .hero-shade { display: none; }
html[data-mode="share"] .me.no-photo { grid-template-columns: minmax(0, 1fr); }
html[data-mode="share"] .me.no-photo .portrait { display: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 26px; height: 26px; fill: var(--fg); flex-shrink: 0; }
.logo { font-weight: 800; letter-spacing: .04em; align-items: baseline; }
/* The second L turns 180° and lands as the second piece of the LL mark.
   V04: line-height 1 makes the box exactly 1em tall, so 50% is the middle of the
   capital (Figtree caps are .70em on a .95/.25 line box). The x origin is the middle
   of the L's ink (.068–.527em), not of its advance, so it turns in place. */
.turn-l {
  display: inline-block;
  line-height: 1;
  transform-origin: .2975em 50%;
  animation: turn 7s var(--ease) infinite;
}
.brand:hover .turn-l { animation: none; transform: rotate(180deg); }
@keyframes turn {
  0%, 82% { transform: rotate(0deg); }
  87%, 95% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.clock {
  display: grid; gap: 4px;
  margin: -8px 0 28px;
}
.clock .label { color: var(--glass); font-variant-numeric: tabular-nums; }
.clock .sep { margin-inline: .6em; color: var(--muted); }
.clock-line { color: var(--muted); font-size: 15px; }
.light-mirror a { color: var(--fg); text-decoration-color: var(--glass); text-underline-offset: 3px; }
.light-mirror a:hover { color: var(--glass); }
.split-body a:not(.email):not(.copy) { text-underline-offset: 3px; text-decoration-color: var(--glass); }

/* Header hides while scrolling down, comes back when scrolling up */
.site-header.tucked { transform: translateY(-100%); }

/* ---------- VERSION 04 ---------- */

/* Hero: headline on one line; the paragraph is exactly as wide as the headline,
   so it ends under the full stop of "purpose." and runs in two lines. */
.hero .intro { width: fit-content; max-width: 100%; }
.hero h1,
html[data-mode="share"] .hero:not(.has-video) h1 {
  font-size: clamp(2.4rem, 5.3vw, 5.4rem);
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hero .intro p {
  width: 0; min-width: 100%;   /* take the headline's width, never set it */
  max-width: none;
  font-size: clamp(1.02rem, 1.42vw, 1.45rem);
  line-height: 1.45;
  text-wrap: pretty;
}
/* Each sentence group starts on its own line ("…into words." / "I turn…"), balanced if it wraps */
.hero .intro p span { display: block; text-wrap: balance; }

/* Case captions on one line, so the line below starts at the same height in both columns */
@media (min-width: 1181px) {
  .caption .label { max-width: none; white-space: nowrap; }
}
/* Tablets: brand label goes under the title in every tile, so rows still line up */
@media (min-width: 721px) and (max-width: 1180px) {
  .work-grid .caption { flex-direction: column; gap: 4px; }
  .work-grid .caption .label { text-align: left; max-width: none; }
}

/* More work: title left, brand right, same as the cases above */
.more-grid .caption { padding-top: 12px; }
.more-grid .caption h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.25;
  min-width: 0;
}
.more-grid li.half .caption h4 { font-size: 1.2rem; }
.more-grid .caption .label { font-size: 11px; max-width: none; white-space: nowrap; }
.more-grid a:hover h4 { color: var(--glass); }

/* Still-only tiles: no loop bar; The Reserves keeps the faces in frame */
.media[data-still].active::after { animation: none; }
.media[data-slug="the-reserves"] img { object-position: 50% 30%; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid li, .more-grid li.half { grid-column: span 1; }
  .more-grid li:first-child { grid-column: 1 / -1; }
  .me { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 360px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tile.wide .media, .media { aspect-ratio: 16 / 10; }
  .caption { flex-direction: column; gap: 4px; }
  .caption .label { text-align: left; max-width: none; }
  .case-meta { grid-template-columns: minmax(0, 1fr); }
  .menu { gap: 12px; }
  .menu a { font-size: 11px; }      /* phones: the +25% does not fit next to the wordmark */
  .logo { font-size: 16px; }
  /* Hero: headline wraps again; paragraph reads at its own width */
  .hero .intro { width: auto; }
  .hero h1,
  html[data-mode="share"] .hero:not(.has-video) h1 {
    white-space: normal; text-wrap: balance;
    font-size: clamp(2.4rem, 11vw, 4rem); max-width: 12ch;
  }
  .hero .intro p { width: auto; min-width: 0; max-width: 44ch; font-size: 1.02rem; }
  .close { font-size: 13px; padding: 8px 13px 8px 11px; }
}
@media (max-width: 420px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid li, .more-grid li.half, .more-grid li:first-child { grid-column: auto; }
  .menu a[href="#how"] span, .menu a[href="#how"]::after { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .turn-l { animation: none !important; }
  .ticker-track, .hero-placeholder, .media.active::after, .case-view { animation: none !important; }
}
