@font-face { font-family: "Abril Fatface"; src: url(fonts/abril-fatface-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/geist-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --sc-canvas: #0e0d0c;  --sc-surface: #181614;
  --sc-ink: #f3ece4;     --sc-ink-soft: #bdb2a6;
  --sc-accent: #eea38f;  --sc-accent-ink: #1a1210;
  --sc-font-display: "Abril Fatface", Georgia, serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-shadow-color: 20 30% 3%;
}

.title, .hero__title, .bar__mark, .quote__a, .close__lead {
  font-family: var(--sc-font-display); font-weight: 400; letter-spacing: -0.01em;
}

/* chrome */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--sc-gutter);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.bar a { pointer-events: auto; text-decoration: none; }
.bar__mark { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1; }
.bar__nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); font-size: var(--sc-t-sm); letter-spacing: 0.04em; }
.bar__nav a { position: relative; padding-block: 0.4rem; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--sc-d-slow) var(--sc-ease-out); }
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.progress { background: var(--sc-accent); }

.index { position: fixed; right: var(--sc-gutter); top: 50%; translate: 0 -50%; z-index: var(--sc-z-chrome); }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; justify-items: end; }
.index a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-size: var(--sc-t-xs); letter-spacing: 0.06em; color: var(--sc-ink); padding: 0.15rem 0; }
.index a span { opacity: 0; translate: 6px 0; transition: opacity var(--sc-d-base) var(--sc-ease-out), translate var(--sc-d-base) var(--sc-ease-out); text-shadow: 0 1px 8px rgb(0 0 0 / 0.6); }
.index a::after { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.45; transition: width var(--sc-d-slow) var(--sc-ease-out), opacity var(--sc-d-base), background-color var(--sc-d-base); box-shadow: 0 1px 4px rgb(0 0 0 / 0.4); }
.index a:hover span, .index a:focus-visible span, .index a[aria-current] span { opacity: 1; translate: 0 0; }
.index a[aria-current]::after { width: 34px; opacity: 1; background: var(--sc-accent); }
.index a:hover::after { opacity: 1; }
.is-close .index { opacity: 0; pointer-events: none; }
.index { transition: opacity var(--sc-d-slow); }
@media (max-width: 899px) { .index { display: none; } }

/* shared copy pieces */
.kicker { margin: 0 0 0.6rem; font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.35rem); letter-spacing: 0.02em; color: var(--sc-ink); text-shadow: 0 1px 10px rgb(0 0 0 / 0.45); }
.title { margin: 0; font-size: clamp(3.4rem, 1.5rem + 9vw, 11rem); line-height: 0.92; color: var(--tone, var(--sc-accent)); text-shadow: 0 2px 30px rgb(0 0 0 / 0.35); text-wrap: balance; }
.title--xl { font-size: clamp(4.4rem, 2rem + 12vw, 14rem); }
.play {
  display: inline-flex; align-items: center; gap: 0.8rem; margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0.85rem 1.4rem 0.85rem 1rem; min-height: 48px; border-radius: var(--sc-r-pill);
  background: color-mix(in oklab, var(--sc-canvas) 55%, transparent); color: var(--sc-ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 22%, transparent);
  text-decoration: none; font-size: var(--sc-t-sm); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color var(--sc-d-base) var(--sc-ease-out), color var(--sc-d-base), transform var(--sc-d-base) var(--sc-ease-out);
}
.play:hover { background: var(--tone, var(--sc-accent)); color: #14100e; transform: translateY(-2px); }
.play__dot { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--tone, var(--sc-accent)); display: grid; place-items: center; flex: none; transition: background-color var(--sc-d-base); }
.play__dot::before { content: ""; margin-left: 3px; border-left: 9px solid #14100e; border-block: 6px solid transparent; }
.play:hover .play__dot { background: #14100e; }
.play:hover .play__dot::before { border-left-color: var(--tone, var(--sc-accent)); }

/* hero: a cinemascope window that opens into the reel */
.hero__stage { --w0: min(62vw, 1100px); --o: clamp(0, calc((var(--sc-p, 0) - 0.06) / 0.56), 1); background: var(--sc-canvas); }
.hero__frame {
  position: absolute; inset: 0; display: block;
  --ix: calc((100vw - var(--w0)) / 2 * (1 - var(--o)));
  --iy: calc((100svh - var(--w0) / 2.39) / 2 * (1 - var(--o)));
  clip-path: inset(max(0px, var(--iy)) var(--ix) round calc(6px * (1 - var(--o))));
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - 0.14 * var(--o))); }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; opacity: var(--o);
  background: linear-gradient(to top right, rgb(10 9 8 / 0.82) 0%, rgb(10 9 8 / 0.45) 30%, transparent 60%); }
.hero__title { position: absolute; z-index: var(--sc-z-copy); left: var(--sc-gutter); top: clamp(5rem, 13vh, 9rem); margin: 0; font-size: clamp(2.6rem, 1rem + 6vw, 7rem); line-height: 0.98; color: var(--sc-accent); }
.hero__title span { display: block; }
.hero__title span + span { padding-left: 0.9em; }
.hero__role { position: absolute; z-index: var(--sc-z-copy); right: var(--sc-gutter); bottom: clamp(2.5rem, 10vh, 7rem); margin: 0; max-width: 22ch; text-align: right; font-size: clamp(1.05rem, 0.85rem + 0.8vw, 1.6rem); line-height: 1.3; color: var(--sc-ink-soft); }
.hero__role strong { color: var(--sc-ink); font-weight: 600; }
.hero__reel { position: absolute; z-index: var(--sc-z-copy); left: var(--sc-gutter); bottom: clamp(2.5rem, 10vh, 7rem); --tone: #00bfef; }
@media (max-width: 699px) {
  .hero__stage { --w0: 88vw; }
  .hero__title { top: 18svh; }
  .hero__role { bottom: 14svh; }
}

/* work: each still opens from a cinemascope band to full frame */
.work { position: relative; height: 112vh; height: 112svh; overflow: clip; --o: clamp(0, calc((var(--sc-p, 0) - 0.05) * 3.4), 1); }
.work__media {
  position: absolute; inset: 0; display: block; background: #0b0a09;
  --iy: calc((100% - 100vw / 2.39) / 2 * (1 - var(--o)));
  --ix: calc(8vw * (1 - var(--o)));
  clip-path: inset(max(0px, var(--iy)) var(--ix));
}
.work__media img { width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, calc((var(--sc-p, 0.5) - 0.5) * -10vh), 0) scale(calc(1.22 - 0.1 * var(--o))); }
.work--contain .work__media img { object-fit: contain; transform: scale(calc(1.08 - 0.08 * var(--o))); }
.work__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.work:has(.work__copy--lead) .work__media::after { background: linear-gradient(to top right, rgb(10 9 8 / 0.78) 0%, rgb(10 9 8 / 0.4) 30%, transparent 58%); }
.work:has(.work__copy--trail) .work__media::after { background: linear-gradient(to top left, rgb(10 9 8 / 0.78) 0%, rgb(10 9 8 / 0.4) 30%, transparent 58%); }
.work__copy { position: absolute; z-index: var(--sc-z-copy); bottom: clamp(3rem, 14vh, 9rem); max-width: min(70rem, 84vw);
  opacity: clamp(0, calc((var(--sc-p, 0) - 0.18) * 6), 1);
  transform: translate3d(0, calc((1 - clamp(0, calc((var(--sc-p, 0) - 0.18) * 6), 1)) * 4vh), 0); }
.work__copy--lead { left: var(--sc-gutter); }
.work__copy--trail { right: calc(var(--sc-gutter) + 3rem); text-align: right; }
@media (max-width: 899px) { .work__copy--trail { right: var(--sc-gutter); } }
@media (max-width: 699px) {
  .work__copy--trail { right: auto; left: var(--sc-gutter); text-align: left; }
  .work .work__media::after { background: linear-gradient(to top, rgb(10 9 8 / 0.85) 0%, rgb(10 9 8 / 0.45) 30%, transparent 55%) !important; }
}

/* quote */
.quote__stage { display: grid; align-items: center; }
.quote__bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.quote__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 14 15 / 0.9) 0%, rgb(12 14 15 / 0.62) 45%, rgb(12 14 15 / 0.15) 85%); }
.quote__text { position: relative; z-index: var(--sc-z-copy); margin: 0; padding-inline: var(--sc-gutter); max-width: 74rem; }
.quote__text p { margin: 0; }
.quote__a { font-size: clamp(2.4rem, 1rem + 5.2vw, 6.4rem); line-height: 1.02; color: var(--sc-accent); text-wrap: balance; }
.quote__b { margin-top: clamp(1rem, 2.5vw, 2rem) !important; font-size: clamp(1.4rem, 0.9rem + 2.4vw, 3.2rem); line-height: 1.15; font-weight: 300; color: var(--sc-ink); max-width: 24ch; text-wrap: balance; }

/* close: the page lands on salmon */
.close { --sc-ink: #1a1210; --sc-ink-soft: #4b3029; color: var(--sc-ink); }
.close__stage { display: grid; grid-template-rows: 1fr auto; background: var(--sc-accent); }
.close__inner { align-self: center; padding-inline: var(--sc-gutter); }
.close__lead { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(3rem, 1rem + 8vw, 9.5rem); line-height: 0.95; }
.close__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.close__links a { font-size: clamp(1.3rem, 0.9rem + 2vw, 2.6rem); font-weight: 500; letter-spacing: -0.01em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--sc-d-slow) var(--sc-ease-out); padding-bottom: 0.1em; }
.close__links a:hover { background-size: 100% 2px; }
.close :focus-visible { outline-color: var(--sc-ink); }
.foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem var(--sc-gutter) max(1.25rem, env(safe-area-inset-bottom)); font-size: var(--sc-t-xs); letter-spacing: 0.04em; color: var(--sc-ink-soft); border-top: 1px solid rgb(26 18 16 / 0.15); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* player */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; color: var(--sc-ink); }
.player::backdrop { background: rgb(8 7 6 / 0.92); backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; animation: playerIn 320ms var(--sc-ease-out); }
@keyframes playerIn { from { opacity: 0; transform: scale(0.98); } }
.player__box { width: min(92vw, calc(80dvh * 16 / 9)); }
.player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--sc-r-sm); overflow: hidden; box-shadow: var(--sc-e3); }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.player__title { margin: 0; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.player__close { background: none; border: 1px solid color-mix(in oklab, var(--sc-ink) 30%, transparent); border-radius: var(--sc-r-pill); padding: 0.6rem 1.1rem; min-height: 44px; cursor: pointer; font-size: var(--sc-t-sm); letter-spacing: 0.06em; }
.player__close:hover { background: var(--sc-ink); color: var(--sc-canvas); }

@media (prefers-reduced-motion: reduce) {
  .hero__stage, .work { --o: 1; }
  .work__media img, .hero__frame img { transform: none; }
  .work__copy { opacity: 1; transform: none; }
  .player[open] { animation: none; }
}
.bar__lang { opacity: 0.6; }
.bar__lang:hover, .bar__lang:focus-visible { opacity: 1; }
