/* MEDICINSTAL – demo domače strani
   Koncept: vertikalna shema. Stran je prerez skozi bolnišnico – od postelje do plinske postaje.
   Vsa vsebina je v index.html; risbe in gibanje so samo okras okoli nje.
   Gibanje: samo ob drsenju (brez zank), vrednosti sledijo kritično dušeni vzmeti v main.js. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-sl.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
/* IBM Plex Mono: nespremenjeni datoteki Fontsource 5.3.0 (ime "Plex" je rezervirano, zato ju ne podmnožimo sami). */
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Barve */
  --paper: #f3f1ec;
  --paper-2: #e8e4dc;
  --white: #ffffff;
  --ink: #15181b;
  --ink-2: #454b51;
  --rule: #d6d1c7;
  --void: #11181c;
  --void-2: #1a2328;
  --on-void: #ece8e1;
  --on-void-2: #a9b1b7;
  --line-on-void: rgba(236, 232, 225, .14);
  --field-line: #66727b;
  --cu: #ed7d31;          /* blagovna barva = baker */
  --cu-hover: #f28c46;
  --cu-light: #ffc9a0;
  --cu-strong: #c2560f;   /* baker za veliko besedilo na svetli podlagi (4,0 : 1) */
  --cu-text: #a3460b;     /* baker za drobno besedilo na svetli podlagi (5,4 : 1) */
  --error-on-void: #ffb089;
  --focus: var(--ink);

  /* Tipografija – ena lestvica v rem (spoštuje uporabnikovo velikost pisave) */
  --ff-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ff-mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.06rem + .28vw, 1.25rem);
  --fs-h3: clamp(1.5rem, 1.22rem + .9vw, 2rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.4vw, 3.5rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 3.7vw, 4.375rem);

  /* Razmiki – mreža 8 pt */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
  --section: clamp(4.5rem, 2.5rem + 6.5vw, 8rem);

  /* Postavitev */
  --pad: clamp(16px, 4vw, 48px);
  --gap: 24px;
  --maxw: 1320px;
  --header-h: 72px;
  --radius: 8px;

  /* Gibanje: gladko pojemanje brez preskoka (kot kritično dušena vzmet) */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Drobne oznake: majhna velikost, pozitivni razmik črk */
.kicker, .eyebrow {
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cu-text);
}
/* Naslovi: večja velikost, tesnejši razmik in vrstični razmik */
h2 {
  font-size: var(--fs-h2);
  line-height: 1.04; letter-spacing: -.025em; font-weight: 740; font-stretch: 112%;
  margin: var(--sp-4) 0 var(--sp-5);
}
.stop { color: var(--cu); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 11px 18px; border: 0; border-radius: var(--radius);
  background: var(--cu); color: var(--ink);
  font: inherit; font-weight: 650; font-stretch: 106%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px -8px rgba(237, 125, 49, .7);
  transition: background-color .2s ease, box-shadow .25s var(--ease), transform .1s ease-out;
}
.btn:hover { background: var(--cu-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px -10px rgba(237, 125, 49, .8); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 15px 26px; font-size: 1.0625rem; }
.btn-arrow { flex: none; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Demo trak in glava ---------- */
.demo-bar { background: var(--ink); color: var(--paper); --focus: var(--cu); }
.demo-bar p { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1.5; padding-block: var(--sp-2); letter-spacing: .02em; }
.demo-bar strong { color: var(--cu); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.demo-short { display: none; }
@media (max-width: 639px) {
  .demo-long { display: none; }
  .demo-short { display: inline; }
}

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  box-shadow: 0 1px 0 var(--rule);
  transition: box-shadow .3s var(--ease);
}
/* Rob ob drsenju: mehka senca namesto trde črte */
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(21, 24, 27, .06), 0 12px 32px -16px rgba(21, 24, 27, .28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); min-height: var(--header-h); }
.brand { display: block; padding-block: var(--sp-2); }
.brand img { height: 40px; width: auto; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-6); list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) {
  display: inline-block; padding: var(--sp-2) 0; text-decoration: none; font-weight: 560;
  background: linear-gradient(var(--cu), var(--cu)) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav-list a:not(.btn):hover { background-size: 100% 2px; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .brand img { height: 32px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: var(--sp-2) var(--sp-4);
    font: inherit; font-weight: 600; color: var(--ink); background: var(--white);
    border: 1.5px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  }
  /* Meni izhaja iz glave in se vanjo vrne po isti poti */
  .js .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-1) var(--pad) var(--sp-5); background: var(--white);
    box-shadow: 0 1px 0 var(--rule), 0 24px 32px -24px rgba(21, 24, 27, .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-list a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); background: none; }
  .js .nav-cta { margin-top: var(--sp-4); }
  .js .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; padding-top: clamp(var(--sp-6), 4vw, var(--sp-8));
}
.hero-copy { grid-column: 1 / -1; padding-bottom: var(--sp-6); }
.eyebrow { margin-bottom: var(--sp-5); }
h1 {
  font-size: var(--fs-h1);
  line-height: 1; letter-spacing: -.032em; font-weight: 760; font-stretch: 114%;
  max-width: 12ch;
}
.lede { margin-top: var(--sp-5); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-6); }
.link-down {
  font-weight: 620; text-decoration: underline; text-decoration-color: var(--cu);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-underline-offset .3s var(--ease);
}
.link-down:hover { text-underline-offset: 9px; }
.trust { display: flex; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-5); font-size: .9375rem; }
.trust .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cu); flex: none; transform: translateY(1px); box-shadow: 0 0 0 4px rgba(237, 125, 49, .18); }
.trust a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s ease; }
.trust a:hover { border-bottom-color: var(--cu); }
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--sp-6) 0 0; border-top: 1.5px solid var(--ink); }
.scope div { padding: var(--sp-4) var(--sp-4) 0 0; }
.scope div + div { padding-left: var(--sp-4); border-left: 1px solid var(--rule); }
.scope dt { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.scope dd { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }

@media (max-width: 639px) {
  .scope { grid-template-columns: 1fr; }
  .scope div, .scope div + div { padding: var(--sp-3) 0; border-left: 0; }
  .scope div + div { border-top: 1px solid var(--rule); }
}

/* Risba: tri plasti – za steno, omet, prostor */
.hero-art {
  --reveal: .58;               /* mirujoče stanje: zgornji del stene odprt */
  grid-column: 1 / -1;
  position: relative; margin: 0;
  width: min(100% + 2 * var(--pad), 600px);
  margin-left: calc(-1 * var(--pad));
  aspect-ratio: 600 / 560; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
}
.motion .hero-art { --reveal: 0; }
.art-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.plaster, .cut { position: absolute; left: 0; right: 0; top: 4.2857%; bottom: 0; }
.plaster { clip-path: inset(calc(var(--reveal) * 100%) 0 0 0); }
.plaster svg { width: 100%; height: 100%; }
/* Rez skozi omet: ena čista črta, omet meče mehko senco v votlino */
.cut {
  pointer-events: none;
  transform: translateY(calc(var(--reveal) * 100%));
  opacity: clamp(0, calc((1 - var(--reveal)) * 30), 1);
}
.cut::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); }
.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(to top, rgba(0, 0, 0, .3), transparent); }

.art-back .cav { fill: var(--void-2); }
.h-bg { fill: var(--paper); }
.h-ln { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.art-back .ln { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cav-lbl { font-family: var(--ff-mono); font-weight: 500; font-size: 10px; letter-spacing: .14em; fill: var(--on-void-2); }
.art-back .pipe { fill: none; stroke: var(--cu); stroke-width: 3; stroke-linejoin: round; }
.art-back .halo { fill: none; stroke: var(--void-2); stroke-width: 8; }
.art-back .tee { fill: var(--cu); }
.chips rect { fill: var(--void); stroke: var(--cu); stroke-width: 1; }
.chips text { font-family: var(--ff-mono); font-weight: 500; font-size: 11px; letter-spacing: .04em; fill: var(--on-void); text-anchor: middle; }
.hero-art .sub { font-size: 8px; }

.plaster .pl { fill: var(--paper); }
.plaster .hid { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 7 5; opacity: .38; }
.plaster .lead { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.plaster .note { font-family: var(--ff-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .03em; fill: var(--ink-2); }

.art-front .ceil { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1; }
.art-front .unit { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.3; }
.art-front .unit-light { fill: #ffe0c2; }
.art-front .outlet circle { fill: var(--white); stroke: var(--ink); stroke-width: 1.2; }
.art-front .outlet circle + circle { fill: var(--paper-2); }
.art-front .unit-part { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.art-front .rail { fill: var(--ink-2); }
.art-front .bed { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.3; }
.art-front .ln { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.art-front .floor { stroke: var(--ink); stroke-width: 2; }
.chip-paper rect { fill: var(--paper); stroke: var(--ink); stroke-width: .8; }
.chip-paper text { font-family: var(--ff-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; fill: var(--ink); }
.chip-paper .lvl { fill: none; stroke: var(--ink); stroke-width: 1.2; }

@media (min-width: 960px) {
  .hero-copy { grid-column: 1 / 7; padding-bottom: var(--sp-7); }
  .hero-art { grid-column: 7 / 13; width: 100%; margin-left: 0; }
}

/* ---------- Vertikalna shema ---------- */
.sistem { background: var(--void); color: var(--on-void); --focus: var(--cu); }
.sistem .kicker { color: var(--cu); }
.trunk {
  /* Približki brez JS; JS jih nadomesti z izmerjenimi vrednostmi risbe v heroju. */
  --s: .65;                                    /* merilo risbe */
  --rx: calc(12.5px * var(--s));               /* x jaška glede na .trunk */
  --rxw: calc(12.5px * var(--s) - var(--pad)); /* x jaška glede na .wrap */
  --trace: 1;
  --lp: clamp(4rem, 2.6rem + 4.5vw, 7rem);     /* razmik med nivoji */
  --slab: 24px;
  position: relative; padding-bottom: var(--sp-9);
}
.motion .trunk { --trace: 0; }
@media (min-width: 600px) { .trunk { --s: 1; } }
@media (min-width: 960px) { .trunk { --s: 1.05; --rx: calc(50% + 25px); --rxw: calc(50% + 25px); } }

.slab {
  height: var(--slab); border-block: 1.5px solid var(--ink);
  background: repeating-linear-gradient(45deg, rgba(21, 24, 27, .32) 0 1px, transparent 1px 7px), var(--paper);
}
.riser {
  position: absolute; top: 0; bottom: var(--sp-8); left: var(--rx); z-index: 1;
  width: calc(43px * var(--s)); pointer-events: none;
}
.riser::before {     /* preboj skozi ploščo */
  content: ""; position: absolute; top: 0; height: var(--slab);
  left: calc(-12.5px * var(--s)); width: calc(64px * var(--s));
  background: var(--void-2); border-inline: 1.5px solid var(--ink);
}
/* Neprevožen vod = lasna črta; prevožen = poln baker */
.riser .pipe {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--i) * 10px * var(--s)); width: max(1.5px, calc(3px * var(--s)));
  background: linear-gradient(90deg, transparent calc(50% - .5px), rgba(237, 125, 49, .3) 0 calc(50% + .5px), transparent 0);
}
.riser .lit {
  position: absolute; inset: 0; background: var(--cu);
  clip-path: inset(0 0 calc((1 - var(--trace)) * 100%) 0);
}
/* Čelo sledi: mehak bakren sij na vodilnem robu */
.riser .head {
  display: none; position: absolute; top: 0; bottom: 0;
  left: calc(-14px * var(--s)); right: calc(-14px * var(--s));
  transform: translateY(calc(var(--trace) * 100%));
  opacity: min(1, calc(var(--trace) * 40), calc((1 - var(--trace)) * 40));
}
.motion .riser .head { display: block; }
.riser .head::before {
  content: ""; position: absolute; left: 0; right: 0; top: -36px; height: 72px;
  background: radial-gradient(closest-side, rgba(255, 214, 180, .85), rgba(237, 125, 49, .45) 45%, rgba(237, 125, 49, 0));
}
.riser .head::after {
  content: ""; position: absolute; top: -1px; height: 2px; border-radius: 2px;
  left: calc(14px * var(--s)); right: calc(14px * var(--s)); background: var(--cu-light);
}
.riser .station {
  position: absolute; bottom: -10px; height: 10px; border-radius: 2px; background: var(--cu);
  left: calc(-12.5px * var(--s)); width: calc(64px * var(--s));
}
.riser .station::after {
  content: "PLINSKA POSTAJA"; position: absolute; top: 18px; left: 0; white-space: nowrap;
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .12em; color: var(--on-void-2);
}

.route { position: relative; z-index: 2; padding-top: var(--section); }
.route-head, .level { padding-left: calc(var(--rxw) + 43px * var(--s) + 30px); }
.route-head p:not(.kicker) { color: var(--on-void-2); max-width: 54ch; font-size: var(--fs-lead); line-height: 1.55; }
.route-head .legend {
  margin-top: var(--sp-5); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs) !important;
  letter-spacing: .08em; color: var(--on-void) !important;
}
.levels { list-style: none; margin: 0; padding: 0; }
.level { position: relative; padding-block: var(--lp) 0; }
.level-text p { color: var(--on-void-2); max-width: 52ch; }
.level-tag {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cu) !important;
}
.tri { width: 0; height: 0; border-inline: 6px solid transparent; border-top: 9px solid currentColor; flex: none; }
.level h3 {
  margin: var(--sp-4) 0 var(--sp-4);
  font-size: var(--fs-h3); line-height: 1.12;
  font-weight: 700; font-stretch: 108%; letter-spacing: -.018em;
}
.num { font-family: var(--ff-mono); font-weight: 500; font-size: .5em; color: var(--cu); vertical-align: .45em; margin-right: .4em; letter-spacing: .04em; }
.level-text .callout { margin-top: var(--sp-5); padding: var(--sp-3) var(--sp-4); border-left: 2px solid var(--cu); background: rgba(237, 125, 49, .08); color: var(--on-void); border-radius: 0 var(--radius) var(--radius) 0; }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
.tags li {
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .05em;
  padding: 6px 12px; background: rgba(236, 232, 225, .07); border-radius: 999px;
}

/* Odcep od jaška do nivoja; vozlišče zasveti, ko ga doseže sled */
.branch {
  position: absolute; height: 2px; background: var(--cu);
  top: calc(var(--lp) + 2.9rem);
  left: calc(var(--rxw) + 43px * var(--s)); width: 14px;
  transition: background-color .4s ease;
}
.branch::before {
  content: ""; position: absolute; top: -7px; right: -8px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--cu); background: var(--cu);
  box-shadow: 0 0 0 6px rgba(237, 125, 49, .16), 0 0 22px rgba(237, 125, 49, .55);
  transition: transform .5s var(--ease), background-color .3s ease, box-shadow .5s var(--ease);
}
.motion .level:not(.is-lit) .branch { background: rgba(237, 125, 49, .22); }
.motion .level:not(.is-lit) .branch::before { background: var(--void); box-shadow: none; transform: scale(.7); }

.level-media { margin-top: var(--sp-6); }
.photo { margin: 0; }
.photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--void-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 28px 48px -28px rgba(0, 0, 0, .75);
}
.photo-sub img { aspect-ratio: 3 / 2; }
.photo-tall img { aspect-ratio: 4 / 5; }
.photo-square img { aspect-ratio: 1; }
.photo figcaption {
  margin-top: var(--sp-3); font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); line-height: 1.5;
  letter-spacing: .04em; color: var(--on-void-2);
}
.photo-tall { max-width: 420px; }
.photo-square { max-width: 460px; }
.photo-sub { width: 66%; margin: var(--sp-5) 0 0 auto; }

@media (min-width: 960px) {
  .route-head { padding-left: 0; max-width: calc(var(--rxw) - 72px); }
  .level {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    padding-left: 0; padding-bottom: 0;
  }
  .level-text { grid-column: 1 / 6; }
  .level-media { grid-column: 8 / 13; margin-top: 0; }
  .branch {
    --col-end: calc((100% - 11 * var(--gap)) * 5 / 12 + 4 * var(--gap) + 20px);
    left: var(--col-end); width: calc(var(--rxw) - var(--col-end));
  }
  .branch::before { right: auto; left: -8px; }
}

/* Pred izvedbo in po njej */
.lifecycle { padding-top: var(--sp-8); }
.lifecycle-head { max-width: 44rem; }
.lifecycle-lead {
  margin-top: var(--sp-3); color: var(--on-void);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.22;
  font-weight: 680; font-stretch: 108%; letter-spacing: -.018em; text-wrap: balance;
}
.bookends { display: grid; gap: var(--gap); margin-top: var(--sp-7); align-items: stretch; }
@media (min-width: 960px) { .bookends { grid-template-columns: 7fr 5fr; } }
.bookends h3 { margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-h3); line-height: 1.12; font-weight: 700; font-stretch: 108%; letter-spacing: -.018em; }

/* List risbe: svetel papir sredi temne sheme – največji kontrast na strani */
.sheet {
  padding: 10px; border-radius: 6px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.sheet-frame {
  height: 100%; display: grid; gap: var(--sp-5); align-content: start;
  padding: clamp(var(--sp-5), 2.6vw, var(--sp-6));
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(rgba(21, 24, 27, .055) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(21, 24, 27, .055) 1px, transparent 1px) 0 0 / 24px 24px;
}
.sheet .kicker { color: var(--cu-text); }
.sheet-text p:not(.kicker) { color: var(--ink-2); max-width: 46ch; }
.sheet-drawing { width: 100%; max-width: 340px; height: auto; align-self: center; justify-self: center; }
.sd-floor { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .55; }
.sd-lvl { fill: none; stroke: var(--ink); stroke-width: 1; }
.sd-lbl { font-family: var(--ff-mono); font-weight: 500; font-size: 8.5px; letter-spacing: .1em; fill: var(--ink-2); }
.sd-cu { fill: none; stroke: var(--cu); stroke-width: 2; stroke-linejoin: round; }
.sd-box { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.1; }
.sd-dot { fill: none; stroke: var(--ink); stroke-width: 1; }

.tb { border: 1.5px solid var(--ink); background: var(--paper); }
.tb-meta {
  display: grid; grid-template-columns: 1.4fr 1.2fr .7fr; border-bottom: 1.5px solid var(--ink);
  font-family: var(--ff-mono); font-weight: 500; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
}
.tb-meta span { padding: var(--sp-2) var(--sp-3); white-space: nowrap; }
.tb-meta span + span { border-left: 1px solid var(--ink); }
@media (max-width: 639px) {
  .tb-meta { grid-template-columns: 1fr auto; }
  .tb-meta span:nth-child(2) { display: none; }
}
.titleblock { margin: 0; }
.titleblock div { display: grid; grid-template-columns: 4.25rem 1fr; }
.titleblock div + div { border-top: 1px solid var(--ink); }
.titleblock dt {
  display: flex; align-items: center; padding: var(--sp-3);
  font-family: var(--ff-mono); font-weight: 500; font-size: .875rem; letter-spacing: .04em;
  color: var(--cu-text); border-right: 1px solid var(--ink);
}
.titleblock dd { margin: 0; padding: var(--sp-3); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--sp-4); }
.titleblock strong { font-weight: 660; }
.titleblock dd span { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 640px) {
  .sheet-frame { grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr; }
  .tb { grid-column: 1 / -1; align-self: end; }   /* glava risbe sedi spodaj, kot na pravem listu */
}

/* Vzdrževanje: sled se sklene v krog */
.bookend {
  display: flex; flex-direction: column; padding: clamp(var(--sp-5), 3vw, var(--sp-7));
  background: var(--void-2); border: 1px solid var(--line-on-void); border-radius: 12px;
}
.bookend p:not(.kicker) { color: var(--on-void-2); max-width: 44ch; }
.cycle { --cycle: 1; margin: auto auto 0; padding-top: var(--sp-6); width: min(100%, 340px); text-align: center; }
.motion .cycle { --cycle: 0; }
.cycle svg { width: 100%; height: auto; overflow: visible; }
.cycle figcaption { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--on-void-2); }
.cy-track { fill: none; stroke: rgba(236, 232, 225, .16); stroke-width: 2; }
.cy-run {
  fill: none; stroke: var(--cu); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: calc((1 - var(--cycle)) * 100);
}
.cy-arrow { fill: none; stroke: rgba(236, 232, 225, .4); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cy-node { fill: var(--void-2); stroke: var(--cu); stroke-width: 2; }
.cy-on { fill: var(--cu); opacity: clamp(0, calc((var(--cycle) - var(--at)) * 25), 1); }
.cy-halo { fill: rgba(237, 125, 49, .18); opacity: clamp(0, calc((var(--cycle) - .9) * 10), 1); }
.cy-lbl { font-family: var(--ff-mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; fill: var(--on-void-2); text-anchor: middle; }
.cy-lbl.is-main { fill: var(--on-void); }

.route-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5) var(--sp-6);
  padding-block: var(--sp-6) var(--section);
}
.route-cta p { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); font-weight: 650; font-stretch: 106%; letter-spacing: -.01em; max-width: 32ch; line-height: 1.25; }

/* ---------- O podjetju ---------- */
.about { background: var(--paper-2); padding-block: var(--section); }
.about-grid { display: grid; gap: var(--sp-7) var(--gap); }
.about-text p:not(.kicker) { max-width: 56ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.about-text p + p { margin-top: var(--sp-4); }
.claims { display: grid; gap: var(--sp-4); align-content: start; }
.claim {
  background: var(--white); border-radius: 12px; padding: var(--sp-5) var(--sp-6);
  box-shadow: inset 0 3px 0 var(--cu), 0 1px 0 var(--rule), 0 18px 40px -28px rgba(21, 24, 27, .35);
}
.claim-k { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--cu-text); }
.claim-v { margin-top: var(--sp-2); font-size: 1.5rem; font-weight: 680; font-stretch: 108%; line-height: 1.2; letter-spacing: -.012em; }
.ext { display: inline-block; margin-top: var(--sp-4); text-decoration-color: var(--cu); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 560; }
.ext-arrow { font-family: var(--ff-mono); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about-text { grid-column: 1 / 7; }
  .claims { grid-column: 8 / 13; }
}

/* ---------- Reference ---------- */
.refs { background: var(--paper); padding-block: var(--section); }
.refs-head p:not(.kicker) { max-width: 58ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.figure { color: var(--cu-strong); font-variant-numeric: tabular-nums; }
.ref-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: var(--sp-7) var(--gap); margin-top: var(--sp-8); align-items: start; }
.ref-group h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink);
  font-size: 1.0625rem; line-height: 1.3; font-weight: 680; font-stretch: 104%;
}
.count {
  flex: none; font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--ink);
  min-width: 2em; text-align: center; padding: 2px 8px; border-radius: 999px; background: rgba(237, 125, 49, .18);
}
.ref-group ul { list-style: none; margin: 0; padding: 0; }
.ref-group li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); line-height: 1.35; }

.demo-panel {
  margin-top: var(--sp-8); padding: clamp(var(--sp-5), 3vw, var(--sp-7));
  background: var(--white); border: 1.5px dashed var(--cu-text); border-radius: 12px;
}
.demo-label { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--cu-text); }
.demo-panel h3 { margin: var(--sp-3) 0 var(--sp-3); font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); line-height: 1.15; font-weight: 700; font-stretch: 106%; letter-spacing: -.015em; }
.demo-panel > p:not(.demo-label) { max-width: 68ch; color: var(--ink-2); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.case { padding: var(--sp-5); background: var(--paper); border-radius: var(--radius); }
.case-type { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.case h4 { margin: var(--sp-2) 0 var(--sp-4); font-size: 1.125rem; line-height: 1.25; font-weight: 680; font-stretch: 104%; }
.case dl { margin: 0; }
.case dl div { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--rule); font-size: var(--fs-sm); }
.case dt { color: var(--ink-2); }
.case dd { margin: 0; font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--cu-text); text-align: right; }

/* ---------- Povpraševanje ---------- */
.contact { background: var(--void); color: var(--on-void); padding-block: var(--section); --focus: var(--cu); color-scheme: dark; }
.contact .kicker { color: var(--cu); }
.contact-grid { display: grid; gap: var(--sp-7) var(--gap); }
.contact-intro > p:not(.kicker) { color: var(--on-void-2); max-width: 44ch; font-size: var(--fs-lead); line-height: 1.55; }
.direct { margin: var(--sp-6) 0 0; border-top: 1px solid var(--line-on-void); }
.direct div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-on-void); }
.direct dt { font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--on-void-2); padding-top: 3px; }
.direct dd { margin: 0; }
.direct a { text-decoration-color: var(--cu); text-underline-offset: 4px; }

.enquiry {
  display: grid; gap: var(--sp-5); align-content: start;
  padding: clamp(var(--sp-5), 3vw, var(--sp-7)); background: var(--void-2);
  border: 1px solid var(--line-on-void); border-radius: 12px;
}
.enquiry label, .enquiry legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: var(--sp-2); color: var(--on-void); }
.req { margin-left: 6px; font-family: var(--ff-mono); font-weight: 500; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cu); }
.enquiry input:not([type="checkbox"]), .enquiry select, .enquiry textarea {
  width: 100%; min-height: 48px; padding: var(--sp-3) 14px;
  font: inherit; font-size: 1rem; color: var(--on-void);
  background: var(--void); border: 1px solid var(--field-line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .25s var(--ease);
}
.enquiry input:not([type="checkbox"]):focus, .enquiry select:focus, .enquiry textarea:focus {
  border-color: var(--cu); box-shadow: 0 0 0 4px rgba(237, 125, 49, .2);
}
.enquiry textarea { resize: vertical; min-height: 140px; }
.enquiry [aria-invalid="true"] { border-color: var(--error-on-void); }
.hint, .field-error { margin-top: 6px; font-size: var(--fs-sm); }
.hint { color: var(--on-void-2); }
.field-error { color: var(--error-on-void); }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.choice legend { width: 100%; padding: 0; }
.choice label {
  display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; min-height: 44px; padding: var(--sp-2) 14px;
  font-weight: 500; border: 1px solid var(--field-line); border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice label:has(input:checked) { border-color: var(--cu); background: rgba(237, 125, 49, .16); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--cu); }
.form-foot { display: grid; gap: var(--sp-3); justify-items: start; }
.form-note { font-size: var(--fs-sm); color: var(--on-void-2); max-width: 60ch; }
.form-status:empty { display: none; }
.form-status { color: var(--on-void); font-weight: 560; }

@media (min-width: 640px) {
  .enquiry { grid-template-columns: 1fr 1fr; column-gap: var(--sp-5); }
  .enquiry .choice, .field-wide, .form-foot { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .contact-intro { grid-column: 1 / 6; }
  .enquiry { grid-column: 7 / 13; }
}

/* ---------- Noga ---------- */
.site-footer { background: #0c1114; color: var(--on-void-2); padding-block: var(--sp-7); font-size: var(--fs-sm); --focus: var(--cu); }
.footer-grid { display: grid; gap: var(--sp-5) var(--gap); }
.site-footer a { color: var(--on-void); text-decoration-color: var(--cu); text-underline-offset: 3px; }
.site-footer address { font-style: normal; }
.legal-name { color: var(--on-void); font-weight: 600; }
.credits { font-size: .8125rem; max-width: 60ch; }
.to-top { justify-self: start; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .credits { grid-column: 1 / 3; }
  .to-top { grid-column: 3; justify-self: end; align-self: end; }
}

/* ---------- Zmanjšano gibanje: brez prehodov, risba mirujoča ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
