/* ==========================================================================
   TMS Türnpu Meeskoor — disainisüsteem
   Aluseks kinnitatud avalehe kavand. Kõik brändi väärtused on tokenitena
   :root all. Dokumentatsioon: brand.html ja BRAND.md.
   ========================================================================== */

/* Self-hosted fonts (OFL) */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Värvid — põhi */
  --navy-950: #0A1834;
  --navy-900: #0F2447;   /* kunstilise juhtimise riba */
  --navy-800: #152E57;
  --navy-700: #1E3C6E;
  --footer:   #13284C;   /* jalus */
  --royal-700: #173F98;
  --royal-600: #1F4DB3;  /* nupud – koori pintsakusinine */
  --royal-500: #2F62D0;
  --royal-100: #E6ECF7;
  --sky-300:   #A9C8E8;
  --gold-600:  #A0834F;  /* ülapealkirjad (eyebrow) */
  --gold-500:  #C3A262;  /* peenjooned, aktsendid */
  --gold-300:  #DCC48E;  /* aktsent tumedal taustal */

  /* Värvid — neutraalsed */
  --paper:   #F4F2EE;    /* sektsioonide taust */
  --paper-2: #ECE9E3;
  --white:   #FFFFFF;
  --header-bg: #F8F8F6;
  --ink:     #16233F;    /* põhitekst */
  --ink-2:   #3B4760;
  --muted:   #667085;
  --line:    #DEDAD2;
  --line-dark: rgba(255,255,255,.16);
  --pill:    #E3E6EC;

  --focus: #F2B53A;

  /* Kirjatüübid */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Great Vibes", "Snell Roundhand", cursive;

  /* Tüpograafiline skaala */
  --fs-xs: .75rem;                                     /* 12 – ülapealkiri */
  --fs-sm: .9375rem;                                   /* 15 */
  --fs-base: 1.0625rem;                                /* 17 */
  --fs-lg: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);   /* 18–20 */
  --fs-xl: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);   /* 22–26 */
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);    /* 28–40 – sektsiooni pealkiri */
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);    /* 36–56 – hero */

  /* Vahed */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section-y: clamp(3rem, 2.2rem + 3vw, 5rem);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow: 0 8px 28px -12px rgba(15,36,71,.22), 0 2px 6px rgba(15,36,71,.05);
  --shadow-lg: 0 24px 60px -20px rgba(15,36,71,.4);

  --container: 1200px;
  --container-narrow: 780px;
  --header-h: 80px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Baas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font-serif); font-size: var(--fs-base); line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--royal-700); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--royal-600); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em;
  color: var(--navy-900); margin: 0 0 var(--s-3); text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-sans); }
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Paigutus ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #DCE3EF; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.grid-2 { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.rel { position: relative; overflow: hidden; }
.rel > .container { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Tüpograafilised abid ---------- */
.eyebrow {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-serif); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-600);
}
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--gold-300); }
.eyebrow--blue { color: var(--royal-600); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
.section--navy .lead, .on-dark .lead { color: #D0D8E6; }
.section-head { max-width: 760px; margin-bottom: var(--s-6); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1.05; letter-spacing: 0; transform: rotate(-9deg); display: inline-block; }
.gold-rule { display: block; width: 44px; height: 2px; background: var(--gold-500); border: 0; margin: 0; }
.prose { color: var(--ink-2); }
.prose p { margin-bottom: 1em; }
.prose strong { color: var(--ink); }
.dropcap::first-letter { float: left; font-size: 3.9em; line-height: .85; padding: .06em .1em 0 0; color: var(--royal-600); font-weight: 600; }

/* ---------- Nupud ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 48px; padding: .75rem 1.75rem;
  font: 600 var(--fs-base)/1.2 var(--font-sans);
  color: #fff; background: linear-gradient(180deg, var(--royal-500), var(--royal-600) 55%, var(--royal-700));
  border: 1.5px solid transparent; border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(31,77,179,.7);
  transition: filter .2s, transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(31,77,179,.85); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--outline-light { background: rgba(10,24,52,.25); border-color: rgba(255,255,255,.85); box-shadow: none; }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); filter: none; box-shadow: none; }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); box-shadow: none; }
.btn--outline:hover { background: var(--navy-900); color: #fff; filter: none; box-shadow: none; }
.btn--light { background: #fff; color: var(--navy-900); box-shadow: none; }
.btn--light:hover { background: var(--paper); color: var(--navy-900); filter: none; }
.btn--sm { min-height: 40px; padding: .5rem 1.2rem; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font: 500 var(--fs-sm)/1.2 var(--font-sans); color: var(--royal-600); text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.section--navy .link-arrow { color: var(--sky-300); }

/* ---------- Päis ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15,36,71,.45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--navy-900); }
.brand__mark { height: 54px; width: auto; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__tms { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; }
.brand__name { font-family: var(--font-serif); font-weight: 500; font-size: .98rem; letter-spacing: .11em; text-transform: uppercase; margin-top: .22rem; }
.brand__tag { font-family: var(--font-serif); font-size: .56rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-600); margin-top: .4rem; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 5rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.25rem, 1.2vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; display: block; padding: .5rem .35rem; font-family: var(--font-serif); font-size: 1.02rem; color: var(--navy-900); text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: .35rem; right: .35rem; bottom: .15rem; height: 1.5px; background: var(--royal-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--royal-600); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--royal-600); }
.nav .btn { padding-inline: 1.9rem; }
.nav__item { position: relative; list-style: none; }
.nav__item--has-dropdown > .nav__link::before {
  content: ""; position: absolute; right: -.35rem; top: 50%; width: 0; height: 0;
  border: 4px solid transparent; border-top-color: currentColor; margin-top: -2px;
  opacity: .5; transition: transform .2s var(--ease);
}
.nav__dropdown {
  position: absolute; top: calc(100% + 6px); left: -.5rem;
  list-style: none; margin: 0; padding: .5rem 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 24px -16px rgba(15, 36, 71, .35);
  min-width: 230px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
  z-index: 50;
}
.nav__dropdown::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
.nav__dropdown li { list-style: none; }
.nav__dropdown a {
  display: block; padding: .55rem 1rem; color: var(--ink);
  text-decoration: none; font-family: var(--font-sans); font-size: var(--fs-sm);
  transition: background .12s, color .12s;
}
.nav__dropdown a:hover,
.nav__dropdown a:focus-visible { background: var(--paper); color: var(--royal-600); outline: 0; }
.nav__item--has-dropdown:hover > .nav__dropdown,
.nav__item--has-dropdown:focus-within > .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item--has-dropdown:hover > .nav__link::before { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav__dropdown { transition: none; } }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; color: var(--navy-900); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    padding: var(--s-4) 1.25rem var(--s-6); background: var(--header-bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .95rem .25rem; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1.25rem; min-width: 0; background: transparent; }
  .nav__dropdown::before { display: none; }
  .nav__dropdown a { padding: .55rem .25rem; font-size: 1rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .nav__dropdown a:hover { background: transparent; color: var(--royal-600); }
  .nav__item--has-dropdown > .nav__link::before { right: .25rem; opacity: .35; }
}
@media (max-width: 420px) { .brand__name { font-size: .82rem; } .brand__mark { height: 44px; } }

/* ---------- Avalehe hero (kavandi järgi) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-950); min-height: clamp(500px, 36vw, 620px); display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,20,44,.86) 0%, rgba(8,20,44,.62) 32%, rgba(8,20,44,.12) 58%, rgba(8,20,44,0) 75%),
    linear-gradient(0deg, rgba(8,20,44,.75) 0%, rgba(8,20,44,0) 38%),
    linear-gradient(180deg, rgba(8,20,44,.35) 0%, rgba(8,20,44,0) 20%);
}
.hero__content { padding-block: var(--s-8) var(--s-6); position: relative; }
.hero h1 { color: #fff; max-width: 13.5em; margin-bottom: var(--s-4); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero__text { font-family: var(--font-sans); font-size: var(--fs-lg); line-height: 1.45; color: #fff; max-width: 32em; margin-bottom: var(--s-6); text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); font-family: var(--font-sans); font-size: var(--fs-sm); color: #fff; }
.hero__meta span { display: inline-flex; align-items: center; gap: .6rem; }
.hero__meta svg { width: 20px; height: 20px; flex: none; }
.hero__script { position: absolute; right: 0; bottom: var(--s-7); text-align: center; color: #fff; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero__script .gold-rule { margin: .6rem auto 0; }
@media (max-width: 860px) {
  .hero { min-height: 0; display: block; }
  .hero__media { position: relative; height: 62vw; min-height: 260px; }
  .hero__media img { object-position: 50% 40%; }
  .hero::before { background: linear-gradient(180deg, rgba(8,20,44,0) 0, rgba(8,20,44,0) 30vw, var(--navy-950) 62vw); }
  .hero__content { padding-block: var(--s-4) var(--s-7); margin-top: -3rem; }
  .hero__script { display: none; }
}

/* ---------- Alamlehe hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #fff; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,24,52,.93) 0%, rgba(10,24,52,.75) 45%, rgba(10,24,52,.3) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero .lead { color: #D6DDEA; max-width: 36em; }
.page-hero .hero__script { bottom: -.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font: var(--fs-xs)/1.4 var(--font-sans); color: #AFBCD2; margin: 0 0 var(--s-5); list-style: none; padding: 0; }
.breadcrumb a { color: #D6DDEA; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Lehesisene navigatsioon ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 1rem .9rem; font: 500 var(--fs-sm)/1.2 var(--font-sans); color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy-900); }
.subnav a.is-active { color: var(--royal-600); border-bottom-color: var(--royal-600); }

/* ---------- Meie koorist + numbrid ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.about p { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { text-align: center; padding: .5rem .75rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.stat > svg { width: 44px; height: 44px; color: var(--navy-900); margin-bottom: .7rem; stroke-width: 1.4; }
.stat__small { font-size: var(--fs-sm); color: var(--ink); }
.stat__big { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.75rem); font-weight: 600; color: var(--navy-900); line-height: 1.15; }
.stat__big--sm { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); }
.about__quote { position: relative; text-align: center; margin: var(--s-6) 0 0; padding: 0 var(--s-6); }
.about__quote p { font-style: italic; font-size: var(--fs-xl); line-height: 1.35; color: var(--navy-800); }
.about__quote cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.oak-deco { position: absolute; pointer-events: none; opacity: .09; width: 160px; z-index: 0; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: var(--s-5); }
  .stat:nth-child(odd) { border-left: 0; }
}

/* ---------- Kunstilise juhtimise riba ---------- */
.lead-band { background: var(--navy-900); color: #DCE3EF; position: relative; overflow: hidden; }
.lead-band__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1.1fr); min-height: 330px; }
.lead-band__photo { position: relative; background: #1d1714; }
.lead-band__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lead-band__text { padding: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2.5vw, 3rem); align-self: center; }
.lead-band__text h2 { color: #fff; }
.lead-band__text p { color: #DCE3EF; }
.lead-band__names { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: .2rem; color: #DCE3EF; }
.lead-band__names strong { color: #fff; font-weight: 600; }
.lead-band__names a { color: inherit; text-decoration: none; }
.lead-band__names a:hover strong { text-decoration: underline; }
.lead-band__quote { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--s-6) var(--s-7); }
.lead-band__quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(15,36,71,.55) 35%, rgba(15,36,71,.15)); }
.lead-band__quote img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.lead-band__quote blockquote { margin: 0; font-style: italic; font-size: var(--fs-xl); line-height: 1.35; color: #fff; transform: rotate(-4deg); }
.lead-band__quote .gold-rule { margin: var(--s-5) 0 0 5rem; }
@media (min-width: 1240px) {
  .lead-band__grid { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
  .lead-band__quote { margin-right: calc((100vw - var(--container)) / -2); }
}
@media (max-width: 960px) {
  .lead-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .lead-band__quote { grid-column: 1 / -1; min-height: 240px; }
}
@media (max-width: 620px) {
  .lead-band__grid { grid-template-columns: 1fr; }
  .lead-band__photo { aspect-ratio: 4 / 3.4; }
}

/* ---------- Kutsu koor külla (avaleht) ---------- */
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); position: relative; }
.invite__left { padding-right: clamp(1.5rem, 1rem + 3vw, 4rem); border-right: 1px solid var(--line); }
.invite__right { padding-left: clamp(1.5rem, 1rem + 3vw, 4rem); position: relative; padding-top: var(--s-5); min-height: 180px; }
.invite__left p { color: var(--ink); margin-bottom: var(--s-5); }
.pills { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; margin: var(--s-3) 0 0; padding: 0; position: relative; z-index: 1; max-width: 520px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.6rem; border-radius: var(--radius-pill); background: var(--pill); color: var(--navy-900); font-size: var(--fs-sm); text-decoration: none; transition: background .2s, color .2s; }
a.pill:hover { background: var(--navy-900); color: #fff; }
.staff-deco { position: absolute; right: -5rem; top: 1.5rem; width: 330px; color: var(--navy-900); opacity: .13; pointer-events: none; }
.invite__script { position: absolute; right: -1rem; bottom: -1.5rem; color: #9BA3B3; font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem); }
@media (max-width: 860px) {
  .invite { grid-template-columns: 1fr; gap: var(--s-6); }
  .invite__left { padding-right: 0; border-right: 0; }
  .invite__right { padding-left: 0; padding-top: 0; min-height: 0; }
  .invite__script, .staff-deco { display: none; }
}

/* ---------- Uudisekaart (horisontaalne) ---------- */
.news-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.news-card { position: relative; display: grid; grid-template-columns: 34% 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__media { position: relative; min-height: 170px; margin: 0; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: .4rem; }
.news-card__date { font-size: var(--fs-sm); color: var(--muted); }
.news-card__title { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__text { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; line-height: 1.45; }
.news-card .link-arrow { margin-top: auto; padding-top: .3rem; }
@media (max-width: 1100px) { .news-row { grid-template-columns: 1fr; } .news-card { grid-template-columns: 220px 1fr; } }
@media (max-width: 520px) { .news-card { grid-template-columns: 1fr; } .news-card__media { aspect-ratio: 16/9; } }

/* ---------- Galerii rida (avaleht) ---------- */
.gallery-row { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.gallery-row h2 { margin: 0; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 5 / 3.1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
@media (max-width: 960px) {
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-row > :first-child, .gallery-row > :last-child { grid-column: 1 / -1; }
  .gallery-row > :last-child { aspect-ratio: 16 / 7; }
}

/* ---------- Kaardid (alamlehed) ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }

/* Sündmus (tulevased kontserdid) */
.event { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 1px solid var(--line); }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: var(--radius); background: var(--navy-900); color: #fff; }
.event__day { font-size: 2rem; font-weight: 600; line-height: 1; }
.event__month { font: 600 .68rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-top: .35rem; }
.event__title { font-size: 1.3rem; margin: 0 0 .2rem; }
.event__info { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: var(--fs-sm)/1.5 var(--font-sans); color: var(--muted); }
.event__info span { display: inline-flex; align-items: center; gap: .4rem; }
.event__info svg { width: 16px; height: 16px; color: var(--gold-600); }
@media (max-width: 700px) {
  .event { grid-template-columns: 64px 1fr; gap: var(--s-4); }
  .event__date { width: 64px; height: 64px; } .event__day { font-size: 1.5rem; }
  .event > .btn, .event > .link-arrow, .event > .tag { grid-column: 2; justify-self: start; }
}

/* Inimese kaart / elulood */
.person__photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); position: relative; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.person__photo--placeholder { display: grid; place-items: center; color: var(--gold-300); background: radial-gradient(circle at 50% 35%, var(--navy-700), var(--navy-900)); }
.person__photo--placeholder span { font-size: 4rem; letter-spacing: .04em; }
.person__photo--placeholder small { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font: var(--fs-xs)/1 var(--font-sans); color: #AFBCD2; letter-spacing: .06em; }
.person__role { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); }
.section--navy .person__role { color: var(--gold-300); }

.bio { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; padding-block: var(--s-8); border-top: 1px solid var(--line); }
.bio:first-of-type { border-top: 0; padding-top: 0; }
.bio__aside { position: sticky; top: calc(var(--header-h) + 80px); }
.bio h3 { font-size: var(--fs-2xl); margin-bottom: var(--s-4); }
.bio__awards { margin-top: var(--s-5); padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.bio__awards h4 { font: 600 var(--fs-xs)/1.2 var(--font-serif); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); margin-bottom: var(--s-3); }
.bio__awards ul { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.bio__awards li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.bio__awards li:last-child { border-bottom: 0; }
.bio__awards li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__aside { position: static; max-width: 340px; } }

.pullquote { font-style: italic; font-size: var(--fs-xl); line-height: 1.4; color: var(--navy-900); border-left: 2px solid var(--gold-500); padding: .2rem 0 .2rem 1.5rem; margin: var(--s-6) 0; }
.pullquote cite { display: block; margin-top: .6rem; font-style: normal; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

details.more { margin-top: var(--s-4); }
details.more > summary { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; font: 600 var(--fs-sm)/1.2 var(--font-sans); color: var(--royal-600); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more[open] .more__open, details.more:not([open]) .more__close { display: none; }
details.more > div { margin-top: var(--s-4); }

/* Ajajoon */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(var(--gold-500), var(--royal-600)); opacity: .5; }
.timeline li { position: relative; padding: 0 0 var(--s-5) 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .4rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--royal-600); }
.timeline__year { font-size: 1.4rem; font-weight: 600; color: var(--royal-600); line-height: 1.2; }
.timeline__text { color: var(--ink-2); margin-top: .2rem; }

/* Dirigendid läbi ajaloo */
.conductors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0 var(--s-6); }
.conductors li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
.conductors .name { font-size: 1.12rem; color: #fff; }
.conductors .years { font: var(--fs-sm)/1.6 var(--font-sans); color: var(--gold-300); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conductors .note { display: block; font: var(--fs-xs)/1.4 var(--font-sans); color: #93A2BC; margin-top: .15rem; }

/* Akordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; font-size: 1.3rem; font-weight: 600; color: var(--navy-900); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--royal-600); border-bottom: 2px solid var(--royal-600); transform: rotate(45deg) translate(-3px,-3px); transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding: 0 0 var(--s-5); color: var(--ink-2); }

/* Häälerühmad, sammud */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); }
.voice { padding: var(--s-4); border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); text-align: center; }
.voice__name { font-size: 1.3rem; color: #fff; }
.voice__range { font: var(--fs-xs)/1.4 var(--font-sans); color: var(--gold-300); letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.steps--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps li { counter-increment: step; position: relative; padding-left: 3.5rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -.1rem; left: 0; font-size: 1.9rem; font-weight: 600; color: var(--gold-500); line-height: 1; }
.steps h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 860px) { .steps--3 { grid-template-columns: 1fr; } }

/* Kavade kaardid */
.program { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.program:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.program::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--royal-600), var(--sky-300)); }
.program__icon { width: 42px; height: 42px; color: var(--navy-900); margin-bottom: var(--s-4); }
.program h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.program p { color: var(--ink-2); font-size: var(--fs-sm); }

/* Sildid */
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: var(--radius-pill); background: var(--royal-100); color: var(--royal-700); font: 600 var(--fs-xs)/1.3 var(--font-sans); }
.tag--gold { background: #F3EBDA; color: #7A5F2C; }

/* Sisu puudumise märge */
.pending { border: 1.5px dashed #C9BFA9; border-radius: var(--radius); padding: var(--s-4) var(--s-5); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.7) 0 12px, rgba(236,233,227,.7) 12px 24px); color: var(--ink-2); font: var(--fs-sm)/1.5 var(--font-sans); }
.pending strong { display: block; color: #7A5F2C; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem; }

/* Kontakt */
.contact-card { padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.contact-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: .75rem; font-family: var(--font-sans); font-size: var(--fs-sm); }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.contact-list svg { width: 20px; height: 20px; color: var(--royal-600); flex: none; margin-top: .05rem; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--royal-600); border-color: var(--royal-600); }
.data-table { width: 100%; border-collapse: collapse; font: var(--fs-sm)/1.5 var(--font-sans); }
.data-table th, .data-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { width: 42%; font-weight: 500; color: var(--muted); padding-right: 1rem; }
.data-table td { color: var(--ink); font-weight: 500; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Vorm */
.form { display: grid; gap: var(--s-4); font-family: var(--font-sans); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: .8rem 1rem; min-height: 50px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 4px rgba(31,77,179,.15); }
.form__note { font: var(--fs-xs)/1.5 var(--font-sans); color: var(--muted); }

/* Galerii albumid */
.album { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.album:first-of-type { border-top: 0; padding-top: 0; }
.album__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.album__head h2 { margin: 0; }
.album__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px; gap: var(--s-3); }
.album__grid > * { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; height: 100%; }
.album__grid > :first-child { grid-column: span 8; grid-row: span 4; }
@media (max-width: 760px) {
  .album__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
  .album__grid > *, .album__grid > :first-child { grid-column: span 1; grid-row: span 2; }
  .album__grid > :first-child { grid-column: span 2; }
}
.g-item--empty { cursor: default; display: grid; place-items: center; text-align: center; padding: 1rem; color: #93A2BC; font: var(--fs-xs)/1.4 var(--font-sans); background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-900)); }
.g-item--empty svg { width: 30px; height: 30px; color: var(--gold-300); margin: 0 auto .5rem; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: rgba(8,18,40,.95); padding: 4rem 1rem; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1400px, 100%); max-height: 80vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #C9D3E4; text-align: center; margin-top: 1rem; font: var(--fs-sm)/1.4 var(--font-sans); }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.18); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* Uudiste leht: vasak tulp + artiklid */
.news-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.news-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.news-aside ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-aside li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-aside li a:hover .t { color: var(--royal-600); }
.news-aside .d { display: block; font: var(--fs-xs)/1.4 var(--font-sans); color: var(--muted); }
.news-aside .t { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-6); }
.filter { border: 0; background: var(--pill); color: var(--navy-900); padding: .55rem 1.2rem; border-radius: var(--radius-pill); font: var(--fs-sm)/1 var(--font-serif); cursor: pointer; min-height: 40px; }
.filter:hover { background: #D6DBE4; }
.filter[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--s-6); scroll-margin-top: calc(var(--header-h) + 24px); }
.article__media { aspect-ratio: 21/9; overflow: hidden; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: var(--s-3); font: var(--fs-sm)/1.4 var(--font-sans); color: var(--muted); }
.article[hidden] { display: none; }
@media (max-width: 960px) { .news-layout { grid-template-columns: 1fr; } .news-aside { position: static; order: 2; } }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: var(--s-6); align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #D0D8E6; }
.cta__meta { display: grid; gap: .5rem; font: var(--fs-sm)/1.4 var(--font-sans); color: #D0D8E6; margin-bottom: var(--s-4); }
.cta__meta span { display: inline-flex; gap: .55rem; align-items: center; }
.cta__meta svg { width: 18px; height: 18px; color: var(--gold-300); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Jalus (kavandi järgi) ---------- */
.site-footer { background: var(--footer); color: #DCE3EF; font-family: var(--font-sans); font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.25fr 1.2fr .8fr 1.25fr; padding-block: var(--s-7); align-items: start; }
.footer__col { padding-inline: clamp(1rem, 2.5vw, 2.5rem); }
.footer__col:first-child { padding-left: 0; }
.footer__col:last-child { padding-right: 0; }
.footer__col:nth-child(n+3) { border-left: 1px solid rgba(255,255,255,.16); min-height: 96px; }
.footer-brand { display: inline-flex; gap: 1rem; align-items: center; color: #fff; text-decoration: none; }
.footer-brand:hover { text-decoration: none !important; }
.footer-brand__mark { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.footer-brand__mark svg,
.footer-brand__mark img { height: 74px; width: auto; color: #fff; }
.footer-brand__mark small { font-family: var(--font-serif); font-size: .85rem; letter-spacing: .08em; }
.footer-brand .brand__tms { font-size: 1.75rem; }
.footer-brand .brand__name { white-space: nowrap; font-size: 1.12rem; letter-spacing: .12em; margin-top: .3rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.4); }
.footer-brand .brand__tag { color: #DCE3EF; font-size: .62rem; margin-top: .55rem; }
.footer__title { font: 500 var(--fs-sm)/1.3 var(--font-sans); color: #fff; margin: 0 0 var(--s-4); letter-spacing: 0; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer__list li { display: flex; gap: .8rem; align-items: flex-start; }
.footer__list svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; color: #fff; }
.social { display: flex; gap: 1rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; transition: background .2s; }
.social a:hover { background: rgba(255,255,255,.1); }
.social svg { width: 26px; height: 26px; }
.newsletter { display: flex; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.newsletter input { flex: 1; min-width: 0; border: 0; padding: .8rem 1rem; font: inherit; color: var(--ink); }
.newsletter input:focus { outline: none; }
.newsletter button { width: 52px; border: 0; background: var(--footer); color: #fff; cursor: pointer; display: grid; place-items: center; border-left: 1px solid rgba(255,255,255,.55); }
.newsletter button:hover { background: var(--royal-600); }
.newsletter button svg { width: 18px; height: 18px; }
.footer__motto { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: #fff; margin-top: var(--s-4); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding-block: var(--s-4); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: #9FB0CC; }
.footer__bottom a { color: #C9D3E4; }
@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .footer__col { padding-inline: 0 !important; border-left: 0 !important; min-height: 0 !important; }
}
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Ilmumise animatsioon ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .subnav, .nav-toggle, .btn, .lightbox { display: none !important; }
  body { background: #fff; }
  .page-hero, .hero { background: #fff; color: #000; min-height: 0; padding: 1rem 0; }
  .page-hero::before, .hero::before, .page-hero__media, .hero__media { display: none; }
  .page-hero h1, .hero h1 { color: #000; }
}

/* Kompaktne sektsioon (kavandi avalehe rütm) */
.section--compact { padding-block: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.event__day--word { font-size: 1.3rem; }
.program__icon { display: block; } .program__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.contact-card--dark { background: var(--navy-900); border-color: var(--navy-900); }
.contact-card--dark h3 { color: #fff; }
.contact-card--dark .person__role { color: var(--gold-300); }
.contact-card--dark .contact-list li { color: #DCE3EF; }
.contact-card--dark .contact-list svg { color: var(--gold-300); }

/* ---------- QR cards ---------- */
.qr-card { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.qr-card__img { width: 160px; height: 160px; flex: none; border-radius: var(--radius); background: #fff; padding: 8px; border: 1px solid var(--line); }
.qr-card__body { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.qr-card__title { font-size: 1.25rem; margin: 0; }
.qr-card__desc { margin: 0; color: var(--ink-2); font-family: var(--font-sans); font-size: var(--fs-sm); }
.qr-card__url { margin: .25rem 0; font: 500 var(--fs-xs)/1.4 var(--font-sans); color: var(--royal-600); word-break: break-all; }
.qr-card .btn { align-self: flex-start; margin-top: .25rem; }
@media (max-width: 560px) { .qr-card { flex-direction: column; align-items: center; text-align: center; } .qr-card .btn { align-self: center; } }

/* ---------- Brändiraamat (brand.html) ---------- */
.bk-toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: var(--s-6) 0 0; }
.bk-section { padding-block: var(--s-8); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.bk-section:first-of-type { border-top: 0; }
.bk-num { font: 600 var(--fs-xs)/1 var(--font-sans); color: var(--royal-600); letter-spacing: .1em; }
.bk-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); font-family: var(--font-sans); }
.swatch__chip { height: 96px; }
.swatch__body { padding: .8rem 1rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); }
.swatch__body strong { display: block; font-size: var(--fs-sm); color: var(--ink); }
.swatch__body code { color: var(--royal-700); }
.logo-tile { display: grid; place-items: center; min-height: 200px; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: var(--s-6); }
.logo-tile--dark { background: var(--navy-900); border-color: var(--navy-900); }
.logo-tile--blue { background: var(--royal-600); border-color: var(--royal-600); }
.logo-tile .brand__mark { height: 64px; }
.logo-tile--dark .brand, .logo-tile--blue .brand { color: #fff; }
.logo-tile--dark .brand__tag, .logo-tile--blue .brand__tag { color: var(--gold-300); }
.caption { font: var(--fs-xs)/1.5 var(--font-sans); color: var(--muted); margin-top: .6rem; }
.type-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.type-row__meta { font: var(--fs-xs)/1.5 var(--font-sans); color: var(--muted); }
.type-row__meta strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.do, .dont { padding: var(--s-5); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); }
.do { border-top: 4px solid #3F8A5F; } .dont { border-top: 4px solid #B5473A; }
.do h4, .dont h4 { font: 700 var(--fs-xs)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.do h4 { color: #2F6E4A; } .dont h4 { color: #9A3A2F; }
.do ul, .dont ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.do li + li, .dont li + li { margin-top: .35rem; }
.code { background: var(--navy-950); color: #DCE3EF; border-radius: var(--radius); padding: var(--s-5); overflow-x: auto; font: .82rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; }
.code-wrap { position: relative; }
.code-wrap .copy { position: absolute; top: .75rem; right: .75rem; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: .35rem .7rem; font: 600 .75rem/1 var(--font-sans); cursor: pointer; }
.code-wrap .copy:hover { background: rgba(255,255,255,.18); }
.demo { padding: var(--s-6); border: 1px dashed #CFC8BA; border-radius: var(--radius-lg); background: var(--paper); }
.demo--white { background: var(--white); }
.demo--navy { background: var(--navy-900); border-color: var(--navy-900); color: #DCE3EF; }
.fact-table { width: 100%; border-collapse: collapse; font: var(--fs-sm)/1.5 var(--font-sans); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.fact-table th, .fact-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 32%; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .type-row, .do-dont { grid-template-columns: 1fr; } }
