:root {
  --topbarH: 72px; /* auto-set by JS */
  --bg: #000;
  --white: #fff;
  --black: #000;
  --deep: #070707;
  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(0, 0, 0, 0.72);
  --gap: 22px;

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  --shadowSoft: 0 14px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  padding-top: env(safe-area-inset-top);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand span {
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.brand small {
  opacity: 0.72;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}
.nav a.cta {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

/* Burger + drawer */
.burger {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
}
.burger .lines {
  display: inline-grid;
  gap: 4px;
}
.burger .lines span {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  display: block;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.drawer.open {
  display: block;
}
.drawerBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.drawerPanel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: rgba(0, 0, 0, 0.88);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawerClose {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.drawer .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.drawer .nav a {
  text-align: left;
  width: 100%;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
body.noScroll {
  overflow: hidden;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--topbarH) + 24px);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: clamp(40px, 7vw, 88px) 0 64px;
  justify-items: center;
}
.heroLeft {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 0.95;
}
.hero-title span {
  display: inline-block;
  letter-spacing: 0.22em;
}
.hero-sub {
  margin: 18px 0 0;
  max-width: 56ch;
  opacity: 0.86;
  font-weight: 700;
  line-height: 1.55;
}

.heroActions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.heroRight {
  position: relative;
  z-index: 1;
  min-height: 420px;
}

/* Word-sphere canvas (flying text) */
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.96;
  pointer-events: none;
  z-index: 0;
}

.heroBgGlow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      900px 520px at 22% 18%,
      rgba(255, 255, 255, 0.16),
      rgba(0, 0, 0, 0) 55%
    ),
    radial-gradient(
      760px 520px at 86% 72%,
      rgba(255, 255, 255, 0.1),
      rgba(0, 0, 0, 0) 62%
    );
  z-index: 1;
  pointer-events: none;
  filter: blur(2px);
}

.heroBgGlowUp {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      900px 520px at 22% 18%,
      rgba(255, 255, 255, 0.16),
      rgba(0, 0, 0, 0) 55%
    ),
    radial-gradient(
      760px 520px at 86% 72%,
      rgba(255, 255, 255, 0.1),
      rgba(0, 0, 0, 0) 62%
    );
  z-index: 1;
  pointer-events: none;
  filter: blur(2px);
}

.scrollHint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  z-index: 3;
}
.scrollHint .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Band */
.band {
  padding: clamp(34px, 6vw, 62px) 0;
  background: #000;
}

.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 16vh, 220px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.bandGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.bandCard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 22px 22px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bandCard h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.bandCard p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
  font-weight: 600;
}

/* About (pages 2 & 3 vibe) */
section {
  padding: clamp(60px, 8vw, 92px) 0;
  scroll-margin-top: calc(var(--topbarH) + 16px);
}
.about {
  background: #000;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.aboutCard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 24px 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.aboutCard h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.aboutCard p {
  margin: 0;
  opacity: 0.86;
  line-height: 1.65;
  font-weight: 600;
}
.bubbleWrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.speech {
  background: #fff;
  border: 3px solid #000;
  border-radius: 26px;
  padding: 16px 18px;
  max-width: 340px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  position: relative;

  color: #000;
}
.speech::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -18px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid #000;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.15));
}
.speech::before {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -14px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid #fff;
  z-index: 2;
}
.speech p {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  line-height: 1.35;
}
.chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 10px 14px 10px 34px;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  white-space: nowrap;
  transition: transform 0.2s ease;

  color: #000;
}
.chip::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #000;
}
.chip:hover {
  transform: translateY(-2px);
}

/* Portrait (about photos, as in legacy) */
.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      900px 500px at 30% 30%,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}
.portrait::after {
  content: "photo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: radial-gradient(
    700px 420px at 50% 40%,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.72)
  );
}
.portrait.hasImg::after {
  display: none;
}
.portraitImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  clip-path: inset(4.5% round 0px);
  transform: scale(1.18);
  transition:
    opacity 0.6s ease,
    transform 0.9s ease;
}
.portraitImg--a {
  opacity: 1;
}
.portraitImg--b {
  opacity: 0;
}
.portrait.hasImg.swap .portraitImg--a {
  opacity: 0;
}
.portrait.hasImg.swap .portraitImg--b {
  opacity: 1;
}
@media (hover: hover) {
  .portrait.hasImg:hover {
    cursor: pointer;
  }
  .portrait.hasImg:hover .portraitImg--a {
    opacity: 0;
  }
  .portrait.hasImg:hover .portraitImg--b {
    opacity: 1;
  }
}

/* Cases (pages 4 & 5 vibe) */
.cases {
  background: var(--deep);
  color: var(--white);
  padding-top: 0;
}
.cases-topline {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.85;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.cases-title {
  background: #fff;
  color: #000;
  padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}
.cases-title h2 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}
.cases-title p {
  margin: 10px auto 0;
  max-width: 920px;
  text-align: center;
  opacity: 0.85;
  font-weight: 600;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.tabBtn {
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.tabBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
}
.tabBtn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.cases-body {
  padding: clamp(34px, 5vw, 64px) 0;
}
.cases-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap);
  align-items: start;
}
.logos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Картинки внутри кружков */
.logoCircle {
  --logo-fit: cover; /* по умолчанию: красиво заполняет круг */
  --logo-pad: 0px; /* без отступов */
  padding: var(--logo-pad, 18px);
  overflow: hidden;
  border-radius: 999px;
}

.logoCircle[data-fit="contain"] {
  --logo-fit: contain; /* без обрезки */
  --logo-pad: 16px; /* чтобы логотип не прилипал к краям */
}

.logoCircle img {
  width: 100%;
  height: 100%;
  object-fit: var(--logo-fit);
  object-position: center;
  display: block;
}
.caseList {
  display: grid;
  gap: 18px;
}
.caseCard {
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  padding: 20px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.caseCard:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.78);
}
.caseCard .badgeIcon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
}
.caseCard h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}
.caseCard p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
  font-size: 13px;
}
.cases-panel {
  display: none;
}
.cases-panel.active {
  display: block;
}

/* Service sections (pages 6-9 vibe) */
.service {
  background: #fff;
  color: #000;
}
.serviceHead {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.serviceHead .label {
  border: 2px solid #000;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.serviceHead h2 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.serviceGrid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

/* New layout: left label + right cards */
.serviceLayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap);
  align-items: start;
  margin-top: 28px;
}

.serviceLabel {
  position: sticky;
  top: calc(var(--topbarH) + 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.serviceLabel h2 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.serviceLabel .label {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  width: fit-content;
}

.serviceCards {
  display: grid;
  gap: var(--gap);
}

.serviceApproach {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--ink);
}

.serviceApproach h3 {
  margin: 0 0 24px 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.approachList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.approachList li {
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadowSoft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .serviceLayout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .serviceLabel {
    position: static;
  }

  .serviceLabel h2 {
    font-size: clamp(32px, 8vw, 56px);
  }
}

.textBox {
  border: 2px solid #000;
  border-radius: 26px;
  padding: 22px 22px;
  background: #fff;
  box-shadow: var(--shadowSoft);

  color: #000;
}
.textBox p {
  margin: 0;
  line-height: 1.65;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
}
.bullets {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}
.bullet {
  border: 2px solid #000;
  border-radius: 22px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadowSoft);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;

  color: #000;
}
.bullet .n {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.bullet p {
  margin: 0;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0.92;
  font-size: 13px;
}

/* Contact */
.contact {
  background: #000;
}
.contactGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
  align-items: start;
}
.contactCard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 22px 22px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.contactCard h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.contactCard p {
  margin: 0;
  opacity: 0.86;
  line-height: 1.65;
  font-weight: 600;
}

.contactLinks {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.linkPill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.linkPill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}
.linkPill span {
  opacity: 0.82;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}

.fineprint {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.72;
  line-height: 1.4;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .bandGrid {
    grid-template-columns: 1fr;
  }
  .contactGrid {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .logos {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 6px;
  }
  .logoCircle {
    width: 180px;
    flex: 0 0 auto;
  }
  .serviceGrid {
    grid-template-columns: 1fr;
  }
  .topbar .nav a {
    padding: 9px 10px;
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    align-items: center;
  }
  .topbar .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  body.noScroll .topbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@media (max-width: 560px) {
  .hero-title {
    letter-spacing: 0.2em;
  }
  .hero-title span {
    letter-spacing: 0.2em;
  }
  .topbar-inner {
    align-items: center;
  }
  .topbar .nav {
    gap: 8px;
  }
  .topbar .nav a {
    font-size: 11px;
  }
  .cases-title h2 {
    font-size: 44px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .scrollHint .dot {
    animation: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero canvas {
    transition: none;
  }
}
/* ====== Pairs (кружок — кейс) ====== */
.casePairs {
  display: grid;
  gap: 18px;
}

.casePair {
  display: grid;
  grid-template-columns: clamp(180px, 24vw, 280px) 1fr;
  gap: var(--gap, 22px);
  align-items: center; /* кружок ровно напротив карточки */
}

/* сам кружок */
.casePair .logoCircle {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
}

/* картинка внутри круга */
.casePair .logoCircle img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* заполняет круг красиво */
  object-position: center;
  display: block;
}

/* если нужно "влезть полностью без обрезки" — добавляй data-fit="contain" */
.casePair .logoCircle[data-fit="contain"] {
  padding: 16px;
  background: #fff; /* если надо как в pdf */
}
.casePair .logoCircle[data-fit="contain"] img {
  object-fit: contain;
}

/* мобилка */
@media (max-width: 720px) {
  .casePair {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .casePair .logoCircle {
    max-width: 220px;
    margin: 0 auto;
  }
}

.modelSection {
  padding: 0;
}

.modelGrid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.modelWrap {
  position: sticky;
  top: 110px;
  height: min(70vh, 560px);
  overflow: visible; /* ВАЖНО: больше не режем ремешок */
  border-radius: 28px;
}

.modelWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(
    1200px 700px at 30% 20%,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.modelWrap model-viewer {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .modelGrid {
    grid-template-columns: 1fr;
  }
  .modelWrap {
    position: relative;
    top: auto;
    height: 46vh;
    min-height: 320px;
  }
}

/* =========================
         SHOWREEL (VIDEO SECTION)
         ========================= */
.showreel {
  position: relative;
  min-height: 100vh;
  padding: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.showreelVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
.showreelOverlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 520px at 20% 15%,
      rgba(255, 255, 255, 0.14),
      rgba(0, 0, 0, 0) 55%
    ),
    radial-gradient(
      760px 520px at 85% 70%,
      rgba(255, 255, 255, 0.1),
      rgba(0, 0, 0, 0) 60%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.78),
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.82)
    );
  z-index: 1;
  pointer-events: none;
}
.showreelInner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(76px, 9vw, 120px) 0;
}
.showreelCard {
  width: min(980px, 100%);
  border-radius: 34px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(50p);
}
.showreelKicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-size: 12px;
}
.showreelCard h2 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.showreelCard p {
  margin: 0;
  max-width: 70ch;
  opacity: 0.92;
  font-weight: 600;
  line-height: 1.6;
}
.showreelActions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.soundBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.soundBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}
.soundBtn .soundIcon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================
         CASES SNAKE LINE (SCROLL)
         ========================= */
.cases-body .container {
  position: relative;
}
.casesSnake {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.casesSnake svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.casesSnakeBase {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.casesSnakeProg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}
.casesSnakeDot {
  fill: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transform-box: fill-box;
  transform-origin: center;
}

.casesSnakePulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: casesPulse 1.75s ease-out infinite;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
@keyframes casesPulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  70% {
    opacity: 0.12;
    transform: scale(2.8);
  }
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .casesSnakePulse {
    animation: none;
    opacity: 0;
  }
}

/* Контент поверх линии */
.cases-panel,
.casePairs,
.casePair {
  position: relative;
  z-index: 2;
}

/* Fade in/out именно для кейсов (в отличие от .reveal, который «фиксирует» появление) */
.caseReveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}
.caseReveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .casesSnake {
    display: none; /* на мобилке одна колонка — линия чаще мешает */
  }
}

/* =========================
         MOBILE / RESPONSIVE POLISH
         ========================= */

/* Container breathing room on small screens */
@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }
  .hero .grid {
    padding: clamp(28px, 7vw, 52px) 0 56px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tabBtn {
    white-space: nowrap;
  }
  .portrait {
    min-height: 320px;
  }
  /* chips can overflow on small screens if nowrap */
  .chip {
    white-space: normal;
    line-height: 1.25;
  }
  .speech {
    max-width: 100%;
  }
  .showreelCard {
    border-radius: 26px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 22px);
  }
  .brand span {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .hero-title {
    letter-spacing: 0.14em;
  }
  .hero-title span {
    letter-spacing: 0.14em;
  }
  .btn {
    padding: 11px 14px;
    font-size: 11px;
  }
  .bandCard,
  .aboutCard,
  .contactCard,
  .textBox,
  .bullet,
  .caseCard {
    border-radius: 22px;
  }
  .textBox {
    padding: 18px 18px;
  }
  .bullet {
    padding: 14px 14px;
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .bullet .n {
    width: 28px;
    height: 28px;
  }
  .caseCard h4 {
    font-size: 16px;
  }
  .caseCard p {
    font-size: 12px;
  }
}

/* Make sure band/contact collapse properly (fixes old selector typos) */
@media (max-width: 980px) {
  .bandGrid {
    grid-template-columns: 1fr;
  }
  .contactGrid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   HERO → SHOWREEL (без чёрной "полки")
   ========================= */

.hero {
  position: relative;
  z-index: 1;
  padding-bottom: 0; /* важно: убираем bridgeH */
}

/* мягкое затемнение НИЖЕ hero (не выносим градиент за границы секции) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; /* было bottom:-1px и высота bridgeH — из-за этого "полка" */
  height: clamp(120px, 16vh, 220px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* showreel идёт сразу следом, без отрицательных отступов */
.showreel {
  position: relative;
  z-index: 0;
  margin-top: 0; /* важно */
  padding-top: 0; /* важно */
}

/* мягкий "вход" видео сверху (стирает резкую границу) */
.showreel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(120px, 16vh, 220px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.showreel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; /* было bottom:-1px и высота bridgeH — из-за этого "полка" */
  height: clamp(120px, 16vh, 220px);
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* чтобы ::before не перекрывал текст */
.showreelVideo {
  z-index: 0;
}
.showreelOverlay {
  z-index: 1;
}
.showreelInner {
  z-index: 3;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .showreel::before {
    display: none;
  }
}

/* =========================
   HERO: меньше пустот + ровнее центр
   ========================= */

.hero {
  min-height: 100vh;
  min-height: 100svh; /* норм для мобилки (адресная строка) */
  padding-top: calc(var(--topbarH) + 10px);
}

.hero .grid {
  min-height: calc(100svh - var(--topbarH));
  padding: clamp(26px, 6vw, 72px) 0 54px;
  place-content: center; /* вместо ощущения "прижато вниз" */
}

/* при большой letter-spacing заголовок часто визуально "уезжает" — фикс */
.hero-title {
  padding-left: 0.11em; /* ~ половина твоего трекинга */
}

/* мобилка: ещё плотнее */
@media (max-width: 720px) {
  .hero .grid {
    padding: 22px 0 46px;
  }
}

/* =========================
   SHOWREEL CARD POLISH
   ========================= */
.showreelCard {
  background: rgba(0, 0, 0, 0.22); /* было 0.36 — теперь прозрачнее */
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.showreelCard h2 {
  /* чуть компактнее, чтобы меньше перекрывать визуал */
  font-size: clamp(30px, 4.8vw, 56px);
}

.showreelCard p {
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1.55;
  opacity: 0.9;
}

/* =========================
   MOBILE: сначала визуал, потом текст
   (sticky video + карточка после 1 экрана)
   ========================= */
@media (max-width: 720px) {
  .showreel {
    min-height: 170vh; /* чтобы было место: 100vh видео + текст */
    overflow: visible; /* важно для sticky (иначе может не работать) */
  }

  /* делаем видео "липким" на первый экран */
  .showreelVideo {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 100vh;
    transform: scale(1.02); /* без излишнего зума на мобиле */
  }

  /* и оверлей тоже липким, чтобы текст читался */
  .showreelOverlay {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  /* контейнер больше не центрируем — даём прокрутить к тексту */
  .showreelInner {
    display: block;
    min-height: 170vh;
    padding: 0;
  }

  /* карточка появляется "после" первого экрана */
  .showreelCard {
    margin-top: calc(100vh - 22px);
    border-radius: 26px;
    padding: 18px 18px;
    background: rgba(0, 0, 0, 0.16); /* ещё прозрачнее на мобиле */
  }

  .showreelKicker {
    font-size: 11px;
  }

  .showreelCard h2 {
    font-size: 30px;
  }

  .showreelCard p {
    font-size: 13px;
    line-height: 1.5;
  }
}
.showreelVideo1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
/* =========================
   BRAND LOGO IN NAV
   ========================= */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row; /* override твоего column */
}
.brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brandLogo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
}

/* NAV logo hidden until loader finishes (но место сохраняется) */
#navLogo {
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.loaded #navLogo {
  opacity: 1;
}

/* =========================
   FULLSCREEN LOADER
   ========================= */
body.isLoading {
  overflow: hidden;
}

.pageLoader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: #000;
  padding: 24px;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.pageLoader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pageLoaderInner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.loaderLogo {
  width: min(320px, 72vw);
  height: auto;
  border-radius: 999px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.65);
  will-change: transform, filter, opacity;
}

.loaderText {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.82;
}

@keyframes loaderPulse {
  0% {
    transform: translateY(0) scale(1);
    filter: blur(0px);
    opacity: 0.92;
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    filter: blur(0.2px);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    filter: blur(0px);
    opacity: 0.92;
  }
}

.isPulsing {
  animation: loaderPulse 1.35s ease-in-out infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .isPulsing {
    animation: none !important;
  }
}

/* =========================
   WHITE (#branding) → BLACK (modelSection) transition
   ========================= */

#branding {
  position: relative;
  isolation: isolate;
}

.modelSection {
  position: relative;
  background: #000;
  isolation: isolate;
}

.modelSection > .container {
  position: relative;
  z-index: 1;
}
/* видео в modelSection: клипуем по радиусу даже при overflow: visible */
.showreelVideo1 {
  border-radius: 28px;
  clip-path: inset(0 round 28px);
}

/* мягкая рамка/сведение по краям */
.modelWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  background: radial-gradient(
    900px 560px at 25% 20%,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0) 60%
  );
}
