/* Biro Andreev — tamna, grafička varijanta: gravura, crveni akcenat, uski grotesk + mono */
:root {
  --bg: #0d0d0c;
  --bg-2: #161614;
  --bg-3: #20201d;
  --ink: #ebe8e1;
  --ink-2: #b9b5ac;
  --muted: #7d7a72;
  --line: #2c2c29;
  --line-2: #45443f;
  --accent: #ec4a31;
  --accent-dark: #c4301c;
  --pad: clamp(16px, 3.4vw, 48px);
  --max: 1600px;
  --header: 64px;
  --slant: clamp(28px, 5vw, 84px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --head-bg: rgba(13, 13, 12, .86);
  --plate: #0d0d0c;   /* crna ploča ispod naslova preko slika */
  --plate-ink: #ebe8e1;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); }
/* zrno papira / gravure preko celog sajta */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; font-stretch: 72%; letter-spacing: -0.02em; line-height: .95; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* mono oznake */
.link, .btn, .site-nav, .langs, .chip, .pager small, .pager-all, .idx, .cut-label,
.contact-form label, .card-year, .facts dt, .team small {
  font-family: var(--mono); font-stretch: 100%; letter-spacing: .04em;
}
.idx { display: block; font-size: 12px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }

.link { font-size: 12px; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.link:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 500; line-height: 1; text-transform: uppercase;
  padding: 17px 24px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; transition: background .2s, color .2s;
}
.btn::after { content: "→"; font-size: 15px; transition: transform .2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--pad); background: var(--head-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  view-transition-name: header;
}
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; gap: clamp(20px, 2.4vw, 36px); font-size: 12px; text-transform: uppercase; }
.site-nav a { position: relative; padding-block: 6px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .25s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { right: 0; }
.site-nav a[aria-current] { color: var(--accent); }
.langs { display: inline-flex; gap: 14px; font-size: 12px; color: var(--muted); }
.langs a[aria-current] { color: var(--ink); }
.langs a:hover { color: var(--accent); }
.head-langs { justify-self: end; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
  .menu-btn span:not(.sr) { display: block; height: 1.5px; background: var(--ink); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; gap: 2px;
    padding: 20px var(--pad) 32px; background: var(--bg); border-bottom: 1px solid var(--line);
    font: 400 44px/1.05 var(--font); font-stretch: 72%; text-transform: none; letter-spacing: -0.01em;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .site-nav a::after { display: none; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- section heads (shared) ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2, .h-big, .page-head h1, .home-contact h2 { font-size: clamp(44px, 6.5vw, 112px); }

/* naslov ispunjen stilizovanom slikom (gravura kroz slova) */
.tex { color: var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .tex {
    background: var(--tex) center 35% / cover, var(--ink);
    background-blend-mode: luminosity;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .tex .muted { color: transparent; opacity: .55; }
}

/* ---------- prelaz: kosa traka sa stilizovanom slikom ---------- */
.cut {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(300px, 62svh, 720px); margin-top: clamp(72px, 9vw, 140px);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  background: var(--bg-2);
}
.cut-img { position: absolute; inset: -14% 0; z-index: -1; will-change: transform; }
.cut-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.08); }
.cut::after { /* tamni rub odozdo da tekst ostane čitljiv */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 13, 12, .55) 100%);
}
.cut-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: calc(var(--slant) + clamp(16px, 2.6vw, 40px)); }
.cut-label {
  position: absolute; top: calc(var(--slant) + 16px); left: var(--pad);
  font-size: 12px; text-transform: uppercase; background: var(--accent); color: #fff; padding: 6px 10px;
}
/* naslov kao isečak: crna ploča preko gravure */
.cut-title {
  font-size: clamp(60px, 13vw, 230px); line-height: .86; letter-spacing: -0.035em; color: var(--plate-ink);
  background: var(--plate); padding: .1em .16em .04em .1em; margin-left: -.1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cut .link { position: absolute; right: var(--pad); bottom: calc(var(--slant) + 24px); background: var(--plate); color: var(--plate-ink); padding: 10px 12px; border: 0; }
.cut .link:hover { background: var(--accent); color: #fff; }
.cut + section, .cut + .dark { margin-top: calc(var(--slant) * -1 + 1px); }

/* zaglavlje unutrašnjih stranica */
.page-cut { margin-top: 0; height: clamp(360px, 72svh, 820px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-cut .cut-label { top: 24px; }
.page-cut .cut-title { font-size: clamp(56px, 11vw, 190px); display: inline; }
.page-cut .cut-in { justify-content: flex-end; }
.page-cut .cut-in > .cut-title { max-width: 100%; }
.page-cut + section, .after-cut { margin-top: 0; }
.page-head.after-cut { padding-top: clamp(24px, 4vw, 56px); }
div.after-cut { height: clamp(48px, 7vw, 104px); }

/* ---------- home ---------- */
.hero { position: relative; isolation: isolate; min-height: max(560px, calc(100svh - var(--header))); display: flex; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; filter: contrast(1.1); }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 13, 12, .2) 38%, transparent 60%, rgba(13, 13, 12, .75) 100%);
}
.hero-in { width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(32px, 6vw, 88px); }
.hero h1 { font-size: clamp(52px, 13.5vw, 230px); }
.hero h1 span { display: inline-block; white-space: nowrap; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(24px, 3vw, 40px) 0; padding-top: 16px; border-top: 1px solid rgba(235, 232, 225, .35); }
.hero-meta p { max-width: 38ch; font-size: clamp(16px, 1.3vw, 19px); margin: 0; }
.arrow { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--accent); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s, background .2s, color .2s; flex: none; }
.arrow:hover { transform: translateY(4px); background: var(--accent); color: #fff; }

.portfolio { padding-top: clamp(80px, 10vw, 160px); scroll-margin-top: var(--header); }
/* dve pozicije na kojima se smenjuju renderi */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.duo-b { margin-top: clamp(64px, 12vw, 220px); }
.duo-frame { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.duo-b .duo-frame { aspect-ratio: 4 / 5; }
.ds { position: absolute; inset: 0; z-index: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.ds.out { z-index: 1; clip-path: inset(0); transition: none; }
.ds.on { z-index: 2; clip-path: inset(0); }
.ds img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.ds.on img { transform: scale(1); }
.ds-cap { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 24px); display: grid; gap: 2px; padding: 14px 18px 12px 16px; background: var(--plate); color: var(--plate-ink); }
.ds-cap b { font-weight: 400; font-stretch: 80%; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.05; letter-spacing: -0.01em; }
.ds-cap small { font: 11px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ds:hover .ds-cap b { color: var(--accent); }
.duo-meta { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.duo-count { font: 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.duo-bar { flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.duo-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.duo-slot.run .duo-bar i { animation: duo-bar var(--dur, 6s) linear forwards; }
.duo-slot.paused .duo-bar i { animation-play-state: paused; }
@keyframes duo-bar { to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-b { margin-top: 24px; }
  .duo-b .duo-frame { aspect-ratio: 4 / 3; }
}

.dark { background: var(--bg-2); color: var(--ink); }
.dark-in { padding-block: clamp(96px, 11vw, 168px) clamp(72px, 9vw, 140px); }
.statement { font-stretch: 80%; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.12; letter-spacing: -0.015em; max-width: 24ch; }
.dark .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line-2); }
.dark .facts div { padding-top: 20px; }
.dark .facts dt { font-family: var(--font); font-stretch: 72%; font-size: clamp(52px, 6.4vw, 108px); line-height: 1; letter-spacing: -0.03em; }
.dark .facts div:first-child dt { color: var(--accent); }
.dark .facts dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .dark .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.home-houses { padding-top: clamp(96px, 10vw, 150px); }
.home-houses .lead { color: var(--ink-2); margin-bottom: clamp(32px, 4vw, 56px); }
.hgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hcard span { display: block; margin-top: 10px; font-size: 15px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.hpic { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.hpic img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); transition: filter .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
.hcard:hover img { filter: none; transform: scale(1.03); }
.hcard:hover span { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.home-contact { padding-block: clamp(96px, 10vw, 160px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.home-contact h2 { grid-column: 1 / -1; margin-bottom: 24px; }
.home-contact .btn { justify-self: start; }
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; }
.office h3 { font-size: 32px; margin-bottom: 12px; }
.office h3 .muted { font-size: .6em; }
.office p { color: var(--ink-2); font-size: 15px; margin-bottom: .8em; }
.office a:hover { color: var(--accent); }
@media (max-width: 760px) { .home-contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .offices { grid-template-columns: 1fr; } }

/* ---------- inner page heads ---------- */
.page-head { padding-top: clamp(40px, 7vw, 104px); padding-bottom: clamp(32px, 5vw, 64px); }
.lead { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; max-width: 46ch; }
.page-head .lead { margin-top: 24px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); padding-bottom: clamp(64px, 8vw, 120px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { display: block; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.92); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.card:hover .card-img img { transform: scale(1.04); filter: none; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 17px; transition: border-color .2s; }
.card-year { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card:hover .card-title { color: var(--accent); }
.card:hover .card-meta { border-color: var(--accent); }

/* ---------- project page ---------- */
.project-hero a { display: block; height: calc(100svh - var(--header)); max-height: 960px; min-height: 360px; background: var(--bg-2); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); align-items: start; }
.project-head h1 { font-size: clamp(44px, 6.5vw, 112px); }
.project-head .facts { margin: 0; border-top: 1px solid var(--ink); }
.project-head .facts div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.project-head .facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; line-height: 2; }
.project-head .facts dd { margin: 0; }
@media (max-width: 860px) { .project-head { grid-template-columns: minmax(0, 1fr); } }
.renders { display: grid; gap: clamp(16px, 2vw, 28px); }
.renders figure, .dgrid figure, .house figure { margin: 0; }
.renders a, .dgrid a, .house a { display: block; cursor: zoom-in; overflow: hidden; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.drawings { margin-top: clamp(64px, 9vw, 128px); }
.drawings h2, .team h2 { font-size: clamp(36px, 4.5vw, 72px); padding-top: 16px; border-top: 1px solid var(--ink); margin-bottom: 32px; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.dgrid a { background: #f1efea; padding: clamp(8px, 1.5vw, 20px); }
@media (max-width: 760px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; margin-top: clamp(64px, 9vw, 128px); padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--ink); font-size: clamp(20px, 2vw, 28px); font-stretch: 80%; }
.pager small { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .right { text-align: right; }
.pager a:hover { color: var(--accent); }
.pager-all { font-size: 12px; text-transform: uppercase; border-bottom: 1px solid currentColor; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } .pager-all { display: none; } }

/* ---------- houses ---------- */
.houses { display: grid; gap: clamp(72px, 10vw, 144px); padding-bottom: clamp(64px, 8vw, 120px); counter-reset: h; }
.house { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; scroll-margin-top: calc(var(--header) + 24px); }
.house.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.house.flip .house-main { order: 2; }
.house-main img { width: 100%; }
.house-text { border-top: 1px solid var(--ink); padding-top: 16px; }
.house-text::before { counter-increment: h; content: counter(h, decimal-leading-zero); display: block; font: 12px/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.house-text h2 { font-size: clamp(36px, 4vw, 64px); margin-bottom: 14px; }
.house-text p { color: var(--ink-2); max-width: 36ch; }
.house-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.house-extras figure:only-child { grid-column: 1 / -1; }
.house-extras img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.house-extras figure:only-child img { aspect-ratio: auto; }
@media (max-width: 860px) {
  .house, .house.flip { grid-template-columns: minmax(0, 1fr); }
  .house.flip .house-main { order: 0; }
}

/* ---------- about ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.two-col p:not(.lead) { color: var(--ink-2); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.band { margin: 0 0 clamp(56px, 8vw, 112px); }
.band img { width: 100%; max-height: 78vh; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
blockquote { margin: 0; font-stretch: 80%; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.015em; padding-top: 20px; border-top: 2px solid var(--accent); }
blockquote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
/* tri stilizovana kadra stepeništa */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 clamp(56px, 8vw, 112px); }
.strip div { overflow: hidden; aspect-ratio: 4 / 3; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.strip div:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .strip { grid-template-columns: minmax(0, 1fr); } .strip div:not(:first-child) { display: none; } }
.team { padding-bottom: clamp(64px, 8vw, 120px); }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.team li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.team li span { font-size: 18px; }
.team small { color: var(--muted); font-size: 12px; text-transform: uppercase; }
@media (max-width: 860px) { .team ul { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .team li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- contact page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); padding-top: clamp(40px, 7vw, 104px); padding-bottom: clamp(64px, 9vw, 128px); }
.contact .lead { margin-top: 24px; color: var(--ink-2); }
.page-cut + .contact { padding-top: clamp(24px, 4vw, 56px); }
.page-cut + .contact .lead { margin-top: 0; }
.contact .offices { margin-top: 48px; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact-form { display: grid; gap: 22px; align-content: start; border-top: 1px solid var(--ink); padding-top: 24px; }
.contact-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 480px) { .contact-form .row { grid-template-columns: minmax(0, 1fr); } }
.contact-form label { display: grid; gap: 6px; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: 400 17px/1.5 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0; border-radius: 0; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.contact-form .hp { display: none; }
.form-status { font-size: 15px; min-height: 1.5em; margin: 0; }
.form-status.ok { color: #8fc39a; }
.form-status.err { color: var(--accent); }

/* ---------- 404 ---------- */
.nf { position: relative; isolation: isolate; min-height: calc(100svh - var(--header)); display: flex; align-items: flex-end; overflow: hidden; }
.nf-art { position: absolute; inset: 0; z-index: -1; }
.nf-art img { width: 100%; height: 100%; object-fit: cover; }
.nf-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13, 13, 12, .85)); }
.nf-in { width: 100%; padding-bottom: clamp(32px, 5vw, 72px); }
.nf h1 { display: inline-block; font-size: clamp(120px, 28vw, 420px); line-height: .82; color: var(--plate-ink); background: var(--plate); padding: .06em .12em 0 .06em; margin: 0 0 24px -.06em; }

/* ---------- footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 24px;
  padding: 40px var(--pad) 48px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.f-col { display: flex; flex-direction: column; gap: 4px; }
.f-col strong { color: var(--ink); font-weight: 500; }
.f-col a:hover { color: var(--accent); }
.site-footer .langs a[aria-current] { color: var(--ink); }
.f-end { align-items: flex-end; text-align: right; gap: 10px; }
@media (max-width: 860px) { .site-footer { grid-template-columns: 1fr 1fr; } .f-end { align-items: flex-start; text-align: left; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 9, .97); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; background: #fff; }
.lightbox img.photo { background: none; }
.lightbox figcaption { color: #bbb; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: 300 44px/1 var(--font); cursor: pointer; padding: 12px 18px; opacity: .75; }
.lightbox button:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { max-width: 100vw; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- pojavljivanje pri skrolu ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .cut .cut-title { transform: translateY(40%); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .8s; }
.js .cut.in .cut-title { transform: none; opacity: 1; }

/* ---------- prelaz između stranica (View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(0,0,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .cut .cut-title { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ================= SVETLA VARIJANTA (izabrana 8. 11. 2026) =================
   <html data-theme="light"> postavlja build.py; bez tog atributa sajt je taman */
:root[data-theme="light"] {
  --bg: #f6f5f1;
  --bg-2: #e9e7e1;
  --bg-3: #dedbd3;
  --ink: #131312;
  --ink-2: #45433f;
  --muted: #85827a;
  --line: #d9d6cf;
  --line-2: #b8b4ab;
  --head-bg: rgba(246, 245, 241, .88);
  color-scheme: light;
}
/* uvod, tamna traka sa činjenicama i podnožje ostaju tamni — ritam crno/belo */
[data-theme="light"] .hero,
[data-theme="light"] .dark,
[data-theme="light"] .site-footer {
  --bg: #0d0d0c; --bg-2: #161614; --ink: #ebe8e1; --ink-2: #b9b5ac; --muted: #7d7a72; --line: #2c2c29; --line-2: #45443f;
  background: var(--bg); color: var(--ink);
}
[data-theme="light"] .dark { background: var(--bg-2); }
[data-theme="light"] body::after { opacity: .05; mix-blend-mode: multiply; }
/* gravura kroz slova: na beloj pozadini obrnuta (tamne linije) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  [data-theme="light"] .tex { background: var(--tex) center 35% / cover, #fff; background-blend-mode: difference; -webkit-background-clip: text; background-clip: text; }
}
[data-theme="light"] .card-img img { filter: none; }
[data-theme="light"] .dgrid a { background: #fff; }

/* ================= ISPRAVKE POSLE PRIMEDBI KOLEGA (9. 11. 2026) =================
   1) svetao početak: tekst na svetloj pozadini, slika ispod njega, bez tamnog sloja
   2) naslovi manji (oko trećine), 3) naslovi bez slike u slovima, 4) više podataka uz render */
[data-theme="light"] .hero {
  --bg: #f6f5f1; --bg-2: #e9e7e1; --ink: #131312; --ink-2: #45433f; --muted: #85827a; --line: #d9d6cf; --line-2: #b8b4ab;
  display: block; min-height: 0; overflow: visible; background: var(--bg); color: var(--ink);
}
[data-theme="light"] .hero-in { padding-top: clamp(28px, 5vw, 72px); }
[data-theme="light"] .hero-meta { border-top-color: var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
[data-theme="light"] .hero-art { position: static; z-index: auto; }
[data-theme="light"] .hero-art::after { display: none; }
[data-theme="light"] .hero-art img { height: auto; max-height: 82vh; aspect-ratio: 2 / 1; object-position: 50% 60%; filter: none; }
.tex, [data-theme="light"] .tex { background: none; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
.tex .muted, [data-theme="light"] .tex .muted { color: var(--muted); opacity: 1; }

.hero h1 { font-size: clamp(44px, 8vw, 132px); }
.sec-head h2, .h-big, .page-head h1, .home-contact h2, .project-head h1 { font-size: clamp(36px, 4.6vw, 76px); }
.cut-title { font-size: clamp(44px, 8vw, 136px); }
.page-cut .cut-title { font-size: clamp(42px, 7vw, 120px); }
.statement { font-size: clamp(24px, 2.8vw, 42px); }
.dark .facts dt { font-size: clamp(40px, 4.6vw, 76px); }
.drawings h2, .team h2 { font-size: clamp(30px, 3.4vw, 52px); }
.house-text h2 { font-size: clamp(30px, 3vw, 46px); }
blockquote { font-size: clamp(21px, 2vw, 30px); }

.ds-cap { max-width: min(520px, calc(100% - 24px)); }
.ds-cap i { display: block; font-style: normal; font-size: 14px; line-height: 1.45; color: var(--plate-ink); opacity: .85; margin-top: 6px; }
.ds-cap em { font: 11px/1.6 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
@media (max-width: 600px) { .ds-cap small { font-size: 10px; } }
.project-desc { margin-top: clamp(16px, 2vw, 28px); color: var(--ink-2); max-width: 40ch; }
/* poslednja slika na naslovnoj, odmah iznad podnožja */
/* zaglavlje sa slikom u punoj boji (Kuće: Hvar u tačkicama) */
.cut-color .cut-img img { filter: none; object-position: 50% 35%; }
/* poster sa sopstvenim natpisom: bez paralakse, vidi se od vrha; oznaka broja desno */
.cut-poster .cut-img { inset: 0; transform: none !important; }
.cut-poster .cut-img img { object-position: 50% 0; }
.cut-poster::after { background: none; }
.cut-poster .cut-label { left: auto; right: var(--pad); }
.page-cut.cut-poster { height: min(56.25vw, 76svh); min-height: 300px; }
@media (max-width: 700px) {
  .page-cut.cut-poster { min-height: 250px; }
  .cut-poster .cut-img img { object-position: 0 0; }
}
/* poster čiji je natpis desno (Zgrade: „BEOGRAD“): oznaka broja levo, na telefonu poravnato desno */
.poster-text-right .cut-label { left: var(--pad); right: auto; }
@media (max-width: 700px) { .poster-text-right .cut-img img { object-position: 100% 0; } }
.home-end { margin: 0; }
.home-end img { width: 100%; height: auto; mix-blend-mode: multiply; } /* belo nebo se stapa sa pozadinom strane */
