/* ============================================================
   HALLE HAUS — Design tokens
   ============================================================ */
:root {
  --green: #22C55E;
  --green-strong: #16A34A;
  --green-soft: rgba(34, 197, 94, 0.12);

  /* Dark theme (default) */
  --bg: #0E0E0E;
  --bg-2: #141414;
  --bg-3: #1A1A1A;
  --panel: #1F1F1F;
  --panel-border: rgba(255, 255, 255, 0.06);
  --text: #F4F4F5;
  --text-dim: #A1A1AA;
  --text-faint: #71717A;
  --outline-text: rgba(255, 255, 255, 0.07);
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(14,14,14,0.45) 55%, rgba(14,14,14,0.92) 100%);
  --hero-overlay-side: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 50%);
  --card-bg: rgba(20, 20, 20, 0.85);
  --card-strip: rgba(14, 14, 14, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --rail: rgba(255, 255, 255, 0.10);

  --pad-x: clamp(24px, 5.5vw, 120px);
  --radius: 4px;

  --grid-line: rgba(255, 255, 255, 0.035);

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, 'Courier New', monospace;
}

html[data-theme="light"] {
  --bg: #F5F5F4;
  --bg-2: #ECECEA;
  --bg-3: #FFFFFF;
  --panel: #FFFFFF;
  --panel-border: rgba(0, 0, 0, 0.08);
  --text: #111111;
  --text-dim: #4B5563;
  --text-faint: #9CA3AF;
  --outline-text: rgba(0, 0, 0, 0.06);
  --hero-overlay: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(245,245,244,0.50) 55%, rgba(245,245,244,0.92) 100%);
  --hero-overlay-side: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.0) 50%);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-strip: rgba(255, 255, 255, 0.78);
  --line: rgba(0, 0, 0, 0.08);
  --rail: rgba(0, 0, 0, 0.10);
  --grid-line: rgba(0, 0, 0, 0.045);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--green); color: #0E0E0E; }

/* ============================================================
   Sections — FULL BLEED w/ optional edge variants
   ============================================================ */
.section {
  position: relative;
  scroll-margin-top: 80px;
  padding-block: clamp(80px, 9vw, 140px);
  padding-inline: var(--pad-x);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    90deg,
    var(--grid-line) 0, var(--grid-line) 1px,
    transparent 1px, transparent 25%
  );
  border-top: 1px solid var(--line);
}
.section--alt    { background: var(--bg-2); }
.section--bleed-right { padding-right: 0; }
.section--bleed-left  { padding-left: 0; }

/* Section heading system — kicker + title + ghost numeral */
.section-title {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
  line-height: 1.04;
}
.section-title .accent { color: var(--green); font-weight: 700; }

.section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 4.4vw, 64px);
}
.section-head__main { position: relative; z-index: 1; }
.section-head .link-arrow { position: relative; z-index: 1; margin-bottom: 6px; }
.section-head__num {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(84px, 13vw, 188px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--outline-text);
  pointer-events: none;
  user-select: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  flex-shrink: 0;
  background: var(--green);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  flex-shrink: 0;
  background: var(--green);
}
html[data-theme="light"] .eyebrow { color: var(--text-dim); }

/* Monospaced technical-text layer */
.footer-col__label,
.footer-contact__k,
.footer-bottom,
.footer-up,
.blog-card__date,
.blog-card__more {
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 2px;
  background: rgba(0,0,0,0.20);
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: border-color .2s, background .2s, transform .2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .btn { color: var(--text); border-color: rgba(0,0,0,0.25); background: rgba(255,255,255,0.45); }
.btn:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--solid:hover { background: var(--green-strong); color: #fff; border-color: var(--green-strong); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  transition: color .2s, gap .2s;
}
html[data-theme="light"] .link-arrow { color: var(--text-dim); }
.link-arrow:hover { color: var(--green); gap: 14px; }

/* ============================================================
   Header — transparent over hero
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 26px var(--pad-x);
  transition: border-color .25s ease, padding .25s;
  border-bottom: 1px solid transparent;
}
/* Frosted bar on its own layer — keeps .site-header from becoming a
   containing block (backdrop-filter does) that traps the fixed menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 14, 14, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .25s ease;
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.is-stuck {
  border-bottom-color: var(--line);
  padding-block: 16px;
}
html[data-theme="light"] .site-header::before { background: rgba(245, 245, 244, 0.94); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
}
html[data-theme="light"] .brand__logo { filter: invert(1) brightness(0); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 26px);
  margin-inline: auto;
}
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #fff;
  white-space: nowrap;
  transition: color .2s ease;
}
html[data-theme="light"] .nav__link { color: var(--text); }
/* animated green underline */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.nav__link:hover { color: var(--green); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green); }
/* "За нас" dropdown — trigger "+" and panel */
.nav__plus {
  margin-left: 4px;
  color: var(--green);
  font-weight: 400;
  font-size: 21px;
  line-height: 0;
  transition: transform .3s ease;
}
.nav__item--has-sub:hover .nav__plus { transform: rotate(45deg); }
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: clamp(720px, 62vw, 1020px);
  margin-top: 16px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 34px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s;
}
.nav__sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 16px;
}
.nav__item--has-sub:hover .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .26s ease, transform .26s ease, visibility 0s linear 0s;
}
.nav__sub-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  isolation: isolate;
}
.nav__sub-media { position: absolute; inset: 0; z-index: 0; }
.nav__sub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.nav__sub-link:hover .nav__sub-media img { transform: scale(1.07); }
.nav__sub-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 36%, rgba(8, 8, 8, 0.9) 100%);
}
.nav__sub-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0) 28%, rgba(22, 163, 74, 0.94) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.nav__sub-link:hover::before,
.nav__sub-link.is-active::before { opacity: 1; }
.nav__sub-title {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.nav__sub-desc { display: none; }
/* CTA shown only inside the mobile menu */
.nav__cta { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Theme toggle — now a header action */
.theme-toggle {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
html[data-theme="light"] .theme-toggle {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.04);
}
.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Two-tone split CTA */
.cta-split {
  display: inline-flex;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
  white-space: nowrap;
}
.cta-split__text {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1.5px solid var(--green);
  border-right: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: transparent;
  transition: background .22s ease, color .22s ease;
}
html[data-theme="light"] .cta-split__text { color: var(--text); }
.cta-split__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  background: var(--green);
  color: #0E0E0E;
  font-size: 17px;
  font-weight: 700;
  transition: background .22s ease;
}
.cta-split__arrow {
  display: inline-block;
  transition: transform .22s ease;
}
.cta-split:hover .cta-split__text { background: var(--green); color: #0E0E0E; }
.cta-split:hover .cta-split__tab { background: var(--green-strong); }
.cta-split:hover .cta-split__arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .nav-toggle {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.04);
}
.nav-toggle span {
  display: block;
  width: 15px; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
html[data-theme="light"] .nav-toggle span { background: var(--text); }
.nav.is-open ~ .header-actions .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open ~ .header-actions .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open ~ .header-actions .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO — full-bleed, content lower-center-left
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0) 40%),
    linear-gradient(180deg, rgba(14,14,14,0.30) 0%, rgba(14,14,14,0.15) 30%, rgba(14,14,14,0.55) 70%, #0E0E0E 100%);
}
html[data-theme="light"] .hero__media::after {
  background:
    linear-gradient(90deg, rgba(245,245,244,0.55) 0%, rgba(245,245,244,0) 40%),
    linear-gradient(180deg, rgba(245,245,244,0.15) 0%, rgba(245,245,244,0.10) 30%, rgba(245,245,244,0.55) 70%, #F5F5F4 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  padding-bottom: clamp(48px, 7vh, 100px);
  max-width: 960px;
  width: 100%;
  color: #fff;
}
html[data-theme="light"] .hero__content { color: var(--text); }

/* Hero — staggered entrance on load */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__content > * {
  animation: heroRise .95s cubic-bezier(.22, .61, .36, 1) backwards;
}
.hero__content > .eyebrow      { animation-delay: .15s; }
.hero__content > .hero__title  { animation-delay: .30s; }
.hero__content > .hero__cta    { animation-delay: .48s; }
.hero__content > .hero__scroll { animation-delay: .66s; }

.hero__title {
  font-size: clamp(44px, 6vw, 104px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 38px;
}
.hero__title strong { font-weight: 700; }

/* Hero CTA — underlined text link with arrow */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: max-content;
  transition: color .25s, gap .25s;
}
html[data-theme="light"] .hero__cta { color: var(--text); }
.hero__cta:hover {
  color: var(--green);
  gap: 10px;
}
.hero__cta__text {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  transition: border-color .25s;
}
html[data-theme="light"] .hero__cta__text { border-bottom-color: rgba(0,0,0,0.4); }
.hero__cta:hover .hero__cta__text {
  border-bottom-color: var(--green);
}
.hero__cta__arrow {
  font-size: 16px;
  line-height: 1;
}

/* Hero — scroll cue */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 50px;
}
.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
html[data-theme="light"] .hero__scroll-label { color: var(--text-dim); }
.hero__scroll-track {
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
}
html[data-theme="light"] .hero__scroll-track { background: rgba(0,0,0,0.22); }
.hero__scroll-track::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 18px;
  background: var(--green);
  animation: scrollSlide 1.9s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes scrollSlide {
  0%        { transform: translateY(-18px); }
  70%, 100% { transform: translateY(56px); }
}

/* ============================================================
   ЗА НАС — entire left box (title + body) is the glass panel,
   sitting over/beside the image; marquee behind image at bottom
   ============================================================ */
.about {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 1;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 0;
  align-items: center;
  position: relative;
}

/* THE glass panel: title + body together, overlaps right into image area */
.about__panel {
  background: rgba(18, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-right: 3px solid var(--green);
  padding: clamp(36px, 4vw, 64px) clamp(36px, 4vw, 68px);
  z-index: 5;
  /* Extend the panel's right edge into the image column for the overlap */
  margin-right: clamp(-180px, -8vw, -60px);
  align-self: start;
  margin-top: clamp(40px, 5vw, 80px);
}
.about__panel .kicker { margin-bottom: 18px; }
.about__panel .section-title {
  margin: 0 0 clamp(24px, 2.4vw, 40px);
  font-size: clamp(34px, 4vw, 56px);
  color: #F4F4F5;
}
.about__body {
  color: #A1A1AA;
  font-size: 16px;
  line-height: 1.85;
}
.about__body p { margin: 0 0 16px; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: #F4F4F5; }
.about__body .motto { color: var(--green); font-weight: 600; }
.about__body .brand-name { color: var(--green); font-weight: 700; }
.about__body a { color: var(--green); font-weight: 600; transition: color .2s ease; }
.about__body a:hover { color: var(--green-strong); }

/* Light theme — the glass info panel turns into a light frosted panel */
html[data-theme="light"] .about__panel { background: rgba(255, 255, 255, 0.72); }
html[data-theme="light"] .about__panel .section-title { color: var(--text); }
html[data-theme="light"] .about__body { color: var(--text-dim); }
html[data-theme="light"] .about__body strong { color: var(--text); }

.about__image {
  position: relative;
  align-self: stretch;
  z-index: 4;
}
.about__image img {
  width: 100%;
  height: 100%;
  min-height: clamp(680px, 72vw, 920px);
  object-fit: cover;
  display: block;
}

/* HALLEHAUS marquee — absolute at bottom, OVER the image bottom */
.marquee {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}
.marquee__track span {
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding-inline: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px var(--outline-text);
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ============================================================
   Services carousel (Дейности — design 4)
   ============================================================ */
.swiper-wrap { position: relative; }
.swiper { padding-bottom: 56px !important; overflow: visible; }

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  display: block;
  transition: transform .35s ease;
  color: inherit;
  text-decoration: none;
}
a.service-card:hover { color: inherit; }
.service-card:hover { transform: translateY(-4px); }
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
}
.service-card:hover img { transform: scale(1.05); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(34,197,94,0) 0%, rgba(34,197,94,0.75) 45%, rgba(34,197,94,0.96) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.swiper-slide-active:not(:first-child) .service-card::before,
.service-card:hover::before {
  opacity: 1;
}
.service-card__index {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}
.service-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 1.7vw, 28px);
}
.service-card__icon {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title {
  margin: 0;
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 600;
  line-height: 1.32;
  color: #fff;
}
/* Active slide or hover — the icon lights up to echo the green */
.swiper-slide-active:not(:first-child) .service-card__icon,
.service-card:hover .service-card__icon {
  background: #fff;
  border-color: #fff;
  color: var(--green-strong);
}

.swiper-pagination-bullet {
  background: var(--text-faint) !important;
  opacity: .5 !important;
  width: 22px !important;
  height: 3px !important;
  border-radius: 2px !important;
  transition: width .25s, opacity .25s, background .25s !important;
}
.swiper-pagination-bullet-active {
  background: var(--green) !important;
  opacity: 1 !important;
  width: 42px !important;
}

/* ============================================================
   Проекти — true asymmetric 2-col stagger (4 cards)
   ============================================================ */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.projects__col {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}
.projects__col--right { padding-top: clamp(60px, 9vw, 140px); }

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  display: block;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  transition: transform .35s ease;
}
.project-card:hover { transform: translateY(-4px); }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.05); }
/* hover affordance — this card links to its project page */
.project-card::after {
  content: "→";
  position: absolute;
  top: 16px; right: 16px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #0E0E0E;
  font-size: 18px;
  font-weight: 700;
  border-radius: 2px;
  z-index: 3;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.project-card:hover::after { opacity: 1; transform: translateY(0); }
.project-card__strip {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--card-strip);
  padding: 20px 24px 20px 22px;
  border-right: 3px solid var(--green);
  z-index: 2;
  max-width: 65%;
}
.project-card__strip h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.project-card__strip p {
  margin: 0;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}
.project-card__strip p + p { margin-top: 2px; }
.projects-foot {
  display: flex; justify-content: flex-end;
  margin-top: 56px;
}
.projects-foot--start { justify-content: flex-start; margin-top: 28px; }

/* ============================================================
   Project detail page — intro panel, gallery, more projects
   ============================================================ */
.project-intro {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}
.project-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 0;
  align-items: center;
  position: relative;
}
.project-intro__media {
  position: relative;
  z-index: 4;
  align-self: stretch;
}
.project-intro__media img {
  width: 100%;
  height: 100%;
  min-height: clamp(680px, 72vw, 920px);
  object-fit: cover;
  display: block;
}
.project-intro__panel {
  position: relative;
  z-index: 5;
  align-self: start;
  margin-top: clamp(40px, 5vw, 80px);
  margin-left: clamp(-180px, -8vw, -60px);
  padding: clamp(36px, 4vw, 64px) clamp(36px, 4vw, 68px);
  background: rgba(18, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-left: 3px solid var(--green);
}
.project-intro__panel .kicker { margin-bottom: 16px; }
.project-intro__panel .section-title {
  margin: 0 0 clamp(20px, 2.2vw, 36px);
  font-size: clamp(30px, 3.2vw, 48px);
  color: #F4F4F5;
}

.project-spec {
  list-style: none;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  padding: 0;
}
.project-spec li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.project-spec li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.project-spec__k {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.project-spec__v {
  font-size: 16px;
  font-weight: 600;
  color: #F4F4F5;
  text-align: right;
}

.project-intro__lead {
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: #E4E4E7;
}
html[data-theme="light"] .project-intro__lead { color: var(--text); }

/* ---- Project reference block ---- */
.project-reference__inner {
  max-width: 860px;
  margin-inline: auto;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 3px solid var(--green);
}
.project-reference__quote {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.4;
  font-weight: 500;
  color: #F4F4F5;
}
.project-reference__author {
  margin: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.project-reference__more { margin: 28px 0 0; }
html[data-theme="light"] .project-reference__quote { color: var(--text); }

.gallery-slide {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--panel-border);
  background: var(--bg-3);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
  cursor: zoom-in;
}
.gallery-slide:hover img { transform: scale(1.04); }

/* ---------- Gallery Swiper navigation arrows ---------- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(14,14,14,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  margin-top: -28px;
}
.gallery-nav::after { display: none !important; }
.gallery-nav svg { width: 18px; height: 18px; pointer-events: none; }
.gallery-nav--prev { left: 10px; }
.gallery-nav--next { right: 10px; }
.gallery-nav:hover { background: rgba(34,197,94,0.22); border-color: var(--green); }
.gallery-nav:active { transform: translateY(-50%) scale(0.95); }
.gallery-nav.swiper-button-disabled { opacity: 0.3; pointer-events: none; }

@media (max-width: 640px) {
  .gallery-nav { width: 38px; height: 38px; margin-top: -24px; }
  .gallery-nav svg { width: 16px; height: 16px; }
  .gallery-nav--prev { left: 6px; }
  .gallery-nav--next { right: 6px; }
}

/* Light theme gallery arrows */
html[data-theme="light"] .gallery-nav { background: rgba(255,255,255,0.72); border-color: rgba(0,0,0,0.12); color: var(--text); }
html[data-theme="light"] .gallery-nav:hover { background: rgba(34,197,94,0.14); border-color: var(--green); }

/* ---------- Lightbox ---------- */
.hh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.hh-lightbox.is-open { opacity: 1; visibility: visible; }

.hh-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: zoom-out;
}

.hh-lightbox__stage {
  position: relative;
  z-index: 2;
  width: 92vw;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hh-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

.hh-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.hh-lightbox__close svg { width: 20px; height: 20px; pointer-events: none; }
.hh-lightbox__close:hover { background: rgba(34,197,94,0.2); border-color: var(--green); }
.hh-lightbox__close:active { transform: scale(0.95); }

.hh-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.hh-lightbox__nav svg { width: 20px; height: 20px; pointer-events: none; }
.hh-lightbox__nav--prev { left: 16px; }
.hh-lightbox__nav--next { right: 16px; }
.hh-lightbox__nav:hover { background: rgba(34,197,94,0.2); border-color: var(--green); }
.hh-lightbox__nav:active { transform: translateY(-50%) scale(0.95); }

.hh-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.4);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 720px) {
  .hh-lightbox__stage { width: 96vw; height: 80vh; }
  .hh-lightbox__nav { width: 42px; height: 42px; }
  .hh-lightbox__nav--prev { left: 8px; }
  .hh-lightbox__nav--next { right: 8px; }
  .hh-lightbox__close { top: 10px; right: 10px; width: 40px; height: 40px; }
}

/* Light theme — project info panel turns into a light frosted panel */
html[data-theme="light"] .project-intro__panel { background: rgba(255, 255, 255, 0.72); }
html[data-theme="light"] .project-intro__panel .section-title { color: var(--text); }
html[data-theme="light"] .project-spec li { border-bottom-color: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .project-spec li:first-child { border-top-color: rgba(0, 0, 0, 0.12); }
html[data-theme="light"] .project-spec__v { color: var(--text); }

@media (max-width: 1100px) {
  .project-intro { padding-block: clamp(56px, 10vw, 88px); }
  .project-intro__grid { grid-template-columns: 1fr; }
  .project-intro__media img { min-height: 0; height: clamp(300px, 58vw, 460px); }
  .project-intro__panel {
    margin-top: clamp(-72px, -10vw, -36px);
    margin-left: 0;
  }
}

/* ============================================================
   Блог — 2-col grid
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.blog-card {
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__date {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: #0E0E0E;
  font-size: 16px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.blog-card__body {
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.blog-card__body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color .2s ease;
}
.blog-card:hover .blog-card__body h3 { color: var(--green); }
.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .2s ease, gap .2s ease;
}
.blog-card__more span { transition: transform .2s ease; }
.blog-card:hover .blog-card__more { color: var(--green); gap: 12px; }

/* ============================================================
   Активни проекти — Map (design 5, Leaflet + CartoDB dark)
   ============================================================ */
.map-wrap {
  position: relative;
  z-index: 0;
  height: clamp(460px, 54vw, 700px);
  margin-inline: calc(-1 * var(--pad-x));
  overflow: hidden;
  background: var(--bg-3);
  border-block: 1px solid var(--panel-border);
}
.leaflet-map { width: 100%; height: 100%; }
/* Pulsing green markers */
.map-marker {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 14px rgba(34, 197, 94, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-marker::before {
  content: "+";
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.map-marker::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  animation: markerPulse 2.2s ease-out infinite;
  z-index: 1;
}
@keyframes markerPulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.0); opacity: 0; }
}
/* Make Leaflet attribution match dark theme */
.leaflet-control-attribution {
  background: rgba(14,14,14,0.7) !important;
  color: rgba(255,255,255,0.5) !important;
  font-size: 16px !important;
}
.leaflet-control-attribution a { color: rgba(255,255,255,0.7) !important; }

/* ============================================================
   Footer — "the foundation": an always-dark industrial title block
   ============================================================ */
.site-footer {
  position: relative;
  scroll-margin-top: 80px;
  background: #0B0B0B;
  color: #F4F4F5;
  border-top: 1px solid var(--green);
}

/* ---- Call-to-action band ------------------------------------ */
.footer-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) var(--pad-x);
  background:
    linear-gradient(180deg, rgba(11,11,11,0.84) 0%, rgba(11,11,11,0.94) 100%),
    #0B0B0B url('../../images/use-for-site/55.jpg') center / cover no-repeat;
}
/* oversized ghost wordmark bleeding off the edge */
.footer-cta__ghost {
  position: absolute;
  right: -0.05em;
  bottom: -0.32em;
  margin: 0;
  font-size: clamp(120px, 22vw, 340px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  pointer-events: none;
  user-select: none;
}
.footer-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  flex-wrap: wrap;
}
.footer-cta__text { max-width: 720px; }
.site-footer .footer-cta .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-footer .footer-cta .eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--green);
}
.footer-cta__title {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 68px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #F4F4F5;
}
.footer-cta__title strong { font-weight: 700; color: var(--green); }

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding: 20px 30px;
  border-radius: 2px;
  background: var(--green);
  color: #0E0E0E;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.footer-cta__btn:hover {
  background: #2EE56C;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34,197,94,0.30);
}
.footer-cta__btn-arrow { font-size: 19px; line-height: 1; transition: transform .2s; }
.footer-cta__btn:hover .footer-cta__btn-arrow { transform: translateX(6px); }

/* ---- Title-block grid --------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid > * {
  background: #0B0B0B;
  padding: clamp(44px, 4.6vw, 64px) clamp(26px, 2.8vw, 44px);
}
.footer-grid > :first-child { padding-left: var(--pad-x); }
.footer-grid > :last-child  { padding-right: var(--pad-x); }

.footer-brand__logo { height: 40px; width: auto; margin-bottom: 26px; }
.footer-brand__motto {
  margin: 0 0 16px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--green);
}
.footer-brand__desc {
  margin: 0;
  max-width: 32ch;
  font-size: 16px;
  line-height: 1.75;
  color: #A1A1AA;
}

.footer-col__label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717A;
}
.footer-col__label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--green);
}

.footer-contact { display: grid; gap: 20px; }
.footer-contact a { display: block; }
.footer-contact__k {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71717A;
}
.footer-contact__v {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #F4F4F5;
  transition: color .2s;
}
.footer-contact a:hover .footer-contact__v { color: var(--green); }

.footer-links { display: grid; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 16px;
  color: #A1A1AA;
  transition: color .2s, gap .2s;
}
.footer-links a::before {
  content: "";
  width: 16px;
  height: 1px;
  flex-shrink: 0;
  background: #3F3F46;
  transition: width .2s, background .2s;
}
.footer-links a:hover { color: #F4F4F5; gap: 16px; }
.footer-links a:hover::before { width: 30px; background: var(--green); }

/* ---- Bottom bar --------------------------------------------- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 26px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
  color: #71717A;
}
.footer-bottom__end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 36px);
}
.footer-bottom__credit { letter-spacing: 0.02em; }
.footer-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A1A1AA;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-up:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(34,197,94,0.08);
}
.footer-up span { transition: transform .2s; }
.footer-up:hover span { transform: translateY(-3px); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Inner pages
   ============================================================ */
.page-hero {
  position: relative;
  min-height: clamp(440px, 66vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(122px, 17vh, 188px) var(--pad-x) clamp(44px, 6vw, 84px);
  overflow: hidden;
  background-color: #0E0E0E;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(14,14,14,0.88) 0%, rgba(14,14,14,0.40) 58%, rgba(14,14,14,0.66) 100%),
    linear-gradient(180deg, rgba(14,14,14,0.55) 0%, rgba(14,14,14,0.14) 38%, rgba(14,14,14,0.95) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    90deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px,
    transparent 1px, transparent 25%);
  pointer-events: none;
}
.page-hero__marquee {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
}
.page-hero__marquee .marquee__track { animation-duration: 100s; }
.page-hero__marquee .marquee__track span {
  font-size: clamp(96px, 17vw, 240px);
  -webkit-text-stroke: 1.5px rgb(255 255 255 / 22%);
}
.page-hero__crumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
.page-hero__crumbs a { color: rgba(255, 255, 255, 0.5); transition: color .2s ease; }
.page-hero__crumbs a:hover { color: var(--green); }
.page-hero__crumbs [aria-current] { color: rgba(255, 255, 255, 0.92); }
.page-hero__inner { position: relative; z-index: 2; max-width: 1000px; }
.page-hero .kicker { color: rgba(255, 255, 255, 0.62); }
.page-hero__title {
  margin: 16px 0 0;
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
}
.page-hero__title .accent { color: var(--green); font-weight: 700; }
.page-hero__title strong { font-weight: 700; }
.page-hero--project .page-hero__title { font-size: clamp(34px, 4.6vw, 64px); }
.page-hero__lead {
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}
.page-hero__crumbs,
.page-hero__inner > * {
  animation: heroRise .9s cubic-bezier(.22, .61, .36, 1) backwards;
}
.page-hero__crumbs                    { animation-delay: .05s; }
.page-hero__inner > .kicker           { animation-delay: .16s; }
.page-hero__inner > .page-hero__title { animation-delay: .27s; }
.page-hero__inner > .page-hero__lead  { animation-delay: .39s; }

/* Light theme — inner-page hero adapts (mirrors the homepage hero) */
html[data-theme="light"] .page-hero { background-color: var(--bg); }
html[data-theme="light"] .page-hero__media::after {
  background:
    linear-gradient(95deg, rgba(245,245,244,0.90) 0%, rgba(245,245,244,0.45) 58%, rgba(245,245,244,0.70) 100%),
    linear-gradient(180deg, rgba(245,245,244,0.60) 0%, rgba(245,245,244,0.16) 38%, rgba(245,245,244,0.96) 100%);
}
html[data-theme="light"] .page-hero::before {
  background-image: repeating-linear-gradient(
    90deg, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 1px,
    transparent 1px, transparent 25%);
}
html[data-theme="light"] .page-hero__marquee .marquee__track span {
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.18);
}
html[data-theme="light"] .page-hero__crumbs,
html[data-theme="light"] .page-hero__crumbs a { color: var(--text-dim); }
html[data-theme="light"] .page-hero__crumbs [aria-current] { color: var(--text); }
html[data-theme="light"] .page-hero .kicker { color: var(--text-dim); }
html[data-theme="light"] .page-hero__title { color: var(--text); }
html[data-theme="light"] .page-hero__lead { color: var(--text-dim); }

/* Big statement block */
.statement__text {
  margin: 18px 0 0;
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 20ch;
}
.statement__text strong { font-weight: 700; color: var(--green); }

/* Prose */
.prose { max-width: 66ch; }
.prose > p {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.1vw, 17px);
  line-height: 1.85;
  color: var(--text-dim);
}
.prose > p:first-child {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.65;
  color: var(--text);
}
.prose > p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .accent { color: var(--green); font-weight: 600; }

/* Two-column — text + media */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--panel-border);
}

/* Feature grid — activities with icons */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s ease;
}
.feature-card:hover { background: var(--bg-2); }
.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-card__icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  color: var(--green);
}
.feature-card__icon svg { width: 27px; height: 27px; }
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.feature-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* Empty / coming-soon state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(60px, 9vw, 128px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--bg-2);
}
.empty-state__icon {
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--green);
}
.empty-state__icon svg { width: 30px; height: 30px; }
.empty-state h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.empty-state p {
  margin: 0;
  max-width: 48ch;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Project grid (Проекти page) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

/* Blog page grid */
.blog-grid--page {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.blog-card__date.is-soon {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.contact-info {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  color: var(--green);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__k {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.contact-info__v {
  display: block;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--text);
  transition: color .2s ease;
}
a.contact-info__v:hover { color: var(--green); }

.contact-form-panel {
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  padding: clamp(26px, 3.2vw, 46px);
}
.contact-form-panel__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.contact-form-panel__hint {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

.form { display: grid; gap: 20px; }
.form__group { display: grid; gap: 8px; }
.form__label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.form__input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form__input::placeholder { color: var(--text-faint); opacity: .7; }
.form__input:hover { border-color: var(--text-faint); }
.form__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  background: var(--bg-3);
}
.form__input--textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
/* Submit button uses the global .btn--solid; align it left within the grid. */
.form .btn--solid { justify-self: start; margin-top: 4px; }
.form__done {
  margin: 0;
  padding: 24px 26px;
  border-left: 3px solid var(--green);
  background: var(--bg-2);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

/* Partners page */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.partner {
  background: var(--bg);
  min-height: clamp(120px, 13vw, 168px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: background .25s ease, color .25s ease;
}
.partner:hover { background: var(--bg-2); color: var(--green); }

/* References — carousel */
.reference-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(32px, 3.6vw, 56px);
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  transition: border-color .3s ease, background .3s ease;
}
.reference-card:hover {
  border-color: var(--green);
  background: var(--bg-3);
}
.reference-card__mark {
  font-family: var(--font-mono);
  font-size: 66px;
  font-weight: 700;
  line-height: 0.5;
  color: var(--green);
  margin-bottom: 30px;
}
.reference-card__quote {
  margin: 0 0 34px;
  flex: 1;
  font-size: clamp(18px, 1.75vw, 27px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}
.reference-card__by {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.reference-card__company {
  display: block;
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 700;
  color: var(--text);
}
.reference-card__person {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* Certificates page — credentials register */
.section-lead {
  max-width: 62ch;
  margin: 0 0 clamp(36px, 4.4vw, 60px);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--text-dim);
}
.section-lead strong { color: var(--text); font-weight: 600; }

.cert-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.cert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}
.cert-row__tag {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cert-row__tag::before {
  content: "";
  width: 7px; height: 7px;
  flex-shrink: 0;
  background: var(--green);
}
.cert-row__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--text);
}
.cert-row__name {
  margin: 16px 0 0;
  max-width: 32ch;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dim);
}
.cert-row__meta {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.cert-row__link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.cert-row__link:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}
.cert-row__doc {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--panel-border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.30);
  transition: transform .4s ease, border-color .25s ease, box-shadow .4s ease;
}
.cert-row__doc img { width: 100%; display: block; }
.cert-row__doc:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.42);
}
.cert-row:nth-child(even) .cert-row__doc { order: -1; }

@media (max-width: 860px) {
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cert-row { grid-template-columns: 1fr; }
  .cert-row:nth-child(even) .cert-row__doc { order: 0; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Numbering removed site-wide */
.section-head__num,
.service-card__index,
.feature-card__num { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1300px) {
  .cta-split { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  /* keep logo + controls above the full-screen menu */
  .brand,
  .header-actions { position: relative; z-index: 31; }
  body.menu-open { overflow: hidden; }
  /* hide the header's frosted bar over the open menu */
  body.menu-open .site-header::before { opacity: 0; }

  /* ---- Full-screen off-canvas menu ---- */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: flex-start;
    gap: 0;
    padding: clamp(104px, 15vh, 150px) var(--pad-x) clamp(40px, 7vh, 72px);
    overflow-y: auto;
    background-color: #0B0B0B;
    background-image:
      linear-gradient(180deg, rgba(9, 9, 9, 0.80) 0%, rgba(9, 9, 9, 0.94) 100%),
      url('../../images/use-for-site/2.jpg');
    background-size: cover;
    background-position: center;
    counter-reset: navnum;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .5s cubic-bezier(.66, 0, .2, 1), visibility 0s linear .5s;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .5s cubic-bezier(.66, 0, .2, 1), visibility 0s linear 0s;
  }

  .nav__item {
    width: 100%;
    counter-increment: navnum;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateX(34px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
  }
  .nav.is-open .nav__item { opacity: 1; transform: none; }
  .nav.is-open .nav__item:nth-child(1) { transition-delay: .14s; }
  .nav.is-open .nav__item:nth-child(2) { transition-delay: .19s; }
  .nav.is-open .nav__item:nth-child(3) { transition-delay: .24s; }
  .nav.is-open .nav__item:nth-child(4) { transition-delay: .29s; }
  .nav.is-open .nav__item:nth-child(5) { transition-delay: .34s; }
  .nav.is-open .nav__item:nth-child(6) { transition-delay: .39s; }
  .nav.is-open .nav__item:nth-child(7) { transition-delay: .44s; }
  .nav.is-open .nav__item:nth-child(8) { transition-delay: .49s; }
  .nav.is-open .nav__item:nth-child(9) { transition-delay: .54s; }

  .nav__link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: clamp(13px, 2.1vh, 24px) 0;
    font-size: clamp(25px, 6.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #fff;
  }
  .nav__link::after { display: none; }
  .nav__link:hover,
  .nav__link.is-active { color: var(--green); }

  /* dropdown becomes an inline sub-list in the off-canvas menu */
  .nav__sub {
    position: static;
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 2px 0 16px;
    padding: 4px 0 4px 22px;
    background: none;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__sub::before { display: none; }
  .nav__sub-media,
  .nav__sub-desc { display: none; }
  .nav__sub-link {
    position: static;
    aspect-ratio: auto;
    overflow: visible;
    padding: 10px 0;
  }
  .nav__sub-link::before,
  .nav__sub-link::after { display: none; }
  .nav__sub-title {
    position: static;
    padding: 0;
    font-size: clamp(16px, 3.4vw, 22px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
  }
  .nav__sub-link:hover .nav__sub-title,
  .nav__sub-link.is-active .nav__sub-title { color: var(--green); }
  .nav__plus { font-size: 0.72em; }

  .nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(22px, 3.5vh, 44px);
    padding: 17px 30px;
    border-radius: 2px;
    background: var(--green);
    color: #0E0E0E;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(34px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
    transition-delay: .58s;
  }
  .nav.is-open .nav__cta { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .about { padding-block: clamp(64px, 11vw, 96px); }
  .about__grid { grid-template-columns: 1fr; }
  .about__panel { margin-right: 0; margin-top: 0; }
  .about__image { margin-top: 28px; }
  .about__image img { height: clamp(300px, 56vw, 460px); min-height: 0; }
  .section--bleed-right,
  .section--bleed-left { padding-inline: var(--pad-x); }
  .projects { grid-template-columns: 1fr; }
  .projects__col--right { padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; padding-right: var(--pad-x); }
  .footer-grid > :nth-child(2) { padding-left: var(--pad-x); }

  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: 580px; }
  .hero__title { font-size: clamp(34px, 9vw, 52px); line-height: 1.08; }
  .map-wrap { height: clamp(360px, 66vw, 460px); }
  .section-head__num { font-size: clamp(64px, 22vw, 104px); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > * { padding-inline: var(--pad-x); }
  .footer-cta__inner { align-items: stretch; }
  .footer-cta__btn { width: 100%; justify-content: center; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__scroll-track::after { animation: none; }
  .hero__content > *,
  .page-hero__inner > *,
  .page-hero__crumbs { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================
   BLOG SINGLE — hero sizing + table of contents
   ================================================================ */

.page-hero--blog .page-hero__title {
  font-size: clamp(34px, 4.6vw, 64px);
}

.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}

.article-toc__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0 0 14px;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc__item {
  margin: 0;
  padding: 0;
}

.article-toc__item a {
  display: block;
  padding: 5px 0 5px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .2s ease;
}

.article-toc__item a:hover {
  color: var(--green);
  border-left-color: var(--green);
}

.article-toc__item--h3 a {
  padding-left: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}

html[data-theme="light"] .article-toc__item a {
  color: rgba(0,0,0,0.55);
}

html[data-theme="light"] .article-toc__item a:hover {
  color: var(--green);
  border-left-color: var(--green);
}

html[data-theme="light"] .article-toc__item--h3 a {
  color: rgba(0,0,0,0.42);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-toc {
    position: static;
    order: -1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 24px;
  }
  html[data-theme="light"] .article-toc {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
  }
}

/* ================================================================
   BLOG SINGLE — no-TOC layout (centered single column)
   ================================================================ */

.article-single {
  max-width: 760px;
  margin: 0 auto;
}

/* ================================================================
   BLOG PROSE — wider + larger text (works in both layouts)
   ================================================================ */

.prose--article {
  max-width: none;
}

.prose--article > p {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.75;
  margin: 0 0 22px;
  color: var(--text-dim);
}

.prose--article > p.lead,
.prose--article > p:first-child {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 32px;
}

.prose--article h2 {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
  color: var(--text);
}

.prose--article h3 {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  margin: 36px 0 14px;
  color: var(--text);
}

.prose--article ul,
.prose--article ol {
  margin: 0 0 22px;
  padding-left: 28px;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.75;
  color: var(--text-dim);
}

.prose--article li {
  margin-bottom: 8px;
}

.prose--article a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Project location / OpenStreetMap ===== */
.project-map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}
.project-map__frame {
  display: block;
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  border: 0;
  /* Default theme is dark — invert the light OSM tiles to match. */
  filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.95) brightness(0.95);
}
html[data-theme="light"] .project-map__frame {
  filter: grayscale(0.2) contrast(1.02);
}
.project-map__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(16px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.project-map__loc {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.project-map__bar .link-arrow { margin: 0; }
