/* F.F presentation view — full-screen, 16:9 editorial slides */

:root,
[data-theme="light"] {
  --slide-surface: var(--bg);
  --slide-line: rgba(28, 28, 28, 0.18);
  --slide-ghost: rgba(28, 28, 28, 0.045);
}

[data-theme="dark"] {
  --slide-surface: var(--bg);
  --slide-line: rgba(242, 240, 236, 0.2);
  --slide-ghost: rgba(242, 240, 236, 0.045);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --slide-surface: var(--bg);
    --slide-line: rgba(242, 240, 236, 0.2);
    --slide-ghost: rgba(242, 240, 236, 0.045);
  }
}

body.presentation-page {
  height: 100svh;
  overflow: hidden;
}

.presentation-page .site-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  max-width: none;
  min-height: 4.25rem;
  padding: 1rem clamp(1.25rem, 3vw, 3rem);
  background: var(--bg);
}

.presentation-page .site-bar__nav {
  gap: 0.75rem;
}

.presentation-page .view-switch {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.presentation-deck {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.presentation-deck::-webkit-scrollbar {
  display: none;
}

.presentation-slide {
  min-height: 100svh;
  padding: 5.5rem 4vw 4.5rem;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (prefers-reduced-motion: reduce) {
  .presentation-deck {
    scroll-behavior: auto;
  }
}

.presentation-slide__frame {
  position: relative;
  width: min(1180px, 90vw, calc((100svh - 10rem) * 1.7778));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 4.25rem);
  border: 0;
  background: transparent;
}

.presentation-slide__number {
  position: absolute;
  top: -0.2em;
  right: 0.03em;
  z-index: 0;
  color: var(--slide-ghost);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.presentation-slide__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.presentation-kicker,
.presentation-eyebrow,
.presentation-stat__label,
.presentation-chip,
.presentation-note {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.presentation-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.presentation-slide h1,
.presentation-slide h2 {
  max-width: 13ch;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.presentation-slide h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.7vw, 4.4rem);
}

.presentation-slide h2 {
  font-size: clamp(1.85rem, 3.7vw, 3.45rem);
}

.presentation-slide__lede {
  max-width: 48rem;
  margin: clamp(0.85rem, 1.6vw, 1.4rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.presentation-title-rule {
  width: clamp(3rem, 7vw, 6rem);
  height: 2px;
  margin: clamp(1.25rem, 2.6vw, 2.25rem) 0;
  background: var(--ink);
}

.presentation-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.presentation-grid--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.presentation-grid--dense h2 {
  font-size: clamp(1.75rem, 3.25vw, 3rem);
}

.presentation-grid--dense .presentation-points {
  margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.presentation-grid--dense .presentation-points li {
  padding-top: clamp(0.4rem, 0.75vw, 0.65rem);
  padding-bottom: clamp(0.4rem, 0.75vw, 0.65rem);
  font-size: clamp(0.76rem, 1vw, 0.93rem);
}

.presentation-points {
  margin: clamp(1rem, 2vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.presentation-points li {
  position: relative;
  margin: 0;
  padding: clamp(0.55rem, 1vw, 0.85rem) 0 clamp(0.55rem, 1vw, 0.85rem) 1.4rem;
  border-bottom: 1px solid var(--slide-line);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  line-height: 1.45;
}

.presentation-points li::before {
  content: "";
  position: absolute;
  top: 1.15em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ink);
}

.presentation-points li:last-child {
  border-bottom: 0;
}

.presentation-points strong {
  font-weight: 700;
}

.presentation-art {
  min-width: 0;
  margin: 0;
}

.presentation-art img {
  width: 100%;
  max-height: min(56svh, 430px);
  object-fit: contain;
  background: var(--slide-surface);
}

.presentation-art .sketch--dark {
  display: none;
}

[data-theme="dark"] .presentation-art .sketch--light {
  display: none;
}

[data-theme="dark"] .presentation-art .sketch--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .presentation-art .sketch--light {
    display: none;
  }

  :root:not([data-theme="light"]) .presentation-art .sketch--dark {
    display: block;
  }
}

.presentation-art-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.presentation-art-pair .presentation-art img {
  max-height: min(43svh, 330px);
}

.presentation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(1.15rem, 2.5vw, 2.25rem);
}

.presentation-card {
  min-height: 8.5rem;
  padding: clamp(0.9rem, 1.8vw, 1.5rem);
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.presentation-card__index {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.presentation-card h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.25;
}

.presentation-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.95vw, 0.86rem);
  line-height: 1.5;
}

.presentation-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.2rem, 2.5vw, 2.25rem);
  background: var(--slide-line);
  border: 1px solid var(--slide-line);
}

.presentation-stat {
  padding: clamp(0.9rem, 2vw, 1.6rem);
  background: var(--slide-surface);
}

.presentation-stat__value {
  display: block;
  font-size: clamp(1.25rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.presentation-stat__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.presentation-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.presentation-chip {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--slide-line);
  color: var(--muted);
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.presentation-quote {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.presentation-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.65rem, 0.85vw, 0.76rem);
  line-height: 1.45;
}

@media (max-aspect-ratio: 4 / 3), (max-width: 760px) {
  .presentation-page .site-bar {
    min-height: 4rem;
    padding-block: 0.8rem;
  }

  .presentation-slide {
    min-height: 100svh;
    padding: 5rem 1rem 4rem;
  }

  .presentation-slide__frame {
    width: 100%;
    min-height: calc(100svh - 9rem);
    aspect-ratio: auto;
    padding: clamp(1.35rem, 6vw, 2.5rem);
  }

  .presentation-grid,
  .presentation-grid--equal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .presentation-slide h1,
  .presentation-slide h2 {
    max-width: 17ch;
  }

  .presentation-art img {
    max-height: 35svh;
  }

  .presentation-art-pair .presentation-art img {
    max-height: 25svh;
  }

  .presentation-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-card {
    min-height: 0;
  }

  .presentation-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .presentation-slide {
    padding: 4.75rem 2vw 3.25rem;
  }

  .presentation-slide__frame {
    width: min(1120px, 92vw, calc((100svh - 8rem) * 1.7778));
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 500px) {
  .presentation-page .site-bar__brand {
    font-size: 1rem;
  }

  .presentation-page .view-switch {
    width: auto;
  }

  .presentation-cards {
    grid-template-columns: 1fr;
    max-height: 51svh;
    overflow: auto;
  }

  .presentation-art-pair {
    grid-template-columns: 1fr;
  }

  .presentation-art-pair .presentation-art:last-child {
    display: none;
  }
}
