/* =========================================================================
   PIANO AROUND THE WORLD — "The Long Frame"
   Cinematic-archive design system. Pilot for a documentary series.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Color */
  --bg: #fafaf7;
  --bg-cream: #f0ebe2;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --ink-mid: #5a5a5a;
  --ink-faint: #999488;
  --line: #d8d3c8;
  --line-strong: #0a0a0a;
  --accent: #c43d12;
  --accent-soft: #f8e8df;
  --frame-dark: #0a0a0a;

  /* Type */
  --font-display: 'Libre Caslon Text', 'Times New Roman', Georgia, serif;
  --font-body:    'Libre Caslon Text', 'Times New Roman', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', Courier, monospace;

  /* Layout */
  --max-prose: 36rem;
  --max-wide:  72rem;
  --max-full:  90rem;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-cine: cubic-bezier(0.65, 0, 0.35, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  font-variation-settings: 'opsz' 14, 'SOFT' 50;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* TYPE */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.kicker--accent { color: var(--accent); }
.kicker--light { color: rgba(255,255,255,0.7); }

/* HEADER — adapts to background */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* While in cinematic mode, header floats over frames using mix-blend.
   When user scrolls past the cinematic intro, header gets a solid backdrop. */
body.cinematic:not(.snap-released) .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
body.cinematic:not(.snap-released) .site-header > * {
  pointer-events: auto;
}

/* On the very first frame (the reel), hide the header entirely for ~3s
   then fade it in subtly. */
body.reel-locked .site-header {
  opacity: 0;
  pointer-events: none;
}
body.reel-locked .site-header > * { pointer-events: none; }

.site-logo {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 14, 'SOFT' 30;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.site-logo::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.site-logo em { font-style: italic; font-variation-settings: 'opsz' 144; }

.site-nav {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a:hover { opacity: 0.6; }

.cart-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}

@media (max-width: 760px) {
  .site-header { padding: 1rem var(--gutter); }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav[data-open="true"] {
    display: flex;
    position: fixed;
    inset: 4rem 0 0 0;
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 3rem var(--gutter);
    mix-blend-mode: normal;
  }
  .site-nav[data-open="true"] a {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: none;
    letter-spacing: -0.02em;
    padding: 0.5rem 0;
  }
}

/* ============================================================
   THE REEL — first 6 seconds, full-bleed video/poster
   ============================================================ */

.reel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: #000;
  overflow: hidden;
  scroll-snap-align: start;
}

.reel__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Slow Ken Burns on the poster image, in case video doesn't play */
.reel__media--still {
  animation: kenburns 12s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.reel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}

.reel__title-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Sit in the lower third, over the empty road, so the piano and Dotan
     stay clear in the middle of the frame. */
  justify-content: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(6rem, 16vh, 10rem);
  pointer-events: none;
  color: #fff;
}

.reel__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 0.86;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  text-align: center;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
  opacity: 0;
  animation: reel-title-in 1.4s var(--ease-cine) 0.4s forwards;
}

.reel__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  display: block;
}

.reel__years {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: reel-title-in 1.2s var(--ease-cine) 1.2s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

@keyframes reel-title-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bottom corner stamps */
.reel__stamp-tl,
.reel__stamp-tr,
.reel__stamp-bl,
.reel__stamp-br {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: reel-title-in 1s var(--ease-cine) 2s forwards;
}
.reel__stamp-tl { top: 1.5rem; left: var(--gutter); }
.reel__stamp-tr { top: 1.5rem; right: var(--gutter); text-align: right; }
.reel__stamp-bl { bottom: 5rem; left: var(--gutter); }
.reel__stamp-br { bottom: 5rem; right: var(--gutter); text-align: right; }

@media (max-width: 760px) {
  .reel__stamp-bl, .reel__stamp-br { bottom: 4.5rem; }
  /* Hide the top-right stamp on mobile to avoid overlap with the top-left */
  .reel__stamp-tr { display: none; }
  .reel__stamp-tl { font-size: 0.625rem; max-width: 60%; }
}

/* Audio toggle button */
.reel__audio-toggle {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  width: auto;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  opacity: 0;
  animation: reel-title-in 1s var(--ease-cine) 2.4s forwards;
}
.reel__audio-toggle:hover { background: rgba(0,0,0,0.7); border-color: #fff; }
.reel__audio-toggle .icon { font-size: 0.875rem; }

@media (max-width: 760px) {
  .reel__audio-toggle {
    bottom: 7rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }
}

/* Scroll cue at the bottom of the reel */
.reel__scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: reel-title-in 1s var(--ease-cine) 3s forwards, cue 2.4s ease-in-out 4s infinite;
}
.reel__scroll-cue::after {
  content: '';
  width: 1px; height: 28px;
  background: currentColor;
}
@keyframes cue {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1; transform: translateX(-50%) translateY(4px); }
}

/* ============================================================
   THE STORY SCROLL — frames 2-7
   ============================================================ */

.cinematic { scroll-snap-type: y mandatory; }

.frame {
  height: 100vh;
  min-height: 600px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.frame--dark { background: var(--frame-dark); color: #fff; }
.frame--cream { background: var(--bg-cream); }

.frame__corner-tl, .frame__corner-tr, .frame__corner-bl, .frame__corner-br {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 5;
  opacity: 0.7;
}
.frame__corner-tl { top: 5rem; left: var(--gutter); }
.frame__corner-tr { top: 5rem; right: var(--gutter); text-align: right; }
.frame__corner-bl { bottom: 2rem; left: var(--gutter); }
.frame__corner-br { bottom: 2rem; right: var(--gutter); text-align: right; }
@media (max-width: 760px) {
  .frame__corner-tl, .frame__corner-tr { top: 4.5rem; }
  .frame__corner-bl, .frame__corner-br { bottom: 1.5rem; }
}

.frame__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Subtle pan animation on still placeholder images, removed when real video lands */
.frame__media--still {
  animation: subtle-pan 18s ease-in-out infinite alternate;
}
@keyframes subtle-pan {
  0% { transform: scale(1.05) translate(-1%, 0); }
  100% { transform: scale(1.05) translate(1%, -1%); }
}

.frame__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.0) 65%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.frame__overlay--strong {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
}

.frame__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  max-width: var(--max-full);
  margin-inline: auto;
  width: 100%;
}

.frame__content--center { align-items: center; text-align: center; }
.frame__content--bottom { justify-content: flex-end; padding-bottom: clamp(4rem, 10vh, 8rem); }

/* Story text inside scroll frames */
.frame-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 4rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  max-width: 22ch;
}

.frame-text--center { margin-inline: auto; text-align: center; }

.frame-text em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}

.frame-text strong {
  font-weight: 500;
  color: var(--accent);
}

.frame--dark .frame-text strong { color: var(--accent); }

.frame-text__line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-cine), transform 1.2s var(--ease-cine);
}

.frame-text__line + .frame-text__line { margin-top: 0.3em; }

.frame[data-active="true"] .frame-text__line {
  opacity: 1;
  transform: translateY(0);
}
.frame[data-active="true"] .frame-text__line:nth-child(1) { transition-delay: 0.1s; }
.frame[data-active="true"] .frame-text__line:nth-child(2) { transition-delay: 0.5s; }
.frame[data-active="true"] .frame-text__line:nth-child(3) { transition-delay: 0.9s; }

/* Frame stamp — small text in the corner of each scroll frame */
.frame-stamp {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Stats inline in a frame */
.frame-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}
.frame-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.frame-stats__value {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.frame-stats__value em {
  font-style: italic;
  color: var(--accent);
}
.frame-stats__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.frame--dark .frame-stats__label { color: rgba(255,255,255,0.55); }

/* Frame 7 — map teaser CTA */
.frame-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.25rem 2.25rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background 0.3s var(--ease), gap 0.3s var(--ease);
  opacity: 0;
  animation: reveal-cta 1.2s var(--ease-cine) 1.2s forwards;
}
.frame[data-active="true"] .frame-cta { opacity: 1; }
.frame-cta::after { content: '→'; transition: transform 0.3s var(--ease); }
.frame-cta:hover { gap: 1.5rem; background: #d44a1a; }
.frame-cta:hover::after { transform: translateX(4px); }
@keyframes reveal-cta { from {opacity: 0; transform: translateY(12px);} to {opacity: 1; transform: translateY(0);} }

/* ============================================================
   POST-CINEMATIC SECTIONS
   ============================================================ */

.section { padding-block: clamp(5rem, 12vh, 9rem); }
.section--dark { background: var(--frame-dark); color: #fff; }
.section--cream { background: var(--bg-cream); }

.container {
  max-width: var(--max-full);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--max-prose);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 4rem;
  text-align: center;
  justify-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  max-width: 18ch;
  margin-inline: auto;
}
.section-title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}

/* LINKS / BUTTONS */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.arrow-link::after { content: '→'; transition: transform 0.3s var(--ease); }
.arrow-link:hover { gap: 1.25rem; color: var(--accent); }
.arrow-link:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.3s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.frame--dark .btn--ghost { color: #fff; border-color: #fff; }
.frame--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.section--dark .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--full { width: 100%; }

/* PROSE */
.prose p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 1.4em;
}
.prose .lede {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  margin-bottom: 2.5rem;
}
.prose p:first-of-type:not(.lede)::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 300;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.08em -0.05em 0;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
}
.prose blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 3em 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}
.prose blockquote::before, .prose blockquote::after {
  color: var(--accent);
  font-style: normal;
}
.prose blockquote::before { content: '“'; }
.prose blockquote::after  { content: '”'; }

/* Card grid (chapters / products) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4rem 2rem;
}

.product-card { display: block; }
.product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-cream);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
}
.product-card__image--portrait { aspect-ratio: 4 / 5; }
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.product-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.product-card__price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}
.product-card__price .sale { color: var(--accent); }
.product-card__price .strike {
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* Coming-soon teaser cards — non-clickable previews of unbuilt chapter pages */
.product-card--soon { cursor: default; }
.product-card--soon .product-card__image { position: relative; }
.product-card--soon .product-card__image img { filter: grayscale(0.12) brightness(0.97); }
.product-card--soon:hover .product-card__image img { transform: none; }
.soon-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* VIDEO */
.video-card { display: block; cursor: pointer; }
.video-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--frame-dark);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.video-card:hover .video-card__thumb img { transform: scale(1.04); filter: brightness(1.1); }
.video-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.video-card__play::before {
  content: '';
  width: 72px; height: 72px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-card__play::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-card:hover .video-card__play::before { background: var(--accent); border-color: var(--accent); }
.video-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.video-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.video-modal[data-open="true"] { display: flex; }
.video-modal__inner { width: 100%; max-width: 1200px; aspect-ratio: 16 / 9; }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.08); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* CHAPTER PAGE */
.chapter-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--frame-dark);
  overflow: hidden;
}
.chapter-hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.chapter-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.7) 100%);
}
.chapter-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  color: #fff;
  max-width: var(--max-full);
  margin-inline: auto;
}
.chapter-hero__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.chapter-hero__num em { color: var(--accent); font-style: normal; }
.chapter-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 0;
  margin: 0;
  max-width: 14ch;
}
.chapter-hero__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.chapter-hero__meta {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0.85;
}

/* PRODUCT DETAIL */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: clamp(4rem, 8vh, 7rem);
}
@media (min-width: 800px) {
  .product-detail {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}
.product-detail__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-cream);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 2rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.product-detail__title em { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 60; }
.product-detail__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.product-detail__price s { color: var(--ink-faint); font-size: 0.85em; }
.product-detail__price strong { color: var(--accent); font-weight: 500; }
.product-detail__desc { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 2.5rem; }
.product-detail__includes {
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.product-detail__includes dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
}
.product-detail__includes dd { font-family: var(--font-display); font-size: 1.125rem; margin: 0; font-weight: 400; }

/* CHAPTER NAV */
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chapter-nav a {
  background: var(--bg);
  padding: 3rem var(--gutter);
  display: block;
  transition: background 0.3s var(--ease);
}
.chapter-nav a:hover { background: var(--bg-cream); }
.chapter-nav__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.chapter-nav__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.chapter-nav__next { text-align: right; }

/* TIMELINE */
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline__item {
  flex: 0 0 18rem;
  scroll-snap-align: start;
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--line);
}
.timeline__item:last-child { border-right: 0; }
.timeline__item + .timeline__item { padding-left: 2rem; }
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.timeline__desc { font-size: 0.9375rem; color: var(--ink-mid); line-height: 1.5; }

/* GALLERY */
.gallery {
  column-count: 1;
  column-gap: 1rem;
  padding: 0 var(--gutter);
  max-width: var(--max-full);
  margin-inline: auto;
}
@media (min-width: 600px)  { .gallery { column-count: 2; column-gap: 1.25rem; } }
@media (min-width: 900px)  { .gallery { column-count: 3; column-gap: 1.5rem; } }
@media (min-width: 1280px) { .gallery { column-count: 4; column-gap: 1.5rem; } }
.gallery__item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: zoom-in;
  background: var(--bg-cream);
  overflow: hidden;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); opacity: 0.92; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.18); }

/* FOOTER */
.site-footer {
  background: var(--frame-dark);
  color: #fff;
  padding: 5rem var(--gutter) 2rem;
}
.site-footer__inner {
  max-width: var(--max-full);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
  }
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}
.site-footer a:hover { color: var(--accent); }
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.3;
  font-style: italic;
  max-width: 24rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  margin: 0;
}
.footer-mark span { color: var(--accent); font-style: normal; }
.site-footer__bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-full);
  margin-inline: auto;
}

/* UTIL */
.muted  { color: var(--ink-mid); }
.accent { color: var(--accent); }
.center { text-align: center; }

html, body { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .frame__media--still { animation: none; }
}
