/* ==========================================================================
   BAUMASTER — gradimo udobje
   ========================================================================== */
:root {
  --ink: #15120e;
  --ink-2: #221d17;
  --ink-3: #3a3229;
  --paper: #efe8dc;
  --paper-2: #e5dbca;
  --paper-3: #d8cbb4;
  --wood: #b86b2a;
  --wood-2: #d99a5b;
  --wood-3: #f0c48f;
  --moss: #2e3a2b;
  --mute: #7c7064;
  --line: rgba(21, 18, 14, .14);
  --line-inv: rgba(239, 232, 220, .16);

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Geist", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1560px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--wood); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -.01em; }
.h1 { font-size: clamp(3.2rem, 8.6vw, 11rem); }
.h2 { font-size: clamp(2.8rem, 7.4vw, 7.8rem); }
.h3 { font-size: clamp(2rem, 4.2vw, 4rem); }
.eyebrow {
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--wood); transform: rotate(45deg); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 36ch; }
.muted { color: var(--mute); }
.num { font-family: var(--f-display); font-variation-settings: "wdth" 80; font-weight: 600; font-feature-settings: "tnum"; }

/* line-mask reveal */
.line { display: block; overflow: hidden; padding-block: .04em; margin-block: -.04em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); }
.js .is-in .line > span, .js .line.is-in > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js .is-in .line:nth-child(2) > span { transition-delay: .08s; }
.js .is-in .line:nth-child(3) > span { transition-delay: .16s; }
.js .is-in .line:nth-child(4) > span { transition-delay: .24s; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 26px; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .16s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--wood); transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn .ico {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  transition: transform .45s var(--ease-out);
}
.btn .ico svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost .ico { background: currentColor; }
.btn--ghost .ico svg { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: none; }
  .btn:hover { color: var(--paper); }
  .btn:hover .ico { transform: rotate(-45deg); background: var(--paper); color: var(--wood); }
}

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-u:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--paper);
  transition: transform .5s var(--ease-out), color .3s ease, background-color .3s ease;
}
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr.is-solid { background: rgba(239, 232, 220, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.page--light .hdr { color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 38px; }
.logo__t { display: flex; flex-direction: column; line-height: 1; }
.logo__t b { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 88; letter-spacing: .12em; font-size: 19px; }
.logo__t small { font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500;
  border-radius: 100px; transition: background-color .2s ease;
}
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; background: var(--wood); transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); } }
.hdr__cta { display: flex; align-items: center; gap: 18px; }
.hdr__tel { font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.hdr__tel i { width: 8px; height: 8px; border-radius: 50%; background: #5fbf6a; box-shadow: 0 0 0 4px rgba(95,191,106,.22); }
.hdr .btn { height: 46px; padding-left: 20px; font-size: 14px; }
.hdr .btn .ico { width: 30px; height: 30px; }
.hdr:not(.is-solid) .btn { --bg: var(--paper); --fg: var(--ink); }
.page--light .hdr:not(.is-solid) .btn { --bg: var(--ink); --fg: var(--paper); }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; z-index: 120; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.burger span:nth-child(1) { top: 20px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-drawer), visibility 0s linear .6s;
}
.menu-open .mnav { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-drawer); }
.menu-open .hdr { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line-inv); overflow: hidden; }
.mnav li a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 68; text-transform: uppercase; font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1; }
.mnav li a small { font-family: var(--f-body); font-size: 12px; opacity: .5; }
.mnav li a { transform: translateY(100%); transition: transform .6s var(--ease-out); }
.menu-open .mnav li a { transform: none; }
.menu-open .mnav li:nth-child(2) a { transition-delay: .04s } .menu-open .mnav li:nth-child(3) a { transition-delay: .08s }
.menu-open .mnav li:nth-child(4) a { transition-delay: .12s } .menu-open .mnav li:nth-child(5) a { transition-delay: .16s }
.menu-open .mnav li:nth-child(6) a { transition-delay: .2s }
.mnav__foot { display: grid; gap: 6px; font-size: 15px; }
.mnav__foot a { opacity: .8; }

@media (max-width: 1080px) {
  .nav, .hdr__tel { display: none; }
  .burger { display: block; }
}
@media (max-width: 560px) { .hdr .btn { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--paper); background: var(--ink);
  display: grid; grid-template-rows: 1fr auto; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,18,14,.55) 0%, rgba(21,18,14,0) 26%),
    linear-gradient(0deg, rgba(21,18,14,.92) 0%, rgba(21,18,14,.45) 38%, rgba(21,18,14,.05) 70%);
}
.hero__body { position: relative; align-self: end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(20px, 3vw, 36px); }
.hero__title { font-size: clamp(3.2rem, 9.4vw, 13rem); flex: 1; }
.hero__title .line > span { white-space: nowrap; }
@media (max-width: 860px) { .hero__title { font-size: 14.6vw; } }
.hero__title .serif { font-size: .62em; line-height: 1; color: var(--wood-3); display: inline-block; transform: translateY(-.08em); }
.hero__side { max-width: 34ch; font-size: 16px; line-height: 1.5; opacity: .9; }
.hero__side p { margin: 0 0 22px; }
.hero__bar {
  position: relative; border-top: 1px solid var(--line-inv);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-block: 18px 22px; font-size: 13px;
}
.hero__bar div { display: flex; flex-direction: column; gap: 2px; }
.hero__bar b { font-weight: 500; font-size: 14.5px; }
.hero__bar span { opacity: .55; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.hero__scroll { justify-self: end; align-items: flex-end; }
.hero__scroll i { display: block; width: 1px; height: 38px; background: var(--line-inv); position: relative; overflow: hidden; margin-top: 4px; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 860px) {
  .hero__top { flex-direction: column; align-items: start; }
  .hero__bar { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none !important; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--wood); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0,0,0,.15); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track > div { display: flex; align-items: center; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 68; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.8rem); padding: 14px 0; white-space: nowrap; }
.marquee svg { width: 22px; height: 22px; margin: 0 28px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(88px, 12vw, 190px); position: relative; }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--dark .muted { color: #a3968a; }
.sec--sand { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 100px); }
.sec__head .eyebrow { grid-column: 1 / -1; }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; } }

/* intro manifesto */
.intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.manifest { font-family: var(--f-display); font-weight: 600; font-variation-settings: "wdth" 82; font-size: clamp(1.9rem, 3.7vw, 3.6rem); line-height: 1.04; letter-spacing: -.01em; margin: 26px 0 0; text-transform: none; }
.manifest .serif { font-weight: 400; color: var(--wood); }
.js .manifest .w { opacity: .14; transition: opacity .3s ease; }
.js .manifest .w.on { opacity: 1; }
.intro__fig { position: relative; margin: 0; }
.intro__fig .img { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.intro__fig img { width: 100%; height: 115%; object-fit: cover; }
.intro__fig figcaption { display: flex; justify-content: space-between; font-size: 13px; margin-top: 12px; color: var(--mute); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 130px); }
.fact { padding: 24px 24px 0 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 24px; }
.fact .num { font-size: clamp(2.8rem, 5.2vw, 5.4rem); line-height: .9; display: block; }
.fact .num sup { font-size: .36em; vertical-align: top; margin-left: 4px; color: var(--wood); }
.fact p { margin: 12px 0 0; font-size: 14.5px; color: var(--mute); max-width: 24ch; }
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
  .intro__fig { max-width: 520px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- build sequence (sticky) ---------- */
.build { background: var(--ink); color: var(--paper); position: relative; }
.build__pin { height: 100svh; display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding-top: var(--header-h); padding-bottom: 32px; }
.build__txt { position: relative; }
.build__txt .h2 { margin: 18px 0 28px; }
.build__steps { position: relative; min-height: 190px; }
.build__step { position: absolute; inset: 0 auto auto 0; max-width: 38ch; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.build__step.on { opacity: 1; transform: none; }
.build__step .num { color: var(--wood-2); font-size: 15px; letter-spacing: .1em; }
.build__step h3 { font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 80; font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 6px 0 10px; line-height: 1; }
.build__step p { margin: 0; color: #b9ab9c; }
.build__rail { display: flex; gap: 6px; margin-top: 30px; }
.build__rail i { flex: 1; height: 3px; background: var(--line-inv); position: relative; overflow: hidden; border-radius: 2px; }
.build__rail i b { position: absolute; inset: 0; background: var(--wood-2); transform-origin: left; transform: scaleX(0); }
.build__stage { position: relative; height: min(78svh, 760px); border-radius: 6px; overflow: hidden; background: var(--ink-2); }
.build__stage figure { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); }
.build__stage figure:first-child { clip-path: inset(0); }
.build__stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.build__stage figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(21,18,14,.7); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.build__count { position: absolute; top: 16px; right: 18px; font-family: var(--f-display); font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(3rem, 7vw, 7rem); line-height: .8; color: var(--paper); mix-blend-mode: difference; z-index: 3; }
.build__mobile { display: none; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .build__pin { display: none; }
  .build__mobile { display: block; padding-block: 96px; }
  .build__mobile .h2 { margin: 16px 0 36px; }
  .bm { display: grid; gap: 36px; }
  .bm figure { margin: 0; }
  .bm img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
  .bm h3 { font-family: var(--f-display); font-variation-settings: "wdth" 80; font-size: 1.7rem; margin: 14px 0 6px; line-height: 1.05; }
  .bm .num { color: var(--wood-2); font-size: 13px; }
  .bm p { margin: 0; color: #b9ab9c; }
}

/* ---------- services list ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 80px 1.1fr 1fr 56px; gap: 24px; align-items: center;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.svc__row .num { font-size: 15px; color: var(--mute); }
.svc__row h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 68; text-transform: uppercase; font-size: clamp(2.2rem, 5.4vw, 5.6rem); line-height: .9; transition: transform .5s var(--ease-out), color .3s ease; }
.svc__row p { margin: 0; color: var(--mute); max-width: 42ch; font-size: 15.5px; }
.svc__row .arr { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s ease, border-color .3s ease, transform .5s var(--ease-out); }
.svc__row .arr svg { width: 18px; }
.svc__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc__row:hover h3 { transform: translateX(18px); color: var(--wood); }
  .svc__row:hover .arr { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }
}
.svc__float { position: fixed; top: 0; left: 0; z-index: 50; width: 0; height: 0; pointer-events: none; will-change: transform; }
.svc__float-in {
  position: absolute; width: 340px; aspect-ratio: 4/5; left: -170px; top: -212px;
  border-radius: 4px; overflow: hidden; opacity: 0; transform: scale(.92);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.svc__float.on .svc__float-in { opacity: 1; transform: none; }
.svc__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.svc__float img.on { opacity: 1; }
@media (max-width: 860px) {
  .svc__row { grid-template-columns: 1fr 96px; gap: 10px 16px; }
  .svc__row .num { grid-column: 1; }
  .svc__row h3 { grid-column: 1; }
  .svc__row p { grid-column: 1 / -1; }
  .svc__row .arr { display: none; }
  .svc__thumb { display: block; grid-column: 2; grid-row: 1 / 3; width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
}
@media (hover: none) { .svc__float { display: none; } }

/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-inv); }
.proc__i { padding: 34px 28px 40px 0; border-bottom: 1px solid var(--line-inv); position: relative; }
.proc__i:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line-inv); }
.proc__i .num { font-size: clamp(3.4rem, 6vw, 6rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--wood-2); display: block; }
.proc__i h3 { font-family: var(--f-display); font-variation-settings: "wdth" 80; font-weight: 700; font-size: 1.7rem; margin: 26px 0 10px; }
.proc__i p { margin: 0; color: #b0a293; font-size: 15.5px; max-width: 36ch; }
.proc__i svg { position: absolute; top: 34px; right: 28px; width: 34px; height: 34px; color: var(--wood-2); }
@media (max-width: 960px) {
  .proc { grid-template-columns: 1fr 1fr; }
  .proc__i:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .proc__i:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-inv); }
}
@media (max-width: 600px) {
  .proc { grid-template-columns: 1fr; }
  .proc__i:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- projects ---------- */
.proj { display: grid; gap: clamp(90px, 12vw, 180px); }
.pj { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; gap: 24px; }
.pj__media { grid-column: 1 / 9; grid-row: 1 / 3; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16/11; align-self: start; }
.pj__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pj__media .tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; }
.pj__small { grid-column: 10 / 13; grid-row: 1; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.pj__small img { width: 100%; height: 100%; object-fit: cover; }
.pj__body { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.pj__body .num { color: var(--wood); font-size: 15px; }
.pj__body h3 { margin: 10px 0 14px; }
.pj__body p { color: var(--mute); margin: 0 0 24px; }
.pj__spec { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.pj__spec li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pj__spec li span:first-child { color: var(--mute); }
.pj--rev .pj__media { grid-column: 5 / 13; }
.pj--rev .pj__small { grid-column: 1 / 4; }
.pj--rev .pj__body { grid-column: 1 / 5; }
@media (hover: hover) and (pointer: fine) { .pj__media:hover img { transform: scale(1.04); } }
@media (max-width: 960px) {
  .pj, .pj--rev { grid-template-columns: 1fr; }
  .pj__media, .pj--rev .pj__media, .pj__body, .pj--rev .pj__body { grid-column: 1; grid-row: auto; }
  .pj__small { display: none; }
}

/* ---------- tech teaser / layer diagram ---------- */
.tech { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.tech__u { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 66; font-size: clamp(5rem, 13vw, 13rem); line-height: .8; color: var(--wood-2); margin: 20px 0 10px; }
.tech__u small { font-size: .2em; font-variation-settings: "wdth" 90; color: var(--paper); margin-left: .2em; letter-spacing: .02em; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.tabs button { height: 40px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line-inv); font-size: 14px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .tabs button:hover:not([aria-selected="true"]) { border-color: var(--paper); } }
.sec:not(.sec--dark) .tabs button { border-color: var(--line); }
.sec:not(.sec--dark) .tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.layers { position: relative; }
.layers__stack { display: flex; align-items: stretch; height: clamp(300px, 40vw, 480px); perspective: 1400px; }
.layers__stack > div {
  position: relative; flex: none; height: 100%;
  border-radius: 2px; transform-origin: left center;
  transition: margin .8s var(--ease-out), transform .8s var(--ease-out), filter .3s ease, opacity .5s ease;
  box-shadow: inset -1px 0 0 rgba(0,0,0,.25);
}
.layers.is-exploded .layers__stack > div { margin-right: clamp(6px, 1vw, 14px); transform: rotateY(-24deg); }
.layers__stack > div.dim { filter: saturate(.3) brightness(.55); }
.layers__stack > div::after { content: attr(data-n); position: absolute; top: -26px; left: 0; font-size: 11px; font-family: var(--f-body); color: currentColor; opacity: .7; }
.layers__legend { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: l; }
.layers__legend li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-inv); font-size: 15px; cursor: default; transition: color .2s ease; }
.sec:not(.sec--dark) .layers__legend li { border-color: var(--line); }
.layers__legend li b { font-weight: 500; font-feature-settings: "tnum"; }
.layers__legend li i { font-style: normal; opacity: .5; font-size: 12px; padding-top: 2px; }
.layers__legend li.hl { color: var(--wood-2); }
.layers__tot { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 600; }
/* material swatches */
.m-fasada { background: repeating-linear-gradient(90deg, #6d5a45 0 6px, #5b4a38 6px 7px); }
.m-vlakna { background: #c99b63 repeating-linear-gradient(0deg, rgba(90,60,25,.28) 0 1px, transparent 1px 7px); }
.m-steico { background: #a67a47 repeating-linear-gradient(0deg, rgba(60,35,10,.35) 0 1px, transparent 1px 5px); }
.m-osb { background-color: #d7b27a; background-image: radial-gradient(rgba(120,80,30,.55) 1px, transparent 1.6px), radial-gradient(rgba(255,240,210,.5) 1px, transparent 1.6px); background-size: 7px 9px, 11px 6px; }
.m-agepan { background: #7d5b37 repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 4px); }
.m-mavec { background: #ece8e1; }
.m-bruna { background: #c88a4a repeating-linear-gradient(90deg, rgba(90,50,20,.3) 0 2px, transparent 2px 9px, rgba(90,50,20,.15) 9px 10px, transparent 10px 16px); }
.m-folija { background: #3b5d7a; }
.m-les { background: #b98049 repeating-linear-gradient(90deg, rgba(80,45,15,.25) 0 1px, transparent 1px 12px); }
.m-estrih { background: #9d978d radial-gradient(rgba(0,0,0,.2) 1px, transparent 1.5px) 0 0 / 6px 6px; }
.m-parket { background: #8a5a2e repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 14px); }
.m-talno { background: #d7d2c7 repeating-linear-gradient(0deg, #c8553d 0 3px, transparent 3px 14px); }
.m-letve { background: #a9784a repeating-linear-gradient(0deg, transparent 0 16px, rgba(0,0,0,.35) 16px 18px); }
.m-kritina { background: #9d3f24 repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 22px); }
@media (max-width: 960px) { .tech { grid-template-columns: 1fr; } }

/* ---------- craft (mizarstvo) horizontal ---------- */
.craft { overflow: hidden; }
.craft__track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding-inline: var(--gutter); width: max-content; }
.craft__item { flex: none; margin: 0; }
.craft__item .img { display: block; overflow: hidden; border-radius: 4px; height: clamp(280px, 50svh, 560px); aspect-ratio: 3/4; }
.craft__item.w .img { aspect-ratio: 4/3; }
@media (min-width: 901px) {
  .craft { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 8px) 48px; }
  .craft .sec__head { margin-bottom: clamp(24px, 4vh, 48px) !important; }
  .craft .h2 { font-size: clamp(2.6rem, 6vw, 6.4rem); }
}
.craft__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.craft__item figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.craft__item figcaption span { color: #a3968a; }
@media (hover: hover) and (pointer: fine) { .craft__item:hover img { transform: scale(1.05); } }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .craft__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .craft__item { scroll-snap-align: start; }
  .craft__item .img { height: auto; width: 74vw; }
  .craft__item.w .img { width: 86vw; }
}

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.cta__bg { position: absolute; inset: -10% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta__in { position: relative; padding-block: clamp(100px, 14vw, 220px); }
.cta__title { font-size: clamp(3.4rem, 10.5vw, 11.5rem); }
.cta__title .serif { color: var(--wood-3); font-size: .7em; }
.cta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-inv); padding-top: 26px; }
.cta__grid span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 8px; }
.cta__grid a, .cta__grid p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); margin: 0; display: block; }
.cta__grid small { display: block; opacity: .6; font-size: 13px; }
@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cta__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; border-top: 1px solid var(--line-inv); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ftr h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .5; font-weight: 500; margin: 0 0 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.ftr__lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.15; max-width: 18ch; margin: 0; }
.ftr__bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: .6; padding-block: 22px 28px; border-top: 1px solid var(--line-inv); margin-top: 56px; }
.soc { display: flex; gap: 10px; margin-top: 22px; }
.soc a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.soc svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .soc a:hover { background: var(--paper); color: var(--ink); } .ftr ul a:hover { color: var(--wood-2); } }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- sub-page hero ---------- */
.phero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 130px)); padding-bottom: clamp(48px, 6vw, 88px); }
.phero__top { display: grid; grid-template-columns: 1fr minmax(260px, 34ch); gap: 40px; align-items: end; }
.phero .h1 { margin-top: 18px; }
.phero .lead { margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); }
.crumbs a { color: var(--ink); }
@media (max-width: 860px) { .phero__top { grid-template-columns: 1fr; } }

.bigimg { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 21/9; }
.bigimg img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
@media (max-width: 700px) { .bigimg { aspect-ratio: 4/3; } }

/* about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); }
.prose p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.6; }
.prose p:first-child::first-letter { font-family: var(--f-serif); font-size: 4.4em; float: left; line-height: .8; margin: .08em .1em 0 0; color: var(--wood); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { border-top: 2px solid var(--ink); padding-top: 20px; }
.value h3 { font-family: var(--f-display); font-variation-settings: "wdth" 80; font-size: 1.9rem; margin: 10px 0; line-height: 1; }
.value p { margin: 0; color: var(--mute); }
@media (max-width: 860px) { .split, .values { grid-template-columns: 1fr; } }

/* tech page */
.sys { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 90px); padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.sys:first-of-type { border-top: 0; }
.sys h2 { margin: 12px 0 18px; }
.sys p { color: var(--mute); max-width: 44ch; }
.sys__kpi { display: flex; gap: 40px; margin-top: 28px; }
.sys__kpi div span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sys__kpi div b { font-family: var(--f-display); font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.sys .layers__stack { height: clamp(240px, 30vw, 380px); }
@media (max-width: 960px) { .sys { grid-template-columns: 1fr; } }

/* project detail */
.pd-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 48px; }
.pd-meta span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pd-meta b { font-weight: 500; font-size: 17px; }
@media (max-width: 760px) { .pd-meta { grid-template-columns: 1fr 1fr; } }
.pd-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.pd-grid a { display: block; overflow: hidden; border-radius: 4px; position: relative; }
.pd-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pd-grid a:hover img { transform: scale(1.04); } }
.pd-grid .a { grid-column: span 7; aspect-ratio: 4/3; }
.pd-grid .b { grid-column: span 5; aspect-ratio: auto; }
.pd-grid .c { grid-column: span 4; aspect-ratio: 1; }
.pd-grid .d { grid-column: span 12; aspect-ratio: 21/9; }
.pd-grid .e { grid-column: span 6; aspect-ratio: 4/3; }
@media (max-width: 760px) { .pd-grid .a, .pd-grid .b, .pd-grid .c, .pd-grid .e { grid-column: span 12; aspect-ratio: 4/3; } }
.pd-next { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 56px; border-top: 1px solid var(--line); }
.pd-next .h3 { transition: color .3s ease; }
@media (hover: hover) and (pointer: fine) { .pd-next a:hover .h3 { color: var(--wood); } }
.tloris { background: #fff; border-radius: 4px; padding: 24px; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; }
.filters button { height: 42px; padding: 0 18px; border-radius: 100px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.filters button sup { font-size: 10px; opacity: .55; margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.masonry { columns: 4 280px; column-gap: clamp(10px, 1.2vw, 18px); }
.masonry a { display: block; margin-bottom: clamp(10px, 1.2vw, 18px); break-inside: avoid; border-radius: 4px; overflow: hidden; position: relative; background: var(--paper-2); }
.masonry a[hidden] { display: none; }
.masonry img { width: 100%; transition: transform .8s var(--ease-out); }
.masonry a span { position: absolute; left: 10px; bottom: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(21,18,14,.72); color: var(--paper); padding: 5px 9px; border-radius: 100px; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .masonry a:hover img { transform: scale(1.04); } .masonry a:hover span { opacity: 1; transform: none; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(15,12,9,.96); display: grid; grid-template-rows: auto 1fr auto; color: var(--paper); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.lb.on { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.lb__top, .lb__bot { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: 14px; }
.lb__fig { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb__fig img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 2px; transform: scale(.97); opacity: 0; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.lb__fig img.on { transform: none; opacity: 1; }
.lb button.ctl { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: background-color .2s ease; }
.lb button.ctl svg { width: 18px; }
@media (hover: hover) and (pointer: fine) { .lb button.ctl:hover { background: rgba(255,255,255,.1); } }
.lb__nav { display: flex; gap: 8px; }

/* contact */
.kgrid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 100px); }
.kcards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kcard { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.kcard span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 5px; }
.kcard a, .kcard p { font-size: 19px; margin: 0; line-height: 1.45; }
.kcard small { display: block; color: var(--mute); font-size: 13px; }
.form { background: var(--ink); color: var(--paper); border-radius: 6px; padding: clamp(24px, 4vw, 56px); }
.form h2 { margin: 0 0 28px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fgrid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-inv); color: var(--paper);
  font: inherit; font-size: 16px; padding: 26px 0 10px; border-radius: 0; outline: none; transition: border-color .2s ease;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field label { position: absolute; left: 0; top: 26px; font-size: 16px; color: #a3968a; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease-out), color .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--wood-2); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-20px) scale(.75); color: var(--wood-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 100px; border: 1px solid var(--line-inv); font-size: 14px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chips input:checked + span { background: var(--wood-2); color: var(--ink); border-color: var(--wood-2); }
.chips input:focus-visible + span { outline: 2px solid var(--wood-2); outline-offset: 2px; }
.form .btn { margin-top: 28px; --bg: var(--paper); --fg: var(--ink); }
.form__note { font-size: 13px; color: #a3968a; margin-top: 16px; }
.form__ok { display: none; padding: 16px; border-radius: 4px; background: rgba(95,191,106,.14); color: #bfe8c4; margin-top: 18px; }
.map { margin-top: clamp(64px, 8vw, 120px); border-radius: 6px; overflow: hidden; filter: grayscale(.85) contrast(1.05); height: 440px; }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 960px) { .kgrid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .kcard { grid-template-columns: 1fr; gap: 4px; } }

/* legal */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--f-display); font-variation-settings: "wdth" 80; font-size: 1.7rem; margin: 48px 0 12px; }
.legal li, .legal p { color: var(--ink-3); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .line > span, .js [data-reveal] { transform: none !important; }
  .js [data-reveal] { opacity: 1; }
  .js .manifest .w { opacity: 1; }
  .marquee__track { animation-duration: 120s; }
  .hero__scroll i::after { animation: none; }
  .btn::before, .btn .ico, .svc__row h3, .layers__stack > div { transition-duration: .01s !important; }
}

/* fixes */
.menu-open .hdr { z-index: 120; transform: none; }
.menu-open .hdr .btn, .menu-open .hdr .hdr__tel { visibility: hidden; }
@media (max-width: 760px) {
  .filters { position: static; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters button { flex: none; }
}

/* ---------- pravi logo ---------- */
.logo { gap: 12px; }
.logo__mark { width: auto; height: 44px; }
.logo__w { width: auto; height: 30px; }
.logo__w--d { display: none; }
.hdr.is-solid .logo__w--l, .page--light .hdr .logo__w--l { display: none; }
.hdr.is-solid .logo__w--d, .page--light .hdr .logo__w--d { display: block; }
.menu-open .hdr .logo__w--l { display: block; }
.menu-open .hdr .logo__w--d { display: none; }
@media (max-width: 420px) { .logo__mark { height: 36px; } .logo__w { height: 24px; } }
.ftr__logo { width: 220px; height: auto; margin: 0 0 28px -8px; }

/* ---------- hero: preliv dokončanih projektov ---------- */
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroKb 18s linear infinite backwards; }
.hero__slides img:nth-child(1) { animation-delay: -1.2s; }
.hero__slides img:nth-child(2) { animation-delay: 4.8s; }
.hero__slides img:nth-child(3) { animation-delay: 10.8s; }
@keyframes heroKb {
  0% { opacity: 0; transform: scale(1.14); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slides img { animation: none; }
  .hero__slides img:first-child { opacity: 1; }
}
.credit { display: inline-flex; gap: 5px; align-items: baseline; }
.credit b { font-weight: 600; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .credit:hover b { color: var(--wood-2); } }
