/* ════════════════════════════════════════════════════════════
   Vislatvijas Limbaži
   Design tokens first — every distance, radius and size on the
   page derives from this block. Palette from the dove logo.
   ════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --teal-950: #0f2522;
  --teal-900: #14302b;
  --teal-700: #1f4a42;
  --teal-500: #2e6457;
  --teal-300: #6fa295;
  --seafoam: #e4f1ec;
  --seafoam-2: #d3e8e0;
  --mist: #f4f9f7;
  --white: #ffffff;
  --ink: #1b3531;
  --ink-soft: #54716b;
  --line: rgba(20, 48, 43, .14);
  --line-strong: rgba(20, 48, 43, .22);

  /* geometry — ONE shell, shared by header and every section */
  --gutter: clamp(16px, 3.2vw, 48px);
  --shell-max: 1560px;
  --shell: min(var(--shell-max), calc(100vw - 2 * var(--gutter)));
  --hdr-w: min(calc(var(--shell-max) + 24px), calc(100vw - 2 * clamp(4px, 1.6vw, 36px)));

  /* radius scale */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* spacing rhythm */
  --sp-1: 8px;
  --sp-2: 14px;
  --sp-3: 22px;
  --sp-4: 34px;
  --section: clamp(64px, 9vh, 112px);

  /* type scale */
  --t-xs: 13px;
  --t-sm: 14.5px;
  --t-base: 16px;
  --t-md: 17.5px;
  --t-lg: clamp(18px, 1.4vw, 21px);
  --t-xl: clamp(21px, 1.8vw, 26px);
  --t-2xl: clamp(26px, 2.4vw, 34px);

  /* elevation */
  --shadow-1: 0 1px 2px rgba(15, 37, 34, .05), 0 4px 14px rgba(15, 37, 34, .06);
  --shadow-2: 0 6px 24px rgba(15, 37, 34, .1);
  --shadow-3: 0 24px 64px rgba(15, 37, 34, .2);

  /* fonts */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* header mechanism (--p / --wp written by JS) */
  --h0: 104px;
  --h1: 60px;
  --disc: calc(var(--h0) - 8px);
  --disc-end: .565;          /* ≈ (h1−8)/(h0−8) */
  --inset-y: 12px;
}

* { box-sizing: border-box; }

/* anchor gliding is JS-animated (home.js); scroll-padding covers direct #hash loads */
html { scroll-padding-top: calc(var(--h1) + var(--inset-y) * 2 + 12px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; }
img, video { max-width: 100%; }
a { color: var(--teal-700); }

.shell { width: var(--shell); margin-inline: auto; }

/* icons — one stroke family */
.ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { width: 19px; height: 19px; fill: currentColor; }

.ico-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  color: var(--teal-700);
  background: var(--white);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ico-btn .ico { width: 21px; height: 21px; }
.ico-btn:hover { background: var(--teal-900); border-color: var(--teal-900); color: #fff; transform: translateY(-2px); }

/* ════════════════ Header — the mechanism ════════════════
   --p  damped scroll progress 0→1 · --wp ratcheted word progress.
   The pill is exactly as wide as the content shell below it. */

.hdr {
  position: fixed;
  top: var(--inset-y);
  left: 0;
  right: 0;
  width: var(--hdr-w);
  margin-inline: auto;
  z-index: 100;
  height: calc(var(--h0) - (var(--h0) - var(--h1)) * var(--p));
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid rgba(20, 48, 43, calc(.08 + .07 * var(--p)));
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 2px rgba(15, 37, 34, .05),
    0 calc(4px + 8px * var(--p)) calc(14px + 18px * var(--p)) rgba(15, 37, 34, calc(.05 + .07 * var(--p)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 1.4vw, 22px);
}

.hdr-nav { display: flex; gap: 2px; flex: 1; align-items: center; }
.hdr-nav-l { justify-content: flex-start; }
.hdr-nav-r { justify-content: flex-end; }

.hdr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--teal-900);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.hdr-link:hover { background: var(--seafoam); }
.hdr-link.active { background: var(--teal-900); color: #fff; }
.hdr-ico { padding: 9px 11px; }

/* Brand assembly: [Vislatvijas] (disc) [Limbaži] */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: calc(24px - 4px * var(--p));
  font-weight: 700;
  letter-spacing: .015em;
  color: var(--teal-900);
  pointer-events: none;
}

.disc {
  position: relative;
  z-index: 2;
  flex: none;
  width: var(--disc);
  height: var(--disc);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 37, 34, .18), 0 0 0 1px rgba(20, 48, 43, .08);
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  transform: scale(calc(1 - (1 - var(--disc-end)) * var(--p)));
}
.disc img { width: 100%; height: 100%; object-fit: cover; }

/* Word clips: inner edge at the disc centre — words slide out from
   underneath the disc, ratcheted in detents (--wp stepped in JS). */
.word-clip { display: block; overflow: hidden; z-index: 1; }
.clip-l {
  margin-right: calc(var(--disc) / -2);
  padding-right: calc(var(--disc) / 2 + 16px);
  transform: translateX(calc(var(--disc) / 2 * (1 - var(--disc-end)) * var(--p)));
}
.clip-r {
  margin-left: calc(var(--disc) / -2);
  padding-left: calc(var(--disc) / 2 + 16px);
  transform: translateX(calc(var(--disc) / -2 * (1 - var(--disc-end)) * var(--p)));
}

.word { display: block; white-space: nowrap; }
.word-l { transform: translateX(calc((100% + var(--disc) / 2 + 18px) * (1 - var(--wp)))); }
.word-r { transform: translateX(calc((100% + var(--disc) / 2 + 18px) * (var(--wp) - 1))); }

/* Burger (mobile) */
.burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span { height: 2.5px; background: var(--teal-900); border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mmenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.mmenu.open { display: flex; }
.mmenu .hdr-link { padding: 13px 16px; font-size: var(--t-base); }
.mmenu-icons { display: flex; gap: var(--sp-2); padding: var(--sp-2) 16px 4px; }

/* ════════════════ Hero ════════════════ */

main { padding-top: calc(var(--h0) + var(--inset-y) * 2); }

.hero { padding-top: clamp(20px, 3.5vh, 40px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(340px, 4fr);
  gap: clamp(var(--sp-4), 4vw, 72px);
  align-items: center;
}

.film {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--teal-950);
  box-shadow: var(--shadow-3);
  aspect-ratio: 16 / 9;
}
.film video { width: 100%; height: 100%; object-fit: cover; }

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--teal-900);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease, background .2s;
}
.play:hover { transform: scale(1.06); background: #fff; }
.play .ico-fill { width: 30px; height: 30px; margin-left: 3px; }

.fsbtn {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  transition: background .2s;
}
.fsbtn:hover { background: rgba(0, 0, 0, .7); }
.fsbtn[hidden] { display: none; }

/* Manifesto */
.manifesto p {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.75;
  color: var(--ink);
}
.manifesto p::first-letter { font-size: 1.5em; line-height: 1; color: var(--teal-500); }
.manifesto p::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: var(--sp-3);
  border-radius: 2px;
  background: var(--teal-300);
}

/* ════════════════ Section titles ════════════════ */

.sec-title {
  margin: 0 0 clamp(var(--sp-3), 4vh, var(--sp-4));
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--teal-900);
}

/* ════════════════ Pasākumi ════════════════ */

.events { padding-block: var(--section); }

.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(340px, 4fr);
  gap: clamp(var(--sp-4), 4vw, 72px);
  align-items: start;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.event { border-bottom: 1px solid var(--line-strong); }

.event summary,
.ev-row {
  display: flex;
  align-items: baseline;
  gap: clamp(var(--sp-2), 2vw, var(--sp-4));
  padding: var(--sp-3) 4px;
  cursor: pointer;
  list-style: none;
}
.ev-row.ev-more { cursor: default; color: var(--ink-soft); }
.event summary::-webkit-details-marker { display: none; }
.event summary:hover .ev-name { color: var(--teal-500); }

.ev-date {
  flex: none;
  min-width: 10ch;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-500);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.ev-name {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--teal-900);
  transition: color .2s;
}
.ev-plus { margin-left: auto; position: relative; flex: none; width: 16px; height: 16px; align-self: center; }
.ev-plus::before, .ev-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--teal-700);
  transition: transform .3s;
}
.ev-plus::before { width: 16px; height: 2px; }
.ev-plus::after { width: 2px; height: 16px; }
.event details[open] .ev-plus::after { transform: rotate(90deg); }

.ev-body { padding: 4px 4px var(--sp-3); max-width: 480px; }
.ev-body img { border-radius: var(--r-md); margin-bottom: var(--sp-2); box-shadow: var(--shadow-2); }

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--teal-700);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { background: var(--teal-900); transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* Support card */
.support {
  padding: clamp(var(--sp-3), 2.4vw, var(--sp-4));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.support p { margin: 0 0 var(--sp-3); font-size: var(--t-sm); line-height: 1.75; }

.bank { display: flex; flex-direction: column; gap: var(--sp-1); }
.copy {
  position: relative;
  padding: 12px 42px 12px 14px;
  border: 1.5px dashed rgba(46, 100, 87, .45);
  border-radius: var(--r-sm);
  background: var(--mist);
  font-family: inherit;
  font-size: var(--t-sm);
  font-weight: 650;
  color: var(--teal-900);
  text-align: left;
  cursor: copy;
  transition: border-color .2s, background .2s;
}
.copy::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: .5;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>') center / contain no-repeat;
}
.copy:hover { border-color: var(--teal-500); background: var(--seafoam); }
.copy.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .05em; }

/* ════════════════ Jaunumi mosaic ════════════════ */

.news {
  padding-block: var(--section);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 15vw, 250px);
  grid-auto-flow: dense;
  gap: var(--sp-2);
}
.tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--seafoam);
  box-shadow: var(--shadow-1);
  display: block;
}
.t-tall { grid-row: span 2; }
.t-wide { grid-column: span 2; }

.tile img, .tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.tile:hover img { transform: scale(1.04); }

/* hover veil + expand glyph, consistent on every linked tile */
a.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 37, 34, .35), transparent 45%);
  opacity: 0;
  transition: opacity .25s;
  z-index: 1;
}
a.tile::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231f4a42" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6"/><path d="M9 21H3v-6"/><path d="M21 3l-7 7"/><path d="M3 21l7-7"/></svg>') center / 16px no-repeat,
    rgba(255, 255, 255, .92);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  transform: translateY(-4px);
  z-index: 2;
}
a.tile:hover::before { opacity: 1; }
a.tile:hover::after { opacity: 1; transform: none; }

/* video tiles: poster + play badge; the whole tile opens the popup */
.t-video .play {
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 2;
}
.t-video .play .ico-fill { width: 24px; height: 24px; }
.t-video:hover .play { transform: scale(1.08); background: #fff; }
.t-video::after { display: none; } /* play badge replaces the expand glyph */

/* ════════════════ Galerija page — album covers ════════════════ */

.albums-page { padding-block: clamp(20px, 3.5vh, 40px) var(--section); }

.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
  gap: var(--sp-2);
}

.album {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--seafoam);
  box-shadow: var(--shadow-1);
  text-decoration: none;
}
.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}
.album:hover img { transform: scale(1.04); }

.album-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 37, 34, .72), rgba(15, 37, 34, .08) 55%, transparent);
  transition: background .3s;
}
.album-meta {
  position: absolute;
  left: clamp(var(--sp-3), 3vw, var(--sp-4));
  right: clamp(var(--sp-3), 3vw, var(--sp-4));
  bottom: clamp(var(--sp-3), 3vw, var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.album-title {
  font-family: var(--serif);
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.album-count {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--seafoam-2);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  opacity: .9;
}

/* ════════════════ Sazinies — compact band inside Par Biedrību ════ */

.contact-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(var(--sp-3), 3vw, var(--sp-4)) clamp(var(--sp-3), 3vw, 48px);
  background: var(--teal-900);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  color: var(--seafoam);
  text-align: center;
}

/* same scale as the card titles — one heading system */
.band-title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}
.band-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2.5px;
  margin: 9px auto 0;
  background: var(--teal-300);
  border-radius: 2px;
}

.c-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.c-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1.5px solid rgba(228, 241, 236, .3);
  border-radius: var(--r-pill);
  color: var(--white);
  text-decoration: none;
  font-size: var(--t-sm);
  transition: background .2s, border-color .2s, transform .2s;
}
.c-pill:hover { background: rgba(255, 255, 255, .08); border-color: var(--teal-300); transform: translateY(-2px); }
.c-pill .ico { width: 18px; height: 18px; color: var(--teal-300); flex: none; }
.c-key { color: var(--teal-300); font-weight: 600; }
.c-val { font-weight: 700; }

.c-social { display: flex; justify-content: center; gap: var(--sp-2); }
.ico-btn-dark { background: transparent; border-color: rgba(228, 241, 236, .3); color: var(--seafoam); }
.ico-btn-dark:hover { background: var(--white); border-color: var(--white); color: var(--teal-900); }

/* ════════════════ Par Biedrību — one card system ════════════════ */

.about { padding-block: var(--section); background: linear-gradient(var(--mist), var(--seafoam)); }

.about-head { margin-bottom: clamp(var(--sp-3), 4vh, var(--sp-4)); }
.about-head .sec-title { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-2);
  margin-bottom: clamp(var(--sp-4), 6vh, 56px);
}
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.card {
  padding: clamp(var(--sp-3), 2.4vw, var(--sp-4));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.card-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--teal-900);
}
.card-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2.5px;
  margin-top: 9px;
  background: var(--teal-300);
  border-radius: 2px;
}
.card-text { margin: 0; font-size: var(--t-sm); line-height: 1.75; }

/* one list style across the page */
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li {
  position: relative;
  padding: var(--sp-1) 0 var(--sp-1) 26px;
  font-size: var(--t-sm);
  line-height: 1.75;
}
.dlist li + li { margin-top: var(--sp-1); }
.dlist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--teal-500);
}
.dlist.two-col { columns: 2; column-gap: clamp(var(--sp-4), 4vw, 72px); }
.dlist.two-col li { break-inside: avoid; }
.dlist.cols-3 { columns: 3; column-gap: clamp(var(--sp-4), 4vw, 72px); }
.dlist.cols-3 li { break-inside: avoid; }

/* numbered rows inside the "Kopienas nozīme" card */
.noz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.noz-list li { display: flex; gap: var(--sp-2); align-items: baseline; }
.noz-list p { margin: 0; font-size: var(--t-sm); line-height: 1.7; }
.noz-list strong { color: var(--teal-900); }

/* shared small-caps mono label (same as event dates) */
.tag {
  flex: none;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-500);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}


/* ════════════════ Footer ════════════════ */

.footer {
  background: var(--teal-950);
  color: var(--seafoam-2);
  text-align: center;
  padding: var(--sp-3) var(--gutter);
  font-size: var(--t-xs);
}
.footer p { margin: 0; }
.footer a { color: var(--seafoam-2); }

/* ════════════════ Lightbox ════════════════ */

.lb {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  display: none;
  place-items: center;
}
.lb[open] { display: grid; }
.lb::backdrop { background: rgba(10, 22, 20, .92); }
.lb-stage { margin: 0; }
.lb img,
.lb video {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .5);
  opacity: 1;
  transition: opacity .18s ease;
}
.lb video { background: #000; min-width: min(70vw, 900px); }
.lb img.swap { opacity: 0; }
.lb-x, .lb-nav {
  position: fixed;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-x { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; padding-bottom: 5px; }
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
.lb-count {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

/* ════════════════ Toast ════════════════ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 90px);
  padding: 12px 26px;
  background: var(--teal-900);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--t-sm);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 200;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ════════════════ Reveal ════════════════ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ════════════════ Responsive ════════════════ */

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .dlist.two-col, .dlist.cols-3 { columns: 1; }
  .span-5, .span-6, .span-7 { grid-column: span 12; }
}

/* nav collapses to burger before the links can crowd the brand */
@media (max-width: 1180px) {
  .hdr { padding: 0 8px 0 14px; }
  .hdr-nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 860px) {
  :root { --h0: 80px; --h1: 56px; --disc: calc(var(--h0) - 8px); --disc-end: .667; --inset-y: 10px; }

  .brand { font-size: calc(19px - 3px * var(--p)); }
  .clip-l { padding-right: calc(var(--disc) / 2 + 10px); }
  .clip-r { padding-left: calc(var(--disc) / 2 + 10px); }
  .word-l { transform: translateX(calc((100% + var(--disc) / 2 + 12px) * (1 - var(--wp)))); }
  .word-r { transform: translateX(calc((100% + var(--disc) / 2 + 12px) * (var(--wp) - 1))); }

  .film { border-radius: var(--r-md); }
  .play { width: 62px; height: 62px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: var(--sp-1); }
  .noz-list { grid-template-columns: 1fr; }
  .c-pills { flex-direction: column; align-items: stretch; }
  .c-pill { justify-content: center; }
  .lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .lb-nav.prev { left: 10px; }
  .lb-nav.next { right: 10px; }
}

@media (max-width: 420px) {
  .ev-date { min-width: 0; }
  .event summary, .ev-row { flex-wrap: wrap; gap: 4px var(--sp-2); }
  .mosaic { grid-auto-rows: 140px; }
}
