/* ==========================================================================
   VECTRO · THE PRINTED ANNUAL + GATEWAY FLOW ARCHITECTURE
   Palette: OLED Black (#000000 / #05070C), Paper White (#FFFFFF / #EEF1F6),
            Studio Cobalt Blue (#1E54E8 / #1642C4)
   Typography: Onest (Single-family geometric grotesk, 5 strict size steps)
   ========================================================================== */

:root {
  /* Core Surfaces & Ink */
  --ground-dark: #000000;
  --ground-dark-step: #080C16;
  --ground-dark-panel: #0D1322;
  --ground-paper: #FFFFFF;
  --ground-paper-step: #EEF1F6;
  --ground-paper-deep: #E2E7F0;

  --ink-light: #F8FAFC;
  --ink-light-soft: #94A3B8;
  --ink-dark: #090D16;
  --ink-dark-soft: #475569;

  --accent-blue: #1E54E8;
  --accent-blue-deep: #1642C4;
  --accent-blue-bright: #346DF2;

  /* 1 Family, 5 Strict Type Steps (design-taste-frontend law) */
  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;

  --step-small: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);   /* 14–15px */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);       /* 17–18px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.65vw, 1.65rem);       /* 20–26px */
  --step-head: clamp(1.85rem, 1.35rem + 2.1vw, 3.1rem);        /* 30–50px */
  --step-display: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem);      /* 34–60px: fits 2 lines cleanly */

  /* Layout & Axis */
  --page-margin: clamp(16px, 3.2vw, 48px);
  --axis-left: 41.666%;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ground-dark);
  color: var(--ink-light);
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--ground-dark);
  color: var(--ink-light);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

section[id] {
  scroll-margin-top: 72px;
}

/* Global 2x2 Dither Overlay from gateway-flow.tsx */
.dither-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2 2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23ffffff'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 2px 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--page-margin);
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Shared 12-Column Editorial Frame */
.frame {
  width: 100%;
  padding-inline: var(--page-margin);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
}

/* ==========================================================================
   BUTTONS (ONE CONSISTENT ARCHITECTURAL SHAPE, NO GRADIENTS/GLOWS)
   ========================================================================== */

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}

.btn-solid:hover {
  background: var(--accent-blue-bright);
}

.btn-solid:active {
  transform: scale(0.97);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ink-dark);
  color: #FFFFFF;
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}

.btn-dark:hover {
  background: var(--accent-blue);
}

.btn-dark:active {
  transform: scale(0.97);
}

.btn-surface {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--ground-paper-step);
  color: var(--ink-dark);
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms var(--ease-out);
}

.btn-surface:hover {
  background: var(--ground-paper-deep);
}

.btn-surface:active {
  transform: scale(0.97);
}

.text-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-body);
  font-weight: 500;
  color: var(--ink-light);
  padding-block: 8px;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.text-action-link:hover {
  color: var(--accent-blue-bright);
}

/* ==========================================================================
   ARCHITECTURAL TOP BAR (PLAIN BAR ON THE 42% AXIS: NO GLASS PILL!)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.88);
  padding-block: 16px;
}

.header-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  align-items: center;
}

.header-brand-zone {
  grid-column: 1 / 5;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--step-body);
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.city-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ground-dark-panel);
  color: var(--ink-light-soft);
  font-size: var(--step-small);
  font-weight: 500;
  cursor: pointer;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.city-trigger:hover {
  color: #FFFFFF;
  background: #162038;
}

/* Navigation links start on the axis and never collide with action buttons */
.header-nav-zone {
  grid-column: 5 / 10;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

.nav-link {
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--ink-light-soft);
  transition: color 160ms var(--ease-out);
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFFFFF;
}

.header-action-zone {
  grid-column: 10 / 13;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  background: var(--ground-dark-panel);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink-light-soft);
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent-blue);
  color: #FFFFFF;
}

.header-cta {
  min-height: 40px;
  padding: 8px 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ground-dark-panel);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle__bar {
  width: 18px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 200ms var(--ease-drawer);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* City Selector Dialog */
.city-popover {
  position: fixed;
  top: 68px;
  left: var(--page-margin);
  z-index: 95;
  width: min(420px, calc(100vw - 32px));
  background: var(--ground-dark-panel);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.city-popover[hidden] {
  display: none;
}

.city-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.city-popover__title {
  font-weight: 600;
  font-size: var(--step-body);
}

.city-popover__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
}

.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-chip {
  padding: 7px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-light-soft);
  font-size: var(--step-small);
  font-weight: 500;
  cursor: pointer;
}

.city-chip.is-active {
  background: var(--accent-blue);
  color: #FFFFFF;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 78;
  background: #000000;
  padding: 88px var(--page-margin) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 220ms var(--ease-drawer), transform 220ms var(--ease-drawer);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer__links {
  display: grid;
  gap: 10px;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--ground-dark-step);
  font-size: var(--step-lead);
  font-weight: 600;
}

.mobile-drawer__footer {
  display: grid;
  gap: 10px;
}

/* ==========================================================================
   HERO: GATEWAY FLOW STAGE + STATEMENT ON THE 42% VERTICAL AXIS
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100dvh;
  background: var(--ground-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 84px;
  padding-bottom: clamp(36px, 5vh, 64px);
  overflow: hidden;
}

/* GatewayFlow Visualization Canvas Container */
.gateway-flow-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
}

#flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Upper 50% of First Screen: Deliberate Open GatewayFlow Field */
.hero-upper-void {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: clamp(220px, 38vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nexus-center-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.86);
  color: var(--ink-light);
  font-size: var(--step-small);
  font-weight: 500;
}

.nexus-center-node__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue-bright);
}

/* Lower Third on the 42% Axis (columns 1–4 left note, columns 6–12 main statement) */
.hero-axis-row {
  position: relative;
  z-index: 2;
  align-items: end;
  row-gap: 28px;
}

.hero-left-note {
  grid-column: 1 / 5;
  display: grid;
  gap: 16px;
}

.hero-standfirst {
  font-size: var(--step-body);
  color: var(--ink-light);
  max-width: 36ch;
  line-height: 1.5;
}

.hero-offer-block {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--ground-dark-panel);
  color: var(--ink-light-soft);
  font-size: var(--step-small);
  line-height: 1.5;
  max-width: 38ch;
}

.hero-offer-block strong {
  color: #FFFFFF;
  font-weight: 600;
}

.hero-right-axis {
  grid-column: 6 / 13;
  display: grid;
  gap: 28px;
}

/* Strict Two-Line Headline with Masked Word Reveal */
.hero-headline {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.038em;
  color: #FFFFFF;
}

.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.reveal-word {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 850ms var(--ease-out);
}

body.is-loaded .reveal-word {
  transform: translateY(0%);
}

.reveal-line:nth-child(2) .reveal-word {
  transition-delay: 110ms;
}

.hero-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   SECTION 1: НАШИ ГОТОВЫЕ РАБОТЫ (EDITORIAL ROWS ON PAPER WHITE)
   ========================================================================== */

.section-paper {
  position: relative;
  z-index: 5;
  background: var(--ground-paper);
  color: var(--ink-dark);
  padding-block: clamp(96px, 11vw, 168px);
}

.section-paper-step {
  position: relative;
  z-index: 5;
  background: var(--ground-paper-step);
  color: var(--ink-dark);
  padding-block: clamp(96px, 11vw, 168px);
}

.section-obsidian {
  position: relative;
  z-index: 5;
  background: var(--ground-dark);
  color: var(--ink-light);
  padding-block: clamp(96px, 11vw, 168px);
}

.section-cobalt {
  position: relative;
  z-index: 5;
  background: var(--accent-blue-deep);
  color: #FFFFFF;
  padding-block: clamp(96px, 11vw, 168px);
}

/* Editorial Section Header on the 42% Axis */
.axis-header {
  margin-bottom: clamp(48px, 6vw, 84px);
  align-items: end;
  row-gap: 20px;
}

.axis-header__side {
  grid-column: 1 / 5;
  font-size: var(--step-body);
  color: var(--ink-dark-soft);
  max-width: 36ch;
}

.section-obsidian .axis-header__side {
  color: var(--ink-light-soft);
}

.section-cobalt .axis-header__side {
  color: rgba(255, 255, 255, 0.85);
}

.axis-header__main {
  grid-column: 6 / 13;
}

.section-heading {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Portfolio Filter Bar */
.work-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.filter-pill {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--ground-paper-step);
  color: var(--ink-dark-soft);
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.filter-pill.is-active {
  background: var(--ink-dark);
  color: #FFFFFF;
}

/* Editorial Work Rows (Alternating Tonal Bands, Not Card Grids!) */
.work-list {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

.case-card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: 14px;
  background: var(--ground-paper-step);
  transition: background-color 200ms var(--ease-out);
}

.case-card:nth-child(even) {
  background: #E6ECF5;
}

.case-card[hidden] {
  display: none;
}

.case-row-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
  row-gap: 24px;
  align-items: center;
}

.case-visual-col {
  grid-column: 1 / 8;
  background: var(--ground-dark-step);
  border-radius: 10px;
  padding: 16px 16px 0;
  overflow: hidden;
}

.case-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink-light);
}

.case-meta-line {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink-light);
}

.case-meta-line span {
  color: var(--ink-light-soft);
  font-weight: 400;
  margin-left: 8px;
}

.device-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 8px;
}

.device-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink-light-soft);
  cursor: pointer;
}

.device-btn.is-active {
  background: var(--accent-blue);
  color: #FFFFFF;
}

.case-screen-wrap {
  height: clamp(220px, 28vw, 340px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #000000;
  cursor: zoom-in;
}

.case-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 320ms var(--ease-out), width 240ms var(--ease-out);
}

.case-screen-wrap[data-view="mobile"] .case-screen-img {
  width: 176px;
  height: calc(100% - 10px);
  margin-top: 10px;
  border-radius: 12px 12px 0 0;
}

.case-info-col {
  grid-column: 8 / 13;
  display: grid;
  gap: 18px;
}

.case-title {
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
}

.case-summary {
  font-size: var(--step-body);
  color: var(--ink-dark-soft);
}

.case-triad {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: var(--ground-paper);
}

.case-triad__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: var(--step-small);
}

.case-triad__label {
  font-weight: 700;
  color: var(--ink-dark);
}

.case-triad__label--result {
  color: var(--accent-blue);
}

.case-triad__text {
  color: var(--ink-dark-soft);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   SECTION 2: COMPARISON SET AS TEXT (TABLE BLUEPRINT) + FORMAT STRIPS
   ========================================================================== */

.comp-table {
  display: grid;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.comp-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  min-height: 68px;
}

.comp-row:nth-child(even) .comp-cell-cap,
.comp-row:nth-child(even) .comp-cell-usual {
  background: var(--ground-paper-deep);
}

.comp-row:nth-child(odd) .comp-cell-cap,
.comp-row:nth-child(odd) .comp-cell-usual {
  background: var(--ground-paper);
}

.comp-cell-cap {
  grid-column: 1 / 5;
  padding: 18px 22px;
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--ink-dark);
  display: flex;
  align-items: center;
}

.comp-cell-usual {
  grid-column: 5 / 9;
  padding: 18px 22px;
  font-size: var(--step-body);
  color: var(--ink-dark-soft);
  display: flex;
  align-items: center;
}

/* The Featured Column: Solid Cobalt Blue Block Rising Above Table */
.comp-cell-vectro {
  grid-column: 9 / 13;
  padding: 18px 24px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: var(--step-body);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.comp-row--head .comp-cell-cap,
.comp-row--head .comp-cell-usual {
  background: transparent;
  font-weight: 700;
  padding-bottom: 14px;
}

.comp-row--head .comp-cell-vectro {
  background: var(--accent-blue-deep);
  font-weight: 700;
  border-radius: 12px 12px 0 0;
  margin-top: -16px;
  padding-top: 26px;
}

.comp-row--last .comp-cell-vectro {
  border-radius: 0 0 12px 12px;
}

/* 4 Website Formats Editorial Strip */
.formats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.format-block {
  padding: 26px 24px;
  border-radius: 12px;
  background: var(--ground-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.format-block--dark {
  background: var(--ink-dark);
  color: #FFFFFF;
}

.format-block__title {
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.format-block__desc {
  font-size: var(--step-small);
  color: var(--ink-dark-soft);
  line-height: 1.55;
}

.format-block--dark .format-block__desc {
  color: var(--ink-light-soft);
}

.format-block__action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  font-size: var(--step-small);
  font-weight: 700;
  color: var(--accent-blue);
  cursor: pointer;
}

.format-block--dark .format-block__action {
  color: #FFFFFF;
}

/* ==========================================================================
   SECTION 3: HOW IT WORKS: STAGES AS ONE PROPORTIONAL BAR (COBALT PAGE)
   ========================================================================== */

.stages-bar {
  display: flex;
  gap: 8px;
  min-height: 190px;
  margin-top: 40px;
}

.stage-segment {
  padding: 22px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stage-segment--1 {
  flex: 1.2;
  background: #FFFFFF;
  color: var(--ink-dark);
}

.stage-segment--2 {
  flex: 1.8;
  background: #090D16;
  color: #FFFFFF;
}

.stage-segment--3 {
  flex: 1.8;
  background: #111A2E;
  color: #FFFFFF;
}

.stage-segment--4 {
  flex: 1.2;
  background: var(--accent-blue-bright);
  color: #FFFFFF;
}

.stage-segment__time {
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.1;
}

.stage-segment__clause {
  font-size: var(--step-small);
  line-height: 1.45;
  margin-top: 16px;
}

/* ==========================================================================
   SECTION 4: PINNED SITE CONFIGURATOR (FIXED OUTPUT, LIVE CONTROLS)
   ========================================================================== */

.configurator-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
  row-gap: 28px;
  align-items: start;
}

.config-stage-sticky {
  grid-column: 1 / 6;
  position: sticky;
  top: 88px;
}

.nexus-card {
  position: relative;
  border-radius: 14px;
  background: var(--ground-dark-step);
  padding: 24px;
}

.config-blueprint {
  border-radius: 10px;
  background: #000000;
  padding: 18px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-hero-box {
  padding: 16px;
  border-radius: 8px;
  background: var(--ground-dark-panel);
}

.bp-hero-box__eyebrow {
  font-size: var(--step-small);
  color: var(--accent-blue-bright);
  font-weight: 600;
  margin-bottom: 4px;
}

.bp-hero-box__title {
  font-size: var(--step-body);
  font-weight: 700;
  color: #FFFFFF;
}

.bp-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bp-module-chip {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ground-dark-step);
  font-size: var(--step-small);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-module-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue-bright);
  flex-shrink: 0;
}

.config-summary-bar {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--ground-dark-panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-controls-col {
  grid-column: 6 / 13;
  display: grid;
  gap: 28px;
}

.config-step {
  padding: 24px;
  border-radius: 14px;
  background: var(--ground-dark-step);
}

.config-step__label {
  display: block;
  font-size: var(--step-lead);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.config-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-opt-btn {
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ground-dark-panel);
  color: var(--ink-light-soft);
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.config-opt-btn:active {
  transform: scale(0.97);
}

.config-opt-btn.is-selected {
  background: var(--accent-blue);
  color: #FFFFFF;
}

/* ==========================================================================
   SECTION 5: FAQ: LARGE QUESTIONS, ANSWERS BESIDE (NO ACCORDION)
   ========================================================================== */

.faq-table {
  display: grid;
  gap: clamp(44px, 5vw, 72px);
}

.faq-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.faq-question {
  grid-column: 1 / 6;
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
}

.faq-answer {
  grid-column: 6 / 13;
  font-size: var(--step-body);
  color: var(--ink-dark-soft);
  max-width: 56ch;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 6: CONTACT & CUSTOM ACCESSIBLE COMBOBOX PICKER
   ========================================================================== */

.contact-spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
  row-gap: 32px;
  align-items: start;
}

.contact-team-col {
  grid-column: 1 / 6;
  display: grid;
  gap: 20px;
}

.member-panel {
  padding: 24px;
  border-radius: 12px;
  background: var(--ground-dark-step);
  display: grid;
  gap: 12px;
}

.member-panel__name {
  font-size: var(--step-lead);
  font-weight: 700;
  color: #FFFFFF;
}

.member-panel__role {
  font-size: var(--step-small);
  color: var(--accent-blue-bright);
  font-weight: 600;
}

.member-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.contact-chip-link {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ground-dark-panel);
  color: #FFFFFF;
  font-size: var(--step-small);
  font-weight: 600;
}

.contact-chip-link--primary {
  background: var(--accent-blue);
}

.contact-form-col {
  grid-column: 6 / 13;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 14px;
  background: var(--ground-dark-step);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
  position: relative;
}

.field-label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink-light);
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: var(--step-body);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--accent-blue-bright);
}

.field-textarea {
  min-height: 104px;
  resize: vertical;
}

/* Custom Combobox Service Picker */
.custom-picker {
  position: relative;
}

.custom-picker__trigger {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.custom-picker__value {
  font-weight: 600;
  font-size: var(--step-body);
}

.custom-picker__sub {
  display: block;
  font-size: var(--step-small);
  color: var(--ink-light-soft);
}

.custom-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 10px;
  background: var(--ground-dark-panel);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

.custom-picker__menu[hidden] {
  display: none;
}

.custom-picker__option {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-light);
  cursor: pointer;
}

.custom-picker__option:hover,
.custom-picker__option.is-focused {
  background: rgba(37, 99, 235, 0.24);
}

.custom-picker__option[aria-selected="true"] {
  background: var(--accent-blue);
  color: #FFFFFF;
}

.custom-picker__opt-title {
  display: block;
  font-weight: 600;
  font-size: var(--step-small);
}

.custom-picker__opt-desc {
  display: block;
  font-size: var(--step-small);
  color: var(--ink-light-soft);
}

.custom-picker__option[aria-selected="true"] .custom-picker__opt-desc {
  color: rgba(255, 255, 255, 0.85);
}

.recipient-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipient-pill {
  padding: 12px 14px;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  cursor: pointer;
}

.recipient-pill.is-active {
  background: var(--accent-blue);
  border-color: var(--accent-blue-bright);
  color: #FFFFFF;
}

.recipient-pill__name {
  display: block;
  font-weight: 700;
  font-size: var(--step-small);
}

.recipient-pill__phone {
  display: block;
  font-size: var(--step-small);
  color: var(--ink-light-soft);
}

.recipient-pill.is-active .recipient-pill__phone {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   DESIGNED FOOTER & FLOATING CONTACT MENU
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 5;
  background: #000000;
  color: var(--ink-light-soft);
  padding-top: 64px;
  padding-bottom: 96px;
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  font-size: var(--step-small);
}

.footer-monument {
  font-size: clamp(3.2rem, 13vw, 11.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  user-select: none;
}

.contact-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.contact-fab__panel {
  width: min(310px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 14px;
  background: var(--ground-dark-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.contact-fab__panel[hidden] {
  display: none;
}

.contact-fab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  font-size: var(--step-small);
  font-weight: 700;
  color: #FFFFFF;
}

.contact-fab__list {
  display: grid;
  gap: 6px;
}

.contact-fab__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

.contact-fab__item:hover {
  background: var(--accent-blue);
}

.contact-fab__item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-fab__item-title {
  display: block;
  font-weight: 700;
  font-size: var(--step-small);
}

.contact-fab__item-sub {
  display: block;
  font-size: var(--step-small);
  color: var(--ink-light-soft);
}

.contact-fab__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--step-small);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.contact-fab__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal[hidden] {
  display: none;
}

.lightbox-modal__dialog {
  width: min(1040px, 100%);
  max-height: 90dvh;
  border-radius: 12px;
  background: var(--ground-dark-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.lightbox-modal__body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  background: #000000;
}

.lightbox-modal__img {
  max-height: 72dvh;
  width: auto;
  border-radius: 8px;
}

.toast-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 120;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: var(--step-small);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE COLLAPSE (AXIS COLLAPSES TO LEFT MARGIN ON PHONE)
   ========================================================================== */

@media (max-width: 1024px) {
  .header-nav-zone,
  .header-cta {
    display: none;
  }
  .header-brand-zone {
    grid-column: 1 / 8;
  }
  .header-action-zone {
    grid-column: 8 / 13;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-left-note,
  .hero-right-axis,
  .axis-header__side,
  .axis-header__main,
  .case-visual-col,
  .case-info-col,
  .config-stage-sticky,
  .config-controls-col,
  .faq-question,
  .faq-answer,
  .contact-team-col,
  .contact-form-col {
    grid-column: 1 / 13;
  }
  .hero-right-axis {
    order: -1;
  }
  .formats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stages-bar {
    flex-direction: column;
  }
  .config-stage-sticky {
    position: sticky;
    top: 72px;
    z-index: 30;
  }
}

@media (max-width: 760px) {
  .comp-row {
    grid-template-columns: 1fr;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .comp-row--head {
    display: none;
  }
  .comp-cell-cap,
  .comp-cell-usual,
  .comp-cell-vectro {
    grid-column: 1 / -1;
    padding: 12px 16px;
  }
  .comp-cell-cap {
    font-weight: 700;
  }
  .formats-strip,
  .form-row-2,
  .recipient-pills,
  .bp-modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .city-trigger {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .case-triad__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .case-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .case-actions > * {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .city-trigger {
    max-width: 92px;
    padding: 4px 7px;
  }
}

/* Studio cover and selected work */
.site-header { background:#101113f5; border-bottom:1px solid #ffffff16; padding-block:12px; }
.header-grid { display:flex; justify-content:space-between; gap:18px; }
.brand-link { font-size:20px; letter-spacing:-.065em; }
.brand-logo { width:32px; height:32px; }
.city-trigger,.lang-switch { background:transparent; }
.lang-btn.is-active { color:#fff; background:#34373c; }
.header-cta { background:#edece7; color:#171819; border-radius:30px; }
.header-cta:hover { background:#fff; color:#171819; }
.dither-overlay { display:none; }
.studio-hero { background:#101113; color:#f1f0ec; padding-top:70px; overflow:hidden; }
.studio-stage { position:relative; isolation:isolate; min-height:clamp(560px,77svh,850px); display:flex; align-items:center; padding-block:55px; }
.studio-copy { position:relative; z-index:2; width:55%; }
.studio-location { display:flex; gap:10px; align-items:center; font-size:14px; color:#ced0d6; margin-bottom:30px; }
.studio-location i { width:8px; height:8px; background:#6388ff; border-radius:50%; box-shadow:0 0 12px #376cfe; }
#studio-title { font-size:clamp(65px,7.9vw,145px); line-height:.92; letter-spacing:-.075em; font-weight:500; }
.studio-intro { color:#b6b7bc; font-size:clamp(15px,1.27vw,21px); max-width:37ch; margin:25px 0 20px; line-height:1.48; }
.studio-action { display:inline-flex; gap:30px; align-items:center; padding:12px 18px; background:#f1f0ec; border-radius:32px; color:#131417; font-size:15px; font-weight:600; }
.studio-action:hover { background:#cad7ff; }
.studio-art { position:absolute; z-index:-1; inset:0 0 0 48%; display:grid; place-items:center; perspective:800px; background:radial-gradient(ellipse at center,#252b37 0,transparent 66%); }
.studio-orbit { position:absolute; width:90%; aspect-ratio:1; max-height:92%; background-image:radial-gradient(#9ca8c83a .75px,transparent 1px); background-size:17px 17px; mask-image:radial-gradient(ellipse,#000 28%,transparent 72%); }
.studio-object { width:83%; max-width:790px; transform:rotateY(var(--yaw,0deg)) rotateX(var(--tilt,0deg)); transition:transform .45s ease-out; }
.studio-object img { display:block; width:100%;height:auto; filter:drop-shadow(10px 32px 20px #0008); animation:studio-float 7s ease-in-out infinite alternate; }
@keyframes studio-float { from {transform:translateY(6px) rotate(-3deg)} to {transform:translateY(-8px) rotate(2deg)} }
@keyframes studio-enter { from {opacity:0;transform:translateY(16px)} to {opacity:1;transform:none} }
.studio-copy { animation:studio-enter .7s both; }
.studio-index { display:flex; align-items:center; justify-content:space-between; min-height:86px; background:#181a1d; border-top:1px solid #383a3e; padding-right:max(165px,12vw); }
.studio-index a { display:flex; align-items:center; gap:12px; font-size:18px; }
.studio-index sup { color:#a4aab6; font:11px monospace; align-self:flex-start;margin-top:9px; }
.index-arrow { width:40px; height:40px; border:1px solid #62646b; border-radius:50%; display:grid; place-items:center; }
.index-previews { display:flex; gap:6px; }
.index-previews img { width:78px;height:44px;object-fit:cover; object-position:top; border-radius:4px; }
#projects { background:#f4f3ef; }
#projects .axis-header__main { grid-column:1/7; grid-row:1; }
#projects .axis-header__side { grid-column:7/13; }
#projects .section-heading { font-weight:500; font-size:clamp(45px,5.8vw,94px); letter-spacing:-.075em; }
.work-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:64px clamp(20px,3vw,50px); }
.case-card,.case-card:nth-child(even) { background:transparent; border-radius:0; padding:0; }
.case-row-grid { display:flex; flex-direction:column; align-items:stretch; gap:18px; }
.case-visual-col { padding:12px; background:#17191e; border-radius:14px; }
.case-screen-wrap { height:auto; aspect-ratio:1.76; border-radius:6px; }
.case-title { font-size:clamp(26px,2.7vw,48px); letter-spacing:-.055em; font-weight:500; }
.case-details { color:#16181c; border-block:1px solid #c2c3c4; }
.case-details summary { cursor:pointer; padding:13px 0; font-size:16px; }
.case-details[open] .case-triad { padding-bottom:16px; }
.mobile-drawer { overflow-y:auto; gap:24px; }
@media(max-width:760px) {
  .studio-hero { padding-top:63px; }
  .studio-stage { display:flex; flex-direction:column-reverse; align-items:stretch; min-height:0; padding-block:0 27px; }
  .studio-copy { width:100%; }
  .studio-art { position:relative; inset:auto; min-height:205px;height:clamp(205px,29svh,320px); }
  .studio-object { width:auto; height:83%; }
  .studio-object img { height:100%; width:auto; }
  .studio-location { margin-bottom:13px; }
  #studio-title { font-size:clamp(48px,12vw,84px); }
  .studio-intro { margin:16px 0; }
  .studio-index { min-height:68px; padding-right:var(--page-margin); }
  .index-previews { display:none; }
  #projects .axis-header__main,#projects .axis-header__side { grid-column:1/-1; }
  .work-list { grid-template-columns:1fr; gap:42px; }
  .city-trigger { padding-inline:4px; }
  .header-brand-zone,.header-action-zone,.header-grid { gap:5px; }
  .case-topbar { align-items:flex-start; }
  .case-meta-line span { display:block; margin:0; }
}
@media(prefers-reduced-motion:reduce) { .studio-copy,.studio-object img {animation:none} .studio-object {transform:none;transition:none} }

@media(max-width:760px) {
  .studio-art { display:flex; align-items:center; justify-content:center; }
  .studio-object { flex:none; height:79%; width:100%; }
  .studio-object img { width:100%; height:100%; object-fit:contain; }
  .header-grid { gap:10px; }
  .header-brand-zone { gap:10px; flex:1; }
  .brand-link { gap:6px; font-size:17px; flex:none; }
  .city-trigger { min-width:0; max-width:120px; font-size:12px; }
  #current-city-label { overflow:hidden; text-overflow:ellipsis; }
  .city-trigger svg { flex:none; }
}
@media(max-width:380px) {
  .city-trigger { width:34px; height:36px; justify-content:center; }
  #current-city-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
}
