/* ═══════════════════════════════════════════════════════════
   SPICE DANCE STUDIO — design system (light theme)
   Bright, kinetic, Sora. Blue #0099ff = action, orange #f7941d = highlight.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #fcfcfd;
  --bg-2: #ffffff;
  --bg-3: #f2f3f6;
  --ink: #101216;
  --line: rgba(13, 15, 20, 0.1);
  --text: #101216;
  --muted: #555b66;
  --blue: #0099ff;
  --blue-text: #0077cc;
  --blue-deep: #0066bb;
  --orange: #f7941d;
  --orange-text: #c46a00;
  --shadow: 0 10px 30px rgba(16, 18, 22, 0.07);
  --shadow-lift: 0 18px 44px rgba(16, 18, 22, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #101216; }

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }

/* The 2.9rem floor used to win over 8vw on phones, so long words ("ROJSTNODNEVNA")
   rendered at 46px and ran off the viewport. A lower floor lets the vw term scale. */
.display {
  font-size: clamp(2.4rem, 8vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
}

.h-section {
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* smallest phones (iPhone SE): drop the floor again so 13-char words still fit */
@media (max-width: 340px) {
  .display { font-size: 2.1rem; }
}

.h-card { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 18px;
}

.eyebrow--lime {
  background: var(--orange);
  color: #101216;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.accent { color: var(--blue-text); }
.accent-lav { color: var(--orange-text); }
.accent-strong { color: var(--orange-text); }

/* ── Layout ─────────────────────────────────────────────── */

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
/* a full .section following the stats band doesn't need its own big top pad */
@media (max-width: 620px) {
  .section-tight + .section { padding-top: 48px; }
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head .lead { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
    background-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  border-radius: inherit;
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary:hover { color: #101216; }
.btn-primary .btn-label { position: relative; z-index: 1; }

.btn-ghost { border-color: rgba(16, 18, 22, 0.3); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-small { padding: 10px 22px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.25s;
}
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--orange-text); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ── Header / nav ───────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(252, 252, 253, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 78px; width: auto; max-width: none; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav > a:not(.nav-cta) {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.site-nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav > a:not(.nav-cta):hover,
.site-nav > a[aria-current='page'] { color: var(--text); }
.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

/* ── Nav dropdown (Dogodki) ─────────────────────────────── */
.nav-group { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-group-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-group-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-group:hover .nav-group-label,
.nav-group-label[aria-current='page'],
.nav-group-label[data-section='active'] { color: var(--text); }
.nav-group:hover .nav-group-label::after,
.nav-group-label[aria-current='page']::after,
.nav-group-label[data-section='active']::after { transform: scaleX(1); transform-origin: left; }
.nav-group-toggle {
  width: 14px;
  height: 14px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.nav-group-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.nav-group-panel {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 60;
}
.nav-group:hover .nav-group-panel,
.nav-group:focus-within .nav-group-panel,
.nav-group-toggle[aria-expanded='true'] + .nav-group-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-group-panel a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-group-panel a:hover,
.nav-group-panel a[aria-current='page'] { background: var(--bg-3); color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(252, 252, 253, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.nav-cta) { font-size: 1.15rem; padding: 10px 0; }
  .site-nav .nav-cta { margin-top: 14px; }
  /* dropdown becomes an inline accordion — no hover on touch */
  .nav-group { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-group-label { font-size: 1.15rem; padding: 10px 0; }
  .nav-group-toggle { position: absolute; top: 12px; right: 0; width: 32px; height: 32px; }
  .nav-group-panel {
    position: static;
    min-width: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0 14px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-group:hover .nav-group-panel { display: none; }
  .nav-group-toggle[aria-expanded='true'] + .nav-group-panel { display: flex; }
  .nav-group-toggle[aria-expanded='true']::before { transform: translateY(1px) rotate(-135deg); }
  .nav-group-panel a { font-size: 1.02rem; padding: 8px 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ── Hero (video) — stays dark for legibility over footage ─ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(56px, 8vw, 96px);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.28) 45%, rgba(10, 11, 14, 0.45) 100%);
}

.hero .eyebrow { color: var(--orange); }
.hero, .hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.82); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero .btn-primary { background: #fff; color: #101216; }
.hero .btn-primary::after { background: var(--orange); }

.hero-title { margin: 10px 0 22px; }
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes word-up { to { transform: translateY(0); } }

.hero .lead,
.hero .eyebrow,
.hero-actions,
.hero-tags {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.9s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: 0.15s; }
.hero .lead { animation-delay: 0.55s; }
.hero-actions { animation-delay: 0.7s; }
.hero-tags { animation-delay: 0.85s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.hero-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 11, 14, 0.35);
  backdrop-filter: blur(6px);
}

/* ── Page hero (subpages) ───────────────────────────────── */

.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 72px);
  position: relative;
}
.page-hero .display { max-width: 20ch; }
.page-hero .lead { margin-top: 24px; }

/* ── Ribbon marquee (signature) ─────────────────────────── */

.ribbon {
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.6deg) scale(1.02);
  user-select: none;
  pointer-events: none;
}
.ribbon--fill { background: var(--ink); }
.ribbon--lav { background: var(--orange); }
.ribbon--ghost { background: transparent; border-block: 1px solid var(--line); }

.ribbon-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ribbon-slide var(--speed, 22s) linear infinite;
}
@keyframes ribbon-slide { to { transform: translateX(-50%); } }

.ribbon-chunk {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.ribbon--fill .ribbon-chunk { color: #fff; }
.ribbon--lav .ribbon-chunk { color: #101216; }
.ribbon--ghost .ribbon-chunk {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16, 18, 22, 0.4);
}
.ribbon--orange { background: transparent; border-block: 1px solid var(--line); }
.ribbon--orange .ribbon-chunk { color: var(--orange); }
.ribbon--orange .ribbon-chunk i { color: var(--ink); }
.ribbon-chunk i {
  font-style: normal;
  margin: 0 26px;
  font-size: 0.65em;
  -webkit-text-stroke: 0;
}
.ribbon--fill .ribbon-chunk i { color: rgba(255, 255, 255, 0.75); }
.ribbon--ghost .ribbon-chunk i { color: var(--blue); }

/* ── Vpis poster banner ─────────────────────────────────── */

.vpis-poster {
  display: block;
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.vpis-poster > img {
  width: 100%;
  height: clamp(340px, 40vw, 540px);
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.9s var(--ease);
}
.vpis-poster:hover > img { transform: scale(1.045); }

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(90px, 12vw, 150px);
  background: linear-gradient(100deg, rgba(10, 11, 14, 0.74) 0%, rgba(10, 11, 14, 0.32) 55%, rgba(10, 11, 14, 0.05) 100%);
}

.poster-flag {
  background: var(--orange);
  color: #101216;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.poster-title {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
}

.poster-link { color: #fff; }
.vpis-poster:hover .poster-link svg { transform: translateX(6px); }

.vpis-cards {
  position: relative;
  z-index: 1;
  margin-top: -76px;
  padding-inline: clamp(16px, 4vw, 56px);
}
@media (max-width: 820px) {
  .poster-overlay { padding-bottom: clamp(70px, 16vw, 110px); }
  .vpis-cards { margin-top: -48px; padding-inline: 12px; }
}

/* ── Photo marquee (dance training strip) ───────────────── */

.photo-marquee {
  overflow: hidden;
  padding: 10px 0;
}
.photo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ribbon-slide 46s linear infinite;
}
.photo-track img {
  height: clamp(180px, 24vw, 300px);
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: rgba(13, 15, 20, 0.18); }

.card-media { aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); }

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .link-arrow { margin-top: auto; }
/* when age pills are present, they pin to the bottom and the link follows at a fixed gap */
.card-body .group-tags { margin-top: auto; padding-top: 20px; margin-bottom: 22px; }
.card-body .group-tags + .link-arrow { margin-top: 0; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

/* price card */
/* Price-card level groups (Začetniki / Rekreativno / Tekmovalci / Paketi) */
.pc-group + .pc-group { margin-top: clamp(36px, 5vw, 52px); }
.pc-group > .eyebrow { display: inline-block; margin-bottom: 16px; }

/* Price cards — poster content (tape flag, orange price bar, heavy uppercase)
   on a rounded card whose full background is the course photo under a white veil. */
.price-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.price-card > * { position: relative; z-index: 1; }
.price-card:has(.pc-media) { min-height: 430px; }

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange-text);
}
.price-tag small {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 6px;
}
.price-card .pc-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
}
.price-card .pc-media img { width: 100%; height: 100%; object-fit: cover; }
.price-card .pc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
}
.price-card .price-tag {
  margin: 6px -24px 0;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--ink);
  font-size: 1.6rem;
}
.price-card .price-tag small { color: rgba(16, 18, 22, 0.72); font-weight: 600; }

.price-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.price-card .flag {
  position: absolute;
  top: -13px;
  left: 16px;
  z-index: 2;
  transform: rotate(-3deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 0;
  padding: 6px 14px;
  box-shadow: 3px 3px 0 rgba(16, 18, 22, 0.18);
}
.price-card p { color: var(--muted); font-size: 0.93rem; }

.sched {
  list-style: none;
  margin-top: auto;
  border-top: 2px dotted rgba(13, 15, 20, 0.25);
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sched li { padding: 3px 0; color: var(--text); }
.sched li.dim { color: var(--muted); font-weight: 400; }

.price-card .btn { align-self: flex-start; margin-top: 18px; }
.price-card .btn-ghost {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.price-card .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* lead member — founder's interview video, centred above the rest of the team */
.lead-member {
  max-width: 420px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.lead-member-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--bg-3);
}
.lead-member-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.lead-member figcaption { margin-top: 20px; }
.lead-member .role {
  color: var(--orange-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.lead-member figcaption p { color: var(--muted); margin-top: 6px; }

/* team list — names + roles only, no portraits */
.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.team-list > li {
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.team-list .role {
  color: var(--orange-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.team-list .h-card { margin-bottom: 2px; }
.team-list p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 620px) {
  .team-list { grid-template-columns: 1fr; gap: 0; }
}

/* team stage — video centred, rolling ribbons banding across behind it */
.team-stage {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
  padding-block: 8px;
}
/* Ribbons break out of .container to run edge-to-edge, and both pivot about the
   same point — 26% across, 50% down — so they scissor over each other on the
   left of the video. Opposite steep angles + a shared origin = a clean X. */
.team-stage-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130vw;
  margin-left: -65vw;
  z-index: 1;
  pointer-events: none;
  transform-origin: 26% 50%;
}
/* black crosses over orange; the video sits above both */
.team-stage-ribbon--top    { transform: translateY(-50%) rotate(-15deg); z-index: 2; }
.team-stage-ribbon--bottom { transform: translateY(-50%) rotate(14deg);  z-index: 1; }
.team-stage-ribbon .ribbon { border-block: 0; }
/* transparent so the black ribbon stays visible where they scissor */
.team-stage-ribbon--bottom .ribbon { background: transparent; }

/* team video — vertical 9:16 source, centred so it never letterboxes */
.team-video {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--bg-3);
}
.team-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* phones: video only, ribbons hidden */
@media (max-width: 820px) {
  .team-stage-ribbon { display: none; }
}
@media (max-width: 620px) {
  .team-video { max-width: 100%; }
}

/* quote card */
.quote-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.quote-card h3 { font-size: 1.05rem; color: var(--orange-text); letter-spacing: 0.02em; }
.quote-card blockquote { color: var(--muted); font-size: 0.98rem; }
.quote-card figcaption {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--orange-text);
}

/* ── Split rows (alternating) ───────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split + .split { margin-top: clamp(64px, 8vw, 110px); }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.split:hover .split-media img { transform: scale(1.05); }
.split:nth-of-type(even) .split-media { order: 2; }
.split h2, .split h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); text-transform: uppercase; margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split strong { color: var(--text); }

.group-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.group-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 148, 29, 0.45);
  color: var(--orange-text);
  background: rgba(247, 148, 29, 0.08);
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split:nth-of-type(even) .split-media { order: 0; }
}

/* ── Stats ──────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats > div { padding: 36px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); }
.stat-num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-num .unit { color: var(--orange-text); font-size: 0.5em; font-weight: 700; margin-left: 4px; }
.stats .stat-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.stats > .dup { display: none; }
@media (max-width: 620px) {
  .stats-roll { overflow: hidden; }
  .stats {
    display: flex;
    width: max-content;
    gap: 0;
    animation: stats-roll 30s linear infinite;
  }
  .stats > div { flex: none; width: 230px; margin-right: 16px; padding: 28px 12px; }
  .stats > .dup { display: block; }
  /* the marquee already reads as a band — drop the section's own padding so it
     doesn't stack with the marquee above and the next section below */
  .section-tight { padding: 20px 0; }
}
@keyframes stats-roll { to { transform: translateX(-50%); } }

/* ── Steps (numbered sequence) ──────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange-text);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; line-height: 1.3; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ── Lists ──────────────────────────────────────────────── */

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.check-list li::before { content: '✓'; color: var(--blue-text); font-weight: 700; flex: none; }

/* ── Gallery ────────────────────────────────────────────── */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery a, .gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.6s; }
.gallery figure:hover img { transform: scale(1.08); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* endless image carousel — track holds two identical runs and slides -50% */
.carousel { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: carousel-slide 60s linear infinite;
}
.carousel-track figure {
  flex: none;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-track img { width: 100%; height: 100%; object-fit: cover; }
.carousel:hover .carousel-track { animation-play-state: paused; }
@keyframes carousel-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
  .carousel { overflow-x: auto; }
}

/* video in a .split-media slot — the source is 9:16, so override the 4/3 image
   ratio and cap the width, otherwise object-fit would crop most of the frame */
.split-media--video {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  width: 100%;
  background: var(--bg-3);
}
.split-media--video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Tekmovanja: pokalni turnirji ───────────────────────── */
.pt-list { list-style: none; margin-top: 18px; }
.pt-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.pt-list li:last-child { border-bottom: 0; }
.pt-date { color: var(--muted); }
.pt-name { font-weight: 600; white-space: nowrap; }

/* ── Delavnice: blog posts ──────────────────────────────── */
.posts { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 60px); max-width: 820px; margin: 0 auto; }
.post {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 44px);
}
.post h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  margin: 8px 0 16px;
  overflow-wrap: break-word;
}
.post p { color: var(--muted); }
.rezultati { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.rezultati li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.rezultati li:last-child { border-bottom: 0; }
.rezultati li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* ── CTA band ───────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(120deg, #f9a63d 0%, var(--orange) 45%, #dd7d05 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(44px, 7vw, 88px) clamp(28px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  color: #101216;
  box-shadow: var(--shadow-lift);
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.22);
}
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); text-transform: uppercase; max-width: 16ch; }
.cta-band p { margin: 18px 0 30px; color: rgba(16, 18, 22, 0.78); max-width: 52ch; }
.cta-band .btn-primary::after { background: #fff; }
.cta-band .btn-ghost { border-color: rgba(16, 18, 22, 0.4); color: #101216; }
.cta-band .btn-ghost:hover { border-color: #101216; color: #101216; }
.cta-band .eyebrow { color: #101216; }

/* CTA band with blended photo */
.cta-band--photo::after { content: none; }
.cta-band--photo > :not(.cta-photo) { position: relative; z-index: 1; }
.cta-photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 54%;
  object-fit: cover;
  object-position: center 20%;
  mix-blend-mode: screen;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .cta-photo {
    width: 100%;
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
    mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  }
}

/* highlight band (discount / gift) */
.band {
  border: 1px solid rgba(247, 148, 29, 0.35);
  background: linear-gradient(120deg, rgba(247, 148, 29, 0.12), rgba(0, 153, 255, 0.08));
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; max-width: 22ch; }
.band p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

/* ── Forms ──────────────────────────────────────────────── */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid rgba(13, 15, 20, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  padding: clamp(56px, 8vw, 90px) 0 0;
  margin-top: clamp(72px, 10vw, 130px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--blue-text); }
.site-footer, .site-footer p, .site-footer li { color: var(--muted); font-size: 0.92rem; }
.site-footer strong { color: var(--text); }
.footer-brand img { height: 128px; width: auto; max-width: none; margin-bottom: 18px; }
.footer-brand strong { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom nav { display: flex; gap: 22px; }

/* ── Reveal animations ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.36s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.48s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.72s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.84s; }

/* ── Text pages (legal) ─────────────────────────────────── */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.prose p { color: var(--muted); margin-bottom: 14px; }

/* ── Cenik ──────────────────────────────────────────────── */

.cenik-group { max-width: 860px; }
.cenik-group + .cenik-group { margin-top: 36px; }
.cenik-group h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 8px;
}
.cenik-row {
  display: grid;
  /* constant tracks in every row keep the duration column on one vertical axis */
  grid-template-columns: 36% minmax(16px, 1fr) 170px minmax(16px, 1fr) 90px;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.92rem;
}
.cenik-row .dots {
  border-bottom: 2px dotted rgba(13, 15, 20, 0.25);
  transform: translateY(-4px);
}
.cenik-name { font-weight: 600; }
.cenik-meta { color: var(--muted); white-space: nowrap; text-align: center; }
.cenik-price { font-weight: 700; white-space: nowrap; text-align: right; }
@media (max-width: 620px) {
  .cenik-row { font-size: 0.78rem; gap: 6px; grid-template-columns: 30% minmax(8px, 1fr) 114px minmax(8px, 1fr) 72px; }
}

/* ── Urnik ──────────────────────────────────────────────── */

.urnik-studio + .urnik-studio { margin-top: clamp(36px, 5vw, 56px); }
.urnik-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.urnik-title small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}
.urnik-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.urnik-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate; /* sticky first column needs separate borders */
  border-spacing: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.urnik-table th, .urnik-table td {
  border: 1px solid var(--bg);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
.urnik-table thead th {
  background: #c4c6ca;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.urnik-table tbody th {
  background: #e2e3e7;
  font-weight: 600;
}
.urnik-table thead th:first-child,
.urnik-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
}
@media (max-width: 820px) {
  .urnik-table thead th:first-child,
  .urnik-table tbody th {
    box-shadow: 8px 0 14px -8px rgba(16, 18, 22, 0.28);
  }
}
.urnik-table col.u-time { width: 130px; }
.urnik-table thead th:first-child, .urnik-table tbody th { width: 130px; }
.urnik-table td { background: #fff; font-weight: 600; width: 22%; }
.urnik-table tbody tr:nth-child(even) td:where(:not([class])) { background: #f4f5f7; }
.urnik-table td.u-hh { background: #f2837a; }
.urnik-table td.u-yellow { background: #fbd44b; }
.urnik-table td.u-blue { background: #56b8ee; }
.urnik-table td.u-jazz { background: #f78bbf; }
.urnik-table td.u-heels { background: #8d1f52; color: #fff; }
.urnik-table td.u-gray { background: #a5a7ab; }
.urnik-table td.u-green { background: #5ecc39; }

/* ── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ribbon-track, .photo-track, .stats { animation: none; }
  .stats-roll { overflow-x: auto; } /* stats stay reachable by manual swipe */
  /* scroll reveals stay, but as gentle opacity-only fades (no movement) */
  .reveal, .stagger > * { transform: none; transition: opacity 0.5s ease !important; }
  .hero-title .word > span { transform: none; animation: none; }
  .hero .lead, .hero .eyebrow, .hero-actions, .hero-tags { opacity: 1; transform: none; animation: none; }
}
