/* =========================================================
   vizint.rs — Ekonomija koja čuva ono od čega zavisi
   Vizuelni sistem: prirodni luksuz
   ========================================================= */

:root {
  /* Paleta */
  --charcoal: #141714;
  --ink: #161A16;
  --ink-2: #2B302A;
  --ink-3: #565E53;
  --forest: #1F3A2E;
  --forest-2: #284637;
  --forest-deep: #0F1A15;
  --olive: #6B7246;
  --sage: #A8B59A;
  --paper: #F7F5EF;
  --paper-2: #EAE4D6;
  --paper-3: #E2DBCA;
  --cream: #EFE8DA;
  --earth: #8A6A4A;
  --water: #5E93A6;
  --sun: #E8C27E;
  --line-d: rgba(22, 26, 22, .14);
  --line-l: rgba(247, 245, 239, .16);

  /* Tipografija */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Ritam */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;

  /* Kontekst sekcije (svetla podrazumevano) */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-3);
  --accent: var(--olive);
  --line: var(--line-d);
  --node-bg: var(--paper);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p, h1, h2, h3, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--sage); color: var(--ink); }

.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;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografija ---------- */

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.h-xxl, .h-xl, .h-lg {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .94;
  color: var(--fg);
}
.h-xxl { font-size: clamp(54px, 10vw, 172px); }
.h-xl  { font-size: clamp(42px, 7vw, 116px); }
.h-lg  { font-size: clamp(34px, 4.8vw, 76px); }
.h-xxl em, .h-xl em, .h-lg em { letter-spacing: -0.02em; }

.lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--muted);
}
.lead strong { color: var(--fg); font-weight: 600; }

.statement {
  margin-top: 40px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 30ch;
}
.statement strong { color: var(--fg); font-weight: 600; }

.note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 70ch;
}
.note strong { color: var(--fg); }

/* ---------- Dugmad ---------- */

.btn {
  --mx: 0px; --my: 0px; --s: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  transition: transform .35s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { --s: 1.035; }
.btn:active { --s: .98; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--forest); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--cream); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Sekcije ---------- */

.sec {
  position: relative;
  padding-block: clamp(96px, 13vw, 200px);
  background: var(--bg);
  color: var(--fg);
}
.sec--paper  { --bg: var(--paper); }
.sec--cream  { --bg: var(--cream); --node-bg: var(--cream); }
.sec--forest {
  --bg: var(--forest); --fg: var(--paper); --muted: rgba(247,245,239,.74);
  --accent: var(--sage); --line: var(--line-l); --node-bg: var(--forest);
}
.sec--charcoal {
  --bg: var(--charcoal); --fg: var(--paper); --muted: rgba(247,245,239,.7);
  --accent: var(--sage); --line: var(--line-l); --node-bg: var(--charcoal);
}
.sec--water {
  --bg: #E6ECE8; --accent: #3F7486; --node-bg: #E9EEEA;
  background: linear-gradient(180deg, #E6ECE8 0%, #EEF1EA 60%, var(--paper) 100%);
}

.sec__head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.sec__head--center { justify-items: center; text-align: center; }
.sec__head--center .lead { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split__text { display: grid; gap: 24px; align-content: start; }

/* ---------- Reveal ---------- */

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

/* =========================================================
   NAVIGACIJA
   ========================================================= */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--ink);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height .4s var(--ease);
}
.nav.is-compact {
  background: rgba(247, 245, 239, .84);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line-d);
}
.nav.is-compact .nav__inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { width: 34px; height: 34px; transition: width .4s var(--ease), height .4s var(--ease); }
.nav.is-compact .brand__mark { width: 28px; height: 28px; }
.brand__word { font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  text-decoration: none;
  padding-block: 6px;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links > a:not(.btn):hover::after,
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta-mobile { display: none; }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 0; background: transparent;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: max(100vh, 760px);
  min-height: max(100svh, 760px);
  background: #F1ECE1;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene {
  position: absolute;
  inset: auto 0 0 0;
  height: 76%;
  z-index: -1;
}
.scene { width: 100%; height: 100%; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(241,236,225,.92) 0%, rgba(241,236,225,.55) 48%, rgba(241,236,225,0) 72%);
}
.hero__content {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px));
  padding-bottom: 40px;
}
.hero .eyebrow { color: var(--olive); }
.hero__title {
  margin-top: 20px;
  font-size: clamp(46px, 7.4vw, 140px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease-out);
}
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.is-loaded .hero__title .line > span { transform: none; }
html:not(.js) .hero__title .line > span { transform: none; }
.hero__title em { color: var(--forest); }
.hero__lead {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-2);
  --d: .5s;
}
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; --d: .65s; }
.hero .btn--line { color: var(--ink); }
.hero .btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Scena — animacije */
.veh { animation: drive var(--dur, 22s) linear infinite; animation-delay: var(--delay, 0s); }
.veh--rev { animation-name: drive-rev; }
@keyframes drive { from { transform: translateX(-260px); } to { transform: translateX(1860px); } }
@keyframes drive-rev { from { transform: translateX(1860px); } to { transform: translateX(-260px); } }
.blades { animation: spin var(--spin, 7s) linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.birds-g { animation: birds 38s linear infinite; }
@keyframes birds { from { transform: translate(-200px, 0); } to { transform: translate(1800px, -60px); } }
.walker { animation: walk var(--dur, 60s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes walk { from { transform: translateX(0); } to { transform: translateX(var(--dist, 300px)); } }
.gh-glow { animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: .95; } }

/* =========================================================
   PITANJE (reč po reč)
   ========================================================= */

.question {
  position: relative;
  height: 230vh;
  background: var(--charcoal);
  color: var(--paper);
}
.question__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding-inline: var(--gutter);
}
.question__text {
  max-width: 18ch;
  font-size: clamp(36px, 6vw, 104px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
}
.question__text .w {
  display: inline-block;
  opacity: .12;
  transition: opacity .5s var(--ease), filter .5s;
  filter: blur(2px);
}
.question__text .w.is-on { opacity: 1; filter: none; }
.question__text .w--em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--sage); }
html:not(.js) .question { height: auto; }
html:not(.js) .question__sticky { position: static; padding-block: 120px; }

/* =========================================================
   CIKLUS (generička komponenta)
   ========================================================= */

.cycle {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.cycle--compact { grid-template-columns: 1fr; gap: 28px; }
.cycle__fig { width: 100%; max-width: 720px; margin-inline: auto; }
.cycle--compact .cycle__fig { max-width: 560px; }
.cycle__svg { width: 100%; height: auto; overflow: visible; }

.cy-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cy-flow {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-dasharray: 3 14; stroke-linecap: round;
  animation: dash 3s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -68; } }
.cy-dot { fill: var(--accent); }
.cy-dot--b { fill: var(--water); }
.cy-node { cursor: pointer; outline: none; }
.cy-node circle {
  fill: var(--node-bg);
  stroke: var(--fg);
  stroke-opacity: .5;
  stroke-width: 1.5;
  transition: fill .35s, stroke .35s, transform .45s var(--ease-out);
  transform-box: fill-box; transform-origin: center;
}
.cy-node text.cy-num {
  font: 700 13px var(--sans);
  fill: var(--fg);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.cy-node:hover circle, .cy-node:focus-visible circle { stroke-opacity: 1; transform: scale(1.12); }
.cy-node:focus-visible circle { stroke: var(--water); stroke-width: 3; }
.cy-node.is-active circle { fill: var(--accent); stroke: var(--accent); stroke-opacity: 1; transform: scale(1.18); }
.cy-node.is-active text.cy-num { fill: var(--bg); }
.cy-label {
  font: 700 13px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  fill: var(--muted);
  pointer-events: none;
  transition: fill .3s;
}
.cy-label.is-active { fill: var(--fg); }
.cy-center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  fill: var(--fg);
  text-anchor: middle;
}
.cy-center-sub { font: 700 11px var(--sans); letter-spacing: .2em; fill: var(--muted); text-anchor: middle; }

.cycle__panel { display: grid; gap: 18px; align-content: start; }
.cycle__step { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cycle__title {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.cycle__text { color: var(--muted); font-size: 17px; max-width: 46ch; min-height: 5.2em; }
.cycle__list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.cycle__list button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .3s, color .3s, border-color .3s;
}
.cycle__list button:hover { border-color: var(--fg); color: var(--fg); }
.cycle__list button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.cycle--water .cy-flow { stroke: var(--water); stroke-width: 3; }
.cycle--water .cy-node.is-active circle { fill: var(--water); stroke: var(--water); }
.cycle--water .cy-dot { fill: var(--water); }

/* =========================================================
   MAPA SISTEMA
   ========================================================= */

.sysmap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sysmap__fig { width: 100%; max-width: 720px; margin-inline: auto; }
.sysmap svg { width: 100%; height: auto; overflow: visible; }
.sm-link {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: .16;
  stroke-width: 1.2;
  transition: stroke-opacity .4s, stroke .4s, stroke-width .4s;
}
.sm-spoke { stroke: var(--fg); stroke-opacity: .08; stroke-width: 1; }
.sm-link.is-hot {
  stroke: var(--sun);
  stroke-opacity: .95;
  stroke-width: 2.2;
  stroke-dasharray: 6 8;
  animation: dash 2.4s linear infinite;
}
.sysmap.has-focus .sm-link:not(.is-hot) { stroke-opacity: .05; }
.sm-node { cursor: pointer; outline: none; transition: opacity .4s; }
.sm-node circle {
  fill: var(--node-bg);
  stroke: var(--fg);
  stroke-opacity: .45;
  stroke-width: 1.5;
  transition: fill .35s, stroke .35s, transform .45s var(--ease-out);
  transform-box: fill-box; transform-origin: center;
}
.sm-node text {
  font: 700 13px var(--sans);
  letter-spacing: .14em;
  fill: var(--fg);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.sm-node:hover circle, .sm-node:focus-visible circle { transform: scale(1.06); stroke-opacity: 1; }
.sm-node:focus-visible circle { stroke: var(--water); stroke-width: 3; }
.sysmap.has-focus .sm-node { opacity: .3; }
.sysmap.has-focus .sm-node.is-hot { opacity: 1; }
.sm-node.is-hot circle { stroke: var(--sun); stroke-opacity: 1; }
.sm-node.is-active { opacity: 1 !important; }
.sm-node.is-active circle { fill: var(--sun); stroke: var(--sun); }
.sm-node.is-active text { fill: var(--ink); }
.sm-core circle { fill: var(--sage); }
.sm-core text { fill: var(--ink); font: italic 400 26px var(--serif); letter-spacing: 0; text-anchor: middle; }
.sm-core .sm-core-sub { font: 700 10px var(--sans); letter-spacing: .2em; }
.sm-pulse {
  fill: none; stroke: var(--sage); stroke-width: 1.5;
  animation: pulse 3.6s var(--ease) infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.sysmap__panel { display: grid; gap: 16px; align-content: start; }
.sysmap__title { font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.sysmap__text { color: var(--muted); max-width: 46ch; }
.sysmap__rel { display: grid; gap: 10px; margin-top: 8px; }
.sysmap__rel li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.sysmap__rel b { color: var(--sun); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.sysmap__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sysmap__list button {
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background-color .3s, color .3s;
}
.sysmap__list button[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }

/* =========================================================
   POGLAVLJE
   ========================================================= */

.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
  --accent: var(--sage);
}
.chapter__inner { padding-block: 160px 220px; }
.chapter__title {
  font-size: clamp(110px, 26vw, 420px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: .8;
  margin-top: 18px;
}
.chapter__sub {
  margin-top: 28px;
  font-size: clamp(24px, 3vw, 44px);
  color: rgba(247,245,239,.78);
  max-width: 24ch;
  line-height: 1.15;
}
.chapter__skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: clamp(120px, 18vw, 260px);
  color: #1F2620;
}

/* =========================================================
   HORIZONTALNI SKROL — GRAD
   ========================================================= */

.hscroll {
  position: relative;
  background: var(--cream);
  --bg: var(--cream);
}
.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
}
.hscroll__intro { display: grid; gap: 14px; }
.hscroll__track {
  display: flex;
  gap: 20px;
  padding-inline: var(--gutter);
  will-change: transform;
  outline: none;
}
.panel {
  flex: 0 0 clamp(300px, 30vw, 440px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line-d);
  transition: transform .6s var(--ease-out);
}
.panel:hover { transform: translateY(-6px); }
.panel__num { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--olive); }
.panel__art {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 16px;
  background: var(--paper-3);
  overflow: hidden;
  transition: transform .8s var(--ease-out);
}
.panel:hover .panel__art { transform: scale(1.02); }
.panel h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.panel p { font-size: 15px; color: var(--ink-3); }
.panel .panel__why { color: var(--ink-2); }
.panel__why strong { color: var(--olive); }
.hscroll__progress {
  margin-inline: var(--gutter);
  height: 2px;
  background: var(--line-d);
  max-width: var(--max);
}
.hscroll__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--hp, 0));
}
.hscroll.is-native .hscroll__sticky { position: static; height: auto; padding-block: 96px; }
.hscroll.is-native .hscroll__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
  transform: none !important;
}
.hscroll.is-native .panel { scroll-snap-align: start; }
.hscroll.is-native .hscroll__progress { display: none; }

/* =========================================================
   ZGRADA — SLOJEVI
   ========================================================= */

.layers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
}
.layers__figure { max-width: 460px; width: 100%; margin-inline: auto; }
.building .bl { transition: opacity .45s, transform .6s var(--ease-out); }
.building .bl__solar path { fill: var(--ink-2); }
.layers.has-active .bl { opacity: .3; }
.layers.has-active .bl.is-active { opacity: 1; transform: translateX(-18px); }
.layers__list { display: grid; }
.layer {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line-d);
  background: transparent;
  text-align: left;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color .3s, padding .45s var(--ease-out);
}
.layer__n { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--olive); }
.layer:hover, .layer.is-active { color: var(--ink); padding-left: 10px; }
.layer.is-active .layer__t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.layers__info {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: var(--cream);
  min-height: 150px;
}
.layers__info-title { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.layers__info p:last-child { color: var(--ink-3); }

/* =========================================================
   HLAĐENJE
   ========================================================= */

.toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.toggle__btn {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}
.toggle__btn.is-on { background: var(--fg); color: var(--bg); }

.cooling__svg { width: 100%; height: auto; border-radius: 24px; overflow: hidden; }
.c-sky-hot, .c-sky-cool, .c-hot, .c-cool, .c-ground-hot { transition: opacity .9s var(--ease); }
.cooling[data-state="hot"] .c-cool, .cooling[data-state="hot"] .c-sky-cool { opacity: 0; }
.cooling[data-state="cool"] .c-hot, .cooling[data-state="cool"] .c-sky-hot, .cooling[data-state="cool"] .c-ground-hot { opacity: 0; }
.heatwaves path { animation: shimmer 2.4s ease-in-out infinite; }
.heatwaves path:nth-child(even) { animation-delay: -1.2s; }
@keyframes shimmer { 0%, 100% { transform: translateY(0); opacity: .9; } 50% { transform: translateY(-10px); opacity: .4; } }
.fountain path { stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
.birds { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, -14px); } }

.cooling__meter {
  display: grid;
  grid-template-columns: auto minmax(120px, 280px) 1fr;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}
.cooling__label { font-weight: 600; font-size: 15px; }
.cooling__label small { font-weight: 400; color: var(--muted); }
.meter { height: 8px; border-radius: 99px; background: var(--line-d); overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: 88%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--water), var(--sun), #C46F3A);
  background-size: 280px 100%;
  transition: width .9s var(--ease-out);
}
.cooling[data-state="cool"] .meter__fill { width: 34%; }
.cooling__state { color: var(--muted); font-size: 15px; }

/* =========================================================
   STANIŠTE
   ========================================================= */

.ticks { display: grid; gap: 10px; margin-top: 8px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--sage);
}
.corridor svg { width: 100%; height: auto; border-radius: 24px; }
.corridor figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.corr-flow { animation: dash 4s linear infinite; }

/* =========================================================
   JESTIVI GRAD
   ========================================================= */

.edible { counter-reset: e; border-bottom: 1px solid var(--line-d); }
.edible li {
  counter-increment: e;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--line-d);
  transition: background-color .4s;
}
.edible li::before {
  content: counter(e, decimal-leading-zero);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--olive);
}
.edible__where { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4.4vw, 68px); line-height: 1; }
.edible__what { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.edible__why { color: var(--ink-3); }
.edible li:hover .edible__where { color: var(--olive); }

/* =========================================================
   JAVNI PROSTOR
   ========================================================= */

.public { overflow: hidden; }
.public .wrap { display: grid; gap: 24px; }
.marquee {
  margin-block: clamp(56px, 8vw, 120px);
  overflow: hidden;
  border-block: 1px solid var(--line-l);
  padding-block: clamp(20px, 3vw, 40px);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__track span {
  font-size: clamp(44px, 7vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  padding-right: .6em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(247,245,239,.5);
}
.marquee__track span:nth-child(3n+1) { color: var(--sage); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.bigquote p {
  font-family: var(--serif);
  font-size: clamp(40px, 6.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.bigquote em { color: var(--sage); }
.bigquote--dark { margin-top: 12px; }
.bigquote--dark p { font-size: clamp(30px, 4vw, 64px); max-width: 24ch; color: var(--ink-2); }
.bigquote--dark em { color: var(--olive); }

/* =========================================================
   MOBILNOST
   ========================================================= */

.mobility {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.pyramid { display: grid; gap: 8px; }
.pyramid li {
  width: var(--w);
  min-width: min(100%, 260px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--paper);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.pyramid li:first-child { background: var(--forest); color: var(--paper); }
.pyramid li:nth-child(2) { background: var(--olive); color: var(--paper); }
.pyramid li span { font-size: 11px; letter-spacing: .16em; opacity: .7; }
.pyramid li:hover { transform: translateX(8px); }
.street svg { width: 100%; height: auto; border-radius: 24px; }
.mv { animation: drive 20s linear infinite; }
.mv--walk1 { animation: walk-l 46s linear infinite; }
.mv--walk2 { animation: walk-r 60s linear infinite; }
.mv--bike  { animation: drive 16s linear infinite; }
.mv--bike2 { animation: drive-rev 19s linear infinite; animation-delay: -8s; }
.mv--tram  { animation: drive 26s linear infinite; animation-delay: -6s; }
.mv--bus   { animation: drive-rev 18s linear infinite; animation-delay: -3s; }
.mv--ev    { animation: drive 12s linear infinite; animation-delay: -9s; }
.mv--h2    { animation: drive-rev 24s linear infinite; animation-delay: -15s; }
@keyframes walk-l { from { transform: translateX(-40px); } to { transform: translateX(1240px); } }
@keyframes walk-r { from { transform: translateX(1240px); } to { transform: translateX(-40px); } }

/* =========================================================
   TOK (koraci)
   ========================================================= */

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: clamp(40px, 5vw, 72px);
  counter-reset: f;
}
.flow li {
  counter-increment: f;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 34px 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  animation: flowpulse 8s var(--ease) infinite;
  animation-delay: calc(var(--i, 0) * 1s);
}
.flow li::before {
  content: counter(f);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11px;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute; right: 10px; top: 50%;
  width: 14px; height: 1.5px; background: var(--line);
}
@keyframes flowpulse {
  0%, 14% { color: var(--fg); }
  20%, 100% { color: var(--muted); }
}

/* =========================================================
   RUTA OTPADA
   ========================================================= */

.route {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.route__map { width: 100%; height: auto; border-radius: 24px; background: var(--paper-3); }
.route__side { display: grid; gap: 18px; }
.route__stat { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.route__hint { color: var(--muted); font-size: 15px; }
.route__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-street { stroke: #CFC7B4; stroke-width: 14; stroke-linecap: round; }
.rt-path { fill: none; stroke: var(--forest); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.rt-path.is-drawn { transition: stroke-dashoffset var(--t, 4s) linear; stroke-dashoffset: 0; }
.rt-bin rect.rt-body { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.rt-bin rect.rt-fill { fill: var(--sage); transition: height .6s var(--ease-out), y .6s var(--ease-out), fill .4s; }
.rt-bin.is-full rect.rt-fill { fill: var(--forest); }
.rt-bin.is-done rect.rt-fill { fill: var(--sage); }
.rt-bin text { font: 700 10px var(--sans); fill: var(--ink-3); text-anchor: middle; }
.rt-depot rect { fill: var(--earth); }
.rt-depot text { font: 700 11px var(--sans); letter-spacing: .14em; fill: var(--paper); text-anchor: middle; }

/* =========================================================
   ENERGIJA
   ========================================================= */

.energy__track {
  overflow-x: auto;
  padding-block: 24px 8px;
  scrollbar-width: thin;
  outline: none;
}
.energy__flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  min-width: 920px;
}
.energy__flow::before {
  content: "";
  position: absolute; left: 7%; right: 7%; top: 13px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0 40%, var(--sun) 50%, transparent 60% 100%) 0 0 / 300% 100%, var(--line-l);
  animation: current 3.2s linear infinite;
}
.energy[data-mode="night"] .energy__flow::before {
  background: linear-gradient(90deg, transparent 0 40%, var(--water) 50%, transparent 60% 100%) 0 0 / 300% 100%, var(--line-l);
  left: 36%;
}
@keyframes current { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }
.energy__flow li {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding-inline: 8px;
  transition: opacity .6s var(--ease);
}
.energy__flow li.is-off { opacity: .25; }
.en__dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--sun);
  position: relative;
  margin-bottom: 10px;
}
.en__dot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sun);
}
.energy[data-mode="night"] .en__dot { border-color: var(--water); }
.energy[data-mode="night"] .en__dot::after { background: var(--water); }
.energy__flow li { align-content: start; }
.energy__flow b { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; line-height: 1.15; }
.energy__flow small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.energy__note { margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); max-width: 56ch; min-height: 3em; }
.defs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: clamp(48px, 6vw, 88px);
}
.defs div { padding-block: 20px; border-top: 1px solid var(--line); }
.defs dt { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.defs dd { color: var(--muted); font-size: 15px; }

/* =========================================================
   PRELAZ GRAD → SELO
   ========================================================= */

.morph {
  --p: 0;
  position: relative;
  height: 280vh;
  background: #E3DCC6;
}
.morph__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.morph__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-city {
  opacity: calc(1 - var(--p) * 1.25);
  transform: translateY(calc(var(--p) * 260px)) scaleY(calc(1 - var(--p) * .6));
  transform-origin: 50% 720px;
}
.m-village { opacity: clamp(0, calc(var(--p) * 1.6 - .3), 1); }
.m-houses { transform: translateY(calc((1 - var(--p)) * 60px)); }
.m-asphalt { opacity: calc(1 - var(--p)); }
.m-soil { opacity: var(--p); }
.m-rows { opacity: clamp(0, calc(var(--p) * 1.5 - .5), .8); }
.morph__titles {
  position: absolute; inset: 0;
  display: grid;
  place-items: start;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 0;
  max-width: var(--max);
  margin-inline: auto;
}
.morph__from, .morph__to { grid-area: 1 / 1; }
.morph__from {
  font-size: clamp(110px, 26vw, 420px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: .8;
  color: var(--ink);
  opacity: clamp(0, calc(1 - var(--p) * 2.2), 1);
  transform: translateY(calc(var(--p) * -80px));
}
.morph__to {
  opacity: clamp(0, calc(var(--p) * 2.2 - 1.1), 1);
  transform: translateY(calc((1 - var(--p)) * 60px));
  color: var(--ink);
  --accent: var(--olive);
}
.morph__to .chapter__sub { color: var(--ink-2); }
html:not(.js) .morph { height: auto; }
html:not(.js) .morph__sticky { position: relative; }

/* =========================================================
   SELO — TRAKA
   ========================================================= */

.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(48px, 6vw, 88px) var(--gutter) 24px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  outline: none;
}
.strip__item {
  flex: 0 0 clamp(260px, 24vw, 330px);
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 300px;
  padding: 28px;
  border-radius: 24px;
  background: var(--paper);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.strip__item:hover { transform: translateY(-6px); background: var(--forest); color: var(--paper); }
.strip__item:hover p { color: rgba(247,245,239,.78); }
.strip__item span { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--olive); }
.strip__item:hover span { color: var(--sage); }
.strip__item h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; margin-top: auto; }
.strip__item p { color: var(--ink-3); font-size: 15px; transition: color .4s; }

/* =========================================================
   STAKLENIK
   ========================================================= */

.gh {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.gh__stage { position: relative; }
.gh__svg { width: 100%; height: auto; border-radius: 24px; }
.gh__led, .gh__light, .gh__vent, .gh__plants { transition: opacity .6s, transform .8s var(--ease-out); }
.gh__light { opacity: .1; }
.gh[data-sensor="light"] .gh__light { opacity: .5; }
.gh[data-sensor="temp"] .gh__vent { transform: translate(-6px, -22px) rotate(-12deg); transform-box: fill-box; transform-origin: left bottom; }
.gh__drip { animation: dash 2s linear infinite; opacity: .4; }
.gh[data-sensor="water"] .gh__drip { opacity: 1; }
.gh[data-sensor="co2"] .gh__plants { filter: drop-shadow(0 0 6px rgba(232,194,126,.8)); }
.gh[data-sensor="soil"] .gh__plants, .gh[data-sensor="nutri"] .gh__plants { transform: translateY(-6px); }
.hotspot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  min-width: 52px; height: 52px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background-color .3s, color .3s, transform .4s var(--ease-out);
}
.hotspot::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: inherit;
  border: 1.5px solid var(--olive);
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hotspot:hover { transform: translate(-50%, -50%) scale(1.08); }
.hotspot.is-on { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tabs button {
  min-height: 44px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-d);
  background: transparent;
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gh__info h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 3.4vw, 52px); line-height: 1; margin-bottom: 14px; }
.gh__why { font-size: 18px; font-weight: 600; line-height: 1.45; margin-bottom: 10px; }
.gh__how { color: var(--ink-3); }

/* =========================================================
   FARMA, ČINJENICE
   ========================================================= */

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.facts li { display: grid; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line); }
.facts b { font-size: 19px; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 15px; }
.facts li:nth-child(2) { --d: .08s; } .facts li:nth-child(3) { --d: .16s; } .facts li:nth-child(4) { --d: .24s; }
.facts li:nth-child(5) { --d: .32s; } .facts li:nth-child(6) { --d: .4s; }

/* =========================================================
   ROBOTIKA
   ========================================================= */

.robo { padding-bottom: clamp(80px, 10vw, 160px); }
.field {
  height: clamp(300px, 40vw, 560px);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.field svg { width: 100%; height: 100%; }
.sensor-ping { fill: none; stroke: var(--water); stroke-width: 2; animation: pulse 2.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.robo__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 28px;
}
.robo__list li { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line-d); }
.robo__list b { font-size: 18px; letter-spacing: -0.02em; }
.robo__list span { color: var(--ink-3); font-size: 15px; }

/* =========================================================
   ZEMLJIŠTE
   ========================================================= */

.soil {
  position: relative;
  display: grid;
  border-radius: 24px;
  overflow: hidden;
  min-height: 560px;
  grid-template-rows: 1fr 1.1fr 1.2fr 1fr;
}
.soil__layer {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px 28px;
  color: var(--paper);
  transform: translateX(-24px);
  opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity 1s var(--ease);
}
.soil.is-in .soil__layer { transform: none; opacity: 1; }
.soil__layer b { font-size: 20px; letter-spacing: -0.02em; }
.soil__layer span { font-size: 14px; opacity: .82; max-width: 38ch; }
.soil__l1 { background: #5F6E43; }
.soil__l2 { background: #4A3A2B; transition-delay: .15s; }
.soil__l3 { background: #5B4635; transition-delay: .3s; }
.soil__l4 { background: #6D5A47; transition-delay: .45s; }
.soil__l3::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(232,194,126,.5) 1.5px, transparent 2px);
  background-size: 22px 22px;
  opacity: .5;
  z-index: -1;
}
.soil__roots {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.soil__roots path {
  fill: none; stroke: #E5D3AE; stroke-width: 2; opacity: .45;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  transition: stroke-dashoffset 3.2s var(--ease) .6s;
  vector-effect: non-scaling-stroke;
}
.soil.is-in .soil__roots path { stroke-dashoffset: 0; }
.js .soil:not(.is-in) .soil__layer { opacity: 0; }
html:not(.js) .soil__layer { opacity: 1; transform: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(40px, 5vw, 72px); }
.pills li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}

/* =========================================================
   MAPA HRANE
   ========================================================= */

.foodmap svg { width: 100%; height: auto; }
.foodflow { animation: dash 2.2s linear infinite; }
.fm-node circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.fm-node.is-farm circle { fill: var(--olive); stroke: var(--olive); }
.fm-node text { fill: var(--ink); }
.fm-node .fm-n { fill: var(--olive); font-size: 11px; }
.fm-node.is-farm .fm-n { fill: var(--paper); }

/* =========================================================
   POLJOPRIVREDNIK
   ========================================================= */

.farmer {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #2A3A33;
  color: var(--paper);
  isolation: isolate;
  --accent: var(--sun);
  --fg: var(--paper);
}
.farmer__scene { position: absolute; inset: 0; z-index: -1; }
.farmer__scene svg { width: 100%; height: 100%; }
.farmer__content { padding-top: calc(var(--nav-h) + 8vh); display: grid; gap: 20px; }
.farmer__content em { color: #F1D6A4; }
.farmer-body { background: #171A14; color: var(--paper); padding-block: clamp(80px, 10vw, 160px); --muted: rgba(247,245,239,.76); }
.farmer-body__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.farmer-body .lead { font-size: clamp(19px, 1.6vw, 24px); }
.farmer__quote p {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #F1D6A4;
}

/* =========================================================
   PORODICA
   ========================================================= */

.family svg { width: 100%; height: auto; border-radius: 24px; }
.gains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: clamp(56px, 7vw, 112px);
}
.gains li { display: grid; gap: 6px; padding-block: 22px; border-top: 1px solid var(--line-d); }
.gains b { font-size: 20px; letter-spacing: -0.02em; }
.gains span { color: var(--ink-3); font-size: 15px; }

/* =========================================================
   JEDAN DAN
   ========================================================= */

.day {
  --sky: #F2D9AE;
  --sky2: #F6EBD3;
  --land: #3E4A39;
  --dfg: var(--ink);
  --day-win: transparent;
  --ox: 10%;
  --oy: 70%;
  --orb: #F6DDA4;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--dfg);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 70%);
  transition: color .8s var(--ease);
  isolation: isolate;
  display: grid;
  align-content: start;
}
.day__sky { position: absolute; inset: 0; z-index: -1; }
.day__orb {
  position: absolute;
  left: var(--ox); top: var(--oy);
  width: clamp(60px, 7vw, 110px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 0 120px 30px color-mix(in srgb, var(--orb) 45%, transparent);
  transform: translate(-50%, -50%);
  transition: left 1.2s var(--ease-out), top 1.2s var(--ease-out), background-color 1s, box-shadow 1s;
}
.day__land {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 40%;
  color: var(--land);
  transition: color 1s;
}
.day__windows rect { transition: fill 1s; }
.day, .day__sky { transition: background 1s var(--ease); }
.day__content {
  padding-top: calc(var(--nav-h) + 6vh);
  padding-bottom: 36vh;
  display: grid;
  gap: 16px;
  --accent: currentColor;
}
.day .h-lg { color: inherit; }
.day .eyebrow { color: inherit; opacity: .7; }
.day__readout { margin-top: 16px; min-height: 230px; }
.day__time {
  font-size: clamp(72px, 12vw, 200px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: .85;
  font-variant-numeric: tabular-nums;
}
.day__event { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; margin-top: 12px; }
.day__text { max-width: 52ch; margin-top: 10px; opacity: .82; }
.day__controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.day__range {
  flex: 1 1 280px;
  max-width: 640px;
  accent-color: currentColor;
  height: 44px;
  cursor: pointer;
}
.day__ticks { display: flex; flex-wrap: wrap; gap: 6px; }
.day__ticks button {
  min-height: 44px;
  min-width: 64px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: .55;
  transition: opacity .3s, background-color .3s;
}
.day__ticks button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.day .btn--light { background: var(--dfg); color: var(--sky2); }

/* =========================================================
   INDEKS
   ========================================================= */

.gauges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px 20px;
  margin-top: 16px;
}
.gauge { display: grid; justify-items: center; gap: 10px; text-align: center; }
.gauge svg { width: 132px; height: 132px; }
.g-track { fill: none; stroke: var(--line-d); stroke-width: 7; }
.g-arc {
  fill: none; stroke: var(--forest); stroke-width: 7; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.4s var(--ease-out), stroke .6s;
}
.index[data-scenario="vision"] .g-arc { stroke: var(--olive); }
.g-val { font: 700 30px var(--sans); letter-spacing: -0.04em; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.gauge__label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

/* =========================================================
   ŠTA AKO
   ========================================================= */

.whatif .h-xxl { margin-bottom: clamp(40px, 6vw, 96px); }
.whatif__list li {
  padding-block: clamp(24px, 3.4vw, 48px);
  border-top: 1px solid var(--line-l);
  font-size: clamp(30px, 4.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: rgba(247,245,239,.9);
}
.whatif__list li em { color: var(--sage); }
.js .whatif__list li.reveal { transform: translateY(60px); transition-duration: 1.2s; }
.js .whatif__list li.reveal.is-in { transform: none; }

/* =========================================================
   FILOZOFIJA
   ========================================================= */

.philo {
  background: var(--forest-deep);
  color: var(--paper);
  padding-block: clamp(140px, 18vw, 280px);
  --fg: var(--paper);
  --muted: rgba(247,245,239,.62);
}
.philo__inner { display: grid; gap: clamp(56px, 8vw, 120px); }
.philo .h-xl { max-width: 15ch; }
.philo .h-xl em { color: var(--sage); }
.philo__text { display: grid; gap: 14px; max-width: 900px; margin-left: auto; }
.philo__text p {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1.15;
  color: var(--muted);
}
.js .philo__text .reveal { transition-duration: 1.6s, 1.8s; }
.philo__turn { margin-top: 40px; color: var(--paper) !important; }
.philo__end { margin-top: 48px; color: var(--paper) !important; font-size: clamp(32px, 3.8vw, 60px) !important; }
.philo__end em { color: var(--sage); }

/* =========================================================
   GENERACIJE
   ========================================================= */

.gen {
  position: relative;
  min-height: 110vh;
  background: #EFE3CC;
  overflow: hidden;
  isolation: isolate;
}
.gen__scene { position: absolute; inset: auto 0 0 0; height: 80%; z-index: -1; }
.gen__content { padding-top: clamp(120px, 16vh, 200px); display: grid; gap: 20px; justify-items: center; text-align: center; }
.gen .h-xxl { color: var(--ink); }
.gen .h-xxl em { color: var(--forest); }
.gen__answer { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 46px); color: var(--ink-2); }

/* =========================================================
   FINALE
   ========================================================= */

.final {
  position: relative;
  min-height: 115vh;
  background: #F1ECE1;
  overflow: hidden;
  isolation: isolate;
  --fg: var(--ink);
  --bg: #F1ECE1;
}
.final__scene { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; }
.final__content {
  padding-top: clamp(120px, 16vh, 200px);
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.final__title {
  font-size: clamp(42px, 7vw, 120px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: .95;
  max-width: 16ch;
}
.final__title em { color: var(--forest); }
.final__sub { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 38px); color: var(--ink-2); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.final .btn--line { color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--charcoal);
  color: var(--paper);
  padding-block: clamp(96px, 12vw, 180px) 40px;
}
.footer__slogan {
  font-size: clamp(56px, 11vw, 190px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: .86;
}
.footer__slogan em { font-weight: 400; color: var(--sage); }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: clamp(56px, 7vw, 112px);
  padding-top: 28px;
  border-top: 1px solid var(--line-l);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer__nav a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.footer__nav a:hover { background-size: 100% 1.5px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(247,245,239,.62);
}
.brand--footer { color: var(--paper); }
.brand--footer .brand__word { font-size: 17px; }

/* =========================================================
   KONTAKT
   ========================================================= */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.contact__card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 24px;
  background: var(--cream);
  min-width: 0;
}
.contact__card--alt { background: var(--forest); color: var(--paper); --fg: var(--paper); --bg: var(--forest); }
.contact__tag { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.contact__card--alt .contact__tag { color: var(--sage); }
.contact__name { font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.contact__desc { color: var(--ink-3); max-width: 48ch; }
.contact__card--alt .contact__desc { color: rgba(247,245,239,.78); }
.contact__list { display: grid; gap: 8px; }
.contact__list li { position: relative; padding-left: 22px; font-weight: 500; }
.contact__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: .6;
}
.contact__addr {
  display: grid;
  gap: 4px;
  font-style: normal;
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  width: 100%;
  font-size: 17px;
}
.contact__card--alt .contact__addr { border-color: var(--line-l); }
.contact__addr a {
  display: inline-flex; align-items: center; min-height: 32px;
  font-weight: 700; text-decoration: none; width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .45s var(--ease-out);
}
.contact__addr a:hover { background-size: 100% 1.5px; }
.contact__meta { font-size: 14px; opacity: .65; }
.contact__card--alt .btn--line { color: var(--paper); }
.contact__card--alt .btn--line:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.footer__bottom a { color: var(--paper); text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--sage); }

/* ---------- Izložbeni salon ---------- */
.showroom { margin-top: clamp(72px, 9vw, 140px); display: grid; gap: clamp(32px, 4vw, 56px); }
.showroom__head { display: grid; gap: 20px; }
.showroom__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: stretch;
}
.showroom__photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--paper-3); min-height: 320px; }
.showroom__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.showroom__photo:hover img { transform: scale(1.04); }
.showroom__photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  width: fit-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(20, 23, 20, .72); color: var(--paper);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.showroom__visit {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 12px;
}
.showroom__map { border-radius: 20px; overflow: hidden; background: var(--paper-3); min-height: 380px; }
.showroom__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
.showroom__info {
  display: grid; align-content: space-between; gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px; background: var(--forest); color: var(--paper);
  --fg: var(--paper); --bg: var(--forest);
}
.hours { display: grid; gap: 0; }
.hours div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 12px; border-bottom: 1px solid var(--line-l);
}
.hours div:first-child { padding-top: 0; }
.hours dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.hours dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hours a { color: inherit; text-decoration: none; }
.hours a:hover { text-decoration: underline; text-underline-offset: 3px; }
.showroom__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.showroom__info .btn--dark { background: var(--paper); color: var(--forest); }
.showroom__info .btn--dark:hover { background: var(--sage); }
.showroom__info .btn--line { color: var(--paper); }
.showroom__info .btn--line:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }

@media (max-width: 960px) {
  .showroom__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showroom__photo--tall { grid-row: span 2; }
  .showroom__visit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .showroom__gallery { grid-template-columns: 1fr; }
  .showroom__photo--tall { grid-row: auto; max-height: 520px; }
  .showroom__photo { min-height: 240px; }
  .showroom__map, .showroom__map iframe { min-height: 320px; }
}

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   INTERAKTIVNI PRIKAZI: dugmad iznad vizuala
   Kada su kolone složene jedna ispod druge, dugmad idu iznad
   kruga/ilustracije, a objašnjenje odmah ispod nje, pa korisnik
   vidi promenu tamo gde je kliknuo.
   ========================================================= */
.layers__btns { display: grid; }

/* Kompaktni ciklusi su uvek u jednoj koloni */
.cycle--compact .cycle__panel { display: contents; }
.cycle--compact .cycle__list { order: 0; margin-top: 0; }
.cycle--compact .cycle__fig { order: 1; }
.cycle--compact .cycle__step { order: 2; }
.cycle--compact .cycle__title { order: 3; }
.cycle--compact .cycle__text { order: 4; min-height: 0; }
.cycle--compact { gap: 16px; }

@media (max-width: 960px) {
  .cycle, .sysmap { gap: 16px; }
  .cycle__panel, .sysmap__panel { display: contents; }

  .cycle__list { order: 0; margin-top: 0; }
  .cycle__fig { order: 1; }
  .cycle__step { order: 2; margin-top: 8px; }
  .cycle__title { order: 3; }
  .cycle__text { order: 4; min-height: 0; }

  .sysmap__list { order: 0; margin-top: 0; }
  .sysmap__fig { order: 1; }
  .sysmap__panel > .eyebrow { order: 2; margin-top: 8px; }
  .sysmap__title { order: 3; }
  .sysmap__text { order: 4; }
  .sysmap__rel { order: 5; }

  .gh { gap: 16px; }
  .gh__panel { display: contents; }
  .gh .tabs { order: 0; margin-bottom: 0; }
  .gh__stage { order: 1; }
  .gh__info { order: 2; margin-top: 8px; }

  .layers { gap: 16px; }
  .layers__list { display: contents; }
  .layers__btns { order: 0; }
  .layers__figure { order: 1; max-width: 360px; }
  .layers__info { order: 2; margin-top: 0; }

  .route { gap: 16px; }
  .route__side { display: contents; }
  .route__stat { order: 0; }
  .route__btns { order: 1; }
  .route__map { order: 2; }
  .route__hint { order: 3; }
}

/* Telefon: dugmad u jednom redu koji se pomera prstom */
@media (max-width: 640px) {
  .cycle__list, .sysmap__list, .gh .tabs, .layers__btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }
  .cycle__list::-webkit-scrollbar, .sysmap__list::-webkit-scrollbar,
  .gh .tabs::-webkit-scrollbar, .layers__btns::-webkit-scrollbar { display: none; }
  .cycle__list button, .sysmap__list button, .gh .tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  /* Slojevi zgrade kao "pilule" */
  .layers__btns .layer {
    flex: 0 0 auto;
    scroll-snap-align: start;
    grid-template-columns: auto auto;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-d);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .layers__btns .layer:hover, .layers__btns .layer.is-active { padding-left: 16px; }
  .layers__btns .layer.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .layers__btns .layer.is-active .layer__n { color: var(--sage); }
  .layers__btns .layer.is-active .layer__t { text-decoration: none; }
  .layers__btns .layer__n { font-size: 11px; }
  .layers__figure { max-width: 300px; }
}

/* =========================================================
   OZNAKE ZA PREVLAČENJE LEVO-DESNO
   ========================================================= */
.swipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: var(--gutter);
  margin-bottom: 4px;
  color: var(--muted);
}
.swipe--compact { padding-inline: 0; margin-bottom: 0; }
.swipe[hidden] { display: none !important; }
.swipe__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.3;
}
.swipe__hand { display: inline-flex; color: var(--accent); flex-shrink: 0; animation: swipe-nudge 1.8s var(--ease) infinite; }
.swipe.is-used .swipe__hand { animation: none; }
@keyframes swipe-nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-6px); }
  65% { transform: translateX(6px); }
}
.swipe__btns { display: inline-flex; gap: 6px; flex-shrink: 0; }
.swipe__btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  transition: background-color .25s, color .25s, opacity .25s, border-color .25s;
}
.swipe__btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.swipe__btn:disabled { opacity: .3; cursor: default; }
.swipe--dark { --fg: var(--paper); --bg: var(--charcoal); }

/* Desktop: kartice grada se pomeraju skrolovanjem nadole */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
}
.scroll-cue svg { animation: swipe-right 1.8s var(--ease) infinite; }
@keyframes swipe-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.scroll-cue__mouse {
  position: relative;
  width: 16px; height: 24px;
  border: 1.6px solid currentColor;
  border-radius: 10px;
}
.scroll-cue__mouse span {
  position: absolute; left: 50%; top: 5px;
  width: 2px; height: 5px; margin-left: -1px;
  border-radius: 2px; background: currentColor;
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(7px); opacity: 0; } 100% { opacity: 0; } }
.hscroll.is-native .scroll-cue { display: none; }

/* Desna ivica reda bledi, pa se vidi da ima još sadržaja */
.strip, .hscroll.is-native .hscroll__track {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.strip { padding-top: 16px; }

/* =========================================================
   RESPONZIVNO
   ========================================================= */

@media (max-width: 1180px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; }

  /* Otvoren meni: puna, neprovidna traka bez zamućenja
     (backdrop-filter bi "zarobio" fiksni panel u visini trake) */
  .nav.is-open {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .nav.is-open .nav__inner { height: 60px; }
  .nav__links {
    position: fixed;
    inset: 60px 0 0 0;
    z-index: 1;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    counter-reset: m;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { border-bottom: 1px solid var(--line-d); }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s var(--ease);
  }
  .nav__links > a:not(.btn) {
    counter-increment: m;
    display: flex;
    align-items: baseline;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-d);
    font-size: clamp(24px, 6.6vw, 34px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s var(--ease), transform .55s var(--ease-out), color .25s;
  }
  .nav__links > a:not(.btn)::before {
    content: counter(m, decimal-leading-zero);
    flex: 0 0 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--olive);
  }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links > a:not(.btn):active,
  .nav__links a.is-current { color: var(--forest); }
  .nav__links a.is-current::before { color: var(--forest); }
  .nav.is-open .nav__links > a:not(.btn) { opacity: 1; transform: none; }
  .nav.is-open .nav__links > a:nth-child(2) { transition-delay: .03s; }
  .nav.is-open .nav__links > a:nth-child(3) { transition-delay: .06s; }
  .nav.is-open .nav__links > a:nth-child(4) { transition-delay: .09s; }
  .nav.is-open .nav__links > a:nth-child(5) { transition-delay: .12s; }
  .nav.is-open .nav__links > a:nth-child(6) { transition-delay: .15s; }
  .nav.is-open .nav__links > a:nth-child(7) { transition-delay: .18s; }
  .nav.is-open .nav__links > a:nth-child(8) { transition-delay: .21s; }
  .nav.is-open .nav__links > a:nth-child(9) { transition-delay: .24s; }

  .nav__cta-mobile {
    display: flex;
    width: 100%;
    margin-top: 28px;
    letter-spacing: .12em !important;
    font-size: 13px !important;
  }
  .nav__contact {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-3);
  }
  .nav__contact a {
    display: inline-flex; align-items: center; min-height: 40px;
    width: fit-content;
    font-weight: 700; color: var(--ink); text-decoration: none;
  }
  .nav__contact small { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }
}
@media (min-width: 1181px) {
  .nav__contact { display: none; }
}
@media (max-width: 1180px) and (max-height: 640px) {
  .nav__links > a:not(.btn) { min-height: 48px; padding: 8px 0; font-size: 22px; }
}

@media (max-width: 960px) {
  .cycle, .sysmap, .split, .split--wide, .layers, .mobility, .route, .gh, .farmer-body__inner {
    grid-template-columns: 1fr;
  }
  .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edible li { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .edible__where, .edible__what, .edible__why { grid-column: 2; }
  .edible li::before { grid-row: 1 / span 3; }
  .cooling__meter { grid-template-columns: 1fr; }
  .soil { min-height: 480px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cy-label { display: none; }
  .cy-node text.cy-num { font-size: 17px; }
  .sm-node text { font-size: 15px; }
  .facts, .defs, .gains { grid-template-columns: 1fr; }
  .sysmap__rel li { grid-template-columns: 1fr; gap: 2px; }
  .pyramid li { width: 100%; }
  .hero__scene { height: 62%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .flow li { padding-right: 28px; }
  .chapter__inner { padding-block: 120px 160px; }
  .day__readout { min-height: 260px; }
  .day__ticks { display: none; }
  .gauge svg { width: 112px; height: 112px; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotspot { min-width: 44px; height: 44px; font-size: 10px; padding: 0 6px; }
  .final__ctas .btn { width: 100%; }
}

/* =========================================================
   SMANJENO KRETANJE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .question { height: auto; }
  .question__sticky { position: static; padding-block: 140px; }
  .question__text .w { opacity: 1; filter: none; }
  .morph { height: auto; --p: 1; }
  .morph__sticky { position: relative; }
  .soil__layer { opacity: 1 !important; transform: none !important; }
  .soil__roots path { stroke-dashoffset: 0; }
}
#selo-buducnosti > .swipe { margin-top: clamp(40px, 5vw, 72px); }
.swipe:not(.swipe--compact) { width: 100%; max-width: var(--max); margin-inline: auto; }
