/* ==========================================================================
   SK Stroy — Покривни конструкции
   Light premium theme · design tokens
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&family=Inter:wght@300;400;500;600;700;800&family=Alex+Brush&display=swap');

:root{
  --bg:            #f7f3ec;
  --bg-soft:       #f0e9dd;
  --surface:       #ffffff;
  --surface-2:     #fbf8f2;
  --line:          rgba(122,92,38,.13);
  --line-strong:   rgba(150,112,40,.28);

  --gold-deep:     #8a6420;
  --gold:          #b8892f;
  --gold-light:    #dcb766;
  --gold-soft:     rgba(184,137,47,.10);
  --gold-ink:      #8a6420;          /* gold for text on light surfaces */

  --ink:           #1a1611;          /* headings */
  --text:          #3a332a;
  --text-muted:    #6a6152;
  --text-faint:    #978c79;
  --on-media:      #fbf6ea;          /* text over photos / video */

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.76,0,.24,1);

  --shadow-1: 0 1px 2px rgba(60,40,10,.05), 0 10px 26px -14px rgba(60,40,10,.22);
  --shadow-2: 0 2px 6px rgba(60,40,10,.05), 0 28px 60px -28px rgba(60,40,10,.34);
  --shadow-3: 0 50px 110px -40px rgba(50,32,8,.45), 0 16px 34px -16px rgba(50,32,8,.25);
  --shadow-gold: 0 14px 30px -12px rgba(150,105,30,.55);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Soft ambient light across the page (replaces the old floating figures) */
body::before{
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 10%, rgba(220,183,102,.16), transparent 70%),
    radial-gradient(50vw 50vh at 0% 60%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(60vw 40vh at 50% 110%, rgba(220,183,102,.10), transparent 70%);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

section{ position: relative; }

::selection{ background: var(--gold-light); color: var(--ink); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before{
  content: '';
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head{
  max-width: 660px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 14px;
}
.section-head p{
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
  min-height: 48px;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary{
  background: linear-gradient(135deg, #e3c27a, var(--gold) 50%, var(--gold-deep));
  color: #1d1406;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,245,215,.6);
}
.btn-ghost{
  background: rgba(255,255,255,.6);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover{ background: #fff; border-color: var(--gold); }
.btn-outline-gold{
  border: 1.5px solid var(--gold);
  color: var(--gold-ink);
  background: rgba(255,255,255,.5);
}
.btn-outline-gold:hover{ background: var(--gold-soft); }
.btn-sm{ padding: 11px 20px; font-size: 13.5px; min-height: 40px; }

.magnetic{ display: inline-block; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0 0;
  transition: padding .4s var(--ease);
  pointer-events: none;
}
.site-header .header-inner{
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.site-header.is-scrolled{ padding-top: 12px; }
.site-header.is-scrolled .header-inner{
  background: rgba(255,253,249,.78);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 50px -26px rgba(60,40,10,.35), inset 0 1px 0 rgba(255,255,255,.9);
}
.site-header.is-hidden .header-inner{ transform: translateY(calc(-100% - 34px)); }

.brand{ display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark{ width: 42px; height: 42px; flex-shrink: 0; overflow: visible; }
.brand-mark path{
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.15s var(--ease);
}
.brand-mark path.roof-2{ transition-delay: .18s; }
.brand-mark .pane{ fill: var(--gold); stroke: none; opacity: 0; transition: opacity .5s ease; transition-delay: 1s; }
.brand-mark.is-drawn path{ stroke-dashoffset: 0; }
.brand-mark.is-drawn .pane{ opacity: 1; }

.brand-wordmark{ display: flex; flex-direction: column; line-height: 1.05; }
.brand-wordmark .w1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand-wordmark .w1 b{ color: var(--gold-ink); font-weight: 700; }
.brand-wordmark .w2{
  font-size: 9.5px;
  letter-spacing: .19em;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: 3px;
}

.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 2px;
  position: relative;
  transition: color .25s ease;
}
.main-nav a::after{
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1.5px; background: var(--gold);
  transition: right .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.header-call{
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; font-size: 14.5px;
  padding: 10px 8px;
}
.header-call svg{ width: 17px; height: 17px; color: var(--gold); }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.7);
}
.nav-toggle svg{ width: 20px; height: 20px; color: var(--ink); }

.mobile-nav{
  position: fixed; inset: 0; z-index: 600;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease);
}
.mobile-nav.is-open{ opacity: 1; visibility: visible; }
.mobile-nav a{ font-family: var(--font-display); font-size: 30px; color: var(--ink); padding: 14px 0; }
.mobile-nav a:hover{ color: var(--gold-ink); }
.mobile-nav-close{
  position: absolute; top: 24px; right: clamp(16px,5vw,48px);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-close svg{ width: 20px; height: 20px; }
.mobile-nav-call{ margin-top: 20px; }
.mobile-nav .btn{ font-family: var(--font-body); font-size: 16px; padding: 15px 30px; color: #1d1406; }

/* Mobile menu — premium dressing: logo, roof watermark, vertical side lettering */
.mobile-nav{
  overflow: hidden;
  gap: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(220,183,102,.20), transparent 60%),
    radial-gradient(90% 50% at 50% 100%, rgba(184,137,47,.12), transparent 65%),
    var(--bg);
}
.mobile-nav::before{               /* thin gold frame */
  content: ''; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid var(--line-strong); border-radius: 22px;
}
.mn-deco{ position: absolute; inset: 0; pointer-events: none; }
.mn-watermark{
  position: absolute; left: 50%; top: 54%;
  width: 150vw; max-width: 900px; height: auto;
  transform: translate(-50%, -50%) scale(.94);
  opacity: 0; transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}
.mn-watermark path{ fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav.is-open .mn-watermark{ opacity: .13; transform: translate(-50%, -50%) scale(1); }
.mn-side{
  position: absolute; top: 50%;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(13px, 3.6vw, 16px); letter-spacing: .55em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold-ink); opacity: .55;
  display: flex; align-items: center; gap: 14px;
}
.mn-side::before, .mn-side::after{ content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.mn-side::after{ transform: scaleX(-1); }
.mn-side-l{ left: 30px; transform: translate(-50%, -50%) rotate(-90deg); }
.mn-side-r{ right: 30px; transform: translate(50%, -50%) rotate(90deg); font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .42em; opacity: .5; }

.mn-brand{
  position: absolute; top: 26px; left: clamp(26px, 7vw, 48px);
  display: flex; align-items: center; gap: 10px;
}
.mn-brand .brand-mark{ width: 38px; height: 38px; }
.mobile-nav.is-open .mn-brand .brand-mark path{ stroke-dashoffset: 0; }
.mobile-nav.is-open .mn-brand .brand-mark .pane{ opacity: 1; }
.mobile-nav-close{ top: 26px; right: clamp(26px, 7vw, 48px); background: rgba(255,255,255,.55); }

.mobile-nav > a:not(.btn){
  position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 12px;
  font-size: clamp(24px, 4.1vh, 31px);
  padding: clamp(6px, 1.25vh, 12px) 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .7s var(--ease), color .25s ease;
}
.mobile-nav > a:not(.btn) i{
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: 11px; letter-spacing: .12em; color: var(--gold);
  min-width: 18px; text-align: right; transform: translateY(-3px);
}
.mobile-nav.is-open > a:not(.btn){ opacity: 1; transform: none; }
.mobile-nav.is-open > a:nth-of-type(1){ transition-delay: .06s; }
.mobile-nav.is-open > a:nth-of-type(2){ transition-delay: .10s; }
.mobile-nav.is-open > a:nth-of-type(3){ transition-delay: .14s; }
.mobile-nav.is-open > a:nth-of-type(4){ transition-delay: .18s; }
.mobile-nav.is-open > a:nth-of-type(5){ transition-delay: .22s; }
.mobile-nav.is-open > a:nth-of-type(6){ transition-delay: .26s; }
.mobile-nav.is-open > a:nth-of-type(7){ transition-delay: .30s; }
.mobile-nav-call{ position: relative; z-index: 1; margin-top: clamp(14px, 3vh, 28px); }
.mn-foot{
  position: absolute; bottom: 30px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--text-faint);
}
.mn-foot span{ width: 28px; height: 1px; background: var(--line-strong); }
@media (max-height: 640px){ .mn-foot{ display: none; } }

/* Scroll progress: gold brick course + clay tile that drops into the roof */
.tile-defs{ position: absolute; width: 0; height: 0; overflow: hidden; }
.scroll-progress{
  --roof-w: 52px;
  --roof-r: 12px;
  --track-r: calc(var(--roof-r) + var(--roof-w) * .925);
  position: fixed; z-index: 2; top: 0; left: 0; right: 0; height: 0;
  pointer-events: none;
}
.sp-track{
  position: absolute; top: 0; left: 0; right: var(--track-r); height: 3px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(184,137,47,.18) 0 15px, transparent 15px 16.5px) 0 0 / 100% 1px no-repeat;
}
.sp-fill, .sp-bricks{ position: absolute; inset: 0; will-change: transform; }
.sp-fill{ overflow: hidden; transform: translateX(-100%); }
.sp-bricks{
  transform: translateX(100%);
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(247,243,236,.95) 15px 16.5px),
    linear-gradient(180deg, rgba(255,244,214,.6) 0 1px, transparent 1px 2px, rgba(60,36,8,.25) 2px),
    linear-gradient(90deg, var(--gold-deep), var(--gold) 55%, var(--gold-light));
}
.sp-rider{ position: absolute; top: 0; left: 0; right: var(--track-r); height: 0; will-change: transform; }
.sp-hop{ position: absolute; left: -8px; top: -1px; width: 10px; height: 6px; transform-origin: 5px 3px; }
.sp-tile{
  position: absolute; left: 2px; top: -2px; width: 6px; height: 10px;
  transform: rotate(90deg);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.sp-roof{
  position: absolute; top: 3px; right: var(--roof-r);
  width: var(--roof-w); height: calc(var(--roof-w) * 28 / 48);
  overflow: visible;
  transition: filter .6s var(--ease);
}
.sp-rafter{ fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s ease .45s; }
.sp-house{ fill: none; stroke: rgba(184,137,47,.4); stroke-width: 1.1; }
.sp-pane{ fill: rgba(184,137,47,.45); transition: fill .5s ease .45s; }
.sp-tiles rect{ fill: #b45738; stroke: #4a180b; stroke-width: .35; }
.sp-slot{
  fill: rgba(184,137,47,.08); stroke: var(--gold); stroke-width: .55; stroke-dasharray: 1 .9;
  animation: sp-slot 1.8s ease-in-out infinite;
  transition: opacity .25s ease .4s;
}
@keyframes sp-slot{ 0%, 100%{ opacity: .35; } 50%{ opacity: 1; } }
.scroll-progress.is-roofed .sp-slot{ opacity: 0; animation: none; }
.scroll-progress.is-roofed .sp-rafter{ stroke: var(--gold-deep); }
.scroll-progress.is-roofed .sp-pane{ fill: #e9b949; }
.scroll-progress.is-roofed .sp-roof{ animation: sp-roofed 1.4s var(--ease-out) .45s both; }
@keyframes sp-roofed{
  0%{ filter: drop-shadow(0 0 0 rgba(220,183,102,0)); }
  25%{ filter: drop-shadow(0 0 7px rgba(220,183,102,.9)); }
  100%{ filter: drop-shadow(0 0 2px rgba(220,183,102,.3)); }
}
@media (max-width: 860px){ .scroll-progress{ --roof-w: 42px; --roof-r: 8px; } }

/* ==========================================================================
   Cinematic intro — drone montage that morphs into the hero card
   ========================================================================== */
.intro{ display: none; }
html.intro-on .intro{ display: block; }
html.intro-on body{ overflow: hidden; }
.intro{
  position: fixed; inset: 0; z-index: 9000;
  background: #0f0d0a;
  color: var(--on-media);
}
.intro-media{
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh;
  overflow: hidden;
  background: #0f0d0a;
  will-change: left, top, width, height, border-radius;
}
.intro-media video, .intro-media img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.intro-media video{
  transform: scale(1.12);
  animation: intro-push 11s cubic-bezier(.3,.1,.3,1) forwards;
  opacity: 0; transition: opacity .9s ease;
}
.intro.is-playing .intro-media video{ opacity: 1; }
@keyframes intro-push{ to{ transform: scale(1.0); } }
.intro-end{ opacity: 0; transition: opacity .7s ease; }
.intro.is-ending .intro-end{ opacity: 1; }
.intro-shade{
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(10,8,5,.55) 100%),
    linear-gradient(180deg, rgba(10,8,5,.45) 0%, transparent 28%, transparent 62%, rgba(10,8,5,.6) 100%);
  transition: opacity .6s ease;
}
.intro-letterbox{ position: absolute; left: 0; right: 0; height: 9vh; background: #0f0d0a; z-index: 2; transition: transform 1s var(--ease-io); }
.intro-letterbox.top{ top: 0; }
.intro-letterbox.bottom{ bottom: 0; }
.intro.is-playing .intro-letterbox.top{ transform: translateY(-55%); }
.intro.is-playing .intro-letterbox.bottom{ transform: translateY(55%); }

.intro-brand{
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px;
  pointer-events: none;
}
.intro-brand .brand-mark{ width: 64px; height: 64px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.intro-brand .brand-mark path{ stroke: #e8c675; }
.intro-brand .brand-mark .pane{ fill: #e8c675; }
.intro-word{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 10vw, 140px); line-height: .95; letter-spacing: -.01em;
  display: flex; gap: .25em; overflow: hidden; padding: .06em .1em;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.intro-word span{ display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.intro-word span:first-child{ color: #e8c675; font-style: italic; }
.intro.is-in .intro-word span{ transform: none; }
.intro.is-in .intro-word span:last-child{ transition-delay: .12s; }
.intro-tag{
  font-size: clamp(11px, 1.2vw, 13px); font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(251,246,234,.85);
  opacity: 0; transform: translateY(10px);
  transition: opacity 1s ease .5s, transform 1s var(--ease) .5s;
}
.intro.is-in .intro-tag{ opacity: 1; transform: none; }
.intro.is-out .intro-brand{ opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .9s var(--ease); }

.intro-loc{
  position: absolute; z-index: 3; left: clamp(20px, 5vw, 56px); bottom: clamp(26px, 6vh, 56px);
  display: flex; align-items: baseline; gap: 14px;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.intro-loc .n{ font-family: var(--font-display); font-size: 30px; letter-spacing: 0; color: #e8c675; font-style: italic; }
.intro-loc .t{ display: inline-block; transition: opacity .35s ease, transform .5s var(--ease); }
.intro-loc .t.is-swap{ opacity: 0; transform: translateY(8px); }
.intro-bar{
  position: absolute; z-index: 3; right: clamp(20px, 5vw, 56px); bottom: clamp(36px, 6.6vh, 66px);
  width: min(220px, 32vw); height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden;
}
.intro-bar span{ display: block; height: 100%; background: linear-gradient(90deg, #c99a3e, #f1d68f); transform-origin: left; transform: scaleX(0); }
.intro-skip{
  position: absolute; z-index: 4; top: clamp(18px, 4vh, 34px); right: clamp(16px, 4vw, 48px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-media);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease;
}
.intro-skip:hover{ background: rgba(255,255,255,.2); }
.intro-skip svg{ width: 14px; height: 14px; }
.intro.is-out .intro-loc, .intro.is-out .intro-bar, .intro.is-out .intro-skip, .intro.is-out .intro-shade{ opacity: 0; transition: opacity .45s ease; }
.intro.is-out{ background: transparent; }
.intro.is-out .intro-letterbox{ opacity: 0; transition: opacity .4s ease; }

/* ==========================================================================
   Hero — light, 3D stage
   ========================================================================== */
.hero{
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before{
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 78% 40%, rgba(232,198,117,.30), transparent 65%),
    radial-gradient(50% 60% at 10% 10%, #fffdf8, transparent 70%),
    linear-gradient(180deg, #faf6ef 0%, var(--bg) 100%);
}
/* perspective floor grid */
.hero-floor{
  position: absolute; left: -20%; right: -20%; bottom: -8%; height: 55%;
  background-image:
    linear-gradient(rgba(150,112,40,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,112,40,.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
          mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
  animation: floor-move 18s linear infinite;
}
@keyframes floor-move{ to{ background-position: 0 64px, 0 0; } }
.hero-orb{
  position: absolute; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, rgba(232,190,100,.45), transparent 70%);
}
.hero-orb.o1{ width: 520px; height: 520px; right: -120px; top: -80px; animation: orb 16s ease-in-out infinite alternate; }
.hero-orb.o2{ width: 380px; height: 380px; left: 30%; bottom: -160px; opacity: .6; animation: orb 20s ease-in-out infinite alternate-reverse; }
@keyframes orb{ to{ transform: translate3d(-60px, 40px, 0) scale(1.1); } }

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.hero-inner{ max-width: 620px; }
.hero-inner h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-top: 20px;
  text-wrap: balance;
}
.hero-inner h1 em{
  font-style: italic;
  background-image: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 25%, #e3c27a 45%, var(--gold) 65%, var(--gold-deep) 85%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 2.4s var(--ease) .8s;
}
.hero-ready .hero-inner h1 em{ background-position: 0% 0; }
.hero-inner .lead{
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}
.hero-cta{ margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats{
  margin-top: 48px;
  display: flex; flex-wrap: wrap;
  gap: clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.hero-stats .stat b{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat b::after{ content: ''; display: block; width: 18px; height: 2px; margin-top: 6px; background: var(--gold); }
.hero-stats .stat span{ font-size: 12.5px; color: var(--text-muted); letter-spacing: .04em; }

/* 3D stage */
.hero-stage{
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  height: min(640px, 72vh);
  min-height: 460px;
}
.hero-3d{
  --rx: 4deg; --ry: -12deg;
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 1.4s var(--ease);
}
html.intro-on .hero-3d{ --rx: 0deg; --ry: 0deg; }
.hero-card{
  position: absolute; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform-style: preserve-3d;
}
.hero-card img, .hero-card video{ width: 100%; height: 100%; object-fit: cover; }
.hero-card::after{
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  background: linear-gradient(125deg, rgba(255,255,255,.22) 0%, transparent 32%);
}
.hero-card-main{
  left: 12%; right: 4%; top: 2%; bottom: 6%;
  transform: translateZ(0);
}
.hero-card-drone{
  left: 0; bottom: 0; width: 46%; aspect-ratio: 4/3;
  transform: translateZ(90px);
  border: 4px solid #fff;
  opacity: 0; transition: opacity 1s ease .3s;
}
.hero-ready .hero-card-drone{ opacity: 1; }
.hero-card-drone figcaption{
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--on-media); background: rgba(15,12,8,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-card-drone figcaption .dot{ width: 6px; height: 6px; border-radius: 50%; background: #e0563f; animation: pulse-dot 1.8s ease-in-out infinite; }
.hero-chip{
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-2);
  opacity: 0; transition: opacity .9s ease;
}
.hero-ready .hero-chip{ opacity: 1; }
.hero-chip .ic{
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #f3dc9f, var(--gold));
  color: #2a1d06;
}
.hero-chip .ic svg{ width: 20px; height: 20px; }
.hero-chip b{ display: block; font-size: 15px; color: var(--ink); line-height: 1.2; }
.hero-chip span{ display: block; font-size: 11.5px; color: var(--text-muted); }
.hero-chip .stars{ display: flex; gap: 2px; color: var(--gold); }
.hero-chip .stars svg{ width: 12px; height: 12px; }
.chip-guarantee{ right: -2%; top: 8%; transform: translateZ(150px); transition-delay: .45s; }
.chip-rating{ right: 6%; bottom: 14%; transform: translateZ(120px); transition-delay: .6s; }
.chip-float{ animation: chip-float 7s ease-in-out infinite; }
.chip-rating .chip-float{ animation-delay: -3.5s; }
@keyframes chip-float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

.scroll-cue{
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue .line{ width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after{
  content:''; position:absolute; top:-40px; left:0; width:100%; height:40px; background: var(--gold-deep);
  animation: cue-fall 2.2s ease-in-out infinite;
}
@keyframes cue-fall{ 0%{ top: -40px; } 100%{ top: 40px; } }

/* ==========================================================================
   About + before/after
   ========================================================================== */
.about{ padding: clamp(90px, 12vw, 150px) 0 clamp(60px,8vw,110px); }
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-copy h2{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px,3.6vw,42px); color: var(--ink);
  margin-top: 14px; line-height: 1.12; letter-spacing: -.01em;
}
.about-copy p{ color: var(--text-muted); font-size: 16.5px; line-height: 1.8; margin-top: 18px; }
.about-copy p:first-of-type{ margin-top: 14px; }
.about-facts{ margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-facts li{
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--text);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  transition: border-color .4s ease, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.about-facts li:hover{ border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.about-facts svg{ width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.about-visual{ perspective: 1400px; }
.compare{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-3);
  border: 6px solid #fff;
  user-select: none;
  touch-action: pan-y;
}
.compare img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-wrap{ position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 52%); }
.compare-tag{
  position: absolute; top: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  color: var(--ink);
}
.compare-tag.before{ left: 16px; }
.compare-tag.after{ right: 16px; }
.compare-handle{
  position: absolute; top: 0; bottom: 0; left: 52%;
  width: 0; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; z-index: 5;
}
.compare-handle::before{
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: rgba(255,255,255,.95); transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.compare-grip{
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,.45);
}
.compare-grip svg{ width: 15px; height: 15px; color: var(--gold-deep); }
.compare-caption{
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font-size: 12.5px; color: var(--on-media);
  background: rgba(20,16,10,.5); backdrop-filter: blur(8px);
  padding: 9px 13px; border-radius: var(--radius-sm);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{
  padding: clamp(70px,9vw,120px) 0;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.service-card{
  position: relative; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s ease;
}
.service-card::before{
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(220,183,102,.20), transparent 60%);
  opacity: 0; transition: opacity .5s ease;
}
.service-card:hover{ box-shadow: var(--shadow-3); border-color: var(--line-strong); }
.service-card:hover::before{ opacity: 1; }
.service-icon{
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #fbf1d8, #efd9a2);
  box-shadow: 0 12px 24px -12px rgba(150,105,30,.6), inset 0 1px 0 #fff;
  margin-bottom: 22px;
  transform: translateZ(40px);
}
.service-icon svg{ width: 27px; height: 27px; color: var(--gold-deep); }
/* picture cards: photo on top, icon sits on its edge, text stays on white */
.service-card.has-photo{ padding: 0 28px 32px; }
.service-photo{
  position: relative;
  margin: 0 -28px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: #e9e1d2;
}
.service-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.service-photo::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26,22,17,.28));
  pointer-events: none;
}
.service-card.has-photo:hover .service-photo img{ transform: scale(1.06); }
.service-card.has-photo .service-icon{
  position: relative; z-index: 1;
  margin-top: -29px;
  border: 3px solid var(--surface);
  width: 64px; height: 64px; border-radius: 18px;
}
.service-card h3{ font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; transform: translateZ(26px); }
.service-card .tag{ display:block; font-size: 11.5px; letter-spacing: .14em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 8px; font-weight: 700; transform: translateZ(20px); }
.service-card ul{ margin-top: 16px; display: flex; flex-direction: column; gap: 10px; transform: translateZ(14px); }
.service-card li{ display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }
.service-card li svg{ width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   Drone video showcase — 3D frame that flattens as it scrolls in
   ========================================================================== */
.drone{ padding: clamp(90px,11vw,140px) 0; text-align: center; overflow: hidden; }
.drone .section-head{ margin-bottom: 44px; }
.drone-persp{ perspective: 1600px; }
.drone-frame{
  --tilt: 0deg;
  position: relative;
  max-width: 1080px; margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-3);
  aspect-ratio: 16/9;
  background: #e9e1d2;
  transform: rotateX(var(--tilt));
  transform-origin: 50% 100%;
}
.drone-frame video{ width: 100%; height: 100%; object-fit: cover; }
.drone-caption{
  position: absolute; left: 18px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--on-media);
  background: rgba(20,16,10,.5); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px;
}
.drone-caption .dot{ width: 7px; height: 7px; border-radius: 50%; background: #e0563f; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot{ 0%,100%{ opacity: 1; } 50%{ opacity: .3; } }
.drone-more{ margin-top: 28px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery{ padding: clamp(80px,10vw,130px) 0; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1400px;
}
.obekt-card{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: #e9e1d2;
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.obekt-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.obekt-card::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,11,7,.82) 0%, rgba(14,11,7,.12) 52%, rgba(14,11,7,0) 72%);
  transition: opacity .4s ease;
}
.obekt-card:hover{ box-shadow: var(--shadow-3); }
.obekt-card-body{
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.obekt-card-body h3{ font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--on-media); line-height: 1.2; }
.obekt-card-body span{ font-size: 11.5px; color: rgba(251,246,234,.72); letter-spacing: .04em; display:block; margin-top: 4px; }
.obekt-count{
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-media);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  transition: background .3s ease, color .3s ease, transform .4s var(--ease);
}
.obekt-card:hover .obekt-count{ background: #fff; color: var(--ink); transform: scale(1.08); }
.obekt-count svg{ width: 15px; height: 15px; }
.obekt-video-tag{
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #1d1406; background: linear-gradient(135deg, #f0d48d, var(--gold));
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.obekt-video-tag svg{ width: 11px; height: 11px; }
/* The drone folder is featured: spans 2 columns */
.obekt-card.is-featured{ grid-column: span 2; aspect-ratio: auto; }
.obekt-card.is-featured .obekt-card-body h3{ font-size: 28px; }
.obekt-card .card-preview{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.obekt-card.is-previewing .card-preview{ opacity: 1; }
.obekt-stack{
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex;
}
.obekt-stack img{
  width: 42px; height: 42px; border-radius: 10px; object-fit: cover;
  border: 2px solid #fff; margin-left: -12px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.obekt-card:hover .obekt-stack img:nth-child(1){ transform: translateX(-10px) rotate(-6deg); }
.obekt-card:hover .obekt-stack img:nth-child(3){ transform: translateX(6px) rotate(6deg); }

.gallery-more{ margin-top: 36px; text-align: center; }
[hidden]{ display: none !important; }

/* ==========================================================================
   Lightboxes
   ========================================================================== */
.lb-overlay{
  position: fixed; inset: 0; z-index: 800;
  background: rgba(247,243,236,.97);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease);
  display: flex; flex-direction: column;
}
.lb-overlay.is-open{ opacity: 1; visibility: visible; }
.lb-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px,5vw,48px) 10px;
  flex-shrink: 0;
}
.lb-title{ display: flex; flex-direction: column; }
.lb-title h3{ font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.lb-title span{ font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.lb-close{
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease);
}
.lb-close:hover{ transform: rotate(90deg); }
.lb-close svg{ width: 18px; height: 18px; color: var(--ink); }
.lb-body{ flex: 1; overflow-y: auto; padding: 20px clamp(16px,5vw,48px) 60px; }
.lb-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--container);
  margin-inline: auto;
}
.lb-thumb{
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: #e9e1d2;
  box-shadow: var(--shadow-1);
}
.lb-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lb-thumb:hover img{ transform: scale(1.06); }
.lb-grid.is-videos .lb-thumb{ aspect-ratio: 16/10; }
.lb-play{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.5);
  pointer-events: none;
  transition: transform .4s var(--ease);
}
.lb-thumb:hover .lb-play{ transform: translate(-50%,-50%) scale(1.1); }
.lb-play svg{ width: 22px; height: 22px; margin-left: 3px; }
.lb-label{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--on-media);
  background: linear-gradient(0deg, rgba(14,11,7,.75), transparent);
  pointer-events: none;
}
.lb-label small{ display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: rgba(251,246,234,.75); }

.lb-viewer-overlay{
  position: fixed; inset: 0; z-index: 900;
  background: rgba(14,11,8,.96);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-media);
}
.lb-viewer-overlay.is-open{ opacity: 1; visibility: visible; }
.lb-viewer-figure{ max-width: 90vw; max-height: 82vh; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.lb-viewer-figure img,
.lb-viewer-figure video{ max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: #000; }
.lb-viewer-figure figcaption{ font-size: 13px; color: rgba(251,246,234,.75); }
.lb-viewer-close{
  position: absolute; top: 22px; right: clamp(16px,5vw,48px);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.lb-viewer-close svg{ width: 18px; height: 18px; }
.lb-viewer-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.lb-viewer-nav:hover{ background: var(--gold); }
.lb-viewer-nav:hover svg{ color: #1d1406; }
.lb-viewer-nav svg{ width: 20px; height: 20px; }
.lb-viewer-prev{ left: clamp(10px,3vw,40px); }
.lb-viewer-next{ right: clamp(10px,3vw,40px); }

/* ==========================================================================
   Roof cross-section (scroll-driven)
   ========================================================================== */
.roof-x{ padding: clamp(80px,10vw,120px) 0; }
.roof-x.is-scrub{ padding: 0; }
.roof-x.is-scrub .roof-x-track{ height: 300vh; }
.roof-x.is-scrub .roof-x-sticky{
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.roof-x-grid{
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  grid-template-areas: "head stage" "copy stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(30px, 5vw, 70px);
  row-gap: 22px;
  align-items: start;
}
.roof-x-head{ grid-area: head; margin-bottom: 0; align-self: end; }
.roof-x-head h2{ font-size: clamp(28px, 3.4vw, 42px); }
.roof-x-head .roof-x-intro{ font-size: 16px; }
.roof-x-copy{ grid-area: copy; }
.roof-x-stage{
  grid-area: stage; align-self: center;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 50% 40%, #fffdf8, #f4ede1 80%);
  box-shadow: var(--shadow-2);
  padding: clamp(14px, 2.4vw, 28px) clamp(10px, 2vw, 22px) 30px;
  overflow: hidden;
}
.roof-x-stage::before{
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(150,112,40,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,112,40,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  pointer-events: none;
}
.roof-x-stage svg{ position: relative; display: block; width: 100%; height: auto; }
.roof-x-tag{
  position: absolute; top: 14px; left: 18px; z-index: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint);
}
.roof-x-progress{
  position: absolute; left: 22px; right: 22px; bottom: 14px; height: 2px;
  background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.roof-x-progress span{
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
}
.rx-badge{ opacity: 0; }
.rx-badge path{ stroke: rgba(150,112,40,.7); stroke-width: 1.2; fill: none; }
.rx-badge circle{ fill: #fff; stroke: var(--gold); stroke-width: 1.5; transition: fill .4s ease; }
.rx-badge text{
  fill: var(--gold-deep); font-family: var(--font-body); font-size: 15px; font-weight: 700;
  text-anchor: middle; dominant-baseline: central;
}
.rx-layer.is-active .rx-badge circle{ fill: var(--gold); }
.rx-layer.is-active .rx-badge text{ fill: #1d1406; }
.rx-rain{ opacity: 0; transition: opacity .9s ease; }
.roof-x.is-raining .rx-rain{ opacity: 1; }
.roof-x:not(.is-scrub) .rx-sil{ display: none; }

.roof-x-legend{ display: flex; flex-direction: column; gap: 2px; }
.roof-x-legend li{
  display: grid; grid-template-columns: 30px 1fr; gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: .5;
  transition: opacity .45s ease, background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.roof-x-legend .n{ font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-ink); padding-top: 3px; }
.roof-x-legend b{ display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.roof-x-legend .d{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.roof-x-legend .d > span{ overflow: hidden; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.roof-x-legend li.is-done{ opacity: .85; }
.roof-x-legend li.is-active{ opacity: 1; background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.roof-x-legend li.is-active .d{ grid-template-rows: 1fr; }
.roof-x-legend li.is-active .d > span{ padding-top: 4px; }
.roof-x.is-open .roof-x-legend li{ opacity: .85; }
.roof-x.is-open .roof-x-legend li.is-active{ opacity: 1; }
.roof-x:not(.is-scrub) .roof-x-legend li{ opacity: 1; }
.roof-x:not(.is-scrub) .roof-x-legend .d{ grid-template-rows: 1fr; }

.roof-x-status{
  position: relative; margin-top: 16px; padding-left: 14px; min-height: 22px;
  font-size: 13.5px; color: var(--text-faint);
}
.roof-x-status::before{
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.roof-x-status span{ display: none; }
.roof-x-status .hint{ display: inline; }
.roof-x.is-done .roof-x-status .hint{ display: none; }
.roof-x.is-done .roof-x-status .final{ display: inline; color: var(--gold-ink); }
.roof-x:not(.is-scrub) .roof-x-status{ display: none; }

@media (max-width: 860px){
  .roof-x-grid{
    grid-template-columns: 1fr;
    grid-template-areas: "head" "stage" "copy";
    grid-template-rows: auto;
    row-gap: 16px;
  }
  .roof-x-head{ text-align: center; margin-inline: auto; }
  .roof-x.is-scrub .roof-x-intro{ display: none; }
  .roof-x.is-scrub .roof-x-head h2{ font-size: 25px; margin-top: 8px; }
  .roof-x.is-scrub .roof-x-track{ height: 240vh; }
  .roof-x.is-scrub .roof-x-legend{ position: relative; display: block; min-height: 78px; }
  .roof-x.is-scrub .roof-x-legend li{
    position: absolute; left: 0; right: 0; top: 0;
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s ease, transform .5s var(--ease);
    background: #fff; border-color: var(--line-strong);
  }
  .roof-x.is-scrub .roof-x-legend li .d{ grid-template-rows: 1fr; }
  .roof-x.is-scrub .roof-x-legend li.is-active{ opacity: 1; transform: none; }
  .roof-x.is-scrub.has-active .roof-x-status{ visibility: hidden; }
  .roof-x.is-scrub .roof-x-status{ position: absolute; top: 12px; left: 4px; right: 0; margin-top: 0; }
  .roof-x-copy{ position: relative; }
  .roof-x-head .eyebrow::before{ display: none; }
  .roof-x-stage{ padding-top: 34px; }
  .roof-x-tag{ top: 12px; left: 14px; font-size: 9.5px; }
  .rx-badge text{ font-size: 18px; }
  .rx-badge circle{ r: 19; }
}
@media (min-width: 861px){ .roof-x.is-scrub .roof-x-sticky{ padding-top: 64px; } }
@media (min-width: 861px) and (max-height: 760px){
  .roof-x.is-scrub .roof-x-intro{ display: none; }
  .roof-x-legend li{ padding-block: 5px; }
  .roof-x-grid{ row-gap: 14px; }
  .roof-x-status{ margin-top: 10px; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews{ padding: clamp(80px,10vw,130px) 0; background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.reviews-track{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.review-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s ease;
}
.review-card::before{
  content: '\201C'; position: absolute; right: 22px; top: 6px;
  font-family: var(--font-display); font-size: 84px; line-height: 1; color: rgba(184,137,47,.16);
}
.review-card:hover{ box-shadow: var(--shadow-3); border-color: var(--line-strong); }
.review-stars{ display: flex; gap: 3px; }
.review-stars svg{ width: 16px; height: 16px; color: var(--gold); }
.review-card p{ font-size: 15px; color: var(--text); line-height: 1.7; flex: 1; }
.review-who{ display: flex; align-items: center; gap: 12px; }
.review-avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, #f3dc9f, var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(150,105,30,.7);
}
.review-who b{ display: block; font-size: 14.5px; color: var(--ink); }
.review-who span{ font-size: 12.5px; color: var(--text-faint); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{ padding: clamp(80px,10vw,130px) 0; }
.faq-grid{ display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px,6vw,70px); align-items: start; }
.faq-grid .section-head a{ color: var(--gold-ink); font-weight: 600; }
.faq-list{ display: flex; flex-direction: column; gap: 12px; }
.faq-side{ display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 861px){ .faq-side{ position: sticky; top: 100px; } }
.faq-side .section-head{ margin-bottom: 0; }
.faq-photo{
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border: 6px solid #fff;
  background: #e9e1d2;
  box-shadow: var(--shadow-3);
  transition: box-shadow .6s var(--ease);
}
.faq-photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.faq-photo:hover img{ transform: scale(1.05); }
.faq-photo::after{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14,11,7,.86) 0%, rgba(14,11,7,.35) 38%, transparent 62%);
}
.faq-photo-tag{
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
}
.faq-photo-tag svg{ width: 14px; height: 14px; color: var(--gold-deep); }
.faq-photo figcaption{
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 22px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.faq-photo figcaption b{ font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--on-media); }
.faq-photo figcaption span{ font-size: 13.5px; color: rgba(251,246,234,.8); }
.faq-photo figcaption .btn{ margin-top: 10px; }

.faq-item{
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.faq-item:hover, .faq-item[aria-expanded="true"]{ border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-q .plus{
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .3s ease;
}
.faq-q .plus svg{ width: 12px; height: 12px; color: var(--gold-ink); }
.faq-item[aria-expanded="true"] .plus{ background: var(--gold); border-color: var(--gold); transform: rotate(135deg); }
.faq-item[aria-expanded="true"] .plus svg{ color: #1d1406; }
.faq-a-wrap{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a-inner{ overflow: hidden; }
.faq-item[aria-expanded="true"] .faq-a-wrap{ grid-template-rows: 1fr; }
.faq-a{ padding: 0 22px 22px; color: var(--text-muted); font-size: 14.5px; line-height: 1.75; max-width: 60ch; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact{ padding: clamp(80px,10vw,120px) 0; }
.contact-panel{
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(255,255,255,.9);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(232,198,117,.35), transparent 55%),
    linear-gradient(160deg, #fffdf9, #f3ebdc);
  box-shadow: var(--shadow-3);
  padding: clamp(36px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.contact-panel::before{
  content: '';
  position: absolute; z-index: -1;
  width: 560px; height: 560px; right: -180px; top: -240px;
  background: radial-gradient(circle, rgba(220,183,102,.35), transparent 65%);
  pointer-events: none;
  animation: soft-drift 18s ease-in-out infinite alternate;
}
@keyframes soft-drift{ to{ transform: translate3d(-90px, 70px, 0) scale(1.12); } }
.contact-panel h2{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px,3.6vw,44px); color: var(--ink); line-height: 1.12; letter-spacing: -.01em;
  margin-top: 12px;
}
.contact-panel p{ margin-top: 14px; color: var(--text-muted); font-size: 16px; max-width: 46ch; }
.contact-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.contact-info{ display: flex; flex-direction: column; gap: 14px; }
.contact-row{
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-1);
  transition: border-color .4s ease, transform .5s var(--ease);
}
.contact-row:hover{ border-color: var(--line-strong); transform: translateX(4px); }
.contact-row .ic{
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #fbf1d8, #efd9a2);
  display: flex; align-items: center; justify-content: center;
}
.contact-row .ic svg{ width: 18px; height: 18px; color: var(--gold-deep); }
.contact-row b{ display: block; font-size: 15px; color: var(--ink); }
.contact-row span{ font-size: 12.5px; color: var(--text-faint); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ border-top: 1px solid var(--line); padding: 60px 0 26px; background: var(--bg-soft); }
.footer-top{
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr .9fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand{ display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.footer-brand p{ font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .3s var(--ease);
}
.footer-social a:hover{ background: var(--gold); transform: translateY(-3px); }
.footer-social svg{ width: 17px; height: 17px; color: var(--ink); }
.footer-col h4{ font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 16px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span{ font-size: 14px; color: var(--text-muted); }
.footer-col a:hover{ color: var(--ink); }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: 12.5px; color: var(--text-faint);
}
.dev-signature{
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform .5s cubic-bezier(.2,.9,.25,1.3), background .35s ease, border-color .35s ease;
  cursor: pointer;
}
.dev-signature-label{ font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; transition: color .35s ease; }
.dev-signature-mark{ display: flex; flex-direction: column; align-items: stretch; line-height: 1; }
.dev-signature-name{
  font-family: 'Alex Brush', cursive; font-size: 30px; line-height: 1;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 65%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.dev-signature-swash{ width: 100%; height: 9px; margin-top: -3px; overflow: visible; }
.dev-signature-swash path{
  fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; opacity: .75;
  stroke-dasharray: 190; stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s var(--ease);
}
.dev-signature.is-caught{ background: var(--gold-soft); border-color: var(--gold); }
.dev-signature.is-caught .dev-signature-label{ color: var(--gold-ink); }
.dev-signature.is-caught .dev-signature-swash path{ stroke: var(--gold-deep); opacity: 1; }
.dev-signature.is-signing .dev-signature-swash path{ stroke-dashoffset: 190; transition: none; }

/* ==========================================================================
   Motion & polish
   ========================================================================== */
.btn-primary, .btn-ghost{ overflow: hidden; isolation: isolate; }
.btn-primary::after{
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,250,235,.65) 50%, transparent 65%);
  transform: translateX(-115%);
  pointer-events: none;
}
.btn-primary:hover::after{ transform: translateX(115%); transition: transform .95s var(--ease); }
.btn-primary:hover{ box-shadow: 0 20px 44px -12px rgba(150,105,30,.65), inset 0 1px 0 rgba(255,245,215,.7); }
.btn:hover:not(.magnetic > .btn){ transform: translateY(-2px); }
.btn:hover svg:has(use[href="#ic-phone"]){ animation: phone-ring .75s var(--ease); }
@keyframes phone-ring{
  0%, 100%{ transform: rotate(0); }
  20%{ transform: rotate(-14deg); }
  40%{ transform: rotate(11deg); }
  60%{ transform: rotate(-7deg); }
  80%{ transform: rotate(3deg); }
}

/* Generic 3D tilt (JS sets --tx / --ty in degrees) */
[data-tilt]{ transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); }
[data-tilt].is-tilting{ transition: transform .12s linear, box-shadow .6s var(--ease), border-color .5s ease; }
[data-tilt]::marker{ content: none; }
.tilt-glare{
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 45%);
  opacity: 0; transition: opacity .5s ease;
}
[data-tilt]:hover .tilt-glare{ opacity: 1; }

.lb-overlay.is-open .lb-thumb{
  animation: lb-in .6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms + 120ms);
}
@keyframes lb-in{ from{ opacity: 0; transform: translateY(14px) scale(.98); } }

/* Project cards: photo mask reveal */
.obekt-card[data-reveal]{ opacity: 1; }
.obekt-card[data-reveal] > img:first-child{
  clip-path: inset(100% 0 0 0);
  transform: scale(1.22);
  transition: clip-path 1.15s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s);
}
.obekt-card[data-reveal].is-visible > img:first-child{
  clip-path: inset(0 0 0 0);
  transform: none;
  transition: clip-path 1.15s var(--ease) var(--d, 0s), transform 1.3s var(--ease);
}
.obekt-card:hover > img:first-child, .obekt-card[data-reveal].is-visible:hover > img:first-child{ transform: scale(1.06); }
.obekt-card[data-reveal] .obekt-card-body{
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease calc(var(--d, 0s) + .4s), transform .8s var(--ease) calc(var(--d, 0s) + .4s);
}
.obekt-card[data-reveal].is-visible .obekt-card-body{ opacity: 1; transform: none; }

[data-parallax]{ will-change: transform; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal]{
  --rv-x: 0px; --rv-y: 28px; --rv-s: 1;
  opacity: 0;
  translate: var(--rv-x) var(--rv-y);
  scale: var(--rv-s);
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease);
}
[data-reveal="left"]{ --rv-x: -40px; --rv-y: 0px; }
[data-reveal="right"]{ --rv-x: 40px; --rv-y: 0px; }
[data-reveal="scale"]{ --rv-y: 18px; --rv-s: .955; }
[data-reveal].is-visible{ opacity: 1; translate: 0 0; scale: 1; }

[data-reveal-stagger] > *{ opacity: 0; }
[data-reveal-stagger].is-visible > *{
  opacity: 1;
  animation: rv-up .85s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 95ms);
}
[data-reveal-stagger] > :nth-child(2){ --i: 1; }
[data-reveal-stagger] > :nth-child(3){ --i: 2; }
[data-reveal-stagger] > :nth-child(4){ --i: 3; }
[data-reveal-stagger] > :nth-child(5){ --i: 4; }
[data-reveal-stagger] > :nth-child(6){ --i: 5; }
@keyframes rv-up{ from{ opacity: 0; translate: 0 26px; } to{ opacity: 1; translate: 0 0; } }

.hero-inner > [data-reveal]:nth-child(1){ transition-delay: .1s; }
.hero-inner > [data-reveal]:nth-child(2){ transition-delay: .22s; transition-duration: 1.1s; }
.hero-inner > [data-reveal]:nth-child(3){ transition-delay: .38s; }
.hero-inner > [data-reveal]:nth-child(4){ transition-delay: .52s; }
.hero-inner > [data-reveal-stagger].is-visible > *{ animation-delay: calc(.65s + var(--i, 0) * 110ms); }

.section-head[data-reveal] .eyebrow::before{
  transform: scaleX(0); transform-origin: right;
  transition: transform .9s var(--ease) .35s;
}
.section-head[data-reveal].is-visible .eyebrow::before{ transform: scaleX(1); }

/* ==========================================================================
   Premium cursor — gold dot + trailing ring (desktop mouse only)
   ========================================================================== */
html.has-lux-cursor,
html.has-lux-cursor *{ cursor: none !important; }
html.has-lux-cursor :is(input, textarea, select, [contenteditable="true"]){ cursor: auto !important; }
.lux-cursor{
  position: fixed; left: 0; top: 0; width: 0; height: 0;
  z-index: 10000; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.lux-cursor.is-visible{ opacity: 1; }
.lc-dot, .lc-ring{ position: absolute; left: 0; top: 0; will-change: transform; }
.lc-dot i{
  position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.75);
  transition: transform .35s var(--ease), background .3s ease;
}
.lc-ring i{
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(184,137,47,.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.lc-ring em{
  font-style: normal; font-size: 5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity .3s ease;
  white-space: nowrap;
}
.lux-cursor.is-link .lc-ring i{ transform: scale(1.45); background: rgba(220,183,102,.18); border-color: var(--gold); }
.lux-cursor.is-link .lc-dot i{ transform: scale(.6); }
.lux-cursor.is-media .lc-ring i{
  transform: scale(2.1); background: rgba(20,16,10,.55); border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lux-cursor.is-media .lc-ring em{ opacity: 1; }
.lux-cursor.is-media .lc-dot i{ transform: scale(0); }
.lux-cursor.is-dark .lc-dot i{ background: #f1d68f; box-shadow: none; }
.lux-cursor.is-dark .lc-ring i{ border-color: rgba(241,214,143,.7); }
.lux-cursor.is-down .lc-ring i{ transform: scale(.8); }
.lux-cursor.is-down.is-link .lc-ring i{ transform: scale(1.2); }
.lux-cursor.is-text{ opacity: 0; }

/* ==========================================================================
   Materials
   ========================================================================== */
.materials{
  padding: clamp(80px,10vw,130px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg) 100%);
}
.mat-grid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.mat-card{
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .5s ease;
}
.mat-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.mat-media{
  position: relative; display: block; width: 100%;
  aspect-ratio: 4/3; padding: 0; border: 0; margin: 0;
  overflow: hidden; cursor: pointer;
  background: #ece3d3;
  font: inherit; color: inherit;
}
.mat-media img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.mat-card:hover .mat-media img{ transform: scale(1.05); }
.mat-card.is-contain .mat-media{ background: #fff; }
.mat-card.is-contain .mat-media img{ object-fit: contain; padding: clamp(12px, 2vw, 22px); }
.mat-card.is-contain:hover .mat-media img{ transform: scale(1.03); }
.mat-media::after{
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(0deg, rgba(26,22,17,.38), transparent);
  pointer-events: none;
}
.mat-card.is-contain .mat-media::after{ background: linear-gradient(0deg, rgba(26,22,17,.12), transparent); }
.mat-count{
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 14px; border-radius: 999px;
  background: rgba(26,22,17,.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--on-media); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  transition: background-color .35s ease;
}
.mat-count svg{ width: 14px; height: 14px; transition: transform .35s var(--ease); }
.mat-card:hover .mat-count{ background: var(--gold-deep); }
.mat-card:hover .mat-count svg{ transform: translateX(3px); }

.mat-body{ position: relative; padding: 24px 26px 28px; flex: 1; }
.mat-no{
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--gold-ink); letter-spacing: .08em;
}
.mat-body h3{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2;
  color: var(--ink); margin: 6px 0 16px;
}
.mat-specs{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; margin: 0; }
.mat-specs div{ padding-top: 10px; border-top: 1px solid var(--line); }
.mat-specs dt{ font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.mat-specs dd{ margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.mat-body p{ margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

.mat-swatches{ list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.mat-swatches li{ display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); }
.mat-swatches span{
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 2px 5px -2px rgba(60,40,10,.4);
}
.mat-chips{ list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mat-chips li{
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--gold-soft);
  font-size: 14px; font-weight: 600; color: var(--ink);
}

/* wide cards: photo beside the text */
.mat-card.is-wide{ grid-column: span 2; flex-direction: row; }
.mat-card.is-wide .mat-media{ flex: 0 0 56%; aspect-ratio: auto; min-height: 300px; }
.mat-card.is-wide .mat-body{ display: flex; flex-direction: column; justify-content: center; padding: 34px 34px 36px; }
.mat-card.is-wide .mat-body h3{ font-size: clamp(24px, 2.4vw, 30px); }

/* roof tiles */
.mat-sub{ display: flex; align-items: center; gap: 18px; margin: clamp(56px, 7vw, 84px) 0 26px; }
.mat-sub-ic{
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--line-strong); color: var(--gold-deep);
}
.mat-sub-ic svg{ width: 24px; height: 24px; }
.mat-sub h3{ font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); color: var(--ink); line-height: 1.1; }
.mat-sub p{ margin-top: 6px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.mat-tiles{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.mat-tile .mat-media{ aspect-ratio: 1/1; }
.mat-tile .mat-body{ display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; }
.mat-tile .mat-body h3{ order: -1; margin: 0; font-size: 24px; }
.mat-tile .mat-body h3 small{
  display: block; margin-bottom: 4px;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint);
}

/* photo grid in the lightbox for product shots on white */
.lb-grid.is-contain .lb-thumb img{ object-fit: contain; background: #fff; padding: 8px; }

@media (max-width: 1080px){
  .mat-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mat-card.is-wide-md{ grid-column: span 2; flex-direction: row; }
  .mat-card.is-wide-md .mat-media{ flex: 0 0 50%; aspect-ratio: auto; min-height: 280px; }
  .mat-card.is-wide-md .mat-body{ display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 860px){
  .mat-tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .mat-grid{ grid-template-columns: 1fr; gap: 16px; }
  .mat-tiles{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .mat-card.is-wide, .mat-card.is-wide-md{ grid-column: auto; flex-direction: column; }
  .mat-card.is-wide .mat-media, .mat-card.is-wide-md .mat-media{ flex: none; aspect-ratio: 4/3; min-height: 0; }
  .mat-card.is-wide .mat-body{ padding: 22px 22px 26px; }
  .mat-body{ padding: 20px 22px 24px; }
  .mat-tile .mat-body{ padding: 14px 14px 16px; }
  .mat-tile .mat-body h3{ font-size: 19px; }
  .mat-tile .mat-no{ display: none; }
  .mat-tile .mat-count{ left: 8px; bottom: 8px; padding: 5px 10px; font-size: 11.5px; }
  .mat-sub{ align-items: flex-start; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px){
  .header-call{ display: none; }
  .main-nav{ gap: 22px; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(3,1fr); }
  .reviews-track{ grid-template-columns: repeat(2,1fr); }
  .about-grid{ grid-template-columns: 1fr; }
  .compare{ max-width: 520px; margin-inline: auto; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-inner{ max-width: 680px; }
  .hero-stage{ height: 520px; max-width: 640px; width: 100%; margin-inline: auto; }
}

@media (max-width: 860px){
  .main-nav, .header-call{ display: none; }
  .nav-toggle{ display: flex; }
  .faq-grid{ grid-template-columns: 1fr; }
  .contact-panel{ grid-template-columns: 1fr; }
  .lb-grid{ grid-template-columns: repeat(3,1fr); }
  .lb-grid.is-videos{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px){
  .services-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); gap: 12px; }
  .obekt-card.is-featured{ aspect-ratio: 16/11; }
  .obekt-card.is-featured .obekt-card-body h3{ font-size: 22px; }
  .obekt-card-body{ padding: 14px; }
  .obekt-card-body h3{ font-size: 16px; }
  .obekt-count{ display: none; }
  .obekt-video-tag{ top: 10px; left: 10px; }
  .obekt-stack img{ width: 32px; height: 32px; }
  .reviews-track{ grid-template-columns: 1fr; }
  .about-facts{ grid-template-columns: 1fr; }
  .hero{ padding: 110px 0 70px; }
  .hero-inner .lead{ font-size: 16.5px; }
  .hero-stats{ gap: 22px; margin-top: 36px; }
  .hero-stage{ height: 400px; min-height: 0; }
  .hero-card-main{ left: 6%; right: 0; }
  .hero-card-drone{ width: 52%; }
  .hero-chip{ padding: 9px 12px 9px 9px; border-radius: 14px; gap: 9px; }
  .hero-chip .ic{ width: 32px; height: 32px; border-radius: 10px; }
  .hero-chip b{ font-size: 13px; }
  .chip-guarantee{ right: 0; top: 5%; }
  .chip-rating{ right: 2%; bottom: 8%; }
  .scroll-cue{ display: none; }
  .lb-grid{ grid-template-columns: repeat(2,1fr); }
  .lb-grid.is-videos{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .intro-loc .n{ font-size: 24px; }
  .intro-tag{ letter-spacing: .18em; max-width: 30ch; line-height: 1.7; }
  .intro-loc{ font-size: 11px; }
}

@media (max-width: 860px), (hover: none){
  [data-reveal]{ --rv-y: 18px; }
  [data-reveal="left"], [data-reveal="right"]{ --rv-x: 0px; --rv-y: 18px; }
  .hero-floor{ animation: none; }
}
@media (prefers-reduced-motion: reduce){
  .hero-3d{ transition: none; }
  .hero-floor, .hero-orb, .chip-float, .contact-panel::before{ animation: none; }
  .obekt-card[data-reveal] > img:first-child{ clip-path: none; transform: none; }
}

/* FAQ photo card: on phones it follows the questions */
@media (max-width: 860px){
  .faq-side{ display: contents; }
  .faq-side .section-head{ order: 1; }
  .faq-list{ order: 2; }
  .faq-photo{ order: 3; max-width: 520px; width: 100%; margin-inline: auto; }
}
