/* ═══════════════════════════════════════════════════════════════
   Smetanovo nábřeží — editorial portrait
   A walk along the right bank of the Vltava
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* paper & ink */
  --paper:        #f1e8d2;
  --paper-light:  #f7efd9;
  --paper-deep:   #e9dfc3;
  --ink:          #1c1812;
  --ink-soft:     #3a3225;
  --ink-faint:    rgba(28, 24, 18, 0.55);
  --rule:         rgba(28, 24, 18, 0.18);
  --rule-strong:  rgba(28, 24, 18, 0.4);

  /* river palette */
  --vltava:       #234947;
  --vltava-deep:  #18302f;
  --patina:       #5d8073;

  /* warm accents */
  --copper:       #a85a2b;
  --copper-deep:  #7d3e15;
  --gold:         #a08043;

  /* type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --font-sc:      "Cormorant SC", "EB Garamond", Georgia, serif;

  /* measure */
  --measure:      62ch;
  --gutter:       clamp(20px, 4vw, 56px);
  --gutter-x:     clamp(20px, 5vw, 96px);

  /* easing */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── reset ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ── base ──────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(168, 90, 43, 0.06), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(35, 73, 71, 0.06), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(241, 232, 210, 0), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "onum", "calt";
}

/* paper grain overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--copper); color: var(--paper-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-sc);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ═════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═════════════════════════════════════════════════════ */

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 2px;
  padding: 7px var(--gutter-x);
  background: var(--paper-deep);
  border-bottom: 0.5px solid var(--rule);
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lang-switch a {
  padding: 3px 9px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.lang-switch a:hover { color: var(--copper); }
.lang-switch a.is-active {
  color: var(--copper);
  font-weight: 600;
}
.lang-switch a.is-pending {
  opacity: 0.32;
  pointer-events: none;
  cursor: default;
}
.lang-switch .sep {
  color: var(--ink-faint);
  opacity: 0.35;
  user-select: none;
  padding: 0 1px;
}

/* ═════════════════════════════════════════════════════
   MASTHEAD
   ═════════════════════════════════════════════════════ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--paper) 70%, rgba(241, 232, 210, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--rule);
}

.masthead-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--gutter-x);
  gap: 24px;
}

.masthead-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}
.masthead-mark svg { color: var(--vltava); transition: transform 0.6s var(--ease-out); }
.masthead-mark:hover svg { transform: rotate(180deg); }
.mark-text {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  gap: 6px;
}
.mark-dot { color: var(--copper); }

.masthead-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  transition: color 0.3s var(--ease-out);
}
.masthead-nav a::before {
  content: "";
  position: absolute;
  inset: auto 12px 4px 12px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}
.masthead-nav a:hover { color: var(--copper); }
.masthead-nav a:hover::before { transform: scaleX(1); }
.masthead-nav a.is-active { color: var(--copper); }
.masthead-nav a.is-active::before { transform: scaleX(1); }
.nav-num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 12px; letter-spacing: 0.05em; color: var(--copper); }
.nav-label { font-size: 9.5px; letter-spacing: 0.24em; }

.masthead-meta {
  justify-self: end;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta-glyph { color: var(--copper); font-size: 14px; }

.reading-progress {
  height: 1px;
  background: var(--rule);
  position: relative;
}
.reading-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(to right, var(--copper), var(--gold));
  transition: width 0.1s linear;
}

@media (max-width: 980px) {
  .masthead-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .masthead-nav { display: none; }
  .masthead-meta { font-size: 10px; }
}

/* ═════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════ */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(60px, 12vh, 140px) var(--gutter-x) clamp(40px, 8vh, 80px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  left: var(--gutter-x);
  right: var(--gutter-x);
  bottom: clamp(20px, 4vh, 40px);
  height: 0.5px;
  background: var(--rule);
}

.hero-inner {
  width: 100%;
  display: grid;
  gap: clamp(32px, 5vh, 64px);
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag-rule { flex: 1; height: 0.5px; background: var(--ink-faint); max-width: 220px; }
.tag-text { white-space: nowrap; }
.hero-tag { justify-content: center; }

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  margin: 0;
  line-height: 0.92;
  color: var(--ink);
  font-feature-settings: "kern", "liga", "ss01", "ss02";
}
.hero-pre {
  display: block;
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 350;
  font-style: italic;
  font-stretch: 90%;
  letter-spacing: -0.01em;
  color: var(--copper);
  margin-bottom: -0.05em;
}
.hero-main {
  display: block;
  font-size: clamp(72px, 16vw, 220px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.04em;
  position: relative;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.hero-main .acute { color: var(--copper); }
.title-flourish {
  position: absolute;
  bottom: -0.16em;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 0.16em;
  color: var(--vltava);
  opacity: 0.65;
}

.hero-sub {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 50ch;
  font-weight: 350;
}

.hero-figure {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--vltava-deep);
  opacity: 0.78;
}
.hero-figure svg { width: 100%; height: auto; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-foot-line { font-style: italic; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--ink-soft); }
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.hero-scroll svg { animation: bob 2.4s var(--ease-in-out) infinite; }
.hero-scroll:hover { color: var(--copper); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ═════════════════════════════════════════════════════
   FRONTISPIECE
   ═════════════════════════════════════════════════════ */

.frontispiece {
  padding: clamp(60px, 10vh, 120px) var(--gutter-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.ornament {
  width: clamp(180px, 30vw, 280px);
  color: var(--copper);
  opacity: 0.7;
}
.ornament.big { width: clamp(240px, 36vw, 320px); margin: 64px auto 0; }
.frontispiece figure { margin: 0; max-width: 720px; }
.frontispiece blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.frontispiece blockquote p { margin: 0; }
.frontispiece figcaption {
  margin-top: 22px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ═════════════════════════════════════════════════════
   MOVEMENTS — shared
   ═════════════════════════════════════════════════════ */

.movement {
  padding: clamp(80px, 14vh, 160px) var(--gutter-x) clamp(60px, 10vh, 120px);
  position: relative;
  border-top: 0.5px solid var(--rule);
}
.movement:first-of-type { border-top: 0; }

.movement-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 88px);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.movement-header.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  align-items: center;
}

.movement-number {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.78;
  color: var(--copper);
  letter-spacing: -0.04em;
  position: relative;
}
.movement-number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--copper);
  opacity: 0.4;
}
.movement-header.center .movement-number {
  font-size: clamp(80px, 12vw, 140px);
  line-height: 1;
}
.movement-header.center .movement-number::after { display: none; }

.movement-titling { padding-bottom: 8px; }
.movement-eyebrow {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
}
.movement-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.movement-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--vltava);
  margin: 0;
  line-height: 1.4;
  font-weight: 350;
}
.movement-kicker em { color: var(--copper); font-style: italic; }

/* MOVEMENT BODY — two column with marginalia */

.movement-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.movement-body.single { grid-template-columns: 1fr; }

.movement-prose {
  max-width: var(--measure);
}
.movement-prose.wide { max-width: 78ch; margin: 0 auto; }
.movement-prose p {
  margin: 0 0 1.4em;
  font-size: clamp(17px, 1.18vw, 19.5px);
  line-height: 1.66;
  color: var(--ink-soft);
  font-feature-settings: "kern", "liga", "onum";
}
.movement-prose .lead {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.movement-prose em {
  font-style: italic;
  color: var(--vltava);
  font-feature-settings: "kern", "liga";
}

.dropcap {
  float: left;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 5.4em;
  line-height: 0.84;
  margin: 0.04em 0.08em -0.04em 0;
  color: var(--copper);
  padding-right: 4px;
}

/* MARGINALIA / ASIDE */

.movement-aside {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 0.5px solid var(--rule-strong);
  padding-top: 20px;
  position: relative;
}
.movement-aside h3 {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  font-weight: 600;
}
.movement-aside dl {
  margin: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.movement-aside dt {
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding-top: 2px;
}
.movement-aside dd { margin: 0; color: var(--ink); font-style: italic; font-family: var(--font-display); font-size: 15px; line-height: 1.4; }
.movement-aside dd em { color: var(--vltava); }
.aside-rule {
  height: 0.5px;
  background: var(--rule);
  margin: 22px 0 18px;
  width: 50%;
}
.aside-foot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-faint);
  margin: 0;
}

/* MOVEMENT FIGURE */

.movement-figure {
  margin: clamp(40px, 6vh, 72px) auto 0;
  max-width: 1100px;
  display: grid;
  gap: 18px;
}
.movement-figure figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 60ch;
}
.fig-label {
  font-family: var(--font-sc);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-right: 12px;
}

/* MAP figure */

.map-figure { color: var(--vltava-deep); }
.map-wrap {
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  padding: clamp(20px, 3vw, 40px);
  position: relative;
}
.map-wrap::before, .map-wrap::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 0.5px solid var(--copper);
}
.map-wrap::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.map-wrap::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.map-svg { width: 100%; height: auto; color: var(--vltava-deep); }
.embankment-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 2.4s var(--ease-out) 0.4s forwards;
}
.is-revealed .embankment-path { stroke-dashoffset: 0; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ═════════════════════════════════════════════════════
   II. TIMELINE
   ═════════════════════════════════════════════════════ */

.timeline-wrap {
  margin: clamp(48px, 8vh, 88px) auto 0;
  max-width: 1100px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  position: relative;
}
.timeline-wrap::before, .timeline-wrap::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 0.5px solid var(--copper);
}
.timeline-wrap::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.timeline-wrap::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 12px;
  bottom: 12px;
  width: 0.5px;
  background: var(--rule-strong);
}
.timeline li {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  gap: 12px;
  align-items: baseline;
}
.t-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--copper);
  text-align: right;
  font-feature-settings: "onum";
  letter-spacing: 0.01em;
  font-weight: 400;
}
.t-stem {
  width: 12px;
  height: 12px;
  border: 1.2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper-light);
  align-self: center;
  justify-self: center;
  margin-top: 6px;
}
.t-text {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 4px;
}
.t-text em { color: var(--vltava); font-style: italic; }
.timeline li.rename .t-stem { background: var(--copper); width: 14px; height: 14px; box-shadow: 0 0 0 4px rgba(168, 90, 43, 0.15); }
.timeline li.rename .t-year { font-weight: 600; }
.timeline li.rename .t-text { color: var(--ink); font-weight: 500; }

/* ═════════════════════════════════════════════════════
   III. SMETANA
   ═════════════════════════════════════════════════════ */

.smetana-movement .movement-body {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.staff-figure {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  gap: 18px;
}
.staff-wrap {
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
  color: var(--ink);
  position: relative;
}
.staff-wrap::before, .staff-wrap::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 0.5px solid var(--copper);
}
.staff-wrap::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.staff-wrap::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.staff-svg { width: 100%; height: auto; max-width: 760px; margin: 0 auto; }
.staff-svg .notes ellipse,
.staff-svg .notes line { transition: opacity 0.4s var(--ease-out); }
.is-revealed .staff-svg .notes > g { animation: noteIn 0.6s var(--ease-out) backwards; }
.is-revealed .staff-svg .notes > g:nth-child(1) { animation-delay: 0.2s; }
.is-revealed .staff-svg .notes > g:nth-child(2) { animation-delay: 0.34s; }
.is-revealed .staff-svg .notes > g:nth-child(3) { animation-delay: 0.48s; }
.is-revealed .staff-svg .notes > g:nth-child(4) { animation-delay: 0.62s; }
.is-revealed .staff-svg .notes > g:nth-child(6) { animation-delay: 0.78s; }
.is-revealed .staff-svg .notes > g:nth-child(7) { animation-delay: 0.92s; }
.is-revealed .staff-svg .notes > g:nth-child(8) { animation-delay: 1.06s; }
.is-revealed .staff-svg .notes > g:nth-child(9) { animation-delay: 1.20s; }
.is-revealed .staff-svg .notes > g:nth-child(11) { animation-delay: 1.42s; }
@keyframes noteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.smetana-card { background: var(--paper-light); padding: 24px; border: none; border-top: 0; border: 0.5px solid var(--rule); }
.smetana-card h3 { color: var(--copper); margin-bottom: 6px; }
.smetana-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 0;
}

.pullquote {
  margin: clamp(80px, 12vh, 140px) auto 0;
  max-width: 880px;
  padding: 0 var(--gutter);
  text-align: center;
  position: relative;
}
.pq-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 200px;
  line-height: 0.4;
  color: var(--copper);
  opacity: 0.25;
  display: block;
  margin-bottom: -40px;
  font-weight: 300;
}
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ═════════════════════════════════════════════════════
   IV. LANDMARKS
   ═════════════════════════════════════════════════════ */

.landmarks-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.landmark {
  grid-column: span 2;
  padding: 32px 28px;
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.landmark::before, .landmark::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0.5px solid var(--copper);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.landmark::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.landmark::after  { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.landmark:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -28px rgba(28, 24, 18, 0.35);
  border-color: var(--copper);
}
.landmark:hover::before, .landmark:hover::after { opacity: 1; }

.landmark.large {
  grid-column: span 3;
  grid-row: span 2;
  background: linear-gradient(165deg, var(--paper-light) 0%, var(--paper-deep) 100%);
}
.landmark.large .landmark-illu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 18px;
  color: var(--vltava);
  height: 240px;
  opacity: 0.85;
}
.landmark.large .landmark-illu svg { height: 100%; width: auto; }

.landmark-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 32px;
  color: var(--copper);
  font-feature-settings: "onum";
  letter-spacing: 0.02em;
  line-height: 1;
}
.landmark-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.landmark-cz {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--vltava);
  margin: -6px 0 0;
  font-weight: 400;
}
.landmark-cz em { font-style: italic; }
.landmark-text {
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.landmark-text em { font-style: italic; color: var(--vltava); }
.landmark-meta {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 0.5px solid var(--rule);
  display: flex;
  gap: 8px;
}
.landmark-meta span { color: var(--copper); }

@media (max-width: 1024px) {
  .landmarks-grid { grid-template-columns: repeat(4, 1fr); }
  .landmark, .landmark.large { grid-column: span 2; grid-row: auto; }
  .landmark.large .landmark-illu { height: 180px; }
}
@media (max-width: 640px) {
  .landmarks-grid { grid-template-columns: 1fr; }
  .landmark, .landmark.large { grid-column: span 1; }
}

/* ═════════════════════════════════════════════════════
   V. VISTA
   ═════════════════════════════════════════════════════ */

.vista-movement { background: linear-gradient(180deg, transparent, rgba(35, 73, 71, 0.05) 60%, transparent); }

.vista-figure {
  margin: 0 auto clamp(48px, 8vh, 88px);
  max-width: 1180px;
  display: grid;
  gap: 18px;
}
.vista-frame {
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  padding: clamp(12px, 1.6vw, 24px);
  position: relative;
}
.vista-frame::before, .vista-frame::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 0.5px solid var(--copper);
  pointer-events: none;
}
.vista-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.vista-frame::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.vista-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-deep);
}

.vista-body {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.vista-prose { max-width: 56ch; }
.vista-prose p {
  margin: 0 0 1.4em;
  font-size: clamp(17px, 1.18vw, 19.5px);
  line-height: 1.66;
  color: var(--ink-soft);
}
.vista-prose .lead {
  font-size: clamp(19px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.vista-prose em { color: var(--vltava); font-style: italic; }

.compass-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.5px solid var(--rule-strong);
}
.compass-list li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: baseline;
  border-bottom: 0.5px solid var(--rule);
}
.bearing {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  color: var(--copper);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
}
.compass-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.compass-list span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
}

@media (max-width: 768px) {
  .vista-body { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════
   ENCORE
   ═════════════════════════════════════════════════════ */

.encore-movement .movement-number {
  font-size: clamp(60px, 9vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.encore-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.encore-card {
  padding: 28px 26px;
  background: var(--paper-light);
  border: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
}
.encore-card::before, .encore-card::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 0.5px solid var(--copper);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.encore-card::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.encore-card::after  { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.encore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -22px rgba(28, 24, 18, 0.32);
  border-color: var(--copper);
}
.encore-card:hover::before, .encore-card:hover::after { opacity: 1; }

.encore-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.encore-cz {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--vltava);
  margin: -4px 0 4px;
  font-weight: 400;
}
.encore-cz em { font-style: italic; }

.encore-card > p:not(.encore-cz):not(.encore-meta) {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0;
}

.encore-meta {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  margin: auto 0 0 !important;
  padding-top: 14px;
  border-top: 0.5px solid var(--rule);
}
.encore-meta a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 0.5px dotted var(--copper);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.encore-meta a:hover {
  color: var(--copper-deep);
  border-bottom-color: var(--copper-deep);
}

/* ═════════════════════════════════════════════════════
   CODA
   ═════════════════════════════════════════════════════ */

.coda-movement { padding-bottom: clamp(40px, 8vh, 80px); }

.coda-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.coda-card {
  padding: 28px 24px;
  border-top: 1px solid var(--copper);
  background: linear-gradient(180deg, rgba(168, 90, 43, 0.04), transparent 60%);
}
.coda-card h3 {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin: 0 0 12px;
}
.coda-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.coda-card em { color: var(--vltava); }
.coda-card strong { color: var(--copper); font-weight: 600; }

/* ═════════════════════════════════════════════════════
   COLOPHON
   ═════════════════════════════════════════════════════ */

.colophon {
  margin-top: 60px;
  padding: clamp(60px, 10vh, 120px) var(--gutter-x) clamp(40px, 6vh, 80px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.colophon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.colophon-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  position: relative;
  z-index: 1;
}
.colophon-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--paper-light);
}
.colophon-brand svg { color: var(--gold); }
.colophon-brand p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.colophon-brand p span {
  display: block;
  font-size: 14px;
  color: rgba(241, 232, 210, 0.6);
  font-style: italic;
  margin-top: 8px;
}

.colophon-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
}
.colophon-meta dt {
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 232, 210, 0.5);
  font-weight: 500;
  padding-top: 4px;
}
.colophon-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--paper-light);
  line-height: 1.4;
}

.colophon-set {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(241, 232, 210, 0.75);
}
.colophon-set p { margin: 0 0 12px; }
.set-title {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}
.set-foot {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241, 232, 210, 0.45);
  font-style: normal;
  margin-top: 32px !important;
  padding-top: 18px;
  border-top: 0.5px solid rgba(241, 232, 210, 0.18);
}

@media (max-width: 900px) {
  .colophon-inner { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════
   REVEAL ANIMATION
   ═════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: 0ms;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .movement-body, .smetana-movement .movement-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .movement-aside { max-width: 480px; }
  .movement-header { grid-template-columns: 1fr; gap: 12px; }
  .movement-number { font-size: clamp(96px, 22vw, 160px); }
  .movement-number::after { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { min-height: 78vh; padding-top: 80px; }
  .hero-tag { font-size: 10px; }
  .timeline li { grid-template-columns: 70px 24px 1fr; gap: 8px; }
  .timeline::before { left: 78px; }
  .t-year { font-size: 18px; }
  .compass-list li { grid-template-columns: 40px 1fr; gap: 16px; }
  .bearing { font-size: 28px; }
  .dropcap { font-size: 4.6em; }
}
