/* ════════════════════════════════════════════════════════════
   AID — aid-korp.com
   Deep editorial dark · burnt amber accent
   ════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:        oklch(0.155 0.012 250);
  --bg-deep:   oklch(0.125 0.012 250);
  --bg-elev:   oklch(0.195 0.012 250);
  --ink:       oklch(0.965 0.010 85);
  --ink-2:     oklch(0.78  0.010 85);
  --ink-3:     oklch(0.56  0.010 85);
  --ink-4:     oklch(0.38  0.010 85);
  --ink-5:     oklch(0.26  0.010 85);
  --rule:      oklch(0.965 0.010 85 / 0.16);
  --rule-strong: oklch(0.965 0.010 85 / 0.32);
  --rule-faint:oklch(0.965 0.010 85 / 0.08);
  --accent:    oklch(0.78  0.165 62);   /* burnt amber */
  --accent-2:  oklch(0.86  0.130 62);
  --accent-deep: oklch(0.62 0.140 62);

  /* Type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spatial: rails near the edge, content has its OWN generous breathing.
     Three values: --edge (rail offset), --rail-w (rail visual width),
     --safe (gap between rail and content). Content gutter = sum. */
  --edge: clamp(18px, 1.4vw, 26px);
  --rail-w: 18px;
  --safe: clamp(18px, 1.4vw, 26px);
  --gutter: calc(var(--edge) + var(--rail-w) + var(--safe));

  /* Inner inset for content inside each section — so text sits inset
     from the full-width horizontal rules above/below it. */
  --section-inset: clamp(20px, 2.6vw, 56px);
}
@media (max-width: 720px) {
  :root { --section-inset: 16px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
}
::selection { background: var(--accent); color: var(--bg-deep); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ─── Atmospherics ─────────────────────────────────────────── */
.vignette {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, oklch(0.22 0.015 250 / 0.85), transparent 55%),
    radial-gradient(70% 60% at 100% 110%, oklch(0.10 0.012 250 / 0.55), transparent 70%),
    radial-gradient(60% 50% at 0% 90%, oklch(0.10 0.012 250 / 0.45), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 240px 240px;
  opacity: 0.055;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 6;
  transition: opacity 0.6s ease;
}

/* Faint hairline at gutter edges of content area */
.grid-rails {
  position: fixed;
  top: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  width: 1px;
  background: var(--rule-faint);
}
.grid-rails.l { left: var(--gutter); }
.grid-rails.r { right: var(--gutter); }
@media (max-width: 880px) { .grid-rails { display: none; } }

/* ─── Left vertical micro-text rail (fingerprint) ──────────── */
.rail {
  position: fixed;
  left: var(--edge);
  top: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 3;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rail-inner {
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  display: flex;
  gap: 28px;
  align-items: center;
}
.rail-inner b { color: var(--ink-2); font-weight: 500; }
.rail-inner .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); display: inline-block; opacity: 0.85;
}
.rail-inner .tick { color: var(--ink-4); }
@media (max-width: 980px) { .rail { display: none; } }

/* ─── Right section marker (writing-mode for stable position) ─ */
.marker {
  position: fixed;
  right: var(--edge);
  top: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marker-inner {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transition: opacity 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.marker .num { color: var(--accent); font-weight: 500; }
@media (max-width: 980px) { .marker { display: none; } }

/* ─── Container & layout ─────────────────────────────────── */
main, header, footer { position: relative; z-index: 2; }
.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* ─── Header ──────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--section-inset);
  position: relative;
}
.brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}
.brand .dot {
  color: var(--accent);
  margin-left: 1px;
  position: relative;
  display: inline-block;
  animation: heartbeat 2.4s ease-in-out infinite;
  text-shadow: 0 0 4px oklch(0.78 0.165 62 / 0.55), 0 0 1px oklch(0.78 0.165 62 / 0.9);
}
@keyframes heartbeat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(0.96); }
}
.meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.meta .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: heartbeat 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 oklch(0.78 0.165 62 / 0.5);
}
.meta .live::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ─── Reveal primitives ───────────────────────────────────── */
.reveal-mask {
  display: inline-block;
  clip-path: inset(0 -0.5em 0 -0.1em);
  vertical-align: top;
  line-height: inherit;
}
.reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-mask.in > span { transform: translateY(0); }
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.fade-in.in { opacity: 1; transform: translateY(0); }

.draw-rule {
  display: block;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
.draw-rule.in { transform: scaleX(1); }

/* ─── Eyebrow ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .lead::before { content: "— "; color: var(--ink-4); }
.eyebrow b { color: var(--accent); font-weight: 500; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 110px);
  border-top: 1px solid var(--rule);
  position: relative;
}
.hero-stamp,
.hero-l,
.hero-foot { padding-inline: var(--section-inset); }
.hero-stamp { padding-inline: 0; }
.hero-grid {
  display: block;
}
.hero-l { position: relative; padding-top: 4px; }
.hero-r,
.hero-cue,
.city-stage { display: none !important; }

.h-display {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 0 0;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h-display .ac { color: var(--accent); }
.h-display .ac.late { color: var(--ink); transition: color 0.9s ease 1.4s; }
.h-display .ac.late.lit { color: var(--accent); text-shadow: 0 0 18px oklch(0.78 0.165 62 / 0.35); }
.h-display .em { font-style: italic; font-weight: 300; letter-spacing: -0.028em; }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: clamp(40px, 4.5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  position: relative;
}
.hero-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}
@media (min-width: 880px) {
  .hero-foot {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(48px, 6vw, 96px);
  }
}
.hero-foot .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
  letter-spacing: -0.005em;
  margin: 0;
}
.hero-sub b { color: var(--ink); font-weight: 400; }

/* Hero version stamp — sits in nav row visually, top-right of hero */
.hero-stamp {
  position: absolute;
  top: clamp(8px, 1.2vw, 16px);
  right: var(--section-inset);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.hero-stamp b { color: var(--ink-2); font-weight: 500; }
@media (max-width: 1080px) { .hero-stamp { display: none; } }

/* ─── Section primitives ──────────────────────────────────── */
.section {
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 44px);
  position: relative;
}
.section > .section-tag { padding-inline: var(--section-inset); }
.section-tag {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
@media (min-width: 880px) {
  .section-tag {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(40px, 5vw, 80px);
  }
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.section-eyebrow .num { color: var(--accent); font-weight: 500; }
.section-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 14px 0 0 0;
  max-width: 14ch;
  text-wrap: balance;
}
.section-title .ac { color: var(--accent); }
.section-title .em { font-style: italic; font-weight: 300; }
.section-blurb {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0;
  text-wrap: pretty;
  line-height: 1.55;
}
.section-blurb b { color: var(--ink); font-weight: 400; }
.section-id {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.section-id b { color: var(--accent); font-weight: 500; }

/* ─── Scale strip ─────────────────────────────────────────── */
.scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .scale-grid {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
  }
}
  .scale-cell {
  padding: clamp(36px, 4.5vw, 60px) var(--section-inset) clamp(28px, 3.5vw, 44px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.scale-cell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.scale-grid .scale-cell:last-child::after { display: none; }
@media (min-width: 880px) {
  .scale-cell {
    border-top: 1px solid var(--rule);
    border-right: 1px solid var(--rule-faint);
    padding: clamp(40px, 4vw, 56px) clamp(24px, 2.4vw, 40px);
  }
  .scale-cell::after { display: none; }
  .scale-cell:first-child { padding-left: var(--section-inset); }
  .scale-cell:last-child { border-right: 0; padding-right: var(--section-inset); }
}
.scale-cell .seq {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.scale-cell .seq b { color: var(--accent); font-weight: 500; margin-right: 8px; }
.scale-cell .num {
  font-family: var(--mono);
  font-weight: 200;
  font-size: clamp(64px, 8vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "ss01" 1, "tnum" 1;
  display: flex;
  align-items: baseline;
}
.scale-cell .num .plus,
.scale-cell .num .unit,
.scale-cell .num .pct,
.scale-cell .num .slash {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.32em;
  line-height: 1;
  margin-left: 0.18em;
  color: var(--ink-3);
  letter-spacing: 0;
  transform: translateY(-0.05em);
  transition: color 0.5s ease, transform 0.5s ease;
}
.scale-cell.lit .num .plus,
.scale-cell.lit .num .pct,
.scale-cell.lit .num .slash {
  color: var(--accent);
  transform: translateY(-0.18em);
}
.scale-cell .num .unit {
  font-style: italic;
  font-size: 0.30em;
  color: var(--ink-3);
}
.scale-cell .num .pct { font-size: 0.42em; }
.scale-cell .num .slash {
  color: var(--ink-4);
  font-size: 0.7em;
  margin: 0 0.04em;
}
.scale-cell .num .denom {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 0.4em;
  color: var(--ink-3);
  align-self: flex-end;
  line-height: 1;
  margin-bottom: 0.18em;
}
.scale-cell .label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 24ch;
}
.scale-cell .source {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: auto;
}
.scale-cell .meter {
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}
.scale-cell .meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.scale-cell.lit .meter::after { transform: scaleX(var(--fill, 0.6)); }

.scale-cell .spark {
  height: 28px;
  margin-top: 4px;
  display: block;
}
.scale-cell .spark path {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s, stroke 0.5s ease;
}
.scale-cell.lit .spark path {
  stroke-dashoffset: 0;
  stroke: var(--accent);
}
.scale-cell .dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 4px;
  max-width: 240px;
}
.scale-cell .dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-5);
  display: block;
  transition: background 0.6s ease;
}
.scale-cell.lit .dots i { background: var(--ink-3); }
.scale-cell.lit .dots i.on { background: var(--accent); }

/* ─── Services ────────────────────────────────────────────── */
.svc-list {
  border-top: 1px solid var(--rule);
  position: relative;
}
.svc-tracker {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 1;
}
.svc-list:hover .svc-tracker { opacity: 1; }

.svc .icn { display: none !important; }
.svc {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "ord"
    "title"
    "body"
    "tags";
  gap: 12px;
  padding: clamp(32px, 4vw, 56px) var(--section-inset);
  align-items: start;
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.svc-list .svc:last-child::after { display: none; }
@media (min-width: 1024px) {
  .svc {
    grid-template-columns: clamp(120px, 12vw, 180px) 1fr 1.4fr;
    grid-template-areas:
      "ord title body"
      "ord title tags";
    column-gap: clamp(28px, 3.4vw, 56px);
    row-gap: 14px;
    align-items: end;
  }
  .svc:hover { padding-left: calc(var(--section-inset) + 10px); }
}
.svc .ord {
  grid-area: ord;
  font-family: var(--mono);
  font-weight: 200;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "ss01" 1, "tnum" 1;
  display: flex;
  align-items: flex-end;
  transition: color 0.45s ease;
}
.svc:hover .ord { color: var(--accent); }
/* .svc .icn removed */
.svc h3 {
  grid-area: title;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  align-self: end;
  text-wrap: balance;
  transition: letter-spacing 0.5s ease;
}
.svc:hover h3 { letter-spacing: -0.014em; }
.svc p {
  grid-area: body;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  max-width: 44ch;
  text-wrap: pretty;
  align-self: end;
}
.svc .tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-self: start;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.svc .tags span {
  padding-right: 18px;
  position: relative;
}
.svc .tags span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 6px;
  color: var(--ink-4);
}
.svc .stat {
  grid-area: tags;
  align-self: end;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.svc .stat b { color: var(--ink-2); font-weight: 500; }
@media (min-width: 1024px) {
  .svc .tags { padding-top: 0; }
}

/* ─── Кому помогаем (verticals) ──────────────────────────── */
.verticals {
  border-top: 1px solid var(--rule);
  position: relative;
}
.vert-tracker {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 1;
}
.verticals:hover .vert-tracker { opacity: 1; }
.vert .ico { display: none !important; }
.vert {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "ord"
    "name"
    "details";
  gap: 8px;
  padding: clamp(20px, 2.4vw, 30px) var(--section-inset);
  align-items: center;
  position: relative;
  transition: background 0.4s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.vert::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.verticals .vert:last-child::after { display: none; }
@media (min-width: 880px) {
  .vert {
    grid-template-columns: clamp(72px, 7vw, 104px) minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "ord name details";
    column-gap: clamp(24px, 3vw, 48px);
    align-items: center;
  }
}
.vert .ord {
  grid-area: ord;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  transition: color 0.4s ease;
}
.vert .ord b { color: var(--ink-2); font-weight: 500; margin-right: 4px; }
.vert .ico {
  grid-area: ico;
  width: 44px; height: 44px;
  color: var(--ink-4);
  display: none;
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 880px) { .vert .ico { display: block; } }
.vert .ico svg { width: 100%; height: 100%; display: block; }
.vert .name {
  grid-area: name;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--ink);
  transition: color 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-wrap: balance;
}
.vert .name .em { font-style: italic; font-weight: 300; }
.vert .details {
  grid-area: details;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.vert .details b { color: var(--ink-2); font-weight: 500; }
@media (hover: hover) {
  .vert:hover { background: oklch(0.20 0.014 250 / 0.4); padding-left: 14px; }
  .vert:hover .name { color: var(--accent); transform: translateX(6px); }
  .vert:hover .ord { color: var(--ink-2); }
  .vert:hover .details { opacity: 1; transform: translateX(0); color: var(--ink-3); }
}
@media (max-width: 720px) {
  .vert .details { display: none; }
}

/* ─── Pull-quote (compact editorial moment) ─────────────── */
.quote-bed {
  border-top: 1px solid var(--rule);
  padding: clamp(72px, 9vw, 128px) var(--section-inset) clamp(72px, 9vw, 128px);
  /* full-width band; inset is fine here — no internal rules */
  position: relative;
  overflow: hidden;
}
.quote-bed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 50%, oklch(0.20 0.014 250 / 0.45), transparent 65%);
  pointer-events: none;
}
.quote-bed > * { position: relative; z-index: 2; }
.quote-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 2.8vw, 40px);
}
.quote-eye::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--ink-4);
}
.quote-mark { display: none; }
.quote-body {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 28ch;
  text-wrap: balance;
  margin: 0;
}
.quote-body .ac { color: var(--accent); font-weight: 300; font-style: italic; }
.quote-body .em { font-style: italic; font-weight: 200; }
.quote-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.quote-attr::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--ink-4);
}

/* ─── Process (4 steps) — icon ABOVE title, no overlap ─── */
.process {
  border-top: 1px solid var(--rule);
}
.proc-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .proc-grid {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
  }
}
.proc {
  padding: clamp(32px, 3.6vw, 48px) var(--section-inset) clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 18px;
  position: relative;
}
.proc::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.proc-grid .proc:last-child::after { display: none; }
@media (min-width: 880px) {
  .proc {
    border-top: 1px solid var(--rule);
    border-right: 1px solid var(--rule-faint);
    padding: clamp(32px, 3.4vw, 48px) clamp(24px, 2.4vw, 36px);
  }
  .proc::after { display: none; }
  .proc:first-child { padding-left: var(--section-inset); }
  .proc:last-child { border-right: 0; padding-right: var(--section-inset); }
}
.proc .step {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proc .step b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.proc .ic {
  width: 36px; height: 36px;
  color: var(--ink-3);
  transition: color 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc:hover .ic { color: var(--accent); transform: rotate(6deg); }
.proc .ic svg { width: 100%; height: 100%; display: block; }
.proc h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 24px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.proc p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 0.95vw, 15.5px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}
.proc .arrow { display: none; }

/* ─── Где работаем (platforms — grouped vertical lists) ─── */
.plat-groups {
  display: grid;
  grid-template-columns: 1fr;
  padding-inline: var(--section-inset);
  gap: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 1024px) {
  .plat-groups { grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 3vw, 56px); }
}
.plat-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plat-group .head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.plat-group .head .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.plat-group .head .t {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.plat-group .head .c {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.plat-list {
  display: flex;
  flex-direction: column;
}
.plat-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "seq name"
    "seq kind";
  align-items: baseline;
  column-gap: 14px;
  row-gap: 4px;
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--rule-faint);
  transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.plat-list .plat-item:last-child { border-bottom: 0; }
.plat-item:hover { padding-left: 8px; }
.plat-item .seq {
  grid-area: seq;
  align-self: start;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.plat-item .name {
  grid-area: name;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 24px);
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.4s ease;
}
.plat-item:hover .name { color: var(--accent); }
.plat-item .kind {
  grid-area: kind;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

/* ─── Contact ─────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--rule);
  padding: clamp(72px, 9vw, 140px) var(--section-inset) clamp(64px, 7vw, 120px);
  /* full-width band; inset is fine here — no internal rules */
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  position: relative;
  z-index: 2;
}
.contact-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.contact-eye::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--ink-4);
}
.contact h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 8.5vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.mail-link {
  font-family: var(--mono);
  font-weight: 300;
  color: var(--ink);
  display: inline-block;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 0.86em;
  letter-spacing: -0.045em;
}
.mail-link .at { color: var(--ink-2); }
.mail-link .dot-tld { color: var(--accent); }
.mail-link .arrow {
  display: inline-block;
  color: var(--accent);
  margin-left: 0.1em;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--sans);
  font-weight: 300;
}
.mail-link:hover .arrow { transform: translate(0.35em, -0.18em); }
.mail-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.04em;
  height: 1px;
  background: var(--rule);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), background 0.4s ease;
}
.mail-link:hover::after {
  transform-origin: left center;
  background: var(--accent);
}
.contact-note {
  font-family: var(--sans);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
  font-weight: 300;
  line-height: 1.55;
}
.contact-note b { color: var(--ink); font-weight: 400; }
.contact-pledge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 0;
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}
.contact-pledge .pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px oklch(0.78 0.165 62 / 0.6);
  animation: heartbeat 2.4s ease-in-out infinite;
}
.contact-pledge b { color: var(--ink-2); font-weight: 500; }
.contact-pledge .sep { color: var(--ink-4); }

.big-mark {
  display: none;
}
.big-mark .dot { color: var(--accent); opacity: 1; }

.contact-sigil {
  display: none;
}

/* ─── Footer ─────────────────────────────────────────────── */
.foot-bed {
  border-top: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 120px) 0 clamp(36px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.foot-lockup {
  padding-inline: var(--section-inset);
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(110px, 22vw, 340px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.foot-lockup .dot {
  color: var(--accent);
  display: inline-block;
  animation: heartbeat 2.4s ease-in-out infinite;
  text-shadow: 0 0 18px oklch(0.78 0.165 62 / 0.4), 0 0 4px oklch(0.78 0.165 62 / 0.6);
}
.foot-colophon {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 24px var(--section-inset) 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.foot-colophon b { color: var(--ink-2); font-weight: 500; }
.foot-colophon .sep { color: var(--ink-5); }
.foot-attrib {
  display: grid;
  grid-template-columns: 1fr;
  padding-inline: var(--section-inset);
  gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.55;
}
@media (min-width: 880px) {
  .foot-attrib { grid-template-columns: 1fr auto; align-items: end; }
  .foot-attrib .copy { text-align: right; }
}
.foot-attrib b { color: var(--ink-2); font-weight: 500; }
.foot-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.4s ease;
}
.foot-back:hover { color: var(--accent); }
.foot-back .arr-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.foot-back:hover .arr-up { transform: translateY(-4px); }

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding-top: 22px; padding-bottom: 22px; }
  .meta .label-text { display: none; }
  .h-display { letter-spacing: -0.025em; }
  .hero-stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-mask > span, .fade-in, .rail-inner, .big-mark, .draw-rule,
  .city, .city-col, .hero-cue .line::after, .scale-cell.lit .spark path {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .meta .live, .meta .live::after, .brand .dot, .foot-lockup .dot, .contact-pledge .pip { animation: none; }
}
