/* ==========================================================================
   MetallWelt — main stylesheet
   Layers: reset → base → components → utilities.
   Third-party CSS (GLightbox, Leaflet) is loaded unlayered on purpose,
   so it wins over our layered rules only where it defines something.
   No hex values outside :root.
   ========================================================================== */

@layer reset, base, components, utilities;

/* ---------- Fonts (self-hosted, Croatian diacritics live in latin-ext) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.ba4513495282.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: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-600-normal.ee77e8f678d5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.e1180918b873.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: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-700-normal.a4fc62d81f8b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.81419bf5abb5.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: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-ext-400-normal.30fe91f5bb42.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.8e986e86d57e.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: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-ext-500-normal.eaf61d05880b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.a1e2a2d7d4c0.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: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/barlow-latin-ext-600-normal.7befe7b24353.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* ---------- Animatable custom properties ---------- */
@property --glint { syntax: "<percentage>"; inherits: false; initial-value: -60%; }
@property --wm-rotate { syntax: "<angle>"; inherits: false; initial-value: -8deg; }
@property --hairline { syntax: "<color>"; inherits: true; initial-value: rgb(255 255 255 / .14); }

:root {
  /* Palette — sampled from the supplied logo (see README) */
  --petrol-950: #0F2A31;
  --petrol-900: #163840;
  --petrol-800: #21454E;   /* logo dark */
  --petrol-700: #2D5C66;
  --steel-500:  #22607B;   /* welder's blue */
  --steel-300:  #93ABB2;   /* muted text on dark (6.0:1 on petrol-900) */
  --spark-500:  #F76F0B;   /* the spark — fills, icons, large figures */
  --spark-400:  #FF8C3F;   /* small orange text on petrol (≥4.5:1) */
  --spark-700:  #B04A00;   /* small orange text on cream (≥4.5:1) */
  --spark-100:  #FDE6D3;
  --ink-900:    #121A1C;
  --body-600:   #4E5E63;
  --cream-50:   #FBF8F2;   /* page background, from the logo ground */
  --cream-100:  #F1ECE2;   /* alternating band */
  --line:       #E2DCD1;
  --white:      #FFFFFF;
  --black:      #000000;
  --ok-700:     #1F6B45;
  --err-700:    #A3261B;
  --wa-600:     #1C8C4A;   /* WhatsApp button (white text 4.6:1) */
  --viber-600:  #6F4FC8;

  /* Swatch colours (approximate screen renditions of RAL / foil tones) */
  --sw-9016: #F1F0EA;  --sw-9010: #F1ECE1;  --sw-1013: #E3D9C6;
  --sw-7016: #383E42;  --sw-7035: #CBD0CC;  --sw-9006: #A1A1A0;
  --sw-9007: #878581;  --sw-8014: #4A3526;  --sw-8019: #3D3635;
  --sw-6005: #114232;  --sw-9005: #0E0E10;  --sw-db703: #46484A;
  --sw-oak-1: #B07A3F; --sw-oak-2: #8E5A2B;
  --sw-wal-1: #6A4530; --sw-wal-2: #4C2F20;

  /* Semantic */
  --bg: var(--cream-50);
  --fg: var(--ink-900);
  --muted: var(--body-600);
  --accent: var(--spark-500);
  --focus: var(--spark-500);

  /* Type */
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.3rem, 5.5vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.55rem);
  --fs-lead: clamp(1.06rem, 1.3vw, 1.2rem);
  --fs-body: 1.0625rem;      /* 17px */
  --fs-small: .9375rem;      /* 15px — legal/footer only */
  --fs-eyebrow: .8125rem;
  --fs-figure: clamp(2.3rem, 4.2vw, 3.3rem);

  /* Space */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --container: 1240px;

  /* Shape */
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px; --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgb(18 26 28 / .06), 0 2px 8px rgb(18 26 28 / .05);
  --shadow-m: 0 10px 30px -12px rgb(18 26 28 / .28);
  --shadow-l: 0 30px 60px -24px rgb(10 30 35 / .55);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 520ms;
  --header-h: 76px;

  color-scheme: light;
}

/* ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100dvh; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  a { color: inherit; }
  [hidden] { display: none !important; }
}

/* ========================================================================== */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
  body {
    background: var(--bg); color: var(--fg);
    font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
  h1 { font-size: var(--fs-hero); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 600; letter-spacing: 0; }
  p { text-wrap: pretty; }
  strong { font-weight: 600; }
  a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
  :target, section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 1rem); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  ::selection { background: var(--spark-100); color: var(--ink-900); }
  address { font-style: normal; }
  @view-transition { navigation: auto; }
}

/* ========================================================================== */
@layer components {

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--cream { background: var(--cream-100); }
.section--dark { background: var(--petrol-900); color: var(--cream-50); }
.section--dark + .section--dark { border-top: 1px solid rgb(255 255 255 / .08); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: grid; gap: var(--space-3); align-content: start; justify-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; justify-items: stretch; gap: var(--space-5); }
.section-head--split > .btn { justify-self: end; }
.section-head--split > div { display: grid; gap: var(--space-3); justify-items: start; }
@media (max-width: 640px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split > .btn { justify-self: start; } }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.section--dark .section-head p, .dark .section-head p { color: var(--steel-300); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--spark-700);
}
.section--dark .eyebrow, .dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .split .eyebrow, .aside-card .eyebrow { color: var(--spark-400); }
.split .text-muted { color: var(--steel-300); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 44rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .75rem 1.1rem;
  background: var(--spark-500); color: var(--ink-900); font-weight: 600; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent; --_fg: currentColor; --_bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); flex: none; }
.btn:hover .arrow, .link-arrow:hover .arrow, .card-link:hover .arrow { transform: translateX(4px); }
.btn--accent { --_bg: var(--spark-500); --_fg: var(--ink-900); --_bd: var(--spark-500); }
.btn--accent:hover { --_bg: color-mix(in oklab, var(--spark-500) 86%, var(--white)); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--spark-500) 70%, transparent); }
.btn--dark { --_bg: var(--ink-900); --_fg: var(--cream-50); --_bd: var(--ink-900); }
.btn--dark:hover { --_bg: var(--petrol-900); --_bd: var(--petrol-900); }
.btn--outline-light { --_fg: var(--cream-50); --_bd: rgb(255 255 255 / .55); }
.btn--outline-light:hover { --_bd: var(--cream-50); --_bg: rgb(255 255 255 / .08); }
.btn--outline { --_fg: var(--ink-900); --_bd: color-mix(in oklab, var(--ink-900) 30%, transparent); --_bg: var(--white); }
.btn--outline:hover { --_bd: var(--ink-900); }
.btn--wa { --_bg: var(--wa-600); --_fg: var(--white); --_bd: var(--wa-600); }
.btn--viber { --_bg: var(--viber-600); --_fg: var(--white); --_bd: var(--viber-600); }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.center { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

.link-arrow, .card-link {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none;
  min-height: 44px;
}
.link-arrow .arrow, .card-link .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover, .card-link:hover { text-decoration: underline; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--petrol-950); color: var(--steel-300); font-size: var(--fs-small);
  position: relative; z-index: 60;
}
.utility .container { display: flex; align-items: center; gap: var(--space-5); min-height: 40px; }
.utility a { white-space: nowrap; color: var(--cream-50); text-decoration: none; display: inline-flex; align-items: center; gap: .45em; min-height: 40px; }
.utility a:hover { color: var(--spark-400); }
.utility .icon { color: var(--spark-500); width: 1.05em; height: 1.05em; }
.utility__area { display: inline-flex; align-items: center; gap: .45em; margin-right: auto; }
.utility__social { margin-left: auto; }
@media (max-width: 760px) { .utility__area, .utility__mail, .utility__social span { display: none; } .utility .container { justify-content: space-between; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--petrol-900); color: var(--cream-50);
  transition: background-color .3s, box-shadow .3s;
}
.has-hero .site-header { position: fixed; inset-inline: 0; top: 40px; background: transparent; transition: background-color .3s, box-shadow .3s, top .25s var(--ease); }
.has-hero .site-header.is-solid { top: 0; background: var(--petrol-900); box-shadow: 0 8px 30px -14px rgb(0 0 0 / .5); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; view-transition-name: brand; }
.brand__mark { width: 58px; height: 46px; border-radius: 8px; background: var(--cream-50); object-fit: cover; }
.brand__word { width: 142px; height: auto; }
.brand--glint { position: relative; overflow: hidden; border-radius: 8px; }
.brand--glint::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent calc(var(--glint) - 12%), rgb(255 200 140 / .75) var(--glint), transparent calc(var(--glint) + 12%));
  mix-blend-mode: screen; animation: glint 1.1s .5s var(--ease) 1 both;
}
@keyframes glint { from { --glint: -60%; } to { --glint: 160%; } }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: .4rem .7rem;
  color: var(--cream-50); font-weight: 500; text-decoration: none; border-radius: var(--radius-s);
  font-size: 1rem; position: relative;
}
.nav__link:hover, .nav__toggle:hover { color: var(--spark-400); }
.nav__link.is-active::after, .nav__item.is-active > .nav__toggle::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 4px; height: 2px; background: var(--spark-500); border-radius: 2px;
}
.nav__toggle .chev { width: .8em; height: .8em; transition: transform .2s; }
.nav__item { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: -.5rem; min-width: 260px; padding: .5rem;
  background: var(--white); color: var(--ink-900); border-radius: var(--radius-m); box-shadow: var(--shadow-l);
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.nav__item.is-open > .nav__toggle .chev { transform: rotate(180deg); }
.nav__sub a { display: flex; min-height: 44px; align-items: center; padding: .45rem .8rem; border-radius: var(--radius-s); text-decoration: none; font-weight: 500; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--cream-100); color: var(--spark-700); }
.header-cta { display: flex; align-items: center; gap: var(--space-4); flex: none; }
.menu-btn { display: none; color: var(--cream-50); width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-s); }
.menu-btn .icon { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--petrol-900); margin: 0;
    padding: var(--space-5) var(--gutter) 6rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle { width: 100%; font-size: 1.2rem; padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); border-radius: 0; justify-content: space-between; }
  .nav__link.is-active::after, .nav__item.is-active > .nav__toggle::after { display: none; }
  .nav__link.is-active { color: var(--spark-400); }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; color: var(--cream-50); display: none; padding: .25rem 0 .75rem 1rem; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgb(255 255 255 / .06); color: var(--spark-400); }
  .nav__mobile-cta { display: grid !important; gap: var(--space-3); margin-top: var(--space-5); }
}
.nav__mobile-cta { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--cream-50);
  min-height: max(85vh, 640px); display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 40px + 3rem) 4rem; overflow: hidden;
  background: var(--petrol-950);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 60%; transform-origin: 70% 50%; }
@media (max-width: 860px) { .hero__media img { object-position: 89% 60%; } } /* kombi: logo na boku ostaje u kadru */
/* Desktop: cijela slika po visini, uz desni rub; lijevi rub se stapa s pozadinom ispod teksta */
@media (min-width: 861px) {
  .hero__media img { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 100%; min-width: 72%; object-fit: cover; object-position: 100% 60%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .08) 8%, rgb(0 0 0 / .25) 16%, rgb(0 0 0 / .5) 26%, rgb(0 0 0 / .75) 36%, rgb(0 0 0 / .92) 46%, #000 56%); mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .08) 8%, rgb(0 0 0 / .25) 16%, rgb(0 0 0 / .5) 26%, rgb(0 0 0 / .75) 36%, rgb(0 0 0 / .92) 46%, #000 56%); }
  /* tekst uz lijevi rub ekrana, preko mjesta gdje se slika stapa s pozadinom */
  .hero .container { width: calc(100% - 2 * var(--gutter)); padding-left: clamp(0rem, 6vw, 7rem); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--petrol-950) 94%, transparent) 0%, color-mix(in srgb, var(--petrol-900) 78%, transparent) 42%, color-mix(in srgb, var(--petrol-900) 25%, transparent) 75%, transparent 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--petrol-950) 70%, transparent), transparent 40%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--space-7); align-items: end; }
.hero__content { max-width: 40rem; display: grid; gap: var(--space-5); }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--spark-500); }
.hero__lead { font-size: var(--fs-lead); color: color-mix(in oklab, var(--cream-50) 86%, var(--steel-300)); max-width: 34rem; }
.hero__trust { display: flex; align-items: center; gap: .6rem; color: var(--steel-300); font-size: var(--fs-small); }
.hero__trust .stars { color: var(--spark-500); letter-spacing: .1em; }

.spec-card {
  justify-self: end; width: min(100%, 300px); padding: 1.4rem 1.5rem;
  background: color-mix(in srgb, var(--petrol-950) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--hairline); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  transition: --hairline .5s var(--ease);
}
.spec-card:hover { --hairline: color-mix(in srgb, var(--spark-500) 55%, transparent); }
.spec-card__row { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: center; padding-block: .95rem; }
.spec-card__row + .spec-card__row { border-top: 1px solid var(--hairline); }
.spec-card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--cream-50); }
.spec-card__label { font-size: .95rem; color: var(--steel-300); line-height: 1.3; }
.spec-card__value { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--spark-500); line-height: 1.15; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .spec-card { justify-self: start; }
}

/* Sub-page hero */
.page-hero {
  position: relative; isolation: isolate; color: var(--cream-50); background: var(--petrol-950);
  padding-block: clamp(3.5rem, 8vw, 6rem); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; view-transition-name: page-hero; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--petrol-950) 95%, transparent), color-mix(in srgb, var(--petrol-900) 60%, transparent)); }
.page-hero .container { display: grid; gap: var(--space-4); }
.page-hero h1 { max-width: 22ch; }
.page-hero p { max-width: 40rem; color: color-mix(in oklab, var(--cream-50) 86%, var(--steel-300)); font-size: var(--fs-lead); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; font-size: var(--fs-small); color: var(--steel-300); }
.breadcrumb a { color: var(--cream-50); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* ---------- Stats strip ---------- */
.stats { background: var(--cream-100); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; }
.stat { display: grid; justify-items: center; text-align: center; gap: .35rem; padding: clamp(1.8rem, 4vw, 2.6rem) 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .icon { width: 30px; height: 30px; color: var(--petrol-800); stroke-width: 1.5; }
.stat__figure { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-figure); line-height: 1; color: var(--petrol-800); font-variant-numeric: tabular-nums; }
.stat__figure .unit { color: var(--spark-500); font-size: .6em; margin-left: .08em; }
.stat__caption { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.stat__figure .ph, .spec-card__value .ph { font-size: .42em; }
.ph { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62em; font-weight: 600; letter-spacing: 0; color: var(--spark-700); background: var(--spark-100); padding: .1em .35em; border-radius: 4px; vertical-align: middle; }
.dark .ph, .section--dark .ph, .hero .ph, .page-hero .ph, .site-footer .ph, .utility .ph, .spec-card .ph { background: rgb(255 140 63 / .16); color: var(--spark-400); }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Fork (two product families) ---------- */
.fork { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.fork-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l);
  min-height: clamp(380px, 46vw, 520px); color: var(--cream-50); display: flex; align-items: flex-end;
  text-decoration: none; background: var(--petrol-900);
}
.fork-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.fork-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--petrol-950) 94%, transparent) 10%, color-mix(in srgb, var(--petrol-950) 30%, transparent) 65%, transparent); }
.fork-card:hover img { transform: scale(1.03); }
.fork-card__body { padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .7rem; }
.fork-card__tag { font-family: var(--font-head); font-weight: 700; color: var(--spark-500); font-size: 1.1rem; letter-spacing: .04em; }
.fork-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.fork-card ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.fork-card li { font-size: .95rem; padding: .2rem .65rem; border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius-pill); }
.fork-card .card-link { color: var(--cream-50); }
.fork-card .card-link .arrow { color: var(--spark-500); }
@media (max-width: 760px) { .fork { grid-template-columns: 1fr; } }

/* ---------- Service cards (light, on a white band) ---------- */
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); list-style: none; padding: 0; }
.svc {
  position: relative; display: flex; flex-direction: column; background: var(--cream-50); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden; transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.svc:hover { border-color: color-mix(in srgb, var(--spark-500) 45%, var(--line)); box-shadow: var(--shadow-m); transform: translateY(-3px); }
.svc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.03); }
.svc__badge {
  position: absolute; left: 1.25rem; bottom: -28px; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--spark-700);
  border: 1.5px solid color-mix(in srgb, var(--spark-500) 55%, transparent); box-shadow: 0 0 0 5px var(--cream-50);
}
.svc__media:has(.svc__badge) { overflow: visible; }
.svc__media:has(.svc__badge) img { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.svc__badge .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.svc__body { padding: 2.4rem 1.4rem 1.4rem; display: grid; gap: .55rem; flex: 1; align-content: start; color: var(--ink-900); }
.svc__body p { color: var(--body-600); }
.svc__body .card-link { margin-top: auto; color: var(--petrol-800); }
.svc__body .card-link .arrow { color: var(--spark-700); }
.svc__body .card-link::after { content: ""; position: absolute; inset: 0; } /* cijela kartica je klikabilna */
.svc--featured { border-color: color-mix(in srgb, var(--spark-500) 45%, var(--line)); }
.svc__flag { position: absolute; top: .9rem; right: .9rem; z-index: 1; background: var(--spark-500); color: var(--ink-900); font-weight: 600; font-size: .85rem; padding: .25rem .65rem; border-radius: var(--radius-pill); }
.scope-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.25rem; border: 1px dashed rgb(255 255 255 / .25); border-radius: var(--radius-m); color: var(--steel-300);
}
.scope-note .icon { color: var(--spark-400); margin-top: .2em; }
.scope-note strong { color: var(--cream-50); }
.scope-note--light { border-color: var(--line); color: var(--muted); background: var(--white); }
.scope-note--light strong { color: var(--ink-900); }
.scope-note--light .icon { color: var(--spark-700); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Product cards with spec tables ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 1.6vw, 1.25rem); list-style: none; padding: 0; }
.product { container-type: inline-size; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.product:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.product__media { aspect-ratio: 4 / 3; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.03); }
.product__body { padding: 1.1rem 1.15rem 1.2rem; display: grid; gap: .7rem; flex: 1; align-content: start; }
.product__body h3 { font-size: 1.3rem; }
.product__body h3 a { text-decoration: none; }
.product__body h3 a:hover { text-decoration: underline; }
.spec { display: grid; font-size: .98rem; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; text-align: right; color: var(--ink-900); }
@container (max-width: 250px) {
  .spec div { flex-direction: column; gap: .1rem; }
  .spec dd { text-align: left; }
}
@media (max-width: 1060px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* ---------- Gallery (Naši radovi) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.chip {
  min-height: 44px; padding: .45rem 1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink-900); font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--petrol-700); }
.chip[aria-pressed="true"] { background: var(--petrol-800); border-color: var(--petrol-800); color: var(--cream-50); }
.chip .count { font-size: .85em; opacity: .7; margin-left: .25em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); list-style: none; padding: 0; }
.gallery--teaser { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .gallery--teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery--teaser { grid-template-columns: 1fr; } }
.gallery__empty { display: none; padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-m); }
.gallery-wrap:not(:has(.rad:not([hidden]))) .gallery__empty { display: block; }
.gallery-status { min-height: 1.5em; color: var(--muted); font-size: var(--fs-small); margin-bottom: .75rem; }

.rad { container-type: inline-size; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.rad__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-100); }
.rad__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rad:hover .rad__media img, .rad__media:focus-visible img { transform: scale(1.03); }
.rad__count { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; gap: .3rem; align-items: center; padding: .2rem .55rem; border-radius: var(--radius-pill); background: rgb(15 42 49 / .82); color: var(--cream-50); font-size: .85rem; font-weight: 500; }
.rad__ribbon { position: absolute; top: .6rem; left: .6rem; background: var(--spark-500); color: var(--ink-900); font-weight: 700; font-size: .75rem; letter-spacing: .12em; padding: .2rem .55rem; border-radius: 4px; }
.rad__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .5rem; }
.rad__type { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--spark-700); }
.rad__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.rad__meta { display: grid; gap: .35rem; font-size: .95rem; color: var(--muted); list-style: none; padding: 0; }
.rad__meta li { display: flex; align-items: center; gap: .5rem; }
.rad__meta .icon { color: var(--petrol-700); width: 1.05em; height: 1.05em; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); flex: none; }
.rad__phases { display: flex; gap: .35rem; flex-wrap: wrap; }
.rad__phase { font-size: .8rem; padding: .1rem .5rem; border-radius: var(--radius-pill); background: var(--cream-100); color: var(--body-600); font-weight: 500; }
@container (min-width: 420px) {
  .rad { flex-direction: row; }
  .rad__media { width: 50%; aspect-ratio: auto; min-height: 260px; }
  .rad__body { width: 50%; align-content: center; }
}

/* Map */
.map { height: clamp(320px, 45vw, 460px); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--cream-100); position: relative; z-index: 0; }
.map__fallback { display: grid; place-items: center; height: 100%; padding: 1.5rem; text-align: center; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .9rem; color: var(--muted); font-size: var(--fs-small); }
.map.maplibregl-map { font-family: var(--font-body); }
.mw-marker { display: grid; place-items: center; width: 34px; height: 40px; padding: 0 0 6px; background: none; border: 0; cursor: pointer; }
.mw-marker:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
.mw-pin { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--spark-500); border: 3px solid var(--white); box-shadow: 0 4px 10px rgb(0 0 0 / .35); transition: transform .2s var(--ease); }
.mw-marker:hover .mw-pin { transform: rotate(-45deg) scale(1.12); }
.mw-pin--hq { background: var(--petrol-800); }
.map .maplibregl-popup-content { font-family: var(--font-body); border-radius: var(--radius-m); padding: .8rem 2rem .8rem 1rem; box-shadow: var(--shadow-m); color: var(--ink-900); font-size: .95rem; line-height: 1.45; }
.map .maplibregl-popup-content strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--petrol-800); }
.map .maplibregl-popup-content a { color: var(--spark-700); font-weight: 600; }
.map .maplibregl-popup-close-button { font-size: 1.3rem; width: 30px; height: 30px; }
.map .maplibregl-ctrl-group { border-radius: var(--radius-s); box-shadow: var(--shadow-s); }

/* ---------- Swatches ---------- */
.swatch-groups { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.swatch-group h3 { margin-bottom: 1rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.swatch { display: grid; gap: .55rem; }
.swatch__chip { aspect-ratio: 4 / 3; border-radius: var(--radius-m); border: 1px solid rgb(18 26 28 / .14); box-shadow: inset 0 -18px 30px -18px rgb(0 0 0 / .25); background: var(--_c); }
.swatch__chip--wood { background: repeating-linear-gradient(100deg, var(--_c) 0 7px, var(--_c2) 7px 9px, var(--_c) 9px 16px, color-mix(in oklab, var(--_c) 80%, var(--_c2)) 16px 19px); }
.swatch__chip--any { background: conic-gradient(from 200deg, var(--sw-6005), var(--steel-500), var(--sw-7016), var(--spark-500), var(--sw-8014), var(--sw-1013), var(--sw-6005)); }
.swatch__name { font-weight: 600; line-height: 1.25; }
.swatch__code { font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.swatch__use { font-size: .85rem; color: var(--muted); }
.note { display: flex; gap: .7rem; align-items: flex-start; margin-top: clamp(1.5rem, 3vw, 2rem); padding: 1rem 1.2rem; background: var(--white); border-left: 3px solid var(--spark-500); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--body-600); }
.note .icon { color: var(--spark-700); margin-top: .2em; }

/* ---------- Projects split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--petrol-900); color: var(--cream-50); }
.split__panel { padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem); display: grid; gap: 1.2rem; align-content: center; }
.split__panel p { color: var(--steel-300); max-width: 32rem; }
.split__panel .link-arrow { color: var(--cream-50); }
.split__panel .link-arrow .arrow { color: var(--spark-500); }
.split__list { display: grid; gap: .8rem; list-style: none; padding: 0; margin-block: .5rem; }
.split__list li { display: grid; grid-template-columns: 32px 1fr; gap: .75rem; align-items: start; }
.split__list .num { font-family: var(--font-head); font-weight: 700; color: var(--spark-500); font-size: 1.2rem; line-height: 1.5; }
.split__media { position: relative; min-height: 420px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media { min-height: 300px; order: -1; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); list-style: none; padding: 0; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.4rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); display: grid; gap: .6rem; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--spark-500); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); }
.step__fact { margin-top: .3rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-900); }
.step__fact strong { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.why li { padding: 1.6rem 1.5rem 1.7rem 0; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); }
.why .icon { width: 36px; height: 36px; color: var(--spark-500); stroke-width: 1.5; }
.why h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.why p { color: var(--muted); }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* ---------- Person ---------- */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.person__media { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; }
.person__media img { width: 100%; height: 100%; object-fit: cover; }
.person__media figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .7rem .9rem; border-radius: var(--radius-s); background: rgb(15 42 49 / .86); color: var(--cream-50); font-size: .9rem; }
.person__body { display: grid; gap: 1.1rem; }
.person__quote { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 600; color: var(--petrol-800); border-left: 3px solid var(--spark-500); padding-left: 1.1rem; }
@media (max-width: 860px) { .person { grid-template-columns: 1fr; } .person__media { aspect-ratio: 16 / 10; } }

/* ---------- Reviews ---------- */
.reviews-score { display: flex; align-items: center; gap: .9rem; justify-self: end; }
.reviews-score__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--cream-50); }
.reviews-score > span:last-child { display: grid; gap: .15rem; color: var(--steel-300); font-size: var(--fs-small); }
/* Infinite marquee — the track holds two identical sets and slides by exactly one set */
.marquee { overflow: hidden; padding-block: .5rem 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); width: max-content; list-style: none; padding: 0; margin: 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(1rem, 2vw, 1.5rem) / 2)); } }
.marquee__track > li { flex: 0 0 clamp(270px, 80vw, 350px); display: flex; }
.review { position: relative; flex: 1; min-width: 0; min-height: 330px; background: var(--white); color: var(--ink-900); border-radius: var(--radius-l); padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: 0 18px 40px -22px rgb(0 0 0 / .55); }
.review__stars { color: var(--spark-500); letter-spacing: .12em; font-size: 1rem; line-height: 1; }
.review blockquote { flex: 1; }
.review blockquote p { font-size: 1.08rem; line-height: 1.6; color: var(--body-600); }
.review__by { display: flex; align-items: center; gap: .75rem; }
.review__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-800); color: var(--cream-50); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.marquee__track > li:nth-child(4n+2) .review__avatar { background: var(--spark-700); }
.marquee__track > li:nth-child(4n+3) .review__avatar { background: var(--steel-500); }
.marquee__track > li:nth-child(4n+4) .review__avatar { background: var(--ok-700); }
.review__by > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.review__by strong { color: var(--ink-900); }
.review__by > span:last-child > span { color: var(--muted); font-size: .875rem; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; padding-inline: var(--gutter, 1rem); }
  .marquee__track > [aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .reviews-score { justify-self: start; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .65rem; max-width: 52rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in oklab, var(--petrol-700) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; min-height: 56px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--spark-700); border-bottom: 2px solid var(--spark-700); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 1.25rem 1.2rem; color: var(--body-600); display: grid; gap: .6rem; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ---------- Accent CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--spark-500); color: var(--ink-900); padding-block: clamp(2.6rem, 5vw, 3.6rem); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { font-size: var(--fs-lead); }
.cta-band__wm { position: absolute; left: clamp(-60px, -2vw, 0px); top: 50%; z-index: -1; width: clamp(200px, 26vw, 340px); height: auto; color: var(--ink-900); opacity: .1; transform: translateY(-50%) rotate(var(--wm-rotate)); }
@supports (animation-timeline: view()) {
  .cta-band__wm { animation: wm-turn linear both; animation-timeline: view(); }
  @keyframes wm-turn { from { --wm-rotate: -18deg; } to { --wm-rotate: 6deg; } }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { display: grid; gap: 1.5rem; }
.contact__phone { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--petrol-800); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; }
.contact__phone:hover { color: var(--spark-700); }
.contact__phone .icon { color: var(--spark-500); width: .8em; height: .8em; }
.contact__list { display: grid; gap: 1rem; list-style: none; padding: 0; }
.contact__list li { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; }
.contact__list .icon { color: var(--spark-700); margin-top: .2em; }
.contact__list dt, .contact__list .k { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact__list a { font-weight: 600; }
.msg-apps { display: flex; flex-wrap: wrap; gap: .6rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow-s); }
.form h3 { font-size: 1.6rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field .req { color: var(--err-700); }
.field .hint { font-size: .92rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid color-mix(in oklab, var(--line) 60%, var(--body-600)); border-radius: var(--radius-s);
  background: var(--cream-50); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--petrol-700); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spark-500) 45%, transparent); }
.field [aria-invalid="true"] { border-color: var(--err-700); background: color-mix(in srgb, var(--err-700) 5%, var(--white)); }
.field__error { display: none; align-items: center; gap: .4rem; color: var(--err-700); font-size: .95rem; font-weight: 500; }
.field__error .icon { width: 1.05em; height: 1.05em; }
.field:has([aria-invalid="true"]) .field__error { display: flex; }
.upload { position: relative; display: grid; gap: .4rem; place-items: center; text-align: center; padding: 1.4rem 1rem; border: 2px dashed color-mix(in oklab, var(--line) 50%, var(--petrol-700)); border-radius: var(--radius-m); background: var(--cream-50); transition: border-color .2s, background-color .2s; }
.upload:hover, .upload:focus-within, .upload.is-drag { border-color: var(--spark-500); background: var(--spark-100); }
.upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.upload .icon { width: 32px; height: 32px; color: var(--spark-700); }
.upload strong { font-size: 1.05rem; }
.upload__list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; justify-content: center; }
.upload__list li { font-size: .88rem; padding: .15rem .55rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--petrol-800); }
.form__success { display: none; gap: .8rem; padding: 1.25rem; border-radius: var(--radius-m); background: color-mix(in srgb, var(--ok-700) 9%, var(--white)); border: 1px solid color-mix(in srgb, var(--ok-700) 35%, transparent); color: var(--ok-700); }
.form__success.is-visible { display: flex; }
.form__success .icon { width: 28px; height: 28px; flex: none; }
.form__success p { color: var(--ink-900); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.form__foot small { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-950); color: var(--steel-300); font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__logo { width: 150px; border-radius: var(--radius-m); background: var(--cream-50); padding: .4rem; }
.footer__brand p { max-width: 22rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-50); font-weight: 600; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid rgb(255 255 255 / .12); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .1rem; }
.site-footer a { color: var(--steel-300); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { color: var(--spark-400); text-decoration: underline; }
.footer__contact a { color: var(--cream-50); font-weight: 600; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.4rem 1.6rem; display: grid; gap: .8rem; }
.footer__legal .row { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.footer__legal .links { margin-left: auto; }
@media (max-width: 1020px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 560px;
  background: var(--petrol-900); color: var(--cream-50); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-l);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-l); display: grid; gap: .9rem;
}
.cookie p { color: var(--steel-300); font-size: .98rem; }
.cookie a { color: var(--cream-50); }
@media (max-width: 767px) { .cookie { bottom: calc(72px + .75rem); } }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--petrol-950);
    box-shadow: 0 -10px 30px -12px rgb(0 0 0 / .45);
  }
  .mobile-bar .btn { min-height: 52px; width: 100%; }
  body { padding-bottom: 76px; }
}

/* ---------- Generic content ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1rem; max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.4rem; }
.prose h3 { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--spark-700); }
.prose p, .prose li { color: var(--body-600); }
.prose strong { color: var(--ink-900); }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--petrol-900); color: var(--cream-50); border-radius: var(--radius-l); padding: 1.6rem; display: grid; gap: 1rem; }
.aside-card p { color: var(--steel-300); }
.aside-card .btn { width: 100%; }
.figure { border-radius: var(--radius-l); overflow: hidden; }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-size: .9rem; color: var(--muted); padding-top: .5rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; }
.media-grid img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .media-grid { grid-template-columns: 1fr 1fr; } }

/* Lightbox links (photo grids, figures, before/after) */
.lb { display: block; position: relative; overflow: hidden; cursor: zoom-in; border-radius: inherit; }
.lb img { transition: transform .6s var(--ease); }
.lb:hover img, .lb:focus-visible img { transform: scale(1.04); }
.media-grid .lb { border-radius: var(--radius-m); }

/* Photo grid — bento of our own photos; first photo leads */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 15vw, 230px); gap: clamp(.5rem, 1vw, .8rem); list-style: none; padding: 0; }
.photo-grid--6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 19vw, 280px); }
.photo-grid__item { border-radius: var(--radius-m); overflow: hidden; background: var(--cream-100); }
.photo-grid__item--lead { grid-column: span 2; grid-row: span 2; }
.photo-grid--7 .photo-grid__item:nth-child(2), .photo-grid--7 .photo-grid__item:nth-child(3) { grid-row: span 2; }
.photo-grid .lb { height: 100%; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .photo-grid, .photo-grid--6 { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .photo-grid--7 .photo-grid__item:nth-child(2), .photo-grid--7 .photo-grid__item:nth-child(3) { grid-row: auto; }
  .photo-grid--6 .photo-grid__item:last-child { grid-column: span 2; }
}

/* Before / after — the same job in progress and finished */
.buildpairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); list-style: none; padding: 0; }
.buildpair { display: grid; gap: .7rem; align-content: start; }
.buildpair__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-m); overflow: hidden; margin-bottom: .4rem; }
.buildpair__shot { position: relative; aspect-ratio: 4 / 5; }
.buildpair__shot .lb { height: 100%; border-radius: 0; }
.buildpair__shot img { width: 100%; height: 100%; object-fit: cover; }
.buildpair__shot:first-child img { filter: saturate(.8); }
.buildpair__tag { position: absolute; left: .55rem; top: .55rem; pointer-events: none; padding: .18rem .6rem; border-radius: var(--radius-pill); background: rgb(15 42 49 / .85); color: var(--cream-50); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.buildpair__tag--done { background: var(--spark-500); color: var(--ink-900); }
.buildpair h3 { font-size: 1.4rem; }
.buildpair p { color: var(--steel-300); }
@media (max-width: 960px) { .buildpairs { grid-template-columns: 1fr; max-width: 36rem; } .buildpair__shot { aspect-ratio: 1; } }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.type { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: .5rem; align-content: start; }
.type .icon { width: 34px; height: 34px; color: var(--spark-500); stroke-width: 1.5; }
.type p { color: var(--muted); }
.checklist { list-style: none; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; }
.checklist .icon { color: var(--spark-700); margin-top: .25em; }
.dark .checklist .icon, .aside-card .checklist .icon { color: var(--spark-400); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 700; line-height: .9; color: var(--spark-500); }

/* ---------- Reveal (CSS scroll-driven, JS fallback) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Hero slow pan */
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 860px) { .hero__media img { animation: pan 28s ease-in-out infinite alternate; } }
}
@keyframes pan { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.04) translate3d(-1%, -.5%, 0); } }

/* View transitions: keep them quick and calm */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(rad-image) { animation-duration: .45s; animation-timing-function: var(--ease); }
}

/* ========================================================================== */
@layer utilities {
  .mt-0 { margin-top: 0 !important; }
  .mt-4 { margin-top: var(--space-4); }
  .mt-6 { margin-top: var(--space-6); }
  .text-muted { color: var(--muted); }
  .nowrap { white-space: nowrap; }
  .dark { color: var(--cream-50); }
}

/* ---------- Preferences (unlayered so they always win) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .js-reveal .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero__media img { animation: none !important; transform: none !important; }
  .brand--glint::after { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-contrast: more) {
  :root { --steel-300: #C9D6DA; --body-600: #33403F; --line: #A9A193; }
  .hero::before { background: color-mix(in srgb, var(--petrol-950) 92%, transparent); }
  .btn--outline-light { border-color: var(--white); }
  .chip, .field input, .field select, .field textarea { border-width: 2px; border-color: var(--ink-900); }
  .spec-card { border-color: rgb(255 255 255 / .5); }
  .review { border: 1px solid var(--ink-900); }
}
@media (forced-colors: active) {
  .btn, .chip { border: 2px solid ButtonText; }
  .swatch__chip { forced-color-adjust: none; }
}
@media print {
  .utility, .site-header, .mobile-bar, .cookie, .cta-band, .map { display: none !important; }
  .hero, .page-hero, .section--dark, .split, .site-footer { background: none !important; color: var(--black) !important; }
}

/* ==========================================================================
   GLightbox theme — unlayered on purpose: GLightbox's own CSS is unlayered,
   so overrides inside @layer would always lose to it. Selectors carry
   .glightbox-container too, because glightbox.min.css loads after this file.
   ========================================================================== */
.glightbox-container.glightbox-clean .goverlay { background: color-mix(in srgb, var(--petrol-950) 96%, transparent); }
.glightbox-container.glightbox-clean .gslide-media { border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; box-shadow: none; }
.glightbox-container.glightbox-clean .gslide-description { background: var(--petrol-900); border-radius: 0 0 var(--radius-m) var(--radius-m); border-top: 3px solid var(--spark-500); }
.glightbox-container.glightbox-clean .gdesc-inner { padding: 1.1rem 1.4rem 1.2rem; }
.glightbox-container.glightbox-clean .gslide-title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.15; letter-spacing: .01em; color: var(--cream-50); margin: 0 0 .35rem; }
.glightbox-container.glightbox-clean .gslide-desc { font-family: var(--font-body); font-size: .95rem; line-height: 1.5; color: var(--steel-300); }
.glightbox-container.glightbox-clean .gslide-desc:empty { display: none; }
.glightbox-container.glightbox-clean .gslide-title:only-child, .glightbox-container.glightbox-clean .gslide-title:has(+ .gslide-desc:empty) { margin-bottom: 0; }
.glightbox-container.glightbox-clean .gbtn { background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.glightbox-container.glightbox-clean .gbtn:hover, .glightbox-container.glightbox-clean .gbtn:focus-visible { background: var(--spark-500); border-color: var(--spark-500); }
.glightbox-container.glightbox-clean .gbtn path { fill: var(--cream-50); }
.glightbox-container.glightbox-clean .gbtn.gclose { top: 18px; right: 18px; width: 44px; height: 44px; opacity: 1; }
.glightbox-container.glightbox-clean .gbtn.gclose svg { width: 16px; }
.glightbox-container.glightbox-clean .gprev, .glightbox-container.glightbox-clean .gnext { top: 50%; transform: translateY(-50%); }
.glightbox-container.glightbox-clean .gprev svg, .glightbox-container.glightbox-clean .gnext svg { width: 20px; }
.glightbox-container.glightbox-clean .gbtn.disabled { opacity: .25; }
/* Mobile: GLightbox lays the description over the photo with a black fade — keep it in brand colours */
.glightbox-mobile .glightbox-container.glightbox-clean .gslide-description { background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--petrol-950) 92%, transparent) 45%); border-top: 0; border-radius: 0; padding: 4rem 1.25rem 1.5rem; }
.glightbox-mobile .glightbox-container.glightbox-clean .gslide-title { color: var(--cream-50); }
.glightbox-mobile .glightbox-container.glightbox-clean .gslide-desc { color: var(--steel-300); }
/* Desktop: GLightbox sizes the photo inline without our taller caption — leave room so the caption isn't cut off */
@media (min-width: 769px) { .glightbox-container.glightbox-clean .gslide-image img { max-height: calc(100vh - 150px) !important; } }
