@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Helmet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/helmet/Helmet-Regular.ttf') format('truetype');
}

:root {
  --red: #d80f08;
  --red-dark: #a90b05;
  --yellow: #fef200;
  --blue: #1241ff;
  --gold: #c9a227;
  --navy: #0a1f5c;

  --ink: #0d141a;
  --ink-2: #16212b;
  --ink-3: #243240;
  --text: #1b232b;
  --muted: #56585e;
  --line: #e3e5e9;
  --paper: #ffffff;
  --surface: #f6f4ef;

  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(13 20 26 / 0.06), 0 10px 30px rgb(13 20 26 / 0.08);
  --shadow-lg: 0 2px 4px rgb(13 20 26 / 0.08), 0 24px 60px rgb(13 20 26 / 0.18);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --tricolor: linear-gradient(to bottom, var(--red) 0 33.34%, var(--yellow) 33.34% 66.67%, var(--blue) 66.67% 100%);
  --tricolor-x: linear-gradient(to right, var(--red) 0 33.34%, var(--yellow) 33.34% 66.67%, var(--blue) 66.67% 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }

ul, ol { margin: 0; padding: 0; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--yellow); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: rgb(255 255 255 / 0.82); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.stripe {
  height: 9px;
  background: var(--tricolor);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgb(13 20 26 / 0.06);
  transition: background-color 0.3s, box-shadow 0.3s, opacity 0.6s var(--ease), visibility 0.6s;
}
.site-header .stripe { height: 6px; }
.site-header .stripe, .brand { transition: opacity 0.25s, visibility 0.25s, color 0.3s; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: auto; height: 52px; }
.brand__text { display: flex; flex-direction: column; gap: 6px; line-height: 1.1; }
.brand__name { margin-block: -0.238em -0.215em; font-family: 'Helmet', var(--font-head); font-size: calc(0.72rem * 2.574); font-weight: 400; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-box: trim-both cap alphabetic; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s, color 0.3s;
}
.site-nav a:hover { background: var(--surface); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
}
@media (hover: hover) { .nav-toggle:hover { background: var(--surface); } }
.nav-toggle__icon { position: relative; width: 20px; height: 2px; background: currentColor; transition: background-color 0.2s; }
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-toggle__icon::before { transform: translateY(-6px); }
.nav-toggle__icon::after { transform: translateY(6px); }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon::after { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    box-shadow: 0 24px 40px rgb(13 20 26 / 0.14);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { padding: 18px 12px; border-radius: 0; font-size: 1.1rem; }
  .site-header__inner { flex-wrap: wrap; }
  .js .site-header__inner { flex-wrap: nowrap; }

  .js .site-header { position: fixed; top: 0; left: 0; right: 0; }
  .js .site-header:not(.is-scrolled):not(.is-menu-open) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }
  .js .site-header:not(.is-scrolled):not(.is-menu-open) :is(.brand, .stripe) { opacity: 0; visibility: hidden; }
  .js .site-header:not(.is-scrolled):not(.is-menu-open) .nav-toggle {
    pointer-events: auto;
    background: #fff;
    box-shadow: 0 4px 16px rgb(13 20 26 / 0.28);
  }
  .js .page-hero { padding-top: calc(var(--header-h) + 40px); }
}

@media (min-width: 1081px) {
  .js .home .site-header { position: fixed; top: 0; left: 0; right: 0; }
  .js .home .site-header:not(.is-scrolled) {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .js .home .site-header:not(.is-scrolled) .stripe { opacity: 0; }
  .js .home .site-header:not(.is-scrolled) :is(.brand, .site-nav a) { color: #fff; }
  .js .home .site-header:not(.is-scrolled) .brand__tag { color: rgb(255 255 255 / 0.75); }
  .js .home .site-header:not(.is-scrolled) .brand img { filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.35)); }
  .js .home .site-header:not(.is-scrolled) .site-nav a:hover { background: rgb(255 255 255 / 0.14); }}

.hero {
  --hero-title: clamp(3rem, 1.8rem + 6vw, 6.5rem);
  --hero-gap: clamp(16px, 0.6rem + 1.4vw, 28px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(96px, 14vw, 160px) clamp(40px, 7vw, 80px);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: opacity 0.5s ease-out; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(13 20 26 / 0.5), transparent 160px),
    linear-gradient(to top, rgb(13 20 26 / 0.92) 0%, rgb(13 20 26 / 0.55) 45%, rgb(13 20 26 / 0.15) 100%),
    linear-gradient(to right, rgb(13 20 26 / 0.55), transparent 70%);
}
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(to top, rgb(13 20 26 / 0.94) 0%, rgb(13 20 26 / 0.72) 55%, rgb(13 20 26 / 0.4) 100%); }
  .hero__label { font-size: calc(var(--hero-title) * 0.413); }
}
.hero .container { display: flex; flex-direction: column; gap: var(--hero-gap); text-align: center; }
.hero__label { margin: 0; line-height: 1.2; text-box: trim-both cap alphabetic; }
.hero h1 {
  margin-block: -0.238em -0.215em;
  font-family: 'Helmet', var(--font-head);
  font-size: var(--hero-title);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.hero__lead { margin: 0; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); color: rgb(255 255 255 / 0.88); text-box: trim-both cap alphabetic; }

.hero::before { transition: opacity 0.9s var(--ease); }
.hero .container > * { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero .container > :nth-child(2) { transition-delay: 0.08s; }
.hero .container > :nth-child(3) { transition-delay: 0.16s; }
.hero .container > :nth-child(4) { transition-delay: 0.24s; }
.intro:not(.hero-loaded) .hero__media img { opacity: 0; }
.intro .hero::before { opacity: 0; }
.intro .hero .container > * { opacity: 0; transform: translateY(16px); }
.intro .site-header { opacity: 0; visibility: hidden; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: var(--hero-gap);
  border-top: 1px solid rgb(255 255 255 / 0.2);
  list-style: none;
}
.stats li { display: flex; flex-direction: column; }
.stats li:first-child { grid-column: 1 / -1; }
.stats strong { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; line-height: 1.1; color: #fff; text-box: trim-start cap alphabetic; }
.stats span { font-size: 0.85rem; color: rgb(255 255 255 / 0.72); }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats li:first-child { grid-column: auto; } }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
  background: var(--ink);
  color: rgb(255 255 255 / 0.8);
}
.page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(-80px, calc(50% - 720px));
  width: clamp(185px, 25.6vw, 327px);
  aspect-ratio: 512 / 640;
  background: url('../assets/img/brand/toeristika-schild-2025.webp') center / contain no-repeat;
  opacity: 0.09;
  transform: translateY(-50%) rotate(-8deg);
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: var(--tricolor);
}
.page-hero h1 { max-width: 16ch; color: #fff; }
.page-hero .lead { max-width: 620px; color: rgb(255 255 255 / 0.78); }

.story {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .story__media { position: sticky; top: calc(var(--header-h) + 32px); }
}

.photo-stack { display: grid; gap: 14px; }
.photo-stack a, .photo-stack figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.photo-stack a:hover img { transform: scale(1.04); }

.timeline { position: relative; list-style: none; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--red), var(--yellow) 50%, var(--blue));
}
.timeline__item { position: relative; padding-left: 52px; }
.timeline__item + .timeline__item { margin-top: clamp(28px, 4vw, 44px); }
.timeline__item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 2px;
  width: 21px;
  height: 21px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.timeline__year {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}
.timeline__item h3 { margin-bottom: 0.4em; }
.timeline__item p { color: #2f363d; }

.sponsors { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) {
  .sponsors { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
}
.sponsors__collage { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 460px; }
.sponsor-grid { display: grid; gap: 16px; list-style: none; }
@media (min-width: 640px) { .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sponsor-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}
.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 40px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--accent, var(--red));
}
.sponsor-card:nth-child(3n + 2) { --accent: var(--yellow); }
.sponsor-card:nth-child(3n + 3) { --accent: var(--blue); }
.sponsor-card h3 { margin-bottom: 0.35em; font-size: 1.15rem; }
.sponsor-card p { font-size: 0.95rem; line-height: 1.6; }

.spotlight {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.spotlight::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 9px;
  background: var(--tricolor);
}
.spotlight__label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.spotlight__name { margin: 0; font-family: var(--font-head); font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--ink); }
.spotlight__year { font-weight: 600; color: var(--muted); }

.decade-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.decade-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.decade-card h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 1.35rem; }
.decade-card h2 span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.senior-list { list-style: none; }
.senior-list li {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.97rem;
}
.senior-list li:first-child { border-top: 0; }
.senior-list__year { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.senior-list .is-current { color: var(--red); font-weight: 700; }
.senior-list .is-current .senior-list__year { color: var(--red); }

@media (max-width: 720px) {
  .decade-grid {
    display: block;
    padding: 8px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }
  .decade-card { padding: 0; border: 0; border-radius: 0; }
  .decade-grid .decade-card.is-pending { opacity: 1; transform: none; }
  .decade-card h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .senior-list li:first-child { border-top: 1px dashed var(--line); }
  .decade-card:first-child .senior-list li:first-child { border-top: 0; }
}

.photo-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  list-style: none;
}
.photo-row a { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.photo-row a:hover img { transform: scale(1.05); }

.toolbar {
  position: sticky;
  top: calc(var(--header-h) + 6px);
  z-index: 20;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
}
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}
.search svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(18 65 255 / 0.15); }
.toolbar__inner > nav { min-width: 0; max-width: 100%; }
.decade-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; list-style: none; }
.decade-nav::-webkit-scrollbar { display: none; }
.decade-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.decade-nav a:hover { background: var(--line); }
.decade-nav a.is-active { background: var(--ink); color: #fff; }
.decade-nav a.is-empty { opacity: 0.35; pointer-events: none; }
.result-count { margin: 0; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 720px) {
  .toolbar { top: calc(var(--header-h) + 6px); }
  .search { max-width: none; flex-basis: 100%; }
  .result-count { display: none; }
}

.decade + .decade { margin-top: clamp(48px, 7vw, 80px); }
.decade__title { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.decade__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.year-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: start;
  list-style: none;
}
.year-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.year-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.year-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.year-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.year-card__media:hover img { transform: scale(1.04); }
.year-card__media--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  color: rgb(255 255 255 / 0.5);
}
.year-card__media--empty img { width: 24%; height: auto; opacity: 0.18; filter: grayscale(1); }
.year-card__media--empty::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--tricolor);
}
.year-card__body { padding: 20px 22px 24px; }
.year-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.roles { list-style: none; font-size: 0.94rem; }
.roles li { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px dashed var(--line); }
.roles li:first-child { border-top: 0; padding-top: 0; }
.roles__role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.roles__name { font-weight: 600; color: var(--ink); }
.roles li.is-match { margin-inline: -10px; padding-inline: 10px; border-radius: 8px; background: rgb(254 242 0 / 0.45); }
.year-card--current { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.empty-state { padding: 48px 0; text-align: center; color: var(--muted); }

.anthem { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) {
  .anthem { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
  .anthem__facts { position: sticky; top: calc(var(--header-h) + 32px); }
}
.lyrics { display: grid; gap: 22px; }
.verse {
  position: relative;
  padding: 28px 28px 28px 84px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  line-height: 1.8;
}
.verse__no {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}
.verse p { margin: 0; }
.refrain {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--yellow);
  color: var(--ink);
}
.refrain__label { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.refrain p { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; line-height: 1.3; }
@media (max-width: 520px) {
  .verse { padding: 64px 22px 24px; }
  .verse__no { top: 18px; left: 22px; font-size: 2.1rem; }
}

.facts {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: rgb(255 255 255 / 0.85);
}
.facts h2 { margin-bottom: 18px; font-size: 1.3rem; color: #fff; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.facts dd { margin: 2px 0 0; font-weight: 500; color: #fff; }

.year-block + .year-block { margin-top: clamp(40px, 6vw, 64px); }
.year-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.year-block__head h2 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.year-block__head span { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.doc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.doc-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-card__icon {
  position: relative;
  display: grid;
  place-items: end center;
  flex: none;
  width: 46px;
  height: 56px;
  padding-bottom: 7px;
  border-radius: 6px 14px 6px 6px;
  background: var(--red);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.doc-card__icon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 0 14px 0 6px;
  background: rgb(255 255 255 / 0.35);
}
.doc-card__icon--doc { background: var(--blue); }
.doc-card__text { display: flex; flex-direction: column; min-width: 0; }
.doc-card__title { font-family: var(--font-head); font-weight: 600; line-height: 1.3; color: var(--ink); }
.doc-card__meta { font-size: 0.82rem; color: var(--muted); }
.doc-card__arrow { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.doc-card:hover .doc-card__arrow { color: var(--red); transform: translateY(2px); }

.prose { max-width: 68ch; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem); line-height: 1.8; color: #283038; }
.prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-head);
  font-size: 3.6em;
  font-weight: 700;
  line-height: 0.8;
  color: var(--red);
}
.prose-layout { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) {
  .prose-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .prose-layout aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.milestones { list-style: none; border-left: 3px solid var(--ink); }
.milestones li { position: relative; padding: 0 0 18px 20px; }
.milestones li::before { content: ''; position: absolute; top: 9px; left: -8px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.milestones strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.milestones span { font-size: 0.92rem; color: var(--muted); }

.feature { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.feature__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature__body p { font-size: 1.08rem; color: #283038; }
.feature__body .doc-card { margin-top: 24px; max-width: 440px; }

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry a {
  display: block;
  margin-bottom: 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.masonry img { width: 100%; transition: transform 0.6s var(--ease), filter 0.3s; }
.masonry a:hover img { transform: scale(1.03); }

.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.quote__stars { font-size: 1.1rem; letter-spacing: 0.15em; color: var(--gold); }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote__name { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.quote__place { font-size: 0.88rem; color: var(--muted); }

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 12 16 / 0.94);
  color: #fff;
}
.lightbox::backdrop { background: rgb(8 12 16 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 0.2s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox__count { font-family: var(--font-head); font-size: 0.9rem; color: rgb(255 255 255 / 0.7); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 88px); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox__caption { min-height: 1.5em; padding: 12px 16px 20px; text-align: center; font-size: 0.92rem; color: rgb(255 255 255 / 0.75); }
.lightbox button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.22); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(8px, 2vw, 24px); }
.lightbox__next { right: clamp(8px, 2vw, 24px); }
.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__count { visibility: hidden; }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}
body.has-lightbox { overflow: hidden; }

.site-footer { position: relative; background: var(--navy); color: rgb(255 255 255 / 0.9); }
.site-footer .stripe { height: 9px; }
.site-footer__main {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 80px);
  text-align: center;
}
.footer-brand img { width: 96px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.25)); }
.social { display: flex; justify-content: center; gap: 14px; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.social a:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.social svg { width: 28px; height: 28px; }
.site-footer__bottom {
  padding-block: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  font-size: 0.88rem;
  color: rgb(255 255 255 / 0.85);
  text-align: center;
}

.not-found { display: grid; place-items: center; min-height: 60vh; padding-block: var(--section); text-align: center; }
.not-found img { width: 96px; margin: 0 auto 24px; }

.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .toolbar, .lightbox { display: none !important; }
  .page-hero, .hero { color: #000; background: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
