@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b8b8b8;
  --line: #333;
  --frame: #0a0a0a;
  --gutter: clamp(16px, 2.6vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(88px, 12vw, 200px);
  --full: calc(100vw - 2 * var(--gutter));
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
  overflow-x: clip;
}

::selection { background: var(--fg); color: var(--bg); }

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; touch-action: manipulation; }
[id] { scroll-margin-top: calc(var(--header) + 16px); }

:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--bg);
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
}

.label {
  font-stretch: 80%;
  font-weight: 600;
  font-size: max(13px, .78em);
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Split headline letters rise from a mask */
.split-word { display: inline-block; overflow: clip; overflow-clip-margin: .04em; vertical-align: top; padding: .05em 0; margin: -.05em 0; }
.split-char { display: inline-block; will-change: transform; }

/* Header: inverts against whatever is behind it */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
  padding: 0 var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.site-header a, .site-header button { pointer-events: auto; }
.site-header.is-away:not(:focus-within) { transform: translateY(-100%); }
main:focus { outline: none; }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-stretch: 62%;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  view-transition-name: wordmark;
}

.site-nav ul { display: flex; gap: clamp(4px, 1.4vw, 20px); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-stretch: 80%;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.menu-open {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0 0 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-stretch: 80%;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  :root { --header: 56px; }
  .wordmark { font-size: 24px; }
  .js .site-nav { display: none; }
  .js .menu-open { display: inline-flex; align-items: center; }
  html:not(.js) .site-header { position: static; flex-direction: column; height: auto; mix-blend-mode: normal; }
}

/* Full-screen phone menu */
dialog.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 8px var(--gutter) 24px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}
dialog.menu[open] { display: flex; flex-direction: column; }
dialog.menu::backdrop { background: var(--bg); }
.menu-bar { display: flex; justify-content: flex-end; }
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.menu-links a {
  display: block;
  font-stretch: 62%;
  font-weight: 800;
  font-size: min(21vw, 15svh);
  line-height: .96;
  text-transform: uppercase;
  text-decoration: none;
}
.menu-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.menu-foot { color: var(--muted); overflow-wrap: anywhere; }
.menu-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Scroll timecode */
.timecode {
  position: fixed;
  right: var(--gutter);
  bottom: 16px;
  z-index: 30;
  color: #fff;
  mix-blend-mode: difference;
  font-stretch: 80%;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
@media (max-width: 900px) { .timecode { display: none; } }

/* Frames and designed placeholders */
.frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--frame);
  aspect-ratio: var(--ratio, 16 / 9);
}
.frame > img.art { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }

.ph {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  /* a single soft stadium light, from above */
  background:
    radial-gradient(ellipse 70% 90% at 62% -10%, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 70%),
    var(--frame);
}
.ph svg {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5px;
  stroke-opacity: .42;
  transition: stroke-opacity .3s ease;
}
.ph svg * { vector-effect: non-scaling-stroke; }
.ph svg text {
  fill: #fff;
  fill-opacity: .38;
  stroke: none;
  font-family: "Archivo", sans-serif;
  font-stretch: 62%;
  font-weight: 800;
}
.ph svg .solid { fill: #fff; fill-opacity: .26; stroke: none; }
.ph svg .playhead-line { stroke-opacity: 1; stroke-width: 2px; }
.ph svg .playhead-cap { fill: #fff; fill-opacity: 1; stroke: none; }
a:hover .ph svg, button:hover .ph svg { stroke-opacity: .85; }

.ph-label {
  position: absolute;
  left: clamp(14px, 1.6vw, 24px);
  top: clamp(14px, 1.6vw, 24px);
  z-index: 2;
  display: block;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.ph-label strong {
  display: block;
  color: var(--fg);
  font-stretch: 80%;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph-label span { display: block; }

.scrim {
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, 0));
}

/* Hero */
.hero {
  position: relative;
  height: 90svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
}
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 30%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%),
    var(--frame);
  will-change: clip-path;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}
.hero video[hidden] { display: none; }
.hero-label { top: calc(var(--header) + 8px); left: var(--gutter); }

.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage video { z-index: 1; }
.hero-stage .scrim { z-index: 1; }

.hero-controls {
  position: absolute;
  top: calc(var(--header) + 8px);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-controls[hidden] { display: none; }

.hero-copy {
  position: absolute;
  inset: auto var(--gutter) clamp(16px, 2vw, 28px);
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  gap: clamp(16px, 1.8vw, 28px);
}
.hero-name {
  font-size: calc(var(--full) / 6.62);
  white-space: nowrap;
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}
.hero-lead {
  max-width: 26em;
  font-stretch: 88%;
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 34px);
  line-height: 1.14;
  text-wrap: balance;
}
.hero-action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; flex: none; }

@media (max-width: 760px) {
  .hero { height: 92svh; min-height: 620px; }
  .hero-name { font-size: calc(var(--full) / 4.16); white-space: normal; }
  .hero-name > span { display: block; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-action { align-items: flex-start; text-align: left; }
}

.control {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  font-stretch: 80%;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.control:hover { background: var(--fg); color: var(--bg); }
a.control { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Home: the Contact button reads light, and goes dark on hover */
.hero-controls a.control { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hero-controls a.control:hover { background: var(--bg); color: var(--fg); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--bg); color: var(--fg); }

/* Home: stacked full-screen work */
.stack-card { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.stack-inner { position: absolute; inset: 0; display: block; text-decoration: none; transform-origin: 50% 0; }
.stack-inner:focus-visible { outline-offset: -8px; }
.stack-inner .frame { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.stack-inner .ph-label { top: calc(var(--header) + 8px); left: var(--gutter); }
.stack-text {
  position: absolute;
  inset: auto var(--gutter) clamp(20px, 2.4vw, 36px);
  z-index: 2;
  display: block;
}
.stack-title { display: block; font-size: clamp(56px, 12.6vw, 240px); }
.stack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(12px, 1.4vw, 20px);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .5);
}
.stack-action {
  flex: none;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stack-inner:hover .stack-action { background: var(--bg); color: var(--fg); outline: 1px solid var(--fg); }

@media (max-width: 760px) {
  .stack-card { height: 88svh; min-height: 520px; position: relative; border-top: 1px solid var(--line); }
  /* Keep the umpire and the 49ers player in the middle of tall phone crops */
  .home-mlb-photo { object-position: 29% 50%; }
  .home-niners-photo { object-position: 61% 50%; }
}

/* Recognition */
.recognition { padding: var(--section) var(--gutter) 0; overflow: clip; }
.recognition-number { font-size: min(52vw, 66svh); line-height: .78; }
.recognition-title { margin-top: clamp(8px, 1vw, 16px); font-size: calc(var(--full) / 8.68); }
.ledger { margin-top: clamp(32px, 4vw, 64px); border-top: 1px solid var(--line); }
.ledger a {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4px var(--gap);
  align-items: baseline;
  padding: clamp(14px, 1.5vw, 22px) 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.ledger-title { font-stretch: 88%; font-weight: 600; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.15; }
.ledger-note { color: var(--muted); }
.ledger a:hover { background: var(--fg); color: var(--bg); }
.ledger a:hover .ledger-note { color: var(--bg); }
@media (max-width: 760px) { .ledger a { grid-template-columns: 1fr; } }

/* Index rows */
.index { margin-top: var(--section); border-top: 1px solid var(--line); }
.index-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(10px, 1vw, 16px) var(--gutter) clamp(8px, .8vw, 12px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.index-row .display { font-size: clamp(64px, 13vw, 240px); }
.index-row .label { padding-bottom: .6em; color: var(--muted); text-align: right; }
.index-row:hover { background: var(--fg); color: var(--bg); }
.index-row:hover .label { color: var(--bg); }
.index-row:focus-visible { outline-offset: -6px; }
@media (max-width: 760px) {
  .index-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .index-row .label { padding: 0 0 4px; font-size: clamp(11px, 3.2vw, 14px); letter-spacing: .04em; line-height: 1.3; text-align: left; white-space: nowrap; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px var(--gap);
  padding: var(--section) var(--gutter) 0;
}
.about > .label { grid-column: span 3; color: var(--muted); }
.about-body { grid-column: span 9; }
.about-bio {
  font-stretch: 88%;
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 60px);
  line-height: 1.1;
}
.about-skills { margin-top: clamp(24px, 3vw, 44px); color: var(--muted); }
@media (max-width: 760px) { .about > .label, .about-body { grid-column: 1 / -1; } }

/* Inner page headings */
.page-title {
  padding: calc(var(--header) + clamp(8px, 1.4vw, 20px)) var(--gutter) clamp(20px, 2.6vw, 40px);
  font-size: calc(var(--full) / var(--fit, 3));
}
.page-note {
  max-width: 44em;
  padding: 0 var(--gutter) clamp(32px, 4vw, 64px);
  color: var(--muted);
}

/* Sports */
.project { margin-bottom: var(--section); }
.project-media { position: relative; }
.project-media .frame { --ratio: auto; height: min(92svh, 58vw); min-height: 340px; }
.project-title {
  position: absolute;
  inset: auto var(--gutter) clamp(12px, 1.4vw, 20px);
  z-index: 2;
  font-size: calc(var(--full) / 9.6);
}
.project-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--gap);
  padding: clamp(16px, 2vw, 28px) var(--gutter) 0;
}
.project-count { grid-column: span 2; color: var(--muted); }
.project-skills { grid-column: span 4; }
.project-desc { grid-column: span 6; font-size: clamp(17px, 1.45vw, 24px); line-height: 1.34; }
@media (max-width: 760px) {
  .project-media .frame { height: 112vw; max-height: 78svh; }
  .project-title { font-size: clamp(52px, 17vw, 96px); }
  .project-count, .project-skills, .project-desc { grid-column: 1 / -1; }
}

/* Music and Creative */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 88px) var(--gap);
  padding: 0 var(--gutter);
}
.tile { grid-column: var(--start, auto) / span var(--span, 6); }
.tile-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.tile-title { display: block; margin-top: 14px; font-size: clamp(34px, 4.4vw, 76px); }
.tile-credit { display: block; margin-top: 8px; color: var(--muted); }
.tile-link:hover .tile-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tile-link .ph svg { transition: stroke-opacity .3s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile-link:hover .ph svg { transform: scale(1.04); }
@media (max-width: 760px) {
  .tile { grid-column: 1 / -1; }
  .tile .frame { --ratio: 4 / 3 !important; }
}

/* Edits */
.edits-title {
  padding: calc(var(--header) + clamp(8px, 1.4vw, 20px)) var(--gutter) clamp(18px, 2vw, 28px);
  font-size: clamp(60px, 11vw, 220px);
}
.edits-intro {
  max-width: 28em;
  padding: 0 var(--gutter) var(--section);
  font-stretch: 88%;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 40px);
  line-height: 1.1;
}
.edit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px var(--gap);
  padding: 0 var(--gutter);
  margin-bottom: var(--section);
}
.edit-media { grid-column: span 8; }
.edit-text { grid-column: span 4; }
.edit:nth-of-type(even) .edit-media { order: 2; }
.edit:nth-of-type(even) .edit-text { order: 1; }
.edit h2 { font-size: clamp(36px, 4vw, 68px); line-height: .92; }
.edit-org { margin-top: 12px; color: var(--muted); }
.edit-desc { margin-top: 16px; }
.edit-facts { margin-top: 20px; border-top: 1px solid var(--line); }
.edit-facts div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.edit-facts dt { color: var(--muted); }
.edit-facts dd { font-weight: 600; }

.play { position: absolute; inset: 0; display: block; text-decoration: none; }
.play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute;
  right: clamp(12px, 1.4vw, 20px);
  bottom: clamp(12px, 1.4vw, 20px);
  z-index: 2;
  padding: 14px 26px;
  background: var(--fg);
  color: var(--bg);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.play:hover .play-badge { background: var(--bg); color: var(--fg); outline: 1px solid var(--fg); }
.play:focus-visible { outline-offset: -6px; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  text-underline-offset: 4px;
}
.video-link:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 900px) {
  .edit-media, .edit-text { grid-column: 1 / -1; order: 0 !important; }
}

/* Words light up as they are read */
.read-word { color: inherit; }

/* Privacy page */
.prose { max-width: 40em; padding: 0 var(--gutter); }
.prose h2 { margin-top: 32px; font-stretch: 88%; font-size: 1.3em; line-height: 1.2; }
.prose p { margin-top: 8px; }
.draft-note { padding: 12px 14px; border: 1px solid var(--fg); }

/* Footer */
.site-footer {
  margin-top: var(--section);
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(20px, 2vw, 32px);
  border-top: 1px solid var(--line);
}
.page-home .site-footer { margin-top: var(--section); }


/* Project viewer */
dialog.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
}
dialog.viewer::backdrop { background: var(--bg); }
.viewer-bar { display: flex; justify-content: flex-end; padding: 8px var(--gutter); }
.viewer-frame { padding: 0 var(--gutter); }
.viewer-frame .frame { max-height: 72svh; }
.viewer-text { padding: 20px var(--gutter) 40px; }
.viewer-text h2 { font-size: clamp(48px, 8vw, 140px); }
.viewer-text p { margin-top: 12px; color: var(--muted); }

/* 404 */
.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--gutter); }
.lost h1 { font-size: min(calc(var(--full) / 1.28), 62svh); }
.lost-line { margin: 16px 0 24px; font-stretch: 88%; font-weight: 500; font-size: clamp(22px, 3vw, 48px); line-height: 1.1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Touch screens: no stuck hover states */
@media (hover: none) {
  .ledger a:hover, .index-row:hover { background: none; color: inherit; }
  .ledger a:hover .ledger-note, .index-row:hover .label { color: var(--muted); }
}

/* Full-frame links: draw the focus ring above the artwork */
.stack-inner:focus-visible, .play:focus-visible { outline: none; box-shadow: none; }
.stack-inner:focus-visible::after, .play:focus-visible::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 5;
  border: 3px solid var(--fg);
  box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 3px var(--bg);
  pointer-events: none;
}

/* Sports video lists */
.videos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px) var(--gap);
  margin-top: clamp(40px, 5vw, 88px);
  padding: 0 var(--gutter);
}
.video-item { grid-column: var(--start) / span var(--span); }
.video-title { margin-top: 12px; font-stretch: 88%; font-weight: 600; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.16; text-wrap: balance; }
.video-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.video-meta .video-link { margin-top: 0; color: var(--fg); }
@media (max-width: 760px) {
  .video-item { grid-column: 1 / -1; }
}

/* Real frames respond to the pointer */
.play img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.play:hover img { transform: scale(1.03); }
.stack-inner img.art { transition: none; }

/* Header and timecode stay readable over any footage */
.site-header {
  mix-blend-mode: normal;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, 0));
}
.timecode {
  mix-blend-mode: normal;
  padding: 3px 7px;
  background: var(--bg);
}

/* Stronger floor under hero text, so it holds on bright frames */
.hero-stage .scrim {
  height: 78%;
  background: linear-gradient(to top, rgba(0, 0, 0, .95), rgba(0, 0, 0, .72) 50%, rgba(0, 0, 0, 0));
}
@media (max-width: 760px) {
  .hero-stage .scrim { height: 85%; }
  .hero-controls { top: calc(var(--header) + 68px); }
  .play-badge { padding: 10px 18px; font-size: 14px; }
}

/* Reels: a looping video over its own still */
.hero video { background: transparent; }
.reel { position: relative; overflow: hidden; background: var(--frame); aspect-ratio: 16 / 9; max-height: 100svh; width: 100%; }
.reel-poster, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video[hidden] { display: none; }
.reel-controls { position: absolute; top: calc(var(--header) + 8px); right: var(--gutter); z-index: 3; display: flex; gap: 8px; }
.reel-controls[hidden] { display: none; }
.reel .scrim { z-index: 1; }
.reel:fullscreen, .reel.is-expanded { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; background: #000; }
.reel:fullscreen .reel-poster, .reel:fullscreen video,
.reel.is-expanded .reel-poster, .reel.is-expanded video { object-fit: contain; }
.reel:fullscreen .reel-controls, .reel.is-expanded .reel-controls { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }

/* Sports: jump links */
/* Shared by Sports and Music, so both lists read at the same size and spacing */
.sports-jump { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 2.6vw, 44px); padding: clamp(12px, 1.4vw, 20px) var(--gutter) clamp(16px, 2vw, 32px); }
.page-title + .sports-jump { padding-top: 0; }
.sports-jump a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: clamp(15px, 1.3vw, 21px); }
.sports-jump a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

/* MLB case study */
.case { margin-bottom: var(--section); }
.case-hero { position: relative; }
.case-hero .reel { aspect-ratio: auto; height: 100svh; min-height: 560px; }
.case-hero .reel .scrim { height: 70%; }
.case-title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(12px, 1.6vw, 24px);
  z-index: 2;
  font-size: calc(var(--full) / 6);
  pointer-events: none;
}
.case-title > span { display: block; white-space: nowrap; }

.case-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) var(--gap);
  padding: clamp(32px, 4vw, 64px) var(--gutter) var(--section);
}
.case-count { grid-column: 1 / -1; color: var(--muted); }
.case-statement { grid-column: 1 / -1; font-size: calc(var(--full) / 9.2); line-height: .94; }
.case-spec { grid-column: 1 / span 6; display: grid; gap: 18px; }
.case-spec div { display: grid; grid-template-columns: minmax(80px, 1fr) 4fr; gap: var(--gap); padding-top: 12px; border-top: 1px solid var(--line); }
.case-spec dt { color: var(--muted); }
.case-desc { grid-column: 8 / -1; font-size: clamp(17px, 1.45vw, 24px); line-height: 1.34; }

.case-chapter { margin-top: var(--section); }
.case-intro + .case-chapter { margin-top: 0; }
.case-word {
  padding: 0 var(--gutter);
  margin-bottom: clamp(16px, 2vw, 32px);
  font-size: calc(var(--full) / var(--fit));
  white-space: nowrap;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--gutter);
}
.case-photo { margin: 0; overflow: hidden; background: var(--frame); }
.case-photo img { display: block; width: 100%; height: auto; }
.bleed { width: 100%; }
.case-mix { display: grid; gap: var(--gap); }
.mix-dirt { grid-column: 1 / span 4; align-self: end; }
.mix-dugout { grid-column: 5 / -1; align-self: end; }
.mix-bloom { grid-column: 1 / span 8; align-self: end; }
.mix-run { grid-column: 9 / -1; align-self: end; }
.reel.tall { aspect-ratio: 9 / 16; max-height: none; }
.reel.tall .scrim { display: none; }
.reel.tall .reel-controls { top: 10px; right: 10px; }
.at-v1 { grid-column: 3 / span 4; }
.at-v2 { grid-column: 7 / span 4; margin-top: clamp(40px, 8vw, 140px); }

/* 49ers: the reel opens the section */
.project-reel .project-media .reel { aspect-ratio: 16 / 9; max-height: 100svh; min-height: 340px; }
.project-reel .project-media .scrim { height: 60%; }

@media (max-width: 760px) {
  .case-hero .reel { height: 92svh; }
  .case-title { font-size: calc(var(--full) / 5.9); }
  .case-statement { font-size: calc(var(--full) / 6.4); }
  .case-spec, .case-desc { grid-column: 1 / -1; }
  .mix-dirt, .mix-dugout, .mix-bloom, .mix-run, .at-v1, .at-v2 { grid-column: 1 / -1; margin-top: 0; }
  .reel-controls { top: calc(var(--header) + 8px); }
  .project-reel .project-media .reel { aspect-ratio: auto; height: 112vw; max-height: 86svh; }
}

/* Music: Photography and Videography */
.medium { margin-bottom: var(--section); }
.photo-set { margin-bottom: var(--section); }
.photo-set:last-child { margin-bottom: 0; }
.photo-set-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap);
  margin: clamp(32px, 4vw, 64px) var(--gutter) clamp(14px, 1.6vw, 24px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.photo-set-head h3 { font-size: clamp(26px, 3vw, 48px); }
.photo-set-head .label { color: var(--muted); white-space: nowrap; }

/* Each photo grows by its own ratio, so a row shares one height and nothing is cropped */
.shots { display: flex; gap: var(--gap); padding: 0 var(--gutter); margin-bottom: var(--gap); }
.shots-bleed { padding: 0; }
.shot {
  position: relative;
  display: block;
  flex: var(--r) 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--frame);
  cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.shot:hover img { transform: scale(1.025); }
.shot:focus-visible { outline: none; box-shadow: none; }
.shot:focus-visible::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--fg); box-shadow: inset 0 0 0 3px var(--bg); }

dialog.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}
dialog.lightbox[open] { display: flex; flex-direction: column; }
dialog.lightbox::backdrop { background: var(--bg); }
.lightbox-bar, .lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 8px var(--gutter); flex: none; }
.lightbox-stage { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

@media (max-width: 760px) {
  .shots { flex-direction: column; }
  .shots-keep { flex-direction: row; }
  .shot { flex: 0 0 auto; width: 100%; }
  .shots-keep .shot { flex: var(--r) 1 0; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
}

/* Videography: every film in a row shares one height, each growing by its own shape.
   Titles are small captions below, so the section heading stays the largest text. */
.films .reel .scrim { display: none; }
.films { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 64px); padding: 0 var(--gutter); }
.films-row { display: flex; gap: var(--gap); align-items: flex-start; }
.films-row > .film, .films-row > .film-stack { flex: var(--r) 1 0; min-width: 0; }
.film-stack { display: flex; flex-direction: column; gap: var(--gap); }
.film { position: relative; min-width: 0; }
.films .reel { width: 100%; max-height: none; }
.film-title {
  margin-top: 10px;
  font-stretch: 88%;
  font-weight: 600;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.15;
}

@media (max-width: 760px) {
  .films-row, .film-stack { flex-direction: column; gap: clamp(28px, 8vw, 40px); }
  .films-row > .film, .films-row > .film-stack { flex: none; width: 100%; }
  /* Vertical films stay a comfortable size on a phone, centered */
  .films .reel.tall { width: 78%; margin-inline: auto; }
  .films .film:has(.reel.tall) .film-title { width: 78%; margin-inline: auto; }
  .film-title { font-size: 20px; }
  .films .reel-controls { top: 8px; right: 8px; }
}

/* Photography: a tight collage, three columns wide (two on phones), nothing cropped */
.collage { columns: 3; column-gap: var(--gap); padding: 0 var(--gutter); }
.collage .shot { display: block; width: 100%; margin-bottom: var(--gap); break-inside: avoid; }
@media (max-width: 760px) {
  .collage { columns: 2; column-gap: 8px; }
  .collage .shot { margin-bottom: 8px; }
}

/* Creative: follows the layout of Emma's previous page */
.creative-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap) clamp(16px, 2.4vw, 44px);
  padding: var(--gap) var(--gutter) var(--section);
}
.creative-tile { display: block; color: var(--fg); text-decoration: none; }
.creative-tile-frame { display: block; overflow: hidden; aspect-ratio: 2 / 3; background: var(--frame); }
.creative-tile-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.creative-tile:hover .creative-tile-frame img { transform: scale(1.03); }
.creative-tile-name { display: block; margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(16px, 1.3vw, 20px); }
.creative-tile:hover .creative-tile-name { text-decoration: underline; text-underline-offset: 4px; }
.creative-next { display: block; margin: var(--section) var(--gutter); padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.creative-next .label { display: block; margin-bottom: 8px; color: var(--muted); }
.creative-next .display { display: block; font-size: clamp(56px, 11vw, 200px); }
.creative-next:hover .display { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .08em; }
@media (max-width: 760px) {
  .page-hero.creative-hero img { object-position: 92% 50%; }
  .creative-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .creative-tile-frame img { transition: none; }
  .creative-tile:hover .creative-tile-frame img { transform: none; }
}

/* Creative galleries: four across, cropped like Emma's old page. The viewer shows the whole photo */
.crop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--gutter); }
.crop-grid .shot img { width: 100%; height: auto; aspect-ratio: var(--tile); object-fit: cover; }
@media (max-width: 760px) {
  .crop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home: the section links sit right under the showreel */
.hero + .index { margin-top: 0; }
.hero + .index .index-row .display { font-size: clamp(52px, 8.4vw, 160px); }

/* Music and Creative: open on a photograph, with smaller section titles so the work comes first */
.page-hero { position: relative; height: 70svh; min-height: 420px; overflow: hidden; background: var(--frame); }
.page-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.page-hero .scrim { height: 45%; }
.page-hero-title { position: absolute; left: var(--gutter); bottom: clamp(10px, 1.4vw, 20px); z-index: 1; font-size: calc(var(--full) / 7); }
.medium > .case-word { font-size: calc(var(--full) / 14); }
@media (max-width: 760px) {
  .page-hero { height: 62svh; }
  .page-hero-title { font-size: calc(var(--full) / 4); }
  .medium > .case-word { font-size: calc(var(--full) / 6); }
}

/* Creative: Emma's words, under the four tiles */
.creative-tiles { padding-bottom: clamp(48px, 7vw, 112px); }
.creative-intro { max-width: 34em; margin-left: auto; padding: 0 var(--gutter) var(--section); font-size: clamp(22px, 2.5vw, 40px); line-height: 1.25; }
@media (max-width: 760px) {
  .creative-intro { margin-left: 0; }
}

/* Sports: the page title stays largest, then the three section titles, then supporting text */
.case-title, .project-title { font-size: calc(var(--full) / 12); }
.case-title > span { display: inline-block; }
.case-statement { font-size: calc(var(--full) / 18); line-height: 1; }
.case-last > .case-word { font-size: calc(var(--full) / 16); }
@media (max-width: 760px) {
  .page-title { font-size: calc(var(--full) / 4); }
  .case-title, .project-title { font-size: calc(var(--full) / 7.5); }
  .case-statement { font-size: calc(var(--full) / 10); }
  .case-last > .case-word { font-size: calc(var(--full) / 9); }
}

/* Home: Emma's photo beside the About text */
.about > .label { grid-column: 1 / -1; }
.about-photo { grid-column: 1 / span 5; display: block; width: 100%; height: auto; }
.about-body { grid-column: 6 / -1; align-self: start; }
.about-bio { font-size: clamp(22px, 2.6vw, 44px); line-height: 1.14; }
@media (max-width: 760px) {
  .about-photo, .about-body { grid-column: 1 / -1; }
}

/* Contact: an invitation, then three clear ways to reach Emma */
.footer-title { font-size: calc(var(--full) / 22); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gap);
  margin-top: clamp(24px, 3vw, 48px);
}
.footer-grid > div { grid-column: span 3; }
.footer-grid > .footer-main { grid-column: span 6; }
.footer-grid .label { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.footer-link { font-size: clamp(18px, 1.6vw, 26px); line-height: 1.25; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(16px, 2vw, 32px); }
.footer-link:hover { text-decoration-thickness: 2px; }
.footer-link { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.text-button { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--fg); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); margin-top: clamp(40px, 6vw, 88px); padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .footer-title { font-size: calc(var(--full) / 10); }
  .footer-grid > div, .footer-grid > .footer-main { grid-column: 1 / -1; }
}

/* iPhone: one calmer type scale, so no heading crowds the work */
@media (max-width: 760px) {
  .hero-name { font-size: calc(var(--full) / 5.2); }
  .page-title, .page-hero-title { font-size: calc(var(--full) / 5.4); }
  .edits-title { font-size: calc(var(--full) / 8.5); overflow-wrap: normal; word-break: normal; hyphens: none; }
  .index-row .display, .hero + .index .index-row .display { font-size: calc(var(--full) / 8.5); }
  .stack-title, .case-title, .project-title, .medium > .case-word, .creative-next .display { font-size: calc(var(--full) / 8.5); }
  .recognition-number { font-size: calc(var(--full) / 3); }
  .case-last > .case-word { font-size: calc(var(--full) / 10); }
  .edit-text h2 { font-size: calc(var(--full) / 11); }
  .case-statement, .footer-title { font-size: calc(var(--full) / 12); }
}

/* iPhone: smaller video buttons that cover less of the film, with the same 44px tap area */
@media (max-width: 760px) {
  .hero-controls { top: calc(var(--header) + 4px); }
  .reel-controls .control, .hero-controls .control {
    position: relative;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }
  .reel-controls .control::after, .hero-controls .control::after {
    content: "";
    position: absolute;
    inset: -5px -2px;
  }
}

/* Short screens (small iPhones, or any iPhone held sideways): keep your name on the first screen */
@media (max-height: 640px) {
  .hero, .page-hero { height: 100svh; min-height: 0; }
  .case-hero .reel { height: 100svh; min-height: 0; }
}
