/* Montserrat van de eigen server (map fonts/), niet van Google */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --gold:     #FEBF11;
  --black:    #1A1A1A;
  --cream-lt: #F5EEDF;
  --cream:    #ECE3CF;
  --burgundy: #6B1414;
  --navy:     #22304A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }

/* ── Deck container ── */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── Shared header (één keer) ── */
.slide-header {
  position: absolute; top: 0; left: 0; right: 0;
  height: 7.407vh;
  background: var(--cream-lt);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center;
  padding: 0 3.125vw;
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
}
.slide-header img { height: 4.815vh; width: auto; flex-shrink: 0; }
.slide-header .tab-label {
  margin-left: auto;
  font-size: 0.677vw; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--black);
}

.header-brand {
  display: flex; align-items: center; gap: 0.833vw;
  text-decoration: none; color: inherit;
}
.header-brand:hover .header-brand-name,
.header-brand:hover .header-brand-sub { color: var(--burgundy); }
.header-brand-text {
  display: flex; flex-direction: column; gap: 1px;
  align-items: center;
}
.header-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.042vw; font-weight: 500;
  color: #1a1a1a; line-height: 1.15; letter-spacing: .01em;
}
.header-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.729vw; font-weight: 400;
  color: #1a1a1a; line-height: 1.15;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── Shared footer (één keer) ── */
.slide-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 5.815vh;
  background: var(--cream-lt);
  border-top: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 1.25vw;
  font-size: 0.729vw; color: var(--black);
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
}

/* ── Slide base ── */
.slide {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
  transition:
    opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
/* vooruit: huidige → rechts weg, nieuwe ← van links */
.slide.exit-right {
  opacity: 0;
  transform: translateX(3vw);
}
.slide.exit-left {
  opacity: 0;
  transform: translateX(-3vw);
}
.slide.enter-from-left {
  opacity: 0;
  transform: translateX(-3vw);
  transition: none;
}
.slide.enter-from-right {
  opacity: 0;
  transform: translateX(3vw);
  transition: none;
}

/* ── Chess-grid backdrop ── */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(171,134,54,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171,134,54,.08) 1px, transparent 1px);
  background-size: 6.25vw 11.11vh;
}

/* ────────────────────────────────────────────────
    SLIDE 1 — TITEL
──────────────────────────────────────────────── */
#s1 { background: var(--black); }

#s1 .center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#s1 .eyebrow {
  font-size: 0.938vw; font-weight: 400; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2.222vh;
}

#s1 h1 {
  font-size: 8.333vw; font-weight: 700;
  letter-spacing: -.02em; line-height: 1;
  color: var(--cream-lt);
}
#s1 h1 .letter.art { color: var(--gold); }

#s1 .tagline {
  margin-top: 2.593vh;
  font-size: 1.458vw; font-weight: 300; font-style: italic;
  color: var(--cream); letter-spacing: .04em;
  font-family: Georgia, serif;
}

#s1 .divider {
  width: 6.25vw; height: 0.185vh;
  background: var(--gold);
  margin: 3.333vh auto 0;
}

/* ── Letter animatie ── */
@keyframes letterIn {
  from { opacity: 0; transform: translateY(2.593vh); }
  to   { opacity: 1; transform: translateY(0); }
}
.letter { display: inline-block; opacity: 0; }
#s1.active .letter {
  animation: letterIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#s1.active .letter:nth-child(1) { animation-delay: 0.20s; }
#s1.active .letter:nth-child(2) { animation-delay: 0.30s; }
#s1.active .letter:nth-child(3) { animation-delay: 0.40s; }
#s1.active .letter:nth-child(4) { animation-delay: 0.50s; }
#s1.active .letter:nth-child(5) { animation-delay: 0.60s; }
#s1.active .letter:nth-child(6) { animation-delay: 0.72s; }
#s1.active .letter:nth-child(7) { animation-delay: 0.84s; }
#s1.active .letter:nth-child(8) { animation-delay: 0.96s; }

/* ────────────────────────────────────────────────
    SLIDE 2 — WAT IS CHESSART?
──────────────────────────────────────────────── */
#s2 { background: var(--cream); }

#s2 .content {
  position: absolute;
  top: 10.185vh; left: 0; right: 0; bottom: 4.815vh;
  display: grid; grid-template-columns: 1fr 1fr;
}

#s2 .left {
  padding: 7.407vh 4.167vw 5.556vh 4.688vw;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--gold);
}

#s2 .section-label {
  font-size: 0.833vw; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--black);
  margin-bottom: 1.852vh;
}

#s2 h2 {
  font-size: 3.542vw; font-weight: 700;
  color: var(--burgundy); line-height: 1.05;
  font-variant: small-caps; margin-bottom: 3.333vh;
}

#s2 p {
  font-size: 1.146vw; font-weight: 400; line-height: 1.7;
  color: var(--black); max-width: 32.292vw;
}
#s2 p + p { margin-top: 1.852vh; }

#s2 .highlight { display: inline-block; color: var(--burgundy); font-weight: 600; }

#s2 .right {
  padding: 5.556vh 3.125vw;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-lt);
}

#s2 .app-frame {
  width: 33.333vw;
  aspect-ratio: 9 / 6;
  max-height: 66.667vh;
  border: 1px solid var(--gold); border-radius: 4px;
  overflow: hidden; box-shadow: 0 1.111vh 4.444vh rgba(26,26,26,.22);
}
#s2 .app-frame img { 
  height: 100%; 
  object-fit: cover;
  aspect-ratio: 9 / 6; 
}

/* ────────────────────────────────────────────────
    SLIDE 3 — HOE WERKT HET?
──────────────────────────────────────────────── */
#s3 { background: var(--cream); }

#s3 .content {
  position: absolute;
  top: 10.185vh; left: 0; right: 0; bottom: 4.815vh;
  padding: 6.481vh 4.688vw;
  display: flex; flex-direction: column; gap: 4.444vh;
}

#s3 h2 {
  font-size: 2.813vw; font-weight: 700; font-variant: small-caps;
  color: var(--burgundy); line-height: 1;
}

#s3 .steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.083vw; flex: 1;
}

#s3 .step {
  background: var(--cream-lt); border: 1px solid var(--gold);
  border-radius: 0.417vw;
  padding: 4.074vh 2.083vw 3.333vh;
  display: flex; flex-direction: column; gap: 1.852vh;
  box-shadow: 0 0.185vh 0.741vh rgba(26,26,26,.10);
  position: relative;
}

#s3 .step-num {
  font-size: 3.75vw; font-weight: 700;
  color: var(--burgundy); line-height: 1;
  font-family: Georgia, serif; font-style: italic;
}

#s3 .step h3 {
  font-size: 1.354vw; font-weight: 700;
  color: var(--burgundy); text-transform: uppercase; letter-spacing: .06em;
}

#s3 .step p {
  font-size: 0.990vw; font-weight: 400; line-height: 1.65;
  color: var(--black);
}

#s3 .step-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0.370vh; background: var(--gold); border-radius: 0.417vw 0.417vw 0 0;
}

#s3 .tip-row {
  display: grid; grid-template-columns: 2fr 1fr;
  border: 1px solid var(--gold); border-radius: 0.417vw;
  background: var(--cream-lt);
  overflow: hidden;
  box-shadow: 0 0.185vh 0.741vh rgba(26,26,26,.10);
  position: relative;
}
#s3 .tip-row::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 0.370vh; background: var(--gold);
}

#s3 .tip-left {
  padding: 1.5vh 2.083vw 1.5vh 2.083vw;
  display: flex; flex-direction: column; justify-content: center; gap: 1.2vh;
  border-right: 1px solid var(--gold);
}

#s3 .tip-label {
  font-size: 0.729vw; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--burgundy);
  padding-bottom: 0.6vh;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
  margin-bottom: 0.3vh;
}

#s3 .tip-item {
  display: flex; align-items: flex-start; gap: 0.833vw;
}

#s3 .tip-badge {
  width: 1.5vw; height: 1.5vw; min-width: 1.5vw;
  border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.729vw; font-weight: 700; color: var(--black);
  flex-shrink: 0; margin-top: 0.2vh;
}

#s3 .tip-item p {
  font-size: 1.042vw; font-weight: 400; line-height: 1.55;
  color: var(--black);
}

#s3 .tip-right {
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#s3 .tip-right img { width: 100%; height: 100%; object-fit: contain; }

/* ────────────────────────────────────────────────
    SLIDE 4 — HET KUNSTWERK
──────────────────────────────────────────────── */
#s4 { background: var(--black); }

#s4 .art-full {
  position: absolute;
  top: 10vh; left: 0; right: 0; bottom: 22vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#s4 .art-full img {
  display: block;
  height: 100%; width: auto; max-width: 100%;
}

#s4 .caption-bg {
  position: absolute;
  bottom: 4.815vh; left: 0; right: 0; height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(26,26,26,0.92) 60%);
}

#s4 .caption-block {
  position: absolute;
  bottom: 8vh; left: 4.688vw; right: 4.688vw;
  display: flex; align-items: flex-end; justify-content: space-between;
}

#s4 .caption-left { display: flex; flex-direction: column; gap: 1.111vh; }

#s4 .caption-label {
  font-size: 0.677vw; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); opacity: .8;
}

#s4 .caption-game {
  font-family: Georgia, serif; font-style: italic;
  font-size: 1.563vw; color: var(--cream-lt);
}

#s4 .caption-sub {
  font-size: 0.833vw; font-weight: 400; letter-spacing: .06em;
  color: var(--gold);
}

#s4 .quote-block { max-width: 27.083vw; text-align: right; }

#s4 .quote-text {
  font-family: Georgia, serif; font-style: italic;
  font-size: 1.354vw; line-height: 1.6; color: var(--cream-lt);
}

/* ────────────────────────────────────────────────
    SLIDE 5 — GALERIJ
──────────────────────────────────────────────── */
#s5 { background: var(--cream); }

#s5 .content {
  position: absolute;
  top: 10.185vh; left: 0; right: 0; bottom: 4.815vh;
  display: grid; grid-template-columns: 1fr 1fr;
}

#s5 .left {
  padding: 7.407vh 3.646vw 5.556vh 4.688vw;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--gold);
}

#s5 .section-label {
  font-size: 0.833vw; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--black); margin-bottom: 1.852vh;
}

#s5 h2 {
  font-size: 3.542vw; font-weight: 700;
  color: var(--burgundy); line-height: 1.05;
  font-variant: small-caps; margin-bottom: 3.333vh;
}

#s5 .features { display: flex; flex-direction: column; gap: 2.222vh; }

#s5 .feature { display: flex; align-items: flex-start; gap: 1.042vw; }

#s5 .feat-dot {
  width: 0.521vw; height: 0.521vw; border-radius: 50%;
  background: var(--gold); flex-shrink: 0; margin-top: 0.833vh;
}

#s5 .feat-text { font-size: 1.042vw; font-weight: 400; line-height: 1.6; color: var(--black); }
#s5 .feat-text strong { color: var(--burgundy); font-weight: 600; }

#s5 .right {
  padding: 4.444vh 3.125vw;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-lt);
}

#s5 .gallery-frame {
  width: 36.458vw;
  aspect-ratio: 14 / 15;
  max-height: 69.444vh;
  border: 1px solid var(--gold); border-radius: 4px;
  overflow: hidden; box-shadow: 0 1.111vh 4.444vh rgba(26,26,26,.22);
}
#s5 .gallery-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ────────────────────────────────────────────────
    SLIDE 6 — CTA
──────────────────────────────────────────────── */
#s6 { background: var(--black); }

#s6 .art-bg { position: absolute; inset: 0; opacity: .30; }
#s6 .art-bg img { width: 100%; height: 100%; object-fit: cover; }

#s6 .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, rgba(26,26,26,.85) 100%);
}

#s6 .center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

#s6 .eyebrow {
  font-size: 0.729vw; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 2.963vh;
}

#s6 h2 {
  font-size: 5vw; font-weight: 700;
  color: var(--cream-lt); line-height: 1; margin-bottom: 2.593vh;
}
#s6 h2 span { color: var(--gold); }

#s6 .sub {
  font-family: Georgia, serif; font-style: italic;
  font-size: 1.354vw; color: var(--cream);
  opacity: .85; margin-bottom: 5.185vh;
}

#s6 .cta-row { display: flex; align-items: center; gap: 1.25vw; }

#s6 .btn-primary {
  padding: 1.852vh 2.708vw;
  background: var(--gold); color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.833vw; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border: none; border-radius: 999px; cursor: pointer;
  display: inline-block; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#s6 .btn-primary:hover {
  background: #ffd04d;
  transform: translateY(-2px);
  box-shadow: 0 0.556vh 1.667vh rgba(254,191,17,0.45);
}

#s6 .btn-secondary {
  padding: 1.667vh 2.5vw;
  background: transparent; color: var(--cream-lt);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.833vw; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--gold); border-radius: 999px; cursor: pointer;
  display: inline-block; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
#s6 .btn-secondary:hover {
  background: rgba(254,191,17,0.12);
  color: var(--gold);
  transform: translateY(-2px);
}

#s6 .location a {
  color: inherit; text-decoration: none;
}
#s6 .location a:hover { text-decoration: underline; }

#s6 .location {
  margin-top: 4.074vh;
  font-size: 0.781vw; font-weight: 400; letter-spacing: .12em;
  color: var(--gold);
}

/* ────────────────────────────────────────────────
    NAVIGATIE
──────────────────────────────────────────────── */
.deck-nav {
  position: fixed; bottom: calc(5.815vh / 2); left: 50%;
  transform: translate(-50%, 50%);
  display: flex; align-items: center; gap: 0.625vw;
  background: var(--black);
  backdrop-filter: blur(6px);
  padding: 0.648vh 1.25vw;
  border-radius: 999px;
  border: 1px solid rgba(254,191,17,0.25);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-shadow: 0 0.37vh 1.2vh rgba(0,0,0,0.45);
}
.deck-nav.visible { opacity: 1; }

.deck-nav-btn {
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  color: rgba(255,255,255,0.82);
  font-size: 1.25vw; line-height: 1;
  padding: 0.37vh 0.52vw;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.deck-nav-btn:hover { color: var(--gold); background: rgba(255,255,255,0.15); }
.deck-nav-btn:disabled { opacity: 0.25; cursor: default; }
.deck-nav-btn svg { width: 1vw; height: 1vw; display: block; }

.deck-nav-dots { display: flex; align-items: center; gap: 0.417vw; }

.deck-nav-dot {
  width: 0.417vw; height: 0.417vw;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.deck-nav-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

.deck-nav-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.625vw; color: rgba(255,255,255,0.6);
  min-width: 2.083vw; text-align: center;
  font-variant-numeric: tabular-nums;
}

.deck-nav-sep {
  width: 1px; height: 1.2vh;
  background: rgba(255,255,255,0.18);
  margin: 0 0.208vw;
}

.deck-nav-btn.autoplay { color: var(--gold); }
.deck-nav-btn.autoplay.playing { color: #ffd04d; }
