/* =========================================================
   Kvizileaks — website styles
   Signature elements kept from the old site: yellow header,
   zig-zag section edges, tilted marker "INTERAKTIVNI KVIZ",
   video reel hero, yellow accordion, alternating light/dark.
   ========================================================= */

:root {
  --yellow: #F6C90E;
  --yellow-deep: #E0B400;
  --ink: #121212;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --paper: #F5F1E8;
  --paper-2: #EBE5D7;
  --white: #FFFDF8;
  --muted-dark: #a6a199;
  --muted-light: #5d5850;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-marker: "Caveat Brush", "Bricolage Grotesque", cursive;

  /* Wavy edge: 56px x 10px teeth (~140° apex) with rounded tips/valleys. Tiles are 12px tall
     (10px wave + 2px solid) so the solid fill can overlap without clipping the wave. */
  --zz: 10px;
  --zz-tile: 56px 12px;
  --zz-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12' preserveAspectRatio='none'%3E%3Cpath transform='matrix%281 0 0 -1 0 12%29' d='M0 0L0 3.43Q4 3.43 8 4.86L20 9.14Q28 12 36 9.14L48 4.86Q52 3.43 56 3.43L56 0Z'/%3E%3C/svg%3E");
  --zz-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0L0 3.43Q4 3.43 8 4.86L20 9.14Q28 12 36 9.14L48 4.86Q52 3.43 56 3.43L56 0Z'/%3E%3C/svg%3E");
  --zz-shadow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-1' y='-1' width='3' height='3'%3E%3CfeGaussianBlur stdDeviation='2.6'/%3E%3C/filter%3E%3Cpath filter='url%28%23b%29' transform='translate%280 3%29' d='M-56 -30L-56 3.43Q-52 3.43 -48 4.86L-36 9.14Q-28 12 -20 9.14L-8 4.86Q-4 3.43 0 3.43Q4 3.43 8 4.86L20 9.14Q28 12 36 9.14L48 4.86Q52 3.43 56 3.43Q60 3.43 64 4.86L76 9.14Q84 12 92 9.14L104 4.86Q108 3.43 112 3.43L112 -30Z'/%3E%3C/svg%3E");
  --reel-overlap: clamp(70px, 9vw, 160px); /* how much hero videos overlap + crossfade; 0 = hard cut */
  --header-h: 84px;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(12px, 4.5vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 32px -12px rgb(0 0 0 / .28);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 4px);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--yellow); color: var(--ink); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.section--yellow :focus-visible, .site-header :focus-visible { outline-color: var(--ink); }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 2 * var(--gutter)); }

/* ---------- Zig-zag edges ---------- */
/* Section with teeth on its top edge; it slides up under the previous section by --zz. */
.zz-top {
  position: relative;
  margin-top: calc(var(--zz) * -1);
  -webkit-mask: var(--zz-up) 50% 0 / var(--zz-tile) repeat-x, linear-gradient(#000 0 0) 0 calc(var(--zz) + 1px) / 100% 100% no-repeat;
          mask: var(--zz-up) 50% 0 / var(--zz-tile) repeat-x, linear-gradient(#000 0 0) 0 calc(var(--zz) + 1px) / 100% 100% no-repeat;
}
/* Element with teeth on its bottom edge. */
.zz-bottom {
  -webkit-mask: var(--zz-down) 50% 100% / var(--zz-tile) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--zz) - 1px) no-repeat;
          mask: var(--zz-down) 50% 100% / var(--zz-tile) repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--zz) - 1px) no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.3em;
  border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { font-size: clamp(.95rem, .85rem + .5vw, 1.0625rem); padding: 1em 1.6em; }
.btn--sm { font-size: .9rem; padding: .65em 1.05em; }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); box-shadow: 0 6px 0 -1px var(--yellow-deep), 0 12px 28px -10px rgb(246 201 14 / .55); }
.btn--yellow:hover { box-shadow: 0 8px 0 -1px var(--yellow-deep), 0 18px 36px -12px rgb(246 201 14 / .65); }
.btn--ink { --bg: var(--ink); --fg: var(--white); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .55); }
.btn--ink:hover { --fg: var(--yellow); }
.btn--ghost { --bg: rgb(255 255 255 / .08); --fg: var(--white); --bd: rgb(255 255 255 / .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bd: var(--yellow); --fg: var(--yellow); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: rgb(18 18 18 / .2); }
.btn--outline:hover { --bd: var(--ink); }

/* ---------- Animated "nagrade" ---------- */
.shimmer {
  background: linear-gradient(100deg, currentColor 0 35%, #ff3b30 45%, var(--yellow) 55%, currentColor 65% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.2s linear infinite;
}
.shimmer--loud {
  background-image: linear-gradient(100deg, var(--yellow) 0%, #ff7a00 25%, #ff2e63 50%, #ff7a00 75%, var(--yellow) 100%);
  background-size: 200% 100%;
  animation-duration: 3s;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h); /* fixed layout height: the open mobile menu grows over the page, not into it */
}
/* Glassy yellow bar with a wavy bottom edge. */
.site-header__inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  /* bar spans the full width, its content lines up with .container (1180px) */
  padding: 0 max(var(--gutter), env(safe-area-inset-left), (100% - 1180px) / 2) var(--zz);
  background-color: var(--yellow); /* same flat yellow as the labels */
  color: var(--ink);
  transition: background-color .35s, color .35s;
}
/* Soft shadow that follows the waves: a blurred copy of the wave, minus the bar itself
   (so it never darkens the translucent bar). Lives below the bar, 12px past its bottom. */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -12px;
  background: rgb(0 0 0 / .32);
  pointer-events: none;
  -webkit-mask: var(--zz-shadow) 50% 100% / 56px 24px repeat-x, var(--zz-down) 50% calc(100% - 12px) / var(--zz-tile) repeat-x;
  -webkit-mask-composite: source-out;
          mask: var(--zz-shadow) 50% 100% / 56px 24px repeat-x, var(--zz-down) 50% calc(100% - 12px) / var(--zz-tile) repeat-x;
          mask-composite: subtract;
  transition: opacity .35s;
}

/* At the very top the bar floats over the hero video: see-through glass, light text.
   main.js removes .is-top as soon as the page scrolls (or the mobile menu opens). */
.site-header.is-top .site-header__inner {
  background-image: none; /* the top-highlight gradient is only for the yellow bar */
  background-color: rgb(255 255 255 / .04);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: none;
  color: var(--white);
}
.site-header.is-top::before { opacity: 0; }
.site-header.is-top :focus-visible { outline-color: var(--yellow); }
.site-header.is-top .site-nav ul a:hover { background: rgb(255 255 255 / .1); }
.site-header.is-top .site-nav .shimmer { background-image: linear-gradient(100deg, var(--white) 0 35%, #ff5a1f 45%, var(--yellow) 55%, var(--white) 65% 100%); }
.site-header.is-top .site-nav__cta { --bg: var(--yellow); --fg: var(--ink); }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, .85rem + 1.2vw, 1.4rem); letter-spacing: -0.02em;
}
.brand__logo { width: 40px; height: 40px; transition: transform .5s var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.06); }
.brand--light { color: var(--white); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav__panel { display: contents; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative; display: block;
  padding: 8px 12px;
  font-weight: 600; font-size: 1rem; text-decoration: none; color: inherit;
  border-radius: 999px;
  transition: background-color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px;
  background: currentColor; border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.site-nav ul a:hover { background: rgb(0 0 0 / .07); }
.site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav .shimmer { background-image: linear-gradient(100deg, var(--ink) 0 35%, #d81b1b 45%, #ff5a1f 55%, var(--ink) 65% 100%); }

.nav-toggle {
  display: none; margin-left: auto; margin-right: -8px;
  width: 44px; height: 44px; border: 0; padding: 0;
  background: none; cursor: pointer; position: relative; color: inherit;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 50%; width: 26px; height: 3px; margin-left: -13px;
  background: currentColor; border-radius: 3px;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1.5px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin: 0; }
.nav-toggle__bars::before { transform: translateY(-8px); }
.nav-toggle__bars::after { transform: translateY(8px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .site-nav__cta { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 75px; }
  .nav-toggle { display: block; }
  /* The menu drops down inside the header itself, so the bar just grows taller
     and keeps its glass + wavy edge. */
  .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); row-gap: 0; }
  .brand { min-height: calc(var(--header-h) - var(--zz)); }
  .site-nav {
    flex-basis: 100%; margin: 0;
    display: grid; grid-template-rows: 0fr; align-items: stretch;
    transition: grid-template-rows .45s var(--ease-out);
  }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__panel {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    min-height: 0; overflow: hidden;
    padding-inline: 6px; margin-inline: -6px;
    visibility: hidden; transition: visibility 0s .45s;
  }
  .site-nav.is-open .site-nav__panel { visibility: visible; transition: none; }
  .site-nav ul { flex-direction: column; gap: 0; margin-top: 4px; }
  .site-nav ul a {
    font-family: var(--font-display); font-size: clamp(1.3rem, 6vw, 1.9rem); font-weight: 800;
    padding: 5px 0; letter-spacing: -0.03em;
    transform: translateY(-8px); opacity: 0;
    transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
  }
  .site-nav ul a::after { left: 0; right: auto; width: 1.4em; bottom: 3px; height: 4px; }
  .site-nav ul a:hover { background: none; }
  .site-nav.is-open ul a { transform: none; opacity: 1; }
  .site-nav.is-open li:nth-child(1) a { transition-delay: .08s; }
  .site-nav.is-open li:nth-child(2) a { transition-delay: .12s; }
  .site-nav.is-open li:nth-child(3) a { transition-delay: .16s; }
  .site-nav.is-open li:nth-child(4) a { transition-delay: .2s; }
  .site-nav__cta {
    display: inline-flex; font-size: 1rem; padding: .85em 1.4em; margin-bottom: 26px;
    transform: translateY(-8px); opacity: 0;
    transition: transform .4s var(--ease-out), opacity .4s var(--ease-out), box-shadow .25s var(--ease-out), color .2s;
  }
  .site-nav.is-open .site-nav__cta { transform: none; opacity: 1; transition-delay: .24s; }
  .site-nav.is-open .site-nav__cta:hover { transform: translateY(-2px) rotate(-1deg); transition-delay: 0s; }
  /* dim the page behind the open menu; tapping it closes the menu (main.js) */
  .site-header::after {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: rgb(11 11 11 / .5);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .site-header.menu-open::after { opacity: 1; visibility: visible; transition: opacity .35s; }
  .site-header.menu-open::before { opacity: 0; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand__logo { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  body { font-size: 1rem; }
}

/* =========================================================
   HERO
   ========================================================= */
/* The hero slides up under the (see-through at top) header; its top padding adds the
   header height back so the content stays clear of the bar. */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  min-height: min(100svh, calc(860px + var(--header-h)));
  display: grid; place-items: center;
  --hero-gap: clamp(64px, 3.5vw + 46px, 115px); /* one gap used between all hero elements */
  padding: calc(var(--header-h) + var(--hero-gap)) 0 calc(var(--hero-gap) + var(--zz));
  background: #0b0b0b;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.hero__reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__track {
  display: flex; height: 100%; width: max-content;
  will-change: transform;
}
.hero__track.is-running { animation: reel var(--reel-duration, 80s) linear infinite; }
.hero__track video {
  height: 100%; width: auto; max-width: none;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.95);
  /* each video slides under the previous one's right edge and fades in over it */
  margin-left: calc(var(--reel-overlap) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--reel-overlap));
          mask-image: linear-gradient(90deg, transparent, #000 var(--reel-overlap));
}
@keyframes reel { to { transform: translate3d(calc(var(--reel-width, 0px) * -1), 0, 0); } }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgb(11 11 11 / .45), rgb(11 11 11 / .78) 100%),
    linear-gradient(180deg, rgb(11 11 11 / .45), rgb(11 11 11 / .1) 40%, rgb(11 11 11 / .6));
}
.hero__content { position: relative; }
.hero__lead {
  font-size: clamp(.95rem, .8rem + 1.6vw, 1.5rem); font-weight: 500; line-height: 1.45;
  margin: 0 auto var(--hero-gap); max-width: 30ch; color: rgb(255 253 248 / .92);
  text-wrap: balance;
}
.hero__lead-soft { color: var(--yellow); font-family: var(--font-marker); font-weight: 400; font-size: 1.3em; line-height: 1; letter-spacing: .01em; }
.hero__title {
  font-family: var(--font-marker); font-weight: 400;
  font-size: clamp(2rem, min(16vw, 17.5svh), 10rem); /* height cap keeps the buttons above the fold on short laptop screens */
  line-height: .95; letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--yellow);
  transform: rotate(-4deg);
  margin: 0 0 var(--hero-gap);
  text-shadow: 0 6px 0 rgb(0 0 0 / .35), 0 0 60px rgb(246 201 14 / .25);
}
.hero__title-line { display: block; }
.hero__title.is-visible .hero__title-line { animation: wobble 4s ease-in-out 1.2s infinite; }
.hero__title.is-visible .hero__title-line + .hero__title-line { animation-delay: 1.45s; }
@keyframes wobble {
  0%, 82%, 100% { transform: none; }
  86% { transform: rotate(-2deg) scale(1.03); }
  90% { transform: rotate(1.5deg) scale(1.02); }
  94% { transform: rotate(-.6deg); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* On phones the title should win: a compact CTA and a quiet text link instead of two big pills. */
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: center; gap: 4px; }
  .hero__actions .btn--lg { font-size: .95rem; padding: .85em 1.4em; }
  .hero__actions .btn--yellow { box-shadow: 0 4px 0 -1px var(--yellow-deep); }
  .hero__more { --bg: transparent; --bd: transparent; --fg: rgb(255 253 248 / .72); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: clamp(80px, 11vw, 140px) 0 clamp(88px, 12vw, 150px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: var(--white); }
.section--yellow { background: var(--yellow); color: var(--ink); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-marker); font-size: clamp(1.2rem, 1rem + 1.1vw, 1.65rem); letter-spacing: .02em;
  color: var(--ink); background: var(--yellow);
  padding: .15em .7em; margin-bottom: 1.1em;
  transform: rotate(-2deg);
  border-radius: 4px;
}
.eyebrow--ink { background: var(--ink); color: var(--yellow); }
.section-title { font-size: clamp(1.45rem, .85rem + 4.2vw, 3.4rem); font-weight: 800; text-wrap: balance; }
.section-lead { font-size: clamp(.98rem, .9rem + .6vw, 1.2rem); margin-top: 1.1em; opacity: .85; text-wrap: pretty; }

/* ---------- Kombinacija ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.pillar {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.pillar:nth-child(1) { --r: -1deg; }
.pillar:nth-child(2) { --r: .8deg; }
.pillar:nth-child(3) { --r: -.6deg; }
.pillar:hover { transform: translateY(-6px) rotate(var(--r)); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 28px 48px -20px rgb(0 0 0 / .35); }
.pillar__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 22px;
  background: var(--yellow); color: var(--ink);
  border-radius: 16px; transform: rotate(-6deg);
  font-size: 1.6rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.pillar__title { font-size: clamp(1.25rem, 1rem + 1.6vw, 1.85rem); font-weight: 800; margin-bottom: .55em; }
.pillar__title::before { content: "+ "; color: var(--yellow-deep); }
.pillar p { color: var(--muted-light); font-size: 1rem; }

.punchline {
  margin: clamp(56px, 8vw, 88px) auto 0; max-width: 26ch;
  text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, .75rem + 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.acc {
  background: var(--ink-2);
  border: 1px solid rgb(255 255 255 / .06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color .3s, border-color .3s;
}
.acc.is-open, html:not(.js) .acc[open] { border-color: rgb(246 201 14 / .35); }
.acc__head {
  display: flex; align-items: center; gap: clamp(10px, 3vw, 18px);
  padding: clamp(14px, 4vw, 20px) clamp(14px, 3vw, 28px);
  cursor: pointer; list-style: none;
  background: var(--yellow); color: var(--ink);
  transition: background-color .2s;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover { background: #ffd526; }
.acc__num { font-family: var(--font-marker); font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); opacity: .55; min-width: 1.6em; }
.acc__title { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(.98rem, .85rem + 1.2vw, 1.4rem); letter-spacing: -0.01em; line-height: 1.25; }
.acc__icon {
  display: grid; place-items: center; flex: none;
  width: clamp(30px, 8vw, 38px); height: clamp(30px, 8vw, 38px); border-radius: 50%;
  background: var(--ink); color: var(--yellow);
  transition: transform .4s var(--ease-out);
}
/* open/close height animation is done in main.js (works in every browser) */
.acc.is-open .acc__icon, html:not(.js) .acc[open] .acc__icon { transform: rotate(135deg); }
.acc__body { padding: clamp(22px, 3.5vw, 36px); color: rgb(255 253 248 / .86); }

.prose h4 {
  font-size: 1.2rem; font-weight: 700; color: var(--yellow);
  margin: 1.8em 0 .5em;
}
.prose h4:first-of-type { margin-top: 1.4em; }
.prose a { color: var(--yellow); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--yellow); }
.prose__note {
  margin-top: 2em; padding-top: 1.2em;
  border-top: 1px dashed rgb(255 255 255 / .2);
  font-family: var(--font-marker); color: var(--yellow); font-size: 1.35rem;
}

.media-pair, .media-single { margin: 1.4em 0 .4em; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-pair video, .media-single video {
  width: 100%; border-radius: var(--radius-sm); background: #000;
  aspect-ratio: 16 / 9; object-fit: cover;
}
.media-single video { max-height: 440px; object-fit: contain; aspect-ratio: auto; min-height: 200px; }
.media-pair figcaption { grid-column: 1 / -1; font-size: .9rem; color: var(--muted-dark); font-style: italic; text-align: center; }
@media (max-width: 560px) { .media-pair { grid-template-columns: 1fr; } }

.hscroll {
  overflow-x: auto; margin-top: 1.2em;
  border-radius: var(--radius-sm);
  scrollbar-color: var(--yellow) transparent;
  overscroll-behavior-x: contain;
}
.hscroll img { height: clamp(260px, 42vw, 420px); width: auto; max-width: none; }
.hscroll__hint { font-family: var(--font-marker); font-size: 1.25rem; color: var(--yellow); text-align: right; margin-top: .6em; }

.power-cards { display: flex; gap: clamp(16px, 4vw, 40px); justify-content: center; margin-top: 1.6em; flex-wrap: wrap; }
.power-cards img {
  width: min(240px, 42%); border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / .7);
  transition: transform .4s var(--ease-out);
}
.power-cards img:first-child { transform: rotate(-5deg); }
.power-cards img:last-child { transform: rotate(4deg); }
.power-cards img:hover { transform: rotate(0) scale(1.05) translateY(-6px); }

/* ---------- O nama ---------- */
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px); }
.crew-card p { color: var(--muted-light); font-size: 1rem; }
.polaroid {
  margin: 0 0 26px;
  padding: 12px 12px 44px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--ease-out);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(1.05); }
.crew-card:hover .polaroid { transform: rotate(0deg) scale(1.02); }
.crew-card__name { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.9rem); font-weight: 800; margin-bottom: .5em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 1em; }
.tags li {
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  padding: .3em .75em; border-radius: 999px;
  background: var(--paper-2); color: var(--ink);
}
.tags li:first-child, .tags li.is-hl { background: var(--yellow); }

@media (max-width: 1100px) {
  .crew { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; gap: 48px 40px; }
}
@media (max-width: 620px) {
  .crew { grid-template-columns: 1fr; max-width: 480px; gap: 56px; }
}

/* ---------- Partneri ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.partner {
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.partner:hover { transform: translateY(-6px); }
.partner__media { aspect-ratio: 16 / 9; background: var(--ink-3); overflow: hidden; }
.partner__media img, .partner__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.partner:hover .partner__media img { transform: scale(1.04); }
.partner__media--bottles {
  display: flex; justify-content: center; align-items: flex-end; gap: 6%;
  padding-top: 6%;
  background: radial-gradient(circle at 50% 120%, var(--yellow) 0 40%, #f8dc6a 60%, var(--paper) 100%);
}
.partner__media--bottles img { width: auto; height: 94%; object-fit: contain; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .35)); }
.partner:hover .partner__media--bottles img:first-child { transform: rotate(-4deg) translateY(-4px); }
.partner:hover .partner__media--bottles img:last-child { transform: rotate(4deg) translateY(-4px); }
.partner__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); flex: 1; }
.partner__body p { color: var(--muted-light); font-size: 1rem; margin: 0; }
.partner__logo { height: 34px; width: auto; object-fit: contain; object-position: left; }
.partner__logo--tall { height: 64px; }
.partner__photo { border-radius: var(--radius-sm); width: 100%; max-height: 220px; object-fit: contain; object-position: left; }
.partner__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.partner--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.partner--wide .partner__media { aspect-ratio: auto; min-height: 320px; }

@media (max-width: 900px) {
  .partners { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .partner--wide { grid-template-columns: 1fr; }
  .partner--wide .partner__media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ---------- Kontakt ---------- */
.events { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.events .section-lead { margin-bottom: 1.6em; }
.events__media { display: grid; justify-items: center; }
.events__media video {
  width: min(100%, 420px); height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.events__media video { transform: rotate(2.5deg); }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(64px, 9vw, 110px); }
.contact-card {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px);
}
.contact-card h3 { font-size: clamp(1.2rem, 1rem + 1.4vw, 1.8rem); font-weight: 800; color: var(--yellow); margin-bottom: .8em; }
.contact-card p { color: rgb(255 253 248 / .78); font-size: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 8px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .06);
  text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere;
  transition: background-color .2s, color .2s;
}
.contact-list a:hover { background: var(--yellow); color: var(--ink); }
.contact-list .icon { color: var(--yellow); }
.contact-list a:hover .icon { color: var(--ink); }
.contact-list small { display: block; font-weight: 400; opacity: .7; font-size: .85rem; }
.contact-list small.inline { display: inline; margin-left: .3em; }

@media (max-width: 900px) {
  .events { grid-template-columns: 1fr; }
  .events__media { max-width: 480px; margin-bottom: 28px; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- "Dođi na sljedeći kviz" modal ---------- */
.modal {
  width: min(440px, 100% - 2 * var(--gutter));
  padding: clamp(32px, 7vw, 44px) clamp(22px, 6vw, 40px) clamp(26px, 6vw, 36px);
  border: 3px solid var(--ink); border-radius: var(--radius);
  background: var(--yellow); color: var(--ink);
  text-align: center;
  overflow: visible;
}
.modal:focus { outline: none; } /* main.js focuses the dialog itself on open, so no ring lands on the close button */
.modal::backdrop { background: rgb(11 11 11 / .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .45s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) rotate(-3deg) scale(.95); } }
@keyframes fade-in { from { opacity: 0; } }
html:has(.modal[open]) { overflow: hidden; }
.modal :focus-visible { outline-color: var(--ink); }
.modal__close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: none; color: var(--ink);
  font-size: 1.4rem; cursor: pointer;
  transform: rotate(45deg); transition: opacity .2s;
}
.modal__close:hover { opacity: .6; }
.modal__close:focus-visible { outline-offset: -4px; }
.modal__title {
  font-family: var(--font-marker); font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.1rem); line-height: 1;
  margin: .15em 0 .45em;
}
.modal__text { font-size: 1.05rem; line-height: 1.55; margin: 0 auto 1.7em; max-width: 32ch; }
.modal__cta { width: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--white); padding: calc(56px + var(--zz)) 0 32px; }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / .12);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { text-decoration: none; opacity: .8; font-weight: 500; transition: opacity .2s, color .2s; }
.footer-nav a:hover { opacity: 1; color: var(--yellow); }
.footer-ig {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 1.3rem;
  transition: transform .3s var(--ease-out);
}
.footer-ig:hover { transform: rotate(-10deg) scale(1.08); }
.site-footer__legal { margin-top: 24px; font-size: .9rem; opacity: .55; text-align: center; }
@media (max-width: 720px) {
  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__title.reveal { transform: rotate(-4deg) translateY(28px) scale(.92); }
.js .hero__title.reveal.is-visible { transform: rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__track.is-running { animation: none; }
}
