/* SVAN. Visual Studio — styles */
:root {
  --ink: #19221b;
  --night: #121a15;
  --cream: #f5f4ee;
  --sand: #ebe9e0;
  --olive: #e3e8dc;
  --line: #d6dbd0;
  --muted: #687369;
  --gold: #d8b18a;
  --gold-light: #efcdaa;
  --width: 1200px;
  --font: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold-light); color: var(--night); }
.container { width: min(var(--width), calc(100% - 56px)); margin-inline: auto; }
.section { padding-block: clamp(86px, 9vw, 132px); }
[id] { scroll-margin-top: 75px; }
.skip-link { position: fixed; left: 15px; top: -100px; z-index: 999; background: #fff; padding: 12px; }
.skip-link:focus { top: 10px; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 115; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--gold); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 110; color: #f8f7f1; transition: background .3s, border-color .3s; border-bottom: 1px solid #ffffff15; }
.header.is-scrolled, .header:has(.nav.is-open) { background: #151e17ed; backdrop-filter: blur(14px); border-color: #ffffff22; }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 30px; font-weight: 800; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.wordmark span, .footer-logo span { color: var(--gold); }
.wordmark small { margin-left: 18px; font-size: 10px; font-weight: 750; letter-spacing: .22em; opacity: .75; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 650; }
.nav > a { transition: opacity .2s; }
.nav > a:not(.nav-cta) { opacity: .88; }
.nav > a:hover { opacity: 1; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px; border: 1px solid #ffffff65; border-radius: 30px; }
.menu-toggle { display: none; }

/* Shared typography and buttons */
.kicker { margin: 0; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; font-weight: 760; color: #7e8a7f; }
.kicker-light { color: #e7c5a0; }
.section-title { margin: 18px 0 0; font-weight: 590; font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.048em; line-height: 1.09; }
.section-title em { font-style: normal; font-weight: 550; color: #946e4c; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 46px; margin-bottom: 42px; }
.section-description { max-width: 370px; font-size: 15px; line-height: 1.78; color: #637067; margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 22px; border: 1px solid transparent; border-radius: 100px; font-weight: 750; font-size: 12px; line-height: 1.1; letter-spacing: .07em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--night); }
.button-gold:hover { background: var(--gold-light); }
.button-outline { border-color: #ffffff84; color: #fff; background: #ffffff12; }
.button-outline:hover { background: #ffffff25; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #314035; }

/* Hero */
.hero { min-height: 100svh; position: relative; overflow: hidden; background: var(--night); color: #f7f5ed; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { transform: scale(1.08); }
.hero-image img { object-position: center 50%; filter: saturate(.88) contrast(1.04); }
.hero-shade { background: linear-gradient(90deg, #0c130dd9 0%, #0d140eb3 37%, #0e160f33 100%), linear-gradient(0deg, #0c130dbf 0%, transparent 48%, #0c130d44 100%); }
.hero-inner { position: relative; min-height: 100svh; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-top: 138px; padding-bottom: 116px; }
.hero-copy { max-width: 780px; }
.hero h1 { font-size: clamp(56px, 7vw, 100px); line-height: 1.025; letter-spacing: -.052em; font-weight: 610; margin: 23px 0 26px; }
.hero h1 span { display: block; color: var(--gold-light); }
.hero-lead { margin: 0; max-width: 430px; font-size: 16px; line-height: 1.8; color: #e4e6df; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-aside { align-self: end; padding: 22px 0 4px 21px; border-left: 1px solid #ffffff60; min-width: 182px; }
.hero-aside span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .76; }
.hero-aside p { margin: 8px 0 0; line-height: 1.3; font-size: 17px; }
.scroll-hint { position: absolute; bottom: 30px; left: max(28px, calc((100% - var(--width))/2)); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f6f4ea; z-index: 5; }
.scroll-hint span { margin-left: 12px; font-size: 22px; }

/* Intro and services */
.intro { padding: 48px 0; background: var(--sand); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 7%; }
.intro-quote { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.35; font-weight: 530; letter-spacing: -.035em; }
.intro-quote em { font-style: normal; color: #a27a55; }
.intro-text { margin: 0; color: #68736a; line-height: 1.85; max-width: 425px; font-size: 14px; }
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 26px 22px 28px; min-height: 274px; display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line); background: #fbfaf6; transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px #1b2b1b12; }
.service-number { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8b947f; }
.service-card h3 { margin: 32px 0 15px; font-weight: 600; font-size: 27px; letter-spacing: -.04em; line-height: 1.13; }
.service-card p { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.8; color: #68756a; }

/* Scroll-film: photos stay fixed while the text advances. */
.scroll-film { position: relative; background: var(--night); color: #f5f4ed; }
.film-screen { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #141d16; }
.film-image { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .85s ease, transform 1.4s ease; }
.film-image.is-active { opacity: 1; transform: scale(1.01); }
.film-image img { filter: saturate(.85) contrast(1.02) brightness(.8); }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #08120bd6, #08120b3b 82%), linear-gradient(0deg, #08120bb8, transparent 62%); }
.film-number { position: absolute; right: max(28px, calc((100% - var(--width))/2)); top: 115px; display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .15em; z-index: 5; }
.film-number i { width: 54px; height: 1px; background: var(--gold); }
.film-chapters { position: relative; margin-top: -100svh; pointer-events: none; }
.film-chapter { height: 100svh; display: flex; align-items: flex-end; padding: 90px max(28px, calc((100% - var(--width))/2)); }
.film-caption { width: min(100%, 560px); padding: 32px; border: 1px solid #ffffff26; background: #101912ad; backdrop-filter: blur(12px); border-radius: 25px; pointer-events: auto; }
.film-caption > span { color: var(--gold-light); letter-spacing: .15em; text-transform: uppercase; font-size: 11px; font-weight: 730; }
.film-caption h2 { font-weight: 570; letter-spacing: -.048em; font-size: clamp(43px, 5.8vw, 76px); line-height: 1.06; margin: 15px 0 18px; }
.film-caption p { font-size: 15px; line-height: 1.8; color: #dce2d9; max-width: 415px; margin: 0; }

/* Portfolio */
.portfolio { background: #eeece5; }
.portfolio-grid { display: grid; grid-template-columns: 1.12fr .88fr; grid-auto-rows: 265px; gap: 16px; }
.photo-tile { appearance: none; border: 0; padding: 0; text-align: left; position: relative; border-radius: 22px; overflow: hidden; background: #d3d7cc; color: #fff; }
.photo-tile-large { grid-row: span 2; }
.photo-tile img { transition: transform .6s ease; filter: saturate(.9); }
.photo-tile:hover img { transform: scale(1.035); }
.photo-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0a150abb, transparent 54%); }
.photo-tile > span { position: absolute; z-index: 2; bottom: 22px; left: 22px; right: 22px; }
.photo-tile small { display: block; color: #e9c3a0; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; margin-bottom: 7px; }
.photo-tile strong { display: block; letter-spacing: -.025em; font-size: 23px; font-weight: 600; }

/* Story */
.about { background: var(--olive); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-copy > p:not(.kicker) { max-width: 550px; color: #58675a; line-height: 1.85; font-size: 15px; }
.about-copy .about-signoff { color: #26382c !important; font-weight: 750; margin-top: 25px; }
.acronym { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 44px; }
.acronym > div { border-top: 1px solid #acb8aa; padding-top: 18px; }
.acronym b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.acronym span { display: block; margin-top: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; color: #607063; }
.about-picture { position: relative; min-height: 640px; margin: 0; overflow: hidden; border-radius: 28px; background: #516653; }
.about-picture img { filter: saturate(.85); }
.about-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #10190c9e, transparent 45%); }
.about-picture figcaption { position: absolute; bottom: 25px; left: 26px; z-index: 2; color: #fff; font-size: 14px; }

/* Process and contact */
.process { position: relative; overflow: hidden; background: var(--night); color: #f5f2eb; }
.process-image, .process-shade { position: absolute; inset: 0; }
.process-image img { filter: saturate(.65) brightness(.62); }
.process-shade { background: linear-gradient(90deg, #0e170eeb 0%, #0f180ecb 62%, #10180da3 100%); }
.process-grid { display: grid; position: relative; grid-template-columns: 1fr 1fr; gap: 80px; }
.process .section-title { color: #f5f2eb; }
.process-copy > p:last-child { color: #c6cdc4; line-height: 1.8; max-width: 460px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 18px 0 20px; border-bottom: 1px solid #f2ede631; display: flex; align-items: start; gap: 22px; }
.steps li > span { padding-top: 5px; font-size: 11px; color: var(--gold-light); }
.steps h3 { margin: 0 0 7px; font-size: 21px; font-weight: 600; }
.steps p { margin: 0; font-size: 14px; line-height: 1.7; color: #c2c9be; }
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: start; }
.contact-copy > p:not(.kicker) { max-width: 430px; color: #68756a; line-height: 1.78; font-size: 15px; }
.contact-copy .email { display: inline-block; margin-top: 24px; font-size: clamp(21px, 2.9vw, 35px); font-weight: 600; letter-spacing: -.04em; overflow-wrap: anywhere; }
.contact-copy .contact-location { font-size: 12px !important; margin-top: 22px; }
.contact-form { padding: 32px; background: #fffdf9; border: 1px solid var(--line); border-radius: 25px; }
.contact-form h3 { font-weight: 600; letter-spacing: -.04em; font-size: 30px; margin: 0 0 6px; }
.contact-form > p { color: #6b786c; margin: 0 0 24px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { font-size: 12px; letter-spacing: .03em; color: #536355; font-weight: 700; }
.form-grid .wide { grid-column: span 2; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; margin-top: 8px; min-height: 48px; padding: 13px 14px; color: var(--ink); border: 1px solid #d6ddd2; border-radius: 12px; background: #fff; font-size: 16px; }
.form-grid textarea { resize: vertical; }
.contact-form .button { margin-top: 22px; }
.contact-form small { display: block; color: #788477; line-height: 1.6; margin-top: 15px; }
.form-message { min-height: 1em; color: #35533b !important; font-size: 12px !important; margin-top: 14px !important; }
.footer { background: #101813; color: #f3f3eb; padding: 55px 0 70px; }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.footer-logo { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.07em; }
.footer p { color: #bfc8b9; font-size: 13px; margin: 10px 0 0; }
.footer nav { display: flex; gap: 25px; font-size: 12px; }
.footer small { color: #aeb8ab; font-size: 11px; }

/* Full-screen photo viewer */
.lightbox { position: fixed; inset: 0; border: 0; padding: 20px; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: #0a100df0; color: white; }
.lightbox::backdrop { background: #0a100df0; }
.lightbox-inner { display: grid; place-items: center; height: 100%; position: relative; }
.lightbox-inner img { max-width: min(100%, 1400px); max-height: calc(100dvh - 125px); width: auto; height: auto; object-fit: contain; }
.lightbox-inner p { align-self: start; text-align: center; font-size: 13px; color: #e4e5dc; }
#photoClose { position: absolute; z-index: 2; top: 0; right: 0; width: 48px; height: 48px; font-size: 30px; color: white; background: #ffffff29; border: 1px solid #ffffff44; border-radius: 50%; }

/* Reveal only when animations are supported and running. */
.js:not(.reduce-motion) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.js:not(.reduce-motion) .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .nav { gap: 18px; }
  .wordmark small { display: inline; margin-left: 12px; font-size: 9px; letter-spacing: .15em; }
  .hero h1 { font-size: clamp(54px, 7.3vw, 86px); }
  .hero-aside { display: none; }
  .about-grid { gap: 38px; }
}
@media (max-width: 800px) {
  .header-row { min-height: 70px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid #ffffff88; border-radius: 50%; background: #0f180ecc; color: white; }
  .menu-toggle span { display: block; height: 2px; width: 18px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; left: 16px; right: 16px; top: 73px; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 5px; background: #132016f5; border: 1px solid #ffffff22; border-radius: 18px; box-shadow: 0 12px 30px #00000040; }
  .nav.is-open { display: flex; }
  .nav > a { min-height: 42px; display: flex; align-items: center; }
  .nav .nav-cta { justify-content: center; margin-top: 5px; }
  .intro-inner, .about-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 26px; }
  .service-card h3 { margin-top: 16px; }
  .section-top { display: block; }
  .section-description { margin-top: 20px; }
  .about-picture { min-height: 490px; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 700px) {
  html { -webkit-text-size-adjust: 100%; }
  .container { width: calc(100% - 36px); }
  .section { padding-block: 82px; }
  .wordmark { font-size: 29px; }
  .hero, .hero-inner { min-height: 100svh; }
  .hero-image img { object-position: center 44%; }
  .hero-shade { background: linear-gradient(90deg, #0c130dc9, #0d140e42), linear-gradient(0deg, #091109d9, transparent 56%, #0d130d4d); }
  .hero-inner { align-items: center; padding-top: 112px; padding-bottom: 112px; }
  .hero h1 { font-size: clamp(44px, 11.5vw, 62px); letter-spacing: -.042em; line-height: 1.065; }
  .hero-lead { font-size: 14px; line-height: 1.75; max-width: 34ch; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .button { padding: 12px 14px; font-size: 11px; }
  .scroll-hint { left: 18px; bottom: 28px; }
  .intro { padding: 38px 0; }
  .intro-quote { font-size: 27px; }
  .section-title { font-size: clamp(35px, 9vw, 48px); line-height: 1.12; }
  .film-screen { height: 100svh; }
  .film-chapters { margin-top: -100svh; }
  .film-chapter { height: 100svh; padding: 92px 18px 55px; }
  .film-number { top: 91px; right: 20px; }
  .film-shade { background: linear-gradient(0deg, #08120be0 0%, #08120b22 73%); }
  .film-caption { width: 100%; padding: 20px; border-radius: 19px; background: #0c160ed1; }
  .film-caption h2 { font-size: clamp(31px, 8.4vw, 43px); line-height: 1.09; }
  .film-caption p { font-size: 13px; line-height: 1.65; }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 265px; gap: 12px; }
  .photo-tile-large { grid-row: span 1; }
  .photo-tile { border-radius: 18px; }
  .photo-tile > span { left: 18px; bottom: 16px; }
  .photo-tile strong { font-size: 21px; }
  .about-picture { min-height: 440px; border-radius: 20px; }
  .about-picture figcaption { bottom: 18px; left: 19px; }
  .acronym { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 32px; }
  .acronym b { font-size: 34px; }
  .acronym span { font-size: 9px; letter-spacing: .03em; }
  .process-grid { gap: 24px; }
  .contact-form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .contact-form .button { width: 100%; }
  .footer { padding: 42px 0 58px; }
}
@media (max-width: 375px) {
  .container { width: calc(100% - 28px); }
  .hero h1 { font-size: clamp(40px, 11vw, 46px); }
  .hero-actions .button { font-size: 10px; padding: 12px; }
  .film-caption h2 { font-size: 30px; }
  .film-caption p { font-size: 12.5px; }
}
@media (max-height: 680px) and (max-width: 700px) {
  .hero-inner { align-items: flex-start; padding-top: 120px; }
  .film-caption h2 { font-size: 30px; margin-block: 10px; }
  .film-chapter { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .film-image { transform: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}


/* Final refinements: legibility, touch targets and image treatment. */
html { scroll-padding-top: 80px; }
body { text-rendering: optimizeLegibility; }
.wordmark, .footer-logo { text-rendering: geometricPrecision; }
.photo-tile:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.photo-tile img { object-position: center; }
.about-picture img { filter: saturate(1.04) contrast(1.035); }
.film-image img { object-position: center; }
.contact-form label { display: block; }
.contact-form label:focus-within { color: #244a33; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (hover: none) { .button:hover, .service-card:hover { transform: none; } .photo-tile:hover img { transform: none; } }
@media (max-width: 700px) {
  .hero-actions .button { min-height: 46px; }
  .film-chapter { min-height: 100svh; }
  .film-caption { -webkit-backdrop-filter: blur(8px); }
  .email { overflow-wrap: anywhere; }
  #photoClose { top: 10px; right: 10px; }
}

/* Kontakt: minimalna dopuna bez mijenjanja postojećeg rasporeda. */
.contact-form .button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.contact-form small a { color: #3f5b43; text-decoration: underline; text-underline-offset: 3px; }
.turnstile-box { margin-top: 20px; min-height: 0; }
.turnstile-box[hidden] { display: none; }
.spam-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; left: -10000px !important; }
.form-message { line-height: 1.6; }
.form-message.is-error { color: #9a3d33 !important; }
.form-message.is-success { color: #246541 !important; }

/* Keep the brand descriptor visible and balanced on very narrow phones. */
@media (max-width: 380px) {
  .wordmark small { margin-left: 9px; font-size: 8px; letter-spacing: .09em; }
}

/* Keep the brand descriptor visible and balanced on very narrow phones. */
@media (max-width: 380px) {
  .wordmark small { margin-left: 9px; font-size: 8px; letter-spacing: .09em; }
}

/* Keep the brand descriptor visible and balanced on very narrow phones. */
@media (max-width: 380px) {
  .wordmark small { margin-left: 9px; font-size: 8px; letter-spacing: .09em; }
}

/* Keep the brand descriptor visible and balanced on very narrow phones. */
@media (max-width: 380px) {
  .wordmark small { margin-left: 9px; font-size: 8px; letter-spacing: .09em; }
}
