/* ==========================================================================
   Via Group Holding — site styles
   Edit the variables below to change colours, fonts and spacing site-wide.
   ========================================================================== */
:root {
  /* Colours */
  --ink: #0c0d0f;            /* main dark background */
  --ink-2: #131519;          /* raised dark surface */
  --ink-3: #1b1e23;
  --paper: #f2ede3;          /* light sections */
  --paper-2: #e8e1d3;
  --text: #ece7dc;           /* text on dark */
  --text-dark: #17191d;      /* text on light */
  --muted: rgba(236, 231, 220, .62);
  --muted-dark: rgba(23, 25, 29, .62);
  --line: rgba(236, 231, 220, .14);
  --line-dark: rgba(23, 25, 29, .14);
  --gold: #c9a96e;           /* champagne gold, matched to the Regenta accent at client request */
  --gold-hi: #d9b97a;
  --gold-ink: #15130b;       /* text on gold buttons */

  /* Type */
  --font-display: "Tenor Sans", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1560px;
  --gutter: 40px;
  --section: clamp(96px, 11vw, 168px);
  --nav-h: 96px;

  /* Motion */
  --ease: cubic-bezier(.76, 0, .24, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 991px) { :root { --gutter: 32px; --nav-h: 80px; } }
@media (max-width: 479px) { :root { --gutter: 20px; --nav-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-weight: 300;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; text-transform: uppercase; letter-spacing: .02em; line-height: 1.04; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 3000; background: var(--gold); color: var(--gold-ink); padding: 12px 18px; }
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.is-tight { padding-top: calc(var(--section) * .6); }
.section.is-light { background: var(--paper); color: var(--text-dark); }
.section + .section:not(.is-light):not(.is-flush) { border-top: 1px solid var(--line); }

/* ---------- Type helpers ---------- */
.eyebrow { font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; line-height: 1.5; }
.eyebrow.is-gold { color: var(--gold); }
.eyebrow.is-muted { color: var(--muted); }
.is-light .eyebrow.is-muted { color: var(--muted-dark); }
.is-light .eyebrow.is-gold { color: #8a7322; }
.h-xl { font-size: clamp(48px, 7.4vw, 128px); line-height: .98; }
.h-l { font-size: clamp(38px, 4.6vw, 76px); }
.h-m { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
.muted { color: var(--muted); }
.is-light .muted { color: var(--muted-dark); }
.measure { max-width: 34em; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.65; }

/* Links with animated underline */
.u-link, .footer a, .menu-meta a, .menu-sub a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .34em;
  text-decoration-color: transparent; transition: color .35s ease, text-decoration-color .35s ease;
}
.u-link:hover, .footer a:hover, .menu-meta a:hover, .menu-sub a:hover { text-decoration-color: currentColor; }
.text-link { display: inline-flex; gap: 10px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .35s, gap .35s var(--out); }
.text-link:hover { color: var(--gold); gap: 16px; }
.is-light .text-link:hover { color: #8a7322; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 34px; border: 1px solid var(--gold); background-color: var(--gold); color: var(--gold-ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
  background-image: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)); background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .6s var(--ease), background-color .4s, color .4s, border-color .4s;
}
.btn:hover { background-size: 100% 100%; }
.btn.is-outline { background-color: transparent; color: var(--text); border-color: rgba(236,231,220,.32); background-image: linear-gradient(rgba(236,231,220,.1), rgba(236,231,220,.1)); }
.btn.is-outline:hover { border-color: var(--text); }
.is-light .btn.is-outline { color: var(--text-dark); border-color: rgba(23,25,29,.3); background-image: linear-gradient(rgba(23,25,29,.06), rgba(23,25,29,.06)); }
.btn.is-small { min-height: 48px; padding: 0 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h);
  transition: background-color .5s ease, box-shadow .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nav::before { /* soft top shade so the nav reads over video */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(8,9,10,.55), rgba(8,9,10,0)); transition: opacity .5s;
}
.nav.is-solid { background: rgba(12,13,15,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.nav.is-solid::before { opacity: 0; }
.nav-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 18px; background: none; border: 0; padding: 10px 0; cursor: pointer; }
.nav-menu-icon { width: 44px; height: 10px; position: relative; }
.nav-menu-icon::before, .nav-menu-icon::after { content: ""; position: absolute; left: 0; height: 1px; background: currentColor; transition: width .5s var(--out); }
.nav-menu-icon::before { top: 0; width: 100%; }
.nav-menu-icon::after { bottom: 0; width: 70%; }
.nav-menu-btn:hover .nav-menu-icon::after { width: 100%; }

.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.logo-mark { width: 50px; height: auto; color: var(--gold); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 22px; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.logo-sub { font-size: 9.5px; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--out); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; justify-self: end; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; }
.nav-burger span:nth-child(1) { top: 14px; } .nav-burger span:nth-child(2) { top: 21px; } .nav-burger span:nth-child(3) { top: 28px; }

@media (max-width: 991px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-menu-btn, .nav-right { display: none; }
  .nav-burger { display: block; }
  .logo-mark { width: 40px; }
  .logo-name { font-size: 18px; }
}
@media (max-width: 479px) { .logo-sub { letter-spacing: .38em; } }

/* ==========================================================================
   Menu overlay (desktop split screen / mobile full screen)
   ========================================================================== */
.menu { position: fixed; inset: 0; z-index: 1500; display: grid; grid-template-columns: 1.05fr 1fr; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu-panel { background: var(--ink); display: flex; flex-direction: column; padding: 0 var(--gutter) 48px; transform: translateY(-100%); transition: transform .9s var(--ease); }
.menu-media { position: relative; overflow: hidden; transform: translateY(100%); transition: transform .9s var(--ease); }
.menu.is-open .menu-panel, .menu.is-open .menu-media { transform: none; }
.menu-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--out); }
.menu.is-open .menu-media img { transform: none; }
.menu-cap { position: absolute; left: 32px; bottom: 28px; background: rgba(12,13,15,.72); padding: 12px 18px; }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-close { display: inline-flex; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer; padding: 10px 0; }
.menu-close-x { width: 22px; height: 22px; position: relative; }
.menu-close-x::before, .menu-close-x::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu-close-x::after { transform: rotate(-45deg); }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.menu-link { display: flex; align-items: baseline; gap: 28px; padding: 10px 0; overflow: hidden; }
.menu-num { font-size: 12px; letter-spacing: .2em; color: var(--muted); min-width: 24px; }
.menu-word { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 72px); line-height: 1.05; text-transform: uppercase; transform: translateY(calc(100% + 26px)); transition: transform .9s var(--out), color .35s; }
.menu.is-open .menu-word { transform: none; }
.menu-link:nth-child(2) .menu-word { transition-delay: .06s; } .menu-link:nth-child(3) .menu-word { transition-delay: .12s; }
.menu-link:nth-child(4) .menu-word { transition-delay: .18s; } .menu-link:nth-child(5) .menu-word { transition-delay: .24s; }
.menu.is-open .menu-link .menu-word { transition-delay: calc(.35s + var(--i, 0) * .07s); }
.menu-link:hover .menu-word { color: var(--gold); }
.menu-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 15px; color: var(--muted); }
.menu-meta .eyebrow { color: var(--text); margin-bottom: 8px; }
.menu-sub, .menu-cta { display: none; }

@media (max-width: 991px) {
  .menu { grid-template-columns: 1fr; }
  .menu-media { display: none; }
  .menu-panel { background: var(--paper); color: var(--text-dark); overflow-y: auto; transform: translateY(-12px); opacity: 0; transition: transform .45s var(--out), opacity .22s ease; }
  .menu-word { transform: translateY(calc(100% + 26px)); transition: transform .8s var(--out), color .35s; }
  .menu.is-open .menu-link .menu-word { transition-delay: calc(.28s + var(--i, 0) * .07s); }
  .menu.is-open .menu-panel { opacity: 1; }
  .menu-panel .logo { color: var(--text-dark); }
  .menu-panel .logo-sub { color: var(--muted-dark); }
  .menu-nav { flex: none; justify-content: flex-start; padding: 12px 0 0; border-top: 1px solid var(--line-dark); }
  .menu-link { border-bottom: 1px solid var(--line-dark); padding: 20px 0; }
  .menu-num { display: none; }
  .menu-word { font-size: 30px; }
  .menu-link:hover .menu-word { color: #8a7322; }
  .menu-meta { display: none; }
  .menu-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 28px 0; font-size: 17px; font-weight: 400; }
  .menu-cta { display: flex; width: 100%; justify-content: flex-start; margin-bottom: 24px; }
  .menu-close-label { display: none; }
}

/* ==========================================================================
   Hero (home, video)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #0a0b0c; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { animation: none; } /* the film already moves; no zoom-in, so nothing is cropped or resampled */
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,11,13,.35) 0%, rgba(10,11,13,.12) 35%, rgba(10,11,13,.55) 70%, rgba(10,11,13,.9) 100%),
  linear-gradient(90deg, rgba(10,11,13,.5) 0%, rgba(10,11,13,0) 60%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
.hero h1 { margin: 24px 0 0; max-width: 15ch; font-size: clamp(44px, 6.2vw, 108px); }
.hero-bottom { margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(236,231,220,.22); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.facts { display: flex; gap: clamp(32px, 5vw, 88px); flex-wrap: wrap; }
.fact-value { font-family: var(--font-display); font-size: clamp(30px, 2.8vw, 46px); line-height: 1; margin-top: 12px; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(236,231,220,.35); background: rgba(12,13,15,.4); cursor: pointer; display: grid; place-items: center;
}
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }
.hero .hero-bottom { padding-right: 60px; }

@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }

@media (max-width: 767px) {
  .hero-content { padding-bottom: 88px; }
  .hero-bottom { flex-direction: column; align-items: stretch; margin-top: 40px; padding-right: 0 !important; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .btn-row.is-stack-mobile { flex-direction: column; }
  .btn-row.is-stack-mobile .btn { width: 100%; }
  .video-toggle { bottom: 24px; }
}

/* Page hero (inner pages, image with slow zoom-out) */
.page-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--out) both; }
.page-hero .hero-shade { background: linear-gradient(180deg, rgba(10,11,13,.45) 0%, rgba(10,11,13,.15) 35%, rgba(10,11,13,.88) 100%), linear-gradient(90deg, rgba(10,11,13,.62) 0%, rgba(10,11,13,0) 70%); }
.page-hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; }
.page-hero h1 { margin: 22px 0 18px; }
.page-hero-price { font-family: var(--font-display); font-size: clamp(22px, 2vw, 32px); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ==========================================================================
   Statement (scroll-lit text)
   ========================================================================== */
.statement { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 64px; }
.statement-aside p { margin-top: 18px; max-width: 18em; }
.statement-text { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 60px); line-height: 1.16; text-transform: uppercase; letter-spacing: .01em; }
.statement-main .text-link { margin-top: 56px; }
.scrub .w { opacity: .16; transition: opacity .45s ease; }
.scrub .w.on { opacity: 1; }
@media (max-width: 991px) { .statement { grid-template-columns: 1fr; gap: 48px; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 56px; padding-right: 56px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 42px); letter-spacing: .14em; text-transform: uppercase; color: rgba(236,231,220,.82); }
.marquee-dot { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .h-l { max-width: 14ch; }
.section-head-text { max-width: 26em; }
.head-stack { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 767px) { .section-head { flex-direction: column; align-items: flex-start; gap: 24px; } }

/* ==========================================================================
   Project / division rows
   ========================================================================== */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 220px 60px 1.6fr 1fr 1fr 64px; align-items: center; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .5s var(--out);
}
.row:hover { background: rgba(255,255,255,.025); }
.row-thumb { aspect-ratio: 16 / 11; overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.row:hover .row-thumb img { transform: scale(1.08); }
.row-name { font-family: var(--font-display); font-size: clamp(30px, 3.3vw, 56px); text-transform: uppercase; line-height: 1; transition: transform .6s var(--out), color .4s; }
.row-name small { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: .24em; color: var(--muted); margin-top: 14px; }
.row:hover .row-name { transform: translateX(18px); color: var(--gold-hi); }
.row-status { color: var(--gold); }
.round-arrow { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; justify-self: end; transition: transform .5s var(--out), background .4s, color .4s, border-color .4s; }
.row:hover .round-arrow { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); transform: rotate(-45deg); }
.rows.is-divisions .row { grid-template-columns: 90px 1.4fr 1.4fr 160px 64px; }
.row-index { font-family: var(--font-display); font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(236,231,220,.4); transition: -webkit-text-stroke-color .4s, color .4s; }
.row:hover .row-index { -webkit-text-stroke-color: var(--gold); }
.row-desc { max-width: 30em; }

@media (max-width: 991px) {
  .row { grid-template-columns: 1fr 64px; gap: 18px 20px; padding: 32px 0; }
  .row-thumb { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .row > .row-num { display: none; }
  .row-name { grid-column: 1 / 2; }
  .row .round-arrow { grid-row: 2; grid-column: 2; }
  .row-loc, .row-status { grid-column: 1 / -1; }
  .rows.is-divisions .row { grid-template-columns: 1fr 52px; gap: 16px; }
  .rows.is-divisions .row-index { grid-column: 1; grid-row: 1; font-size: 32px; align-self: center; }
  .rows.is-divisions .round-arrow { grid-column: 2; grid-row: 1; width: 52px; height: 52px; }
  .rows.is-divisions .row-name { grid-column: 1 / -1; grid-row: 2; }
  .rows.is-divisions .row-desc { grid-column: 1 / -1; grid-row: 3; }
  .rows.is-divisions .row-status { grid-column: 1 / -1; grid-row: 4; }
  .row:hover .row-name { transform: none; }
}

/* ==========================================================================
   Feature (media + stacked content)
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.feature-media { position: sticky; top: calc(var(--nav-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.media-tag { position: absolute; left: 24px; bottom: 24px; background: rgba(12,13,15,.78); padding: 13px 20px; }
.feature-content { display: flex; flex-direction: column; gap: 80px; padding-top: 24px; }
.feature-block { display: flex; flex-direction: column; gap: 24px; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.unit-value { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 40px); line-height: 1; margin-top: 10px; }
.unit-value sup { font-size: .5em; }
@media (max-width: 991px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .feature-content { gap: 56px; }
}
@media (max-width: 479px) { .unit-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Card rail (layouts)
   ========================================================================== */
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 28px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(236,231,220,.45); background: none; cursor: pointer; font-size: 18px; transition: background .3s, opacity .3s; }
.rail-nav button:hover { background: rgba(236,231,220,.1); }
.rail-nav button:disabled { opacity: .3; cursor: default; background: none; }
.rail { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); cursor: grab; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag * { pointer-events: none; }
@media (min-width: 1641px) { .rail { padding-left: calc((100vw - var(--container)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.card { flex: 0 0 clamp(280px, 30vw, 460px); scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(12,13,15,.65); color: #fff; display: grid; place-items: center; font-size: 22px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; }
.card:hover .card-img::after { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 22px; }

/* ==========================================================================
   Delivery stages (light)
   ========================================================================== */
.stages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.stages-big { font-family: var(--font-display); font-size: clamp(110px, 15vw, 240px); line-height: .9; letter-spacing: -.01em; margin: 28px 0 18px; }
.stages { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.stage { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.stage-num { font-size: 12px; letter-spacing: .2em; color: #8a7322; padding-top: 5px; }
.stage-title { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.stage p { margin-top: 6px; color: var(--muted-dark); font-size: 16px; }
.stages-img { aspect-ratio: 4 / 5; overflow: hidden; }
.stages-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) { .stages-grid { grid-template-columns: 1fr; } .stages-img { aspect-ratio: 4 / 3; order: -1; } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 32px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-display); font-size: clamp(54px, 6vw, 104px); line-height: 1; margin-bottom: 18px; }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px 32px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line); }
  .stat-value { font-size: 44px; white-space: nowrap; }
}

/* ==========================================================================
   Band (full-bleed image + content): cities, viewing form
   ========================================================================== */
.band { position: relative; overflow: hidden; padding: clamp(120px, 14vw, 220px) 0; }
.band-bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band-shade { position: absolute; inset: 0; background: rgba(10,11,13,.68); }
.band-shade.is-side { background: linear-gradient(90deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,.72) 55%, rgba(10,11,13,.5) 100%); }
.band-content { position: relative; z-index: 2; }
.city-list { margin-top: 56px; max-width: 760px; border-top: 1px solid rgba(236,231,220,.25); }
.city-row { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(236,231,220,.25); font-size: 19px; }
.city-row span:last-child { color: var(--gold); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; align-self: center; text-align: right; }

.viewing-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); align-items: end; }
.viewing-copy .h-l { margin: 22px 0 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  appearance: none; -webkit-appearance: none; border-radius: 0; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid rgba(236,231,220,.35); color: var(--text);
  padding: 10px 0 14px; font: inherit; font-size: 18px; transition: border-color .35s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c9a96e' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; cursor: pointer; }
.field select option { color: #111; }
.field input::placeholder { color: var(--text); opacity: .4; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 14px; color: var(--muted); }
.form-success { display: none; grid-column: 1 / -1; padding: 28px; border: 1px solid var(--gold); background: rgba(12,13,15,.6); }
.form.is-sent .field, .form.is-sent .form-actions { display: none; }
.form.is-sent .form-success { display: block; }
.form-actions { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 991px) { .viewing-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .form { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 110px 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 26px; max-width: 24em; color: var(--muted); font-size: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer-col .eyebrow { margin-bottom: 10px; }
.footer-col a, .footer-col span { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 90px; display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 991px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Haskovo page: facts grid, gallery, video band
   ========================================================================== */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.fact-cell { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-cell:nth-child(4n) { border-right: 0; }
.fact-cell:nth-last-child(-n+4) { border-bottom: 0; }
.fact-cell .val { font-family: var(--font-display); font-size: 24px; margin-top: 12px; line-height: 1.2; text-transform: none; }
@media (max-width: 991px) {
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-cell { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .fact-cell:nth-child(2n) { border-right: 0 !important; }
  .fact-cell:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 479px) { .fact-cell { padding: 24px 18px; } .fact-cell .val { font-size: 19px; } }



.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(160px, 17vw, 280px); gap: 16px; }
.gal-item { position: relative; overflow: hidden; border: 0; padding: 0; background: var(--ink-2); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.gal-item:hover img { transform: scale(1.07); }
.gal-item::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(12,13,15,.6); color: #fff; display: grid; place-items: center; font-size: 22px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; }
.gal-item:hover::after { opacity: 1; transform: none; }
.gal-item:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.gal-item:nth-child(6n+2), .gal-item:nth-child(6n+3) { grid-column: span 5; }
.gal-item:nth-child(6n+4), .gal-item:nth-child(6n+5), .gal-item:nth-child(6n) { grid-column: span 4; }
.gal-item:nth-child(5):last-child { grid-column: span 8; }
@media (max-width: 767px) {
  .gallery { grid-auto-rows: 150px; gap: 10px; }
  .gal-item { grid-column: span 6 !important; grid-row: span 1 !important; }
  .gal-item:nth-child(3n+1) { grid-column: span 12 !important; grid-row: span 2 !important; }
}

.video-band { position: relative; aspect-ratio: 21 / 9; min-height: 420px; overflow: hidden; }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band .band-shade { background: linear-gradient(180deg, rgba(10,11,13,.1), rgba(10,11,13,.75)); }
.video-band-content { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 2; }
@media (max-width: 767px) { .video-band { aspect-ratio: 4 / 5; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8,9,10,.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 90vw; max-height: 82vh; object-fit: contain; transform: scale(.95); transition: transform .6s var(--out); }
.lb.is-open img { transform: none; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(8,9,10,.4); color: #fff; font-size: 20px; cursor: pointer; transition: background .3s; }
.lb button:hover { background: rgba(255,255,255,.12); }
.lb .lb-x { top: 22px; right: 22px; } .lb .lb-p { left: 22px; } .lb .lb-n { right: 22px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: var(--muted); }
@media (max-width: 599px) { .lb .lb-p, .lb .lb-n { top: auto; bottom: 64px; } .lb .lb-p { left: calc(50% - 64px); } .lb .lb-n { right: calc(50% - 64px); } .lb-cap { bottom: 20px; font-size: 11px; } }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 1200; max-width: 440px; background: var(--ink-2); border: 1px solid var(--line); padding: 26px; font-size: 15px; color: var(--muted); transform: translateY(24px); opacity: 0; visibility: hidden; transition: all .6s var(--out); }
.cookie.is-on { transform: none; opacity: 1; visibility: visible; }
.cookie .btn-row { margin-top: 20px; }
@media (max-width: 479px) { .cookie { left: 12px; right: 12px; bottom: 12px; } }

/* ==========================================================================
   Motion (only when JS + IntersectionObserver are available)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--out), transform 1s var(--out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-clip] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-clip] img { transform: scale(1.2); transition: transform 2s var(--out); }
.js [data-clip].in { clip-path: inset(0 0 0 0); }
.js [data-clip].in img { transform: none; }
.js .split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .sw > span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--out); }
.js .split.in .sw > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scrub .w { opacity: 1; }
}

/* ==========================================================================
   Completed projects (slow-motion building films)
   ========================================================================== */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 28px; }
.project { margin: 0; }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.project-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--out), opacity .8s ease; opacity: 0; }
.project-media video.is-ready { opacity: 1; }
.project:hover .project-media video { transform: scale(1); }
.project-media::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/via-mark.svg") center / 64px auto no-repeat; opacity: .14; transition: opacity .6s; pointer-events: none; }
.project-media.has-video::after { opacity: 0; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--out); }
.project:hover .project-media img { transform: scale(1); }
.projects-tabs { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.projects-tab { position: relative; background: none; border: 0; color: var(--muted); font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); padding: 0 0 18px; cursor: pointer; display: inline-flex; align-items: baseline; gap: 10px; transition: color .4s var(--out); }
.projects-tab small { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.projects-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out); }
.projects-tab:hover, .projects-tab[aria-selected="true"] { color: var(--text); }
.projects-tab[aria-selected="true"]::after { transform: scaleX(1); }
.projects-tab:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
.projects-body .project { animation: projectIn .8s var(--out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes projectIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.projects-archive { margin-top: 56px; }
.projects-archive[hidden] { display: none; }
.projects-archive .projects { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.project-names { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.projects + .project-names { margin-top: 48px; }
.project-name { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-name .h-m { font-size: clamp(20px, 1.6vw, 26px); }
.projects-more { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 56px; }
.projects-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .projects-body .project { animation: none; } }
@media (max-width: 1199px) { .projects-archive .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .project-names { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .projects { grid-template-columns: 1fr; gap: 40px; } .projects-archive .projects, .project-names { grid-template-columns: 1fr; gap: 40px; } .project-names { gap: 0; } .projects-tabs { gap: 6px 24px; margin-bottom: 36px; } }


[data-drift] { will-change: transform; transform: scale(1.12); transition: transform .3s linear !important; }
