/* ==========================================================================
   The Athlete’s Foot — Manifesto Video · cinematic slideshow
   Palette: the deck is black & white photography with white Oswald type.
   The one warm accent is the cream of the Marrakesh wordmark.
   ========================================================================== */

:root {
  --bg: #0b0b0a;
  --bg-rgb: 11 11 10;
  --ink: #f3f1e8;
  --ink-2: rgb(243 241 232 / .72);
  --ink-3: rgb(243 241 232 / .48);
  --line: rgb(243 241 232 / .16);
  --cream: #e8e6cf;             /* Marrakesh cream (login card) */
  --red: #e95348;               /* TAF logo red */
  --navy: #0a1099;              /* TAF logo navy */
  --accent: var(--red);
  --accent-ink: #0b0b0a;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "DM Sans", system-ui, sans-serif;

  /* type scale (≈1.333, fluid) */
  --t-xs: .6875rem;
  --t-sm: clamp(.8125rem, .76rem + .2vw, .9rem);
  --t-base: clamp(.9375rem, .86rem + .3vw, 1.0625rem);
  --t-lg: clamp(1.125rem, .95rem + .8vw, 1.625rem);
  --t-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --t-2xl: clamp(2rem, 1.2rem + 2.9vw, 4rem);
  --t-3xl: clamp(2.875rem, 1.2rem + 7vw, 8.75rem);

  --gutter: clamp(16px, 4vw, 64px);
  --topbar-h: clamp(64px, 8vh, 88px);
  --footer-h: 40px;
  --thumb-w: clamp(78px, 6vw, 112px);
  --browse-h: calc(var(--thumb-w) * 9 / 16 + 34px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fade: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-base)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- App shell ---------- */
.app {
  position: fixed; inset: 0;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.ambient { position: absolute; inset: 0; z-index: 0; }
.ambient__video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.5) contrast(1.05) brightness(.5);
  transform: scale(1.04);
}

.stage { position: absolute; inset: 0; z-index: 1; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(to bottom, rgb(var(--bg-rgb) / .7), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__brand { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); }
.topbar__logo { height: clamp(15px, 1.5vw, 22px); width: auto; }
.topbar__logo--mk { height: clamp(13px, 1.3vw, 19px); opacity: .92; }
.topbar__x { font: 300 var(--t-sm)/1 var(--display); color: var(--ink-3); }
.topbar__meta { display: flex; align-items: center; gap: 10px; }

.counter {
  font: 400 var(--t-sm)/1 var(--display);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  margin-right: 6px;
}
#counterNow { color: var(--ink); }
.counter__sep { margin: 0 .45em; color: var(--ink-3); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(var(--bg-rgb) / .35);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgb(243 241 232 / .12); border-color: rgb(243 241 232 / .4); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.i-fs-exit { display: none; }
.app.is-fullscreen .i-fs { display: none; }
.app.is-fullscreen .i-fs-exit { display: block; }
.no-fullscreen #fsBtn { display: none; }

.exit-btn {
  height: 40px; padding: 0 16px 0 13px; margin-left: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 20px; border: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.exit-btn svg { width: 16px; height: 16px; }
.exit-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Slides ---------- */
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-fade) var(--ease-out), visibility 0s linear var(--t-fade);
  z-index: 0;
}
.slide.is-leaving { z-index: 1; visibility: visible; }
.slide.is-active {
  opacity: 1; visibility: visible; z-index: 2;
  transition: opacity var(--t-fade) var(--ease-out), visibility 0s;
}

.slide__bg { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.slide__bg > img,
.slide__bg > video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  transform-origin: 60% 45%;
  filter: brightness(.68) saturate(.92);
}
.slide__bg--left > img { object-position: left center; transform-origin: 30% 50%; }
.slide__bg--top > img { object-position: center top; transform-origin: 50% 20%; }

/* Ken Burns: slow push-out that keeps running while the slide fades away */
.slide.is-active .slide__bg > *,
.slide.is-leaving .slide__bg > * {
  animation: kenburns 9s var(--ease-out) forwards;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.1) translate3d(0, 0, 0); }
  to   { transform: scale(1.0) translate3d(-.6%, -.4%, 0); }
}

/* Readability gradient: bottom + left, no flat colour blocks */
.slide__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / .97) 0%, rgb(var(--bg-rgb) / .82) calc(var(--browse-h) + 80px), rgb(var(--bg-rgb) / .3) 64%, rgb(var(--bg-rgb) / .5) 100%),
    linear-gradient(to right, rgb(var(--bg-rgb) / .85) 0%, rgb(var(--bg-rgb) / .35) 55%, rgb(var(--bg-rgb) / .1) 80%);
}
.slide--right .slide__shade {
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / .96) 0%, rgb(var(--bg-rgb) / .7) calc(var(--browse-h) + 60px), transparent 60%),
    linear-gradient(to left, rgb(var(--bg-rgb) / .95) 0%, rgb(var(--bg-rgb) / .7) 42%, rgb(var(--bg-rgb) / .15) 70%);
}
.slide--text .slide__shade {
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / .97) 0%, rgb(var(--bg-rgb) / .86) 55%, rgb(var(--bg-rgb) / .7) 100%);
}
.slide--hero .slide__shade {
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / .96) 0%, rgb(var(--bg-rgb) / .62) calc(var(--browse-h) + 110px), rgb(var(--bg-rgb) / .2) 70%, rgb(var(--bg-rgb) / .4) 100%),
    linear-gradient(to right, rgb(var(--bg-rgb) / .7), transparent 65%);
}

.slide__content {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: var(--topbar-h);
  bottom: calc(var(--browse-h) + var(--footer-h) + clamp(12px, 3vh, 36px));
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(12px, 2vh, 22px);
  max-width: 64rem;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.slide__content::-webkit-scrollbar { display: none; }
/* bottom-align without clipping the top when content is taller than the space */
.slide__content > :first-child { margin-top: auto; }
.slide--right .slide__content { left: 52%; max-width: none; }
.slide--text .slide__content { max-width: 84rem; }
.slide--invest .slide__content { max-width: none; align-items: center; }
.slide--invest .fineprint { text-align: center; }

.slide__content--split {
  flex-direction: row; align-items: flex-end; gap: clamp(20px, 4vw, 64px);
  max-width: 78rem;
}
.slide__content--split > div { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px); flex: 1 1 0; min-width: 0; }

/* ---------- Typography ---------- */
.display {
  font: 500 var(--t-3xl)/.9 var(--display);
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 14ch;
}
.slide--hero .display { max-width: none; }
.headline {
  font: 500 var(--t-2xl)/1 var(--display);
  letter-spacing: -.005em;
  text-wrap: balance;
  max-width: 20ch;
}
.eyebrow {
  font: 500 var(--t-xs)/1 var(--text);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede {
  font: 300 var(--t-lg)/1.3 var(--display);
  color: var(--ink);
  max-width: 38ch;
  text-wrap: pretty;
}
.body {
  font-size: var(--t-base);
  color: var(--ink-2);
  max-width: 62ch;
  display: flex; flex-direction: column; gap: .8em;
  text-wrap: pretty;
}
.body--columns { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); }
.body--wide { max-width: 82ch; font-size: var(--t-lg); font-family: var(--display); font-weight: 300; line-height: 1.45; }
.strong { color: var(--ink); font-weight: 500; }
.callout {
  font: 400 var(--t-lg)/1.3 var(--display);
  color: var(--cream);
  max-width: 44ch;
}

.lede--line { max-width: none; font-size: var(--t-lg); }
@media (min-width: 1000px) { .lede--line { white-space: nowrap; } }
.equations { list-style: none; display: grid; gap: 0; max-width: 46rem; }
.equations li {
  font: 300 var(--t-base)/1.4 var(--display);
  letter-spacing: .02em;
  padding: .5em 0; border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.plain { list-style: none; display: grid; gap: .25em; }
.plain li::before { content: "— "; color: var(--ink-3); }

.specs { list-style: none; display: grid; }
.specs li {
  font: 300 var(--t-xl)/1.2 var(--display);
  padding: .5em 0; border-top: 1px solid var(--line);
  max-width: 28ch;
}

/* ---------- Reveal (blur-in) ---------- */
.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 18px, 0);
}
.slide.is-active .reveal {
  opacity: 1; filter: blur(0); transform: none;
  transition:
    opacity var(--t-fade) var(--ease-out),
    filter var(--t-fade) var(--ease-out),
    transform var(--t-fade) var(--ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 70ms);
}

/* ---------- Framework table ---------- */
.framework { display: grid; max-width: 72rem; }
.framework > div {
  display: grid; grid-template-columns: minmax(110px, 13rem) 1fr; gap: 24px;
  padding: .7em 0; border-top: 1px solid var(--line);
}
.framework dt { font: 500 var(--t-base)/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.framework dd { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
.framework__head { border-top: 0 !important; padding-bottom: .3em !important; }
.framework__head dt, .framework__head dd {
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Creative pillars ---------- */
.pillars { display: grid; gap: clamp(16px, 2.6vh, 28px); }
.pillars dt {
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7em;
}
.pillars dd { font: 300 var(--t-xl)/1.2 var(--display); text-wrap: balance; }

/* ---------- Reference films ---------- */
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); max-width: 76rem; }
.films--single { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.films--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 84rem; }
.film video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  max-height: 44vh;
  background: #000;
}
.film figcaption, .ref figcaption {
  margin-top: .6em; font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.film figcaption a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.film figcaption a:hover { color: var(--ink); border-color: var(--ink); }

.ref { flex: 0 0 auto; width: clamp(240px, 34vw, 520px); }
.ref video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.ref .player { box-shadow: 0 24px 70px rgb(0 0 0 / .55); }
/* ---------- Film player (click animation) ---------- */
.player { position: relative; border-radius: 4px; overflow: hidden; background: #000; }
.player video { display: block; }
.player__start {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at center, rgb(0 0 0 / .15), rgb(0 0 0 / .45));
  transition: opacity .45s var(--ease-out), visibility 0s;
}
.player.is-started .player__start { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s linear .45s; }
.player__ring {
  position: relative; width: clamp(56px, 5vw, 76px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(10 16 153 / .82);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 14px 40px rgb(0 0 0 / .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.player__ring svg { width: 42%; margin-left: 6%; }
.player__ring::before, .player__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--red); opacity: 0;
}
.player__start:hover .player__ring { transform: scale(1.1); background: var(--red); }
.player__start:hover .player__ring::before { animation: ring 1.6s var(--ease-out) infinite; }
.player__start.is-pressed .player__ring { animation: press .5s var(--ease-out); }
.player__start.is-pressed .player__ring::after { animation: ring .7s var(--ease-out); }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
@keyframes press { 0% { transform: scale(1.1); } 40% { transform: scale(.86); } 100% { transform: scale(1.15); } }

.player__flash {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(0 0 0 / .5); color: #fff;
  opacity: 0; pointer-events: none;
}
.player__flash svg { width: 28px; }
.player__flash.is-on { animation: flash .7s var(--ease-out) forwards; }
@keyframes flash { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- Mood boards ---------- */
.board {
  display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: clamp(14px, 2vw, 32px);
  max-width: 84rem; align-items: start;
}
.board__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.board__label {
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.board__cap, .board figcaption {
  font: 400 var(--t-sm)/1.3 var(--display); letter-spacing: .04em; color: var(--ink-2);
}
.board__grid { display: grid; gap: 8px; --h: clamp(140px, 30vh, 320px); grid-template-rows: minmax(0, 1fr); }
.board__grid > * { min-height: 0; }
.board__grid img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: rgb(243 241 232 / .05);
}
.board__grid img.contain { object-fit: contain; }
.board__grid img.pos-top { object-position: 50% 42%; }
.board__grid--1 { height: var(--h); }
.board__grid--2 { grid-template-columns: 1fr 1fr; height: var(--h); }
.board__grid--3 { grid-template-columns: repeat(3, 1fr); height: var(--h); }
.board__grid--3.board__grid--2 { grid-template-columns: 1fr 1fr; }
.board__grid--stack { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; height: var(--h); }
.board__grid--stack img:last-child.contain { height: 34px; object-fit: cover; }
.board figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; min-height: 0; }
.board figure img { min-height: 0; }

/* ---------- Shot loops ---------- */
.shots {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px);
  align-items: end; max-width: min(84rem, calc((100svh - var(--topbar-h) - var(--browse-h) - var(--footer-h) - 260px) * 16 / 9 * 4));
}
.shots--3 { grid-template-columns: 1fr 1fr .316fr; max-width: min(64rem, calc((100svh - var(--topbar-h) - var(--browse-h) - var(--footer-h) - 220px) * 16 / 9 * 2.4)); }
.shots figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shots video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: #000; }
.shots .portrait video { aspect-ratio: 9 / 16; }
.shots--3 .portrait figcaption { white-space: nowrap; }
.shots figcaption { font: 400 var(--t-sm)/1.2 var(--display); letter-spacing: .04em; color: var(--ink-2); }

/* ---------- Investment: Netflix-style title row ---------- */
.slide--invest .slide__bg > img { filter: brightness(.5) saturate(.8); }
.slide--invest .slide__shade {
  background: linear-gradient(to top, rgb(var(--bg-rgb) / .97) 0%, rgb(var(--bg-rgb) / .8) 40%, rgb(var(--bg-rgb) / .2) 72%, rgb(var(--bg-rgb) / .3) 100%);
}
.titles { margin-top: auto; list-style: none; display: flex; justify-content: center; gap: clamp(18px, 3.2vw, 56px); align-items: flex-end; padding-top: 18px; }
.title-card {
  --h: clamp(170px, 38vh, 400px);
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end;
  text-decoration: none; color: inherit; outline-offset: 6px; border-radius: 6px;
}
.title-card__rank {
  grid-row: 1; grid-column: 1;
  font: 600 calc(var(--h) * .62)/.78 var(--display);
  color: var(--bg);
  -webkit-text-stroke: 2px rgb(243 241 232 / .55);
  margin-right: calc(var(--h) * -.09);
  position: relative; z-index: 0;
  transition: -webkit-text-stroke-color .35s var(--ease-out);
}
.title-card__poster {
  grid-row: 1; grid-column: 2; position: relative; z-index: 1;
  height: var(--h); aspect-ratio: 941 / 1672;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / .6);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.title-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.title-card__poster::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .35s var(--ease-out);
}
.title-card__cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 26px 10px 12px;
  background: linear-gradient(to top, rgb(0 0 0 / .85), transparent);
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .24em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.title-card__cta svg { width: 14px; height: 14px; }
.title-card__meta {
  grid-row: 2; grid-column: 2;
  display: grid; gap: 6px; padding-top: 14px; max-width: calc(var(--h) * 941 / 1672 + 40px);
}
.title-card__idea { font: 500 var(--t-xs)/1 var(--text); letter-spacing: .3em; color: var(--accent); }
.title-card__name { font: 500 var(--t-base)/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.title-card__amt { font: 300 var(--t-lg)/1 var(--display); font-variant-numeric: tabular-nums; }
.title-card:hover .title-card__poster,
.title-card:focus-visible .title-card__poster { transform: translateY(-8px) scale(1.04); box-shadow: 0 34px 80px rgb(0 0 0 / .75); }
.title-card:hover .title-card__poster::after,
.title-card:focus-visible .title-card__poster::after { box-shadow: inset 0 0 0 2px var(--accent); }
.title-card:hover .title-card__cta,
.title-card:focus-visible .title-card__cta { opacity: 1; transform: none; }
.title-card:hover .title-card__rank { -webkit-text-stroke-color: var(--accent); }
.title-card:focus-visible { outline: none; }
.fineprint { font-size: var(--t-xs); letter-spacing: .12em; color: var(--ink-3); }

/* ---------- Browse row ---------- */
.browse {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: var(--footer-h);
  height: var(--browse-h);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  opacity: .72; transition: opacity .35s var(--ease-out);
}
.browse:hover, .browse:focus-within { opacity: 1; }
.browse__head {
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter);
}
.browse__chapter {
  flex: 0 0 auto;
  font: 500 var(--t-xs)/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2);
  min-width: 9.5em;
}
.dots { flex: 1; display: flex; gap: 3px; height: 14px; align-items: center; }
.dot {
  flex: 1; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.dot::before, .dot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px;
}
.dot::before { background: rgb(243 241 232 / .22); transition: background .2s; }
.dot:hover::before { background: rgb(243 241 232 / .55); }
.dot.is-done::before { background: rgb(243 241 232 / .6); }
.dot::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.dot.is-active::after { transform: scaleX(1); }

.browse__row { display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter); }
.rail-btn {
  flex: 0 0 auto; width: 34px; height: calc(var(--thumb-w) * 9 / 16);
  display: grid; place-items: center; border-radius: 3px;
  border: 1px solid var(--line); background: rgb(var(--bg-rgb) / .5);
  cursor: pointer; color: var(--ink);
  transition: background .25s, border-color .25s, opacity .25s;
}
.rail-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.rail-btn:hover { background: var(--red); border-color: var(--red); }
#prevBtn:hover svg { transform: translateX(-2px); }
#nextBtn:hover svg { transform: translateX(2px); }
.rail-btn:disabled { opacity: .25; pointer-events: none; }
.rail {
  flex: 1; min-width: 0;
  display: flex; gap: clamp(6px, .6vw, 10px);
  overflow-x: auto; overflow-y: hidden;
  padding: 3px 12px 4px;
  scroll-snap-type: x proximity;
  scroll-padding: 0 12px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.rail::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 var(--thumb-w);
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
  border: 0; padding: 0; border-radius: 3px;
  background: #1a1a18; cursor: pointer;
  scroll-snap-align: start;
  opacity: .5;
  transition: opacity .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .6s var(--ease-out), filter .35s; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .85), transparent 65%);
}
.thumb__num, .thumb__title { position: absolute; z-index: 1; left: 7px; right: 7px; text-align: left; }
.thumb__num { top: 5px; font: 500 8px/1 var(--display); letter-spacing: .14em; color: var(--ink-2); }
.thumb__title {
  bottom: 4px; font: 500 clamp(.5rem, .45rem + .15vw, .62rem)/1.15 var(--display); letter-spacing: .03em;
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thumb:hover { opacity: .9; }
.thumb:hover img { transform: scale(1.05); }
.thumb.is-active {
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.thumb.is-active img { filter: none; }
.thumb.is-active .thumb__num { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 20px;
  border-top: 1px solid rgb(243 241 232 / .08);
  background: rgb(var(--bg-rgb) / .92);
}
.footer__legal {
  flex: 1; min-width: 0;
  font-size: 9px; letter-spacing: .14em; line-height: 1.3; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.footer__copy { font: 500 10px/1 var(--text); letter-spacing: .2em; color: var(--ink-2); flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .body--columns { grid-template-columns: 1fr 1fr; }
  .body--columns p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root {
    --thumb-w: 76px;
    --footer-h: 52px;
    --topbar-h: 60px;
  }
  .slide__content,
  .slide--right .slide__content { left: var(--gutter); right: var(--gutter); max-width: none; bottom: calc(var(--browse-h) + var(--footer-h) + 52px); }
  .slide--right .slide__shade, .slide__shade {
    background: linear-gradient(to top, rgb(var(--bg-rgb) / .97) 0%, rgb(var(--bg-rgb) / .85) 50%, rgb(var(--bg-rgb) / .35) 80%, rgb(var(--bg-rgb) / .5) 100%);
  }
  .slide--hero .slide__shade {
    background: linear-gradient(to top, rgb(var(--bg-rgb) / .95) 0%, rgb(var(--bg-rgb) / .5) 45%, transparent 75%);
  }
  .slide__content { justify-content: flex-start; }
  .slide__content > :first-child { margin-top: auto; }
  .slide__content--split { flex-direction: column; align-items: stretch; }
  .ref { width: 100%; max-width: 360px; }
  .body--columns { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board__grid { --h: 180px; }
  .shots { grid-template-columns: 1fr 1fr; max-width: none; }
  .shots--3 { grid-template-columns: 1fr 1fr; }
  .shots--3 .portrait { grid-column: 1 / -1; width: 32%; }
  .films { grid-template-columns: 1fr; }
  .film video { max-height: 30vh; }
  .framework > div { grid-template-columns: 1fr; gap: 4px; }
  .titles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; align-items: start; }
  .title-card { display: flex; flex-direction: column; }
  .title-card__rank { display: none; }
  .title-card__poster { height: auto; width: 100%; }
  .title-card__meta { max-width: none; padding-top: 10px; }
  .title-card__name { font-size: var(--t-sm); }
  .title-card__amt { font-size: var(--t-sm); }
  .title-card__cta { opacity: 1; transform: none; font-size: 8px; letter-spacing: .14em; padding: 18px 4px 8px; }
  .rail-btn { width: 28px; }
  .topbar__x { display: none; }
  .topbar__logo { height: 13px; }
  .topbar__logo--mk { height: 11px; }
  .exit-btn { padding: 0 12px; }
  .exit-btn span { display: none; }
  .browse__chapter { min-width: 0; max-width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .counter { display: none; }
  .footer { gap: 12px; }
  .footer__legal { white-space: normal; font-size: 7.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
}

@media (max-height: 560px) and (min-width: 761px) {
  :root { --thumb-w: 120px; }
}

/* ---------- Reduced motion: simple fade only ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --t-fade: 450ms; }
  .slide.is-active .slide__bg > *,
  .slide.is-leaving .slide__bg > * { animation: none; }
  .slide__bg > img, .slide__bg > video, .ambient__video { transform: none; }
  .reveal { filter: none; transform: none; }
  .slide.is-active .reveal { transition: opacity var(--t-fade) ease-out; transition-delay: 0ms; }
  .thumb, .thumb img, .title-card__poster, .title-card__cta { transition: none; }
  .player__ring, .player__ring::before, .player__ring::after, .player__flash.is-on { animation: none !important; }
}

/* ==========================================================================
   Password gate
   Background stays visible around the card; the card's image panel keeps the
   shoe centred so nothing important gets covered.
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  overflow-y: auto;
  transition: opacity 700ms var(--ease-out), visibility 0s;
}
body:not(.is-locked) .gate {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 700ms var(--ease-out), visibility 0s linear 700ms;
}
body.is-locked .app { visibility: hidden; }

.gate__bg { position: fixed; inset: 0; z-index: -1; background: #120a2a; }
.gate__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  filter: blur(18px) saturate(1.15) brightness(.7);
  transform: scale(1.08);
}

.gate__card {
  width: min(1040px, 100%);
  min-height: min(560px, calc(100svh - 2 * clamp(16px, 4vw, 56px)));
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--cream);
  color: var(--accent-ink);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 40px 120px rgb(10 0 40 / .55);
  animation: gateIn 900ms var(--ease-out) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.gate__media { border-radius: 16px; overflow: hidden; min-height: 240px; background: #1c0f3a; }
.gate__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

.gate__form {
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: clamp(24px, 4vw, 56px);
}
.gate__brand { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; align-self: flex-start; }
.gate__logo { height: 20px; width: auto; filter: invert(1); }
.gate__logo--mk { height: 18px; }
.gate__x { font: 300 16px/1 var(--display); color: rgb(11 11 10 / .45); }
.gate__titles { display: grid; gap: 8px; margin-top: auto; }
.gate__kicker { font: 400 var(--t-base)/1 var(--text); color: rgb(11 11 10 / .7); }
.gate__title { font: 500 clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem)/.95 var(--display); letter-spacing: -.005em; }
.gate__sub { font: 300 var(--t-lg)/1.2 var(--display); color: rgb(11 11 10 / .75); }

.gate__field { position: relative; }
.gate__field input {
  width: 100%; height: 52px; padding: 0 60px 0 18px;
  border: 1px solid rgb(11 11 10 / .12); border-radius: 12px;
  background: rgb(255 255 255 / .55);
  font: 400 16px/1 var(--text); color: var(--accent-ink);
  transition: border-color .2s, background .2s;
}
.gate__field input::placeholder { color: rgb(11 11 10 / .45); }
.gate__field input:focus { outline: none; border-color: var(--accent-ink); background: #fff; }
.gate__submit {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px;
  border: 0; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.gate__submit svg { width: 18px; height: 18px; }
.gate__submit:focus-visible { outline-color: var(--accent-ink); }
.gate__error { min-height: 1.2em; margin-top: -12px; font-size: var(--t-sm); color: #9b1c2c; }
.gate.is-shake .gate__field { animation: shake 380ms; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.gate__foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(11 11 10 / .12);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 500 10px/1 var(--text); letter-spacing: .2em; color: rgb(11 11 10 / .6);
}
.gate__foot img { height: 12px; width: auto; filter: invert(1); }

@media (max-width: 760px) {
  .gate { place-items: start center; }
  .gate__card { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .gate__media { height: 34svh; min-height: 200px; border-radius: 12px; }
  .gate__form { gap: 18px; padding: 22px 16px 16px; }
  .gate__titles { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gate__card { animation: none; }
  .gate.is-shake .gate__field { animation: none; }
}
