/* ============================================================
   ROCOCODECOR — Design System v2.1 (edge-to-edge)
   Full-bleed sections · 12-col grid · fluid spacing & type
   Mobile-first · CSS Grid · clamp()
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors — dark scheme (surfaces/mockup) */
  --primary: #E5E5E5;
  /* Glavna sekundarna boja — Bronze */
  --bronze: #c57f2e;
  /* Accent (CTA, hover, active) = bronze — primijenjeno na cijeli projekt */
  --accent: var(--bronze);
  --bg: #0a0a0f;
  --surface: #1a1a1a;
  --surface-alt: #2D2D2D;
  --overlay: rgba(10, 10, 15, 0.72);
  --muted: rgba(255, 255, 255, 0.45);
  --ph-bg: #2D2D2D;
  --ph-border: rgba(255, 255, 255, 0.12);
  color-scheme: dark;

  /* Fluid spacing scale */
  --s-2xs: clamp(0.25rem, 0.4vw, 0.5rem);
  --s-xs: clamp(0.5rem, 0.8vw, 0.75rem);
  --s-sm: clamp(0.75rem, 1.2vw, 1rem);
  --s-md: clamp(1rem, 1.8vw, 1.5rem);
  --s-lg: clamp(1.5rem, 3vw, 2.5rem);
  --s-xl: clamp(2rem, 4.5vw, 4rem);
  --s-2xl: clamp(3rem, 8vw, 7rem);

  /* Fluid type scale */
  --t-xs: clamp(0.75rem, 0.8vw, 0.875rem);
  --t-sm: clamp(0.875rem, 1vw, 1rem);
  --t-base: clamp(1rem, 1.2vw, 1.125rem);
  --t-md: clamp(1.125rem, 1.6vw, 1.375rem);
  --t-lg: clamp(1.375rem, 2.2vw, 2rem);
  --t-xl: clamp(1.75rem, 3.2vw, 3rem);
  --t-2xl: clamp(2.25rem, 5vw, 4.5rem);

  /* Layout — edge-to-edge (no max-width) */
  --gutter: clamp(0.75rem, 2.5vw, 2rem);
  --section-pad: clamp(3.5rem, 9vw, 8rem);
  --nav-height: clamp(3.75rem, 8vw, 5rem);

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Effects */
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Layout primitives ---------- */
/* Full-bleed container: edge-to-edge, only fluid inner padding */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

/* ---------- 12-col grid (mobile-first) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* Mobile: full width */
.col-12 { grid-column: span 12; }

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .col-md-6 { grid-column: span 6; }
  .col-md-4 { grid-column: span 4; }
  .col-md-8 { grid-column: span 8; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .col-lg-3 { grid-column: span 3; }
  .col-lg-4 { grid-column: span 4; }
  .col-lg-5 { grid-column: span 5; }
  .col-lg-7 { grid-column: span 7; }
  .col-lg-8 { grid-column: span 8; }
}

/* ---------- Shared section header ---------- */
.section__header {
  text-align: left;
  margin-bottom: var(--s-xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2.625rem, 4.8vw, 4.5rem); /* ++50% — same as features__title */
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__lead {
  color: var(--muted);
  font-size: var(--t-md);
  margin: var(--s-xs) auto 0;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  font-weight: 700;
  padding: 0.9em 1.8em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  overflow: hidden;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

/* Tanki prugasti sjaj koji klizi isključivo po borderu buttona.
   Gradient se prikazuje samo na 1px rubu (padding-box maska). */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: btnShimmerBorder 3s ease-in-out infinite;
  pointer-events: none;
}

.btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn:hover::before {
  animation: none;
  opacity: 0;
}

@keyframes btnShimmerBorder {
  0%, 85%, 100% {
    -webkit-mask-position: -150% 0, -150% 0;
    mask-position: -150% 0, -150% 0;
  }
  45% {
    -webkit-mask-position: 250% 0, 250% 0;
    mask-position: 250% 0, 250% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--ease);
}

.navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.navbar__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
}

.navbar__logo-mark {
  display: block;
}

.navbar__logo-img {
  display: block;
  height: clamp(0.84rem, 1.54vw, 1.19rem); /* logo -30% */
  width: auto;
}

.navbar__logo-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.4rem, 0.72vw, 0.544rem); /* -20% */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--primary);
}

.navbar__menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  gap: var(--s-xs);
  padding: 0 var(--gutter);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ease), padding var(--ease);
}

.navbar__menu.is-open {
  max-height: 24rem;
  padding-block: var(--s-md);
  box-shadow: var(--shadow-hover);
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  padding: var(--s-xs) 0;
  color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link:hover,
.nav-link.active {
  color: var(--bronze);
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Nav link — bronze glow + sinkrono podizanje ----------
   Slova se razbijaju u JS-u (main.js). Na MOBILEU su pasivna
   (display: inline — izgled identičan kao prije, bez efekta),
   hover efekt živi SAMO u @media (min-width: 768px) ispod. */
.nav-link__char {
  display: inline;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .navbar__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--s-lg);
    background: transparent;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .nav-link {
    padding: var(--s-xs) 0;
    border-bottom: 0; /* hover linija uklonjena — hover efekt je bronze glow + podizanje */
  }

  /* Bronze glow + SINKRONO podizanje (SAMO desktop ≥768px) */
  /* Sva slova se podižu i vraćaju istovremeno — bez staggera/vala. */
  .nav-link__char {
    display: inline-block;
    white-space: pre;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.3s ease,
                text-shadow 0.3s ease;
  }

  .nav-link:hover .nav-link__char {
    transform: translateY(-3px);
    color: var(--bronze);
    text-shadow: 0 0 14px rgba(197, 127, 46, 0.45);
  }

  /* Active — statično bronze + blagi glow, bez podizanja */
  .nav-link.active .nav-link__char {
    color: var(--bronze);
    text-shadow: 0 0 14px rgba(197, 127, 46, 0.3);
    transform: none;
  }
}

/* Reduced motion: bez animacije — samo bronze boja na hover */
@media (prefers-reduced-motion: reduce) {
  .nav-link__char {
    transition: none;
  }
  .nav-link:hover .nav-link__char {
    transform: none;
    transition-delay: 0ms;
  }
}

/* ---------- Features (60/40) — unified with site ---------- */
/* Ukloni gornji padding da se LOREM IPSUM zalijepi uz box iz animacije */
#features.section {
  padding-top: var(--s-xl);
}

.features__header {
  text-align: left;
  margin-bottom: var(--s-xl);
}

.features__title {
  font-family: var(--font-heading);
  font-size: clamp(2.625rem, 4.8vw, 4.5rem); /* ++50% */
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.features__lead {
  color: var(--muted);
  font-size: var(--t-md);
  margin: var(--s-xs) auto 0;
  max-width: 60ch;
}

/* Same gap rhythm as .grid (row: md, column: lg) for unification */
/* Heights raised +40%: 400px → 560px */
.features__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 560px;
}

.features__side {
  display: grid;
  grid-template-rows: 2fr 3fr; /* top row (02+03) / bottom (04) ≈ 40/60 */
  gap: 12px; /* same as grid row gap */
  min-height: 0; /* spriječi da grid djeca prelaze roditelja */
}

.features__side-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 02 and 03 side by side */
  grid-template-rows: 1fr; /* osiguraj punu visinu reda */
  gap: 12px; /* same as grid gap */
  min-height: 0;
}

@media (min-width: 768px) {
  .features__layout {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); /* 60/40 */
    /* Heights raised +40%: clamp(480px, 68vh, 760px) → clamp(672px, 95vh, 1064px) */
    min-height: clamp(672px, 95vh, 1064px);
  }

  .features__side {
    grid-template-rows: 2fr 3fr;
    gap: 12px;
  }
}

/* ---------- Feature boxes (same language as blog cards) ---------- */
.feature-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  width: 100%;
  /* Height raised +40%: 140px → 196px */
  min-height: 196px;
  background: var(--surface);
  /* Bez bordera: boxevi imaju fotografije, a stari 1px svijetli border
     vidljiv je kao tanka bijela crta na dnu (iznad tamnog gradijenta). */
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* overflow: hidden reže parallax sloj (.feature-box__bg) na zaobljene
     kutove i sprječava da izađe izvan boxa. */
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.feature-box:hover {
  box-shadow: var(--shadow-hover);
}

/* Hover lift samo kad korisnik NIJE tražio smanjeni pokret */
@media (prefers-reduced-motion: no-preference) {
  .feature-box:hover {
    transform: translateY(-4px);
  }
}

.feature-box--main,
.feature-box--small,
.feature-box--large {
  min-height: 100%;
}

/* Parallax pozadinski sloj ("image-inside-box"):
   Slika je VECA od boxa (inset: -20% gore/dolje) i pomice se sporije od
   scrolla (GSAP yPercent ±12 s scrub) → dubinski efekt unutar boxa.
   Gradijent odozdo (tamni → prozirni) osigurava citljivost teksta. */
.feature-box__bg {
  position: absolute;
  inset: -20% 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Box 01 — DP-0138_COLOUR1 */
.feature-box__bg--main {
  background-image:
    linear-gradient(to top, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.45) 38%, rgba(10, 10, 15, 0.08) 68%),
    url("../../assets/images/DP-0138_COLOUR1-scaled.webp");
}

/* Box 1b — Original-vizual- */
.feature-box__bg--photo-b {
  background-image:
    linear-gradient(to top, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.45) 38%, rgba(10, 10, 15, 0.08) 68%),
    url("../../assets/images/Original-vizual-.webp");
}

/* Box 1c — DP-0137_COLOUR1 */
.feature-box__bg--photo {
  background-image:
    linear-gradient(to top, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.45) 38%, rgba(10, 10, 15, 0.08) 68%),
    url("../../assets/images/DP-0137_COLOUR1-scaled.webp");
}

/* Box 1d — MOAMO-green-m */
.feature-box__bg--photo-d {
  background-image:
    linear-gradient(to top, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.45) 38%, rgba(10, 10, 15, 0.08) 68%),
    url("../../assets/images/MOAMO-green-m.webp");
}

.feature-box__number {
  position: absolute;
  top: var(--s-sm);
  left: var(--s-sm);
  z-index: 1; /* iznad parallax sloja */
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Body — isti padding kao tekst ispod (naslov/opis) */
.feature-box__body {
  padding: var(--s-md);
  width: 100%;
  position: relative; /* iznad parallax sloja */
  z-index: 1;
}

.feature-box__label {
  display: block; /* isto kao naslov/opis ispod — blok element */
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  /* Isti padding kao tekst ispod (naslov/opis) — naslijeđeno iz .feature-box__body */
  padding: 0;
  border: 0;
  margin-bottom: var(--s-xs);
}

.feature-box__title {
  font-family: var(--font-heading);
  /* +30% u odnosu na --t-md (clamp(1.125rem, 1.6vw, 1.375rem) × 1.3) */
  font-size: clamp(1.463rem, 2.08vw, 1.788rem);
  line-height: 1.3;
  color: var(--primary);
}

.feature-box__text {
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.6;
  margin-top: var(--s-2xs);
}

/* ---------- Blog (full-width grid) ---------- */
/* Project Stories (#blog) — MANJI razmak prema prethodnoj sekciji
   (WE DESIGN...), usklađen s razmakom "Our Studio" do tamno sivog
   "As seen in" boxa: ukupni bijeli razmak = 1 × section-pad.
   Donji padding features sekcije (section-pad) već osigurava taj
   razmak, pa je gornji padding blog sekcije 0. */
#blog.section {
  padding-top: 0;
}

.blog__grid {
  gap: 12px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: no-preference) {
  .blog-card:hover {
    transform: translateY(-4px);
  }
}

/* GSAP hover mikro-interakcije (micro-interactions.js) preuzimaju transform
   → makni CSS tranziciju na transform samo kad je GSAP aktivan.
   body.gsap-ready postavlja main.js; bez GSAP-a ostaje CSS hover fallback. */
body.gsap-ready .feature-box,
body.gsap-ready .blog-card {
  transition: box-shadow var(--ease);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Alt tekst ostaje u HTML-u (a11y/SEO), ali se ne prikazuje
     kad se slika ne učita — transparentan i bez prostora */
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  /* Placeholder pozadina umjesto "pokvarenog" izgleda */
  background: var(--surface-alt);
}

.blog-card__body {
  padding: var(--s-md);
}

.blog-card__label {
  display: block; /* isto kao naslov/meta ispod — blok element */
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  /* Isti padding kao tekst ispod (naslov/meta) — naslijeđeno iz .blog-card__body */
  padding: 0;
  border: 0;
  margin-bottom: var(--s-xs);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--t-md);
  line-height: 1.3;
}

.blog-card__meta {
  color: var(--muted);
  font-size: var(--t-xs);
  margin-top: var(--s-2xs);
}

/* ---- Project Stories (interijeri) ---- */
.grid--project-stories {
  gap: var(--s-md);
}

/* .project-story nasljeđuje .blog-card — samo override-amo što treba */
.project-story {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Slike interijera — 4:3 (landscape) umjesto kvadrata */
.project-story .blog-card__image {
  aspect-ratio: 4 / 3;
}

/* Hover efekti za klikabilne kartice */
.project-story:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-story:hover .blog-card__title {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .project-story {
    transition: transform var(--ease), box-shadow var(--ease);
  }
}

/* ---------- Studio ---------- */
/* Centriraj naslov "Our Studio" na sredinu */
.studio .section__header {
  text-align: center;
}

.studio__inner {
  max-width: 72ch;
  margin-inline: auto;
  text-align: center;
}

.studio__text {
  font-size: var(--t-md);
  line-height: 1.75;
  margin-bottom: var(--s-md);
}

.studio__inner .btn {
  margin-top: var(--s-sm);
}

/* ---------- Footer (4-kolona grid + sub-footer, prema rococodecor) ---------- */
.footer {
  background: #1a1a1a;
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--s-xl) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-xl);
  padding-bottom: var(--s-xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  }
}

.footer__col h3,
.footer__col h4 {
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s-sm);
  color: #FFFFFF;
}

.footer p,
.footer li,
.footer address {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--t-sm);
  font-style: normal;
}

.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: var(--s-2xs);
}

/* Newsletter forma */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  max-width: 320px;
}

.newsletter-form input[type="email"] {
  padding: 0.75em 1em;
  background: var(--surface-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--t-sm);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form button {
  position: relative;
  padding: 0.75em 1.5em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

/* Isti border shimmer kao .btn */
.newsletter-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 65%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: btnShimmerBorder 3s ease-in-out infinite;
  pointer-events: none;
}

.newsletter-form button:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.newsletter-form button:hover::before {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-form button::before {
    animation: none;
    opacity: 0;
  }
}

/* Društvene mreže */
.social-links {
  display: flex;
  gap: var(--s-xs);
  margin-top: var(--s-sm);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  color: #FFFFFF;
  transition: border-color var(--ease), background var(--ease);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* Sub-footer (donja traka) — bijela pozadina za HAMAG-BICRO oznake */
.sub-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-block: var(--s-md);
}

.sub-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
}

.sub-footer__copy {
  font-size: var(--t-xs);
  color: #212529;
  margin: 0;
}

.sub-footer__badges {
  max-height: 48px;
  width: auto;
  display: block;
}

.sub-footer__privacy {
  font-size: var(--t-xs);
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sub-footer__privacy:hover {
  color: #000000;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: var(--s-sm);
  top: -100%;
  z-index: 200;
  background: var(--accent);
  color: #FFFFFF;
  padding: var(--s-xs) var(--s-sm);
  border-radius: var(--radius);
  transition: top var(--ease);
}

.skip-link:focus {
  top: var(--s-sm);
}

/* ============================================
   GSAP Scroll Story — roco GSAP integration
   ============================================ */

/* GSAP ScrollTrigger treba auto scroll-behavior */
html {
  scroll-behavior: auto;
}

/* ---------- Globalni fiksni slojevi ---------- */
.bg-dark {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #080711;
  opacity: 0;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 70;
  background: #ffffff; /* bijela traka napretka (bilo je gold #D2B450) */
  transform-origin: left center;
  transform: scaleX(0);
}

/* Sakrij navigaciju tijekom GSAP animacije */
.navbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.is-after-story .navbar {
  opacity: 1;
  pointer-events: auto;
}

.stage {
  position: relative;
  height: 600vh;
  z-index: 10; /* animacija iznad sadržaja */
  /* Propusti mouse događaje do #main ispod (features naslov mora
     primiti hover). Scene imaju pointer-events: none, a media slider
     u heroju ima pointer-events: auto → nastavlja raditi. */
  pointer-events: none;
}

.viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ---------- Scene ---------- */
.scene {
  position: absolute;
  inset: 0;
  padding: 0 var(--gutter);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
}

/* P1 oznaka ("P1 · HERO") — tamna na bijeloj pozadini; ostale scene ostaju svijetle */
.scene--hero .tag {
  color: #000000;
}

/* Scene vidljive (JS će sakriti za animaciju) */
.scene--slogan,
.scene--grid,
.scene--center {
  opacity: 1;
}

/* ---- P1 · HERO ---- */
/* Početak priče je svijetla varijanta: bijela pozadina + tamni logo.
   (Dark morph .bg-dark prelazi preko nje na 13–19 % timeline-a.) */
.scene--hero {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  background: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 10;
  width: 50%;
  padding: 10vh var(--gutter) 0 var(--gutter); /* vertikalno gore kako je bilo */
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontalno centriranje (zadržano) */
  gap: 0;
  text-align: center;
}

.hero-logo-wrap {
  /* -30%: logo je 70% širine hero kolone (responsive — skalira se na svim ekranima) */
  width: 70%;
  animation: heroLoad .9s cubic-bezier(0.25, 1, 0.5, 1) .1s backwards;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-subtitle {
  font-family: Arial, Helvetica, sans-serif;
  /* -30%: clamp skaliran proporcionalno (0.7 × originalne granice) */
  font-size: clamp(0.588rem, 1.294vw, 0.941rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-top: 24px;
  color: #000000; /* crna na bijeloj pozadini */
  animation: heroLoad .7s cubic-bezier(0.25, 1, 0.5, 1) .25s backwards;
}

.hero-media-field {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: auto;
  animation: mediaFadeIn .8s cubic-bezier(0.25, 1, 0.5, 1) .3s backwards;
}

/* Media slider */
.media-slider {
  position: absolute;
  inset: 0;
}

.media-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .8s cubic-bezier(0.25, 1, 0.5, 1);
}

.media-slide.is-active {
  opacity: 1;
}

.media-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .10), transparent 42%);
  pointer-events: none;
}

.media-slide--photo   { background: linear-gradient(135deg, #33291f 0%, #7a6a55 55%, #cbb894 100%); }
.media-slide--texture { background: linear-gradient(160deg, #1b1b21 0%, #4a4a52 55%, #9c9ca6 100%); }
.media-slide--macro   { background: linear-gradient(135deg, #12100c 0%, #4a3414 52%, #d2b450 100%); }
.media-slide--closeup { background: linear-gradient(160deg, #0b1220 0%, #2b3a5c 55%, #6b8cbe 100%); }

.media-slide img,
.media-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slide__label {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.media-slider__counter {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 3;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

.media-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.media-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.media-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

.media-slider__controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.media-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s, transform .3s;
}

.media-btn:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute;
  bottom: 6vh;
  left: 25vw;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #000000; /* crni SCROLL tekst na bijeloj pozadini */
  opacity: .7;
  animation: hintFade .5s cubic-bezier(0.25, 1, 0.5, 1) .6s backwards;
}

.scroll-hint .line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6); /* crna animirana crta */
  animation: hintPulse 1.6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes heroLoad {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mediaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hintFade {
  from { opacity: 0; }
  to   { opacity: .7; }
}

@keyframes hintPulse {
  0%, 100% { transform: scaleY(.3); opacity: .3; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ---- P2 · SLOGAN ---- */
.scene--slogan {
  color: #fff;
}

.slogan-text-field {
  max-width: 16ch;
  font-size: clamp(1.2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-align: center;
}

/* ---- P3 · GRID ---- */
.scene--grid {
  color: #fff;
}

.grid-columns-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  width: 100%;
}

.column-card-field {
  aspect-ratio: 1 / 1;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .7);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform-origin: bottom center;
  opacity: 1;
}

/* Fotografije u grid boxevima (P3 · 6-COL GRID) — iza slogana "Choose your way" */
.c1 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/DP-0134_ROOMSET1%20fix-scaled.webp");
  background-size: cover;
  background-position: center;
}

.c2 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/DP-0093_roomset2-scaled.webp");
  background-size: cover;
  background-position: center;
}

.c3 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/DP-0251_ROOMSET1-scaled.webp");
  background-size: cover;
  background-position: center;
}

.c4 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/JARCH-010_Roomset%202.jpg");
  background-size: cover;
  background-position: center;
}

.c5 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/Mockup-3-scaled.webp");
  background-size: cover;
  background-position: center;
}

.c6 {
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.28), rgba(10, 10, 15, 0.28)),
    url("../../assets/images/DP-0230_ROOMSET2-scaled.webp");
  background-size: cover;
  background-position: center;
}

/* ---- P4 · CENTER PIN ---- */
.scene--center {
  color: #fff;
  /* Margine s lijeve i desne strane (gutter) — fotografija se otvara od
     centra do rubova margina, NE edge-to-edge. Širina se time poravnava
     s gridom (koji također ima gutter padding). */
  padding: 0 var(--gutter);
  z-index: 15; /* iznad grid scene da prekriva srednje boxeve */
}

.overlay-center-field {
  width: 100%;
  height: 49vh;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Centralni box (P4) — fotografija + blagi tamni overlay za čitljivost */
  background-image:
    linear-gradient(rgba(10, 10, 15, 0.22), rgba(10, 10, 15, 0.22)),
    url("../../assets/images/wl-0016_448x320cm_roomset-1_1734092710-scaled.webp");
  background-size: cover;
  /* Donji rub fotografije poravnat s donjim rubom boxa (center bottom) —
     pri izlasku boxa fotografija "sjedi" na donjem rubu, bez odsječenog
     gornjeg dijela pri dizanju. */
  background-position: center bottom;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0; /* edge-to-edge: bez zaobljenih kutova → nema gapa */
  /* Prirodno otvaranje: clip-path (ne scaleX → ne isteže fotografiju).
     Početno stanje = vidljiva samo središnja linija; GSAP (story.js)
     ručno postavlja clip-path kroz onUpdate od centra prema rubovima,
     jer ovaj GSAP build nema clip-path interpolaciju u CSSPlugin-u. */
  clip-path: inset(0 50% 0 50%);
  transform-origin: center center;
  opacity: 1;
}

.overlay-center-field h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.overlay-center-field p {
  color: rgba(255, 255, 255, .7);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Overlay naslov — "WE DESIGN SURFACES THAT DEFINE SPACE" iznad P4
   fotografije. Živi kao sibling .overlay-center-field (ne unutar njega),
   pa ga clip-path reveal ne reže niti isteže.

   Centriranje je preko FLEX-a (bez CSS transforma na wrapperu) da GSAP
   y-tween ne izgubi vertikalno centriranje (percentage transform bi se
   pri čitanju matrice "spekao" u px). Wrapper I naslov ne hvataju
   pointer događaje (pointer-events: none) — overlay je dekorativan
   (aria-hidden), a da hvata hover, prekrio bi features naslov ispod
   (z-index 20 > #main z-index 5) i blokirao morph animaciju.
   (Morph živi samo na pravom features naslovu u #main.) */
.overlay-title {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.overlay-title .features__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;

  /* Poravnanje s #features naslovom pri predaji:
     features naslov je na #mainTop + var(--s-xl), a ovaj je
     flex-centriran u viewportu. translateY(var(--s-xl) + 50%)
     spušta ga za s-xl + pola vlastite visine → centar = 50vh +
     s-xl + h/2 = točna pozicija features naslova na kraju priče.
     Vrijedi za oba breakpointa (ista formula). */
  transform: translateY(calc(var(--s-xl) + 50%));
}

/* Responzivnost GSAP priče (< 1024px):
   - grid 2 stupca (umjesto 3)
   - kraća pozornica: 420vh umjesto 600vh (1 jedinica = 70vh skrola)
   Ovaj media query mora biti NAKON .grid-columns-wrapper (3 stupca). */
@media (max-width: 1023px) {
  .stage {
    height: 420vh;
  }

  .grid-columns-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: mobitel — mediji ispod teksta */
@media (max-width: 820px) {
  .hero-copy {
    width: 100%;
    padding-right: var(--gutter);
    padding-bottom: 52vh; /* mediji ispod teksta — sadržaj ostaje gore */
  }
  .hero-media-field {
    top: auto;
    bottom: 0;
    width: 100vw;
    height: 50vh;
  }
  .scroll-hint {
    display: none;
  }
}

/* ============================================
   Otkrivanje sadržaja nakon GSAP priče
   ============================================ */
/*
   GSAP timeline završava na "bottom bottom", tj. kada je dno
   pozornice (.stage) u ravnini s dnom viewporta. U tom je trenutku
   sticky .viewport još uvijek zalijepljen na vrh, pa #main počinje
   točno na dnu ekrana.

   Povlačenjem #main za pola visine ekrana (-50vh) postižemo da
   "LOREM IPSUM" sekcija u tom trenutku počinje na SREDINI ekrana,
   bez ikakvih izmjena u GSAP animaciji.
*/
#main {
  position: relative;
  z-index: 5;
  margin-top: -50vh;
  background: var(--bg);
}

/* ============================================================
   Surfaces Page — Mockup Design (hero + categories + gallery + sidebar)
   Dark-theme hero · 6-col categories · 3-col gallery + sticky sidebar
   ============================================================ */

/* ---------- Dark theme tokens za Surfaces page ---------- */
.surfaces-page {
  --surface-dark: #1a1a1a;
  --surface-dark-alt: #2D2D2D;
  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.78);
  --text-muted-dark: rgba(255, 255, 255, 0.45);
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-alt: rgba(255, 255, 255, 0.12);
}

/* ---------- Surfaces page (full dark theme) ---------- */
.page-surfaces {
  background: #0a0a0f;
  color: var(--text-white);
}

/* ---------- Surface hero (full-bleed dark) ---------- */
.surfaces-hero {
  background: var(--surface-dark);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(var(--section-pad), 8vh, 6rem);
  border-bottom: 1px solid var(--border-dark);
}

.surfaces-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.625rem, 4.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: left;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  color: var(--text-white);
}

.surfaces-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--text-light);
  white-space: nowrap;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  padding-top: var(--s-xs);
}

/* ---------- Categories Grid (6 kolona) ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: calc(-1 * var(--gutter));
}

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

/* Category card */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--s-md) 0 var(--s-sm);
  border-bottom: 1px solid var(--border-dark);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.category-card:hover {
  border-bottom-color: var(--accent);
  background: transparent;
}

.category-card--custom {
  background: var(--surface-dark-alt);
  border-radius: var(--radius);
  border-bottom-color: transparent;
}

.category-card--custom:hover {
  background: var(--surface-dark);
  border-radius: var(--radius);
}

.category-card__icon {
  width: 28px;
  height: 28px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-bottom: var(--s-2xs);
  transition: color var(--ease);
}

.category-card:hover .category-card__icon {
  color: var(--accent);
}

.category-card__label {
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-white);
}

.category-card__count {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  color: var(--text-muted-dark);
  margin-top: 2px;
}

/* ---------- Gallery Layout + Sidebar (v1 — uklonjen mrtvi .gallery-layout;
   sidebar-detail i dalje živi kroz v2 sekciju) ---------- */
@media (max-width: 1024px) {
  .sidebar-detail {
    position: static !important;
    order: -1;
  }
}

/* Gallery Grid (3 kolone) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

/* Gallery Item */
.gallery-item {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-item__body {
  padding: var(--s-md);
}

.gallery-item__title {
  font-family: var(--font-heading);
  font-size: var(--t-md);
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-white);
}

.gallery-item__subtitle {
  color: var(--text-muted-dark);
  font-size: var(--t-xs);
}

/* ---------- Sidebar (sticky detail panel) — Dark ---------- */
.sidebar-detail {
  position: sticky;
  top: calc(var(--nav-height) + var(--gutter));
  width: 280px;
  background: var(--surface-dark);
  border-left: 1px solid var(--border-dark);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow-y: auto;
}

.sidebar-detail__inner {
  padding: var(--s-md);
}

.sidebar-detail__title {
  font-family: var(--font-heading);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--s-sm);
}

.sidebar-detail__media {
  width: 100%;
  margin-bottom: var(--s-md);
}

.sidebar-detail__image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.sidebar-section-label {
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted-dark);
  margin-bottom: var(--s-2xs);
}

.sidebar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2xs);
  margin-bottom: var(--s-md);
}

.sidebar-btn {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  padding: 0.4em 0.7em;
  background: var(--surface-dark-alt);
  border: 1px solid var(--border-dark-alt);
  border-radius: 4px;
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}

.sidebar-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2xs);
  margin-bottom: var(--s-md);
}

.sidebar-tag {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  padding: 0.3em 0.6em;
  background: var(--surface-dark-alt);
  border-radius: 4px;
  color: var(--text-light);
}

.sidebar-detail__actions {
  display: flex;
  gap: var(--s-xs);
  margin-top: var(--s-md);
}

/* .btn--outline je uklonjen — osnovni .btn sada uvijek koristi bronze
   outline → bronze fill hover, pa varijanta nije potrebna. */

/* ========== Scroll-trigger animacije za Surfaces page ========== */
.category-card,
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
}

.category-card.is-visible,
.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Fade-in delay cascade */
.category-card:nth-child(1) { transition-delay: 0.05s; }
.category-card:nth-child(2) { transition-delay: 0.1s; }
.category-card:nth-child(3) { transition-delay: 0.15s; }
.category-card:nth-child(4) { transition-delay: 0.2s; }
.category-card:nth-child(5) { transition-delay: 0.25s; }
.category-card:nth-child(6) { transition-delay: 0.3s; }

.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }

/* ========== Selected state za gallery items ========== */
.gallery-item.is-selected {
  box-shadow: 0 4px 12px rgba(197, 127, 46, 0.4),
              0 0 0 2px var(--accent);
}

/* ============================================================
   Dark Page Styles — vrijedi samo na surfaces.html
   KLASA: body.surfaces-page ili body.body-dark
   ============================================================ */

/* Sakrij GSAP story elemente s page-a */
.surfaces-page .bg-dark,
.surfaces-page .progress,
.surfaces-page .stage {
  display: none !important;
}

/* Dark navbar na surfaces stranici */
.surfaces-page .navbar,
.body-dark .navbar {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.surfaces-page .navbar.is-scrolled,
.body-dark .navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.surfaces-page .navbar__logo,
.body-dark .navbar__logo {
  color: var(--text-white);
}

.surfaces-page .navbar__logo-subtitle,
.body-dark .navbar__logo-subtitle {
  color: var(--text-light);
}

.surfaces-page .navbar__menu,
.body-dark .navbar__menu {
  background: var(--surface-dark);
}

.surfaces-page .nav-link,
.body-dark .nav-link {
  color: var(--text-light);
  border-bottom-color: var(--border-dark);
}

.surfaces-page .nav-link:hover,
.body-dark .nav-link:hover,
.surfaces-page .nav-link.active,
.body-dark .nav-link.active {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}

.surfaces-page .nav-toggle__bar,
.body-dark .nav-toggle__bar {
  background: var(--text-white);
}

/* Dark skip link */
.surfaces-page .skip-link,
.body-dark .skip-link {
  background: var(--accent);
  color: var(--text-white);
}

/* Dark footer na surfaces stranici (preko existing .footer pozadine)
   .footer već ima background: var(--primary) (#2D2D2D), što je OK */

/* Dark #main wrapper — poravnaj s dark temom */
.surfaces-page main#main,
.body-dark main#main {
  background: #0a0a0f;
}

/* Footer text prečice — ostaje bijel (već je u .footer) */
.gallery-item.is-selected {
  box-shadow: 0 4px 12px rgba(197, 127, 46, 0.4),
              0 0 0 2px var(--accent);
}

/* ============================================================
   Surfaces Page v2 — Mockup iz referentnog chata
   Hero · 8 kategorija · Filters | Gallery | Details (3-kolona)
   Dark theme · fluidno · responsive
   ============================================================ */

/* ---------- Explore layout: Filters | Gallery | Details ---------- */
.explore-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (max-width: 1200px) {
  .explore-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .sidebar-detail {
    grid-column: 1 / -1;
    position: static !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static !important;
  }
}

/* ---------- Filters panel ---------- */
.filters-panel {
  position: sticky;
  top: calc(var(--nav-height) + var(--gutter));
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  padding: var(--s-md);
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}

.filters-panel__actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-xs);
}

.filters-panel__title {
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-white);
}

.filters-panel__reset {
  background: none;
  border: 0;
  color: var(--text-muted-dark);
  font-size: var(--t-xs);
  cursor: pointer;
  transition: color var(--ease);
}

.filters-panel__reset:hover {
  color: var(--accent);
}

.filters-list {
  display: flex;
  flex-direction: column;
}

.filters-list li {
  padding: var(--s-xs) 0;
  border-bottom: 1px solid var(--border-dark);
}

.filters-list li:last-child {
  border-bottom: 0;
}

.filters-list button {
  background: none;
  border: 0;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ease);
}

.filters-list button:hover,
.filters-list button.is-active {
  color: var(--accent);
}

/* Help / Book a session box */
.help-choice {
  padding: var(--s-md);
  background: var(--surface-dark-alt);
  border-radius: var(--radius);
}

.help-choice__title {
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  color: var(--text-white);
  margin-bottom: var(--s-2xs);
}

.help-choice__text {
  color: var(--text-muted-dark);
  font-size: var(--t-xs);
  line-height: 1.6;
  margin-bottom: var(--s-sm);
}

.help-choice .btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Gallery area + toolbar ---------- */
.gallery-area {
  min-width: 0;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
  padding-bottom: var(--s-sm);
  border-bottom: 1px solid var(--border-dark);
}

.gallery-toolbar__count {
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  color: var(--text-light);
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .gallery-toolbar__count {
    flex: 1 1 auto;
  }
}

.gallery-view-toggle {
  display: flex;
  gap: var(--s-sm);
}

.gallery-view-toggle button {
  background: none;
  border: 0;
  color: var(--text-muted-dark);
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ease);
}

.gallery-view-toggle button:hover {
  color: var(--text-light);
}

.gallery-view-toggle button.is-active {
  color: var(--accent);
}

.gallery-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2xs);
  color: var(--text-muted-dark);
  font-size: var(--t-xs);
}

.gallery-sort select {
  background: var(--surface-dark);
  color: var(--text-light);
  border: 1px solid var(--border-dark-alt);
  border-radius: 4px;
  padding: 0.35em 0.7em;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  cursor: pointer;
}

/* ---------- Gallery grid: 3 kolone (v2) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

/* ---------- Sidebar details (v2) — desna kolona ---------- */
.sidebar-detail {
  position: sticky;
  top: calc(var(--nav-height) + var(--gutter));
  width: 100%;
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow-y: auto;
}

.sidebar-detail__collection {
  font-family: var(--font-heading);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--s-xs);
}

.sidebar-detail__description {
  color: var(--text-muted-dark);
  font-size: var(--t-sm);
  line-height: 1.6;
  margin-bottom: var(--s-md);
}

/* ---------- Category grid: 8 kolona (v2) ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: calc(-1 * var(--gutter));
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ---------- Hero v2 — puni dark, bez bordera ---------- */
.surfaces-hero {
  background: var(--surface-dark);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
}

/* ---------- Fade-in cascade proširen na 8 elemenata ---------- */
.category-card:nth-child(7) { transition-delay: 0.35s; }
.category-card:nth-child(8) { transition-delay: 0.4s; }

.gallery-item:nth-child(7) { transition-delay: 0.35s; }
.gallery-item:nth-child(8) { transition-delay: 0.4s; }

/* ---------- Override GSAP #main offset na surfaces stranici ---------- */
.surfaces-page #main,
.body-dark #main {
  margin-top: 0;
  background: #0a0a0f;
}

/* ============================================================
   As seen in — marquee logotipa (između Project Stories i Studio)
   Dark tema · infinite ticker · grayscale → hover u boji
   ============================================================ */

.as-seen {
  background: var(--surface); /* #1a1a1a — breaker sekcija */
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden; /* spriječi horizontalni scroll */
}

.as-seen__title {
  font-family: var(--font-heading);
  font-size: var(--t-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--bronze);
  text-align: center;
  margin-bottom: var(--s-xl);
}

/* Wrapper — reže logotipe koji izlaze van, puna visina trake */
.logos-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Traka koja se beskonačno pomiče lijevo */
.logos-track {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  width: max-content;
  animation: scroll-logos 32s linear infinite;
}

/* Pauza na hover */
.logos-wrapper:hover .logos-track {
  animation-play-state: paused;
}

/* Logo item — bez boxa (samo slika logotipa na tamnoj pozadini) */
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  filter: grayscale(100%);
  transition: opacity var(--ease), filter var(--ease), transform var(--ease);
}

.logo-item img {
  max-height: 50px; /* +40% (bilo 36px) */
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px);
}

/* Beskonačna petlja: pomak za -50% jer je sadržaj dupliciran */
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion — zaustavi marquee, logotipi ostanu vidljivi */
@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .as-seen__strip {
    height: auto;
    padding-block: var(--s-sm);
  }
}

/* Mobile — veći logotipi bez boxa */
@media (max-width: 768px) {
  .logo-item img {
    max-height: 39px; /* +40% (bilo 28px) */
  }
}

/* Traka IZA logotipa — bijela, edge-to-edge screena (lijevo i desno).
   Edge-to-edge: width: auto + negativna margina kompenzira gutter
   .container-a (padding-inline: var(--gutter)). VAŽNO: ne koristiti
   width: 100% — u border-box modelu margin-right ne pomiče desni
   rub, pa bi traka ostala gutter piksela prije ruba screena.
   Logotipi su centrirani na traci. */
.as-seen__strip {
  width: auto;
  margin-inline: calc(-1 * var(--gutter)); /* edge-to-edge */
  height: 61px; /* +10% nego sada (55px × 1.1 = 60.5 → 61px) */
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile — traka +10% nego sada (43px × 1.1 = 47.3 → 48px) */
@media (max-width: 768px) {
  .as-seen__strip {
    height: 48px;
  }
}

/* ============================================================
   Morph riječi — "DESIGN" ↔ "DEFINE" (features naslov)
   Dvije riječi su naslagane jedna preko druge; JS mijenja
   blur + opacity (cross-fade). Širina je ista (6 znakova),
   pa nema pomicanja teksta.
   ============================================================ */

/* Skriveni tekst samo za screen readere (a11y) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Kontejner morfirajuće riječi */
.morph-word {
  display: inline-block;
  white-space: nowrap;
}

/* Pojedinačno slovo — 3D flip (mijenjaju se samo različita slova) */
.morph-word__letter {
  display: inline-block;
  transform: perspective(300px) rotateX(0deg);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.45s ease;
}

/* Slovo koje se mijenja — okrene se prema gore i nestane */
.morph-word__letter.is-flip-out {
  transform: perspective(300px) rotateX(90deg);
  opacity: 0;
}

/* Reduced motion: statičan prvi tekst (JS to postavlja) */
@media (prefers-reduced-motion: reduce) {
  .morph-word__letter {
    transition: none;
  }
}
