/* ==========================================================================
   TENORA · sajt studija (Laravel: resources/views/site, components/site)
   Boje i fontovi iz brend/paleta-konacna.html
   Michroma (naslov) + EB Garamond kurziv (akcenat) + Manrope (tekst)

   Sistem stranice:
   - mreža od 8 kolona, podeljena 5 : 3 (3, 5, 8 su Fibonačijevi brojevi)
   - kičma: tanka uspravna linija na liniji 5, provlači se kroz sekcije
   - tipografska skala 13 / 21 / 34 / 55 / 89 / 144
   - pokret prati tempo treninga: 4 sekunde, ništa brže od toga u ambijentu
   ========================================================================== */

@font-face { font-family: 'Michroma'; src: url('../fonts/michroma-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../fonts/eb-garamond-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --noc:    #0E0C0D;
  --ugalj:  #2B2627;
  --siva:   #8F8885;
  --siva-na-uglju: #9A9390; /* sitan sivi tekst na Uglju: Siva tu ima kontrast 4,3 : 1, ova 4,9 : 1 */
  --bela:   #F2F0EE;
  --rubin:  #C4182C;
  --pesak:  #E6DCCD;

  --rubin-hover: #A81325;
  --line: rgba(242, 240, 238, .13);
  --line-strong: rgba(242, 240, 238, .3);
  --dim: rgba(242, 240, 238, .74);
  --error: #FF8A95;

  --f-display: 'Michroma', 'Eurostile', 'Arial', sans-serif;
  --f-accent: 'EB Garamond', 'Garamond', Georgia, serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* mreža */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --gap: clamp(16px, 1.8vw, 24px);
  --header-h: 72px;

  /* razmak: 8 × Fibonači */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s5: 40px;
  --s8: 64px;
  --s13: clamp(64px, 8vw, 104px);
  --section-y: clamp(104px, 11vw, 168px);

  /* tipografija: Fibonači */
  --t13: 13px;
  --t21: clamp(18px, 1.45vw, 21px);
  --t34: clamp(23px, 2.35vw, 34px);
  --t55: clamp(36px, 3.9vw, 55px);
  --t89: clamp(55px, 6.3vw, 89px);

  /* pokret */
  --tempo: 4s;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* T-šara sa zida: uspravno T i obrnuto T u jednoj pločici */
  --t-noc:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='%231E1A1B'%3E%3Crect x='2' y='2' width='10' height='3'/%3E%3Crect x='5.5' y='2' width='3' height='9'/%3E%3Crect x='16.5' y='14' width='3' height='9'/%3E%3Crect x='13' y='20' width='10' height='3'/%3E%3C/g%3E%3C/svg%3E");
  --t-rubin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='%23B41427'%3E%3Crect x='2' y='2' width='10' height='3'/%3E%3Crect x='5.5' y='2' width='3' height='9'/%3E%3Crect x='16.5' y='14' width='3' height='9'/%3E%3Crect x='13' y='20' width='10' height='3'/%3E%3C/g%3E%3C/svg%3E");
  --t-sjaj:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='%23C4182C'%3E%3Crect x='2' y='2' width='10' height='3'/%3E%3Crect x='5.5' y='2' width='3' height='9'/%3E%3Crect x='16.5' y='14' width='3' height='9'/%3E%3Crect x='13' y='20' width='10' height='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- osnova ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  color-scheme: dark;
  background: var(--noc);
}

body {
  margin: 0;
  background: var(--noc);
  color: var(--bela);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
}
/* glatko samo kad se klikne link na istoj strani; stranica otvorena na adresi sa # odmah stoji na mestu */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body.menu-open { overflow: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--bela); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--bela); color: var(--noc);
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- mreža i kičma ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { min-width: 0; }

/* kičma: linija između 5. i 6. kolone, preko cele visine sekcije */
.spine { position: relative; isolation: isolate; }
.spine::after {
  content: "";
  position: absolute; top: 0; bottom: 0; z-index: -1;
  width: 1px;
  --inner: min(100% - 2 * var(--gutter), var(--max));
  left: calc((100% - var(--inner)) / 2 + (var(--inner) - 7 * var(--gap)) * 5 / 8 + 4.5 * var(--gap));
  background: var(--spine-c, rgba(242, 240, 238, .2));
  pointer-events: none;
}

/* oznaka sekcije visi na kičmi: kvadrat Rubin sedi tačno na liniji */
.tab {
  position: relative;
  font: 600 11px/1.4 var(--f-text);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}
.spine .tab::before {
  content: "";
  position: absolute; top: .4em;
  left: calc(var(--gap) / -2 - 3px);
  width: 7px; height: 7px;
  background: var(--tab-c, var(--rubin));
}
.tab--plain::before { display: none; }

/* ---------- tipografija ---------- */

.title {
  display: flex; flex-direction: column;
  font-weight: 400;
  --accent: var(--rubin);
}
.title-m {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: var(--t34);
  line-height: 1.2;
  letter-spacing: .005em;
}
.title-a {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t89);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--accent);
  margin-top: .02em;
}
/* Michroma nema kerning za par A–T */
.kern-at { letter-spacing: -.09em; }

.lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--dim);
  max-width: 30em;
}

/* ---------- dugmad ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 700 12px/1 var(--f-text);
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--rubin { background: var(--rubin); color: var(--bela); }
.btn--rubin:hover { background: var(--rubin-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--bela); }
.btn--ghost:hover { border-color: var(--bela); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-block;
  font: 700 12px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rubin);
  transition: border-color .2s;
}
.text-link:hover { border-bottom-color: var(--bela); }

/* ---------- zaglavlje ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(14, 12, 13, .9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(14, 12, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; color: var(--bela); padding: 8px 0; }
.brand svg { display: block; width: 122px; height: 17px; fill: currentColor; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  display: block; padding: 10px 0;
  font: 600 11px/1 var(--f-text);
  letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--bela); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--bela);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--noc) var(--t-noc);
  background-size: 26px 26px;
  padding: calc(var(--header-h) + 32px) 0 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 40px; min-height: 100%; }
.mobile-menu ul { border-top: 1px solid var(--line); }
.mobile-menu li a {
  display: block; padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); text-transform: uppercase;
  font-size: 20px; text-decoration: none;
}
.mobile-menu-ig { margin-top: auto; color: var(--siva); font-size: 14px; text-decoration: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  /* bez JavaScript-a meni ne može da se otvori: umesto njega dugme za listu čekanja */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav { display: flex; }
  html:not(.js) .nav-links { display: none; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* ---------- film: trening na mašini, premotava se skrolom (početna) ----------
   Dva rasporeda:
   - osnovni (bez JavaScript-a, smanjen pokret, štednja podataka): prvi kadar filma je naslovna slika, tačke idu jedna
     ispod druge, a uz studio stoji fotografija sale;
   - .motion (klasa na <html>, postavljena pre prvog crtanja): scena stoji preko celog ekrana, skrol premotava film,
     a tekst tačke stoji desno, na zatamnjenoj polovini kadra (vežbačica je levo). */

.film {
  /* ivica teksta je ista kao kod zaglavlja (.container) */
  --edge: max(var(--gutter), (100% - var(--max)) / 2);
  --pad-l: max(var(--edge), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--edge), env(safe-area-inset-right, 0px));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --text-dim: rgba(242, 240, 238, .86);
  /* jedno slovo T sa zida studija, za nabrajanja */
  --t-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23C4182C' d='M0 0H12V3.2H7.6V12H4.4V3.2H0Z'/%3E%3C/svg%3E");
  /* senka za tekst desno: kadar je taman tamo gde stoje slova, a vežbačica levo ostaje vidljiva */
  --shade-wide:
    linear-gradient(to left, rgba(14,12,13,.95) 0%, rgba(14,12,13,.9) 32%, rgba(14,12,13,.55) 47%, rgba(14,12,13,0) 64%),
    linear-gradient(to bottom, rgba(14,12,13,.72) 0%, rgba(14,12,13,0) 20%, rgba(14,12,13,0) 70%, rgba(14,12,13,.82) 100%);
  position: relative;
  background: var(--noc);
}

.film .title { --accent: var(--bela); }
.film .title-m { font-size: clamp(22px, 3vw, 44px); line-height: 1.12; }
.film .title-a { margin-top: .04em; font-size: clamp(52px, 7.2vw, 112px); line-height: .98; text-wrap: balance; }
.film .mark { font: 600 13px/1.5 var(--f-text); letter-spacing: .02em; color: var(--siva); }
.film .lead { font-size: clamp(17px, 1.25vw, 20px); color: var(--text-dim); max-width: 32em; text-wrap: pretty; }
.film .aside { font: italic 400 clamp(21px, 1.7vw, 26px)/1.3 var(--f-accent); color: var(--bela); }

.film .points li { position: relative; padding-left: 26px; color: var(--text-dim); }
.film .points li + li { margin-top: 6px; }
.film .points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 11px;
  background: var(--t-mark) center / contain no-repeat;
}

/* činjenice: brojke (tačka 5) i podaci o studiju (tačka 6) */
.film .facts > div {
  display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line-strong);
}
.film .facts > div:last-child { border-bottom: 1px solid var(--line-strong); }
.film .facts dd { font-size: 15px; line-height: 1.45; }
.film .facts--count > div { grid-template-columns: 4.6rem minmax(0, 1fr); }
.film .facts--count dt { font: 400 21px/1.25 var(--f-display); white-space: nowrap; }
.film .facts--count dd { color: var(--text-dim); }
.film .facts--info dt { font: 600 13px/1.5 var(--f-text); letter-spacing: .02em; color: var(--siva); }

/* osnovni raspored */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.stage-media {
  grid-area: 1 / 1;
  position: relative;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  overflow: hidden;
  background: var(--ugalj);
}
.stage-poster img, .stage-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 32% 30%;
}
.stage-video { display: none; }
.stage-shade { grid-area: 1 / 1; z-index: 1; pointer-events: none; background: var(--shade-wide); }
.stage-dim, .slate { display: none; }

.beats { display: contents; }
.beat {
  padding: clamp(72px, 9vw, 136px) var(--pad-r) clamp(72px, 9vw, 136px) var(--pad-l);
  border-top: 1px solid var(--line);
}
.film .copy {
  width: 100%; max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.film .copy > * { grid-column: 2; }
.film .copy > .mark { grid-column: 1; grid-row: 1; padding-top: .6em; }
.film .copy > .lead, .film .copy > .points, .film .copy > .facts { margin-top: 24px; }
.film .copy > .aside { margin-top: 20px; }

/* udica: preko naslovne slike, desno */
.beat--hook {
  grid-area: 1 / 1; z-index: 2;
  align-self: end;
  border: 0;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 9vh, 104px);
}
.film .beat--hook .copy { display: block; width: min(44vw, 640px); margin: 0 0 0 auto; container-type: inline-size; }
.beat--hook .mark { margin-bottom: 14px; }
.film .beat--hook .title-m { font-size: clamp(28px, 4.2vw, 64px); font-size: calc(100cqw / 9.8); }
.film .beat--hook .title-a { font-size: clamp(76px, 9vw, 150px); font-size: min(calc(100cqw / 3.4), 9vw); }

/* studio: fotografija sale od ivice do ivice, pa tekst. Razmak od ivice ovde nosi tekst, a ne tačka, jer se procenat
   u --edge računa od širine filma samo kad stoji u razmaku ili margini deteta tačke bez razmaka. */
.beat--studio { padding-top: 0; padding-inline: 0; }
.film .beat--studio .copy { width: auto; margin-inline: var(--pad-l) var(--pad-r); }
.studio-photo { display: block; margin-bottom: clamp(48px, 7vw, 96px); }
.studio-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 88vh; object-fit: cover; }

@media (orientation: portrait) {
  .stage-media { min-height: 0; aspect-ratio: 4 / 3; }
  .stage-shade {
    background: linear-gradient(to bottom, rgba(14,12,13,.62) 0%, rgba(14,12,13,0) 22%, rgba(14,12,13,0) 62%, var(--noc) 100%);
  }
  .beat--hook { grid-area: 2 / 1; padding-top: 8px; padding-bottom: clamp(64px, 9vw, 104px); }
  .film .beat--hook .copy { width: 100%; max-width: 640px; margin: 0; }
  .film .beat--hook .title-a { font-size: clamp(76px, 22vw, 150px); font-size: min(calc(100cqw / 3.7), 132px); }
}
@media (max-width: 767px) and (orientation: portrait) {
  .stage-media { aspect-ratio: 1 / 1; }
  .stage-poster img, .stage-video { object-position: 50% 50%; }
  .studio-photo img { aspect-ratio: 3 / 4; max-height: none; }
}
@media (max-width: 767px) {
  .film .copy { grid-template-columns: minmax(0, 1fr); }
  .film .copy > *, .film .copy > .mark { grid-column: 1; grid-row: auto; }
  .film .copy > .mark { padding-top: 0; margin-bottom: 12px; }
}
@media (max-width: 380px) {
  .film .facts--count > div { grid-template-columns: 3.8rem minmax(0, 1fr); gap: 12px; }
  .film .facts--info > div { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 12px; }
}

/* .motion: scena stoji (sticky), skrol premotava film. Visinu filma računa site.js iz data-scroll (zbir tačaka je
   7,4 ekrana; ovde je ista vrednost do pokretanja skripte). */
.motion .film {
  height: calc((var(--film-length, 7.4) + 1) * 100vh);
  height: calc((var(--film-length, 7.4) + 1) * 100svh);
}
.motion .stage {
  position: sticky; top: 0; z-index: 0;
  display: block;
  height: 100vh; height: 100svh;
  overflow: hidden;
  --copy-bottom: calc(76px + var(--safe-b));
}

/* u filmu zaglavlje ostaje providno (kadar ima svoju senku gore), posle filma dobija pozadinu */
.in-film .site-header.is-scrolled {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* slojevi: film (0), fotografija sale (1), senka i zatamnjenje (2), tekst i traka napretka (3) */
.motion .stage-media { position: absolute; inset: 0; z-index: 0; min-height: 0; aspect-ratio: auto; background: var(--noc); }
.motion .stage-video { display: block; opacity: 0; transition: opacity .4s var(--ease); }
.motion .stage.has-video .stage-video { opacity: 1; }
.motion .stage-shade { position: absolute; inset: 0; z-index: 2; }
.motion .stage-dim {
  display: block; position: absolute; inset: 0; z-index: 2;
  background: var(--noc);
  opacity: var(--dim, 0);
  pointer-events: none;
}

.motion .beats {
  position: absolute; inset: 0;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: calc(var(--header-h) + 12px) var(--pad-r) var(--copy-bottom) var(--pad-l);
}
.motion .beat {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end;
  min-height: 0;
  padding: 0; border: 0;
}
.motion .film .copy {
  position: relative; z-index: 3;
  display: block;
  width: min(42vw, 620px); max-width: none; margin: 0;
  container-type: inline-size;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.motion .film .beat.is-active .copy { opacity: 1; transform: none; pointer-events: auto; }
.motion .film .copy > .lead { margin-top: 18px; }
.motion .film .copy > .aside { margin-top: 14px; }
.motion .film .copy > .points, .motion .film .copy > .facts { margin-top: 20px; }

/* oznaka tačke stoji u traci napretka dole levo; u tekstu ostaje samo za čitače ekrana */
.motion .beat .mark {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.motion .film .title-m { font-size: clamp(20px, 2.6vw, 40px); font-size: calc(100cqw / 13.5); }
.motion .film .title-a { font-size: clamp(46px, 5.8vw, 92px); font-size: calc(100cqw / 6.8); }
.motion .film .beat--hook .title-m { font-size: calc(100cqw / 9.8); }
.motion .film .beat--hook .title-a { font-size: min(calc(100cqw / 3.4), 9vw); }
.motion .film .lead { font-size: clamp(16px, 1.2vw, 19px); }

/* fotografija sale se pretapa preko filma u tački 6 (--photo postavlja site.js) */
.motion .beat--studio { padding: 0; }
.motion .studio-photo {
  position: absolute; inset: 0; z-index: 1;
  margin: 0;
  opacity: var(--photo, 0);
  pointer-events: none;
}
.motion .studio-photo img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; }

/* traka napretka: Rubin linija i oznaka tačke */
.motion .slate {
  display: block;
  position: absolute; z-index: 3;
  left: var(--pad-l); bottom: calc(34px + var(--safe-b));
  width: min(34vw, 440px);
  pointer-events: none;
}
.slate-labels { display: grid; font: 600 13px/1.4 var(--f-text); letter-spacing: .02em; color: rgba(242, 240, 238, .9); }
.slate-labels span { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
.slate-labels span.is-active { opacity: 1; }
.slate-line { position: relative; display: block; height: 1px; margin-top: 12px; background: rgba(242, 240, 238, .28); }
.slate-line i {
  position: absolute; left: 0; top: -.5px;
  width: 100%; height: 2px;
  background: var(--rubin);
  transform: scaleX(var(--progress, 0)); transform-origin: 0 50%;
}

/* uspravan ekran: film gore, tekst ispod njega na tamnom polju */
@media (orientation: portrait) {
  .motion .stage { --media-h: min(58%, 118vw); --copy-bottom: calc(64px + var(--safe-b)); }
  .motion .stage-media, .motion .studio-photo { bottom: auto; height: var(--media-h); }
  .motion .stage-shade {
    background: linear-gradient(to bottom, rgba(14,12,13,.62) 0%, rgba(14,12,13,0) 16%, rgba(14,12,13,0) calc(var(--media-h) - 24%), var(--noc) var(--media-h));
  }
  .motion .beat { align-items: stretch; }
  .motion .film .copy { width: 100%; max-width: 640px; }
  .motion .film .beat--hook .title-a { font-size: min(calc(100cqw / 3.7), 132px); }
  .motion .slate { right: var(--pad-r); width: auto; bottom: calc(22px + var(--safe-b)); }
}
@media (max-width: 767px) and (orientation: portrait) {
  .motion .stage-poster img, .motion .stage-video { object-position: 50% 50%; }
}
@media (orientation: portrait) and (max-height: 700px) {
  .motion .stage { --media-h: 50%; }
  .motion .film .lead { font-size: 15px; line-height: 1.5; }
  .motion .film .facts > div { padding: 5px 0; }
  .motion .film .facts--count dt { font-size: 17px; }
  .motion .film .facts dd { font-size: 14px; }
}

/* položen telefon: niže zaglavlje, film preko cele scene, tekst desno i manji */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --header-h: 56px; }
  .motion .stage {
    --copy-bottom: calc(16px + var(--safe-b));
    --shade-wide:
      linear-gradient(to left, rgba(14,12,13,.95) 0%, rgba(14,12,13,.9) 40%, rgba(14,12,13,.5) 54%, rgba(14,12,13,0) 70%),
      linear-gradient(to bottom, rgba(14,12,13,.7) 0%, rgba(14,12,13,0) 26%, rgba(14,12,13,0) 72%, rgba(14,12,13,.8) 100%);
  }
  .motion .stage-shade { background: var(--shade-wide); }
  .motion .beats { padding-top: var(--header-h); }
  .motion .film .copy { width: min(52vw, 520px); }
  .motion .film .title-m { font-size: calc(100cqw / 15); }
  .motion .film .title-a { font-size: calc(100cqw / 8.4); }
  .motion .film .beat--hook .title-m { font-size: calc(100cqw / 10.5); }
  .motion .film .beat--hook .title-a { font-size: min(calc(100cqw / 4.4), 15vh); }
  .motion .film .lead { font-size: 14px; line-height: 1.45; }
  .motion .film .aside { font-size: 18px; }
  .motion .film .copy > .lead { margin-top: 10px; }
  .motion .film .copy > .aside, .motion .film .copy > .points, .motion .film .copy > .facts { margin-top: 10px; }
  .motion .film .points li { font-size: 14px; line-height: 1.45; }
  .motion .film .facts--count, .motion .film .facts--info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .motion .film .facts > div { padding: 4px 0; border-bottom: 0; }
  .motion .film .facts--count > div { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 8px; }
  .motion .film .facts--count dt { font-size: 14px; }
  .motion .film .facts dd { font-size: 12px; line-height: 1.35; }
  .motion .film .facts--info > div { grid-template-columns: 1fr; gap: 0; }
  .motion .slate { width: 30vw; bottom: calc(14px + var(--safe-b)); }
}
/* položen mali telefon (oko 270–340 px visine): šira kolona i manji naslovi, a uvod brojeva i nabrajanje uz Tensor
   otpadaju (tabela i uvod kažu isto), podaci o studiju staju u jedan red, da tekst stane između zaglavlja i dna */
@media (orientation: landscape) and (max-height: 340px) {
  .motion .film .copy { width: min(60vw, 520px); }
  .motion .film .title-m { font-size: calc(100cqw / 18); }
  .motion .film .title-a { font-size: calc(100cqw / 10.5); }
  .motion .film .lead, .motion .film .points li { font-size: 13px; line-height: 1.4; }
  .motion .film .aside { font-size: 16px; }
  .motion .film .beat--numbers .lead, .motion .film .points { display: none; }
  .motion .film .facts--info { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .motion .film .facts > div { padding: 3px 0; }
}

/* ---------- sekcije ---------- */

.section { padding-block: var(--section-y); }

.bg-pattern { background-color: var(--noc); background-image: var(--t-noc); background-size: 26px 26px; }

/* zaglavlje sekcije: naslov levo od kičme, oznaka i uvod desno */
.sec-head { align-items: end; row-gap: var(--s3); }
.sec-title { grid-column: 1 / 6; }
.sec-side {
  grid-column: 6 / 9;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3);
  padding-bottom: 6px;
}

/* kako izgleda trening: vremenska linija preseca kičmu */

.steps {
  position: relative;
  margin-top: var(--s13);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap);
  background: var(--noc);
  padding-bottom: var(--s3);
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
}
.steps::before { background: var(--line-strong); }
.steps::after {
  background: var(--rubin); height: 2px; top: -.5px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--tempo) var(--ease) .2s;
}
.js .steps.is-in::after, html:not(.js) .steps::after { transform: scaleX(1); }

.step { position: relative; padding-top: var(--s5); }
.step::before {
  content: ""; position: absolute; left: 0; top: -8px;
  width: 1px; height: 17px; background: var(--bela);
}
.step-n { font: 400 12px/1 var(--f-display); letter-spacing: .1em; color: var(--siva); }
.step h3 { margin-top: var(--s2); font: 400 17px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.step p { margin-top: 12px; color: var(--dim); font-size: 16px; max-width: 17em; padding-right: var(--s2); }

.closing { margin-top: var(--s13); align-items: end; row-gap: var(--s5); }
.closing-media { grid-column: 1 / 6; overflow: hidden; background: var(--ugalj); }
.closing-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.closing-side { grid-column: 6 / 9; display: grid; gap: var(--s3); justify-items: start; padding-bottom: 10px; }
.closing-side p { color: var(--dim); }
.closing-side .closing-title { color: var(--bela); margin-bottom: var(--s1); }
.closing-title .title-a { font-size: clamp(44px, 4.4vw, 68px); }

/* za koga: pitanje i odgovor razgovaraju preko kičme */

.za-koga { background: var(--ugalj); }

.qa { margin-top: var(--s13); display: grid; gap: var(--s8); }
.qa-row { align-items: baseline; }
.qa-q {
  grid-column: 1 / 6;
  text-align: right;
  font: 600 var(--t34)/1.25 var(--f-text);
  letter-spacing: -.015em;
  padding-right: var(--s3);
}
.qa-a { grid-column: 6 / 9; padding-left: var(--s3); color: var(--dim); }
.qa-a strong {
  display: block;
  font: italic 400 var(--t55)/1 var(--f-accent);
  color: var(--bela);
  margin-bottom: 10px;
}
.qa-a span { display: block; max-width: 22em; }
.qa-row--ask .qa-q { color: var(--siva); }
.qa-row--ask .text-link { margin-top: var(--s3); color: var(--bela); }

/* lista čekanja (Rubin) */

.waitlist {
  background-color: var(--rubin); background-image: var(--t-rubin); background-size: 26px 26px;
  --spine-c: rgba(242, 240, 238, .38);
  --tab-c: var(--noc);
}
.waitlist .title { --accent: var(--bela); }
.waitlist .tab { color: rgba(242, 240, 238, .92); }
.waitlist .lead { margin-top: var(--s5); color: var(--bela); font-weight: 600; }

.waitlist-grid { align-items: start; }
.waitlist-copy { grid-column: 1 / 6; padding-right: var(--s5); }
.waitlist-side { grid-column: 6 / 9; display: grid; gap: var(--s3); }

.perks { margin-top: var(--s8); border-top: 1px solid rgba(242, 240, 238, .32); max-width: 34em; }
.perks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 19px 0; border-bottom: 1px solid rgba(242, 240, 238, .32); }
.perks svg { width: 13px; height: 13px; margin-top: 6px; fill: var(--bela); }
.perks p { color: rgba(242, 240, 238, .92); }
.perks b { color: var(--bela); font-weight: 700; }

.form-card {
  background: var(--noc);
  padding: clamp(24px, 2.8vw, 40px);
  box-shadow: 0 2px 4px rgba(14,12,13,.2), 0 40px 80px -20px rgba(14,12,13,.55);
}
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field > label, .field > legend {
  font: 600 11px/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
  padding: 0;
}
.field legend { margin-bottom: 10px; }

.input {
  width: 100%; height: 56px; padding: 0 16px;
  background: var(--ugalj); color: var(--bela);
  border: 1px solid transparent; border-radius: 0;
  font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
.input::placeholder { color: var(--siva-na-uglju); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--bela); }
.input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 66px; padding: 0 6px;
  background: var(--ugalj); border: 1px solid transparent;
  font: 700 15px/1.2 var(--f-text); text-align: center;
  transition: border-color .2s, background-color .2s;
}
.choice small { font-size: 12px; font-weight: 400; color: var(--siva-na-uglju); }
.choice:hover span { border-color: var(--line-strong); }
.choice input:checked + span { border-color: var(--rubin); background: #3A1B20; }
.choice input:checked + span small { color: var(--dim); }
.choice input:focus-visible + span { outline: 2px solid var(--bela); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: rgba(255, 138, 149, .6); }

.field-error { font-size: 13px; line-height: 1.4; color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13px; line-height: 1.55; color: var(--siva); }
.form-note a { color: var(--dim); text-underline-offset: 3px; }
.form-note a:hover { color: var(--bela); }
.form-status:empty { display: none; }
.form-status { font-size: 14px; line-height: 1.55; padding: 16px; background: var(--ugalj); border-left: 2px solid var(--rubin); }
.form-status a { color: var(--bela); font-weight: 700; }

.form-success { display: grid; gap: 24px; justify-items: start; }
.form-success .title-a { font-size: clamp(56px, 6vw, 89px); }
.form-success .title:focus { outline: none; }
.form-success-text { color: var(--dim); }

/* ---------- podnožje ---------- */

.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noc);
  padding: clamp(80px, 10vw, 128px) 0 28px;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--t-sjaj); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.16) 38%, rgba(0,0,0,0) 70%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,.16) 38%, rgba(0,0,0,0) 70%);
}

.footer-top { align-items: start; row-gap: var(--s5); }
.footer-tag { grid-column: 1 / 6; }
.footer-tag .title-m { font-size: clamp(18px, 2vw, 26px); }
.footer-tag .title-a { font-size: var(--t55); }
.footer-info { grid-column: 6 / 9; display: grid; gap: var(--s3); }
.footer-info > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.footer-info dt { font: 600 10px/2 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--siva); }
.footer-info dd { font-size: 15px; line-height: 1.6; color: var(--dim); }
.footer-info a { text-decoration: none; color: var(--bela); }
.footer-info a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-logo {
  display: block; width: 100%; height: auto; aspect-ratio: 627 / 85;
  margin-top: clamp(72px, 10vw, 140px);
  fill: var(--bela);
}
.footer-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 600 11px/1.4 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--siva);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--bela); }

/* ---------- politika privatnosti i greška 404 ---------- */

.page { padding-top: calc(var(--header-h) + var(--s8)); }
.prose { max-width: 42em; }
.prose > .title { margin: var(--s3) 0 var(--s2); }
.prose-date { font-size: 14px; color: var(--siva); }
.prose h2 {
  margin-top: var(--s8);
  font: 400 var(--t21)/1.35 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
}
.prose p, .prose ul { margin-top: var(--s2); color: var(--dim); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--rubin); }
.prose strong { color: var(--bela); font-weight: 600; }
.prose a { color: var(--bela); text-underline-offset: 3px; }

.not-found { min-height: 78vh; min-height: 78svh; display: flex; align-items: center; }
.not-found .title { margin: var(--s3) 0 var(--s5); }
.not-found-actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- srednje širine ---------- */

@media (max-width: 1100px) {
  .waitlist-grid { row-gap: var(--s8); }
  .waitlist-copy { grid-column: 1 / -1; padding-right: 0; }
  .waitlist-side { grid-column: 1 / 7; }
  .waitlist.spine::after { display: none; }
  .waitlist .tab::before { display: none; }
}

/* ---------- telefon i tablet: jedna kolona, kičma se gasi ---------- */

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); }
  .grid > * { grid-column: 1 / -1; grid-row: auto; }
  .spine::after, .spine .tab::before { display: none; }

  /* oznaka iznad naslova, uvod ispod */
  .sec-head { row-gap: var(--s2); }
  .sec-side { display: contents; }
  .sec-side .tab { order: 0; }
  .sec-head .sec-title { order: 1; }
  .sec-side .lead { order: 2; margin-top: var(--s1); }

  .steps { grid-template-columns: 1fr; row-gap: 36px; padding-left: 40px; padding-bottom: 0; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .steps::after { width: 2px; left: 6.5px; transform: scaleY(0); transform-origin: top; }
  .js .steps.is-in::after, html:not(.js) .steps::after { transform: scaleY(1); }
  .step { padding-top: 0; }
  .step::before { left: -40px; top: 0; width: 15px; height: 1px; top: 8px; }
  .step p { max-width: 28em; }

  .closing-media img { aspect-ratio: 4 / 3; }

  .qa { gap: var(--s5); }
  .qa-row { row-gap: 10px; }
  .qa-q { text-align: left; padding-right: 0; font-size: 21px; }
  .qa-a { padding-left: 0; }
  .qa-a strong { font-size: 40px; }

  .waitlist-side { grid-column: 1 / -1; max-width: 560px; }

  .footer-info > div { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 480px) {
  .waitlist .btn, .closing-side .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; line-height: 1.35; }
  /* Without JavaScript the header shows this button instead of the menu: on one line, it still fits beside the logo at 320 px. */
  .site-header .btn--sm { white-space: nowrap; padding-inline: 14px; }
}
@media (max-width: 400px) {
  .choice span { font-size: 14px; }
  .choice small { font-size: 11px; }
}

/* ---------- smanjen pokret ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .steps::after { transform: none !important; }
}
