/* Tallylight template: editorial layout on a visible 4-column grid.
   Colours and fonts come from content.json (theme), injected as CSS variables. */

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

:root {
  --gutter: max(20px, min(4vw, 40px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
}
.skip {
  position: fixed; z-index: 100; left: var(--gutter); top: 12px;
  padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 600;
  translate: 0 -200%; transition: translate 0.3s var(--spring);
}
.skip:focus { translate: 0 0; }

/* the visible grid the layout sits on */
.grid-lines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 var(--gutter);
}
.grid-lines span { border-left: 1px solid var(--line); }
.grid-lines span:last-child { border-right: 1px solid var(--line); position: absolute; right: 0; top: 0; bottom: 0; border-left: 0; }
main, footer, header { position: relative; z-index: 1; }

/* ---------- header ---------- */
.hdr {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  color: #fff; mix-blend-mode: difference;
  font-size: 0.9375rem; font-weight: 500;
}
.hdr-logo { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: -0.02em; font-size: 1.125rem; justify-self: start; }
.hdr-time { justify-self: center; font-variant-numeric: tabular-nums; opacity: 0.85; }
.hdr-nav { justify-self: end; display: flex; gap: clamp(16px, 2.4vw, 32px); }
.hdr-nav a { position: relative; padding-block: 6px; }
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) { .hdr { grid-template-columns: 1fr auto; } .hdr-time { display: none; } }

/* ---------- type ---------- */
.hero-title, .h2, .contact-title, .ftr-word, .p-next-title, .curtain-mark, .egg-title, .marquee-track span, .hdr-logo {
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-stretch: var(--display-stretch, normal);
}
.card-title, .svc-name, .band-text, .p-summary { font-stretch: var(--display-stretch, normal); }
/* a long word in a big heading wraps instead of pushing the page sideways */
.hero-title, .h2, .contact-title, .p-next-title, .egg-title, .svc-name, .card-title { overflow-wrap: break-word; }
.hero-title { font-size: var(--hero-size, clamp(3.1rem, 11.2vw, 12.5rem)); line-height: 0.86; letter-spacing: -0.045em; }
/* the top padding keeps accents on capitals (Ö, É) from being clipped; the negative margin cancels it out */
.hero-title .line { display: block; overflow: hidden; padding-top: 0.18em; margin-top: -0.18em; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero-title .line > span { display: block; }
.h2 { font-size: clamp(2.4rem, 6vw, 5.75rem); line-height: 0.9; letter-spacing: -0.04em; }

/* ---------- hero ---------- */
.hero { padding: calc(130px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(40px, 7vh, 80px); }
.hero-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: end;
  margin-top: clamp(32px, 6vh, 64px);
}
.hero-intro { grid-column: 1 / span 2; max-width: 34ch; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.4; }
.hero-actions { grid-column: 3 / span 2; justify-self: end; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
@media (max-width: 760px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
  .hero-intro, .hero-actions, .hero-copy { grid-column: 1; justify-self: start; }
}

/* buttons and the badge */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 1rem;
  will-change: transform; transition: background-color 0.3s ease, color 0.3s ease;
}
.btn > span { display: block; will-change: transform; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn--big { width: clamp(136px, 14vw, 196px); height: clamp(136px, 14vw, 196px); padding: 0 18px; text-align: center; line-height: 1.15; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); background: var(--accent); color: var(--on-accent); }
.btn--big:hover { background: var(--bg); color: var(--ink); }
.badge { position: relative; display: block; width: clamp(112px, 11vw, 150px); aspect-ratio: 1; color: var(--ink); will-change: transform; }
.badge svg:first-child { width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge text { font: 600 15.5px var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; fill: currentColor; }
.badge-core {
  position: absolute; inset: 30%; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; transition: transform 0.5s var(--spring);
}
.badge-core svg { width: 40%; }
.badge:hover .badge-core { transform: scale(1.12); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- media frames + parallax ---------- */
.hero-media, .frame { position: relative; overflow: hidden; background: var(--surface); }
.hero-media { height: clamp(380px, 82vh, 900px); margin: 0 var(--gutter); }
.hero-media img, .frame img, .band > img, .hero-media video, .frame video {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); will-change: transform;
}
.hero-media video { display: block; background: var(--surface); }

/* hover previews on project cards (mouse only; phones keep the still) */
.card-video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.card-video.is-playing { opacity: 1; }

/* pause / play for autoplaying video */
.vid-toggle {
  position: absolute; z-index: 2; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: transform 0.4s var(--spring), background-color 0.3s ease;
}
.vid-toggle:hover { transform: scale(1.08); background: var(--accent); color: var(--on-accent); }
.vid-toggle-icon { width: 14px; height: 16px; border-inline: 4px solid currentColor; }
.vid-toggle.is-paused .vid-toggle-icon { width: 0; height: 0; border-inline: 0; border-block: 8px solid transparent; border-left: 13px solid currentColor; margin-left: 4px; }
html.no-js .vid-toggle { display: none; }

/* ---------- work ---------- */
.work { padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(40px, 8vh, 100px); }
.section-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: clamp(36px, 7vh, 80px); }
.count { font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 0.3em; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(56px, 10vh, 120px); }
.card a { display: block; }
.card .frame { aspect-ratio: 4 / 5; }
.card:nth-child(6n + 1) { grid-column: 1 / span 7; }
.card:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 30vh; }
.card:nth-child(6n + 3) { grid-column: 2 / span 5; }
.card:nth-child(6n + 3) .frame { aspect-ratio: 4 / 3; }
.card:nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: 18vh; }
.card:nth-child(6n + 4) .frame { aspect-ratio: 3 / 2; }
.card:nth-child(6n + 5) { grid-column: 1 / span 5; }
.card:nth-child(6n + 6) { grid-column: 7 / span 6; margin-top: 12vh; }
.card:nth-child(6n + 6) .frame { aspect-ratio: 3 / 2; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.02em; }
.card-sub { color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
.card .frame img { transition: filter 0.6s ease; }
.card a:hover .frame img { filter: brightness(0.92); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .card:nth-child(n) { grid-column: 1; margin-top: 0; }
  .card:nth-child(n) .frame { aspect-ratio: 4 / 5; }
}

/* ---------- band ---------- */
.band { position: relative; overflow: hidden; min-height: clamp(420px, 90vh, 980px); margin-top: clamp(60px, 10vh, 120px); display: grid; align-items: end; }
.band > img { position: absolute; inset: 0; }
.band-inner { position: relative; padding: var(--gutter); }
.band-text {
  max-width: 22ch; padding: clamp(20px, 3vw, 36px); background: var(--bg); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em;
}

/* ---------- services ---------- */
.services { padding: clamp(90px, 16vh, 180px) var(--gutter) clamp(60px, 10vh, 120px); }
.svc-list { margin-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--ink); }
.svc {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: baseline;
  padding: clamp(20px, 3.4vh, 34px) 0; border-bottom: 1px solid var(--line);
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out); z-index: -1;
}
.svc:hover::before { transform: scaleY(1); }
.svc-name { grid-column: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1; }
.svc-text { grid-column: 3 / span 2; max-width: 36ch; color: var(--ink); }
@media (max-width: 760px) { .svc { grid-template-columns: minmax(0, 1fr); gap: 8px; } .svc-name, .svc-text { grid-column: 1; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 3vh, 30px); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
  padding-right: clamp(36px, 5vw, 72px); white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 4.4vw, 4rem); letter-spacing: -0.03em; text-transform: var(--display-case);
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- studio ---------- */
.studio {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: center;
  padding: clamp(90px, 16vh, 180px) var(--gutter);
}
.studio-copy { grid-column: 1 / span 2; display: grid; gap: 20px; max-width: 46ch; }
.studio-copy p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; }
.studio-media { grid-column: 3 / span 2; aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .studio { grid-template-columns: minmax(0, 1fr); } .studio-copy, .studio-media { grid-column: 1; } }

/* ---------- contact ---------- */
.contact { background: var(--dark); color: var(--on-dark); padding: clamp(90px, 16vh, 180px) var(--gutter); }
.contact-title { font-size: clamp(3rem, 10vw, 11rem); line-height: 0.88; letter-spacing: -0.045em; max-width: 12ch; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; margin-top: clamp(40px, 8vh, 90px); }
.contact-lines { display: grid; gap: 14px; min-width: min(100%, 320px); }
.contact-lines li { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 25%, transparent); font-size: 1.125rem; }
.c-label { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.contact-lines a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.ftr { background: var(--dark); color: var(--on-dark); padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.ftr-word { font-size: clamp(4rem, 21vw, 24rem); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; margin-left: -0.04em; }
.ftr-word--tall { padding-top: 0.2em; }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 0.875rem; color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.ftr-row a:hover { color: var(--accent); }

/* ---------- project page ---------- */
.p-hero { padding: calc(130px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(36px, 6vh, 64px); }
.p-back { margin-bottom: clamp(24px, 5vh, 48px); font-weight: 600; }
.p-back a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 5vh, 56px); border-top: 1px solid var(--ink); padding-top: 16px; }
.p-meta dt { color: var(--muted); font-size: 0.875rem; margin-bottom: 4px; }
.p-meta dd { font-weight: 600; }
.p-meta div:last-child { grid-column: span 2; }
@media (max-width: 760px) { .p-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p-meta div:last-child { grid-column: 1 / -1; } }
.p-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: clamp(70px, 12vh, 140px) var(--gutter); }
.p-summary { grid-column: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.p-text { grid-column: 3 / span 2; display: grid; gap: 18px; max-width: 46ch; font-size: 1.125rem; }
@media (max-width: 760px) { .p-body { grid-template-columns: minmax(0, 1fr); } .p-summary, .p-text { grid-column: 1; } }
.p-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 var(--gutter); }
.g-item { aspect-ratio: 3 / 2; }
.g-item > div { height: 100%; }
.g-item:nth-child(even) { margin-top: 18vh; }
@media (max-width: 760px) { .p-gallery { grid-template-columns: minmax(0, 1fr); } .g-item:nth-child(even) { margin-top: 0; } }
.p-next {
  display: block; margin-top: clamp(90px, 16vh, 180px); padding: clamp(60px, 10vh, 120px) var(--gutter);
  background: var(--dark); color: var(--on-dark);
}
.p-next-label { display: block; color: color-mix(in srgb, var(--on-dark) 60%, transparent); font-weight: 600; margin-bottom: 12px; }
.p-next-title { display: block; font-size: clamp(2.2rem, 10vw, 11rem); line-height: 0.88; letter-spacing: -0.045em; transition: color 0.4s ease; }
.p-next:hover .p-next-title { color: var(--accent); }
.p-next + .ftr { padding-top: 0; }

/* ---------- page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--dark); color: var(--on-dark);
  display: grid; place-items: center;
  transform: translateY(100%);
}
.curtain-mark { font-size: clamp(2.5rem, 8vw, 7rem); letter-spacing: -0.04em; opacity: 0; transition: opacity 0.3s ease; }
html.is-arriving .curtain { transform: translateY(0); }
html.is-arriving .curtain-mark { opacity: 1; }
html.is-arrived .curtain { transform: translateY(-100%); transition: transform 0.75s var(--ease-io) 0.1s; }
html.is-arrived .curtain-mark { opacity: 0; }
html.is-leaving .curtain { transform: translateY(0); transition: transform 0.6s var(--ease-io); }
html.is-leaving .curtain-mark { opacity: 1; transition-delay: 0.3s; }

/* ---------- staggered reveal (only when JS runs; content is visible without it) ---------- */
html.js.motion [data-reveal] [data-ri] {
  opacity: 0; transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js.motion [data-reveal].is-in [data-ri] { opacity: 1; transform: none; }
html.js.motion .hero-title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
html.js.motion.is-loaded .hero-title .line > span { transform: none; }
html.js.motion.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.09s; }
html.js.motion.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 0.18s; }
html.js.motion.is-loaded .hero-title .line:nth-child(4) > span { transition-delay: 0.27s; }

/* ---------- context cursor (mouse only) ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor .cursor { display: block; position: fixed; z-index: 95; left: 0; top: 0; pointer-events: none; }
.cursor-dot {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; transition: transform 0.35s var(--spring), opacity 0.2s ease;
}
.cursor-label {
  position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.875rem; line-height: 1.1;
  transform: scale(0); transition: transform 0.4s var(--spring);
}
.cursor.is-label .cursor-label { transform: scale(1); }
.cursor.is-label .cursor-dot { transform: scale(0); }
.cursor.is-link .cursor-dot { transform: scale(3); }
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-label { opacity: 0; }

/* ---------- easter egg ---------- */
.egg {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; padding: var(--gutter); text-align: center;
  clip-path: inset(100% 0 0 0); transition: clip-path 0.8s var(--ease-io);
}
.egg.is-on { clip-path: inset(0 0 0 0); pointer-events: auto; }
.egg-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(2.5rem, 9vw, 9rem); line-height: 0.9; letter-spacing: -0.045em; }
.egg-text { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); max-width: 34ch; margin-inline: auto; }

/* ---------- listen: a record that plays the artist's SoundCloud ---------- */
.listen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter); align-items: center; padding: clamp(80px, 14vh, 160px) var(--gutter); }
.listen-copy { grid-column: 1 / span 5; }
.listen-copy p { max-width: 34ch; margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.listen-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.listen-link:hover { color: var(--accent); }
.deck { grid-column: 7 / span 6; }
.platter { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-left: auto; border-radius: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 70%, #fff 6%), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.45); }
.vinyl { position: absolute; inset: 9%; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.05) 31.4% 31.8%, transparent 32.2%),
    repeating-radial-gradient(circle, #0c0b0f 0 2px, #17151c 2.5px 3.5px),
    #0c0b0f;
  box-shadow: 0 0 0 6px #050407, 0 18px 40px rgba(0,0,0,.6); }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.10) 12%, transparent 20% 52%, rgba(255,255,255,.07) 58%, transparent 66%); pointer-events: none; }
.vinyl-label { position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #0c0b0f 0 4%, var(--accent) 4.5%); color: var(--on-accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(0.85rem, 1.7vw, 1.4rem); letter-spacing: .04em; }
.vinyl-label span { transform: translateY(-58%); }
.tonearm { position: absolute; right: 7%; top: 6%; width: 8%; height: 62%; transform-origin: 50% 6%; transform: rotate(-4deg); transition: transform .9s cubic-bezier(.5,0,.2,1); pointer-events: none; }
.tonearm::before { content: ""; position: absolute; left: 50%; top: 0; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #2a2731; box-shadow: inset 0 0 0 6px #3a3642; }
.tonearm span { position: absolute; left: 50%; top: 20px; bottom: 0; width: 6px; margin-left: -3px; border-radius: 3px; background: linear-gradient(#c9c3d2, #8c8696); }
.tonearm span::after { content: ""; position: absolute; left: -7px; bottom: -6px; width: 20px; height: 34px; border-radius: 4px; background: #c9c3d2; }
.deck.is-playing .tonearm { transform: rotate(22deg); }
.motion .deck.is-playing .vinyl { animation: spin 1.8s linear infinite; }
.vinyl:hover { box-shadow: 0 0 0 6px #050407, 0 0 0 9px color-mix(in srgb, var(--accent) 60%, transparent), 0 18px 40px rgba(0,0,0,.6); }
.deck-hint { margin-top: 18px; text-align: right; color: var(--muted); font-size: .9375rem; }
.deck-embed iframe { display: block; width: 100%; height: 300px; margin-top: 18px; border: 0; border-radius: 14px; }
@media (max-width: 860px) {
  .listen-copy, .deck { grid-column: 1 / -1; }
  .platter { margin: 0 auto; }
  .deck-hint { text-align: center; }
}

/* =====================================================================
   Layouts and section styles. site.layout ("reel", "index", "story") adds a
   layout-… class to <html>; hero.style and work.style add hero--… and work--…
   classes. With none of them set the page is the editorial layout above.
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.w-list, .toc { margin: 0; padding: 0; list-style: none; }

/* ---------- hero: one giant word (site.js sizes it to fill the width) ---------- */
.hero-word { font-size: var(--hero-size, calc((100vw - 2 * var(--gutter)) / (var(--chars, 6) * 0.78))); line-height: 0.84; white-space: nowrap; }
.hero-word .line > span { display: inline-block; vertical-align: top; white-space: nowrap; }
.hero-copy { grid-column: 1 / span 2; display: grid; gap: 14px; align-content: end; }
.hero-copy .hero-intro { grid-column: auto; }
.hero-kicker { font-family: var(--font-display); font-weight: 700; font-stretch: var(--display-stretch, normal); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }

/* ---------- hero: words beside a tall photo or video ---------- */
.hero--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; min-height: 100vh; min-height: 100svh; }
.hero--split .hero-copy { grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: calc(130px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(32px, 6vh, 64px); }
.hero--split .hero-title { font-size: var(--hero-size, clamp(2.6rem, 5.6vw, 6.75rem)); }
.hero--split .hero-row { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 0; }
.hero--split .hero-intro, .hero--split .hero-actions { grid-column: 1; justify-self: start; }
.hero-side { grid-column: 2; height: auto; margin: 0; }
.hero-side > img, .hero-side > video { position: absolute; inset: 0; }
.hero--no-media { grid-template-columns: minmax(0, 1fr); min-height: 0; }
@media (max-width: 860px) {
  .hero--split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-side { grid-column: 1; aspect-ratio: 4 / 5; margin: 0 var(--gutter); }
}

/* ---------- hero: headline laid over a full-screen video (reel layout) ---------- */
.hero--overlay { position: relative; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; padding: 0; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); }
.hero--overlay::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--dark) 82%, transparent), color-mix(in srgb, var(--dark) 10%, transparent) 62%); }
.hero-bg { position: absolute; inset: 0; height: auto; margin: 0; }
.hero-over { position: relative; z-index: 2; min-width: 0; padding: calc(130px + env(safe-area-inset-top, 0px)) var(--gutter) calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.hero-over a, .hero-over button { pointer-events: auto; }
.hero--overlay .vid-toggle { z-index: 3; top: calc(76px + env(safe-area-inset-top, 0px)); bottom: auto; }
.hero--overlay .btn { background: var(--on-dark); color: var(--dark); }
.hero--overlay .btn:hover { background: var(--accent); color: var(--on-accent); }
.hero--overlay .badge { color: var(--on-dark); }

/* ---------- work: an index of names with a floating preview ---------- */
.w-list { border-top: 1px solid var(--ink); }
.w-row { border-bottom: 1px solid var(--line); }
.w-link { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 0.5fr) minmax(0, 0.65fr) 4rem; gap: 24px; align-items: baseline; padding: clamp(16px, 2.8vh, 30px) 0; transition: opacity 0.4s ease; }
.w-num, .w-year { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.w-year { text-align: right; }
.w-title {
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-stretch: var(--display-stretch, normal);
  font-size: clamp(1.6rem, 4.2vw, 4.25rem); line-height: 0.95; letter-spacing: -0.035em; overflow-wrap: break-word;
  transition: transform 0.6s var(--ease-out), color 0.3s ease;
}
.w-client { font-weight: 600; }
.w-tags { color: var(--muted); }
.w-thumb { display: none; }
.w-link:hover .w-title { transform: translateX(clamp(8px, 1.4vw, 20px)); color: var(--accent); }
@media (hover: hover) { .w-list:hover .w-link { opacity: 0.38; } .w-list:hover .w-row:hover .w-link { opacity: 1; } }
.w-preview { display: none; position: fixed; z-index: 30; left: 0; top: 0; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 5; translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
html.fine .w-preview { display: block; }
.w-preview.is-on { opacity: 1; }
.w-pv { position: absolute; inset: 0; overflow: hidden; background: var(--surface); opacity: 0; transform: scale(0.94); transition: opacity 0.35s ease, transform 0.6s var(--ease-out); }
.w-pv.is-on { opacity: 1; transform: none; }
.w-pv img, .w-pv video { width: 100%; height: 100%; object-fit: cover; }
.w-pv .card-video.is-playing { opacity: 1; }
@media (max-width: 760px) {
  .w-link { grid-template-columns: 2.25rem minmax(0, 1fr) 64px; gap: 4px 14px; align-items: center; }
  .w-num { grid-row: 1 / span 2; align-self: start; padding-top: 0.35em; }
  .w-title { grid-column: 2; }
  .w-client { grid-column: 2; grid-row: 2; font-weight: 500; color: var(--muted); font-size: 0.9375rem; }
  .w-tags, .w-year { display: none; }
  .w-thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 64px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
  .w-thumb img { width: 100%; height: 100%; object-fit: cover; }
  html.fine .w-preview { display: none; }
}

/* ---------- work: a carousel you swipe sideways ---------- */
.work--carousel { padding-inline: 0; }
.work--carousel .section-head { padding-inline: var(--gutter); flex-wrap: wrap; }
.car-nav { display: flex; gap: 10px; margin-left: auto; align-self: flex-end; }
.car-btn {
  width: 52px; height: 52px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.car-btn svg { width: 20px; }
.car-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
html.no-js .car-nav { display: none; }
.car-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 30vw, 460px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 6px; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-card { scroll-snap-align: start; }
.car-card a { display: block; }
.car-card .frame { aspect-ratio: 4 / 5; }
.car-card .frame img { transition: filter 0.6s ease; }
.car-card a:hover .frame img { filter: brightness(0.92); }
.car-bar { position: relative; height: 2px; margin: clamp(24px, 4vh, 40px) var(--gutter) 0; background: var(--line); }
.car-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: var(--ink); }
@media (max-width: 760px) { .car-track { grid-auto-columns: 78vw; gap: 14px; } }

/* ---------- work: a filmstrip that slides sideways as you scroll ---------- */
.work--filmstrip { padding: 0; }
.strip-pin { padding: clamp(80px, 14vh, 160px) 0 clamp(40px, 8vh, 100px); }
.strip-pin > .section-head { padding-inline: var(--gutter); }
.strip-window { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip-window::-webkit-scrollbar { display: none; }
.strip-track { position: relative; display: flex; gap: 14px; width: max-content; padding: 40px var(--gutter) 36px; background: var(--dark); color: var(--on-dark); }
/* the sprocket holes along both edges */
.strip-track::before, .strip-track::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-dark) 80%, var(--dark)) 0 11px, transparent 11px 24px);
}
.strip-track::before { top: 15px; }
.strip-track::after { bottom: 13px; }
.strip-frame { flex: none; width: clamp(250px, 40vw, 620px); scroll-snap-align: start; }
.strip-frame a { display: block; }
.strip-frame .frame { aspect-ratio: 3 / 2; }
.strip-frame .frame img { transition: filter 0.6s ease; }
.strip-frame a:hover .frame img { filter: brightness(1.08); }
.strip-cap { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; font-size: 0.875rem; color: color-mix(in srgb, var(--on-dark) 65%, transparent); }
.strip-cap > span:first-child { font-variant-numeric: tabular-nums; }
.strip-title { color: var(--on-dark); font-family: var(--font-display); font-weight: 700; font-stretch: var(--display-stretch, normal); font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: -0.01em; }
.strip-sub { margin-left: auto; white-space: nowrap; }
.work--filmstrip.is-pinned { height: var(--strip-h, auto); }
.work--filmstrip.is-pinned .strip-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; overflow: hidden; overflow: clip; }
.work--filmstrip.is-pinned .strip-window { overflow: visible; }
.work--filmstrip.is-pinned .strip-track { will-change: transform; }
.work--filmstrip.is-pinned .strip-frame { width: min(40vw, 620px, (100vh - 330px) * 1.5); }
@media (max-width: 760px) { .strip-frame { width: 76vw; } .strip-sub { display: none; } }

/* ---------- work: full-screen panels, one project per screen ---------- */
.work--panels { padding: 0; }
.panel { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); }
.panel-media { position: absolute; inset: 0; overflow: hidden; }
.panel-media img, .panel-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--dark) 82%, transparent), transparent 55%); }
.panel-link { position: absolute; inset: 0; z-index: 2; }
.panel-info { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; pointer-events: none; }
.panel-count { font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.8; }
.panel-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-stretch: var(--display-stretch, normal); font-size: clamp(2.8rem, 10vw, 10rem); line-height: 0.86; letter-spacing: -0.045em; max-width: 14ch; overflow-wrap: break-word; }
.panel-sub { max-width: 60ch; font-size: clamp(1rem, 1.3vw, 1.2rem); opacity: 0.85; }
.panel .vid-toggle { z-index: 4; top: calc(76px + env(safe-area-inset-top, 0px)); bottom: auto; }

/* ---------- work: chapters, every project told in full ---------- */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 24px; border-top: 1px solid var(--ink); margin-bottom: clamp(24px, 6vh, 64px); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-weight: 600; transition: color 0.3s ease; }
.toc a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--accent); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: clamp(56px, 12vh, 140px); border-top: 1px solid var(--line); }
.chapter-side { grid-column: 1 / span 4; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 16px; padding-right: 12px; }
.chapter-num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(3rem, 7vw, 7rem); line-height: 0.8; letter-spacing: -0.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.chapter-title { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-stretch: var(--display-stretch, normal); font-size: clamp(2rem, 3.6vw, 3.75rem); line-height: 0.92; letter-spacing: -0.035em; overflow-wrap: break-word; }
.chapter-meta { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ink); }
.chapter-meta dt { color: var(--muted); font-size: 0.875rem; }
.chapter-meta dd { font-weight: 600; }
.chapter-link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.chapter-link:hover { color: var(--accent); }
.chapter-body { grid-column: 5 / span 8; display: grid; gap: clamp(28px, 6vh, 64px); }
.chapter-cover { aspect-ratio: 16 / 10; }
.chapter-img { aspect-ratio: 3 / 2; }
.chapter-img:nth-child(even) { width: 70%; justify-self: end; aspect-ratio: 4 / 5; }
.chapter-copy { display: grid; gap: 18px; max-width: 62ch; }
.chapter-copy p { font-size: 1.125rem; line-height: 1.6; }
.chapter-copy .chapter-summary { font-family: var(--font-display); font-weight: 700; font-stretch: var(--display-stretch, normal); font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .chapter-side, .chapter-body { grid-column: 1; }
  .chapter-side { position: static; }
  .chapter-img:nth-child(even) { width: 100%; aspect-ratio: 3 / 2; }
}

/* ---------- layout: reel (full-screen video sections that snap into place) ---------- */
html.layout-reel { scroll-snap-type: y proximity; }
.layout-reel .grid-lines { display: none; }
.layout-reel .hero--overlay, .layout-reel .hero--split, .layout-reel .panel, .layout-reel .band { scroll-snap-align: start; }
.layout-reel .band { min-height: 100vh; min-height: 100svh; margin-top: 0; }
.layout-reel .p-cover { height: 100vh; height: 100svh; margin: 0; }
.layout-reel .ftr-word { color: transparent; -webkit-text-stroke: max(1.5px, 0.01em) var(--on-dark); }

/* ---------- layout: index (a quiet list of work, for photographers) ---------- */
.layout-index .h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.layout-index .ftr-word { font-size: clamp(3rem, 12vw, 13rem); }
.layout-index .p-gallery { grid-template-columns: minmax(0, 1fr); }
.layout-index .g-item { aspect-ratio: 16 / 10; }
.layout-index .g-item:nth-child(even) { margin-top: 0; }

/* ---------- layout: story (one long case-study scroll) ---------- */
.layout-story .grid-lines { display: none; }
.layout-story .hero:not(.hero--split, .hero--overlay) { text-align: center; }
.layout-story .hero:not(.hero--split, .hero--overlay) .hero-row { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.layout-story .hero:not(.hero--split, .hero--overlay) .hero-copy { justify-items: center; }
.layout-story .hero:not(.hero--split, .hero--overlay) .hero-intro { max-width: 40ch; }
.layout-story .hero + .hero-media { margin: 0; height: clamp(420px, 92vh, 1000px); }
.layout-story .ftr-word { text-align: center; margin-left: 0; }
.progress { position: fixed; z-index: 45; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .badge svg:first-child, .marquee-track { animation: none; }
  .hero-media img, .frame img, .band > img, .hero-media video, .frame video, .panel-media img, .panel-media video { transform: none; }
  .curtain { display: none; }
  .egg { transition: none; }
  .w-link, .w-title, .w-preview, .w-pv { transition: none; }
}
