/* =========================================================================
   Эскимо Плаза — landing styles
   Design system: DESIGN.md ("Mercury / Alpine banking at blue hour")
   Dark onyx canvas, graphite cards, ivory text, a single cobalt accent,
   flat / borderless, pill controls, no shadows, generous rhythm.
   ========================================================================= */

:root {
  --color-onyx-canvas: #171721;
  --color-graphite-card: #1e1e2a;
  --color-graphite-hover: #22222f;
  --color-obsidian-button: #272735;
  --color-slate-border: #70707d;
  --color-mist-border: #e2e3ed;
  --color-ash-text: #c3c3cc;
  --color-ivory-text: #ededf3;
  --color-cobalt: #5266eb;
  --color-cobalt-hover: #6274ef;
  --color-pure-white: #ffffff;

  --hairline: rgba(226, 227, 237, 0.12);
  --hairline-strong: rgba(226, 227, 237, 0.22);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  /* Manrope — geometric grotesque, full Cyrillic. Stands in for DESIGN.md's
     wide-set "Söhne Breit" display voice; the width comes from positive
     letter-spacing on headings, not the face itself. */
  --font-display: "Manrope", var(--font-sans);

  --container: 1200px;
  --radius-card: 12px;
  --radius-pill: 40px;
  --radius-btn: 32px;

  --section-pad: clamp(48px, 5.5vw, 64px);
  --gap-grid: 20px;
  --header-h: 76px;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-onyx-canvas);
  color: var(--color-ivory-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

::selection { background: var(--color-cobalt); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: var(--section-pad); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: 0.014em;
  font-weight: 500;
  color: var(--color-ivory-text);
  max-width: 20ch;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.section__title--wide { max-width: 26ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ash-text);
  margin: 0 0 20px;
}
.eyebrow--on-media { color: rgba(255, 255, 255, 0.8); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--color-cobalt);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--color-cobalt); color: var(--color-pure-white); }
.btn--primary:hover { background: var(--color-cobalt-hover); }

.btn--ghost {
  border-color: var(--hairline-strong);
  color: var(--color-ivory-text);
}
.btn--ghost:hover {
  border-color: var(--color-ivory-text);
  background: rgba(237, 237, 243, 0.06);
}
.btn--ghost-on-media {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost-on-media:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease,
    border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(23, 23, 33, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}
.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 40px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ivory-text);
}
.brand__logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__list a {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--color-ivory-text);
  transition: background-color 0.18s ease;
}
.site-nav__list a:hover { background: rgba(237, 237, 243, 0.08); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle__bar {
  width: 18px;
  height: 1.5px;
  background: var(--color-ivory-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.site-nav.is-open .nav-toggle__bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 76px;
  overflow: hidden;
  background: #0f0f16;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 62% 46% at 50% 46%,
      rgba(15, 15, 22, 0.62) 0%,
      rgba(15, 15, 22, 0) 72%
    ),
    linear-gradient(
      180deg,
      rgba(23, 23, 33, 0.62) 0%,
      rgba(23, 23, 33, 0.34) 40%,
      rgba(23, 23, 33, 0.78) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-inline: clamp(20px, 5vw, 40px);
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.4rem + 6vw, 4.0625rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-pure-white);
  margin: 14px 0 0;
}
.hero__lead {
  margin: 20px auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.55;
  color: rgba(237, 237, 243, 0.92);
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 48px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  animation: scrollCue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero__media-toggle,
.flyover__media-toggle {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: 24px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(23, 23, 33, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
}
.hero__media-toggle .icon-play,
.flyover__media-toggle .icon-play { display: none; }
.hero__media-toggle[aria-pressed="false"] .icon-pause,
.flyover__media-toggle[aria-pressed="false"] .icon-pause { display: none; }
.hero__media-toggle[aria-pressed="false"] .icon-play,
.flyover__media-toggle[aria-pressed="false"] .icon-play { display: block; }
.hero__media-toggle svg,
.flyover__media-toggle svg { fill: currentColor; }

/* --------------------------------------------------------------- flyover */
/* Full-bleed drone band between "О здании" and "Что внутри". Not a second
   hero: the copy sits bottom-left, the clip only plays while on screen. */
.flyover {
  position: relative;
  width: 100%;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f0f16;
  border-block: 1px solid var(--hairline);
}
.flyover__poster,
.flyover__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.flyover__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 15, 22, 0.15) 0%,
      rgba(15, 15, 22, 0) 34%,
      rgba(15, 15, 22, 0.62) 78%,
      rgba(15, 15, 22, 0.9) 100%
    ),
    linear-gradient(
      90deg,
      rgba(15, 15, 22, 0.62) 0%,
      rgba(15, 15, 22, 0) 52%
    );
}
.flyover__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(44px, 8vw, 92px);
}
.flyover__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.7vw, 2.625rem);
  line-height: 1.16;
  letter-spacing: 0.014em;
  font-weight: 500;
  color: var(--color-pure-white);
  max-width: 18ch;
  margin: 0;
}
.flyover__text {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  line-height: 1.55;
  color: rgba(237, 237, 243, 0.9);
}

/* ----------------------------------------------------------------- about */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about__text p {
  color: var(--color-ash-text);
  font-size: 16px;
  line-height: 1.62;
  max-width: 56ch;
}
.about__text p + p { margin-top: 20px; }
.about__figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.stats {
  margin-top: clamp(48px, 8vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--color-graphite-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ivory-text);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; line-height: 1.4; color: var(--color-ash-text); }

/* ---------------------------------------------------------------- inside */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
}
.inside-card {
  background: var(--color-graphite-card);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.inside-card:hover {
  transform: translateY(-3px);
  background: var(--color-graphite-hover);
}
.inside-card__media {
  display: block;
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.inside-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.inside-card:hover .inside-card__media img { transform: scale(1.04); }
.inside-card__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.inside-card__index {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(237, 237, 243, 0.5);
  font-variant-numeric: tabular-nums;
}
.inside-card__meta {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--color-ash-text);
}
.inside-card__title {
  font-family: var(--font-display);
  margin-top: 10px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ivory-text);
}
.inside-card__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ash-text);
}

/* one big 2x2 "bento" tile (desktop) — fills the grid exactly with the two
   stacked cards beside it, and breaks the rhythm so this section reads
   differently from the uniform company-card grid further down the page */
.inside-card--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.inside-card--feature .inside-card__media {
  flex: 1 1 auto;
  min-height: clamp(200px, 22vw, 300px);
}
.inside-card--feature .inside-card__media img {
  height: 100%;
  aspect-ratio: auto;
}
.inside-card--feature .inside-card__index { color: var(--color-cobalt); }
.inside-card--feature .inside-card__title { font-size: clamp(21px, 1.1vw + 16px, 26px); }
.inside-card--feature .inside-card__text { max-width: 52ch; }

/* ------------------------------------------------------------- companies */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.company-grid__item { min-width: 0; }
.company-card {
  display: flex;
  flex-direction: column;
  background: var(--color-graphite-card);
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}
a.company-card:hover {
  background: var(--color-graphite-hover);
  border-color: var(--hairline);
  transform: translateY(-3px);
}
.company-card__shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--color-obsidian-button);
}
.company-card__shot > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.35) brightness(0.6) contrast(1.02);
  transition: filter 0.35s ease, transform 0.5s ease;
}
a.company-card:hover .company-card__shot > img:first-child {
  filter: grayscale(0) brightness(0.82) contrast(1.02);
  transform: scale(1.03);
}
.company-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 28, 0.12) 0%,
    rgba(20, 20, 28, 0.34) 45%,
    rgba(20, 20, 28, 0.9) 100%
  );
}
.company-card__logo {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 1;
  height: 26px;
  width: auto;
  max-width: 62%;
  object-fit: contain;
  object-position: left bottom;
}
.company-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 243, 0.35);
  background: rgba(15, 15, 22, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(237, 237, 243, 0.85);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
a.company-card:hover .company-card__arrow {
  color: #fff;
  border-color: rgba(237, 237, 243, 0.7);
  background: rgba(15, 15, 22, 0.5);
}
.company-card__body { padding: 15px 18px 17px; }
.company-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ivory-text);
}
.company-card__note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ash-text);
}

/* --------------------------------------------------------------- gallery */
/* Mosaic / bento layout instead of a uniform grid: one large lead photo,
   then a mix of smaller tiles — reads as an edited photo story rather than
   a plain thumbnail sheet. Row height is fixed so mixed spans line up. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(130px, 15vw, 210px);
  gap: 14px;
}
.gallery-grid__item { min-width: 0; }
.gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-figure {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.gallery-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}
.gallery-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 22, 0) 55%, rgba(15, 15, 22, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-figure__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(237, 237, 243, 0.35);
  background: rgba(15, 15, 22, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(237, 237, 243, 0.9);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.gallery-figure:hover img,
.gallery-figure:focus-visible img { transform: scale(1.045); filter: brightness(1.04); }
.gallery-figure:hover::after,
.gallery-figure:focus-visible::after { opacity: 1; }
.gallery-figure:hover .gallery-figure__icon,
.gallery-figure:focus-visible .gallery-figure__icon {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(237, 237, 243, 0.7);
}

/* -------------------------------------------------------------- location */
.section--location { border-top: 1px solid var(--hairline); }
.location__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.location__address {
  margin-top: 4px;
  color: var(--color-ash-text);
  font-size: 15px;
  line-height: 1.5;
  max-width: 30ch;
}
.location__notes {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location__notes li {
  position: relative;
  padding-left: 20px;
  color: var(--color-ash-text);
  font-size: 15px;
  line-height: 1.5;
}
.location__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cobalt);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-ivory-text);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--color-ivory-text); }
.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-graphite-card);
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* pull the bright Yandex tiles into the dark system */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.82) brightness(0.95);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 24px;
}
.site-footer__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ivory-text);
}
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { font-size: 14px; color: var(--color-ash-text); }
.site-footer__nav a:hover { color: var(--color-ivory-text); }
.site-footer__meta {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-ash-text);
  text-align: right;
}
.site-footer__meta a { color: var(--color-ash-text); }
.site-footer__meta a:hover { color: var(--color-ivory-text); }

.disclaimer {
  max-width: 64ch;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 227, 237, 0.08);
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgba(195, 195, 204, 0.7);
  text-align: center;
}

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  margin-inline: auto;
  transition: opacity 0.18s ease;
}
.lightbox__stage figcaption {
  font-size: 13px;
  color: var(--color-ash-text);
  text-align: center;
}
.lightbox__counter {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(237, 237, 243, 0.7);
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(23, 23, 33, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox__btn--close { top: 18px; right: 18px; }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* --------------------------------------------------------- breakpoints */
@media (max-width: 980px) {
  .inside-grid { grid-template-columns: repeat(2, 1fr); }
  /* drop the bento tile below desktop — a full-width span on a 2- or 1-col
     grid just leaves ragged empty cells */
  .inside-card--feature { grid-column: auto; grid-row: auto; }
  .inside-card--feature .inside-card__media { flex: 0 0 auto; min-height: 0; }
  .inside-card--feature .inside-card__media img { height: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .about__grid,
  .location__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav {
    position: static;
    transform: none;
    margin-left: auto;
  }
  .site-nav__list {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(23, 23, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 8px clamp(20px, 5vw, 40px) 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.is-open .site-nav__list {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__list a {
    padding: 14px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }
  .site-nav__list li:last-child a { border-bottom: 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__meta { text-align: left; }
}

@media (max-width: 620px) {
  .inside-grid { grid-template-columns: 1fr; }
  .flyover { min-height: 82svh; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid__item:first-child { grid-column: span 1; grid-row: span 1; }
}

/* -------------------------------------------------- reduced motion */
@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;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__video,
  .flyover__video { display: none; }
  .hero__scroll span { animation: none; opacity: 0.7; transform: scaleY(1); }
  .inside-card:hover,
  a.company-card:hover { transform: none; }
  .inside-card:hover .inside-card__media img,
  a.company-card:hover .company-card__shot > img:first-child,
  .gallery-figure:hover img { transform: none; }
}
