/* =========================================================
   FORK — wedding  |  site.css
   Mobile-first. Breakpoint: 768px (tablet/desktop).
   ========================================================= */

:root {
    --bg: #050505;
    --bg-2: #080808;
    --bg-3: #0a0a0a;
    --text: #e1e1e1;
    --muted: #8a8a8a;
    --dim: #4b5563;
    --line: #1f2937;
    --font-art: 'Syne', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pad: clamp(1.25rem, 5vw, 2.5rem);
    --vh: 1vh;
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@supports (height: 100svh) { :root { --vh: 1svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .font-art { font-family: var(--font-art); font-weight: 700; letter-spacing: -.01em; }
h1 { font-weight: 800; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: #333; border: 2px solid var(--bg-3); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.tag {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #6b7280;
    border: 1px solid #6b7280;
    border-radius: 999px;
    padding: .3rem 1rem;
    background: #000;
}
.section-title { font-size: clamp(2.6rem, 12vw, 7rem); line-height: .95; color: #fff; margin-top: 1.25rem; }

.logo-box {
    width: 2.25rem; height: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #000;
    border: 1px solid #fff;
    font-family: var(--font-art); font-weight: 800; font-size: 1.3rem;
}
.logo-box--outline { background: transparent; color: #fff; border-color: #333; margin-bottom: 1.5rem; }

/* Overlays */
.noise {
    position: absolute; inset: 0;
    background-image: var(--noise);
    opacity: .12; mix-blend-mode: overlay;
    pointer-events: none; z-index: 2;
}
.scanlines {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0) 50%, rgba(0,0,0,.4) 50%) 0 0 / 100% 4px;
    mix-blend-mode: overlay; pointer-events: none; z-index: 3;
}
.flicker { animation: flicker .15s infinite; }
@keyframes flicker { 0%,100% { opacity: .8; } 50% { opacity: 1; } }

.image-wrapper { position: relative; overflow: hidden; background: #111; }
.noir-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    filter: grayscale(100%) contrast(110%);
    transition: filter .7s, transform 1s;
}
/* Boja: c/b slike (.bw) dobivaju boju.
   Mobitel: JS dodaje .is-color nakon ~2,5 s na ekranu.
   Desktop: samo dok je miš iznad slike. */
.bw { transition: filter 1.2s ease, transform 1s; }
.bw.is-color { filter: none !important; }
@media (hover: hover) and (pointer: fine) {
    .image-wrapper:hover .bw,
    .hero:hover .hero-slide.active .bw,
    .img-slice:hover .bw,
    .media-card:hover .bw,
    .immersive-panel:hover .bw { filter: none !important; }
    .image-wrapper:hover .noir-img { transform: scale(1.03); }
}

/* ---------- Navigacija ---------- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem var(--pad);
    padding-top: max(1rem, env(safe-area-inset-top));
    transition: background .4s, padding .4s;
}
.site-nav.is-scrolled { background: rgba(5,5,5,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand-name { display: none; font-size: .78rem; letter-spacing: .28em; font-weight: 600; color: #fff; }
.nav-links { display: none; gap: 2.5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.nav-links a { color: #fff; transition: color .2s; }
.nav-links a:hover { color: #9ca3af; }
.menu-trigger {
    color: #fff; font-size: .72rem; letter-spacing: .15em; font-weight: 700; text-transform: uppercase;
    border: 1px solid #fff; padding: .55rem .9rem; min-height: 44px;
}

.mobile-menu {
    position: fixed; inset: 0; z-index: 70;
    height: 100vh; height: calc(var(--vh) * 100);
    background: var(--bg-2);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .6s cubic-bezier(.7,0,.3,1), visibility 0s .6s;
}
.mobile-menu.active { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.7,0,.3,1); }
.mobile-link {
    font-family: var(--font-art); font-size: clamp(2rem, 11vw, 3rem); color: #fff;
    margin: .6rem 0; text-transform: uppercase;
    opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s;
}
.mobile-menu.active .mobile-link { opacity: 1; transform: none; }
.mobile-menu.active .mobile-link:nth-of-type(1) { transition-delay: .1s; }
.mobile-menu.active .mobile-link:nth-of-type(2) { transition-delay: .17s; }
.mobile-menu.active .mobile-link:nth-of-type(3) { transition-delay: .24s; }
.mobile-menu.active .mobile-link:nth-of-type(4) { transition-delay: .31s; }
.mobile-menu.active .mobile-link:nth-of-type(5) { transition-delay: .38s; }
.close-menu {
    position: absolute; top: max(1.25rem, env(safe-area-inset-top)); right: var(--pad);
    color: #888; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
    padding: .75rem; min-height: 44px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 100vh; min-height: calc(var(--vh) * 100);
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide picture { width: 100%; height: 100%; }
.hero-slide img {
    object-fit: cover; object-position: center;
    filter: grayscale(100%) contrast(120%) brightness(80%);
    transform: scale(1.05);
}
.hero-slide.active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.03); } }
.hero-video { position: absolute; inset: 0; overflow: hidden; }
.hero-video iframe {
    position: absolute; top: 50%; left: 50%;
    width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%;
    /* scale(1.2): rubovi s YouTube naslovom i logom ostaju izvan kadra */
    transform: translate(-50%, -50%) scale(1.2); border: 0; pointer-events: none;
    filter: grayscale(100%) contrast(120%) brightness(70%);
}
.hero-shade { position: absolute; inset: 0; background: #000; opacity: .55; z-index: 1; }
.hero-content { position: relative; z-index: 5; text-align: center; padding: 0 1rem; }
/* Slogan na naslovnici: elegantni serif, drugi red u kurzivu */
.hero-title {
    font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    font-weight: 500; letter-spacing: -.01em; text-transform: none;
    font-size: clamp(3.4rem, 15vw, 9.5rem); line-height: .95; color: #fff;
    text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero-title em {
    display: block; font-style: italic; font-weight: 400;
    color: #e8e2d8; padding-left: .6em;
}
.hero-sub {
    margin-top: 2.25rem; min-height: 1.5em;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem .9rem;
    font-size: clamp(.7rem, 2.6vw, .95rem); letter-spacing: .3em; text-transform: uppercase;
    color: #b3b3b3; font-weight: 600;
}
.hero-brand { color: #fff; letter-spacing: .35em; }
.hero-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
/* Mobitel: FORK iznad podnaslova, bez točke */
@media (max-width: 767px) {
    .hero-sub { flex-direction: column; gap: .6rem; }
    .hero-dot { display: none; }
}
.scroll-cue {
    position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 50%; z-index: 5;
    width: 1px; height: 60px; transform: translateX(-50%); background: rgba(255,255,255,.2); overflow: hidden;
}
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s infinite; }
@keyframes cue { to { top: 100%; } }

/* Strelice i točkice za listanje naslovnice */
.hero-controls {
    position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
    bottom: calc(max(1.5rem, env(safe-area-inset-bottom)) + 76px);
    display: flex; align-items: center; gap: 1.1rem;
}
.hero-controls[hidden] { display: none; }
.hero-arrow {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.45); color: #fff;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.25);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s, transform .25s;
}
.hero-arrow span {
    width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateX(2px) rotate(45deg);
}
.hero-arrow.next span { transform: translateX(-2px) rotate(-135deg); }
.hero-arrow:hover { background: #fff; color: #000; border-color: #fff; }
.hero-arrow:active { transform: scale(.94); }
.hero-dots { display: flex; gap: .55rem; }
.hero-dot-btn {
    width: 8px; height: 8px; border-radius: 50%; padding: 0;
    background: rgba(255,255,255,.35); transition: background .3s, width .3s;
    position: relative;
}
.hero-dot-btn::before { content: ''; position: absolute; inset: -10px; }   /* veća površina za prst */
.hero-dot-btn.active { background: #fff; width: 22px; border-radius: 4px; }
@media (min-width: 768px) {
    .hero-arrow { width: 54px; height: 54px; }
}

/* ---------- Intro ---------- */
.intro { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid #111; padding: 6rem 0 2rem; overflow: hidden; }
.intro-text { font-size: clamp(1.75rem, 7vw, 3.75rem); line-height: 1.15; color: #fff; max-width: 64rem; }
.intro-text span {
    display: block; margin-top: 1.25rem; max-width: 40rem;
    font-family: var(--font-body); font-weight: 400; letter-spacing: 0;
    font-size: clamp(1.05rem, 4.2vw, 1.5rem); line-height: 1.55; color: #8b929c;
}
.fork-path { width: 100%; max-width: 56rem; height: 180px; margin: 3rem auto 0; opacity: .4; filter: drop-shadow(0 0 10px rgba(255,255,255,.3)); }
.fork-path svg { width: 100%; height: 100%; display: block; }
.branch-path { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- Digital ---------- */
.digital { background: #000; border-top: 1px solid #111; padding: 4rem 0; }
.digital-grid { display: grid; gap: 2.5rem; align-items: center; }
.digital-media { order: -1; height: 60vh; height: calc(var(--vh) * 60); border: 1px solid #1f2937; }
.digital-title { font-size: clamp(2.75rem, 14vw, 7rem); line-height: .92; color: #fff; margin: 2rem 0; }
.digital-desc { color: #9ca3af; font-size: 1.05rem; line-height: 1.7; max-width: 28rem; }
.rule { margin-top: 2.5rem; height: 1px; width: 8rem; background: #374151; }

/* ---------- Assembly ---------- */
.assembly { background: var(--bg-3); position: relative; overflow: hidden; padding: 4rem 0 3rem; }
.assembly-head { text-align: center; padding: 0 var(--pad); margin-bottom: 2rem; position: relative; z-index: 2; }
.slice-container {
    display: flex; gap: 6px; padding: 0 2%;
    height: 70vh; height: calc(var(--vh) * 70);
}
.img-slice { flex: 1; position: relative; overflow: hidden; background: #111; }
.img-slice .bg-layer {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: grayscale(100%);
}

/* ---------- Memory (video) ---------- */
.memory { background: var(--bg); position: relative; padding: 4rem 0; overflow: hidden; }
.memory-header { text-align: center; padding: 0 var(--pad); margin-bottom: 2rem; }
.video-list { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 0 var(--pad); width: 100%; max-width: 1200px; margin: 0 auto; }
.video-item { margin: 0; }
.media-card {
    position: relative; overflow: hidden;
    width: 100%; aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid #222;
}
.video-item.is-reel { width: min(78%, 340px); margin: 0 auto; }
.video-item.is-reel .media-card { aspect-ratio: 9 / 16; }
.video-caption {
    margin-top: .85rem;
    font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #6b7280;
}
.video-item.is-reel .video-caption { text-align: center; }

/* Glazbeni spotovi — blok ispod filmova: tekst + video */
.music-block {
    display: grid; gap: 1.5rem;
    width: 100%; max-width: 1200px; margin: 3.5rem auto 0; padding: 0 var(--pad);
}
.music-title { font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.05; color: #fff; text-transform: uppercase; margin-bottom: .9rem; }
.music-text p { color: #9ca3af; font-size: 1rem; line-height: 1.65; max-width: 30rem; }
.music-list .video-item { margin: 0; }
@media (min-width: 768px) {
    .music-block {
        grid-template-columns: 1fr 1.7fr; align-items: center; gap: 3rem;
        max-width: min(1500px, 190vh); padding: 0 2.5rem; margin-top: 5rem;
    }
    .music-text p { font-size: 1.1rem; }
}
/* Filmovi u jednom redu, reelsi u redu ispod.
   Mobitel: filmovi jedan ispod drugog preko cijele širine, reelsi po dva u redu. */
.video-films { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.video-reels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.video-reels.reels-1 { grid-template-columns: 1fr; }
.video-reels:not(.reels-1) .video-item.is-reel { width: 100%; }
.video-reels:not(.reels-1) .play-btn { width: 56px; height: 56px; }
.media-card .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.media-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 20; }
.media-card .scanlines { mix-blend-mode: overlay; }
.play-btn-overlay {
    position: absolute; inset: 0; z-index: 15;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.25); transition: background .3s; width: 100%;
}
.play-btn {
    width: 72px; height: 72px; border: 2px solid #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275), background .3s;
}
.play-triangle { width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
@media (hover: hover) {
    .media-card:hover .play-btn { transform: scale(1.15); background: #fff; }
    .media-card:hover .play-triangle { border-left-color: #000; }
    .media-card:hover .play-btn-overlay { background: transparent; }
}

/* ---------- Archive ---------- */
.archive { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 5rem 0; }
.archive-head {
    display: flex; flex-direction: column; gap: 1.25rem;
    border-bottom: 1px solid #1f2937; padding-bottom: 2rem; margin-bottom: 2.5rem;
}
.archive-head h2 { font-size: clamp(2.6rem, 12vw, 6rem); color: #fff; line-height: 1; }
.archive-head p { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #6b7280; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; padding: 0 .75rem; max-width: 1800px; margin: 0 auto; }
.g-item { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.g-item.wide { aspect-ratio: 4 / 3; }
.archive-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 1.25rem; display: flex; align-items: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.archive-overlay span { font-family: var(--font-art); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: #fff; line-height: 1; }

/* ---------- Galerija po kategorijama ---------- */
.gal-filters {
    display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
    padding: 0 var(--pad); margin: 0 auto 2rem; max-width: 1280px;
}
.gal-filters button {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px;
    border: 1px solid #333; color: #9ca3af;
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    transition: background .25s, color .25s, border-color .25s;
}
.gal-filters button:hover { border-color: #777; color: #fff; }
.gal-filters button.active { background: #fff; color: #000; border-color: #fff; }
.gal-count { font-size: .65rem; opacity: .55; letter-spacing: .05em; }
.gal-grid {
    columns: 2; column-gap: 8px;
    padding: 0 8px; max-width: 1800px; margin: 0 auto;
}
.gal-item {
    position: relative; margin: 0 0 8px; break-inside: avoid;
    overflow: hidden; border-radius: 8px; background: #111; cursor: zoom-in;
}
.gal-item[hidden] { display: none; }
.gal-item img {
    display: block; width: 100%; height: auto;
    filter: grayscale(100%) contrast(110%);
    transition: filter 1.2s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.gal-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .gal-item:hover img { filter: none !important; transform: scale(1.03); }
}
@media (min-width: 768px) {
    .gal-grid { columns: 3; column-gap: 14px; padding: 0 1.5rem; }
    .gal-item { margin-bottom: 14px; border-radius: 6px; }
    .gal-filters { margin-bottom: 3rem; }
}
@media (min-width: 1100px) {
    .gal-grid { columns: 4; }
}

/* ---------- Immersive ----------
   Desktop: slike se slažu jedna preko druge dok skrolaš (pin).
   Mobitel: galerija u dva stupca + pregled preko cijelog ekrana — vidi blok @media (max-width: 767px) ispod. */
.immersive { position: relative; z-index: 2; background: var(--bg); }
.immersive-pin {
    position: relative; overflow: hidden;
    height: 100vh; height: calc(var(--vh) * 100);
}
.immersive-stack { position: absolute; inset: 0; overflow: hidden; }
.immersive-panel {
    position: absolute; inset: 0; overflow: hidden;
    background: var(--bg); will-change: transform;
}
.immersive-panel img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    filter: grayscale(100%) contrast(110%);
}
.immersive-overlay {
    position: absolute; inset: 0; z-index: 50; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem; mix-blend-mode: difference; color: #fff; text-align: center;
}
.immersive-overlay h2 { font-size: clamp(2rem, 10.5vw, 6rem); line-height: 1; opacity: .9; max-width: 100%; overflow-wrap: anywhere; }
.immersive-counter {
    position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 0; right: 0;
    font-size: .75rem; letter-spacing: .3em; font-variant-numeric: tabular-nums;
}

/* Mobitel: pregledna galerija u dva stupca — cijele slike u svom omjeru, klik otvara pregled */
@media (max-width: 767px) {
    .immersive.is-grid { padding: 4rem 0 3.5rem; }
    .is-grid .immersive-pin { height: auto; overflow: visible; }
    .is-grid .immersive-overlay {
        position: static; mix-blend-mode: normal; pointer-events: auto;
        padding: 0 1.5rem 2rem;
    }
    .is-grid .immersive-overlay h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); opacity: 1; }
    .is-grid .immersive-overlay h2 br { display: none; }
    .is-grid .immersive-counter { display: none; }
    .is-grid .immersive-stack {
        position: static; overflow: visible;
        columns: 2; column-gap: 8px; padding: 0 8px;
    }
    .is-grid .immersive-panel {
        position: relative; inset: auto; will-change: auto;
        break-inside: avoid; margin-bottom: 8px;
        border-radius: 10px; background: #111; cursor: zoom-in;
        opacity: 0; transform: translateY(28px) scale(.97);
        transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
    }
    .is-grid .immersive-panel.in { opacity: 1; transform: none; }
    .is-grid .immersive-panel img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
    .is-grid .immersive-panel img.ready { aspect-ratio: auto; }
}

/* Pregled slike preko cijelog ekrana */
.lightbox {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.96);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
    touch-action: pan-y;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb-img {
    max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    opacity: 0; transform: scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.lb-img.shown { opacity: 1; transform: none; }
.lb-close {
    position: absolute; top: max(.75rem, env(safe-area-inset-top)); right: .75rem;
    width: 48px; height: 48px; color: #fff; font-size: 2.2rem; line-height: 1;
}
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: .6rem; } .lb-next { right: .6rem; }
.lb-nav span { width: 10px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(2px) rotate(45deg); }
.lb-next span { transform: translateX(-2px) rotate(-135deg); }
.lb-count {
    position: absolute; bottom: max(1rem, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
    color: #9ca3af; font-size: .75rem; letter-spacing: .3em; font-variant-numeric: tabular-nums;
}

/* ---------- Kontakt ---------- */
.contact {
    position: relative; z-index: 5;
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 5rem var(--pad);
    display: flex; justify-content: center;
}
.contact-inner { width: 100%; max-width: 48rem; }
.contact-head { text-align: center; margin-bottom: 3rem; }
.contact-head h2 { font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1; margin-bottom: 1.25rem; color: #fff; }
.contact-head p { color: #6b7280; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; }
.contact-form { display: grid; gap: 2.25rem; }
.field label { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #6b7280; margin-bottom: .25rem; }
.field input, .field textarea, .field select {
    width: 100%; background: transparent; color: #fff;
    border: 0; border-bottom: 1px solid #333; border-radius: 0;
    padding: 1rem 0; outline: none;
    font-family: var(--font-body); font-size: 16px; /* 16px sprječava zoom na iPhoneu */
    transition: border-color .3s;
    -webkit-appearance: none; appearance: none;
    color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #555; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: #fff; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-bottom-color: #f87171; }

/* Upitnik: dijelovi s brojevima, polja u dva stupca na desktopu */
.form-section { border: 0; margin: 0; padding: 0; display: grid; gap: 1.6rem; min-width: 0; }
.form-section legend {
    float: left; width: 100%;   /* float: naslov je u dijelu, a ne na crti fieldseta */
    display: block; padding: 0; margin-bottom: 0; line-height: 1.25;
    font-family: var(--font-art); font-weight: 700; font-size: 1.15rem; color: #fff;
    text-transform: uppercase; letter-spacing: .02em;
}
.form-section legend .opt { font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: .8rem; letter-spacing: 0; }
.sec-num { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .15em; color: #6b7280; margin-right: .8rem; vertical-align: .15em; }
.form-section + .form-section { border-top: 1px solid #1f2937; padding-top: 2.25rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.field { min-width: 0; }
.field .opt { text-transform: none; letter-spacing: .02em; color: #4b5563; }
.field .req, .required-note { color: #9ca3af; }
.section-note, .field-hint { font-size: .8rem; color: #6b7280; line-height: 1.5; margin-top: -.6rem; }
.field-hint { margin-top: .6rem; }
.required-note { font-size: .75rem; margin-top: -1rem; }
.check-row { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .9rem; color: #bbb; min-height: 44px; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: #fff; flex-shrink: 0; }
.planner-fields { transition: opacity .3s; }
.planner-fields.is-off { opacity: .3; pointer-events: none; }
.field select {
    cursor: pointer; padding-right: 1.75rem;
    background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
    background-position: right 10px center, right 4px center; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: #111; color: #fff; }
.field select.empty, .field input[type="date"].empty { color: #555; }
.field input[type="date"] { min-height: 3.4rem; }
@media (min-width: 768px) {
    .field-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .form-section legend { font-size: 1.3rem; }
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-thanks[hidden], .contact-form[hidden] { display: none; }
.form-thanks {
    text-align: center; padding: 3rem 1.5rem;
    border: 1px solid #2f5f3f; background: rgba(74,222,128,.06);
    outline: none; animation: thanksIn .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes thanksIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.thanks-check {
    width: 72px; height: 72px; margin: 0 auto 1.5rem;
    border: 2px solid #4ade80; border-radius: 50%; color: #4ade80;
    display: flex; align-items: center; justify-content: center; font-size: 2.25rem; line-height: 1;
}
.form-thanks h3 { font-size: clamp(2.25rem, 10vw, 4rem); color: #fff; margin-bottom: 1rem; }
.form-thanks p { color: #bbb; font-size: 1.05rem; line-height: 1.6; max-width: 30rem; margin: 0 auto 2rem; }
.again-btn {
    border: 1px solid #444; color: #ccc; padding: .9rem 1.5rem; min-height: 44px;
    font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; transition: border-color .2s, color .2s;
}
.again-btn:hover { border-color: #fff; color: #fff; }
#form-status.error { padding: .9rem 1rem; border: 1px solid #7f1d1d; background: rgba(248,113,113,.08); }
.form-note { margin-top: 1rem; font-size: .75rem; color: #666; line-height: 1.5; }
.form-note a { text-decoration: underline; color: #999; }
.form-actions { text-align: center; padding-top: 1rem; }
.submit-btn {
    background: #fff; color: #000;
    padding: 1.1rem 4rem; min-height: 52px; width: 100%;
    font-family: var(--font-art); font-weight: 800; font-size: 1.15rem; text-transform: uppercase;
    transition: background .2s, opacity .2s;
}
.submit-btn:hover { background: #ccc; }
.submit-btn[disabled] { opacity: .5; cursor: wait; }
#form-status { margin-top: 1.25rem; min-height: 1.5em; font-size: .95rem; }
#form-status.success { color: #4ade80; }
#form-status.error { color: #f87171; }

/* ---------- Footer ---------- */
.fork-footer {
    position: relative; z-index: 5;
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 4rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 1400px; margin: 0 auto; }
.footer-company { font-family: var(--font-art); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
.footer-company span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: #9ca3af; }
.footer-claim { color: #6b7280; font-size: .85rem; line-height: 1.7; max-width: 22rem; }
.footer-legal { margin-top: 1.25rem; font-style: normal; color: #6b7280; font-size: .8rem; line-height: 1.7; }
.footer-legal a { color: #9ca3af; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: .8rem; margin-bottom: 1.25rem; color: #fff; letter-spacing: .18em; }
.footer-link {
    display: block; color: #888; font-size: .85rem; padding: .45rem 0;
    text-transform: uppercase; letter-spacing: .05em; transition: color .3s, padding-left .3s;
}
.footer-link:hover { color: #fff; padding-left: 10px; }
.footer-bottom {
    max-width: 1400px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: .75rem;
    font-size: .7rem; text-transform: uppercase; color: #555; letter-spacing: .2em;
}

/* ---------- Privacy modal ---------- */
.privacy-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.95);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s;
}
.privacy-modal-overlay.active { opacity: 1; visibility: visible; transition: opacity .4s; }
.privacy-content {
    position: relative; width: calc(100% - 24px); max-width: 800px;
    max-height: calc(var(--vh) * 88);
    display: flex; flex-direction: column;
    background: var(--bg-3); border: 1px solid #333;
    padding: 2rem 1.25rem 1.25rem;
}
.privacy-content h2 { font-size: 1.6rem; margin-bottom: 1rem; padding-right: 2.5rem; }
.close-btn { position: absolute; top: .5rem; right: .75rem; color: #fff; font-size: 2.25rem; line-height: 1; width: 44px; height: 44px; }
.legal-text-scroll { overflow-y: auto; padding-right: .5rem; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.legal-text-scroll h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; font-size: .95rem; color: #fff; margin: 1.5rem 0 .5rem; border-bottom: 1px solid #333; padding-bottom: .5rem; }
.legal-text-scroll p { font-size: .9rem; color: #aaa; line-height: 1.6; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 768px) {
    .site-nav { padding: 1.75rem 2.5rem; }
    .site-nav.is-scrolled { padding: 1rem 2.5rem; }
    .logo-box { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
    .brand-name { display: block; }
    .nav-links { display: flex; }
    .menu-trigger { display: none; }

    .hero-title { font-size: clamp(5rem, 9vw, 10rem); }

    .intro { padding: 8rem 0 3rem; }
    .fork-path { height: 300px; }

    .digital { min-height: 100vh; display: flex; align-items: center; padding: 5rem 0; }
    .digital-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
    .digital-media { order: 0; height: 80vh; }
    .digital-desc { font-size: 1.25rem; }

    .assembly { padding: 0; min-height: 100vh; }
    .assembly-head { position: absolute; top: 2.5rem; left: 0; right: 0; mix-blend-mode: difference; }
    .slice-container { height: 100vh; gap: 10px; }

    .memory { display: flex; flex-direction: column; padding: 3rem 0 5rem; }
    .memory-header { margin-bottom: 2.5rem; }
    /* naslov u jednom redu da videi stanu na ekran kad se klikne Films */
    #memory-title br { display: none; }
    .video-list { gap: 1.5rem; padding: 0 2.5rem; max-width: min(1200px, 150vh); }
    .play-btn { width: 96px; height: 96px; }
    /* Desktop: filmovi jedan uz drugog, ispod njih reelsi centrirani */
    .video-list { max-width: min(1500px, 190vh); gap: 2.5rem; }
    .video-films.films-2, .video-films.films-4 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .video-films.films-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .video-films.films-1 { max-width: min(1100px, 150vh); margin: 0 auto; width: 100%; }
    .video-films .play-btn { width: 80px; height: 80px; }
    .video-reels, .video-reels.reels-1 { display: flex; justify-content: center; gap: 1.5rem; }
    .video-reels .video-item.is-reel, .video-reels:not(.reels-1) .video-item.is-reel { width: min(300px, 24vw); margin: 0; }
    .video-reels .play-btn, .video-reels:not(.reels-1) .play-btn { width: 64px; height: 64px; }
    .play-triangle { border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; margin-left: 6px; }

    .archive { padding: 8rem 0; }
    .archive-head { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 2.5rem; margin-bottom: 5rem; }
    .archive-head p { text-align: right; }
    .gallery-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; padding: 0 1vw; }
    .g-item { grid-column: span 4; aspect-ratio: auto; height: 50vh; }
    .g-item.wide { grid-column: span 8; aspect-ratio: auto; }
    .g-item.tall { grid-row: span 2; height: calc(100vh + 1.5rem); }
    .archive-overlay { padding: 1.5rem; transform: translateY(100%); transition: transform .4s; }
    .archive-overlay span { font-size: 1.875rem; }
    .g-item:hover .archive-overlay, .g-item:focus-within .archive-overlay { transform: none; }

    .immersive-panel img { object-fit: contain; }

    .contact { min-height: 100vh; align-items: center; padding: 6rem 2rem; }
    .contact-form { gap: 3rem; }
    .field input, .field textarea, .field select { font-size: 1.1rem; padding: 1.1rem 0; }
    .submit-btn { width: auto; font-size: 1.25rem; }

    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }

    .privacy-content { padding: 3rem; }
    .privacy-content h2 { font-size: 1.875rem; }
}

/* =========================================================
   JEZICI
   ========================================================= */
/* Dugi naslovi (njemački, francuski…) se lome umjesto da izlaze preko ruba */
h1, h2, h3, .section-title, .digital-title { overflow-wrap: break-word; }
.digital-title, .section-title, .uppercase-title { text-transform: uppercase; }
.contact-head h2, .archive-head h2, .immersive-overlay h2, .form-thanks h3, .privacy-content h2,
.archive-overlay span, .footer-col h4, .legal-text-scroll h3 { text-transform: uppercase; }

.nav-right { display: flex; align-items: center; gap: .6rem; }

/* Izbornik jezika u navigaciji */
.lang-switch { position: relative; }
.lang-current {
    display: flex; align-items: center; gap: .45rem;
    min-height: 44px; padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.35); color: #fff;
    font-size: .72rem; font-weight: 600; letter-spacing: .15em;
    transition: border-color .2s, background .2s;
}
.lang-current:hover, .lang-switch.open .lang-current { border-color: #fff; background: rgba(255,255,255,.06); }
.lang-caret {
    width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.lang-switch.open .lang-caret { transform: translateY(1px) rotate(-135deg); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
    list-style: none; margin: 0; padding: .4rem 0; min-width: 190px;
    background: rgba(8,8,8,.97); border: 1px solid #2a2a2a;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.lang-menu a {
    display: flex; align-items: center; gap: .9rem;
    padding: .7rem 1.1rem; min-height: 44px;
    font-size: .9rem; color: #bbb; transition: background .15s, color .15s;
}
.lang-menu a span { width: 1.8rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: #666; }
.lang-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu a[aria-current] { color: #fff; }
.lang-menu a[aria-current] span { color: #fff; }
.lang-menu a[aria-current]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Jezici u mobilnom izborniku */
.mobile-langs { display: flex; gap: .5rem; margin-top: 2.5rem; opacity: 0; transition: opacity .4s .45s; }
.mobile-menu.active .mobile-langs { opacity: 1; }
.mobile-langs a {
    min-width: 48px; min-height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #333; color: #888; font-size: .75rem; font-weight: 600; letter-spacing: .12em;
}
.mobile-langs a[aria-current] { border-color: #fff; color: #fff; }

/* Prozor za odabir jezika (kad jezik preglednika nije prepoznat) */
.lang-picker {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    background: rgba(5,5,5,.88);
    -webkit-backdrop-filter: blur(16px) grayscale(1); backdrop-filter: blur(16px) grayscale(1);
    opacity: 0; transition: opacity .5s;
}
.lang-picker.visible { opacity: 1; }
.lang-picker-inner {
    width: 100%; max-width: 460px;
    transform: translateY(16px); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.lang-picker.visible .lang-picker-inner { transform: none; }
.lang-picker .logo-box { margin-bottom: 2rem; }
/* Naslov se izmjenjuje na svih 5 jezika */
.lang-picker-title { position: relative; height: 2.6em; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; margin-bottom: 1.75rem; color: #fff; }
.lang-picker-title span { position: absolute; left: 0; top: 0; opacity: 0; animation: lpTitle 12.5s infinite; }
.lang-picker-title span:nth-child(2) { animation-delay: 2.5s; }
.lang-picker-title span:nth-child(3) { animation-delay: 5s; }
.lang-picker-title span:nth-child(4) { animation-delay: 7.5s; }
.lang-picker-title span:nth-child(5) { animation-delay: 10s; }
@keyframes lpTitle {
    0% { opacity: 0; transform: translateY(10px); }
    4%, 18% { opacity: 1; transform: none; }
    22%, 100% { opacity: 0; transform: translateY(-10px); }
}
.lang-picker-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #262626; }
.lang-picker-list li { border-bottom: 1px solid #262626; }
.lang-picker-list a {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 1.05rem .25rem; min-height: 56px;
    transition: padding .3s cubic-bezier(.2,.8,.2,1), background .3s;
}
.lp-name { font-family: var(--font-art); font-weight: 700; font-size: clamp(1.35rem, 5.5vw, 1.75rem); color: #fff; }
.lp-code { font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: #555; transition: color .3s; }
.lang-picker-list a:hover, .lang-picker-list a:focus-visible { padding-left: 1rem; padding-right: 1rem; background: #fff; outline: none; }
.lang-picker-list a:hover .lp-name, .lang-picker-list a:focus-visible .lp-name { color: #000; }
.lang-picker-list a:hover .lp-code, .lang-picker-list a:focus-visible .lp-code { color: #000; }

/* Traka s ponudom jezika (npr. engleski preglednik, a posjetitelj iz Hrvatske) */
.lang-suggest {
    position: fixed; z-index: 9000;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: .9rem;
    padding: 1.1rem 1.25rem;
    background: rgba(10,10,10,.96); border: 1px solid #333;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0,0,0,.6);
    transform: translateY(140%); opacity: 0;
    transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.lang-suggest.visible { transform: none; opacity: 1; }
.lang-suggest p { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.lang-suggest-actions { display: flex; gap: .6rem; }
.lang-suggest .ls-yes, .lang-suggest .ls-other-btn {
    min-height: 44px; padding: .65rem 1rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid #444; color: #bbb; transition: background .2s, color .2s, border-color .2s;
}
.lang-suggest .ls-yes { flex: 1; background: #fff; color: #000; border-color: #fff; }
.lang-suggest .ls-yes:hover { background: #ddd; }
/* „Drugi jezik ▾” — izbornik se otvara prema gore */
.ls-other { position: relative; flex: 1; display: flex; }
.lang-suggest .ls-other-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .55rem; white-space: nowrap; }
.lang-suggest .ls-other-btn:hover, .ls-other.open .ls-other-btn { border-color: #888; color: #fff; }
.ls-other.open .lang-caret { transform: translateY(1px) rotate(-135deg); }
.ls-menu {
    position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 100%;
    list-style: none; margin: 0; padding: .4rem 0;
    background: rgba(8,8,8,.98); border: 1px solid #2a2a2a;
    box-shadow: 0 -12px 40px rgba(0,0,0,.6);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.ls-other.open .ls-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.ls-menu button {
    width: 100%; display: flex; align-items: center; gap: .9rem;
    padding: .7rem 1.1rem; min-height: 44px; text-align: left;
    font-size: .9rem; color: #bbb; white-space: nowrap;
    transition: background .15s, color .15s;
}
.ls-menu button:hover, .ls-menu button:focus-visible { background: rgba(255,255,255,.08); color: #fff; outline: none; }
.ls-code { width: 1.8rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: #666; }

@media (min-width: 768px) {
    .lang-suggest {
        left: 50%; right: auto; bottom: 24px; width: auto; max-width: 640px;
        transform: translate(-50%, 140%);
        flex-direction: row; align-items: center; gap: 1.5rem; padding: 1rem 1rem 1rem 1.5rem;
    }
    .lang-suggest.visible { transform: translate(-50%, 0); }
    .lang-suggest .ls-yes, .ls-other { flex: none; }
    .lang-suggest p { white-space: nowrap; }
    .digital-title { font-size: clamp(3.5rem, 6vw, 7rem); }
    .lang-current { padding: .45rem .75rem; min-height: 36px; }
}
@media (max-width: 380px) {
    .menu-trigger, .lang-current { padding-left: .6rem; padding-right: .6rem; letter-spacing: .1em; }
}

/* =========================================================
   PROBNA SVIJETLA VERZIJA (body.theme-mix, link ?tema=svijetla)
   Naslovnica, filmovi i galerija ostaju tamni (kino), a "O nama" i upitnik
   su na toploj bjelokosti s elegantnim serifnim naslovima.
   ========================================================= */
.theme-mix { --ivory: #f4efe7; --ivory-2: #ebe4d8; --ink: #1c1a17; --ink-2: #5f574d; --ink-3: #8e8579; --line-l: #d8cfc1; }
.theme-mix .digital, .theme-mix .contact { background: var(--ivory) !important; color: var(--ink); border-top-color: var(--line-l); }
.theme-mix .digital .tag, .theme-mix .contact .tag { color: var(--ink-2); border-color: var(--ink-3); background: transparent; }
.theme-mix .digital-title, .theme-mix .contact-head h2 {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
    text-transform: none; letter-spacing: -.01em; color: var(--ink);
}
.theme-mix .digital-title { font-size: clamp(3.2rem, 15vw, 7.5rem); line-height: .95; }
.theme-mix .contact-head h2 { font-size: clamp(2.8rem, 12vw, 5.5rem); line-height: 1; }
.theme-mix .digital-desc { color: var(--ink-2); }
.theme-mix .rule { background: var(--line-l); }
.theme-mix .digital-media { border-color: var(--line-l); box-shadow: 0 30px 60px -30px rgba(28,26,23,.35); }
.theme-mix .contact-head p { color: var(--ink-3); }

/* Upitnik na svijetlom */
.theme-mix .form-section legend { color: var(--ink); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; text-transform: none; font-size: 1.7rem; letter-spacing: 0; }
.theme-mix .sec-num { color: var(--ink-3); }
.theme-mix .form-section + .form-section { border-top-color: var(--line-l); }
.theme-mix .field label { color: var(--ink-2); }
.theme-mix .field .opt { color: var(--ink-3); }
.theme-mix .field .req, .theme-mix .required-note { color: var(--ink-3); }
.theme-mix .field input, .theme-mix .field textarea, .theme-mix .field select {
    color: var(--ink); border-bottom-color: #cbbfae; color-scheme: light;
}
.theme-mix .field input::placeholder, .theme-mix .field textarea::placeholder { color: #a79d90; }
.theme-mix .field select.empty, .theme-mix .field input[type="date"].empty { color: #a79d90; }
.theme-mix .field input:focus, .theme-mix .field textarea:focus, .theme-mix .field select:focus { border-bottom-color: var(--ink); }
.theme-mix .field.invalid input, .theme-mix .field.invalid textarea, .theme-mix .field.invalid select { border-bottom-color: #b3261e; }
.theme-mix .field select {
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
}
.theme-mix .field select option { background: #fff; color: var(--ink); }
.theme-mix .section-note, .theme-mix .field-hint { color: var(--ink-3); }
.theme-mix .check-row { color: var(--ink-2); }
.theme-mix .check-row input { accent-color: var(--ink); }
.theme-mix .submit-btn { background: var(--ink); color: var(--ivory); }
.theme-mix .submit-btn:hover { background: #000; }
.theme-mix .form-note { color: var(--ink-3); }
.theme-mix .form-note a { color: var(--ink-2); }
.theme-mix #form-status.error { color: #b3261e; border-color: #e3b4ae; background: #fbeeec; }
.theme-mix #form-status.success { color: #1e7b45; }
.theme-mix .form-thanks { border-color: #b9d8c4; background: #eef6f0; }
.theme-mix .form-thanks h3 { color: var(--ink); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; text-transform: none; }
.theme-mix .form-thanks p { color: var(--ink-2); }
.theme-mix .thanks-check { border-color: #1e7b45; color: #1e7b45; }
.theme-mix .again-btn { border-color: var(--line-l); color: var(--ink-2); }
.theme-mix .again-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Prekidač teme u navigaciji (sunce = prebaci na svijetlu, mjesec = prebaci na tamnu) */
.theme-toggle {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.35); color: #fff; flex-shrink: 0;
    transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle .ico-moon { display: none; fill: currentColor; stroke: none; }
.theme-mix .theme-toggle .ico-sun { display: none; }
.theme-mix .theme-toggle .ico-moon { display: block; }
@media (min-width: 768px) { .theme-toggle { width: 36px; height: 36px; } }
@media (max-width: 380px) { .theme-toggle { width: 40px; } }
/* Glatki prijelaz boja kad se prebaci tema */
.theme-switching .digital, .theme-switching .contact, .theme-switching .digital *, .theme-switching .contact * {
    transition: background-color .6s ease, color .6s ease, border-color .6s ease !important;
}

/* Poštuj korisnike koji ne žele animacije */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
