/* ==========================================================================
   Korrine Lee — site styles
   Dark / light section rhythm, grotesk display type, mono labels and a
   single accent colour (switchable with the "C" key).
   ========================================================================== */

:root {
  --ink: #141314;
  --paper: #eeeeee;
  --card: #f7f7f7;
  --panel: #2a292a;
  --mat: #e4e3e1;
  --muted-dark: #8b8a8b;
  --muted-light: #6a696a;
  --accent: #fd551d;
  --accent-ink: #141314;

  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-logo: "Bungee", "Inter Tight", ui-sans-serif, sans-serif;

  --gutter: clamp(16px, 1.7vw, 28px);
  --header-h: 60px;
  --header-inset: 12px;
  --section-pad: clamp(96px, 11vw, 190px);

  --fs-h1: clamp(46px, 6.5vw, 112px);
  --fs-h2: clamp(38px, 4.6vw, 78px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-lead: clamp(20px, 1.9vw, 30px);
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-mono: clamp(12px, 0.84vw, 14px);

  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
canvas,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

[data-theme="dark"] {
  background: var(--ink);
  color: var(--paper);
  --muted: var(--muted-dark);
  --line: rgba(238, 238, 238, 0.14);
  --surface: #1d1c1d;
}

[data-theme="light"] {
  background: var(--paper);
  color: var(--ink);
  --muted: var(--muted-light);
  --line: rgba(20, 19, 20, 0.16);
  --surface: var(--card);
}

.container {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 96px);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.mono,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.eyebrow--accent { color: var(--accent); }
.muted { color: var(--muted); }

.sq {
  display: inline-block;
  flex: none;
  width: 0.62em;
  height: 0.62em;
  background: var(--accent);
}

.prose p + p { margin-top: 1em; }

.eyebrow + .h1,
.eyebrow + .h2,
.eyebrow + .page-hero__title { margin-top: 18px; }
.prose { color: var(--muted); max-width: 46ch; }
.prose strong { color: inherit; font-weight: 500; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn {
  --h: 40px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 15px;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}

/* Text roll on hover: the shadow copy sits one button-height below. */
.btn__label {
  display: block;
  line-height: var(--h);
  text-shadow: 0 var(--h) currentColor;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover .btn__label { transform: translateY(calc(var(--h) * -1)); }

.btn--icon { width: var(--h); padding: 0; }
.btn--icon::before,
.btn--icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.55s var(--ease-out);
}
.btn--icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.btn--icon:hover::before { transform: translate(-50%, -50%) rotate(180deg); }
.btn--icon:hover::after { transform: translate(-50%, -50%) rotate(270deg); }

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }

.link {
  display: inline;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* --------------------------------------------------------------------------
   Preloader / page transition
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  transform-origin: 0 100%;
  transition: transform 1.05s var(--ease);
}

html:not(.js) .preloader { display: none; }
html.is-loaded .preloader { transform: translateX(calc(100% + 45vh)) skewX(-14deg); pointer-events: none; }
html.is-loaded .preloader.is-covering { transform: none; pointer-events: auto; }
html.is-loaded .preloader.is-before {
  transform: translateX(calc(-100% - 45vh)) skewX(-14deg);
  transition: none;
}

.preloader__inner {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 96px;
}

.preloader__blocks {
  display: flex;
  gap: 2px;
  height: 13px;
}

.preloader__blocks i {
  width: 13px;
  height: 13px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s steps(3);
}
.preloader__blocks i.is-on { transform: none; }

.preloader__label {
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: var(--header-inset);
  left: var(--header-inset);
  right: var(--header-inset);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 10px 0 14px;
  color: var(--paper);
  transition: color 0.45s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(46, 45, 46, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.45s, background-color 0.45s;
}

.site-header.is-scrolled::before { opacity: 1; }
.site-header[data-on="light"] { color: var(--ink); }
.site-header[data-on="light"]::before { background: rgba(214, 213, 213, 0.84); }

.menu-open .site-header { color: var(--paper); }
.menu-open .site-header::before { opacity: 0; }

.logo {
  position: relative;
  justify-self: start;
  display: inline-grid;
  height: 22px;
  overflow: hidden;
  font-family: var(--font-logo);
  font-size: 19px;
  line-height: 22px;
  letter-spacing: 0.02em;
}

.logo__word {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease);
}

.logo__word--alt { transform: translateY(105%); }
.menu-open .logo__word:not(.logo__word--alt) { transform: translateY(-105%); }
.menu-open .logo__word--alt { transform: none; }

.menu-toggle {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding-inline: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.menu-toggle__label {
  display: inline-grid;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3;
}

.menu-toggle__label > span {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease);
}
.menu-toggle__label > span + span { transform: translateY(105%); }
.menu-open .menu-toggle__label > span:first-child { transform: translateY(-105%); }
.menu-open .menu-toggle__label > span + span { transform: none; }

.menu-toggle__icon {
  position: relative;
  width: 15px;
  height: 8px;
}

.menu-toggle__icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.6s var(--ease), top 0.6s var(--ease);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 6.5px; }
.menu-open .menu-toggle__icon i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 3.25px; transform: rotate(-45deg); }

.header-cta { justify-self: end; }

/* --------------------------------------------------------------------------
   Menu overlay
   -------------------------------------------------------------------------- */

.menu {
  position: fixed;
  z-index: 950;
  inset: var(--header-inset);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: var(--gutter);
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) var(--gutter) var(--gutter);
  background: var(--panel);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s 0.8s;
  --muted: var(--muted-dark);
  --line: rgba(238, 238, 238, 0.14);
}

.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease), visibility 0s;
}

.menu__nav { display: grid; align-content: start; gap: 2px; }

.menu__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-left: clamp(30px, 3vw, 46px);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.12;
  opacity: 0;
  transform: translateY(40%);
  transition: color 0.3s, opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.menu-open .menu__nav a {
  opacity: 1;
  transform: none;
  transition-delay: 0s, calc(0.18s + var(--i, 0) * 0.06s), calc(0.18s + var(--i, 0) * 0.06s);
}

.menu__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(14px, 1.4vw, 22px);
  height: clamp(14px, 1.4vw, 22px);
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.45s var(--ease-out);
}

.menu__nav a:hover,
.menu__nav a[aria-current="page"] { color: var(--accent); }
.menu__nav a:hover::before,
.menu__nav a[aria-current="page"]::before { transform: translateY(-50%) scale(1); }

.menu__info {
  display: grid;
  align-content: start;
  gap: 28px;
  font-size: 15px;
  line-height: 1.45;
}

.menu__info .eyebrow { margin-bottom: 8px; color: var(--muted); }
.menu__info a { width: fit-content; }

.status-list { display: grid; gap: 6px; }
.status-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.menu__card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.menu__card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1d1c1d;
}

.menu__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
  transition: filter 0.6s, transform 1.2s var(--ease-out);
}
.menu__card:hover img { filter: none; transform: scale(1); }
.menu__card .eyebrow { color: var(--muted); transition: color 0.3s; }
.menu__card:hover .eyebrow { color: var(--accent); }

/* --------------------------------------------------------------------------
   Reveal helpers
   -------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

html.js [data-block-reveal]:not(.is-shown) { visibility: hidden; }
[data-block-reveal] { position: relative; }

.br-bar,
.br-cursor {
  position: absolute;
  pointer-events: none;
}
.br-cursor { background: var(--accent); }

.scr { color: var(--accent); }

/* fail-safe: if the script never runs, show everything */
html.no-anim [data-reveal],
html.no-anim [data-block-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   Hero (home): full-bleed photo, copy at the bottom left
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.06);
  transition: transform 2.6s var(--ease-out);
}
html.is-loaded .hero__img { transform: none; }

/* darken the left and bottom edges so the copy stays legible over the photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 19, 20, 0.62), rgba(20, 19, 20, 0) 62%),
    linear-gradient(to bottom, rgba(20, 19, 20, 0.45), rgba(20, 19, 20, 0) 24%, rgba(20, 19, 20, 0) 46%, rgba(20, 19, 20, 0.82));
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: clamp(72px, 8vw, 128px);
}

.hero__copy { max-width: min(800px, 62vw); }
.hero__title { margin-bottom: clamp(24px, 2.6vw, 40px); }

.hero__lede {
  max-width: 34em;
  margin-bottom: clamp(28px, 3vw, 44px);
  color: rgba(238, 238, 238, 0.88);
  font-size: clamp(16px, 1.2vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.ascii-canvas {
  width: 100%;
  height: 100%;
}

.hero__caption {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(20px, 2.4vw, 34px);
  color: rgba(238, 238, 238, 0.72);
  text-align: right;
}

/* "Recognized by" row (about) */
.marks__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(18px, 2.4vw, 40px);
  max-width: min(820px, 60vw);
}

.marks__label { color: var(--muted); }

.mark {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.mark--italic { font-style: italic; font-weight: 500; }
.mark--mono { font-family: var(--font-mono); font-size: clamp(13px, 1vw, 16px); font-weight: 500; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   Why I keep going back + stats strip (odometers)
   -------------------------------------------------------------------------- */

.ground__note {
  max-width: 30em;
  margin: clamp(40px, 5vw, 72px) 0 0 auto;
  font-size: clamp(16px, 1.15vw, 19px);
}

.ground__stats { margin-top: clamp(64px, 8vw, 128px); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
}

.stats__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #d9d8d8;
}

.stats__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 100%;
  padding: clamp(18px, 2vw, 30px);
  background: var(--card);
}

.stat__num {
  font-size: clamp(48px, 5.4vw, 92px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.stat__label { max-width: 15em; }

.odo { display: inline-flex; }

.odo__col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.odo__strip {
  display: flex;
  flex-direction: column;
  transition: transform 2.2s var(--ease);
  transition-delay: var(--d, 0s);
}

.odo__strip span { height: 1em; line-height: 1; }

/* --------------------------------------------------------------------------
   Project chapters (home)
   -------------------------------------------------------------------------- */

.chapter__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}

.chapter__head .h2 { max-width: 10em; }
.chapter__intro { max-width: 34em; font-size: clamp(16px, 1.15vw, 19px); }

/* photo rows: each figure grows in proportion to its aspect ratio, so a row shares one height */
.collage { display: grid; gap: clamp(10px, 1vw, 16px); }
.collage__row { display: flex; gap: clamp(10px, 1vw, 16px); }

.collage__row figure {
  flex: var(--ar) 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
}

.collage__row img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
}

.collage__caption { color: var(--muted); }

.chapter__kicker { margin-top: clamp(72px, 9vw, 160px); color: var(--muted); }

.callout {
  max-width: 21em;
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.callout .sq { margin-right: 0.3em; vertical-align: 0.06em; }

/* words light up one by one as the callout scrolls past */
[data-fill].is-split .fill__word { opacity: 0.18; transition: opacity 0.45s ease; }
[data-fill].is-split .fill__word.is-lit { opacity: 1; }

.chapter__next {
  margin-top: clamp(32px, 4vw, 56px);
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
}
.chapter__next .link { color: var(--paper); margin-left: 6px; }

.next .callout { max-width: 23em; }

.next__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(40px, 5vw, 72px);
}

.next__foot .prose { max-width: 34em; font-size: clamp(16px, 1.15vw, 19px); }

/* --------------------------------------------------------------------------
   Artwork frames (work page)
   -------------------------------------------------------------------------- */

.work-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--mat);
}

.work-frame img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 84%;
  object-fit: contain;
  box-shadow: 0 30px 60px -28px rgba(20, 19, 20, 0.55), 0 8px 18px -10px rgba(20, 19, 20, 0.35);
  transition: transform 1.2s var(--ease-out);
}

a.work-frame:hover img,
button.work-frame:hover img { transform: scale(1.03); }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 16px;
}

.work-meta__title {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.05vw, 17px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Other projects (home)
   -------------------------------------------------------------------------- */

.project {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
}

.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  background: var(--mat);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.project:hover .project__media img { transform: scale(1.03); }

.project__media--poster img { object-fit: contain; padding: 5% 0; }

.project__media--type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 28px);
  background: var(--ink);
  color: var(--paper);
}

.project__type {
  font-size: clamp(36px, 3.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.project__media--type .mono { color: var(--accent); }

/* the title link covers the whole card */
.project__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project__text {
  max-width: 30em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.project__more { color: var(--muted); transition: color 0.3s; }
.project:hover .project__more { color: var(--accent); }

.project--art {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(64px, 7vw, 112px);
}

.project__body { display: grid; gap: 12px; }

.project__trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 0.8vw, 12px);
}

.project__trio span {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--mat);
}

.project__trio img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 82%;
  box-shadow: 0 24px 48px -24px rgba(20, 19, 20, 0.55), 0 6px 14px -8px rgba(20, 19, 20, 0.35);
  transition: transform 1.2s var(--ease-out);
}
.project--art:hover .project__trio img { transform: scale(1.03); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 96px) clamp(18px, 2vw, 32px);
}

/* --------------------------------------------------------------------------
   Accordion (résumé)
   -------------------------------------------------------------------------- */

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  text-align: left;
}

.acc__q {
  font-family: var(--font-mono);
  font-size: clamp(13px, 0.95vw, 15px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.acc__icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(180deg); }
.acc__item.is-open .acc__icon::before { transform: rotate(180deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

.acc__inner { overflow: hidden; }

.acc__content {
  max-width: 52em;
  padding: 0 0 28px;
  color: var(--muted);
}

.acc__content ul { display: grid; gap: 8px; }
.acc__content li {
  position: relative;
  padding-left: 20px;
}
.acc__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Contact CTA
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
}

.contact__title { margin-bottom: clamp(32px, 4vw, 64px); }

.contact__photo {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  max-width: 640px;
  background: #d9d8d8;
}

.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.contact__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: clamp(8px, 1vw, 16px);
}

.contact__lead { max-width: 15em; margin-bottom: clamp(32px, 4vw, 56px); }
.contact__details { display: grid; gap: 4px; margin-bottom: 28px; }
.contact__details a { width: fit-content; }

/* email lines stay out until CONTACT_EMAIL is set in main.js */
[data-email-group][hidden] { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 120px);
}

.footer__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gutter);
}

.footer__lead { margin-bottom: 16px; font-size: 16px; }

.footer__nav {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--paper); }

.footer__links {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  text-align: right;
}

.footer__toggles {
  display: grid;
  justify-items: end;
  gap: 8px;
  margin-top: 26px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: lowercase;
  transition: color 0.3s;
}
.toggle:hover { color: var(--paper); }

.toggle kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  background: #2b2a2b;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.footer__art {
  position: relative;
  z-index: 1;
  height: clamp(200px, 26vw, 420px);
  margin-top: clamp(24px, 3vw, 48px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

.footer__caption {
  position: absolute;
  left: var(--gutter);
  top: 24%;
  color: var(--muted);
}

.footer__copy {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer__wordmark {
  position: relative;
  z-index: 0;
  margin-top: 8px;
  margin-bottom: -0.22em;
  color: #262526;
  font-size: clamp(64px, 17.4vw, 330px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Grid overlay (press G)
   -------------------------------------------------------------------------- */

.grid-overlay {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: none;
  pointer-events: none;
}

.grid-overlay .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  height: 100%;
}

.grid-overlay span {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent) 40%, transparent),
    inset -1px 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
}

html.show-grid .grid-overlay { display: block; }

/* --------------------------------------------------------------------------
   Work page
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92vh;
  min-height: 92svh;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.page-hero__copy { max-width: min(720px, 56vw); }
.page-hero__title { font-size: clamp(76px, 13vw, 230px); line-height: 0.9; letter-spacing: -0.065em; margin-bottom: 28px; }
.page-hero__lede { max-width: 32em; color: var(--muted); }

.page-hero__art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.filter:hover { box-shadow: inset 0 0 0 1px currentColor; }
.filter[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
.filter__count { color: var(--muted); }
.filter[aria-pressed="true"] .filter__count { color: var(--accent); }

.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 110px) clamp(18px, 2vw, 32px);
}

.work-card { transition: opacity 0.5s; }
.work-card[hidden] { display: none; }
.work-card .work-frame { width: 100%; }
.work-card--wide { grid-column: 1 / -1; }
.work-card--wide .work-frame { aspect-ratio: 16 / 7.5; }

.work-card__num { color: var(--accent); }

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 96px);
}

.statement__text {
  font-size: clamp(24px, 2.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: pretty;
}

.statement__text .muted { color: var(--muted); }

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.45fr);
  gap: 18px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.row__title { font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.row__detail { color: var(--muted); }
.row__date { text-align: right; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
  --muted: var(--muted-dark);
  --line: rgba(238, 238, 238, 0.14);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-out), visibility 0s;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(72px, 7vw, 110px) clamp(20px, 4vw, 72px);
  background: #1a191a;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(72px, 7vw, 110px));
  object-fit: contain;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
}
.lightbox__stage img.is-ready { opacity: 1; transform: none; }

.lightbox__panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: calc(var(--header-h) + 40px) clamp(20px, 2.4vw, 36px) clamp(20px, 2.4vw, 36px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
}

.lightbox__title { font-size: clamp(30px, 2.8vw, 44px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; }

.specs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { font-size: 15px; }

.lightbox__text { color: var(--muted); }

.lightbox__nav {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
}

.lightbox__close {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-inset) + 10px);
  right: calc(var(--header-inset) + 10px);
}

.lightbox__count {
  position: absolute;
  left: clamp(20px, 4vw, 72px);
  top: calc(var(--header-inset) + 22px);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.06);
  transition: transform 2.6s var(--ease-out);
}
html.is-loaded .about-hero__img { transform: none; }

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20, 19, 20, 0.45), rgba(20, 19, 20, 0) 55%),
    linear-gradient(to bottom, rgba(20, 19, 20, 0.45), rgba(20, 19, 20, 0) 30%, rgba(20, 19, 20, 0) 45%, rgba(20, 19, 20, 0.75));
}

.about-hero__copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(16px, 2vw, 28px);
}

.about-hero .eyebrow { color: rgba(238, 238, 238, 0.82); }

.about-hero__copy .h1 { max-width: 12em; }

.about-hero__wordmark {
  position: relative;
  z-index: 2;
  margin-bottom: -0.2em;
  color: rgba(238, 238, 238, 0.86);
  mix-blend-mode: overlay;
  font-size: clamp(64px, 17.4vw, 330px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-align: center;
  white-space: nowrap;
}

.trusted {
  padding-block: clamp(48px, 5vw, 80px);
}

.trusted .marks__row {
  justify-content: center;
  max-width: none;
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
  width: min(100%, 1240px);
  margin-inline: auto;
}

.story__photo {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #d9d8d8;
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.story__copy .h2 { margin-bottom: 14px; }
.story__copy .eyebrow { margin-bottom: clamp(28px, 3vw, 44px); }
.story__copy .prose { max-width: 36em; color: inherit; font-size: clamp(16px, 1.15vw, 19px); }
.story__copy .prose p { color: var(--muted); }
.story__copy .prose p:first-child { color: inherit; font-size: 1.18em; letter-spacing: -0.02em; line-height: 1.4; }
.story__sign { margin-top: 32px; }

/* Research spotlight */
.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.spotlight__tags { margin: 18px 0 30px; color: var(--muted); }
.spotlight__lead { max-width: 21em; margin-bottom: clamp(32px, 4vw, 56px); }

.points { display: grid; border-top: 1px solid var(--line); }
.points li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.points li > span:first-child { color: var(--accent); font-family: var(--font-mono); font-size: 13px; padding-top: 3px; }

.scope {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1b1a1b;
}
.scope canvas { width: 100%; height: 100%; }
.scope__hud {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(238, 238, 238, 0.62);
}
.scope__hud div { display: flex; justify-content: space-between; gap: 12px; }
.scope__note { margin-top: 12px; color: var(--muted); }

/* Main-project teaser */
.teaser__photo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.teaser__photo img { width: 100%; height: 100%; object-fit: cover; }
.teaser__photo figcaption { margin-top: 12px; color: var(--muted); }
.teaser .spotlight__lead { margin-top: clamp(20px, 2vw, 32px); }
.teaser .btn-group { margin-top: clamp(28px, 3vw, 44px); }

/* Experience */
.xp { display: grid; gap: clamp(56px, 6vw, 96px); }

.xp__group {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 80px);
  align-items: start;
}

.xp__label {
  position: sticky;
  top: calc(var(--header-h) + 48px);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.xp__label .muted { margin-left: 4px; }

.xp-item .acc__btn {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
  gap: 16px 24px;
  align-items: baseline;
  padding: 20px 0;
}

.xp-item__org { font-size: clamp(17px, 1.4vw, 22px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.xp-item__role { color: var(--muted); }
.xp-item__date { color: var(--muted); white-space: nowrap; }

/* Field gallery */
.rail-wrap { position: relative; }

.rail {
  display: flex;
  gap: clamp(10px, 1vw, 16px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }

.rail__item {
  flex: none;
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
}

.rail__media {
  height: clamp(300px, 54vh, 600px);
  overflow: hidden;
  background: #1d1c1d;
}

.rail__media img,
.rail__media video {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* inline-size containment: a long caption wraps instead of widening a portrait clip's slot */
.rail__caption { color: var(--muted); max-width: 32ch; contain: inline-size; }

.rail__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.rail__progress {
  position: relative;
  flex: 1;
  max-width: 420px;
  height: 1px;
  background: var(--line);
}
.rail__progress span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0.1);
}

/* Music block */
.music__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.music__lead { max-width: 24em; margin: 22px 0 clamp(32px, 4vw, 52px); }
.music__label { margin-bottom: 12px; color: var(--muted); }
.music__media { display: grid; gap: 12px; }
.music__hero { display: grid; gap: 8px; }
.music__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1d1c1d; }

.clip {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1d1c1d;
}

.clip video { width: 100%; height: 100%; object-fit: cover; }

.clip__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 56px 14px 14px;
  background: linear-gradient(to top, rgba(20, 19, 20, 0.72), rgba(20, 19, 20, 0));
  color: var(--paper);
}

.clip__label { max-width: 26em; }

.music__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.music__photos figure { display: grid; gap: 8px; align-content: start; }
.music__photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #1d1c1d; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .menu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: min-content; overflow-y: auto; }
  .menu__card { display: none; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__photo { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
  .stat { min-height: 210px; }
  .chapter__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project--art { grid-template-columns: minmax(0, 1fr); }
  .xp__group { grid-template-columns: minmax(0, 1fr); }
  .xp__label { position: static; }
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .story__photo { position: relative; top: 0; max-width: 560px; }
}

@media (max-width: 860px) {
  :root { --header-h: 54px; --header-inset: 8px; }

  .header-cta .btn:not(.btn--icon) { display: none; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 8px; }
  .menu-toggle { justify-self: end; }

  .menu { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  /* home: the photo fills the screen, copy sits on a deeper bottom shade, caption moves under the header */
  .hero__img { object-position: 46% 50%; }
  .hero::after {
    background: linear-gradient(to bottom, rgba(20, 19, 20, 0.5), rgba(20, 19, 20, 0) 20%, rgba(20, 19, 20, 0.22) 40%, rgba(20, 19, 20, 0.9) 72%);
  }
  .hero__inner { padding-bottom: 48px; }
  .hero__copy,
  .page-hero__copy { max-width: none; }
  .hero__caption { top: calc(var(--header-h) + var(--header-inset) + 14px); bottom: auto; }
  .marks__row { max-width: none; }

  .collage__row { flex-direction: column; }
  .collage__row figure { flex: none; }
  .callout { font-size: clamp(26px, 7.2vw, 40px); }

  .projects__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }

  .contact__grid,
  .spotlight__grid,
  .music__grid,
  .statement { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { justify-items: start; }
  .footer__links,
  .footer__toggles { justify-items: start; text-align: left; }
  .footer__copy { margin-top: -20px; }
  .footer__caption { display: none; }

  /* work: artwork sits under the header, filters stay next to the grid */
  .page-hero__inner { justify-content: flex-start; min-height: 0; padding-top: 12px; }
  .page-hero__art { position: relative; width: 100%; height: min(86vw, 460px); }
  .page-hero { min-height: 0; }

  .works { grid-template-columns: minmax(0, 1fr); }
  .work-card--wide .work-frame { aspect-ratio: 16 / 10.5; }

  .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .row__date { text-align: left; }

  .xp-item .acc__btn { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .xp-item__role,
  .xp-item__date { grid-column: 1; }
  .xp-item .acc__icon { grid-column: 2; grid-row: 1; }

  .lightbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .lightbox__stage { padding: 72px 16px 24px; }
  .lightbox__stage img { max-height: 62vh; }
  .lightbox__panel { padding: 24px 16px 32px; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }

  .rail__media { height: 62vw; max-height: 440px; min-height: 260px; }
}

@media (max-width: 560px) {
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .stats__photo { grid-row: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .stat { min-height: 180px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .music__photos { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
