:root {
  --bg: #120e0b;
  --ink: #efe6d6;
  --muted: #a39483;
  --red: #c4402f;
  --ochre: #d4a14f;
  --line: rgba(239, 230, 214, .14);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

/* language switch: show only the active language */
html[data-lang="en"] body [lang="hr"],
html[data-lang="hr"] body [lang="en"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body { margin: 0; background: transparent; color: var(--ink); }
body { font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { /* linen grain */
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ── top bar ─────────────────────────────────────────── */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) var(--gutter) 22px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img { height: 72px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.name { font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 480px) { .brand img { height: 48px; } .name { font-size: 16px; } }
.lang {
  font: 600 12px/1 var(--body); letter-spacing: .08em;
  color: var(--muted); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 2px; padding: 6px 8px;
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--ink); border-color: var(--muted); }

/* ── background video (Blender render) ─────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.bgvid { width: 100%; height: 100%; object-fit: cover; display: block; }
.veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(18, 14, 11, .6), rgba(18, 14, 11, .74)),
    linear-gradient(180deg, rgba(18, 14, 11, .55), transparent 25%);
}

/* ── poster ─────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(120px, 16vh, 170px) var(--gutter) 0;
}
.logo {
  width: clamp(124px, 13vw, 184px); height: auto; margin-bottom: 22px;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55));
}
.presents { margin: 0 0 10px; color: var(--muted); font-size: 15px; font-weight: 500; }
.series { display: block; margin-top: 0; color: var(--ochre); font-style: italic; }
.hero h1 {
  margin: 0; white-space: nowrap;
  font: 900 clamp(30px, 5.6vw, 92px)/1 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
}
.hero h1 .b { color: var(--red); }
@media (max-width: 560px) {
  .hero h1 { white-space: normal; font-size: clamp(38px, 11vw, 52px); }
  .hero h1 .a, .hero h1 .b { display: block; }
}
.when { margin: 12px 0 0; }
.when time {
  font: 700 clamp(22px, 2.6vw, 32px)/1 var(--display);
  text-transform: uppercase; letter-spacing: .03em; color: var(--ochre);
}

/* live countdown */
.countdown { margin-top: clamp(26px, 4vh, 40px); }
.units { display: flex; align-items: flex-start; justify-content: center; gap: clamp(8px, 1.6vw, 20px); }
.units[hidden] { display: none; }
.u { display: flex; flex-direction: column; align-items: center; width: clamp(64px, 9.5vw, 132px); }
.u b {
  display: block; width: 100%; text-align: center;
  font: 800 clamp(46px, 7vw, 96px)/1 var(--display);
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.u > span {
  margin-top: 8px; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.units i {
  font: 700 clamp(36px, 5vw, 70px)/1 var(--display); font-style: normal;
  color: var(--red); opacity: .8; padding-top: .06em;
}
.msg { margin: 0; font: 800 clamp(36px, 5vw, 64px)/1 var(--display); text-transform: uppercase; color: var(--red); }

/* ── countdown + the group ─────────────────────────── */
.finale { text-align: center; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 120px); }
.countdown { margin-top: 0; }
.group { position: relative; max-width: 1240px; margin: clamp(28px, 4vw, 48px) auto 0; }
.group img { position: relative; z-index: 1; width: 100%; height: auto; filter: saturate(.95) drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.group::after { /* soft ground shadow under their feet */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -2%; height: 14%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .6), transparent 70%);
}

/* ── program ────────────────────────────────────────── */
.program {
  padding: clamp(40px, 6vw, 80px) max(var(--gutter), calc((100% - 1240px) / 2)) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px);
  scroll-margin-top: 20px;
}
.part { border-top: 2px solid var(--red); padding-top: 22px; }
.clock {
  margin: 0;
  font: 900 clamp(64px, 7vw, 110px)/.85 var(--display); color: var(--red);
}
.clock small { font-size: .26em; font-weight: 700; color: var(--ochre); margin-left: .15em; letter-spacing: .04em; }
.part h2 {
  margin: 18px 0 14px;
  font: 800 clamp(40px, 4.6vw, 60px)/.95 var(--display); text-transform: uppercase;
}
.venue { margin: 0; font-size: 20px; font-weight: 600; }
.addr { margin: 2px 0 26px; }
.addr a { color: var(--muted); text-decoration-color: var(--red); text-underline-offset: 4px; }
.addr a:hover { color: var(--ink); }
.part dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.part dt, .part dd { padding: 11px 0; border-top: 1px solid var(--line); }
.part dt { color: var(--muted); }
.part dd { margin: 0; text-align: right; font: 700 22px/1.2 var(--display); letter-spacing: .02em; }
.fine { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-style: italic; }
.music { margin: 26px 0 0; font-size: 16px; }
.music span { color: var(--muted); margin-right: 6px; }
@media (max-width: 760px) {
  .program { grid-template-columns: 1fr; }
}

/* ── guests ─────────────────────────────────────────── */
.guests { padding: clamp(72px, 10vw, 140px) max(var(--gutter), calc((100% - 1240px) / 2)) clamp(72px, 10vw, 130px); }
.guests h2 { margin: 0 0 18px; color: var(--ochre); font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.guests ul { list-style: none; margin: 0; padding: 0; }
.guests li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.guests li:last-child { border-bottom: 1px solid var(--line); }
.g { font: 800 clamp(30px, 4.6vw, 62px)/1 var(--display); text-transform: uppercase; transition: color .25s; }
.guests li:hover .g { color: var(--red); }
.c { color: var(--muted); font-size: 16px; }

/* ── footer ─────────────────────────────────────────── */
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bgvid { display: none; }
  .backdrop { background: var(--bg) url("../assets/bg-poster.jpg") center / cover no-repeat; }
  canvas.stitch { transition: none !important; }
}
@media (max-width: 700px) {
  .finale { overflow: hidden; }
  .group { width: 150%; max-width: none; margin-left: -25%; }
}
