/* ==========================================================================
   SAMI-GRAD d.o.o. — stilovi stranice
   ========================================================================== */

/* ---------- fontovi (lokalno, SIL Open Font License — vidi assets/fonts) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variable-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  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;
}

:root {
  /* boje */
  --ink: #111315;
  --ink-2: #181b1e;
  --ink-line: rgba(244, 241, 234, 0.12);
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --card: #fbf9f4;
  --line: rgba(17, 19, 21, 0.13);
  --text: #16181a;
  --muted: #5b5f64;
  --muted-d: #a2a6ab;
  --accent: #f2a33a;
  --accent-deep: #9a500a;

  /* tipografija */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* raspored */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 80px;
  --section-y: clamp(88px, 11vw, 168px);

  /* pokret */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- osnova ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 750; letter-spacing: -0.02em; }
p, figure, address { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }
.theme-dark { background: var(--ink); color: var(--paper); }

/* ---------- tipografski elementi ---------- */
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75em;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  background: var(--accent);
}
.eyebrow--light { color: var(--muted-d); }

.sec-title {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.sec-lead {
  max-width: 32em;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  color: var(--muted);
}
.theme-dark .sec-lead { color: rgba(244, 241, 234, 0.7); }

/* ---------- gumbi i poveznice ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  height: 56px;
  padding: 0 1.6em;
  border-radius: 2px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}
/* magnetni gumbi: tekst se pomiče malo više od gumba */
.btn > span { transform: translate3d(calc(var(--tx, 0px) * 0.35), calc(var(--ty, 0px) * 0.35), 0); transition: transform 0.6s var(--ease-out); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleY(1); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary::before { background: var(--paper); }

.btn--ghost { border: 1px solid rgba(244, 241, 234, 0.3); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); color: var(--ink); }

.btn--sm { height: 44px; padding: 0 1.25em; font-size: 0.9rem; }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding-bottom: 4px;
  font-weight: 650;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-out);
}
.link-arrow .icon { transition: transform 0.45s var(--ease-out); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- logotip ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand__mark { width: 34px; height: 34px; overflow: visible; }
.brand__mark rect { fill: currentColor; }
.brand__roof {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: square;
  transition: transform 0.5s var(--ease-out);
}
.brand:hover .brand__roof { transform: translateY(-2px); }
.brand__text { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.brand__name { font-size: 1.15rem; font-weight: 800; font-stretch: 118%; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted-d); }

/* ---------- odabir jezika ---------- */
.lang {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--ink-line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lang a { padding: 0.5em 0.7em; color: var(--muted-d); transition: color 0.3s ease, background-color 0.3s ease; }
.lang a:hover { color: var(--paper); }
.lang a[aria-current="page"] { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   Zaglavlje
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform 0.55s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}
.header.is-scrolled {
  background: rgba(17, 19, 21, 0.8);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--ink-line);
}
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 0.15rem; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(244, 241, 234, 0.74);
  transition: color 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active { color: var(--paper); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.header__actions { display: flex; align-items: center; gap: 1.1rem; }
.brand + .header__actions { margin-left: auto; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.header__phone .icon { color: var(--accent); }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ink-line);
  border-radius: 2px;
}
.burger span { width: 20px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* mobilni izbornik */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.mmenu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
.mmenu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), color 0.3s;
  transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.mmenu__list a:hover { color: var(--accent); }
.mmenu__list small { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); }
.mmenu.is-open .mmenu__list a { opacity: 1; transform: none; }
.mmenu__foot {
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}
.mmenu.is-open .mmenu__foot { opacity: 1; }
.mmenu__foot a { display: inline-flex; align-items: center; gap: 0.7rem; color: rgba(244, 241, 234, 0.8); }
.mmenu__foot .icon { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 104px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 72% 48%, rgba(242, 163, 58, 0.09), transparent 70%),
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(244, 241, 234, 0.022) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.022) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 60% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 80% at 60% 45%, #000 35%, transparent 100%);
}
/* mreža nacrta svijetli oko pokazivača */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background:
    linear-gradient(rgba(242, 163, 58, 0.3) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(242, 163, 58, 0.3) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, 0.9), transparent 75%);
}
.hero.is-pointer .hero__glow { opacity: 1; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.hero__title {
  margin-bottom: 1.75rem;
  font-size: clamp(3rem, 6.3vw, 6.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.048em;
}
.hero__title .hl { display: block; color: var(--accent); }
/* svjetlosni odsjaj povremeno prijeđe preko „koji traju." */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .js .hero__title .hl .wi {
    background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 38%, #ffe6b8 50%, var(--accent) 62%, var(--accent) 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .js .hero__title.is-in .hl .wi { animation: shine 8s ease-in-out calc(2.6s + var(--wi) * 0.16s) infinite; }
}
@keyframes shine {
  0% { background-position: 100% 0; }
  24%, 100% { background-position: 0% 0; }
}
.hero__lead {
  max-width: 34em;
  margin-bottom: 2.4rem;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  color: rgba(244, 241, 234, 0.72);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.6rem; }

.hero__call { display: inline-flex; align-items: center; gap: 14px; }
.hero__call-icon {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color 0.35s ease, color 0.35s ease;
}
.hero__call-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ring 2.8s var(--ease-out) 2s infinite;
}
.hero__call:hover .hero__call-icon { background: var(--accent); color: var(--ink); }
.hero__call small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.hero__call strong { font-size: 1.2rem; font-weight: 650; letter-spacing: 0.02em; }

@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.hero__scroll {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: 0;
  width: 1px;
  height: 64px;
  background: var(--ink-line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: scrollcue 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- nacrt kuće ---------- */
.hero__visual {
  position: relative;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease-out);
}
.drawing {
  position: relative;
  padding: clamp(12px, 1.6vw, 22px);
  border: 1px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.03), rgba(244, 241, 234, 0.005));
}
/* kutni nišani okvira „izrastu" iz uglova */
@property --corner {
  syntax: "<length>";
  inherits: false;
  initial-value: 16px;
}
.drawing::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / var(--corner) 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 1.5px var(--corner) no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / var(--corner) 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 1.5px var(--corner) no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / var(--corner) 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1.5px var(--corner) no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / var(--corner) 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1.5px var(--corner) no-repeat;
}
.js [data-drawing]:not(.is-static) .drawing::before { --corner: 0px; }
[data-drawing].is-playing .drawing::before { animation: corners 1.1s var(--ease-out) 0.1s forwards; }
@keyframes corners { to { --corner: 16px; } }

/* odsjaj koji prati pokazivač */
.drawing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(244, 241, 234, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero.is-pointer .drawing::after { opacity: 1; }
.drawing__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.drawing__replay {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
  transition: color 0.3s ease;
}
.drawing__replay .icon { width: 14px; height: 14px; transition: transform 0.6s var(--ease-out); }
.drawing__replay:hover { color: var(--accent); }
.drawing__replay:hover .icon { transform: rotate(-200deg); }

.bp {
  --bp-line: rgba(244, 241, 234, 0.92);
  --bp-thin: rgba(244, 241, 234, 0.45);
  --bp-hair: rgba(244, 241, 234, 0.26);
  --bp-acc: var(--accent);
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-h) - 230px);
  min-height: 260px;
  overflow: visible;
}

/* konačno stanje (bez JS-a ili uz smanjeno kretanje) */
.bp .ln {
  fill: none;
  stroke: var(--bp-line);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.bp .ln.thin { stroke: var(--bp-thin); stroke-width: 1; }
.bp .ln.hair { stroke: var(--bp-hair); stroke-width: 0.8; }
.bp .ln.acc { stroke: var(--bp-acc); }
.bp .thin-s { fill: none; stroke: var(--bp-thin); stroke-width: 1; }
.bp .hair-s { fill: none; stroke: var(--bp-hair); stroke-width: 0.8; }
.bp .bp-pat { fill: none; stroke: rgba(244, 241, 234, 0.32); stroke-width: 0.6; }
.bp .bp-dot { fill: rgba(244, 241, 234, 0.38); }
.bp .ax {
  fill: none;
  stroke: var(--bp-hair);
  stroke-width: 0.8;
  stroke-dasharray: 9 3 2 3;
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.bp .bp-t { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; fill: var(--bp-thin); }
.bp .bp-t--c { text-anchor: middle; }
.bp .bp-t--acc { fill: var(--bp-acc); }
.bp .bp-t--strong { fill: var(--bp-line); font-size: 10px; font-weight: 500; }
.bp .bp-t--s { font-size: 8px; }
.bp .bp-facade { fill: rgba(244, 241, 234, 0.055); }
.bp .glow { fill: url(#bp-glow); }
.bp .bp-lights { filter: drop-shadow(0 0 8px rgba(242, 163, 58, 0.55)); }
.bp .bp-bricks { opacity: 0.12; }
.bp .bp-crane { opacity: 0.2; }

/* početno stanje prije animacije */
.js [data-drawing]:not(.is-static) .bp .ln { stroke-dashoffset: 1; }
.js [data-drawing]:not(.is-static) .bp .fd { opacity: 0; }
.js [data-drawing]:not(.is-static) .bp .ax { transform: scaleY(0); }
.js [data-drawing]:not(.is-static) .bp .bp-bricks,
.js [data-drawing]:not(.is-static) .bp .bp-crane { opacity: 1; }

/* reprodukcija */
[data-drawing].is-playing .bp .ln { animation: bp-draw var(--t, 1s) var(--ease-in-out) var(--d, 0s) forwards; }
[data-drawing].is-playing .bp .fd { animation: bp-fade var(--t, 0.5s) ease var(--d, 0s) forwards; }
[data-drawing].is-playing .bp .ax { animation: bp-grow 1.3s var(--ease-in-out) var(--d, 0s) forwards; }
[data-drawing].is-playing .bp .bp-bricks { animation: bp-dim 0.9s ease 5.2s forwards; }
[data-drawing].is-playing .bp .bp-crane { animation: bp-crane 1.4s ease 6.3s forwards; }
[data-drawing].is-playing .bp .bp-hook {
  animation:
    bp-fade 0.5s ease 1.8s forwards,
    bp-trolley 9s var(--ease-in-out) 2.4s infinite;
}
[data-drawing].is-static .bp .bp-hook { opacity: 1; }

@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }
@keyframes bp-grow { to { transform: scaleY(1); } }
@keyframes bp-dim { to { opacity: 0.12; } }
@keyframes bp-crane { to { opacity: 0.2; } }
@keyframes bp-trolley {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-38px); }
}

/* toplo svjetlo kuće, dim iz dimnjaka i laserski nivelir koji se diže s gradnjom */
.bp .bp-bloom { fill: url(#bp-bloom-grad); }
.bp .puff { fill: url(#bp-smoke); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
[data-drawing].is-playing .bp .puff { animation: bp-puff 4.2s ease-out calc(6.4s + var(--i) * 1.4s) infinite; }
@keyframes bp-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  18% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(16px, -54px) scale(2.8); }
}
.bp .bp-laser { opacity: 0; pointer-events: none; }
.bp .bp-laser__beam { fill: none; stroke: url(#bp-laser-grad); stroke-width: 1.2; }
.bp .bp-laser__glow { fill: none; stroke: url(#bp-laser-grad); stroke-width: 9; opacity: 0.18; }
.bp .bp-laser__dot { fill: #ffd58a; }
[data-drawing].is-playing .bp .bp-laser { animation: bp-laser 3.9s linear 1.1s both; }
@keyframes bp-laser {
  0% { opacity: 0; transform: translateY(472px); }
  5% { opacity: 1; transform: translateY(468px); }
  26% { transform: translateY(440px); }
  31% { transform: translateY(440px); }
  46% { transform: translateY(352px); }
  62% { transform: translateY(268px); }
  77% { transform: translateY(158px); }
  87% { opacity: 1; transform: translateY(146px); }
  100% { opacity: 0; transform: translateY(146px); }
}

/* faze ispod nacrta */
.phases {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 14px;
}
.phase {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.6em;
  row-gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--paper);
}
.phase__num { color: var(--accent); }
.phase__bar { position: relative; flex-basis: 100%; height: 2px; background: var(--ink-line); overflow: hidden; }
.phase__bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
.phase--key {
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  padding: 0.7em 0.95em;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.phase--key .icon { width: 14px; height: 14px; }

.js [data-drawing]:not(.is-static) .phase { color: var(--muted-d); }
.js [data-drawing]:not(.is-static) .phase__bar::after { transform: scaleX(0); transform-origin: 0 50%; }
.js [data-drawing]:not(.is-static) .phase--key { background: transparent; border-color: var(--ink-line); color: var(--muted-d); }

[data-drawing].is-playing .phase { animation: phase-on 0.4s ease var(--d) forwards; }
[data-drawing].is-playing .phase__bar::after { animation: bar-fill var(--t) linear var(--d) forwards; }
[data-drawing].is-playing .phase--key { animation: key-on 0.7s var(--ease-out) var(--d) forwards; }

@keyframes phase-on { to { color: var(--paper); } }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes key-on {
  0% { background: transparent; border-color: var(--ink-line); color: var(--muted-d); transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: scale(1); }
}

/* ==========================================================================
   Traka s uslugama — jednoliko kretanje, neovisno o skrolanju
   ========================================================================== */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.15rem 0;
  background: var(--accent);
  color: var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 120s linear infinite;
}
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__group span {
  padding: 0 0.55em;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group span.is-outline { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.marquee__sep {
  width: clamp(22px, 2.4vw, 36px);
  height: clamp(22px, 2.4vw, 36px);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: square;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   Zaglavlje sekcije
   ========================================================================== */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

/* ==========================================================================
   Usluge
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transition: box-shadow 0.6s var(--ease-out), border-color 0.4s ease;
}
/* rub kartice zasvijetli ondje gdje je pokazivač */
.svc::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -1px;
  padding: 1.5px;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 0%), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
}
/* meko svjetlo ispod teksta kartice */
.svc::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 100%), rgba(242, 163, 58, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.svc > * { position: relative; z-index: 1; }
.svc:hover { box-shadow: 0 34px 60px -34px rgba(17, 19, 21, 0.35); border-color: rgba(17, 19, 21, 0.2); }
.svc:hover::before,
.svc:hover::after { opacity: 1; }

.svc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}
.svc:hover .svc__media img { transform: scale(1.08); }
.js .svc .svc__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-in-out) calc(var(--i, 0) * 90ms + 0.1s); }
.js .svc.is-in .svc__media { clip-path: inset(0 0 0 0); }
.js .svc .svc__media img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.js .svc.is-in .svc__media img { transform: scale(1.02); }
.js .svc.is-in:hover .svc__media img { transform: scale(1.08); transition-duration: 1.4s; }

.svc__num {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 0.45em 0.75em;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}
.svc__body { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: clamp(24px, 3vw, 40px); }
.svc__title { font-size: clamp(1.45rem, 2vw, 1.95rem); font-weight: 750; letter-spacing: -0.028em; }
.svc__text { color: var(--muted); }
.svc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.25rem;
  margin: 0.4rem 0 0.8rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
}
.svc__list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.95rem; font-weight: 550; line-height: 1.4; }
.svc__list .icon { width: 17px; height: 17px; margin-top: 0.05em; color: var(--accent-deep); stroke-width: 2.2; }
/* stavke popisa ulaze jedna za drugom, a kvačice se iscrtaju */
.svc__list li:nth-child(2) { --li: 1; }
.svc__list li:nth-child(3) { --li: 2; }
.svc__list li:nth-child(4) { --li: 3; }
.js .svc .svc__list li {
  opacity: 0;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
  transition-delay: calc(0.55s + var(--li, 0) * 0.1s);
}
.js .svc.is-in .svc__list li { opacity: 1; transform: none; }
.js .svc .svc__list .icon {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s var(--ease-in-out) calc(0.75s + var(--li, 0) * 0.1s);
}
.js .svc.is-in .svc__list .icon { stroke-dashoffset: 0; }
.svc .link-arrow { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   O nama
   ========================================================================== */
/* tamna pozadina se pri ulasku raširi od zaobljene kartice do pune širine */
.about__bg { display: none; }
@media (min-width: 901px) {
  .js .about { background: transparent; }
  .js .about__bg {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--ink);
    border-radius: 44px;
    transform: scaleX(0.94);
    transition: transform 1.6s var(--ease-out), border-radius 1.6s var(--ease-out);
  }
  .js .about.is-open .about__bg { transform: none; border-radius: 0; }
  .about > .container { position: relative; }
}

.about__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: end;
}
.about__lead { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 620; line-height: 1.2; letter-spacing: -0.028em; }
.about__lead .sw { opacity: 0.16; transition: opacity 0.35s ease; }
.about__lead .sw.is-lit { opacity: 1; }
.about__lead .key { font-style: normal; }
.about__lead .sw.key { transition: opacity 0.35s ease, color 0.8s ease; }
.about__lead .sw.key.is-lit { color: var(--accent); }

.about__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about__img { position: absolute; inset: -9% 0; will-change: transform; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--accent);
  color: var(--ink);
}
.about__badge strong { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.about__badge span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--ink-line);
}
.stat { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 40px) 0 0; }
.stat + .stat { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--ink-line); }
.stat__value {
  display: flex;
  align-items: flex-start;
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat__plus { margin-left: 0.05em; font-size: 0.5em; line-height: 1.1; }
.stat__label { display: block; max-width: 17em; margin-top: 1rem; color: var(--muted-d); }

/* brojčanik: znamenke se zavrte i stanu na pravoj vrijednosti */
.odo { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; }
.odo__col {
  display: flex;
  flex-direction: column;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 0.14s);
}
.odo__col span { display: block; height: 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { overflow: hidden; }
.contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(23, 24, 26, 0.06) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(23, 24, 26, 0.06) 1px, transparent 1px) 0 0 / 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 15% 35%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 15% 35%, #000, transparent 75%);
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
}
.contact .sec-lead { margin-top: 1.6rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
.contact .btn--primary::before { background: var(--ink); }
.contact .btn--primary:hover { color: var(--paper); }
.contact .btn--ghost { border-color: rgba(17, 19, 21, 0.25); color: var(--text); }
.contact .btn--ghost::before { background: var(--ink); }
.contact .btn--ghost:hover { border-color: var(--ink); color: var(--paper); }

.clist { border-top: 1px solid var(--line); }
.clist__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
a.clist__item:hover { padding-left: 10px; }
.clist__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-deep);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
a.clist__item:hover .clist__icon { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.clist small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.clist strong { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 650; word-break: break-word; }
.clist__go { margin-left: auto; color: var(--muted); transition: transform 0.45s var(--ease-out), color 0.3s ease; }
a.clist__item:hover .clist__go { transform: translate(3px, -3px); color: var(--accent-deep); }

/* ==========================================================================
   Projekti (neobavezno — upute u README.md)
   ========================================================================== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.project figcaption { padding-top: 12px; font-weight: 650; }

/* ==========================================================================
   Podnožje
   ========================================================================== */
.footer {
  position: relative;
  padding-top: clamp(72px, 9vw, 128px);
  background: #0c0e10;
  color: var(--paper);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__brand p { max-width: 24em; margin-top: 1.4rem; font-size: 0.95rem; color: rgba(244, 241, 234, 0.6); }
.footer__h {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-d);
}
.footer__col li { font-size: 0.95rem; color: rgba(244, 241, 234, 0.8); }
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: rgba(244, 241, 234, 0.8); transition: color 0.3s ease; }
.footer__col a:hover { color: var(--accent); }
.footer address { font-style: normal; font-size: 0.86rem; line-height: 1.75; color: rgba(244, 241, 234, 0.58); }

.footer__mark-wrap { margin-top: clamp(56px, 8vw, 120px); overflow: hidden; }
/* veliki natpis: obrisi slova crtaju se kao na nacrtu */
.footer__mark { display: block; width: 100%; height: auto; overflow: visible; user-select: none; }
.footer__mark text {
  font-family: var(--font-sans);
  font-size: 200px;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  fill: none;
  stroke: rgba(244, 241, 234, 0.3);
  stroke-width: var(--sw, 1px);
  stroke-linejoin: round;
}
/* ispuna je na slovima (tspan), a ne naslijeđena — tako se ne pojavi prije obrisa */
.footer__mark tspan { fill: rgba(242, 163, 58, 0); transition: fill 0.6s ease, stroke 0.6s ease; }
.footer__mark tspan:hover { fill: var(--accent); stroke: var(--accent); transition-duration: 0.12s; }
.js .footer__mark[data-reveal] { opacity: 1; transform: none; }
.js .footer__mark text {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 3.4s var(--ease-in-out);
}
.js .footer__mark.is-in text { stroke-dashoffset: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-block: 26px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.86rem;
  color: rgba(244, 241, 234, 0.55);
}
.footer__bottom a:hover { color: var(--accent); }
.totop { display: inline-flex; align-items: center; gap: 0.5em; color: rgba(244, 241, 234, 0.8); transition: color 0.3s ease; }
.totop .icon { transition: transform 0.45s var(--ease-out); }
.totop:hover { color: var(--accent); }
.totop:hover .icon { transform: translateY(-3px); }

/* plutajući gumb za poziv (mobitel) */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease-out);
}
.fab-call .icon { width: 24px; height: 24px; }
.fab-call::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ring 2.6s var(--ease-out) infinite;
}
.fab-call.is-visible { transform: none; }

/* telefon povremeno „zazvoni" */
@keyframes ring-wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  92% { transform: rotate(-9deg); }
  94% { transform: rotate(6deg); }
  96% { transform: rotate(-3deg); }
}
.hero__call-icon .icon,
.contact__actions .btn--primary .icon,
.fab-call .icon { animation: ring-wiggle 5.5s ease-in-out 3s infinite; }

/* ==========================================================================
   Uvodna animacija — samo pri prvom posjetu u sesiji
   ========================================================================== */
.intro { display: none; }
.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  clip-path: inset(0 0 0 0);
  animation: intro-out 0.9s var(--ease-in-out) 1.5s forwards;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(244, 241, 234, 0.022) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.022) 1px, transparent 1px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 100%);
}
.intro__inner {
  position: relative;
  display: grid;
  justify-items: center;
  animation: intro-inner-out 0.9s var(--ease-in-out) 1.5s forwards;
}
.intro__mark { width: clamp(64px, 8vw, 88px); height: auto; margin-bottom: 22px; overflow: visible; }
.intro__brick {
  fill: var(--paper);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: brick-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.12s + var(--b) * 0.11s) forwards;
}
.intro__roof {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw-roof 0.6s var(--ease-in-out) 0.62s forwards;
}
.intro__name,
.intro__sub { overflow: hidden; }
.intro__name span {
  display: block;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: 0.03em;
  transform: translateY(105%);
  animation: rise 0.8s var(--ease-out) 0.7s forwards;
}
.intro__sub { margin-top: 8px; }
.intro__sub span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-d);
  transform: translateY(105%);
  animation: rise 0.8s var(--ease-out) 0.85s forwards;
}
.intro__line { position: relative; width: clamp(140px, 16vw, 220px); height: 1px; margin-top: 26px; background: var(--ink-line); overflow: hidden; }
.intro__line i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: bar-fill 1.25s var(--ease-in-out) 0.15s forwards;
}
.intro.is-skip { animation: intro-skip 0.55s var(--ease-in-out) forwards; }
.intro.is-skip .intro__inner { animation: intro-inner-skip 0.55s var(--ease-in-out) forwards; }
/* zaglavlje se spusti kad se uvod povuče */
.has-intro .header { animation: header-in 0.9s var(--ease-out) 1.95s backwards; }

@keyframes brick-drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes draw-roof { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: none; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes intro-skip { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes intro-inner-out { to { opacity: 0; transform: translateY(-48px); } }
@keyframes intro-inner-skip { to { opacity: 0; transform: translateY(-48px); } }
@keyframes header-in { from { transform: translateY(-100%); } }

/* glatki prijelaz pri promjeni jezika */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.45s; }

/* ==========================================================================
   Animacije pojavljivanja
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > :first-child { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.js [data-reveal="clip"].is-in > :first-child { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"] img { transform: scale(1.22); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="clip"].is-in img { transform: none; }
.js .about__badge { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease 0.9s, transform 0.9s var(--ease-out) 0.9s; }
.js .is-in .about__badge { opacity: 1; transform: none; }

.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.js [data-split] .wi {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms);
}
.js [data-split].is-in .wi { transform: none; }

/* ==========================================================================
   Prilagodba zaslonima
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }
  .fab-call { display: grid; }
  .footer__bottom { padding-bottom: 96px; }
}

@media (max-width: 1100px) {
  .hero { min-height: 0; padding-bottom: 96px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__content { max-width: 720px; }
  .hero__visual { max-width: 760px; }
  .bp { max-height: none; }
  .hero__scroll { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .sec-head,
  .about__top,
  .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat,
  .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--ink-line); }
  .stat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: 16px; }
  .stat__label { margin-top: 0; }
}

@media (max-width: 640px) {
  .eyebrow { letter-spacing: 0.1em; }
  .header__inner { gap: 1rem; }
  .header__actions { gap: 0.6rem; }
  .header__cta,
  .header__phone { display: none; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { display: none; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__cta .btn,
  .contact__actions .btn { flex: 1 1 auto; }
  .phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .phase--key { grid-column: 1 / -1; justify-content: center; }
  .svc__list { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ==========================================================================
   Smanjeno kretanje
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-reveal="clip"] > :first-child,
  .js .svc .svc__media,
  .js .svc .svc__media img { opacity: 1; transform: none; clip-path: none; }
  .js [data-split] .wi { transform: none; }
  .about__lead .sw { opacity: 1; }
  .marquee__track,
  .hero__scroll span,
  .hero__call-icon::after,
  .fab-call::before,
  .hero__call-icon .icon,
  .contact__actions .btn--primary .icon,
  .fab-call .icon,
  .js .hero__title.is-in .hl .wi { animation: none; }
  .hero__glow { display: none; }
  .hero__visual,
  .btn,
  .btn > span { transform: none; }
  .js .svc .svc__list li { opacity: 1; transform: none; }
  .js .svc .svc__list .icon,
  .js .footer__mark text { stroke-dashoffset: 0; }
  .js .about__bg { transform: none; border-radius: 0; }
  @view-transition { navigation: none; }
}

/* ==========================================================================
   Politika privatnosti
   ========================================================================== */
.legal-hero {
  padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px);
  background: var(--ink);
  color: var(--paper);
}
.legal-hero p:not(.eyebrow) { margin-top: 1.4rem; color: rgba(244, 241, 234, 0.7); }
.legal { max-width: 760px; padding-block: clamp(56px, 7vw, 104px); }
.legal h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.025em; }
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li { color: #34373b; }
.legal p + p { margin-top: 1rem; }
.legal ul { margin-top: 0.8rem; }
.legal li { position: relative; padding-left: 1.4rem; }
.legal li + li { margin-top: 0.5rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; background: var(--accent); }
.legal a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--paper); }
.back-link .icon { transform: rotate(180deg); transition: transform 0.4s var(--ease-out); }
.back-link:hover .icon { transform: rotate(180deg) translateX(4px); }
