@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: local("Cormorant Garamond Medium"), local("CormorantGaramond-Medium"),
       url("../fonts/CormorantGaramond-Medium.woff") format("woff"), url("../fonts/CormorantGaramond-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: local("Cormorant Garamond Medium Italic"), local("CormorantGaramond-MediumItalic"),
       url("../fonts/CormorantGaramond-MediumItalic.woff") format("woff"), url("../fonts/CormorantGaramond-MediumItalic.ttf") format("truetype");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --ink: #0d0c0a;
  --ink-2: #171613;
  --ink-3: #24221e;
  --paper: #efe9dd;
  --paper-dim: rgba(239, 233, 221, .56);
  --paper-faint: rgba(239, 233, 221, .16);
  --accent: #65000b; /* Magnus Rosewood */

  /* Headers: Cormorant Garamond Medium (self-hosted, SIL OFL).
     Body: SF Mono — Apple's license doesn't allow hosting it, so it's named first
     and used wherever it's installed (Apple devices); others fall back to Menlo/Consolas. */
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--paper); }

.mono, .site-nav, .brand-meta, .hud, .caption-meta, .intro-top, .intro-sub, .enter,
.loader-label, .index-head, .index-row, .meta-label, .panel-close, .kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* subtle film grain for warmth */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--ink); transition: opacity .6s var(--ease), visibility .6s;
}
.loader-count { font-size: clamp(56px, 10vw, 128px); font-weight: 700; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader-of { font-size: .28em; color: var(--paper-dim); margin-left: .3em; vertical-align: top; letter-spacing: 0; }
.loader-label { color: var(--paper-dim); }
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; padding: var(--pad);
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: start; gap: 20px;
  pointer-events: none; opacity: 0; transform: translateY(-8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.site-header > * { pointer-events: auto; }
body.is-wall .site-header { opacity: 1; transform: none; }
.brand { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: .92; letter-spacing: -.02em; text-transform: uppercase; }
.brand:hover .brand-mark:last-child { color: var(--accent); }
.brand-meta { display: flex; flex-direction: column; gap: 3px; color: var(--paper-dim); padding-top: 1px; }
.site-nav { display: flex; gap: 22px; justify-self: end; grid-column: -2; }
.site-nav a { position: relative; color: var(--paper-dim); transition: color .2s; padding-bottom: 4px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--paper); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav-contact { color: var(--accent) !important; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto auto; padding: var(--pad);
}
.intro-top { display: flex; justify-content: space-between; color: var(--paper-dim); }
.intro-name {
  align-self: center; justify-self: center; margin: 0; text-align: center;
  font-size: clamp(64px, 15vw, 260px); font-weight: 800; line-height: .82; letter-spacing: -.055em;
  text-transform: uppercase; font-variation-settings: "opsz" 96;
  mix-blend-mode: difference;
}
.intro-name .word { display: block; white-space: nowrap; }
.intro-name .ch { display: inline-block; will-change: transform, opacity; }
.intro-name .ch--accent { color: var(--accent); mix-blend-mode: normal; }
.intro-sub { text-align: center; color: var(--paper-dim); padding-bottom: 18px; }
.intro-bottom { display: flex; justify-content: center; }
.enter { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.enter-track { width: clamp(90px, 16vw, 200px); height: 1px; background: var(--paper-faint); position: relative; overflow: hidden; }
.enter-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.enter-pct { font-variant-numeric: tabular-nums; color: var(--paper-dim); min-width: 4ch; }
.enter:hover .enter-label { color: var(--accent); }
.enter-label::after { content: " ↓"; display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
body.is-wall .intro { visibility: hidden; }

/* ==========================================================================
   Stage / wall
   ========================================================================== */
.stage {
  position: fixed; inset: 0; z-index: 10; perspective: 1100px; perspective-origin: 50% 50%;
  overflow: hidden; cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.tile {
  position: absolute; left: 50%; top: 50%;
  will-change: transform, opacity; backface-visibility: hidden;
  border-radius: 3px; overflow: hidden; background: var(--ink-2);
  user-select: none; -webkit-user-drag: none;
}
.tile-media { width: 100%; height: 100%; opacity: 0; transform: scale(1.06);
  transition: opacity .7s var(--ease), transform .9s var(--ease); }
.stage.is-ready .tile-media { opacity: 1; transform: none; }
.stage.is-swapping .tile-media { opacity: 0 !important; transform: scale(.94) !important; transition-duration: .28s; transition-delay: 0s !important; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* spotlight: other tiles dim when one is hovered */
.tile::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.stage.has-hover .tile:not(.is-hover)::after { opacity: .68; }
.tile.is-hover { outline: 1px solid var(--accent); outline-offset: 0; }
.tile-tag { position: absolute; left: 8px; top: 8px; z-index: 2; font-family: var(--f-mono); font-size: 9px; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 3px 5px 2px; border-radius: 2px; opacity: 0; transition: opacity .25s; }
.tile.is-hover .tile-tag { opacity: 1; }

.empty { position: fixed; inset: 0; z-index: 11; display: grid; place-content: center; font-size: clamp(20px, 3vw, 34px); letter-spacing: -.02em; opacity: 0; pointer-events: none; transition: opacity .3s; text-align: center; padding: var(--pad); }
.empty.is-on { opacity: 1; pointer-events: auto; }
.empty button { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   HUD: caption, filters, readouts
   ========================================================================== */
.caption {
  position: fixed; left: 50%; bottom: calc(var(--pad) + 104px); z-index: 30; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.caption.is-on { opacity: 1; }
.caption-title { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.caption-meta { color: var(--paper-dim); }

.hud {
  position: fixed; inset: auto 0 0; z-index: 30; padding: var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s;
}
body.is-wall .hud { opacity: 1; transform: none; }
body.is-wall .hud .filters { pointer-events: auto; }
.hud-left { color: var(--paper-dim); white-space: nowrap; }
.hud-right { justify-self: end; white-space: nowrap; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.filter-row { display: flex; gap: 4px; flex-wrap: nowrap; }
.chip {
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  padding: 6px 10px 5px; border-radius: 99px; color: var(--paper-dim);
  border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; white-space: nowrap;
}
.chip sup { font-size: 8px; margin-left: 2px; opacity: .7; }
.chip:hover { color: var(--paper); }
.chip.is-active { color: var(--ink); background: var(--paper); }
.chip.is-empty { opacity: .3; }
.filter-row--source .chip { font-size: 12px; padding: 8px 14px 7px; border-color: var(--paper-faint); }
.filter-row--source .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.filter-label { color: var(--paper-faint); align-self: center; padding: 0 6px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }

/* ==========================================================================
   Panels (index / project / about)
   ========================================================================== */
.panel {
  position: fixed; inset: 0; z-index: 35; background: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;
  clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease-io);
}
.panel.is-open { clip-path: inset(0 0 0 0); }
.panel[hidden] { display: block; visibility: hidden; }
.panel-inner { padding: 110px var(--pad) 80px; max-width: 1600px; margin: 0 auto; }

/* Index */
.panel--index { padding: 110px var(--pad) 140px; }
.index-head, .index-row {
  display: grid; grid-template-columns: 48px minmax(0, 2.2fr) minmax(0, 1.6fr) 110px minmax(0, 1.4fr) 60px; gap: 16px; align-items: baseline;
}
.index-head { color: var(--paper-dim); padding-bottom: 10px; border-bottom: 1px solid var(--paper-faint); }
.index-head span:last-child, .index-row > :last-child { text-align: right; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-row { padding: 14px 0 12px; border-bottom: 1px solid var(--paper-faint); color: var(--paper-dim); position: relative; transition: color .2s, padding .35s var(--ease); }
.index-row .index-title { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 34px); text-transform: none; letter-spacing: -.02em; color: var(--paper); font-weight: 500; line-height: 1.05; }
.index-row:hover { color: var(--paper); padding-left: 12px; }
.index-row:hover .index-title { color: var(--accent); }
.index-preview {
  position: fixed; left: 0; top: 0; z-index: 38; width: clamp(200px, 22vw, 340px); aspect-ratio: 3 / 2; object-fit: cover;
  pointer-events: none; opacity: 0; border-radius: 3px; transition: opacity .2s; will-change: transform;
}
.index-preview.is-on { opacity: 1; }

/* Project */
.panel-close {
  position: fixed; right: var(--pad); top: calc(var(--pad) + 44px); z-index: 5; display: flex; gap: 8px; align-items: center;
  padding: 8px 12px 7px; border: 1px solid var(--paper-faint); border-radius: 99px; background: rgba(13, 12, 10, .7); backdrop-filter: blur(8px);
}
.panel-close:hover { border-color: var(--accent); color: var(--accent); }
.kicker { color: var(--paper-dim); display: flex; gap: 14px; flex-wrap: wrap; }
.kicker .dot { color: var(--accent); }
.project-title { font-size: clamp(48px, 10vw, 180px); font-weight: 800; letter-spacing: -.05em; line-height: .86; margin: 18px 0 36px; text-transform: uppercase; }
.project-hero { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin: 44px 0 64px; }
.project-meta { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; align-content: start; }
.meta-label { display: block; color: var(--paper-dim); margin-bottom: 6px; }
.meta-val { font-size: 17px; }
.project-summary { grid-column: 7 / -1; font-size: clamp(20px, 2vw, 30px); line-height: 1.22; letter-spacing: -.015em; margin: 0; }
.project-summary p { margin: 0 0 .8em; }
.project-summary .filler { color: var(--paper-dim); font-size: .6em; line-height: 1.5; letter-spacing: 0; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-full { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.g-half { grid-column: span 6; aspect-ratio: 4 / 5; }
.g-wide { grid-column: span 8; aspect-ratio: 4 / 3; }
.g-narrow { grid-column: span 4; aspect-ratio: 2 / 3; }
.next-project { display: block; margin-top: 110px; padding-top: 28px; border-top: 1px solid var(--paper-faint); }
.next-project .kicker { margin-bottom: 12px; }
.next-title { font-size: clamp(40px, 8vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: .86; text-transform: uppercase; transition: color .25s; }
.next-project:hover .next-title { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.about-lede { grid-column: 1 / span 9; font-size: clamp(30px, 4.4vw, 76px); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin: 18px 0 60px; }
.about-lede em { font-style: normal; color: var(--accent); }
.about-portrait { grid-column: 1 / span 4; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 28px; align-content: start; }
.about-body .span-2 { grid-column: 1 / -1; }
.about-bio p { font-size: 18px; line-height: 1.45; margin: 0 0 1em; max-width: 60ch; }
.about-list { list-style: none; margin: 0; padding: 0; }
.about-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 9px; border-bottom: 1px solid var(--paper-faint); font-size: 15px; }
.about-list li span:last-child { color: var(--paper-dim); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; white-space: nowrap; }
.cap-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-list span { border: 1px solid var(--paper-faint); border-radius: 99px; padding: 7px 12px 6px; font-size: 14px; }
.contact-block { margin-top: 110px; padding-top: 28px; border-top: 1px solid var(--paper-faint); }
.contact-mail { display: inline-block; font-size: clamp(34px, 7.5vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: .9; margin-top: 14px; word-break: break-all; transition: color .25s; }
.contact-mail:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 22px; margin-top: 28px; }
.contact-socials a { color: var(--paper-dim); }
.contact-socials a:hover { color: var(--accent); }


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hud { grid-template-columns: 1fr; justify-items: center; }
  .hud-left, .hud-right { display: none; }
  .filters { max-width: 100%; }
  .filter-row { overflow-x: auto; max-width: calc(100vw - 2 * var(--pad)); scrollbar-width: none; justify-content: flex-start; }
  .filter-row::-webkit-scrollbar { display: none; }
  .caption { bottom: calc(var(--pad) + 100px); width: calc(100% - 2 * var(--pad)); }
  .brand-meta { display: none; }
  .site-header { grid-template-columns: auto auto 1fr; }
  .site-nav { justify-self: end; gap: 14px; }
  .index-head, .index-row { grid-template-columns: 36px 1fr 48px; }
  .hide-sm { display: none; }
  .project-info { grid-template-columns: 1fr; }
  .project-meta, .project-summary { grid-column: 1 / -1; }
  .g-half, .g-wide, .g-narrow { grid-column: 1 / -1; }
  .about-lede, .about-portrait, .about-body { grid-column: 1 / -1; }
  .about-portrait { max-width: 360px; }
  .about-body { grid-template-columns: 1fr; }
  .panel-close { top: auto; bottom: var(--pad); }
}
@media (max-width: 520px) {
  .nav-contact { display: none; }
  .intro-top > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .panel { transition-duration: .01s; }
  .enter-label::after { animation: none; }
}

/* panel-state tweaks */
.project-meta { margin: 0; }
.project-meta dd { margin: 0; }
body.has-panel .caption { opacity: 0; }
body.is-index .hud { z-index: 37; }
body.is-index .hud::before { content: ""; position: absolute; inset: -40px 0 0; background: linear-gradient(to top, var(--ink) 55%, transparent); z-index: -1; }
body.is-index .hud-left, body.is-index .hud-right { visibility: hidden; }
body.has-panel:not(.is-index) .hud { opacity: 0; pointer-events: none; }
body.has-panel:not(.is-index) .hud .filters { pointer-events: none; }

/* legibility scrims over the wall */
.scrim { position: fixed; left: 0; right: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.scrim--top { top: 0; height: 130px; background: linear-gradient(to bottom, rgba(13,12,10,.92), rgba(13,12,10,0)); }
.scrim--bottom { bottom: 0; height: 190px; background: linear-gradient(to top, rgba(13,12,10,.95) 30%, rgba(13,12,10,0)); }
body.is-wall .scrim { opacity: 1; }
body.has-panel .site-header { background: linear-gradient(to bottom, var(--ink) 70%, rgba(13,12,10,0)); padding-bottom: calc(var(--pad) + 16px); }

/* ==========================================================================
   Rich case-study pages (projects with `sections` in data.js)
   ========================================================================== */
.project-hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-intro p { font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--paper-dim); max-width: 60ch; margin: 0 0 1em; }
.project-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--paper-faint); border-bottom: 1px solid var(--paper-faint); margin: 0 0 40px; }
.stat { padding: 26px 20px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--paper-faint); }
.stat-val { font-size: clamp(40px, 5.4vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--accent); }
.stat .meta-label { margin: 0; }

.p-section { margin-top: clamp(80px, 11vw, 160px); }
.p-section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-bottom: 36px; align-items: start; }
.p-section-title { grid-column: 1 / span 5; }
.p-section-title h2 { font-size: clamp(34px, 4.6vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .9; margin: 14px 0 0; text-transform: uppercase; }
.p-section-text { grid-column: 7 / -1; padding-top: 30px; }
.p-section-text p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; margin: 0 0 1em; max-width: 58ch; }

.gallery { align-items: start; }
.gallery .g-third { grid-column: span 4; }
.gallery .g-quarter { grid-column: span 3; }
.gallery .g-twothirds { grid-column: span 8; }
.gallery .g-5 { grid-column: span 5; }
.gallery .g-7 { grid-column: span 7; }
.gallery figure.is-real { aspect-ratio: auto; position: relative; }
.gallery figure.is-real img, .gallery figure.is-real video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figure.is-real:not([style]) img, .gallery figure.is-real:not([style]) video { height: auto; }
.gallery figure.is-contain { background: #f4f1ea; }
.gallery figure.is-contain img { object-fit: contain; }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase;
  background: rgba(13,12,10,.72); backdrop-filter: blur(6px); padding: 4px 7px 3px; border-radius: 3px; pointer-events: none;
}
.gallery video[controls] { background: #000; }
.gallery video[controls] + figcaption { display: none; }

.credits { margin-top: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.credits > .meta-label { grid-column: 1 / span 5; }
.credits dl { grid-column: 7 / -1; margin: 0; }
.credits dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 9px; border-bottom: 1px solid var(--paper-faint); }
.credits dt { color: var(--paper-dim); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; padding-top: 3px; }
.credits dd { margin: 0; text-align: right; font-size: 15px; }

@media (max-width: 900px) {
  .project-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--paper-faint); }
  .p-section-title, .p-section-text, .credits > .meta-label, .credits dl { grid-column: 1 / -1; }
  .p-section-text { padding-top: 0; }
  .gallery .g-third, .gallery .g-twothirds, .gallery .g-5, .gallery .g-7 { grid-column: 1 / -1; }
  .gallery .g-quarter { grid-column: span 6; }
}

/* ==========================================================================
   Case study (project page)
   ========================================================================== */
.back-link { display: none; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; padding-top: 3px; transition: color .2s; }
.back-link:hover { color: var(--accent); }
body.has-panel .back-link { display: block; }

/* light header while a case study is open */
body.is-case .site-header { background: var(--paper); color: var(--ink); border-bottom: 1px solid rgba(13,12,10,.14); padding-bottom: calc(var(--pad) - 4px); }
body.is-case .brand-meta, body.is-case .site-nav a { color: rgba(13,12,10,.55); }
body.is-case .site-nav a:hover, body.is-case .site-nav a.is-active { color: var(--ink); }

/* reading progress along the bottom of the header */
body.is-case .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--cs-p, 0));
}

.panel--project { background: var(--paper); color: var(--ink); }
.panel--project .panel-inner { padding: 0; max-width: none; }
.cs { --cs-dim: rgba(13,12,10,.55); --cs-rule: rgba(13,12,10,.16); --gap: clamp(10px, 1.2vw, 18px); }
.cs-wrap { display: block; padding-left: var(--pad); padding-right: var(--pad); max-width: 1680px; margin: 0 auto; }
.cs-label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: var(--cs-dim); }

/* ---- reveal-on-enter ---- */
.cs [data-reveal]:not(.cs-fig) { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.cs [data-reveal].is-in:not(.cs-fig) { opacity: 1; transform: none; }
/* the wipe lives on .cs-media — a clip-path on the observed figure itself would hide it from IntersectionObserver */
.cs-fig[data-reveal] { background: transparent; }
.cs-fig[data-reveal] .cs-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease-io) var(--d, 0ms); }
.cs-fig[data-reveal] .cs-media > * { transform: scale(1.16); transition: transform 1.7s var(--ease) var(--d, 0ms); }
.cs-fig[data-reveal].is-in .cs-media { clip-path: inset(0 0 0 0); }
.cs-fig[data-reveal].is-in .cs-media > * { transform: none; }
.cs-fig[data-reveal] figcaption { opacity: 0; transition: opacity .6s var(--ease) calc(var(--d, 0ms) + .7s); }
.cs-fig[data-reveal].is-in figcaption { opacity: 1; }

/* ---- opener: giant title ---- */
.cs-open { padding-top: calc(var(--hdr, 64px) + clamp(28px, 5vh, 60px)); overflow: hidden; }
.cs-open-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 14px; }
.cs-title {
  font-size: clamp(64px, 15.5vw, 280px); font-weight: 800; letter-spacing: -.065em; line-height: .82; text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 44px) -.04em; will-change: transform;
}
.cs-word { display: inline-block; overflow: hidden; padding: .04em .02em .05em 0; vertical-align: top; white-space: nowrap; }
.cs-char { display: inline-block; transform: translateY(105%) rotate(6deg); transform-origin: left bottom; transition: transform 1.05s var(--ease) calc(var(--i) * 38ms); }
.cs.is-open .cs-char { transform: none; }

/* ---- sticky info column + scrolling reel ---- */
.cs-split {
  display: grid; grid-template-columns: minmax(300px, 32%) 1fr; gap: clamp(20px, 3vw, 56px);
  max-width: 1680px; margin: 0 auto; padding: 0 var(--pad) clamp(60px, 10vh, 120px); border-top: 1px solid rgba(13,12,10,.16);
}
.cs-aside { position: sticky; top: var(--hdr, 64px); align-self: start; height: calc(100vh - var(--hdr, 64px)); }
.cs-aside-in { height: 100%; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 26px; padding: 22px 0 24px; }
.cs-aside-in::-webkit-scrollbar { display: none; }
.cs-block .cs-label { display: block; margin-bottom: 10px; }
.cs-lede { margin: 0; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; }
.cs-body-sm p { margin: 0 0 .8em; font-size: 15px; line-height: 1.5; color: rgba(13,12,10,.78); max-width: 46ch; }
.cs-body-sm p:last-child { margin-bottom: 0; }
.cs-spec { margin: 0; border-top: 1px solid var(--cs-rule); }
.cs-spec > div { display: grid; grid-template-columns: 38% 1fr; gap: 14px; padding: 8px 0 7px; border-bottom: 1px solid var(--cs-rule); }
.cs-spec dt { color: var(--cs-dim); font-size: 14px; }
.cs-spec dd { margin: 0; font-size: 14px; }
.cs-chapters { display: flex; flex-direction: column; }
.cs-chapters .cs-label { margin-bottom: 8px; }
.cs-chapters button {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; text-align: left;
  font-size: clamp(20px, 1.6vw, 26px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; padding: 3px 0;
  color: rgba(13,12,10,.42); transition: color .25s, transform .35s var(--ease);
}
.cs-chapters button span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.cs-chapters button i { font-style: normal; font-size: .7em; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease); }
.cs-chapters button:hover, .cs-chapters button.is-active { color: var(--ink); }
.cs-chapters button:hover { transform: translateX(6px); }
.cs-chapters button:hover i { opacity: 1; transform: none; color: var(--accent); }
.cs-chapters button.is-active span { color: var(--accent); }
.cs-meter { margin-top: auto; height: 2px; background: var(--cs-rule); overflow: hidden; }
.cs-meter span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.cs-reel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 22px; margin-right: calc(-1 * var(--pad)); }
.cs-reel .is-full { grid-column: 1 / -1; }

/* ---- figures ---- */
.cs-fig { margin: 0; position: relative; overflow: hidden; background: #1a1916; }
.cs-media { width: 100%; height: 100%; overflow: hidden; background: #1a1916; }
.cs-fig img, .cs-fig video { display: block; width: 100%; height: auto; }
.cs-fig.has-ratio img, .cs-fig.has-ratio video { height: 100%; object-fit: cover; }
.cs-fig.is-contain, .cs-fig.is-contain .cs-media { background: #f4f1ea; }
.cs-fig.is-contain img { object-fit: contain; }
.cs-fig figcaption {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase;
  background: rgba(13,12,10,.72); color: var(--paper); backdrop-filter: blur(6px); padding: 4px 7px 3px; border-radius: 3px; pointer-events: none;
}
.cs-fig video[controls] + figcaption { display: none; }
.cs-fig[data-speed] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---- numbers ---- */
.cs-stats { background: var(--ink); color: var(--paper); padding: clamp(60px, 11vh, 130px) 0; }
.cs-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cs-stat { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--paper-faint); padding-top: 16px; }
.cs-stat .cs-label { color: var(--paper-dim); }
.cs-stat-val { font-size: clamp(56px, 7.6vw, 140px); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.cs-stat:first-child .cs-stat-val { color: var(--accent); }

/* ---- chapters ---- */
.cs-ch { padding-top: clamp(90px, 16vh, 190px); }
.cs-ch-head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: clamp(20px, 3vw, 40px); align-items: end;
  padding-bottom: clamp(50px, 9vh, 110px);
}
.cs-ch-num { grid-column: 1 / span 2; font-size: clamp(56px, 8vw, 150px); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: var(--accent); }
.cs-ch-title { grid-column: 3 / -1; margin: 0; font-size: clamp(56px, 8vw, 150px); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-transform: uppercase; }
.cs-ch-kicker { grid-column: 1 / span 4; align-self: start; padding-top: 6px; border-top: 1px solid var(--cs-rule); }
.cs-ch-text { grid-column: 7 / -1; }
.cs-body p { font-size: clamp(18px, 1.45vw, 23px); line-height: 1.42; letter-spacing: -.01em; margin: 0 0 .9em; max-width: 44ch; }
.cs-body p:last-child { margin-bottom: 0; }

.cs-band { padding: 0 var(--pad) clamp(50px, 9vh, 110px); }
.cs-band-inner { max-width: 1680px; margin: 0 auto; }

/* mosaic: asymmetric 12-col layout, each image drifting at its own speed */
.band-mosaic .cs-band-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(30px, 5vw, 80px); align-items: start; }
.band-mosaic .cs-fig { margin-top: calc(var(--shift, 0) * 1vw); }

/* grid: even columns, cells wipe in left to right */
.band-grid .cs-band-inner { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); align-items: start; }
.band-center .cs-fig { max-width: min(1180px, 100%); margin: 0 auto; }
.band-full { padding-left: 0; padding-right: 0; }

/* rail: section pins, vertical scroll slides the posters sideways */
.band-rail { background: var(--ink); color: var(--paper); padding: 0; margin-bottom: clamp(50px, 9vh, 110px); }
.cs-rail-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(var(--hdr, 64px) + 10px) 0 28px; }
.cs-rail-head { display: flex; justify-content: space-between; padding: 0 var(--pad); }
.cs-rail-head .cs-label { color: var(--paper-dim); }
.cs-rail-count { font-family: var(--f-mono); font-size: 11px; color: var(--paper-dim); }
.cs-rail-count b { color: var(--paper); font-weight: 500; }
.cs-rail-track { display: flex; gap: var(--gap); padding: 0 var(--pad); transform: translate3d(var(--rx, 0px), 0, 0); will-change: transform; }
.cs-rail-track .cs-fig { flex: 0 0 auto; height: min(62vh, 640px); aspect-ratio: 4 / 5; }
.cs-rail-track .cs-fig img { height: 100%; object-fit: cover; }
.cs-rail-track .cs-fig.is-contain img { object-fit: contain; }
.cs-rail-bar { margin: 0 var(--pad); height: 2px; background: var(--paper-faint); }
.cs-rail-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--rp, 0)); }

/* expand: the film starts as a small window and grows to full bleed */
.band-expand { background: var(--ink); color: var(--paper); height: 190vh; padding: 0; margin-bottom: clamp(50px, 9vh, 110px); }
.cs-expand-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; padding-top: var(--hdr, 64px); }
.band-expand .cs-fig {
  width: min(100%, calc((100vh - var(--hdr, 64px)) * 4 / 3)); background: #000;
  transform: scale(calc(.46 + .54 * var(--ep, 0))); border-radius: calc((1 - var(--ep, 0)) * 18px); will-change: transform;
}
.cs-expand-label {
  position: absolute; left: var(--pad); bottom: 26px; color: var(--paper-dim);
  opacity: calc(1 - var(--ep, 0) * 2);
}

/* ---- credits, next, hello ---- */
.cs-credits { display: grid; grid-template-columns: 32% 1fr; gap: 20px; padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(60px, 10vh, 120px); }
.cs-credits .cs-spec > div { grid-template-columns: minmax(200px, 40%) 1fr; }
.cs-credits .cs-spec dt, .cs-credits .cs-spec dd { font-size: 15px; }
.cs-next {
  display: grid; grid-template-columns: 32% 1fr auto auto; gap: 20px; align-items: start;
  border-top: 1px solid var(--cs-rule); padding-top: 22px; padding-bottom: clamp(60px, 10vh, 120px);
}
.cs-next-title { font-size: clamp(44px, 7.5vw, 132px); font-weight: 800; letter-spacing: -.055em; line-height: .88; transition: color .25s; }
.cs-next-img { width: clamp(120px, 15vw, 260px); aspect-ratio: 3 / 2; overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease-io); }
.cs-next-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1s var(--ease); }
.cs-next:hover .cs-next-img { clip-path: inset(0 0 0 0); }
.cs-next:hover .cs-next-img img { transform: none; }
.cs-arrow { font-size: clamp(44px, 7vw, 120px); line-height: .8; transition: transform .35s var(--ease), color .25s; }
.cs-next:hover .cs-next-title, .cs-next:hover .cs-arrow { color: var(--accent); }
.cs-next:hover .cs-arrow { transform: translateX(10px); }
.cs-hello { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: clamp(40px, 6vh, 70px); }
.cs-hello span:first-child { font-size: clamp(44px, 8.5vw, 160px); font-weight: 800; letter-spacing: -.055em; line-height: .88; transition: color .25s; }
.cs-hello:hover span { color: var(--accent); }
.cs-hello:hover .cs-arrow { transform: translate(8px, -8px); }

/* ---- phones + tablets: everything stacks, rail swipes natively ---- */
@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; }
  .cs-aside { position: static; height: auto; }
  .cs-aside-in { overflow: visible; }
  .cs-meter { display: none; }
  .cs-reel { margin-right: 0; padding-top: 0; }
  .cs-stats-in { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cs-ch-num { grid-column: 1 / -1; }
  .cs-ch-title, .cs-ch-kicker, .cs-ch-text { grid-column: 1 / -1; }
  .band-mosaic .cs-band-inner { grid-template-columns: 1fr 1fr; }
  .band-mosaic .cs-fig { grid-column: auto !important; margin-top: 0; }
  .band-mosaic .cs-fig:nth-child(3n + 1) { grid-column: 1 / -1 !important; }
  .band-grid .cs-band-inner { grid-template-columns: repeat(2, 1fr); }
  .cs-rail-pin { position: static; height: auto; padding: 40px 0 28px; }
  .cs-rail-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none; scrollbar-width: none; }
  .cs-rail-track .cs-fig { height: auto; width: 76vw; scroll-snap-align: center; }
  .cs-rail-bar, .cs-rail-count { display: none; }
  .band-expand { height: auto; }
  .cs-expand-pin { position: static; height: auto; padding: 0; }
  .band-expand .cs-fig { width: 100%; transform: none; border-radius: 0; }
  .cs-expand-label { display: none; }
  .cs-credits { grid-template-columns: 1fr; gap: 10px; }
  .cs-credits .cs-spec > div { grid-template-columns: 42% 1fr; }
  .cs-next { grid-template-columns: 1fr auto; }
  .cs-next .cs-label { grid-column: 1 / -1; }
  .cs-next-img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs [data-reveal], .cs-fig[data-reveal] .cs-media, .cs-fig[data-reveal] .cs-media > *, .cs-char { transition: none !important; }
  .cs-char { transform: none; }
}

/* ==========================================================================
   Project page palette — pure white background, black text, burgundy accent.
   Scoped to the project panel + its header; the wall, intro and About keep
   the site's warm-black look.
   ========================================================================== */
.panel--project, body.is-case .site-header {
  --ink: #000; --paper: #fff; --accent: #65000b;
  --paper-dim: rgba(0, 0, 0, .55); --paper-faint: rgba(0, 0, 0, .14);
}
.panel--project .cs { --cs-dim: rgba(0, 0, 0, .55); --cs-rule: rgba(0, 0, 0, .14); }
.panel--project { background: #fff; color: #000; }
body.is-case .site-header { border-bottom-color: rgba(0, 0, 0, .12); }
body.is-case .brand-meta, body.is-case .site-nav a { color: rgba(0, 0, 0, .55); }
body.is-case .nav-contact { color: var(--accent) !important; }
.panel--project ::selection { background: var(--accent); color: #fff; }

/* sections that were dark bands now sit on white */
.panel--project .cs-stats, .panel--project .band-rail, .panel--project .band-expand { background: #fff; color: #000; }
.panel--project .cs-rail-count b { color: #000; }
.panel--project .cs-split { border-top-color: rgba(0, 0, 0, .14); }
.panel--project .cs-body-sm p { color: rgba(0, 0, 0, .78); }
.panel--project .cs-chapters button { color: rgba(0, 0, 0, .4); }
.panel--project .cs-chapters button:hover, .panel--project .cs-chapters button.is-active { color: #000; }

/* image placeholders while loading: light grey instead of near-black */
.panel--project .cs-fig, .panel--project .cs-media { background: #f2f2f2; }
.panel--project .cs-fig.is-contain, .panel--project .cs-fig.is-contain .cs-media { background: #fff; }
.panel--project .cs-fig video[controls], .panel--project .band-expand .cs-fig { background: #000; }
.panel--project .cs-fig figcaption { background: rgba(0, 0, 0, .72); color: #fff; }

/* ==========================================================================
   Type system — headers in Cormorant Garamond Medium, everything else SF Mono
   ========================================================================== */
.loader-count, .brand, .intro-name, .empty, .caption-title, .index-row .index-title,
.project-title, .next-title, .about-lede, .contact-mail, .stat-val, .p-section-title h2,
.cs-title, .cs-lede, .cs-chapters button, .cs-stat-val, .cs-ch-num, .cs-ch-title,
.cs-next-title, .cs-hello span:first-child, .cs-arrow {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
}
.intro-name, .cs-title { letter-spacing: -.02em; line-height: .86; }
.cs-ch-title, .cs-ch-num, .cs-stat-val, .cs-next-title, .cs-hello span:first-child, .contact-mail { line-height: .9; }
.brand { font-size: 21px; line-height: .86; letter-spacing: 0; }
.caption-title { font-size: clamp(22px, 2.3vw, 30px); }
.cs-chapters button { font-size: clamp(22px, 1.8vw, 30px); letter-spacing: 0; }
.cs-chapters button span { font-family: var(--f-mono); }
.about-lede em { font-style: italic; }

/* body copy in SF Mono: a touch smaller, looser, no negative tracking */
.cs-body p, .p-section-text p, .about-bio p, .project-intro p, .cs-summary, .project-summary {
  font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; letter-spacing: 0;
}
.cs-body-sm p { font-size: 13px; line-height: 1.6; letter-spacing: 0; }
.cs-spec dt, .cs-spec dd, .cs-credits .cs-spec dt, .cs-credits .cs-spec dd, .meta-val, .about-list li, .cap-list span { font-size: 13px; letter-spacing: 0; }

/* role · location · time: hidden until you hover the name (top left) */
.brand-meta {
  color: #fff; opacity: 0; transform: translateX(-6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.brand:hover + .brand-meta, .brand:focus-visible + .brand-meta { opacity: 1; transform: none; }
/* project pages have a white header, so the reveal is black there */
body.is-case .brand-meta { color: #000; }

/* ==========================================================================
   No grey text: pure white on dark backgrounds, pure black on white ones.
   (Hairline rules/borders keep their soft tints — they're lines, not text.)
   ========================================================================== */
:root { --paper: #fff; --paper-dim: #fff; }
.panel--project, body.is-case .site-header { --paper-dim: #000; }
.panel--project .cs { --cs-dim: #000; }

.filter-label, .index-row { color: var(--paper); }
.chip { color: var(--paper); }
.chip sup { opacity: 1; }
.chip.is-empty { opacity: 1; text-decoration: line-through; } /* no matches: struck through instead of greyed */

body.is-case .site-nav a, body.is-case .brand-meta { color: #000; }
.panel--project .cs-body-sm p, .panel--project .cs-chapters button, .panel--project .cs-spec dt { color: #000; }
.chip.is-active { color: #000; }
.filter-row--source .chip.is-active { color: #fff; }

/* ==========================================================================
   Flipbook (band layout "book")
   ========================================================================== */
.band-book { padding: clamp(30px, 6vh, 70px) var(--pad) clamp(50px, 9vh, 110px); text-align: center; }
.book-stage { perspective: 2600px; perspective-origin: 50% 40%; }
.book {
  position: relative; margin: 0 auto; cursor: pointer; outline: none;
  width: min(100%, calc((100vh - 230px) * 11 / 8.5)); aspect-ratio: 11 / 8.5;
  transform-style: preserve-3d; transition: transform .9s var(--ease);
}
.book.is-closed { transform: translateX(-25%); }   /* only the cover shows: centre it */
.book.is-end { transform: translateX(25%); }       /* only the back cover shows */
.leaf {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.645, .045, .355, 1);
}
.leaf.flipped { transform: rotateY(-180deg); }
.face {
  position: absolute; inset: 0; overflow: hidden; background: #f3f3f3;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.leaf.near .face { box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .45); }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.face.back { transform: rotateY(180deg); }
.face.blank { background: #fff; }
/* paper shading toward the spine */
.face.front::after, .face.back::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face.front::after { background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, .04) 6%, rgba(0, 0, 0, 0) 14%); }
.face.back::after { background: linear-gradient(to left, rgba(0, 0, 0, .22), rgba(0, 0, 0, .04) 6%, rgba(0, 0, 0, 0) 14%); }
.book-ui { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; font-family: var(--f-mono); font-size: 12px; }
.book-btn { font-size: 20px; line-height: 1; padding: 4px 10px; }
.book-btn:hover { color: var(--accent); }
.book-count { min-width: 14ch; font-variant-numeric: tabular-nums; }
.book-range { display: block; width: min(560px, 100%); margin: 16px auto 0; accent-color: var(--accent); }
.book-hint { margin-top: 12px; }
@media (max-width: 700px) { .book { width: 100%; } }

/* wall: hovering a tile cross-fades to a second photo from the project */
.tile-media { position: relative; }
.tile-media .tile-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.tile.is-hover .tile-media .tile-alt { opacity: 1; }

/* ==========================================================================
   Index: hovered row opens into a drifting filmstrip (replaces cursor preview)
   ========================================================================== */
.index-preview { display: none !important; }
.index-row { row-gap: 0; transition: color .2s, padding .35s var(--ease), background .35s var(--ease); }
.index-strip {
  grid-row: 2; grid-column: 1 / -1; display: block; overflow: hidden; height: 0; opacity: 0;
  margin-top: 0; transition: height .55s var(--ease-io), opacity .4s var(--ease), margin .55s var(--ease-io);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-track { display: flex; gap: 10px; width: max-content; height: 100%; animation: strip-drift 38s linear infinite; animation-play-state: paused; }
.strip-track img { height: 100%; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: #1a1916; }
.index-row.is-open { padding-left: 12px; color: var(--paper); }
.index-row.is-open .index-title { color: var(--accent); }
.index-row.is-open .index-strip { height: clamp(110px, 13vw, 190px); opacity: 1; margin-top: 14px; }
.index-row.is-open .strip-track { animation-play-state: running; }
@keyframes strip-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
.about-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.about-link:hover { color: var(--accent); }

/* Contact link: white on dark pages, black on the white project header */
.site-nav .nav-contact { color: #fff !important; }
body.is-case .site-nav .nav-contact { color: #000 !important; }

/* phones: on project pages, the hero image/video comes right after the title, before the text column */
@media (max-width: 900px) {
  .cs-split { display: flex; flex-direction: column; gap: 0; }
  .cs-reel { display: contents; }
  .cs-reel > .cs-fig { order: 2; margin-top: var(--gap); }
  .cs-reel > .cs-fig:first-child { order: 0; margin: 0 calc(-1 * var(--pad)) 6px; }
  .cs-aside { order: 1; }
}
