:root {
  --sc-canvas: #10211a;
  --sc-surface: #18302a;
  --sc-ink: #f0ede3;
  --sc-ink-soft: #b6c2b4;
  --sc-accent: #d8b95f;
  --sc-accent-ink: #10211a;
  --sc-font-display: "Alegreya Sans", system-ui, sans-serif;
  --sc-font-text: "Hanken Grotesk", system-ui, sans-serif;
  --sc-shadow-color: 150 40% 4%;
  --sc-track-tight: -0.02em;
  --sc-track-snug: -0.012em;
  --sc-leading-none: 1;
  --wall-a: #e4e2e7;
  --wall-b: #d9d7dd;
  --forest-ink: #16291f;
  --bar-h: 76px;
  /* What a phone's collapsing browser bars add to the viewport. Zero elsewhere. */
  --stage-h: 100svh;
  --bars: 0px;
  /* The engine's gutter, kept clear of the notch on a phone held sideways. */
  --sc-gutter: max(clamp(1.25rem, 5vw, 5.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
}
@supports (height: 100lvh) {
  :root { --stage-h: 100lvh; --bars: calc(100lvh - 100svh); }
}

.sc-display { font-weight: 400; }
h3 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xl); line-height: 1.1; margin: 0; }

/* Buttons: content width, 48px or taller, never stretched. */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: max-content; min-height: 52px; padding: 0 28px;
  border-radius: var(--sc-r-pill);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e2);
  transition: background-color var(--sc-d-fast) var(--sc-ease-out), scale 120ms var(--sc-ease-out);
}
.cta:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .cta:hover { background: #e6cb79; } }
.cta--bar { min-height: 48px; transition: opacity 0.3s var(--sc-ease-out, ease), visibility 0.3s; }
.is-at-upit .cta--bar { opacity: 0; visibility: hidden; pointer-events: none; }
/* The engine's gold ring disappears on the pale wall (1.5:1): ink there instead. */
:root:not(.is-past-wall) .bar :focus-visible { outline-color: var(--forest-ink); }

/* ---------------------------------------------------------------- bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--bar-h); padding-inline: var(--sc-gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; position: relative; }
.bar::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgb(13 28 22 / 0.92) 40%, transparent);
  transition: opacity var(--sc-d-base) var(--sc-ease-out);
}
.is-past-wall .bar::before { opacity: 1; }
/* The contact act has no copy under the bar, so the scrim would only dim its headline. */
.is-upit-pinned .bar::before { opacity: 0; }
/* On a phone every line of copy passes under the bar: a denser, longer scrim. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  .bar::before {
    inset: 0 0 -40px 0;
    background: linear-gradient(to bottom, rgb(13 28 22 / 0.97) 62%, rgb(13 28 22 / 0.7) 80%, transparent);
  }
}
.bar__mark { position: relative; display: block; width: 136px; height: 55px; }
.bar__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--sc-d-base) var(--sc-ease-out); }
.bar__logo--light { opacity: 0; }
.is-past-wall .bar__logo--dark { opacity: 0; }
.is-past-wall .bar__logo--light { opacity: 1; }

/* Safari 26 tints the status bar from a fixed element at the top edge, not from
   theme-color, and re-samples a fixed element's colour as it changes (the page
   ground it samples only now and then). A thin fixed strip, wall on the wall.
   Portrait only: held sideways, the strip makes Safari drop the tint of its top
   toolbar altogether, and the page ground tints it dark as before. */
@media (orientation: portrait) {
  body::before {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 6px; z-index: var(--sc-z-chrome);
    pointer-events: none; background: var(--sc-canvas);
  }
  html:not(.is-past-wall) body::before { background: var(--wall-a); }
}

/* --------------------------------------------------------------- hero -- */
/* The only stage that is not the page ground, so it alone has to fill the
   viewport when the bars collapse: at 100svh it would show a dark strip below. */
.hero__stage { height: var(--stage-h); background: linear-gradient(205deg, var(--wall-b), var(--wall-a) 70%); }

/* The scene is a 16:9 box that always covers the stage, anchored to the
   bottom so the table stays on the floor of the frame. */
.scene {
  --disc-left: 48.4375%; --disc-top: 5.9766%; --disc-w: 25.1807%;
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: max(100%, calc(var(--stage-h) * 16 / 9)); aspect-ratio: 16 / 9;
}
/* Wider than the photo: the crop has to come off the table, not off the disc. */
@media (min-aspect-ratio: 16 / 9) { .scene { top: 0; bottom: auto; } }
.scene__disc, .scene__fg, .scene__wall { position: absolute; max-width: none; will-change: transform; }
/* Bleeds past the scene: the camera slides sideways before the zoom covers the edges. */
.scene__wall { inset: -30%; background: url("assets/hero-wall.webp") center / cover; }
.scene__disc {
  left: var(--disc-left); top: var(--disc-top); width: var(--disc-w); height: auto;
  filter: drop-shadow(0 14px 18px rgb(40 50 50 / 0.28));
}
.scene__fg { inset: 0; width: 100%; height: 100%; }

.hero__moss {
  /* Not 0: a fully transparent layer is never painted, so the big image would
     decode on the first frame it shows, which is the middle of the zoom. */
  position: absolute; inset: 0; opacity: 0.002;
  background: url("assets/moss-macro.webp") center / cover;
  will-change: opacity, transform;
}
.hero__moss::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(11 26 19 / 0.82), rgb(11 26 19 / 0.45) 45%, rgb(11 26 19 / 0.05) 80%);
}

.hero__copy {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); top: 50%; translate: 0 -56%;
  width: min(40vw, 40rem);
  color: var(--forest-ink);
}
.hero__title { font-size: clamp(3rem, 1.6rem + 4.4vw, 6.2rem); font-weight: 300; }
.hero__sub { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); line-height: 1.4; max-width: 30ch; color: #2b4034; text-wrap: pretty; }

/* Portrait tablets: slide the wide photo so the disc is not cut by the edge. */
@media (min-width: 761px) and (max-aspect-ratio: 1 / 1) {
  .scene { left: calc(70vw - 0.2007 * var(--stage-h)); }
  .hero__copy { width: 36vw; }
  .hero__title { font-size: clamp(2.6rem, 6.4vw, 3.4rem); }
}

.hero__inside {
  position: absolute; z-index: var(--sc-z-copy);
  left: var(--sc-gutter); bottom: calc(clamp(3rem, 12vh, 8rem) + var(--bars));
  width: min(52rem, calc(100% - 2 * var(--sc-gutter)));
}

/* Scroll hint: the first screen is a still photo, so say that the page moves.
   A quiet pill, not a CTA. It sits above the browser bars and the home indicator. */
.hint {
  position: absolute; z-index: var(--sc-z-copy);
  left: 50%; bottom: calc(var(--sc-5) + var(--bars) + env(safe-area-inset-bottom));
  translate: -50% 10px;
  display: inline-flex; align-items: center; gap: 10px;
  width: max-content; min-height: 48px; padding: 0 22px 0 26px;
  border: 0; border-radius: var(--sc-r-pill);
  background: rgb(240 237 227 / 0.74); color: var(--forest-ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgb(20 40 30 / 0.16);
  font: 500 0.95rem/1 var(--sc-font-text); letter-spacing: 0.01em;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--sc-ease-out), translate 600ms var(--sc-ease-out), background-color var(--sc-d-fast) var(--sc-ease-out), visibility 0s 600ms;
}
.hint.is-on { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.hint:focus-visible { outline: 2px solid var(--forest-ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .hint:hover { background: rgb(240 237 227 / 0.92); } }
.hint__arrow { flex: none; }
.hint.is-on .hint__arrow { animation: hint-nudge 1.8s var(--sc-ease-out, ease-out) 0.6s infinite; }
@keyframes hint-nudge {
  0%, 55%, 100% { translate: 0 0; }
  25% { translate: 0 5px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hint { bottom: calc(var(--sc-3) + var(--bars) + env(safe-area-inset-bottom)); min-height: 44px; }
}

/* Scroll-driven zoom and rail (site.js adds .sda and writes the keyframes).
   The range is the pin itself: the act's top at the screen's top to its bottom
   at the screen's bottom, the same span the engine's p runs over. */
.sda #hero { view-timeline: --hero block; }
.sda #proizvodi { view-timeline: --ponuda block; }
.sda .scene__disc, .sda .scene__wall, .sda .scene__fg, .sda .hero__moss, .sda .rail {
  animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both;
  animation-timeline: --hero; animation-range: contain 0% contain 100%;
}
.sda .rail { animation-timeline: --ponuda; }

/* -------------------------------------------------------------- bilje -- */
.bilje { padding-block: 0; }
.bilje__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
.bilje__text { padding: var(--sc-10) var(--sc-7) var(--sc-10) var(--sc-gutter); align-self: center; }
.bilje__fig { margin: 0; min-height: 100vh; }
.bilje__fig img { width: 100%; height: 100%; object-fit: cover; }
.tvari { margin: var(--sc-7) 0 0; }
.tvari > div { padding-block: var(--sc-4); border-top: 1px solid var(--sc-hairline); }
.tvari dt { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); font-weight: 500; }
.tvari dd { margin: var(--sc-1) 0 0; color: var(--sc-ink-soft); max-width: 44ch; text-wrap: pretty; }

/* -------------------------------------------------------------- brige -- */
.brige__stage, .ponuda__stage { height: var(--stage-h); }
.brige__stage { display: grid; align-items: center; }
.brige__disc {
  position: absolute; right: -18vmin; top: 50%; width: 92vmin; height: auto; max-width: none;
  translate: 0 -50%; rotate: calc(var(--sc-p, 0) * 46deg); opacity: 0.92;
  transform-origin: 51.04% 55.97%;
  /* Trims the sliver of wall left on the cut edge, which shows on a dark ground. */
  clip-path: circle(41.9% at 51.04% 55.97%);
}
.brige__lines { display: grid; padding-inline: var(--sc-gutter); }
.brige__lines > p { grid-area: 1 / 1; max-width: 13ch; font-weight: 300; }
.brige__last { color: var(--sc-accent); }
/* Up to this width the longest lines reach the disc: fade its left side, not the whole frame. */
@media (max-width: 1280px) and (orientation: landscape), (min-width: 861px) and (max-width: 1280px) {
  .brige__stage::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, #0d1c16 50%, transparent 82%);
  }
  .brige__lines { position: relative; z-index: 2; }
}

/* ------------------------------------------------------------- ponuda -- */
.ponuda__stage { display: flex; align-items: center; }
.rail { align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-inline: var(--sc-gutter); width: max-content; }
.rail__lead { flex: none; width: min(30rem, 78vw); }
.rail__lead .sc-body { margin-top: var(--sc-5); }
.rail__end { flex: none; width: min(30rem, 78vw); }
.rail__end .sc-display { margin: 0; font-weight: 300; }
.rail__more { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); }
.rail__more a { color: var(--sc-accent); text-underline-offset: 4px; }
.rad { flex: none; }
.rad__img { overflow: hidden; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); background: var(--sc-surface); }
.rad__img img { width: 100%; height: 100%; object-fit: cover; }
.rad--tall { width: min(44svh, 76vw); }
.rad--tall .rad__img { aspect-ratio: 4 / 5; max-height: 58svh; }
.rad--wide { width: min(74svh, 84vw); }
.rad--wide .rad__img { aspect-ratio: 4 / 3; max-height: 58svh; }
.rad h3 { margin-top: var(--sc-5); }
.rad p { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); max-width: 34ch; }

/* ----------------------------------------------------------------- ja -- */
.ja { padding-block: var(--sc-section); overflow: clip; }
.ja__grid {
  max-width: none; margin-inline: 0; padding-inline: var(--sc-gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sc-8); align-items: center;
}
.ja__photos { position: relative; aspect-ratio: 1 / 1.08; }
.ja__photos img { position: absolute; height: auto; border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); }
.ja__back { left: 0; top: 4%; width: 54%; }
.ja__front { right: 0; top: 14%; width: 62%; }
.ja blockquote { margin: 0; font-weight: 300; line-height: 1.12; quotes: "\201E" "\201C"; }
.ja blockquote::before { content: open-quote; color: var(--sc-accent); }
.ja blockquote::after { content: close-quote; color: var(--sc-accent); }
.ja__sign { color: var(--sc-accent); font-weight: 500; margin-top: var(--sc-5); }

/* ------------------------------------------------------------ pitanja -- */
.pitanja__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sc-8); align-items: start; }
.pitanja details { border-top: 1px solid var(--sc-hairline-strong); }
.pitanja details:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.pitanja summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sc-5);
  min-height: 64px; padding-block: var(--sc-4); cursor: pointer; list-style: none;
  font-family: var(--sc-font-display); font-size: var(--sc-t-lg); font-weight: 500; line-height: 1.2;
}
.pitanja summary::-webkit-details-marker { display: none; }
.pitanja summary::after {
  content: "+"; flex: none; font-size: 1.5em; font-weight: 300; color: var(--sc-accent);
  transition: rotate var(--sc-d-fast) var(--sc-ease-out);
}
.pitanja details[open] summary::after { rotate: 45deg; }
.pitanja details p { margin: 0 0 var(--sc-5); max-width: 58ch; color: var(--sc-ink-soft); }

/* --------------------------------------------------------------- upit -- */
.upit__stage { display: flex; flex-direction: column; justify-content: center; }
.upit__moss {
  position: absolute; inset: 0;
  background: url("assets/moss-macro.webp") center / cover;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 110%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 80% at 50% 110%, #000 20%, transparent 100%);
}
.upit__inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sc-6);
  padding-inline: var(--sc-gutter); width: min(62rem, 100%);
}
.upit__inner h2 { font-weight: 300; }
.upit__alt { margin: 0; color: var(--sc-ink); }
.upit__alt a { overflow-wrap: anywhere; }
/* Footer and contact links are small type but full-size targets: 44px tall, same look. */
.upit__alt a, .foot__links a, .foot__credit a, .rail__more a, .pitanja__more a { position: relative; }
.upit__alt a::after, .foot__links a::after, .foot__credit a::after, .rail__more a::after, .pitanja__more a::after { content: ""; position: absolute; inset: -12px -4px; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--sc-1) var(--sc-5); }
.foot {
  position: absolute; z-index: 3; inset: auto 0 0 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sc-1) var(--sc-6);
  padding: var(--sc-5) var(--sc-gutter) calc(var(--sc-5) + env(safe-area-inset-bottom)); font-size: var(--sc-t-sm); color: var(--sc-ink);
}
.foot p { margin: 0; }

/* ------------------------------------------------------------- mobile -- */
/* ----------------------------------------------- projekti i klijenti -- */
/* Used once the <template> slots in index.html are switched on. */
.projekti__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--sc-7) var(--sc-6); margin-top: var(--sc-7); }
.projekt img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sc-r-md, 10px); }
.projekt h3 { margin: var(--sc-4) 0 var(--sc-1); font-size: var(--sc-t-lg); font-weight: 500; }
.projekt p { margin: 0; color: var(--sc-ink-soft); }
.klijenti { overflow: clip; }
.klijenti__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: var(--sc-3) var(--sc-8); }
.klijenti__head h2 { margin: 0; }
.klijenti__head p { margin: 0; max-width: 30ch; color: var(--sc-ink-soft); }

/* Client marquee. One slow, even band of one-colour marks: the sameness is what
   makes seventeen unrelated logos read as a single, considered collection. */
.marquee {
  --logo: clamp(2.6rem, 1.9rem + 1.6vw, 3.6rem);   /* height of an average mark */
  --gap: clamp(3.5rem, 2rem + 5vw, 8rem);
  position: relative; margin-top: var(--sc-8);
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem);
  border-block: 1px solid var(--sc-hairline);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__rail { display: flex; width: max-content; will-change: transform; }
.marquee.is-running .marquee__rail { animation: marquee var(--dur, 80s) linear infinite; }
.marquee.is-paused .marquee__rail { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee__list { display: flex; align-items: center; gap: var(--gap); margin: 0; padding: 0 var(--gap) 0 0; list-style: none; }
.logo { flex: none; display: flex; align-items: center; height: calc(var(--logo) * 1.6); opacity: 0.62; transition: opacity var(--sc-d-base) var(--sc-ease-out); }
.logo img { display: block; height: calc(var(--logo) * var(--k, 1)); width: auto; max-width: none; }
/* No usable mark: the name, set as a quiet wordmark so it sits in the same band. */
.logo--type {
  max-width: 17ch; font-family: var(--sc-font-display); font-weight: 400;
  font-size: calc(var(--logo) * 0.42); line-height: 1.15; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f0ede3; text-wrap: balance;
}
@media (hover: hover) and (pointer: fine) { .logo:hover { opacity: 1; } }
@media (max-width: 760px) {
  .marquee { --logo: 2.2rem; --gap: 3.25rem; margin-top: var(--sc-6); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
}
/* Still: the band becomes a centred wall, every name visible at once. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--sc-gutter); }
  .marquee__rail { width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; gap: var(--sc-6) var(--gap); padding: 0; }
  .marquee__list[aria-hidden] { display: none; }
}
.pitanja__more { margin: var(--sc-6) 0 0; }
.pitanja__more a { color: var(--sc-accent); text-underline-offset: 3px; }

@media (max-width: 760px) {
  :root { --bar-h: 68px; }
  .bar__mark { width: 112px; height: 46px; }
}
/* Phone held upright: the original portrait photo, sitting low, wall above it
   for copy. --drop comes from site.js and pushes it down on short screens. */
@media (max-width: 760px) and (orientation: portrait) {
  .scene {
    --disc-left: 0%; --disc-top: 5.9766%; --disc-w: 67.1353%;
    width: 108%; aspect-ratio: 2 / 3; left: 52%;
    top: auto; bottom: calc(-1 * var(--drop, 0px));
  }
  /* The drop moves the panel, not the furniture: the table stays on the floor of the frame. */
  .scene__fg { translate: 0 calc(-1 * var(--drop, 0px)); }
  .hero__copy { top: calc(var(--bar-h) + 8px); translate: none; width: auto; right: var(--sc-gutter); }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero__sub { margin-top: var(--sc-3); font-size: var(--sc-t-base); }
}
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .bilje__grid, .ja__grid, .pitanja__grid { grid-template-columns: minmax(0, 1fr); }
  .bilje__text { padding: var(--sc-8) var(--sc-gutter); }
  .bilje__fig { min-height: 0; aspect-ratio: 4 / 5; }
  .ja__grid { gap: var(--sc-7); }
  .pitanja__grid { gap: var(--sc-6); }
  .brige__disc { right: -34vmin; top: 30%; width: 96vmin; opacity: 0.5; }
  .foot { flex-direction: column; }
}
/* Phone on its side: everything pinned has about 300px under the bar. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --bar-h: 60px; }
  .bar__mark { width: 104px; height: 44px; }
  .hero__copy { top: calc(var(--bar-h) + 4px); translate: none; width: min(42vw, 26rem); }
  .hero__title { font-size: clamp(1.9rem, 10svh, 2.6rem); }
  .hero__sub { margin-top: var(--sc-2); font-size: 0.95rem; max-width: 32ch; }
  .hero__inside { bottom: calc(var(--sc-5) + var(--bars)); }

  .brige__lines > p { font-size: clamp(2rem, 12svh, 3rem); }

  .ponuda__stage { align-items: flex-end; padding-bottom: calc(var(--sc-4) + var(--bars)); }
  .rail > .rail__lead, .rail > .rail__end { align-self: center; }
  .rad, .rad--tall, .rad--wide { display: grid; grid-template-columns: auto 13rem; column-gap: var(--sc-4); align-content: end; width: auto; }
  .rad .rad__img { grid-row: 1 / span 2; height: calc(100svh - var(--bar-h) - 2rem); max-height: none; }
  .rad h3 { margin-top: 0; align-self: end; }

  .upit__stage { justify-content: flex-start; padding-top: calc(var(--bar-h) + 4px); }
  .upit__inner { gap: var(--sc-3); }
  .upit__inner h2 { font-size: clamp(1.9rem, 10svh, 2.6rem); }
  .foot { padding-block: var(--sc-2) calc(var(--sc-2) + env(safe-area-inset-bottom)); }
}
/* When the bars collapse the stage stops short of the screen's bottom edge.
   Fading the moss out first means there is no hard line where it stops. */
@media (pointer: coarse) {
  .upit__moss {
    -webkit-mask-image: radial-gradient(70% 80% at 50% 110%, #000 20%, transparent 100%), linear-gradient(to top, transparent, #000 16%);
    mask-image: radial-gradient(70% 80% at 50% 110%, #000 20%, transparent 100%), linear-gradient(to top, transparent, #000 16%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brige__disc { rotate: none; }
  .scene__disc, .scene__fg, .scene__wall { transform: none !important; }
  .hint.is-on .hint__arrow { animation: none; }
  .hint { translate: -50% 0; }
}

/* One left edge for the whole page: the flowing sections start on the gutter
   like the pinned ones, instead of on a centred 82rem column. */
.klijenti__head.sc-wrap, .pitanja__grid.sc-wrap { max-width: none; margin-inline: 0; }

/* Phones get a lighter moss texture: the 2400px one is for wide screens. */
@media (max-width: 760px) {
  .hero__moss, .upit__moss { background-image: url("assets/moss-macro-sm.webp"); }
}

/* Short phones: the contact line now carries the address too, so the act
   starts under the bar and tightens up to leave the footer its own room. */
@media (max-width: 760px) and (orientation: portrait) and (max-height: 620px) {
  .upit__stage { justify-content: flex-start; padding-top: calc(var(--bar-h) + 8px); }
  .upit__inner { gap: var(--sc-4); }
  .upit__inner h2 { font-size: clamp(2rem, 8.5svh, 2.6rem); }
}
