/* ============================================================
   Piano Atelier David Baumgarten — vlastiti dizajn
   Paleta: duboka toplo-crna, zlatna (klavirsko zlato), bjelokost
   Tipografija: Lora (serif) + Manrope (sans)
   ============================================================ */

@font-face {
  font-family: 'Lora';
  src: url('fonts/lora.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('fonts/lora-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0d0b;
  --bg-2: #16120e;
  --bg-3: #1d1812;
  --ink: #f2ebdd;
  --muted: #a99d8a;
  --gold: #c8a24b;
  --gold-2: #e6cd8d;
  --red: #96332f;
  --line: rgba(200, 162, 75, 0.16);
  --line-strong: rgba(200, 162, 75, 0.4);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: #14100a; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3322; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #14100a; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Tipografija ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
h2 em, h3 em { font-style: italic; color: var(--gold-2); }
h3 { font-size: 1.5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.72rem; font-weight: 700; color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--gold);
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

.section { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.section-head { margin-bottom: 52px; }
.section-head .lead { margin-top: 6px; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a9822f);
  color: #171008;
  box-shadow: 0 10px 28px rgba(200, 162, 75, 0.25);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(200, 162, 75, 0.4); }
.btn-ghost {
  border-color: var(--line-strong); color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-3px); }
.btn-sm { padding: 11px 22px; font-size: 0.84rem; }
.btn-block { width: 100%; border: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 13, 11, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
  width: min(1200px, 94%);
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(200,162,75,0.18), rgba(200,162,75,0.04) 60%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-text small { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-cta {
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--gold); color: #14100a; border-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,13,11,0.72) 0%, rgba(15,13,11,0.35) 42%, rgba(15,13,11,0.55) 70%, var(--bg) 100%),
    linear-gradient(100deg, rgba(15,13,11,0.82) 0%, rgba(15,13,11,0.25) 55%, rgba(15,13,11,0.55) 100%);
}
.hero-content {
  width: min(1140px, 92%);
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 90px;
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 600;
  margin: 14px 0 20px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-sub {
  color: #d8cdb9;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  max-width: 620px;
  margin-bottom: 38px;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero-scroll i {
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Bio ---------- */
.bio { background: var(--bg); }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.bio-media { position: relative; max-width: 420px; margin-inline: auto; }
.bio-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bio-frame::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(230, 205, 141, 0.35);
  border-radius: 12px; z-index: 1; pointer-events: none;
}
.bio-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.9; }
.bio-caption {
  margin-top: 14px; text-align: center;
  font-size: 0.8rem; color: var(--muted);
}
.bio-text p { color: #cfc5b1; margin-bottom: 16px; }
.bio-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 30px;
}
.bio-facts li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.bio-facts li:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bio-facts strong {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; color: var(--gold-2);
}
.bio-facts span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sastavi ---------- */
.sastavi { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.ens-grid {
  display: grid; grid-template-columns: 1fr; gap: 26px;
}
.ens-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ens-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.ens-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ens-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.ens-card:hover .ens-img img { transform: scale(1.06); }
.ens-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(15, 13, 11, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em;
  padding: 6px 12px; border-radius: 999px;
}
.ens-body { padding: 26px 26px 30px; }
.ens-body h3 { margin-bottom: 10px; }
.ens-body p { color: var(--muted); font-size: 0.95rem; }
.ens-combo {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.ens-combo li {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}

.ens-featured {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(200, 162, 75, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, #211a12 0%, var(--bg-3) 60%);
  border: 1px solid var(--line-strong);
  position: relative;
  display: flex;
}
.ens-featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(230,205,141,0.7), transparent 40%, transparent 70%, rgba(200,162,75,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.ens-featured-inner { padding: 34px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ens-badge {
  align-self: flex-start;
  background: var(--gold); color: #171008;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.ens-kicker {
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.72rem; font-weight: 700;
  color: var(--gold); margin-top: 8px;
}
.ens-featured h3 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.ens-featured p { color: #c9bfab; }
.ens-featured .ens-combo li { border-color: var(--line-strong); }
.ens-featured .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Atelje ---------- */
.atelje { background: var(--bg); }
.atelje-grid { display: grid; grid-template-columns: 1fr; gap: 52px; align-items: center; }
.atelje-media { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.atelje-main {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.atelje-inset {
  position: absolute; right: -8px; bottom: -34px;
  width: 46%;
  border-radius: 14px;
  border: 5px solid var(--bg);
  outline: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.atelje-text p { color: #cfc5b1; margin-bottom: 16px; }
.atelje-list {
  margin: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.atelje-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem; color: var(--muted);
}
.atelje-list strong {
  color: var(--gold-2); font-weight: 700; min-width: 96px;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Klijenti ---------- */
.klijenti { background: var(--bg-2); overflow: hidden; }
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--ink);
  white-space: nowrap;
  opacity: 0.9;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Galerija ---------- */
.galerija { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gal-item {
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.gal-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 9; }
.gal-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after {
  content: "⤢";
  position: absolute; right: 12px; bottom: 10px;
  color: var(--gold-2); font-size: 1.1rem;
  opacity: 0; transition: opacity 0.3s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.gal-item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 8, 6, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1080px, 92vw); }
.lb-figure img {
  max-width: 100%; max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-strong);
}
.lb-figure figcaption { color: var(--muted); font-size: 0.88rem; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(23, 18, 14, 0.8);
  border: 1px solid var(--line-strong);
  color: var(--gold-2);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: #14100a; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Kontakt ---------- */
.kontakt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr; gap: 52px;
}
.kontakt-info .lead { margin-bottom: 30px; }
.info-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.info-card:hover { transform: translateX(6px); border-color: var(--line-strong); }
.info-ico {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 1.05rem;
  background: radial-gradient(circle at 30% 25%, rgba(200,162,75,0.16), transparent 65%);
}
.info-card small {
  display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.info-card a { font-weight: 700; color: var(--ink); transition: color 0.25s ease; }
.info-card a:hover { color: var(--gold-2); }

.social { display: flex; gap: 10px; margin: 24px 0 28px; flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.3s ease;
}
.social a:hover {
  border-color: var(--gold); color: var(--gold-2);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(200, 162, 75, 0.2);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe {
  width: 100%; height: 300px; border: 0;
  filter: grayscale(0.85) contrast(1.05) brightness(0.9);
}

.kontakt-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.kontakt-form h3 { margin-bottom: 22px; font-size: 1.7rem; }
.kontakt-form label {
  display: block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 7px;
}
.kontakt-form label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kontakt-form input,
.kontakt-form select,
.kontakt-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.kontakt-form input:focus,
.kontakt-form select:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.15);
}
.kontakt-form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.kontakt-form .btn { margin-top: 24px; }
.form-note { margin-top: 12px; font-size: 0.76rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 42px 0 34px;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 22px; align-items: center;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; display: block; }
.footer-brand small { color: var(--muted); font-size: 0.82rem; }
.footer-brand small a { color: var(--gold); }
.footer-brand small a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 0.85rem; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-copy { color: #7d7464; font-size: 0.78rem; }

/* ---------- Reveal animacije ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   RESPONZIVNO
   ============================================================ */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gal-item:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .gal-item:nth-child(7) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .bio-grid { grid-template-columns: 5fr 7fr; gap: 70px; align-items: center; }
  .bio-media { margin-inline: 0; }
  .ens-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ens-featured { grid-column: span 2; }
  .atelje-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .atelje-inset { right: -22px; bottom: -34px; }
  .kontakt-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-copy { margin-left: auto; text-align: right; max-width: 260px; }
}

@media (min-width: 1180px) {
  .ens-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .ens-featured { grid-column: 1 / -1; }
  .ens-featured-inner { align-items: center; text-align: center; }
  .ens-badge { align-self: center; }
  .ens-featured .ens-combo { justify-content: center; }
  .ens-featured .btn { align-self: center; }
  .gal-grid { grid-template-columns: repeat(4, 1fr); }
  .gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gal-item:nth-child(6) { aspect-ratio: 1 / 1; }
  .gal-item:nth-child(7) { grid-column: span 3; aspect-ratio: 16 / 7; }
}

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 13, 11, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 14px 6vw 26px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid rgba(200,162,75,0.08); }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { text-align: center; margin-top: 14px; border: 1px solid var(--line-strong); }
}

/* Mobile hero: portrait image (David u gornjem desnom kutu) — pojačaj overlay iza teksta */
@media (max-width: 767px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(15,13,11,0.28) 0%, rgba(15,13,11,0.46) 40%, rgba(15,13,11,0.82) 100%),
      linear-gradient(90deg, rgba(15,13,11,0.60) 0%, rgba(15,13,11,0.12) 65%);
  }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .bio-facts { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .ens-featured-inner { padding: 26px 22px; }
  .kontakt-form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
