/* ═══════════════════════════════════════════════
   АФД — «Архитектура света»
   графит · анодированный алюминий · шампань
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0b0c0e;
  --bg-2: #101216;
  --ink: #e9e6df;
  --ink-dim: #8d8f93;
  --alu: #aeb4bc;
  --champ: #c9a86a;
  --champ-dim: rgba(201, 168, 106, .35);
  --line: rgba(233, 230, 223, .1);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Onest", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --pad: clamp(20px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: #2a2d33 var(--bg); overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  /* overflow-x: hidden здесь НЕЛЬЗЯ — body становится scroll-контейнером и
     убивает position:sticky (пин разреза). Горизонтальный клип держит html. */
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--champ); color: #0b0c0e; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--alu);
}

/* ─── grain ─── */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 300;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-8%) }
  30% { transform: translate(3%,-14%) } 50% { transform: translate(-9%,4%) }
  70% { transform: translate(7%,9%) } 90% { transform: translate(-4%,11%) }
}

/* ─── cursor ─── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400;
  width: 12px; height: 12px;
  border: 1px solid var(--alu);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1),
              background-color .35s, border-color .35s, opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.cursor--ready { opacity: 1; }
.cursor--hover { width: 44px; height: 44px; border-color: var(--champ-dim); }
.cursor--label {
  width: 88px; height: 88px;
  background: rgba(11,12,14,.72);
  border-color: var(--champ);
  backdrop-filter: blur(4px);
}
.cursor__label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--champ); opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.cursor--label .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ─── preloader ─── */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { width: min(420px, 72vw); text-align: center; }
.preloader__logo-img {
  height: clamp(56px, 8vw, 84px); width: auto;
  margin: 0 auto 34px;
}
.preloader__line {
  height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.preloader__line span {
  position: absolute; inset: 0;
  background: var(--champ);
  transform-origin: left;
  transform: scaleX(0);
}
.preloader__count {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; color: var(--ink-dim);
}

/* ─── nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  opacity: 0;
}
.nav__links, .nav__cta { mix-blend-mode: difference; }
.nav__logo { display: block; }
.nav__logo-img {
  height: 32px; width: auto; display: block;
  filter: drop-shadow(0 1px 8px rgba(11,12,14,.55));
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav__logo:hover .nav__logo-img { transform: scale(1.06); }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--champ);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(233,230,223,.28);
  border-radius: 100px;
  padding: 11px 22px;
  transition: border-color .3s, color .3s;
  display: inline-block;
}
.nav__cta:hover { border-color: var(--champ); color: var(--champ); }

/* бургер + мобильное меню */
.nav__burger {
  display: none;
  position: relative; z-index: 201;
  width: 40px; height: 40px; margin-left: 18px;
  background: none; border: 0; padding: 0; cursor: pointer;
  mix-blend-mode: difference;
}
.nav__burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
  touch-action: none; overscroll-behavior: contain;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__close {
  position: absolute; top: 22px; right: var(--pad);
  width: 40px; height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.mobile-menu__close span {
  position: absolute; left: 8px; right: 8px; top: 19px; height: 1.5px;
  background: var(--ink);
}
.mobile-menu__close span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-menu__links { display: flex; flex-direction: column; gap: clamp(14px, 3.4vh, 30px); }
.mobile-menu__links a {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 8vw, 44px);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--ink);
  opacity: 0; transform: translateY(18px);
  transition: color .3s;
}
.mobile-menu.open .mobile-menu__links a {
  opacity: 1; transform: translateY(0);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), color .3s;
}
.mobile-menu__links a:active { color: var(--champ); }
@media (hover: hover) { .mobile-menu__links a:hover { color: var(--champ); } }
.mobile-menu.open .mobile-menu__links a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open .mobile-menu__links a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open .mobile-menu__links a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.open .mobile-menu__links a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.open .mobile-menu__links a:nth-child(5) { transition-delay: .22s; }
.mobile-menu.open .mobile-menu__links a:nth-child(6) { transition-delay: .26s; }
.mobile-menu.open .mobile-menu__links a:nth-child(7) { transition-delay: .30s; }
.mobile-menu.open .mobile-menu__links a:nth-child(8) { transition-delay: .34s; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* ─── section tag ─── */
.section-tag {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 6vh, 72px);
}
.section-tag i { font-style: normal; color: var(--champ); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
#webgl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(11,12,14,.66) 100%),
    linear-gradient(to top, rgba(11,12,14,.9), transparent 34%);
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 96px;
  pointer-events: none;
}
.hero__content a, .hero__content .hero__scroll { pointer-events: auto; }
.hero__meta {
  display: flex; justify-content: space-between;
  opacity: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 10.5vw, 158px);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  user-select: none;
}
.hero__line { display: block; overflow: hidden; }
.hero__line--right { text-align: right; }
.hero__word { display: inline-block; transform: translateY(110%); }
.hero__word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--alu); }
.hero__word--accent {
  font-weight: 200; font-style: normal;
  color: var(--champ);
}
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  opacity: 0;
}
.hero__sub { font-size: clamp(14px, 1.4vw, 17px); color: var(--ink-dim); }
.hero__scroll {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.hero__scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--champ);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .3 } 50% { opacity: 1 } }

.hero__ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  overflow: hidden;
  background: rgba(11,12,14,.55);
  backdrop-filter: blur(6px);
}
.hero__ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 36s linear infinite;
}
.hero__ticker-track span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim);
}
@keyframes ticker { to { transform: translateX(-50%) } }

/* ═══ MANIFEST ═══ */
.manifest { padding: clamp(100px, 16vh, 190px) var(--pad); }
.manifest__text {
  font-size: clamp(24px, 3.6vw, 52px);
  line-height: 1.32;
  font-weight: 300;
  max-width: 20ch;
  max-width: min(1100px, 92%);
}
.manifest__text .w { opacity: .12; transition: opacity .5s; }
.manifest__text .w.on { opacity: 1; }

.stats {
  margin-top: clamp(70px, 11vh, 130px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 34px 26px 30px 0;
  border-right: 1px solid var(--line);
  padding-left: 26px;
  transition: background-color .4s;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat:hover { background: rgba(233,230,223,.025); }
.stat__num {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(34px, 4.6vw, 68px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num em {
  font-style: normal; font-size: .38em;
  color: var(--champ); margin-left: 6px;
}
.stat__label { margin-top: 12px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 26px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
}

/* ═══ CYCLE ═══ */
.cycle { padding: clamp(80px, 13vh, 160px) var(--pad); }
.cycle__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.04; text-transform: uppercase;
  margin-bottom: clamp(50px, 8vh, 100px);
}
.cycle__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cycle-card {
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 44px);
  min-height: clamp(300px, 40vh, 420px);
  display: flex; flex-direction: column;
  position: relative;
  background: linear-gradient(160deg, var(--bg-2), var(--bg) 70%);
  transition: border-color .5s, transform .5s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.cycle-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--champ);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.cycle-card:hover { border-color: rgba(201,168,106,.4); transform: translateY(-6px); }
.cycle-card:hover::before { transform: scaleX(1); }
.cycle-card__index {
  font-size: 20px; color: var(--champ);
  margin-bottom: auto;
}
.cycle-card h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 1.9vw, 28px);
  text-transform: uppercase;
  margin: 26px 0 14px;
}
.cycle-card p { color: var(--ink-dim); font-size: 15px; }
.cycle-card__foot {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cycle-card__draw {
  position: absolute;
  right: clamp(12px, 1.6vw, 22px);
  bottom: clamp(50px, 7vh, 64px);
  width: min(40%, 150px);
  opacity: .08;
  transition: opacity .6s ease;
  pointer-events: none;
}
.cycle-card__draw line, .cycle-card__draw path, .cycle-card__draw rect, .cycle-card__draw circle {
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1);
}
.cycle-card__draw .d1 { transition-delay: 0s; }
.cycle-card__draw .d2 { transition-delay: .18s; }
.cycle-card__draw .d3 { transition-delay: .38s; }
.cycle-card__draw .d4 { transition-delay: .58s; }
.cycle-card__draw .d5 { transition-delay: .78s; }
.cycle-card:hover .cycle-card__draw { opacity: .7; }
.cycle-card:hover .cycle-card__draw line,
.cycle-card:hover .cycle-card__draw path,
.cycle-card:hover .cycle-card__draw rect,
.cycle-card:hover .cycle-card__draw circle { stroke-dashoffset: 0; }
@media (max-width: 900px) { .cycle__cards { grid-template-columns: 1fr; } .cycle-card { min-height: 0; } }

/* ═══ ANATOMY — фасад в разрезе (скролл-история) ═══ */
.anatomy { min-height: 430vh; position: relative; }
.anatomy__head { padding: clamp(80px, 13vh, 160px) var(--pad) 0; }
.anatomy__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.04; text-transform: uppercase;
}
.anatomy__sub {
  margin-top: 26px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 58ch;
}
#anatomyStage {
  position: sticky; top: 0;
  width: 100%; height: 100vh; height: 100svh;
  overflow: hidden;
}
#anatomyGl {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition-property: opacity;
  transition-duration: .7s;
  transition-timing-function: ease-out;
}
#anatomySeq {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
  will-change: transform;
}
#anatomySeq.on { opacity: 1; }
#anatomyStage.seq-live #anatomyGl { opacity: 0; transition: opacity .8s ease; }
@media (max-width: 768px) { #anatomySeq { height: 55%; top: 0; bottom: auto; inset: auto 0; left: 0; right: 0; } }

#anatomyStage.is-render-ready #anatomyGl { opacity: var(--canvas-opacity, 1); }
#anatomyGl:active { cursor: grabbing; }
#anatomyStage.is-fallback .anatomy-cue { display: none; }
.anatomy-fallback {
  position: absolute; inset: 0; z-index: 0;
  opacity: 1;
  transition-property: opacity;
  transition-duration: .7s;
  transition-timing-function: ease-out;
}
#anatomyStage.is-render-ready .anatomy-fallback { opacity: var(--poster-opacity, 0); pointer-events: none; }
.anatomy-fallback img {
  width: 100%; height: 100%; object-fit: cover; opacity: .78;
  outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px;
}
.anatomy-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
/* легенда справа */
#anatomyLegend {
  position: absolute; z-index: 2;
  right: var(--pad); top: 50%;
  transform: translateY(-50%);
  width: min(420px, 30%);
  display: flex; flex-direction: column;
  padding: 24px 0 24px 32px;
  background: linear-gradient(90deg, rgba(11, 12, 14, 0), rgba(11, 12, 14, .72) 24%, rgba(11, 12, 14, .92));
  opacity: var(--legend-opacity, 1);
  transition-property: opacity;
  transition-duration: .45s;
}
.anatomy-layer {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 16px;
  padding: clamp(10px, 1.9vh, 20px) 0 clamp(10px, 1.9vh, 20px) 20px;
  border-left: 1px solid var(--line);
  opacity: .14;
  transform: translateX(12px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.22,1,.36,1),
              border-color .45s, padding-left .45s cubic-bezier(.22,1,.36,1);
}
.anatomy-layer.is-active {
  opacity: 1; transform: translateX(0); border-color: var(--champ); padding-left: 30px;
  background: linear-gradient(90deg, rgba(201, 168, 106, .06), transparent 72%);
}
.anatomy-layer.is-complete { opacity: .55; transform: translateX(0); border-color: var(--champ-dim); }
.anatomy-layer__idx { color: var(--champ); grid-row: span 3; padding-top: 5px; }
.anatomy-layer__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(14px, 1.4vw, 20px);
  text-transform: uppercase;
  transition: font-size .4s;
}
.anatomy-layer__note {
  max-height: 0; overflow: hidden; opacity: 0;
  transition-property: max-height, opacity;
  transition-duration: .4s;
}
.anatomy-layer.is-active .anatomy-layer__note { max-height: 30px; opacity: .7; }
.anatomy-layer__desc {
  color: var(--ink-dim); font-size: 13px; line-height: 1.55;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s cubic-bezier(.22,1,.36,1), opacity .4s, margin-top .4s;
}
.anatomy-layer.is-active .anatomy-layer__desc { max-height: 90px; opacity: 1; margin-top: 6px; }
.anatomy-layer__facts {
  grid-column: 2;
  color: var(--champ); font-size: 10px; line-height: 1.5;
  max-height: 0; overflow: hidden; opacity: 0;
  transition-property: max-height, opacity, margin-top;
  transition-duration: .5s, .4s, .4s;
}
.anatomy-layer.is-active .anatomy-layer__facts { max-height: 36px; opacity: .85; margin-top: 8px; }
/* фазовый блок (сцены 1 и 7) */
.anatomy-phase {
  position: absolute; z-index: 2;
  left: var(--pad); bottom: 12vh;
  max-width: 380px;
  transition: opacity .5s;
}
.anatomy-phase__title { color: var(--champ); display: block; margin-bottom: 10px; }
.anatomy-phase__text { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.anatomy-phase__hint {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(15px, 1.6vw, 21px);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
}
/* финальный титул exploded-сцены */
.anatomy-final {
  position: absolute; z-index: 2;
  left: 50%; bottom: 9vh;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 10px;
}
.anatomy-final .mono { color: var(--champ); }
.anatomy-final b {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2.6vw, 38px);
  text-transform: uppercase;
}
.anatomy-final i { font-style: normal; color: var(--ink-dim); font-size: 14px; }
.anatomy-final__cta {
  align-self: center; min-height: 44px; margin-top: 8px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--champ); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  transition-property: color, box-shadow, scale;
  transition-duration: .2s;
}
.anatomy-final__cta:hover, .anatomy-final__cta:focus-visible {
  color: var(--ink); box-shadow: 0 0 0 1px rgba(201, 168, 106, .65);
}
.anatomy-final__cta:active { scale: .96; }
/* шкала прогресса */
.anatomy-progress {
  position: absolute; z-index: 2;
  left: var(--pad); top: 8vh;
  display: flex; align-items: center; gap: 14px;
}
.anatomy-progress__track {
  width: 120px; height: 1px;
  background: var(--line);
  position: relative; overflow: hidden; display: block;
}
.anatomy-progress__track span {
  position: absolute; inset: 0;
  background: var(--champ);
  transform-origin: left;
  transform: scaleX(0);
  display: block;
}
#anatomyProgressNum { color: var(--champ); }
.anatomy-cue {
  position: absolute; z-index: 3;
  left: 50%; bottom: 5vh;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--champ); font-size: 10px; letter-spacing: .18em;
  opacity: var(--cue-opacity, 1);
  transition-property: opacity;
  transition-duration: .35s;
  pointer-events: none;
}
.anatomy-cue i { font-style: normal; font-size: 18px; }
@media (max-width: 768px) {
  .anatomy { min-height: 390vh; }
  #anatomyGl, .anatomy-fallback { height: 55%; top: 0; bottom: auto; }
  .anatomy-overlay { display: none; }
  #anatomyLegend {
    top: auto; bottom: max(5vh, 34px); right: var(--pad); left: var(--pad);
    transform: none; width: auto; min-height: 145px;
    justify-content: flex-start; padding: 0; background: none;
  }
  .anatomy-layer { display: none; padding: 14px 0 14px 16px; }
  .anatomy-layer.is-active { display: grid; padding-left: 22px; }
  .anatomy-layer__desc, .anatomy-layer__note { display: none; }
  .anatomy-layer.is-active .anatomy-layer__desc { display: block; max-height: 70px; }
  .anatomy-layer__facts { font-size: 9px; }
  .anatomy-phase { bottom: auto; top: 58%; right: var(--pad); }
  .anatomy-final { bottom: auto; top: 57%; width: calc(100% - 2 * var(--pad)); }
  .anatomy-final i { font-size: 12px; }
  .anatomy-progress { top: 3vh; }
  .anatomy-cue { bottom: auto; top: 49%; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .anatomy { min-height: 180vh; }
  #anatomyGl, .anatomy-fallback, .anatomy-layer, .anatomy-final__cta { transition-duration: .01ms; }
  .anatomy-cue { display: none; }
  #anatomyGl { cursor: default; }
}

/* ═══ PROJECTS ═══ */
.projects { padding-top: clamp(80px, 13vh, 160px); }
.projects__head { padding: 0 var(--pad); }
.projects__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1.06; text-transform: uppercase;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.projects__pin { overflow: hidden; }
.projects__track {
  display: flex; gap: clamp(20px, 3vw, 56px);
  padding: 0 var(--pad);
  width: max-content;
  align-items: center;
  height: 100vh; height: 100svh;
}
.project-slide {
  width: clamp(300px, 58vw, 900px);
  flex-shrink: 0;
}
.project-slide__img {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-2);
}
.project-slide__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  filter: saturate(.88) contrast(1.04);
  transition: transform 1s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.project-slide:hover .project-slide__img img { transform: scale(1.04); }
.project-slide__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 26px;
  padding-top: 20px;
  align-items: baseline;
}
.project-slide__idx { color: var(--champ); }
.project-slide__info h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(20px, 2.4vw, 34px);
  text-transform: uppercase;
}
.project-slide__info p { grid-column: 2; }

/* ═══ INDEX LIST ═══ */
.index-list {
  position: relative;
  padding: clamp(80px, 12vh, 150px) var(--pad);
}
.index-row {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
  padding: clamp(15px, 2.2vh, 24px) 0;
  border-top: 1px solid var(--line);
  transition: padding-left .45s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
}
.index-row:last-of-type { border-bottom: 1px solid var(--line); }
.index-row:hover { padding-left: 22px; }
.index-row__bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.index-row__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.9);
}
.index-row__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,14,.92) 12%, rgba(11,12,14,.4) 50%, rgba(11,12,14,.88) 88%);
}
.index-row:hover .index-row__bg { opacity: 1; transform: scale(1); }
.index-row > *:not(.index-row__bg) { position: relative; z-index: 1; }
.index-row__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(18px, 2.3vw, 32px);
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .4s;
}
.index-row:hover .index-row__name { color: var(--ink); }
.index-row__type { text-align: right; flex-shrink: 0; }
@media (max-width: 700px) {
  .index-row { flex-wrap: wrap; row-gap: 4px; }
  .index-row__type { flex-shrink: 1; min-width: 0; white-space: normal; text-align: left; }
}
.index-list__hint { margin-bottom: 26px; color: var(--champ); }
.index-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: clamp(22px, 3.4vh, 38px);
}
.index-filters button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-dim);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: color .3s, border-color .3s, background-color .3s;
}
.index-filters button:hover { color: var(--ink); border-color: var(--champ-dim); }
.index-filters button.on { color: var(--champ); border-color: var(--champ); }
.index-row.is-hidden { display: none; }

/* ═══ SYSTEMS ═══ */
.systems { padding: clamp(80px, 13vh, 160px) var(--pad); }
.system-row--muted .system-row__name { font-size: clamp(20px, 2.4vw, 36px); color: var(--ink-dim); }
.system-row--muted:hover .system-row__name { color: var(--champ); }
.systems__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 76px);
  text-transform: uppercase;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.system-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) 1.6fr auto;
  gap: 26px; align-items: baseline;
  padding: clamp(26px, 4vh, 44px) 0;
  border-top: 1px solid var(--line);
  transition: background-color .4s;
}
.system-row:last-child { border-bottom: 1px solid var(--line); }
.system-row:hover { background: rgba(233,230,223,.02); }
.system-row__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 3.4vw, 52px);
  text-transform: uppercase;
  transition: color .4s, letter-spacing .5s;
}
.system-row:hover .system-row__name { color: var(--champ); letter-spacing: .03em; }
.system-row__desc { color: var(--ink-dim); font-size: 15px; max-width: 52ch; }
.system-row__tag { text-align: right; }
.system-row { position: relative; overflow: hidden; }
.system-row > *:not(.system-row__bg):not(.system-row__section) { position: relative; z-index: 1; }
.system-row__bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.system-row__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); }
.system-row__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,14,.94) 15%, rgba(11,12,14,.55) 55%, rgba(11,12,14,.9) 88%);
}
.system-row:hover .system-row__bg { opacity: 1; transform: scale(1); }
.system-row__section {
  position: absolute; z-index: 1;
  right: clamp(120px, 14vw, 240px);
  top: 50%;
  transform: translateY(-50%);
  height: 76%;
  max-height: 110px;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.system-row__section line, .system-row__section path, .system-row__section rect {
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1);
}
.system-row__section .d1 { transition-delay: 0s; }
.system-row__section .d2 { transition-delay: .15s; }
.system-row__section .d3 { transition-delay: .3s; }
.system-row__section .d4 { transition-delay: .45s; }
.system-row__section .d5 { transition-delay: .6s; }
.system-row:hover .system-row__section { opacity: .95; }
.system-row:hover .system-row__section line,
.system-row:hover .system-row__section path,
.system-row:hover .system-row__section rect { stroke-dashoffset: 0; }
@media (max-width: 800px) {
  .system-row { grid-template-columns: 1fr; gap: 10px; }
  .system-row__tag { text-align: left; }
}

/* ═══ GLAZING TYPES ═══ */
.glazing { padding: clamp(80px, 13vh, 160px) var(--pad); position: relative; }
.glazing-item { position: relative; overflow: hidden; cursor: pointer; }
.glazing-item__bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.glazing-item__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.9);
}
.glazing-item__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,12,14,.93) 22%, rgba(11,12,14,.55) 60%, rgba(11,12,14,.25));
}
.glazing-item:hover .glazing-item__bg { opacity: 1; transform: scale(1); }
.glazing-item > *:not(.glazing-item__bg) { position: relative; z-index: 1; }
.glazing__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1.06; text-transform: uppercase;
}
.glazing__sub {
  margin-top: 24px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 52ch;
}
.glazing__grid {
  margin-top: clamp(40px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 3.5vw, 64px);
}
.glazing-item {
  padding: clamp(20px, 3vh, 30px) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 16px;
  transition: background-color .4s, padding-left .45s cubic-bezier(.22,1,.36,1);
}
.glazing-item:hover { background: rgba(233,230,223,.02); padding-left: 10px; }
.glazing-item__idx { color: var(--champ); grid-row: span 2; padding-top: 4px; }
.glazing-item h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(15px, 1.35vw, 19px);
  text-transform: uppercase;
}
.glazing-item p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; }
.glazing-item--cta h3 a { color: var(--champ); }
.glazing-item--cta:hover h3 a { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1100px) { .glazing__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .glazing__grid { grid-template-columns: 1fr; } }

/* ═══ PRODUCTION ═══ */
.production {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(80px, 13vh, 160px) var(--pad);
  align-items: center;
}
.production__img { overflow: hidden; aspect-ratio: 4 / 3; }
.production__img img {
  width: 100%; height: 116%; object-fit: cover;
  filter: saturate(.85);
}
.production__body h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.05; text-transform: uppercase;
  margin-bottom: 26px;
}
.production__body p { color: var(--ink-dim); max-width: 46ch; }
.production__list { list-style: none; margin-top: 34px; }
.production__list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.production__list .mono { color: var(--champ); }
.production__partners {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: clamp(40px, 7vh, 80px);
}
.partners-marquee {
  overflow: hidden;
  max-width: 100%;
  padding: clamp(16px, 2.6vh, 26px) 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex; align-items: center;
  gap: clamp(48px, 6vw, 110px);
  width: max-content;
  animation: partners-run 38s linear infinite;
}
.partners-marquee--reverse .partners-track { animation-direction: reverse; animation-duration: 44s; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track img {
  height: clamp(20px, 2.4vw, 34px); width: auto;
  filter: invert(.85) grayscale(1);
  opacity: .45;
  transition: opacity .35s, transform .5s cubic-bezier(.22,1,.36,1), filter .35s;
}
.partners-track img:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
  filter: invert(.98) grayscale(1);
}
@keyframes partners-run { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .production { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .anatomy__title { font-size: clamp(24px, 7.5vw, 34px); } }

/* ═══ CONTACT ═══ */
.contact {
  position: relative;
  padding: clamp(160px, 22vh, 260px) var(--pad) 0;
  overflow: hidden;
}
#contactGl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact__pre, .contact__title, .contact__grid, .contact .footer { position: relative; z-index: 1; }
.contact__glow {
  position: absolute; top: -10%; left: 50%;
  width: 70vw; height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(201,168,106,.08), transparent 70%);
  pointer-events: none;
}
.contact__pre { display: block; margin-bottom: 30px; color: var(--champ); }
.contact__title {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(46px, 10vw, 150px);
  line-height: 1; text-transform: uppercase;
}
.contact__title span { display: block; transition: color .5s, -webkit-text-stroke-color .5s; }
.contact__title:hover span:first-child { color: var(--champ); }
.contact__title:hover .outline-text { -webkit-text-stroke-color: var(--champ); }
.contact__pdf {
  display: inline-block;
  margin-top: clamp(26px, 4vh, 44px);
  border: 1px solid rgba(233,230,223,.28);
  border-radius: 100px;
  padding: 15px 30px;
  color: var(--ink);
  transition: border-color .3s, color .3s, transform .4s cubic-bezier(.22,1,.36,1);
}
.contact__pdf:hover { border-color: var(--champ); color: var(--champ); transform: translateY(-3px); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: clamp(60px, 10vh, 120px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact__grid > div { display: flex; flex-direction: column; gap: 10px; }
.contact__grid a { transition: color .3s; }
.contact__grid a:hover { color: var(--champ); }
.contact__label { color: var(--champ); }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr 1fr; } }

.footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 80px 0 26px;
  position: relative;
}
.footer__big {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(90px, 22vw, 340px);
  line-height: .78;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233,230,223,.14);
  user-select: none;
  transform: translateY(8%);
}
@media (max-width: 700px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
}
.lightbox.open { visibility: visible; }
.lightbox__bg {
  position: absolute; inset: 0;
  background: rgba(8, 9, 11, .94);
  backdrop-filter: blur(10px);
  opacity: 0;
  cursor: pointer;
}
.lightbox__figure {
  position: relative;
  max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0;
}
.lightbox__figure img {
  max-width: 92vw; max-height: 76vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.lightbox__caption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
}
.lightbox__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(17px, 2vw, 26px);
  text-transform: uppercase;
}
.lightbox__close {
  position: absolute; top: 26px; right: var(--pad);
  background: none; border: 1px solid rgba(233,230,223,.28);
  border-radius: 100px;
  padding: 11px 22px;
  color: var(--ink); cursor: pointer;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-mono); font-size: 11px;
  transition: border-color .3s, color .3s;
  opacity: 0;
}
.lightbox__close:hover { border-color: var(--champ); color: var(--champ); }
.lightbox__count { color: var(--champ); }
.lightbox__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(11,12,14,.5); border: 1px solid rgba(233,230,223,.28);
  border-radius: 50%;
  width: 56px; height: 56px;
  color: var(--ink); cursor: pointer;
  font-family: var(--font-mono); font-size: 16px;
  transition: border-color .3s, color .3s, opacity .3s;
  opacity: 0;
  backdrop-filter: blur(4px);
}
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }
.lightbox__nav:hover { border-color: var(--champ); color: var(--champ); }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__count { display: none; }

/* ═══ СТРАНИЦА ПРОЕКТА ═══ */
.ppage { background: var(--bg); }
.nav--page {
  opacity: 1;
  background: linear-gradient(to bottom, rgba(11,12,14,.85), transparent);
}
.ppage__back { color: var(--ink-dim); transition: color .3s; }
.ppage__back:hover { color: var(--champ); }
.ppage__hero {
  position: relative;
  height: 72vh; min-height: 420px;
  overflow: hidden;
}
.ppage__hero img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9);
  animation: heroIn 1.4s cubic-bezier(.22,1,.36,1);
}
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.ppage__hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,12,14,.96) 4%, rgba(11,12,14,.25) 45%, rgba(11,12,14,.3) 100%);
}
.ppage__hero-text {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 44px;
}
.ppage__crumb { color: var(--champ); margin-bottom: 16px; display: block; }
.ppage__hero-text h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 4.6vw, 64px);
  line-height: 1.08; text-transform: uppercase;
  max-width: 24ch;
}
.ppage__body {
  display: grid;
  grid-template-columns: 1.5fr minmax(280px, 1fr);
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(60px, 9vh, 110px) var(--pad);
}
.ppage__desc p { color: var(--ink-dim); font-size: 17px; line-height: 1.75; max-width: 62ch; }
.ppage__specs { list-style: none; margin-top: 36px; }
.ppage__specs li {
  padding: 13px 0 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  position: relative;
}
.ppage__specs li::before {
  content: "—"; position: absolute; left: 0;
  color: var(--champ);
  font-family: var(--font-mono);
}
.ppage__meta { padding-top: 58px; }
.ppage__meta-row {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ppage__meta-row .mono { color: var(--champ); }
.ppage__meta-row b { font-weight: 400; font-size: 16px; }
.ppage__gallery-wrap { padding: 0 var(--pad) clamp(60px, 9vh, 110px); }
.ppage__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 16px;
}
.ppage__shot {
  display: block; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--bg-2);
}
.ppage__shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.ppage__shot:hover img { transform: scale(1.05); }
.ppage__pager {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.ppage__pager a {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 5vh, 48px) var(--pad);
  transition: background-color .4s;
}
.ppage__pager a:hover { background: rgba(233,230,223,.03); }
.ppage__pager a .mono { color: var(--champ); }
.ppage__pager a b {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(15px, 1.7vw, 24px);
  text-transform: uppercase;
}
.ppage__pager-next { text-align: right; align-items: flex-end; border-left: 1px solid var(--line); }
.ppage__footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
}
/* лайтбокс без GSAP — на классах */
.ppage .lightbox__bg,
.ppage .lightbox__figure,
.ppage .lightbox__close,
.ppage .lightbox__nav { transition: opacity .4s ease; }
.ppage .lightbox--in .lightbox__bg,
.ppage .lightbox--in .lightbox__figure,
.ppage .lightbox--in .lightbox__close,
.ppage .lightbox--in .lightbox__nav { opacity: 1; }
@media (max-width: 900px) {
  .ppage__body { grid-template-columns: 1fr; }
  .ppage__meta { padding-top: 0; }
  .ppage__pager { grid-template-columns: 1fr; }
  .ppage__pager-next { border-left: 0; border-top: 1px solid var(--line); text-align: left; align-items: flex-start; }
}
