/* ==========================================================================
   СТОУН Блик — landing page
   Palette: bg #002662 / accent #c2cdf7
   Fonts: TT Hoves Pro Trial (sans, body/UI) · TT Livret Display Trl (display)
   ========================================================================== */

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TTHovesProTrial-Rg.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Livret Display';
  src: url('../fonts/TTLivretDisplayTrl-Lt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #002662;
  --bg-deep: #001742;
  --bg-deeper: #000f30;
  --accent: #c2cdf7;
  --accent-soft: rgba(194, 205, 247, .55);
  --accent-dim: rgba(194, 205, 247, .16);
  --white: #ffffff;
  --ink: rgba(255, 255, 255, .92);
  --ink-muted: rgba(255, 255, 255, .62);
  --ink-faint: rgba(255, 255, 255, .38);
  --surface: rgba(255, 255, 255, .045);
  --surface-hover: rgba(255, 255, 255, .08);
  --border: rgba(194, 205, 247, .2);
  --border-soft: rgba(255, 255, 255, .1);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ff-display: 'TT Livret Display', Georgia, serif;
  --ff-sans: 'TT Hoves', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.h-display {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: .002em;
  line-height: 1.06;
  color: var(--white);
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 76px) 0; }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 14px; }
.section-head p { color: var(--ink-muted); font-size: 17px; margin-top: 16px; max-width: 620px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* subtle alternating panel tone */
.section--deep { background: var(--bg-deep); }
.section--deeper { background: var(--bg-deeper); }

/* waterline divider — signature motif */
.waterline {
  position: relative;
  height: 56px;
  overflow: hidden;
  z-index: 2;
}
.waterline svg { width: 100%; height: 100%; display: block; }
.waterline path { stroke: var(--accent); stroke-opacity: .35; fill: none; stroke-width: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s ease, border-color .3s ease, color .3s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-deeper);
}
.btn-primary:hover { background: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 22px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 20px 0;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 20, 62, .86);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 14px 0;
  border-color: var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .mark { display: flex; align-items: baseline; font-size: 22px; }
.logo .mark b { font-weight: 700; letter-spacing: -.01em; }
.logo .mark span { font-family: var(--ff-display); font-weight: 300; letter-spacing: .01em; margin-left: 1px; }
.logo .tagline { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 13.5px;
  color: var(--ink-muted);
  letter-spacing: .01em;
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--accent);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 14.5px; font-weight: 700; color: var(--white); letter-spacing: .01em; }
.header-phone .dot { color: var(--accent); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.burger span, .burger::before, .burger::after {
  content: '';
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.burger::before { top: 15px; }
.burger span { top: 19.5px; }
.burger::after { top: 24px; }
.burger.is-active::before { transform: translateY(4.5px) rotate(45deg); }
.burger.is-active::after { transform: translateY(-4.5px) rotate(-45deg); }
.burger.is-active span { opacity: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,15,48,.55) 0%, rgba(0,15,48,.25) 32%, rgba(0,15,48,.55) 68%, rgba(0,15,48,.96) 100%),
    linear-gradient(90deg, rgba(0,15,48,.55) 0%, rgba(0,15,48,0) 45%);
}
.hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(40px, 6vw, 76px);
}
.hero-eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow span.line { width: 40px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: .98;
  color: var(--white);
  max-width: 15ch;
}
.hero-address {
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-foot {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}
.hero-facts { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.hero-fact b { font-family: var(--ff-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); color: var(--white); display: block; }
.hero-fact span { font-size: 12.5px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
  writing-mode: horizontal-tb;
}

/* ---------- water-level scroll rail (signature) ---------- */
.tide-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.tide-rail.is-visible { opacity: 1; pointer-events: auto; }
.tide-rail .rail-track {
  position: relative;
  width: 1px;
  height: 220px;
  background: var(--border-soft);
}
.tide-rail .rail-fill {
  position: absolute; top: 0; left: 0; width: 100%;
  background: var(--accent);
  height: 0%;
  transition: height .2s linear;
}
.tide-rail .rail-marker {
  position: absolute;
  left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  top: 0%;
  box-shadow: 0 0 0 4px rgba(194,205,247,.15);
  transition: top .2s linear;
}
.tide-rail .rail-label {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  min-height: 26px;
}
@media (max-width: 1100px) { .tide-rail { display: none; } }

/* ---------- stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--bg-deep);
  padding: 30px 26px;
}
.stat-cell b { font-family: var(--ff-display); font-weight: 300; font-size: clamp(26px, 3vw, 38px); color: var(--white); display: block; }
.stat-cell span { font-size: 13px; color: var(--ink-muted); margin-top: 8px; display: block; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- about layout ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-copy p { font-size: 18px; color: var(--ink); line-height: 1.65; }
.about-copy p + p { margin-top: 18px; }
.about-quote {
  margin-top: 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.about-side { position: relative; }
.about-side img { border-radius: var(--radius); }
.about-tag {
  position: absolute;
  left: -18px;
  bottom: -26px;
  background: var(--accent);
  color: var(--bg-deeper);
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  max-width: 230px;
  line-height: 1.4;
  box-shadow: 0 24px 48px rgba(0,8,30,.5);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-tag { position: static; margin-top: 20px; max-width: none; }
}

/* ---------- architecture ---------- */
.arch-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.arch-wrap img { width: 100%; height: clamp(340px, 46vw, 560px); object-fit: cover; }
.arch-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,15,48,.92) 0%, rgba(0,15,48,.55) 42%, rgba(0,15,48,.05) 75%);
}
.arch-copy {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}
.arch-copy .inner { max-width: 520px; }
.arch-copy blockquote {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.32;
  color: var(--white);
  margin: 18px 0 0;
}
.arch-copy cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  color: var(--accent-soft);
  letter-spacing: .02em;
}

/* ---------- location / transport ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.loc-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.loc-card:hover { background: var(--surface-hover); border-color: var(--border); transform: translateY(-4px); }
.loc-card .ico { width: 40px; height: 40px; margin-bottom: 18px; color: var(--accent); }
.loc-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; letter-spacing: .01em; }
.loc-card ul li {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 14px; color: var(--ink-muted);
  padding: 8px 0; border-top: 1px solid var(--border-soft);
}
.loc-card ul li:first-child { border-top: none; }
.loc-card ul li b { color: var(--white); font-weight: 700; white-space: nowrap; }

.env-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 46px; }
.env-item { text-align: left; }
.env-item .num { font-family: var(--ff-display); font-size: 15px; color: var(--accent); margin-bottom: 10px; display:block; }
.env-item h5 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.env-item p { font-size: 12.8px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 980px) { .loc-grid { grid-template-columns: 1fr; } .env-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- infrastructure feature cards ---------- */
.feature-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  gap: 20px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  grid-row: span 34;
}
.feature-card.tall { grid-row: span 46; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature-card:hover img { transform: scale(1.06); }
.feature-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,10,40,0) 40%, rgba(0,10,40,.86) 100%);
}
.feature-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 22px;
}
.feature-card .cap h4 { font-size: 15.5px; font-weight: 700; color: var(--white); }
.feature-card .cap p { font-size: 12.8px; color: var(--ink-muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 980px) {
  .feature-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-masonry { grid-template-columns: 1fr; }
  .feature-card, .feature-card.tall { grid-row: span 30; height: 260px; }
}

/* ---------- tech / engineering list ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.tech-item { background: var(--bg-deeper); padding: 30px 28px; }
.tech-item .n { font-family: var(--ff-display); color: var(--accent); font-size: 14px; display: block; margin-bottom: 14px; }
.tech-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.tech-item p { font-size: 13.8px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 900px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- apartment formats ---------- */
.format-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0;
}
.format-tab {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 6px;
  margin-right: 26px;
  position: relative;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.format-tab::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.format-tab.is-active { color: var(--white); }
.format-tab.is-active::after { transform: scaleX(1); }
.format-tab:hover { color: var(--white); }

.format-panel { display: none; }
.format-panel.is-active { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.format-plan {
  background: #eef0f9;
  border-radius: var(--radius);
  padding: 18px;
}
.format-plan img { border-radius: 6px; }
.format-info .range {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 54px);
  color: var(--white);
  line-height: 1;
}
.format-info .range sup { font-size: .4em; margin-left: 4px; }
.format-info .range-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-soft); margin-top: 10px; }
.format-info p.desc { color: var(--ink-muted); font-size: 15.5px; margin-top: 22px; line-height: 1.6; max-width: 46ch; }
.format-info .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.format-info .chips span {
  font-size: 12.5px; color: var(--ink); border: 1px solid var(--border-soft); border-radius: 100px; padding: 8px 16px;
}
@media (max-width: 800px) {
  .format-panel.is-active { grid-template-columns: 1fr; }
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative; aspect-ratio: 1/1;}
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a.wide { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a.wide { grid-column: span 2; }
}

/* ---------- developer / STONE ---------- */
.dev-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.dev-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
.dev-stats .stat b { font-family: var(--ff-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); color: var(--accent); display: block; }
.dev-stats .stat span { font-size: 13px; color: var(--ink-muted); margin-top: 8px; display: block; line-height: 1.4; }

/* ---------- contact / cta ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(30px, 5vw, 70px);
  background: linear-gradient(145deg, rgba(194,205,247,.08), rgba(194,205,247,.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 60px);
}
.contact-info h2 { font-size: clamp(28px, 3.6vw, 44px); }
.contact-info p { color: var(--ink-muted); margin-top: 16px; font-size: 15.5px; max-width: 44ch; line-height: 1.6; }
.contact-methods { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.contact-methods a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-top: 1px solid var(--border-soft);
  font-size: 15px; font-weight: 700;
  transition: color .25s ease;
}
.contact-methods a:first-child { border-top: none; }
.contact-methods a:hover { color: var(--accent); }
.contact-methods a small { font-weight: 400; color: var(--ink-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }

.lead-form { background: var(--bg-deeper); border-radius: 18px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--border-soft); }
.lead-form h3 { font-size: 20px; margin-bottom: 6px; }
.lead-form .sub { color: var(--ink-muted); font-size: 13.8px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 8px; }
.field input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 15px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .25s ease, background .25s ease;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.08); }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-faint); margin: 18px 0 22px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-msg { font-size: 13.5px; margin-top: 14px; min-height: 18px; }
.form-msg.ok { color: #9be29b; }
.form-msg.err { color: #ffb0b0; }
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deeper); border-top: 1px solid var(--border-soft); padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--border-soft); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-soft); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; }
.footer-bottom .legal { max-width: 720px; }
@media (max-width: 700px) { .footer-top, .footer-bottom { flex-direction: column; } }

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 450;
  box-shadow: 0 18px 40px rgba(0,10,40,.55);
  transform: translateY(120%);
  transition: transform .5s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 10, 34, .72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 460px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  position: relative;
  transform: translateY(24px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border-soft);
  color: var(--white); font-size: 16px;
}
.modal-box h3 { font-size: 22px; margin-bottom: 8px; padding-right: 30px; }
.modal-box .sub { color: var(--ink-muted); font-size: 14px; margin-bottom: 26px; }

/* ---------- reveal-on-scroll ----------
   Progressive enhancement: content is visible by default so it never
   depends on JS succeeding. JS adds .js-armed just before an element
   would be revealed, then flips to .is-in — if JS fails or is disabled,
   nothing is ever hidden. */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.js-armed { opacity: 0; transform: translateY(28px); }
.reveal.js-armed.is-in { opacity: 1; transform: translateY(0); }

/* ---------- mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 480;
  background: var(--bg-deeper);
  display: flex; flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .45s var(--ease); }
.mobile-drawer a { font-family: var(--ff-display); font-size: 30px; font-weight: 300; padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--white); }
.mobile-drawer .drawer-foot { margin-top: auto; padding-top: 30px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .header-phone { display: none; }
}

/* misc responsive */
@media (max-width: 700px) {
  .hero-foot { align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
