/* Rotaract klub Zagreb Gradec — javna stranica
   Vizualno srodno stranici Rotary kluba Zagreb Gradec (rczg.hr), u Rotaract boji (magenta). */

/* ---------- Fontovi (self-hosted, OFL licenca) ---------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/lora-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/lora-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/lora-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/lora-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeni ---------- */
:root {
  --magenta: #d91b5c;          /* službena magenta iz logotipa kluba */
  --magenta-dark: #b3124a;
  --magenta-light: #f2669a;    /* magenta za tekst na tamnoj podlozi (AA kontrast) */
  --magenta-soft: #fbe8ef;
  --ink: #1b1a21;              /* tamna grafitna */
  --ink-2: #222129;
  --ink-3: #2d2b35;
  --on-dark: #ffffff;
  --on-dark-muted: #c2c0cc;
  --on-dark-line: rgba(255, 255, 255, 0.13);
  --text: #1b1a21;
  --muted: #5b5966;
  --paper: #ffffff;
  --mist: #f4f3f6;             /* svijetlosiva */
  --line: #e2e0e7;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 80px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p + p { margin-top: 1em; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 3px solid var(--magenta-light); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
img.is-portrait { object-position: 50% 18%; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Gumbi i poveznice ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--magenta); color: #fff; }
.btn--primary:hover { background: var(--magenta-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; }

.link-arrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--on-dark-line); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; color: #fff; transition: color 0.2s; }
.link-arrow small { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 2px; }
.link-arrow .icon { width: 42px; height: 42px; padding: 10px; border: 1px solid var(--on-dark-line); border-radius: 50%; transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--magenta-light); }
.link-arrow:hover .icon { background: var(--magenta); border-color: var(--magenta); color: #fff; transform: rotate(45deg); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--magenta-light); }
.pill { display: inline-block; margin-top: 16px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--muted); background: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; border-bottom: 4px solid var(--magenta); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: auto; height: 50px; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.main-nav__link { position: relative; padding: 6px 0; font-size: 0.97rem; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, 0.86); transition: color 0.2s; }
.main-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.main-nav__link:hover, .main-nav__link.is-active { color: #fff; }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 12px; margin-right: -12px; }
.nav-toggle__bars { display: grid; gap: 5px; }
.nav-toggle__bars span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Rotirajući kotači ---------- */
.wheel { position: absolute; pointer-events: none; z-index: 0; aspect-ratio: 1; }
.wheel__rot { display: block; width: 100%; height: 100%; background-color: currentColor; -webkit-mask: url("/assets/img/wheel.webp") center / contain no-repeat; mask: url("/assets/img/wheel.webp") center / contain no-repeat; will-change: transform; transform: rotate(0deg); backface-visibility: hidden; }
.wheel__rot--static { will-change: auto; transform: none; }

/* ---------- Sekcije ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 136px); overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section--dark { background: var(--ink); color: #fff; }
.section--light { background: var(--mist); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-intro { color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.section-intro--light { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: min(880px, calc(100svh - var(--header-h))); display: flex; align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero__wheels { position: absolute; inset: 0; z-index: 0; }
.wheel--hero-main { --size: clamp(520px, 64vw, 1000px); width: var(--size); right: calc(var(--size) * -0.3); top: 50%; margin-top: calc(var(--size) * -0.5); color: var(--magenta); }
.wheel--hero-small { --size: clamp(220px, 24vw, 380px); width: var(--size); left: 34%; bottom: calc(var(--size) * -0.56); color: rgba(255, 255, 255, 0.07); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero:not(.hero--photo) .hero__inner { grid-template-columns: minmax(0, 0.7fr); }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.9rem, 6.6vw, 6.2rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.hero__slogan { margin-top: 18px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 2.5vw, 2.1rem); color: var(--magenta-light); }
.hero__intro { margin-top: 22px; max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__photo { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65); outline: 8px solid rgba(27, 26, 33, 0.55); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: #fff; transition: border-color 0.2s, background-color 0.2s; }
.hero__scroll:hover { background: var(--magenta); border-color: var(--magenta); }
.hero__scroll .icon { width: 18px; height: 18px; }

/* ---------- O nama ---------- */
.about { border-top: 1px solid var(--on-dark-line); }
.wheel--about { --size: clamp(640px, 80vw, 1180px); width: var(--size); left: calc(var(--size) * -0.52); top: 6%; color: rgba(255, 255, 255, 0.045); }
.about__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.about__photo { margin-top: 36px; max-width: 300px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.35; color: #fff; }
.about__text { color: var(--on-dark-muted); margin-top: 1.1em; font-size: 1.08rem; max-width: 60ch; }
.about__links { margin-top: 36px; border-bottom: 1px solid var(--on-dark-line); }
.goals { margin-top: clamp(56px, 8vw, 96px); }
.goals__title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 18px; }
.goals__list { counter-reset: goal; border-bottom: 1px solid var(--on-dark-line); }
.goals__item { display: grid; grid-template-columns: clamp(64px, 12vw, 160px) minmax(0, 1fr); align-items: baseline; gap: 24px; padding: 22px 0; border-top: 1px solid var(--on-dark-line); }
.goals__num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--magenta-light); font-variant-numeric: lining-nums; }
.goals__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #fff; }

/* ---------- Projekti i vremenska crta ---------- */
.wheel--projects { --size: clamp(520px, 62vw, 920px); width: var(--size); right: calc(var(--size) * -0.48); top: 140px; color: rgba(217, 27, 92, 0.07); }

.events { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3vw, 36px); margin-bottom: clamp(48px, 7vw, 80px); }
.events__title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.events__empty { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--magenta); }
.events__empty-wheel { width: 40px; height: 40px; flex: none; color: var(--magenta); }
.events__list { display: grid; gap: 0; margin-top: 12px; }
.event { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: var(--magenta); color: #fff; line-height: 1; }
.event__day { font-family: var(--serif); font-weight: 600; font-size: 2rem; }
.event__month { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.event__year { font-size: 0.72rem; opacity: 0.8; margin-top: 3px; }
.event__title { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 10px; color: var(--muted); font-size: 0.95rem; }
.event__meta span { display: inline-flex; align-items: center; gap: 8px; }
.event__meta .icon { width: 17px; height: 17px; color: var(--magenta); }
.event__text { color: var(--muted); margin-bottom: 14px; }

.filters { display: grid; gap: 12px; margin-bottom: 36px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { width: 100px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 0.92rem; font-weight: 500; color: var(--text); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip small { font-size: 0.78rem; color: var(--muted); }
.chip:hover { border-color: var(--magenta); color: var(--magenta); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.7); }

.timeline { --tl-year: clamp(108px, 12vw, 168px); --tl-gap: clamp(48px, 6vw, 88px); position: relative; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 40px; left: calc(var(--tl-year) + var(--tl-gap) / 2 - 1px); width: 2px; background: linear-gradient(to bottom, var(--magenta) 0%, rgba(217, 27, 92, 0.35) 70%, rgba(217, 27, 92, 0)); }
.tl-group { display: grid; grid-template-columns: var(--tl-year) minmax(0, 1fr); column-gap: var(--tl-gap); }
.tl-year span { position: sticky; top: calc(var(--header-h) + 28px); display: block; text-align: right; font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.05; color: var(--ink); }
.tl-year .tl-year__archive { font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.3; color: var(--muted); padding-top: 4px; }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(48px, 6vw, 72px); }
.tl-item--featured { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.tl-item--nophoto { grid-template-columns: minmax(0, 1fr); }
.tl-marker { position: absolute; top: 4px; left: calc(var(--tl-gap) / -2 - 15px); width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: var(--mist); color: var(--magenta); }
.tl-badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.tl-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--ink); }
.tl-meta { margin-top: 6px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tl-summary { margin-top: 14px; color: var(--text); max-width: 56ch; }
.tl-details { margin-top: 16px; }
.tl-details > summary { list-style: none; }
.tl-details > summary::-webkit-details-marker { display: none; }
.tl-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--magenta); cursor: pointer; }
.tl-more .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.tl-more:hover .icon { transform: translateX(4px); }
.tl-details[open] .tl-more .icon { transform: rotate(90deg); }
.tl-details__body { margin-top: 8px; padding: 18px 0 4px 18px; border-left: 2px solid var(--line); color: var(--text); }
.tl-links { display: grid; gap: 8px; margin-top: 16px; }
.tl-links a, .modal__links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--magenta); text-decoration: none; }
.tl-links a:hover, .modal__links a:hover { text-decoration: underline; }
.tl-photos { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 0.93rem; }
.tl-photos:hover { color: var(--magenta); }
.tl-photos .icon { width: 18px; height: 18px; }
.tl-cover { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -24px rgba(27, 26, 33, 0.45); }
.tl-item--featured .tl-cover { aspect-ratio: 16 / 11; }
.tl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tl-cover:hover img { transform: scale(1.04); }
.timeline__empty { padding: 24px 0; color: var(--muted); font-style: italic; }

/* ---------- Galerija ---------- */
.filters--gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 45%), 1fr)); gap: 10px; }
.gallery__item { position: relative; }
.gallery__btn { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--mist); }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.3s; }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- U medijima ---------- */
.wheel--media { --size: clamp(420px, 50vw, 760px); width: var(--size); right: calc(var(--size) * -0.38); bottom: calc(var(--size) * -0.42); color: rgba(255, 255, 255, 0.05); }
.media__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.media__list { border-bottom: 1px solid var(--on-dark-line); }
.media__link { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-top: 1px solid var(--on-dark-line); text-decoration: none; color: #fff; }
.media__thumb { width: 88px; height: 66px; flex: none; overflow: hidden; border-radius: 4px; }
.media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.media__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.media__outlet { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.media__title { color: #fff; opacity: 0.92; }
.media__meta { font-size: 0.85rem; color: var(--on-dark-muted); letter-spacing: 0.02em; }
.media__desc { font-size: 0.93rem; color: var(--on-dark-muted); }
.media__arrow { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--on-dark-line); border-radius: 50%; transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.media__arrow .icon { width: 18px; height: 18px; }
a.media__link:hover .media__outlet { color: var(--magenta-light); }
a.media__link:hover .media__arrow { background: var(--magenta); border-color: var(--magenta); transform: rotate(45deg); }
.media__empty { padding: 28px 0; border-top: 1px solid var(--on-dark-line); border-bottom: 1px solid var(--on-dark-line); font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--on-dark-muted); }

/* ---------- Pridruži nam se ---------- */
.join { position: relative; overflow: hidden; background: var(--magenta); color: #fff; padding-block: clamp(64px, 8vw, 104px); }
.wheel--join { --size: clamp(360px, 40vw, 600px); width: var(--size); right: calc(var(--size) * -0.22); top: 50%; margin-top: calc(var(--size) * -0.5); color: rgba(255, 255, 255, 0.13); }
.join__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; }
.join__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; max-width: 18ch; }
.join__text { margin-top: 16px; max-width: 54ch; font-size: 1.08rem; color: rgba(255, 255, 255, 0.92); }

/* ---------- Kontakt ---------- */
.contact { background: var(--mist); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info .section-intro { margin-top: 18px; }
.contact__name { margin-top: 32px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.contact__list { margin-top: 12px; display: grid; gap: 4px; }
.contact__list a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact__list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: #fff; color: var(--magenta); border: 1px solid var(--line); transition: background-color 0.2s, color 0.2s; }
.contact__list a:hover { color: var(--magenta); }
.contact__list a:hover .icon { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3.4vw, 40px); }
.contact-form__title { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfccd6; border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(217, 27, 92, 0.16); }
.field.has-error input, .field.has-error textarea { border-color: #c0262d; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__note { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.contact-form__status { margin-top: 16px; font-weight: 600; min-height: 1.5em; }
.contact-form__status.is-sent { color: #19734a; }
.contact-form__status.is-error { color: #c0262d; }
.contact-form--mailto p { color: var(--muted); margin-bottom: 20px; }
.contact__alt { margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.contact__alt a { color: var(--magenta); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); border-top: 4px solid var(--magenta); padding-top: clamp(56px, 7vw, 88px); }
.wheel--footer { --size: clamp(360px, 40vw, 600px); width: var(--size); right: calc(var(--size) * -0.25); bottom: calc(var(--size) * -0.5); color: rgba(255, 255, 255, 0.04); }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand img { width: 260px; height: auto; }
.site-footer__slogan { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--magenta-light); }
.site-footer__text { margin-top: 8px; max-width: 32ch; font-size: 0.95rem; }
.site-footer__label { margin-bottom: 14px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.site-footer__list { display: grid; gap: 8px; font-size: 0.95rem; }
.site-footer__list a { text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.site-footer__list a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 72px); padding-block: 24px; border-top: 1px solid var(--on-dark-line); font-size: 0.88rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 600; }
.to-top .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- Modal projekta ---------- */
dialog { padding: 0; border: 0; }
.modal { width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.5); overscroll-behavior: contain; }
.modal::backdrop { background: rgba(17, 16, 22, 0.72); backdrop-filter: blur(3px); }
.modal__inner { position: relative; }
.modal__bar { position: sticky; top: 0; height: 0; z-index: 3; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(27, 26, 33, 0.82); color: #fff; }
.modal__close:hover { background: var(--magenta); }
.modal__cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding-bottom: 36px; }
.modal__body { padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px) 0; }
.modal__meta { font-family: var(--serif); font-style: italic; color: var(--muted); }
.modal__title { margin-top: 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
.modal__text { margin-top: 20px; }
.modal__text p { max-width: 64ch; }
.modal__links { display: grid; gap: 8px; margin-top: 22px; }
.modal__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 30%), 1fr)); gap: 8px; margin-top: 28px; padding: 0 clamp(20px, 4vw, 48px); }
.modal__gallery button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--mist); }
.modal__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.modal__gallery button:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(12, 11, 16, 0.96); color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(12, 11, 16, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__stage { display: grid; place-items: center; padding: 64px clamp(8px, 7vw, 96px) 8px; min-height: 0; touch-action: pan-y; user-select: none; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; transition: opacity 0.25s; }
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 20px; padding: 14px clamp(16px, 7vw, 96px) 20px; font-size: 0.95rem; }
.lightbox__caption { color: rgba(255, 255, 255, 0.86); }
.lightbox__count { color: rgba(255, 255, 255, 0.6); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background-color 0.2s; }
.lightbox__btn:hover { background: var(--magenta); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__prev { left: clamp(8px, 2vw, 24px); top: 50%; margin-top: -26px; }
.lightbox__next { right: clamp(8px, 2vw, 24px); top: 50%; margin-top: -26px; }
.lightbox__close { top: 12px; right: 12px; }

/* ---------- Animacije pri scrollanju ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Postavljanje / greške ---------- */
.setup-page { background: var(--mist); }
.setup { max-width: 640px; padding-block: 12vh; }
.setup img { width: 280px; margin-bottom: 40px; }
.setup h1 { font-family: var(--serif); font-size: 2.2rem; line-height: 1.2; margin-bottom: 16px; }
.setup p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Responzivnost ---------- */
@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .main-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); border-bottom: 4px solid var(--magenta); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav__link { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--on-dark-line); }
  .main-nav__link::after { display: none; }
  .main-nav__link.is-active { color: var(--magenta-light); }

  .hero { min-height: 0; align-items: flex-start; padding-top: 56px; padding-bottom: 96px; }
  .hero__inner, .hero:not(.hero--photo) .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .wheel--hero-main { --size: 118vw; right: -52vw; top: -34vw; margin-top: 0; color: rgba(217, 27, 92, 0.55); }
  .wheel--hero-small { --size: 54vw; left: auto; right: -14vw; bottom: auto; top: 58%; }
  .hero__photo { max-width: 560px; }

  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .about__grid, .media__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 220px; }
  .join__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .timeline { --tl-gap: 0px; }
  .timeline::before { left: 14px; top: 64px; }
  .tl-group { grid-template-columns: minmax(0, 1fr); }
  .tl-year span { position: static; text-align: left; padding: 0 0 18px 44px; font-size: 2.1rem; }
  .tl-year .tl-year__archive { font-size: 1.2rem; }
  .tl-items { padding-left: 44px; }
  .tl-item, .tl-item--featured { grid-template-columns: minmax(0, 1fr); }
  .tl-item .tl-cover { order: -1; }
  .tl-marker { left: -45px; top: 2px; }
  .tl-item:has(.tl-cover) .tl-marker { top: 2px; }
  .filters__label { width: 100%; }
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .event__day { font-size: 1.5rem; }
  .goals__item { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .media__thumb { display: none; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; margin-top: 0; }
  .lightbox__stage { padding-bottom: 80px; }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wheel__rot { will-change: auto; }
}

@media print {
  .site-header, .wheel, .hero__scroll, .contact__form-wrap, .filters, dialog { display: none !important; }
  .section--dark, .hero, .site-footer, .join { background: #fff !important; color: #000 !important; }
}
