@font-face{font-family:Cormorant;src:url("assets/cormorant.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:Jakarta;src:url("assets/jakarta.ttf") format("truetype");font-weight:400;font-display:swap}
:root {
  color-scheme: dark;
  --ink: #081a16;
  --deep: #0d231d;
  --paper: #f5eddd;
  --gold: #f0d094;
  --stroke: #f0d09455;
  font-family: Jakarta, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.toolbar {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  padding: 16px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #081a16dc;
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
}
.brand span { color: var(--gold); font-size: 22px; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools button, .controls button, .explore {
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: #081a1680;
  padding: 9px 14px;
  transition: background .2s ease, color .2s ease;
}
.tools button:hover, .controls button:hover:enabled, .explore:hover {
  color: var(--ink);
  background: var(--gold);
}
#slides {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-areas: "copy visual";
  min-height: max(100dvh, 560px);
  padding: 108px 7vw 100px;
  gap: clamp(25px, 5vw, 92px);
  scroll-snap-align: start;
  background: var(--ink);
}
.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "visual copy"; }
.visual {
  grid-area: visual;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: var(--deep);
}
.visual img, .visual video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.copy { grid-area: copy; align-self: center; position: relative; z-index: 1; }
h1, h2 {
  margin: 0;
  font: 600 clamp(60px, 8.8vw, 150px)/.83 Cormorant, Georgia, serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}
h2 { font-size: clamp(53px, 6.5vw, 107px); line-height: .91; }
p { margin: 24px 0 0; max-width: 36ch; font-size: clamp(18px, 2vw, 28px); line-height: 1.5; }
.subtitle { color: var(--gold); }
.explore {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  text-decoration: none;
  font-size: 14px;
}
.hero, .legend, .finale, .circle {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "stage";
  gap: 0;
}
.hero .copy, .legend .copy, .finale .copy, .circle .copy { grid-area: stage; }
.hero .visual, .legend .visual, .finale .visual, .circle .visual {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.hero .visual::after, .legend .visual::after, .finale .visual::after, .circle .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071a14ed, #071a1485 55%, #071a1420),
              linear-gradient(0deg, #061b15c4, transparent 45%);
}
.hero h1 span { display: block; color: var(--gold); font-size: .53em; line-height: 1.05; }
.hero p + p { margin-top: 11px; }
.footage-label {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 95px;
  border: 1px solid #fff3;
  background: #071a16b5;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.landscape {
  background: var(--paper);
  color: var(--ink);
  grid-template-columns: .8fr 1.2fr;
  grid-template-rows: 1fr auto;
  grid-template-areas: "visual visual" "copy detail";
  gap: 24px;
}
.landscape .visual img { object-position: center 46%; }
.landscape p { max-width: 55ch; }
.landscape h2 { font-size: clamp(44px, 5vw, 82px); }
.location-detail {
  grid-area: detail;
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  letter-spacing: .19em;
}
.location-detail span { height: 9px; width: 9px; background: #8a612e; border-radius: 50%; }
.light { background: var(--paper); color: var(--ink); }
.stone .visual { border-radius: 48% 48% 18px 18px / 42% 42% 18px 18px; }
#mishkova-niva { background: #17362b; }
#mishkova-niva .visual { border-radius: 4px 48px 4px 48px; }
.circle .copy, .legend .copy {
  max-width: 650px;
  padding: clamp(24px, 4vw, 60px);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  background: #0a211ad9;
  backdrop-filter: blur(14px);
}
.circle strong { color: var(--gold); }
.deity { background: #16271e; }
.deity h2 { color: var(--gold); }
.deity .visual { border-radius: 200px 200px 18px 18px; border: 1px solid var(--stroke); }
.finale { text-align: center; }
.finale .visual::after { background: #061b1596; }
.finale p { margin-inline: auto; color: var(--gold); }
.controls {
  position: fixed;
  z-index: 5;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.2vw, 15px);
  padding: 7px;
  border: 1px solid var(--stroke);
  border-radius: 99px;
  background: #081a16e8;
  backdrop-filter: blur(18px);
  white-space: nowrap;
}
.controls button { min-width: 42px; padding: 7px 10px; font-size: 19px; }
.controls button:disabled { opacity: .35; cursor: default; }
.controls nav { display: flex; }
.controls nav a { display: grid; place-items: center; width: clamp(17px, 3vw, 27px); min-height: 32px; }
.controls nav a::after {
  content: "";
  width: 10px;
  height: 3px;
  border-radius: 99px;
  background: #f5eddd65;
  transition: width .25s ease, background .25s ease;
}
.controls nav a[aria-current]::after { width: 17px; background: var(--gold); }
#count { font-size: 12px; }
.motion .slide.active .copy { animation: reveal .68s cubic-bezier(.2,.7,.25,1) both; }
.motion .slide.active .visual img { animation: breathe 5s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { transform: scale(1.055); } to { transform: scale(1); } }

@media (max-width: 740px) {
  .toolbar { padding: 10px 4vw; }
  .brand { gap: 6px; font-size: 11px; }
  .tools button { padding: 7px 8px; font-size: 11px; }
  .slide { padding: 75px 5vw 86px; gap: 17px; }
  .slide:not(.hero,.circle,.legend,.finale) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(230px, 43dvh) auto;
    grid-template-areas: "visual" "copy";
  }
  .slide .visual { min-height: 0; }
  .slide:not(.hero,.circle,.legend,.finale) .copy { align-self: start; }
  .location-detail { display: none; }
  h1 { font-size: clamp(54px, 12vw, 94px); }
  h2, .landscape h2 { font-size: clamp(44px, 10vw, 71px); }
  p { margin-top: 14px; font-size: 17px; }
  .hero .copy { padding-top: 16dvh; }
  .footage-label { font-size: 10px; bottom: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
