/* ==========================================================================
   EMERALD EMPIRE BUILDING — Design System
   Palette: warm cream / beige / antique gold, with a deep emerald thread
   Type: Fraunces (display) + Manrope (body / UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  /* --- color tokens --- */
  --cream:        #FBF7EF;
  --cream-deep:    #F1E9D8;
  --beige:         #E5D6B8;
  --beige-line:    rgba(43,38,32,0.12);
  --ink:           #2B2620;
  --ink-soft:      #6B6255;
  --gold:          #A9814C;
  --gold-text:     #875F2E;
  --gold-bright:   #CBA05F;
  --gold-pale:     #E7CE9E;
  --emerald:       #123C2E;
  --emerald-soft:  #2F5E4A;
  --white:         #FFFFFF;
  --heart-gray:    #9A948A;
  --heart-red:     #B5432F;
  --bar-h: 42px;

  /* --- type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- layout --- */
  --container: 1240px;
  --header-h: 92px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* --- motion --- */
  --ease: cubic-bezier(.22,.68,0,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);
}

/* ============================== DEMO BAR ================================ */
.demo-bar{ position:fixed; top:0; left:0; right:0; z-index:600; min-height:var(--bar-h); background:var(--ink); display:flex; align-items:center; }
.demo-bar-inner{ width:100%; max-width:var(--container); margin:0 auto; padding:8px 46px 8px 20px; display:flex; align-items:center; justify-content:center; gap:16px; position:relative; }
.demo-bar-text{ display:flex; align-items:center; gap:8px; font-size:12.5px; letter-spacing:.01em; color:rgba(251,247,239,.85); flex-wrap:wrap; justify-content:center; text-align:center; line-height:1.5; }
.demo-bar-text .gem path{ fill: var(--gold-pale); }
.demo-bar-link{ color:var(--gold-pale); font-weight:700; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.demo-bar-close{ position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; color:rgba(251,247,239,.5); font-size:22px; line-height:1; cursor:pointer; padding:6px 10px; }
.demo-bar-close:hover{ color:var(--cream); }
html.demo-bar-hidden .demo-bar{ display:none; }
html.demo-bar-hidden header.site-header{ top:0; }
header.site-header{ top: var(--bar-h); }
@media (max-width:640px){ .demo-bar-text{ font-size:11.5px; } }

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@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(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }

/* remove blue tap/selection highlight everywhere, keep real focus states for keyboard users */
img, a, button, .no-select{
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-drag: none;
}
img{ outline: none; }
:focus{ outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .4em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:'';
  width: 26px; height: 1px;
  background: var(--gold);
  display:inline-block;
}
.eyebrow .gem{ width:9px; height:9px; }

section{ position: relative; }
.section-pad{ padding: 120px 0; }
.section-pad-sm{ padding: 70px 0; }
@media (max-width: 900px){
  .section-pad{ padding: 80px 0; }
  .section-pad-sm{ padding: 52px 0; }
}

.bg-cream{ background: var(--cream); }
.bg-deep{ background: var(--cream-deep); }
.bg-ink{ background: var(--ink); color: var(--cream); }
.bg-ink p{ color: rgba(251,247,239,.72); }
.bg-ink h1,.bg-ink h2,.bg-ink h3{ color: var(--cream); }

/* ---------------------------------- gem mark --------------------------- */
.gem{ display:inline-block; }
.gem path{ fill: var(--emerald); }
.gem.gold path{ fill: var(--gold); }

/* ---------------------------------- buttons ----------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 17px 34px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .5s var(--ease-soft), background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 400px){
  .btn{ padding: 15px 20px; font-size: 12px; letter-spacing: .08em; white-space: normal; }
}
.btn-primary{ background: var(--ink); color: var(--cream); }
.btn-primary:hover{ background: var(--emerald); box-shadow: 0 14px 30px -12px rgba(18,60,46,.55); transform: translateY(-2px); }
.btn-gold{ background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.btn-gold:hover{ box-shadow: 0 14px 30px -10px rgba(169,129,76,.55); transform: translateY(-2px); }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--cream); }
.bg-ink .btn-outline{ color: var(--cream); }
.bg-ink .btn-outline:hover{ background: var(--cream); color: var(--ink); }

/* ================================ HEADER ================================ */
header.site-header{
  position: fixed; left:0; right:0; z-index: 500;
  height: var(--header-h);
  display:flex; align-items:center;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), height .35s ease, border-color .45s ease, top .3s ease;
  border-bottom: 1px solid transparent;
}
header.site-header .container{ display:flex; align-items:center; justify-content:space-between; width:100%; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:34px; height:34px; flex-shrink:0; }
.brand-word{ font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; line-height:1; color: var(--cream); transition: color .45s ease;}
.brand-tag{ font-size:9.5px; letter-spacing:.22em; text-transform:uppercase; color: var(--gold-pale); display:block; margin-top:3px; font-family:var(--font-body); font-weight:700; transition: color .45s ease;}

/* Background/blur live on a ::before instead of directly on header.site-header
   on purpose — see comment above the .scrolled rule for why. */
header.site-header::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background: transparent;
  transition: background .45s var(--ease);
}
header.site-header.scrolled::before{
  background: rgba(251,247,239,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header.site-header.scrolled{
  box-shadow: 0 10px 30px -18px rgba(43,38,32,.25);
  border-bottom-color: var(--beige-line);
}
header.site-header.scrolled .brand-word{ color: var(--ink); }
header.site-header.scrolled .brand-tag{ color: var(--gold); }
header.site-header.scrolled nav a{ color: var(--ink-soft); }
header.site-header.scrolled nav a:hover, header.site-header.scrolled nav a.active{ color: var(--ink); }
header.site-header.scrolled nav a.active::after{ background: var(--gold); }

/* pages whose hero is NOT dark need the header dark from the start */
header.site-header.on-light .brand-word{ color: var(--ink); }
header.site-header.on-light .brand-tag{ color: var(--gold); }
header.site-header.on-light nav a{ color: var(--ink-soft); }
header.site-header.on-light nav a:hover, header.site-header.on-light nav a.active{ color: var(--ink); }

nav.main-nav{ display:flex; align-items:center; gap:52px; }
nav.main-nav a{
  font-size: 12.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:700;
  color: rgba(251,247,239,.82); position:relative; padding: 6px 0; transition: color .35s ease;
  white-space:nowrap;
}
nav.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1px; background: var(--gold-pale);
  transition: right .4s var(--ease-soft);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after{ right:0; }
nav.main-nav a.active{ color: var(--cream); }
.lang-switch-trigger{ white-space:nowrap; }

/* margin-left (on top of whatever the container's space-between already
   gives) guarantees a real, deliberate gap before the CTA buttons instead
   of leaving it to whatever free space happens to be left over */
.header-cta{ display:flex; align-items:center; gap:30px; margin-left:40px; }
.header-cta .btn{ padding:13px 26px; white-space:nowrap; }

/* Between the tablet burger breakpoint and ~2560px, the nav links + language
   dropdown + two header buttons no longer fit in one row at their "spacious"
   sizing — worst in RU/UZ, still cramped in EN. Two-word items ("О компании",
   "Обсудить проект") are the first to visually break onto two lines here,
   which reads as broken rather than merely tight — so this tier forces
   everything to stay on one line (white-space: nowrap above) and instead
   progressively shrinks font size, letter-spacing and padding so the *whole
   row* still fits in the 1240px container, with a deliberately wide, obvious
   gap kept before the CTA buttons (margin-left) rather than spreading the
   saved space thin and invisibly across every nav item. Letter-spacing on
   nav links is trimmed the most here (.12em is fine at full width, but on
   uppercase multi-word links like "О компании" it alone costs ~10px of
   width per link) — that's what buys the room for both nowrap and the
   wider gaps.

   IMPORTANT: this range intentionally goes all the way up to 2559px, past
   the point where you'd expect a "wide desktop" layout to take over. That's
   because `body{ overflow-x:hidden }` (further up this file) turns any
   horizontal overflow into invisible, silently-clipped content instead of
   a scrollbar — at common widths like 1680/1768/1920, the fuller-size
   spacing below actually pushed "Обсудить проект" off the right edge of
   the screen entirely. Verified with real rendering across 1041–3440px;
   see the safe cutover to the roomier sizing right below. */
@media (max-width: 2559px) and (min-width: 1241px){
  nav.main-nav{ gap: 23px; }
  nav.main-nav a{ font-size: 11.5px; letter-spacing:.05em; }
  .lang-switch-trigger{ font-size: 13px; gap:5px; }
  .header-cta{ gap:16px; margin-left:26px; }
  .header-cta .btn{ padding:12px 15px; font-size:12px; letter-spacing:.06em; }
}

/* Переключатель языка: иконка глобуса + текущий язык, клик открывает
   выпадающий список в стиле остального сайта (card + тень + скругления). */
.lang-switch{ position:relative; }
.lang-switch-trigger{
  display:flex; align-items:center; gap:7px; background:none; border:none; cursor:pointer;
  font-family: var(--font-body); font-size:14px; font-weight:600; color: rgba(251,247,239,.8);
  padding:6px 2px; transition: color .25s ease;
}
.lang-switch-trigger:hover{ color: var(--cream); }
.lang-switch-globe{ width:17px; height:17px; flex-shrink:0; }
.lang-switch-chevron{ width:11px; height:11px; flex-shrink:0; transition: transform .25s ease; }
.lang-switch.open .lang-switch-chevron{ transform: rotate(180deg); }

.lang-switch-menu{
  position:absolute; top:calc(100% + 14px); right:0; min-width:168px; list-style:none;
  margin:0; padding:6px; background: var(--white); border:1px solid var(--beige-line);
  border-radius: var(--radius-md); box-shadow: 0 20px 40px -16px rgba(43,38,32,.32); z-index:200;
  opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.lang-switch.open .lang-switch-menu{ opacity:1; visibility:visible; transform: translateY(0); transition: opacity .22s ease, transform .22s ease; }
.lang-switch-menu button{
  display:block; width:100%; text-align:left; padding:10px 14px; border-radius:8px; border:none;
  background:none; cursor:pointer; font-family: var(--font-body); font-size:14px; color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.lang-switch-menu button:hover{ background: var(--cream-deep); color: var(--ink); }
.lang-switch-menu button.active{ color: var(--gold-text); font-weight:700; }

header.site-header.scrolled .lang-switch-trigger, header.site-header.on-light .lang-switch-trigger{ color: var(--ink-soft); }
header.site-header.scrolled .lang-switch-trigger:hover, header.site-header.on-light .lang-switch-trigger:hover{ color: var(--ink); }

.burger{ display:none; width:26px; height:20px; position:relative; cursor:pointer; background:none; border:none; padding:0; z-index: 60;}
.burger span{ position:absolute; left:0; right:0; height:2px; background: var(--cream); transition: all .35s var(--ease); }
header.site-header.scrolled .burger span, header.site-header.on-light .burger span{ background: var(--ink); }
.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:9px; }
.burger span:nth-child(3){ top:18px; }
.burger.open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }
.burger.open span{ background: var(--ink) !important; }

/* Below this, there just isn't room for a horizontal nav with this many
   items + language switch + two buttons, however much the sizing is
   trimmed — so it switches to the burger/overlay nav instead of continuing
   to shrink text. Matches the .container max-width (1240px) so the
   cutover lines up with where the desktop layout actually has space. */
@media (max-width: 1240px){
  nav.main-nav{
    position: fixed; inset: 0; top:0;
    background: var(--cream);
    flex-direction: column; justify-content:center; align-items:center; gap: 26px;
    transform: translateY(-102%); transition: transform .5s var(--ease);
    z-index: 55;
  }
  nav.main-nav.open{ transform: translateY(0); }
  nav.main-nav a{ color: var(--ink) !important; font-size: 15px; }
  nav.main-nav a::after{ background: var(--gold) !important; }
  .header-cta .btn-outline{ display:none; }
  .header-cta{ margin-left:0; }
  .burger{ display:block; }
  .lang-switch{ margin-top:10px; }
  .lang-switch-trigger{ color: var(--ink-soft); justify-content:center; width:100%; }
  .lang-switch-trigger:hover{ color: var(--ink); }
  .lang-switch-menu{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    background:none; margin-top:8px; padding:0; max-height:0; overflow:hidden; transition: max-height .3s ease;
  }
  .lang-switch.open .lang-switch-menu{ max-height:220px; }
  .lang-switch-menu button{ text-align:center; }
}
.nav-cta{ display:none; }
@media (max-width: 1240px){ .nav-cta{ display:inline-flex; margin-top:10px; } }
@media (max-width: 460px){
  .container{ padding: 0 18px; }
  .header-cta{ display:none; }
  .brand-word{ font-size:17px; }
  .brand-tag{ font-size:8.5px; }
}

/* =============================== FOOTER ================================= */
footer.site-footer{ background: var(--ink); color: rgba(251,247,239,.75); padding: 88px 0 34px; }
footer.site-footer h4{ color: var(--cream); font-size: 14px; text-transform:uppercase; letter-spacing:.14em; font-family: var(--font-body); font-weight:700; margin-bottom: 22px;}
.footer-grid{ display:grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap: 50px; }
.footer-grid a{ display:block; margin-bottom: 12px; color: rgba(251,247,239,.68); font-size:14.5px; transition: color .3s; overflow-wrap:break-word; }
.footer-grid a:hover{ color: var(--gold-pale); }
.footer-brand p{ color: rgba(251,247,239,.6); max-width: 320px; margin-top:16px; }
.footer-bottom{ border-top:1px solid rgba(251,247,239,.14); margin-top: 64px; padding-top: 26px; display:flex; justify-content:space-between; font-size:13px; color: rgba(251,247,239,.45); flex-wrap:wrap; gap:10px;}
.social-row{ display:flex; gap:14px; margin-top:20px; }
.social-row a{ width:36px; height:36px; border:1px solid rgba(251,247,239,.25); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0; }
.social-row a:hover{ border-color: var(--gold-pale); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ============================== CURSOR (desktop) ========================= */
.cursor-dot, .cursor-ring{ position: fixed; top:0; left:0; pointer-events:none; z-index: 9999; transform: translate(-50%,-50%); will-change: transform; }
.cursor-dot{ width:7px; height:7px; border-radius:50%; background: var(--emerald); transition: background .25s ease, width .25s ease, height .25s ease, opacity .2s ease; }
.cursor-ring{ width:38px; height:38px; border-radius:50%; border:1.4px solid var(--emerald); transition: width .3s var(--ease-soft), height .3s var(--ease-soft), border-color .3s ease, background .3s ease, opacity .2s ease; }
.cursor-ring.hover{ width:60px; height:60px; background: rgba(18,60,46,.08); border-color: var(--gold); }
.cursor-dot.hover{ background: var(--gold); }
.cursor-heart{
  position: fixed; top:0; left:0; z-index:10000; pointer-events:none;
  transform: translate(-50%,-50%) scale(0); opacity:0;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.cursor-heart.show{ transform: translate(-50%,-50%) scale(1); opacity:1; }
.cursor-heart svg{ width:30px; height:30px; display:block; }
body.hide-native-cursor, body.hide-native-cursor a, body.hide-native-cursor button{ cursor:none; }
@media (pointer:coarse){
  .cursor-dot,.cursor-ring,.cursor-heart{ display:none !important; }
}

/* ============================== LIGHTBOX ================================= */
.lightbox{
  position: fixed; inset:0; z-index: 2000; background: rgba(20,17,13,.94);
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
  padding: 40px;
}
.lightbox.open{ opacity:1; visibility:visible; transition: opacity .45s var(--ease); }
.lightbox img{ max-width: min(92vw,1100px); max-height: 86vh; width:auto; border-radius: 4px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.6); transform: scale(.94); transition: transform .5s var(--ease-soft); }
.lightbox.open img{ transform: scale(1); }
.lightbox-close{ position:absolute; top:28px; right:34px; width:46px; height:46px; border-radius:50%; border:1px solid rgba(251,247,239,.35); background:transparent; color:var(--cream); display:flex; align-items:center; justify-content:center; cursor:pointer;}
.lightbox-close:hover{ border-color: var(--gold-pale); color: var(--gold-pale); }
.lightbox-cap{ position:absolute; bottom:32px; left:0; right:0; text-align:center; color: rgba(251,247,239,.7); font-size:13.5px; letter-spacing:.05em; }

/* ============================ reveal-on-scroll ============================ */
[data-reveal]{ opacity:0; transform: translateY(28px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].in{ opacity:1; transform: translateY(0); }
[data-reveal="fade"]{ transform:none; }
[data-reveal-delay="1"]{ transition-delay: .1s; }
[data-reveal-delay="2"]{ transition-delay: .2s; }
[data-reveal-delay="3"]{ transition-delay: .3s; }
[data-reveal-delay="4"]{ transition-delay: .4s; }
[data-reveal-delay="5"]{ transition-delay: .5s; }

/* ============================ hero shared bits ============================ */
.hero{ position:relative; min-height: 100svh; display:flex; align-items:flex-end; overflow:hidden; color: var(--cream); }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video, .hero-media img{ width:100%; height:100%; object-fit:cover; }
.hero-scrim{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,17,12,.55) 0%, rgba(20,17,12,.28) 38%, rgba(20,17,12,.78) 100%); }
.hero-inner{ position:relative; z-index:2; width:100%; padding: calc(var(--bar-h) + var(--header-h) + 66px) 0 96px; }
.hero-kicker{ display:flex; align-items:center; gap:14px; font-size:12.5px; letter-spacing:.28em; text-transform:uppercase; color: var(--gold-pale); font-weight:700; margin-bottom:26px;}
.hero-kicker .rule{ width:44px; height:1px; background: var(--gold-pale); }
.hero h1{ font-size: clamp(40px, 6vw, 84px); color: var(--cream); max-width: 15ch; }
.hero h1 em{ font-style:italic; color: var(--gold-pale); font-weight:400; }
.hero-sub{ max-width: 520px; color: rgba(251,247,239,.82); font-size: 17.5px; margin-top: 18px; }
.hero-actions{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }
.scroll-cue{ position:absolute; right:40px; bottom:36px; z-index:2; display:flex; flex-direction:column; align-items:center; gap:10px; color: rgba(251,247,239,.65); font-size:11px; letter-spacing:.2em; text-transform:uppercase;}
.scroll-cue .line{ width:1px; height:46px; background: rgba(251,247,239,.4); position:relative; overflow:hidden; }
.scroll-cue .line::after{ content:''; position:absolute; top:-100%; left:0; right:0; height:100%; background: var(--gold-pale); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue{ 0%{ top:-100%;} 60%{ top:100%;} 100%{ top:100%;} }

@media (max-width: 720px){
  .hero-inner{ padding: calc(var(--bar-h) + var(--header-h) + 16px) 0 64px; }
  .scroll-cue{ display:none; }
}

/* stat row */
.stat-row{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; position:relative; z-index:2; }
.stat{ padding: 30px 0 0; border-top:1px solid rgba(251,247,239,.22); }
.stat .num{ font-family: var(--font-display); font-size: clamp(30px,3.4vw,46px); color: var(--cream); display:flex; align-items:baseline; gap:2px;}
.stat .lbl{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: rgba(251,247,239,.6); margin-top:6px;}
@media (max-width:720px){ .stat-row{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); row-gap:26px;} }

/* generic section heading block */
.head-block{ max-width: 720px; margin-bottom: 64px; }
.head-block.center{ margin-left:auto; margin-right:auto; text-align:center; }
.head-block h2{ font-size: clamp(30px, 3.6vw, 50px); }
.head-block p{ font-size: 17px; margin-top: 14px; }

/* divider gem row */
.gem-divider{ display:flex; align-items:center; gap:16px; justify-content:center; margin: 0 0 54px; }
.gem-divider .ln{ height:1px; width:70px; background: var(--beige-line); }

/* card base */
.card{ background: var(--white); border:1px solid var(--beige-line); border-radius: var(--radius-md); }

/* form elements */
.field{ margin-bottom: 22px; }
.field label{ display:block; font-size:12.5px; text-transform:uppercase; letter-spacing:.12em; font-weight:700; color: var(--ink-soft); margin-bottom:9px; }
.field input, .field textarea, .field select{
  width:100%; background: var(--white); border:1px solid var(--beige-line); border-radius:4px;
  padding: 15px 16px; font-family: var(--font-body); font-size:15px; color: var(--ink); transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,129,76,.15); }
.field textarea{ resize: vertical; min-height:120px; }

.tag-pill{ display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border:1px solid var(--beige-line); border-radius:99px; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; font-weight:700; color: var(--ink-soft); background:var(--white); cursor:pointer; transition: all .3s ease;}
.tag-pill.active, .tag-pill:hover{ background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* utility */
.grid-2{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; align-items:center; }
.grid-3{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:32px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:26px; }
@media (max-width: 980px){ .grid-2{ grid-template-columns:minmax(0,1fr); gap:40px; } .grid-3{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .grid-4{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
@media (max-width: 620px){ .grid-3{ grid-template-columns:minmax(0,1fr); } .grid-4{ grid-template-columns:minmax(0,1fr); } }

.kicker-line{ text-align:center; font-family: var(--font-display); font-style:italic; font-size: 22px; color: var(--gold); margin-bottom: 8px; }

/* ============================ image-backed feature blocks ============================ */
.image-feature{ position:relative; border-radius:var(--radius-lg); overflow:hidden; background-size:cover; background-position:center; isolation:isolate; }
.image-feature::before{ content:''; position:absolute; inset:0; z-index:0; background:linear-gradient(180deg, rgba(20,17,12,.45), rgba(20,17,12,.82)); }
.image-feature > *{ position:relative; z-index:1; }

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

/* ============================ light-on-light stat variant ============================ */
.stat-light{ padding: 26px 0 0; border-top:1px solid var(--beige-line); }
.stat-light .num{ font-family: var(--font-display); font-size: clamp(28px,3vw,42px); color: var(--ink); }
.stat-light .lbl{ font-size:12px; letter-spacing:.09em; text-transform:uppercase; color: var(--ink-soft); margin-top:6px; }

/* ============================ TIMELINE (About) ============================ */
.timeline{ position:relative; max-width: 880px; margin: 0 auto; padding-left: 40px; }
.timeline::before{ content:''; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background: var(--beige-line); }
.timeline-item{ position:relative; padding-bottom: 56px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:''; position:absolute; left:-40px; top:4px; width:11px; height:11px; border-radius:50%; background: var(--cream); border:2px solid var(--gold); }
.timeline-year{ font-family:var(--font-display); font-size:26px; color:var(--gold); margin-bottom:6px; }
.timeline-item h3{ font-size:19px; margin-bottom:8px; }
.timeline-item p{ max-width:560px; }
.timeline-img-sticky{ position:sticky; top: calc(var(--bar-h) + var(--header-h) + 30px); }
@media (max-width: 980px){ .timeline-img-sticky{ position:static; } }

/* ============================ TEAM (About) ============================ */
.team-card{ text-align:center; padding: 36px 22px; border:1px solid var(--beige-line); border-radius:var(--radius-md); background:var(--white); transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft); }
.team-card:hover{ transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(43,38,32,.3); }
.team-avatar{ width:84px; height:84px; border-radius:50%; margin: 0 auto 20px; overflow:hidden; background: linear-gradient(135deg, var(--emerald-soft), var(--emerald)); border:2px solid var(--gold-pale); }
.team-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-card h3{ font-size:17px; margin-bottom:4px; }
.team-role{ font-size:12.5px; text-transform:uppercase; letter-spacing:.09em; color:var(--gold); font-weight:700; }
.team-card p{ margin-top:14px; font-size:14.5px; }

/* ============================ VALUES grid (About) ============================ */
.value-card{ padding: 8px 0; }
.value-icon{ width:52px; height:52px; border-radius:50%; background:var(--cream-deep); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.value-card h3{ font-size:18px; }

/* ============================ BLUEPRINT hero (Services) ============================ */
.hero-light{ min-height:82svh; display:flex; align-items:center; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); overflow:hidden; color:var(--ink); }
.hero-light .hero-inner{ padding: calc(var(--bar-h) + var(--header-h) + 16px) 0 70px; }
.blueprint-bg{ position:absolute; inset:0; z-index:0; opacity:.55; }
.blueprint-bg svg{ width:100%; height:100%; }
.blueprint-bg path, .blueprint-bg line, .blueprint-bg rect, .blueprint-bg circle{
  stroke: var(--gold); fill:none; stroke-width:1; stroke-dasharray: 900; stroke-dashoffset:900;
  animation: draw 3.4s var(--ease-soft) forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
.hero-light .hero-kicker{ color: var(--gold); }
.hero-light .hero-kicker .rule{ background: var(--gold); }
.hero-light h1{ color: var(--ink); }
.hero-light h1 em{ color: var(--emerald); }
.hero-light .hero-sub{ color: var(--ink-soft); }

/* ============================ SERVICE rows (Services) ============================ */
.service-row{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:70px; align-items:center; padding: 90px 0; border-bottom:1px solid var(--beige-line); }
.service-row:last-child{ border-bottom:none; }
.service-row.reverse .service-media{ order:2; }
.service-num{ font-family:var(--font-display); font-size:20px; color:var(--gold); margin-bottom:14px; letter-spacing:.05em; }
.service-media{ position:relative; border-radius: var(--radius-lg); overflow:hidden; box-shadow: 0 40px 80px -36px rgba(43,38,32,.32); }
.service-media img, .service-media video{ width:100%; height:100%; object-fit:cover; display:block; }
.service-list{ margin-top:22px; list-style:none; padding:0; }
.service-list li{ display:flex; gap:12px; padding:10px 0; border-top:1px solid var(--beige-line); font-size:15px; color:var(--ink-soft); }
.service-list li:first-child{ border-top:none; }
.service-list svg{ flex-shrink:0; margin-top:3px; }
.video-caption-tag{ position:absolute; top:22px; left:22px; z-index:2; padding:9px 20px; border-radius:99px; font-size:11.5px; letter-spacing:.18em; text-transform:uppercase; background:rgba(251,247,239,.92); color:var(--ink); font-weight:700; transition: all .4s ease; }
@media (max-width: 980px){ .service-row{ grid-template-columns:minmax(0,1fr); gap:34px; padding:60px 0; } .service-row.reverse .service-media{ order:0; } }

/* ---- featured full-width interior-design showcase ---- */
.service-feature{ padding: 90px 0; border-bottom:1px solid var(--beige-line); }
.service-feature-head{ max-width: 640px; margin: 0 auto 46px; text-align:center; }
.service-feature-head .service-num{ justify-content:center; }
.service-feature-head .service-list{ text-align:left; max-width:420px; margin:22px auto 0; }
.service-feature-frame{ padding:5px; border-radius: calc(var(--radius-lg) + 6px); background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--emerald)); box-shadow: 0 60px 130px -40px rgba(43,38,32,.4); }
.service-feature-media{ position:relative; border-radius: var(--radius-lg); overflow:hidden; }
.service-feature-media video{ width:100%; aspect-ratio: 16/9; object-fit:cover; display:block; }
.service-feature-media .video-caption-tag{ top:26px; left:26px; }
@media (max-width: 720px){
  .service-feature{ padding:60px 0; }
  .service-feature-media video{ aspect-ratio: 4/3; }
}

/* ============================ FILTER (Portfolio) ============================ */
.filter-row{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 50px; }

/* ============================ MASONRY gallery (Portfolio) ============================ */
.masonry{ columns: 3 240px; column-gap: 22px; }
.masonry-item{ break-inside: avoid; margin-bottom:22px; position:relative; border-radius: var(--radius-md); overflow:hidden; cursor:pointer; }
.masonry-item img{ width:100%; display:block; transition: transform .7s var(--ease-soft); }
.masonry-item:hover img{ transform: scale(1.07); }
.masonry-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,17,12,0) 50%, rgba(20,17,12,.75) 100%); opacity:0; transition:opacity .4s ease; display:flex; align-items:flex-end; padding:20px; pointer-events:none; }
.masonry-item:hover .masonry-overlay{ opacity:1; }
.masonry-overlay span{ color:var(--cream); font-size:13.5px; letter-spacing:.05em; }
.masonry-item.hide{ display:none; }
@media (max-width: 900px){ .masonry{ columns: 2 200px; } }
@media (max-width: 560px){ .masonry{ columns: 1 100%; } }

/* ============================ CASES (Cases page) ============================ */
.case-block{ display:grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap:64px; align-items:center; padding: 86px 0; border-bottom:1px solid var(--beige-line); }
.case-block:last-child{ border-bottom:none; }
.case-block.reverse .case-media{ order:2; }
.case-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow:0 40px 90px -40px rgba(43,38,32,.35); cursor:pointer; }
.case-media img{ width:100%; display:block; transition: transform .7s var(--ease-soft); }
.case-media:hover img{ transform: scale(1.05); }
.case-tag{ display:inline-block; padding:6px 16px; border-radius:99px; background:var(--cream-deep); color:var(--gold); font-size:11.5px; text-transform:uppercase; letter-spacing:.12em; font-weight:700; margin-bottom:18px; }
.case-stats{ display:flex; gap:34px; margin-top:26px; flex-wrap:wrap; }
.case-stats div div:first-child{ font-family:var(--font-display); font-size:26px; color:var(--emerald); }
.case-stats div div:last-child{ font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); margin-top:2px; }
.case-quote{ margin-top:24px; padding-left:20px; border-left:2px solid var(--gold-pale); font-family:var(--font-display); font-style:italic; font-size:17px; color:var(--ink); }
@media (max-width: 980px){ .case-block{ grid-template-columns:minmax(0,1fr); gap:32px; padding:56px 0; } .case-block.reverse .case-media{ order:0; } }

/* ============================ FAQ (Contacts) ============================ */
.faq-item{ border-bottom:1px solid var(--beige-line); padding: 26px 0; }
.faq-item summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; font-family:var(--font-display); font-size:19px; color:var(--ink); gap:20px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .plus{ flex-shrink:0; width:28px; height:28px; border-radius:50%; border:1px solid var(--beige-line); display:flex; align-items:center; justify-content:center; position:relative; transition: transform .4s ease, background .3s ease; }
.faq-item summary .plus::before, .faq-item summary .plus::after{ content:''; position:absolute; background:var(--ink); transition: transform .3s ease, opacity .3s ease; }
.faq-item summary .plus::before{ width:11px; height:1.4px; }
.faq-item summary .plus::after{ width:1.4px; height:11px; }
.faq-item[open] summary .plus{ background:var(--ink); }
.faq-item[open] summary .plus::before, .faq-item[open] summary .plus::after{ background:var(--cream); }
.faq-item[open] summary .plus::after{ transform: scaleY(0); }
.faq-item p{ margin-top:16px; max-width:640px; font-size:15.5px; }

/* ============================ CONTACT layout ============================ */
.contact-grid{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:70px; }
.contact-card{ display:flex; gap:18px; padding:26px 0; border-top:1px solid var(--beige-line); }
.contact-card > div:last-child{ min-width:0; }
.contact-card:first-child{ border-top:none; }
.contact-card .ic{ width:46px; height:46px; border-radius:50%; background:var(--cream-deep); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-card h3{ font-size:15.5px; margin-bottom:4px; }
.contact-card p{ margin:0; font-size:14.5px; }
.contact-card p a{ color: var(--gold-text); font-weight:600; border-bottom: 1px solid transparent; transition: color .3s ease, border-color .3s ease; overflow-wrap:break-word; }
.contact-card p a:hover{ color: var(--emerald); border-bottom-color: currentColor; }
.map-frame{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--beige-line); filter: grayscale(.25) sepia(.12) contrast(1.02); }
.map-frame iframe{ width:100%; height:340px; border:0; display:block; }
.form-success{ display:none; text-align:center; padding:50px 20px; }
.form-success.show{ display:block; animation: formSuccessIn .55s var(--ease-soft); }
.form-success svg{ margin-bottom:18px; }
.form-success svg path{ stroke-dasharray:16; stroke-dashoffset:16; animation: formCheckDraw .4s ease .25s forwards; }
.form-error{ display:none; align-items:flex-start; gap:10px; margin-top:16px; padding:16px 18px; border-radius:8px; background:rgba(181,67,47,.08); border:1px solid rgba(181,67,47,.25); font-size:13.5px; color:var(--ink); line-height:1.5; }
.form-error.show{ display:flex; animation: formErrorIn .5s ease; }

@keyframes formSuccessIn{
  0%{ opacity:0; transform: translateY(10px) scale(.96); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes formCheckDraw{ to{ stroke-dashoffset:0; } }
@keyframes formErrorIn{
  0%{ opacity:0; transform: translateY(8px); }
  45%{ opacity:1; transform: translateY(0) translateX(0); }
  57%{ transform: translateX(-7px); }
  69%{ transform: translateX(6px); }
  81%{ transform: translateX(-4px); }
  93%{ transform: translateX(2px); }
  100%{ transform: translateX(0); }
}
@media (max-width: 980px){ .contact-grid{ grid-template-columns:minmax(0,1fr); gap:44px; } }

/* ============================ CLOCK (Contacts signature) ============================ */
.clock-wrap{ display:flex; align-items:center; justify-content:center; position:relative; }
.clock-svg{ width: min(360px, 80vw); height: auto; }
.clock-hand{ }
.clock-caption{ text-align:center; margin-top:18px; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); }

/* ============================ social link rows (Contacts) ============================ */
.social-link-row{ display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--beige-line); border-radius:var(--radius-sm); margin-bottom:10px; background:var(--white); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.social-link-row:hover{ border-color:var(--gold); transform:translateX(4px); box-shadow:0 14px 28px -18px rgba(43,38,32,.25); }
.social-link-row .ic{ width:36px; height:36px; border-radius:50%; background:var(--cream-deep); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.social-link-row span:not(.ic){ font-size:14.5px; color:var(--ink); font-weight:600; flex:1; }
.social-link-row span em{ font-style:normal; color:var(--ink-soft); font-weight:400; }
.social-link-row .go{ color:var(--gold); flex-shrink:0; }

/* masonry fade transition for filtering */
.masonry-item{ transition: opacity .35s ease; }
