/* ==========================================================
   T.S. Frajeri — styles
   Colours live in :root. Change --accent (and --accent-rgb, the
   same colour as plain numbers) to re-theme the whole site.
   ========================================================== */

:root {
  --ink: #120d0b;            /* page background */
  --ink-rgb: 18, 13, 11;
  --ink-2: #1b1412;
  --ink-3: #261c19;
  --paper: #f4ece0;          /* main text: warm cream */
  --muted: #b8aa9e;
  --accent: #c8283a;         /* Croatian red */
  --accent-rgb: 200, 40, 58;
  --accent-2: #ec6f78;       /* lighter red for small text, italics and hovers */
  --on-accent: #fff6ee;      /* text on red buttons and badges */
  --wood: #6b3f1f;
  --red: #c8283a;
  --line: rgba(var(--accent-rgb), 0.3);

  --display: "DM Serif Display", "Georgia", serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --italic: "Instrument Serif", "Georgia", serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 em, .hero__tagline .hr { font-family: var(--italic); font-style: italic; color: var(--accent-2); }
h3 { font-size: 1.45rem; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.lede { color: var(--muted); font-size: 1.12rem; max-width: 38ch; margin: 1.25rem 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { color: var(--on-accent); background: #dd3447; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.ig { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(var(--ink-rgb), 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.wordmark { display: inline-flex; align-items: baseline; gap: 0.35em; text-decoration: none; color: var(--paper); }
.wordmark__ts { font: 600 0.72rem/1 var(--body); letter-spacing: 0.2em; color: var(--accent); }
.wordmark__name { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--paper); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a { color: var(--paper); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent-2); }
.site-nav__cta {
  padding: 0.55em 1.1em; border-radius: 999px; border: 1px solid var(--accent);
  color: var(--accent-2) !important;
}
.site-nav__cta:hover { background: var(--accent); color: var(--on-accent) !important; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 18px; height: 1.5px; background: var(--paper); position: relative;
    transition: transform 0.25s ease, background 0.25s ease;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(var(--accent-rgb), 0.08); font-size: 1.05rem; }
  .site-nav__cta { margin-top: 14px; text-align: center; border-bottom: 1px solid var(--accent) !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 10vh, 120px) var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(196, 32, 46, 0.12), transparent 70%),
    var(--ink);
}

/* optional band photo, set via content.js -> heroImage */
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center 30%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero.has-photo .hero__photo { opacity: 1; }
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.94) 0%, rgba(var(--ink-rgb), 0.7) 45%, rgba(var(--ink-rgb), 0.35) 100%),
              linear-gradient(0deg, var(--ink) 0%, transparent 35%);
}

/* the tambura: hover / tap a string to pluck it */
.tambura {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.tambura svg {
  --tb-x: 0%;
  --tb-y: -50%;
  --tb-r: 34deg; /* leaning well onto its side, headstock to the upper right */
  position: absolute;
  height: min(70%, 42vw, 690px); /* sized so the body keeps the approved size */
  width: auto;
  aspect-ratio: 400 / 1120;
  right: clamp(40px, 21vw, 380px); /* close to the title, still clear of it */
  top: 50%;
  overflow: visible;
  transform: translate(var(--tb-x), var(--tb-y)) rotate(var(--tb-r));
  transform-origin: 50% 50%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  opacity: 0;
  animation: tambura-in 1.4s 0.15s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes tambura-in {
  from { opacity: 0; transform: translate(var(--tb-x), calc(var(--tb-y) + 6%)) rotate(calc(var(--tb-r) + 6deg)); }
  to   { opacity: 1; transform: translate(var(--tb-x), var(--tb-y)) rotate(var(--tb-r)); }
}
.tambura__ribbon path { fill: none; stroke-width: 5; stroke-linecap: round; }
.tambura__ribbon {
  transform-box: fill-box; transform-origin: 50% 0;
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }

.tambura__str, .tambura__string-ends path {
  fill: none; stroke: #e6e2da; stroke-linecap: round;
  transition: stroke 0.6s ease;
}
.tambura__course.is-ringing .tambura__str { stroke: #ffffff; transition: none; }
.tambura__hit { fill: none; stroke: transparent; stroke-width: 9; pointer-events: stroke; cursor: pointer; }

/* phones: the instrument sits behind the text as a soft backdrop instead of taking its own space */
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 72px var(--gutter) 104px; } /* size to the text, not the whole screen */
  .tambura { opacity: 0.38; }
  .tambura svg { --tb-r: 30deg; height: 90%; right: 2vw; top: 50%; }
}

/* a band photo replaces the drawing */
.hero.has-photo .tambura, .hero.has-photo .tambura-sound { display: none; }

/* sound on/off for the tambura strings */
.tambura-sound {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.6);
  color: var(--muted); font: 500 0.82rem/1 var(--body); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tambura-sound:hover { color: var(--accent-2); border-color: var(--accent); }
.tambura-sound[hidden] { display: none; }
.tambura-sound.is-hint { color: var(--on-accent); background: var(--accent); border-color: var(--accent); animation: hint-pulse 1.2s ease-in-out 2; }
@keyframes hint-pulse { 50% { transform: scale(1.06); } }
.tambura-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tambura-sound__speaker { fill: currentColor; stroke: none; }
.tambura-sound__mute { display: none; }
.tambura-sound[aria-pressed="false"] .tambura-sound__waves { display: none; }
.tambura-sound[aria-pressed="false"] .tambura-sound__mute { display: inline; }
@media (max-width: 760px) {
  .tambura-sound { bottom: 22px; padding: 7px 12px 7px 9px; }
  .hero__scroll { display: none; } /* phones swipe anyway; frees the corner for the sound button */
}

/* let the pointer reach the tambura strings through the empty parts of the text block */
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero__inner > * { pointer-events: auto; width: fit-content; max-width: 100%; } /* boxes hug their text so they don't cover the strings */

/* "Tamburaški sastav": what kind of band Frajeri is, set small above the name */
.hero__kind {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--muted);
}

.hero__title {
  font-size: clamp(5rem, 21vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: var(--paper);
  /* the gradient only paints inside the box, so the padding leaves room for the "j" descender */
  margin: 0 0 0.04em -0.04em;
  padding-bottom: 0.3em;
  background: linear-gradient(175deg, var(--paper) 45%, #e4cfbb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline { margin: 0; max-width: 34rem; }
.hero__tagline .hr { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.hero__tagline .en { display: block; color: var(--muted); font-size: 1.12rem; margin-top: 1rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* red / white checker ribbon used as a divider */
.checker {
  height: 10px;
  background:
    conic-gradient(var(--red) 25%, var(--paper) 0 50%, var(--red) 0 75%, var(--paper) 0) 0 0 / 10px 10px;
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ---------- sections ---------- */
.section {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter);
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

/* band illustration */
.band { padding-bottom: 0; }
.band__art {
  margin: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  background: var(--ink-3);
}
.band__art img { width: 100%; height: auto; }

/* media */
.media__audio { display: grid; gap: 14px; }
.media__audio:not(:empty) { margin-bottom: 48px; }

.track {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.track__num { grid-row: span 2; font-family: var(--display); font-size: 1.8rem; color: var(--accent); width: 2ch; }
.track__title { font-weight: 600; }
.track__note { color: var(--muted); font-size: 0.9rem; }
.track audio { grid-column: 1 / -1; width: 100%; margin-top: 8px; height: 40px; }
@media (min-width: 760px) {
  .track { grid-template-columns: auto minmax(180px, 1fr) minmax(280px, 1.4fr); }
  .track audio { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}

.media__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }

.video { margin: 0; }
.video--featured { margin-bottom: 28px; }
.video--featured figcaption { font-size: 1.05rem; }
.video--featured figcaption strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 2px; }

.video-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.video-list__item {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; gap: 10px; width: 100%; padding: 8px 8px 12px;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.video-list__item:hover { background: var(--ink-2); border-color: var(--line); }
.video-list__item:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.video-list__item[aria-current="true"] { background: var(--ink-3); border-color: var(--accent); }
.video-list__thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px;
  background: var(--ink-3) center / cover no-repeat;
}
.video-list__item[aria-current="true"] .video-list__thumb::after {
  content: "Now showing"; position: absolute; left: 8px; bottom: 8px;
  padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
}
.video-list__text { display: grid; gap: 2px; }
.video-list__title { font-weight: 600; line-height: 1.3; }
.video-list__note { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 560px) {
  .video-list { grid-template-columns: 1fr; gap: 6px; }
  .video-list__item { grid-template-columns: 132px 1fr; align-items: center; }
}
.video__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3); border: 1px solid var(--line);
}
.video__frame iframe, .video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video figcaption { margin-top: 12px; color: var(--muted); }
.video figcaption strong { color: var(--paper); font-weight: 600; display: block; }

/* youtube facade: thumbnail until clicked (faster page, no tracking until play) */
.yt-facade { all: unset; position: absolute; inset: 0; cursor: pointer; background-size: cover; background-position: center; }
.yt-facade::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; translate: -50% -50%;
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff6ee'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.yt-facade:hover::after, .yt-facade:focus-visible::after { transform: scale(1.08); }

/* gallery */
.gallery { border-top: 1px solid rgba(var(--accent-rgb), 0.08); }
/* every tile is the same 4:3 box; photos are cropped to fill it (full photo opens in the lightbox) */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item {
  all: unset; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--ink-3);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focus, 50% 35%); /* a little above centre keeps heads in frame */
  transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9);
}
.gallery__item:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery__item:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.gallery__item[hidden] { display: none; } /* `all: unset` above would otherwise undo [hidden] */
.gallery__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; gap: 8px;
  padding: 28px 12px 10px;
  font-size: 0.86rem; line-height: 1.3; color: var(--paper);
  background: linear-gradient(transparent, rgba(var(--ink-rgb), 0.85));
}
.gallery__year {
  flex: none; padding: 2px 8px; border-radius: 999px;
  font-weight: 600; font-size: 0.75rem; background: var(--accent); color: var(--on-accent);
}
.gallery__more { display: flex; margin: 24px auto 0; }
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__label { padding: 18px 8px 8px; font-size: 0; } /* year tag only; caption shows in the lightbox */
  .gallery__year { font-size: 0.72rem; }
}

/* empty states */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(var(--accent-rgb), 0.07), transparent 70%);
}
.empty p { color: var(--muted); margin: 0 0 1.25rem; }
.empty .empty__title { font-family: var(--display); font-size: 1.6rem; color: var(--paper); margin-bottom: 0.4rem; }

/* booking */
.book__intro { margin-bottom: clamp(40px, 6vw, 72px); }
.book__grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 940px) { .book__grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.step__num {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--accent);
  font-family: var(--display); font-size: 1.5rem; color: var(--accent-2);
}
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); }

.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.contact-card {
  position: sticky; top: 100px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.contact-card__label { margin: 0 0 22px; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; color: var(--paper); }
.contact-card__label em { font-family: var(--italic); color: var(--accent-2); }
.contact-card__actions { display: grid; gap: 10px; }
.contact-card__actions .btn { width: 100%; }
.contact-card__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 0.85rem; }
.contact-card__divider::before, .contact-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-card__ig { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--paper); text-decoration: none; font-weight: 500; padding: 8px; }
.contact-card__ig:hover { color: var(--accent-2); }
.contact-card__tip { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* footer */
.site-footer {
  display: grid; gap: 20px;
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
@media (min-width: 760px) { .site-footer { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer__brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.site-footer__tag { font-family: var(--italic); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__links a { color: var(--paper); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent-2); }
.site-footer__copy { margin: 0; color: var(--muted); font-size: 0.85rem; grid-column: 1 / -1; }

/* lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(var(--ink-rgb), 0.95); color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(var(--ink-rgb), 0.9); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 60px 8px; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: var(--muted); text-align: center; }
.lightbox__close, .lightbox__nav {
  background: none; border: 0; color: var(--paper); cursor: pointer; font-size: 2.6rem; line-height: 1;
  width: 56px; height: 56px;
}
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--accent-2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .tambura__ribbon { animation: none; }
  .tambura svg { animation: none; opacity: 1; }
}

/* no-JS safety: show everything */
.no-js .reveal { opacity: 1; transform: none; }
