/* =========================================================
   MICROTIZE — Nothing-inspired redesign
   Pure monochrome · dot-matrix typography · interactive grids
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #0f0f10;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.18);
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,0.72);
  --ink-3: rgba(255,255,255,0.48);
  --ink-4: rgba(255,255,255,0.28);
  --accent: #ff3b30;       /* Nothing red */
  --accent-glow: rgba(255,59,48,0.35);
  --grid-dot: rgba(255,255,255,0.10);
  --grid-dot-hot: rgba(255,255,255,0.9);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: hidden — НЕЛЬЗЯ, ломает position: sticky у потомков.
     overflow-x: clip визуально режет, но не создаёт scroll-контейнер. */
  overflow-x: hidden;       /* fallback для старых браузеров */
  overflow-x: clip;         /* для Chrome 90+ / Safari 16+ / Firefox 81+ */
}

body {
  min-height: 100vh;
  background: var(--bg);
  cursor: none; /* custom cursor */
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- DOT-MATRIX TYPE ---------- */
.dotmatrix,
.ndot {
  font-family: 'Doto', 'VT323', ui-monospace, monospace;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, "SFMono-Regular", monospace;
  font-feature-settings: "tnum" 1, "ss01" 1;
  letter-spacing: 0.02em;
}

/* ---------- LAYOUT SHELL ---------- */
.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .shell { padding: 0 18px; }
}

main { display: block; }
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ---------- LOADER — minimal dot grid ---------- */
html.is-loading,
html.is-loading body { overflow: hidden !important; height: 100% !important; }
.loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw;
  height: 100vh;
  z-index: 99999 !important;
  background: #050505 !important;
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__grid {
  display: grid;
  grid-template-columns: repeat(5, 14px);
  gap: 10px;
}
.loader__grid span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.15;
  animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader__grid span:nth-child(1) { animation-delay: 0s; }
.loader__grid span:nth-child(2) { animation-delay: 0.05s; }
.loader__grid span:nth-child(3) { animation-delay: 0.1s; }
.loader__grid span:nth-child(4) { animation-delay: 0.15s; }
.loader__grid span:nth-child(5) { animation-delay: 0.2s; }
.loader__grid span:nth-child(6) { animation-delay: 0.05s; }
.loader__grid span:nth-child(7) { animation-delay: 0.1s; }
.loader__grid span:nth-child(8) { animation-delay: 0.15s; }
.loader__grid span:nth-child(9) { animation-delay: 0.2s; }
.loader__grid span:nth-child(10) { animation-delay: 0.25s; }
.loader__grid span:nth-child(odd) { background: var(--accent); }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.1); }
}
.loader__label {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: #ff3b30;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100002;
  transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(255,59,48,0.6), 0 0 2px rgba(0,0,0,0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.2s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,59,48,0.7);
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: rgba(255,59,48,0.18);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 32px rgba(255,59,48,0.5);
}
.cursor-ring.is-hover {
  width: 10px; height: 10px;
  background: #ff3b30;
  border-color: #ff3b30;
}
.cursor.is-light { border-color: rgba(0,0,0,0.85); }
.cursor-ring.is-light { border-color: rgba(255,59,48,0.85); }
.cursor-ring.is-text { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 1320px;
  z-index: 200;
  border: 1px solid var(--line);
  background: rgba(10,10,10,0.92);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.topbar.is-hidden { transform: translate(-50%, -120%); opacity: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
}
.brand__mark {
  width: 22px; height: 22px;
  position: relative;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.brand__mark::before {
  background: var(--ink);
  transform: scale(0.4) translateX(-30%);
  transition: transform 0.35s var(--ease);
}
.brand__mark::after {
  background: var(--accent);
  transform: scale(0.4) translateX(30%);
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand__mark::before { transform: scale(0.5) translateX(-60%); }
.brand:hover .brand__mark::after  { transform: scale(0.5) translateX(60%); }

.nav {
  display: flex;
  gap: 6px;
}
.nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav a::before {
  content: "·";
  margin-right: 6px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav a:hover::before { opacity: 1; }

.topbar__actions { display: flex; gap: 8px; align-items: center; }
.btn-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.btn-cta:hover { background: var(--accent); color: #fff; }
.btn-cta:hover::after { background: #fff; }

.burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.burger::before { transform: translate(-50%, -6px); }
.burger::after { transform: translate(-50%, 6px); }
.burger[aria-expanded="true"]::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .btn-cta { display: none; }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5,5,5,0.92);
  background: rgba(5,5,5,0.96);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.drawer a {
  font-family: 'Doto', 'VT323', monospace;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: grid;
  align-items: center;
  /* no overflow:hidden — was clipping title during scroll repaints */
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
}
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero__title {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.88;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero.is-ready .hero__title .line > span { transform: translateY(0); }
.hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { transition-delay: 0.18s; }

.hero__title .accent { color: var(--accent); }
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero__bottom {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.hero__form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  background: rgba(255,255,255,0.03);
  width: min(420px, 100%);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero__form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.04);
}
.hero__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 0;
}
.hero__form input::placeholder { color: var(--ink-4); }
.hero__form button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__form button:hover { background: var(--accent); color: #fff; }
.hero__form button::after { content: "→"; }

.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__avatars {
  display: flex;
}
.hero__avatars span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #222);
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.hero__avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, var(--accent), #7a0000); }
.hero__avatars span:nth-child(2) { background: linear-gradient(135deg, #fff, #888); }

@media (max-width: 880px) {
  .hero { padding: 120px 0 60px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta { align-items: stretch; }
  .hero__form { width: 100%; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  background: rgba(255,255,255,0.02);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee__track span::after {
  content: "●";
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- STATS ---------- */
.stats {
  padding: 100px 0;
  position: relative;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-2);
  padding: 40px 28px;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s var(--ease);
}
.stat:hover { background: var(--surface); }
.stat__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat--accent .stat__num { color: var(--accent); }
.stat__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 220px;
}
.stat__corner {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
@media (max-width: 920px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 12ch;
}
.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}
.section-head__aside {
  max-width: 360px;
  color: var(--ink-3);
  font-size: 14px;
}
.section-head__aside a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.section-head__aside a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- SERVICES BENTO ---------- */
.services {
  padding: 100px 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.svc:hover { border-color: var(--line-2); background: var(--surface); }
.svc:hover::before { opacity: 0.55; }

.svc__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}
.svc__title {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  margin: 8px 0 0;
}
.svc__desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 32ch;
}
.svc__icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px; height: 28px;
  color: var(--ink-4);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc:hover .svc__icon { color: var(--accent); transform: rotate(20deg); }

.svc--xl { grid-column: span 3; grid-row: span 2; }
.svc--l  { grid-column: span 3; }
.svc--m  { grid-column: span 2; }
.svc--s  { grid-column: span 2; }

.svc--feature {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.svc--feature::before { background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1.6px); }
.svc--feature .svc__num,
.svc--feature .svc__desc { color: rgba(255,255,255,0.85); }
.svc--feature .svc__icon { color: rgba(255,255,255,0.7); }
.svc--feature:hover { background: #ff5247; border-color: #ff5247; }

.svc--light {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.svc--light::before { background-image: radial-gradient(circle, rgba(0,0,0,0.15) 1px, transparent 1.6px); }
.svc--light .svc__num,
.svc--light .svc__desc { color: rgba(0,0,0,0.65); }
.svc--light .svc__icon { color: rgba(0,0,0,0.45); }
.svc--light:hover { background: #f0f0f0; border-color: #f0f0f0; }

@media (max-width: 920px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .svc--xl, .svc--l, .svc--m, .svc--s { grid-column: span 2; grid-row: span 1; }
}

/* ---------- CASES — 1:1 Apple AirPods Max "Get the highlights" gallery ---------- */
.cases {
  padding: 120px 0;
  position: relative;
}
.cases__title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-size: clamp(40px, 5.5vw, 80px);
  margin: 0 0 56px;
  color: var(--ink);
  max-width: 18ch;
}

/* Horizontal scroller — Apple media-card gallery, 2-3 cards visible at a time */
.cases__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 40px;
  outline: none;
}
.cases__scroller::-webkit-scrollbar { display: none; }
.cases__scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
}
.cases__track {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 18px;
  padding: 0 max(28px, calc(50vw - 660px));
  width: max-content;
}
@media (max-width: 1480px) {
  .cases__track { padding: 0 max(28px, calc(50vw - 540px)); }
}
@media (max-width: 880px) { .cases__track { padding: 0 18px; gap: 14px; } }
.case-item { list-style: none; }

/* The card itself — Apple media-card aspect-portrait, 3 visible on desktop */
.case {
  display: flex;
  flex-direction: column;
  width: 440px;
  min-height: 580px;
  background: #1a1a1c;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.case-item { flex: 0 0 440px; }
@media (max-width: 1100px) {
  .case { width: 380px; min-height: 520px; }
  .case-item { flex: 0 0 380px; }
}
@media (max-width: 720px) {
  .case { width: 80vw; min-height: 480px; }
  .case-item { flex: 0 0 80vw; }
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}

/* Caption — bold headline at top of card (Apple media-card pattern) */
.case__caption {
  padding: 32px 32px 0;
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #f5f5f7;
  margin: 0;
  z-index: 2;
  position: relative;
}
@media (max-width: 720px) { .case__caption { padding: 26px 24px 0; font-size: 19px; } }

/* Visual — full-bleed image at bottom, fills remaining card height */
.case__visual {
  flex: 1;
  background-size: cover;
  background-position: center;
  margin-top: 24px;
  transition: transform 1.2s var(--ease-out);
  position: relative;
}
.case__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 30% 30%, rgba(255,59,48,0.10), transparent 55%),
    radial-gradient(120% 90% at 70% 80%, rgba(80,80,255,0.08), transparent 55%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.case__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 35%);
  pointer-events: none;
}
.case:hover .case__visual { transform: scale(1.04); }

/* Bottom corner — project name chip + open-case arrow indicator */
.case__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}
.case__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 7px 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.case:hover .case__name {
  background: rgba(255,59,48,0.85);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.case__open {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.case:hover .case__open {
  background: #fff;
  color: #1a1a1c;
  transform: translateX(4px);
}

/* Bottom controls — Apple-style: pagination dots left, arrow nav right */
.cases__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cases__pagination {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.cases__pagination li { list-style: none; }
.cases__pagination button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.cases__pagination button:hover { background: rgba(255,255,255,0.4); }
.cases__pagination button[aria-current="true"] {
  background: var(--ink);
  transform: scale(1.1);
}

.cases__nav-controls {
  display: flex;
  gap: 10px;
}
.cases__nav {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cases__nav:hover { background: rgba(255,255,255,0.18); }
.cases__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
}
.cases__nav:disabled:hover { background: rgba(255,255,255,0.05); }
@media (max-width: 560px) {
  .cases__pagination button { width: 8px; height: 8px; }
  .cases__nav { width: 40px; height: 40px; }
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
/* Legacy bento .case styles removed — cases now use Apple media-card gallery above */

/* ---------- PROCESS ---------- */
.process {
  padding: 100px 0;
  background:
    radial-gradient(800px 500px at 10% 50%, rgba(255,59,48,0.05), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-2);
  position: relative;
  min-height: 240px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.step:hover { border-color: var(--line-2); background: var(--surface); }
.step__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 14px 0 8px;
}
.step p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.step__dot {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 8px; height: 8px;
  background: var(--ink-4);
  border-radius: 50%;
}
.step:hover .step__dot { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

@media (max-width: 900px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process__list { grid-template-columns: 1fr; } }

/* ---------- BIG CTA ---------- */
.bigcta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bigcta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(255,59,48,0.12), transparent 70%);
  pointer-events: none;
}
.bigcta__inner { position: relative; z-index: 1; }
.bigcta h2 {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.9;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}
.bigcta h2 .accent { color: var(--accent); }
.bigcta p {
  max-width: 540px;
  margin: 0 auto 32px;
  color: var(--ink-3);
  font-size: 15px;
}
.btn-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-big::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.btn-big:hover { background: var(--accent); color: #fff; }
.btn-big:hover::after { background: #fff; transform: translateX(4px); }

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}
.contact__info {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.contact__info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.35;
}
.contact__info > * { position: relative; z-index: 1; }

.contact__brand {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact__email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__email::before {
  content: "→";
  color: var(--accent);
}
.contact__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0;
}

.contact__form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
  outline: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field textarea:focus { border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.form-submit::after { content: "●"; color: var(--accent); }
.form-submit:hover { background: var(--accent); color: #fff; }
.form-submit:hover::after { color: #fff; }

.form-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  background: var(--bg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}
.footer__brand {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(60px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.footer__brand .accent { color: var(--accent); }
.footer__cols h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.footer__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__cols a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.footer__cols a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__bottom .dot { color: var(--accent); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- REVEAL ANIMATIONS (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.06s; }
.reveal--delay-2 { transition-delay: 0.12s; }
.reveal--delay-3 { transition-delay: 0.18s; }
.reveal--delay-4 { transition-delay: 0.24s; }
.reveal--delay-5 { transition-delay: 0.3s; }
.reveal--delay-6 { transition-delay: 0.36s; }

/* ---------- UTILITY ---------- */
.spacer-80 { height: 80px; }
.spacer-120 { height: 120px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================================
   APPLE × MINIMAL OVERLAY
   Light sections · Display typography · Airy spacing
   ========================================================= */

/* SF-style display weights using Inter */
.display {
  font-family: 'Inter', -apple-system, "SF Pro Display", BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.display-xl {
  font-size: clamp(48px, 8.4vw, 132px);
}
.display-lg {
  font-size: clamp(40px, 6.4vw, 96px);
}
.display-md {
  font-size: clamp(32px, 4.4vw, 64px);
}
.display-thin { font-weight: 400; letter-spacing: -0.045em; }
.display-soft { color: var(--ink-2); }

/* APPLE-STYLE HERO REFINEMENT */
.hero__lockup {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.hero__eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  
}
.hero__eyebrow-row .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.hero__apple-title {
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.0;
  font-size: clamp(56px, 9.5vw, 156px);
  margin: 0;
}
.hero__apple-title .light { font-weight: 400; color: var(--ink-2); }
.hero__apple-title .accent-dot { color: var(--accent); }
.hero__apple-title .dot-accent {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hero__signature {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero__signature::before,
.hero__signature::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-2);
}

/* LIGHT SECTION SYSTEM */
.section--light {
  background: #f5f5f7;
  color: #111;
  position: relative;
}
.section--light h2,
.section--light h3 { color: #111; }
.section--light .eyebrow { color: rgba(0,0,0,0.55); }
.section--light .eyebrow::before { background: var(--accent); box-shadow: 0 0 12px rgba(255,59,48,0.4); }
.section--light .section-head__aside { color: rgba(0,0,0,0.6); }
.section--light .section-head__aside a { color: #111; border-color: rgba(0,0,0,0.2); }
.section--light .section-head__aside a:hover { color: var(--accent); border-color: var(--accent); }

.section--white { background: #fff; color: #111; }
.section--white h2,
.section--white h3 { color: #111; }

/* MANIFESTO — Apple-style big text on light */
.manifesto {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.manifesto__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,59,48,0.06), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0,0,0,0.04), transparent 50%);
  pointer-events: none;
}
.manifesto__inner { position: relative; z-index: 1; max-width: 1100px; }
.manifesto p.eyebrow { margin-bottom: 40px; }
.manifesto__title {
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-size: clamp(38px, 5.6vw, 88px);
  color: #111;
  margin: 0 0 56px;
}
.manifesto__title .soft { font-weight: 400; color: rgba(0,0,0,0.45); }
.manifesto__title .accent { color: var(--accent); }
.manifesto__title .mono-tag {
  display: inline-block;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 0.62em;
  vertical-align: middle;
  margin: 0 0.12em;
  color: var(--accent);
  transform: translateY(-0.06em);
}
.manifesto__grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.manifesto-pt {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 22px;
}
.manifesto-pt__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-bottom: 14px;
  display: block;
}
.manifesto-pt h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.manifesto-pt p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.62);
  margin: 0;
}
@media (max-width: 760px) {
  .manifesto { padding: 100px 0; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* SHOWCASE — Apple product feature */
.showcase {
  padding: 140px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase__copy h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  margin: 18px 0 22px;
  color: #111;
}
.showcase__copy h2 .accent { color: var(--accent); }
.showcase__copy h2 .soft { color: rgba(0,0,0,0.4); font-weight: 400; }
.showcase__copy p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0,0,0,0.62);
  max-width: 460px;
  margin: 0 0 28px;
}
.showcase__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #111;
}
.showcase__bullets li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease);
}
.showcase__link:hover { gap: 14px; }
.showcase__link::after { content: "→"; }

.showcase__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a, #050505 70%);
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,0,0,0.08);
}
.showcase__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.showcase__visual::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  background: radial-gradient(circle at 30% 30%, rgba(255,59,48,0.5), rgba(255,59,48,0) 60%);
  filter: blur(20px);
  border-radius: 50%;
  animation: orbDrift 8s ease-in-out infinite alternate;
}
.showcase__chip {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 14px;
  border-radius: 999px;
  
}
.showcase__readout {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.showcase__readout .val {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: #fff;
}
.showcase__readout .val .accent { color: var(--accent); }
.showcase__readout .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15%, -10%) scale(1.15); }
}

@media (max-width: 880px) {
  .showcase { padding: 100px 0; }
  .showcase__inner { grid-template-columns: 1fr; gap: 48px; }
  .showcase__visual { aspect-ratio: 4 / 3; }
}

/* LIGHT VARIANTS OF PROCESS / STEP TO LIVE INSIDE LIGHT SECTIONS */
.process.section--light {
  background:
    radial-gradient(800px 500px at 90% 30%, rgba(255,59,48,0.06), transparent 60%),
    #f5f5f7;
  border-color: rgba(0,0,0,0.08);
}
.process.section--light h2,
.process.section--light h3 { color: #111; }
.process.section--light .step__num { color: var(--accent); }
.section--light .step,
.section--white .step {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}
.section--light .step:hover,
.section--white .step:hover {
  background: #fafafa;
  border-color: rgba(0,0,0,0.18);
}
.section--light .step h3,
.section--white .step h3 { color: #111; }
.section--light .step p,
.section--white .step p { color: rgba(0,0,0,0.6); }
.section--light .step__dot,
.section--white .step__dot { background: rgba(0,0,0,0.2); }
.section--light .step:hover .step__dot,
.section--white .step:hover .step__dot { background: var(--accent); }

/* APPLE-STYLE HERO TWEAKS — replace dot-matrix hero with refined */
.hero--apple .hero__meta { margin-bottom: 36px; }
.hero--apple {
  min-height: 100vh;
  padding: 130px 0 90px;
}
.hero--apple .hero__bottom { margin-top: 56px; }

/* Subtle border tone between dark and light sections */
.section--light + .marquee,
.marquee + .section--light { border-color: rgba(0,0,0,0.08); }
.section--light .marquee {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}

/* SEPARATOR DOT-LINE — used between sections */
.dot-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0;
}
.dot-divider span {
  width: 4px; height: 4px;
  background: var(--ink-4);
  border-radius: 50%;
}
.dot-divider span:nth-child(3) { background: var(--accent); width: 6px; height: 6px; }

/* SUBTLE refinement to cases — softer corners on hover */
.case { transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.case:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }

/* =========================================================
   CINEMATIC ANIMATION UPGRADE
   ========================================================= */

/* — Smoother reveal with blur + scale — */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    filter 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* — HERO TITLE: verholy-style minimal reveal — slow, refined, no flash — */
.hero__apple-title .line { display: block; }
.hero__apple-title .line > span {
  display: inline-block;
  transform: translate3d(0, 28px, 0);
  opacity: 0;
  filter: blur(3px);
  transition:
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.0s ease-out;
}
.hero.is-ready .hero__apple-title .line > span {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  filter: blur(0);
}
.hero__apple-title .line:nth-child(1) > span { transition-delay: 0.05s; }
.hero__apple-title .line:nth-child(2) > span { transition-delay: 0.22s; }
.hero__apple-title .line:nth-child(3) > span { transition-delay: 0.40s; }

/* eyebrow + meta + lead also drift in */
.hero__eyebrow-row,
.hero__meta,
.hero__bottom,
.hero__signature,
.scroll-hint {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.hero.is-ready .hero__eyebrow-row { transition-delay: 0.05s; opacity: 1; transform: none; }
.hero.is-ready .hero__meta        { transition-delay: 0s;    opacity: 1; transform: none; }
.hero.is-ready .hero__bottom      { transition-delay: 0.6s;  opacity: 1; transform: none; }
.hero.is-ready .hero__signature   { transition-delay: 0.7s;  opacity: 1; transform: none; }
.hero.is-ready .scroll-hint       { transition-delay: 0.9s;  opacity: 1; transform: none; }

/* — STORY DIGITS: cinematic slide-flip — */
.story__digits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s var(--ease-out);
  transform-origin: 50% 50%;
}
.story__digits[data-active="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  filter: blur(0);
  z-index: 2;
}
.story__digits[data-active="false"] {
  opacity: 0;
  transform: translate3d(0, -40%, 0) rotateX(-25deg) scale(0.9);
  filter: blur(8px);
  z-index: 1;
}
.story__stage-art { perspective: 1200px; }

.story__orb {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s var(--ease-out);
}

/* — CASES: smooth media zoom + tag float on hover — */
.case__media { transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out); }
.case:hover .case__media {
  transform: scale(1.06);
  filter: brightness(1.05) contrast(1.04);
}
.case__float { transition: transform 0.5s var(--ease-out), background 0.4s var(--ease-out); }
.case:hover .case__float {
  transform: translateY(-3px);
  background: rgba(255,59,48,0.85);
  border-color: rgba(255,255,255,0.4);
}
.case__title { transition: transform 0.6s var(--ease-out); }
.case:hover .case__title { transform: translateX(4px); }

/* — BENTO SERVICE CARDS: diagonal gradient sweep on hover — */
.svc {
  overflow: hidden;
  isolation: isolate;
}
.svc::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,59,48,0.18) 50%, rgba(255,255,255,0.06) 60%, transparent 100%);
  transform: translate3d(120%, 0, 0) rotate(8deg);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.svc:hover::after { transform: translate3d(-30%, 0, 0) rotate(8deg); }
.svc__title { transition: transform 0.5s var(--ease-out), letter-spacing 0.5s var(--ease-out); }
.svc:hover .svc__title { transform: translateY(-2px); }

/* light bento sweep contrast */
.svc--light::after {
  background: linear-gradient(120deg, transparent 0%, rgba(0,0,0,0.04) 40%, rgba(255,59,48,0.16) 50%, rgba(0,0,0,0.04) 60%, transparent 100%);
}
.svc--feature::after {
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.08) 60%, transparent 100%);
}

/* — STATS: number scale-pop when revealed — */
.stat__num { transition: transform 0.6s var(--ease-out); will-change: transform; }
.stats__grid.is-visible .stat__num { animation: numberPop 0.9s var(--ease-out) both; }
.stats__grid.is-visible .stat:nth-child(1) .stat__num { animation-delay: 0.05s; }
.stats__grid.is-visible .stat:nth-child(2) .stat__num { animation-delay: 0.15s; }
.stats__grid.is-visible .stat:nth-child(3) .stat__num { animation-delay: 0.25s; }
.stats__grid.is-visible .stat:nth-child(4) .stat__num { animation-delay: 0.35s; }
@keyframes numberPop {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); filter: blur(8px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(0); filter: blur(0); }
  100% { transform: scale(1); }
}

/* — STEPS: number flip on enter — */
.step__num { transform-origin: 0 100%; transition: transform 0.7s var(--ease-out); }
.process__list .step.reveal { transition-delay: calc(var(--idx, 0) * 0.08s); }

/* — LOADER EXIT: slide-up + scale handoff — */
.loader {
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease), transform 0.9s cubic-bezier(0.86, 0, 0.07, 1);
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -100%, 0);
}
.loader__grid {
  animation: loaderEnter 0.6s var(--ease-out) both;
}
@keyframes loaderEnter {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* — MARQUEE: hover slows down, items shimmer — */
.marquee:hover .marquee__track { animation-duration: 60s; }
.marquee__track span { transition: color 0.3s var(--ease-out), letter-spacing 0.4s var(--ease-out); }
.marquee__track span:hover { color: var(--accent); letter-spacing: 0.06em; }

/* — TOPBAR brand mark — gentle pulse on hover — */
.brand__mark::before { animation: brandPulse 4s ease-in-out infinite; }
@keyframes brandPulse {
  0%, 100% { transform: scale(0.4) translateX(-30%); }
  50%      { transform: scale(0.42) translateX(-32%); }
}

/* — FOOTER BRAND: per-char reveal — */
.footer__brand .split-char {
  display: inline-block;
  transform: translate3d(0, 60%, 0);
  opacity: 0;
  filter: blur(8px);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}
.footer__brand.is-revealed .split-char {
  transform: none; opacity: 1; filter: blur(0);
}

/* — BIG CTA TITLE float — */
.bigcta h2 { transition: transform 1s var(--ease-out), opacity 1s var(--ease-out); }
.bigcta h2.reveal.is-visible { animation: ctaFloat 6s ease-in-out 1.5s infinite alternate; }
@keyframes ctaFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -8px, 0); }
}

/* — Manifesto title accent — — */
.manifesto__title .accent { display: inline-block; transition: transform 0.6s var(--ease-out); }
.manifesto__title:hover .accent { transform: scale(1.1) rotate(-3deg); }

/* — Section heading char-by-char (data-reveal) — */
[data-reveal-chars] { perspective: 600px; }
[data-reveal-chars] .split-char {
  display: inline-block;
  transform: translate3d(0, 100%, 0) rotateX(35deg);
  opacity: 0;
  filter: blur(6px);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease,
    filter 0.6s ease;
  transform-origin: 50% 100%;
}
[data-reveal-chars] .split-word { display: inline-block; overflow: hidden; padding-bottom: 0.1em; vertical-align: bottom; }
[data-reveal-chars].is-revealed .split-char {
  transform: none; opacity: 1; filter: blur(0);
}

/* — Pulse line under section heads on reveal — */
.section-head h2 { position: relative; }

/* — Performance hints — */
.case, .svc, .stat, .step, .reveal { will-change: transform, opacity; }
.loader { will-change: transform, opacity; }

/* =========================================================
   CASES — APPLE-STYLE HORIZONTAL GALLERY
   ========================================================= */
.cases__head-wrap { margin-bottom: 56px; }

.cases__nav-wrap {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.cases__nav {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cases__nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.06);
}
.cases__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none;
  background: transparent;
}
.cases__nav:disabled:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

/* Horizontal scroller */
.cases__track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 48px;
  margin: 0 -28px;
  outline: none;
}
.cases__track-wrap::-webkit-scrollbar { display: none; }
.cases__track-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.cases__track {
  display: flex;
  gap: 22px;
  /* Centering padding: first/last card lands near viewport center */
  padding: 0 max(28px, calc(50vw - 720px));
  width: max-content;
}
@media (max-width: 1480px) {
  .cases__track { padding: 0 max(28px, calc(50vw - 600px)); }
}
@media (max-width: 880px) {
  .cases__track { padding: 0 20px; gap: 16px; }
}

.case-card {
  flex: 0 0 460px;
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s var(--ease-out);
  will-change: transform;
}
@media (max-width: 880px) {
  .case-card { flex: 0 0 84vw; aspect-ratio: 3 / 4; }
}
@media (max-width: 540px) {
  .case-card { flex: 0 0 90vw; aspect-ratio: 3 / 4; border-radius: 22px; }
}

.case-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s var(--ease-out);
  will-change: transform;
}
.case-card:hover .case-card__media {
  transform: scale(1.16);
  filter: brightness(1.08) contrast(1.04);
}
.case-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 30%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

.case-card__top {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.case-card__chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease-out);
}
.case-card:hover .case-card__chip {
  background: rgba(255,59,48,0.85);
  border-color: rgba(255,255,255,0.35);
}
.case-card__year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
}

.case-card__body {
  position: relative;
  z-index: 2;
  padding: 24px 28px 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.case-card__title {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
  transition: transform 0.5s var(--ease-out);
}
.case-card:hover .case-card__title { transform: translateY(-2px); }
.case-card__teaser {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.5;
  max-width: 320px;
}

/* Meta block — collapsed by default, slides open on hover */
.case-card__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px;
  align-items: baseline;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s var(--ease-out) 0.05s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-card__meta-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.case-card__meta-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #fff;
}
.case-card:hover .case-card__meta {
  max-height: 40px;
  opacity: 1;
  transform: translateY(0);
}

.case-card__more {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.case-card__more::after {
  content: "→";
  transition: transform 0.4s var(--ease-out);
}
.case-card:hover .case-card__more::after { transform: translateX(8px); }

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* Cursor spotlight for new cards (uses same vars as old .case) */
.case-card { --cx: 50%; --cy: 50%; }
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px 260px at var(--cx) var(--cy),
    rgba(255,59,48,0.30),
    rgba(255,59,48,0.06) 35%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  z-index: 4;
  mix-blend-mode: screen;
}
.case-card:hover::before { opacity: 1; }

/* Entry reveal — staggered from below */
.case-card {
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(0.96);
  filter: blur(8px);
}
.case-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Progress + counter */
.cases__progress {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cases__counter {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  min-width: 100px;
}
.cases__counter-of {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  margin-left: 6px;
}
.cases__bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.cases__bar-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--accent), #ff7a72);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(255,59,48,0.4);
}
.cases__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cases__hint { display: none; }
}

/* =========================================================
   APPLE iPHONE-PAGE STYLE — scrollytelling additions
   ========================================================= */

/* === HERO SCROLL-EXIT (removed — was clipping/fading title prematurely) ===
   Hero now exits naturally with the page scroll; --p kept as no-op for any
   downstream rule that may still reference it. */
.hero { --p: 0; }

/* === STORY SECTION — APPLE SCROLLYTELLING UPGRADE === */
/* Make pin last longer + add side progress rail + per-chapter mood tints */
.chapter { min-height: 110vh; }
@media (max-width: 980px) { .chapter { min-height: auto; } }

.story__stage {
  transition: background 1.2s var(--ease-out), box-shadow 1.2s var(--ease-out);
}
.story[data-active="0"] .story__stage {
  background: radial-gradient(120% 90% at 30% 20%, #1f1f1f 0%, #050505 70%);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06);
}
.story[data-active="1"] .story__stage {
  background: radial-gradient(120% 90% at 70% 30%, #2a1212 0%, #060102 70%);
  box-shadow: 0 60px 120px -30px rgba(120,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.06);
}
.story[data-active="2"] .story__stage {
  background: radial-gradient(120% 90% at 50% 80%, #1a1a2a 0%, #030307 70%);
  box-shadow: 0 60px 120px -30px rgba(0,30,120,0.35), 0 0 0 1px rgba(0,0,0,0.06);
}

/* Side progress rail — vertical, three nodes */
.story__progress {
  position: absolute;
  left: -38px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.story__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--accent), #b81e15);
  height: 0;
  transition: height 0.6s var(--ease-out);
}
.story__progress-node {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.12);
  transform: translateX(-50%);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.story__progress-node[data-state="active"] {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 6px rgba(255,59,48,0.16);
}
.story__progress-node[data-state="passed"] {
  background: var(--accent);
  border-color: var(--accent);
}
.story__progress-node:nth-child(2) { top: 16%; }
.story__progress-node:nth-child(3) { top: 50%; }
.story__progress-node:nth-child(4) { top: 84%; }

.story__chapters { position: relative; }
@media (max-width: 980px) {
  .story__progress { display: none; }
}

/* Active digit ALSO pulses on change */
.story__digits[data-active="true"] { animation: digitPop 0.7s var(--ease-out); }
@keyframes digitPop {
  0%   { transform: translate3d(0, 30%, 0) rotateX(20deg) scale(0.94); filter: blur(8px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotateX(0) scale(1); filter: blur(0); opacity: 1; }
}

/* === BIG-SPEC SECTION — Apple-style pinned headline === */
/* JS-driven pin — switches between absolute/fixed/absolute via classes for
   bulletproof behavior across browsers (sticky was unreliable here). */
.bigspec {
  position: relative;
  background: #050505;
  color: #fff;
  min-height: 360vh;
  overflow: clip;
  overflow: hidden; /* fallback */
}
.bigspec__pin {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bigspec__pin.is-pinned {
  position: fixed;
  top: 0; left: 0; right: 0;
}
.bigspec__pin.is-end {
  position: absolute;
  top: auto;
  bottom: 0;
}
.bigspec__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% 50%, rgba(255,59,48,0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(60,30,120,0.18), transparent 60%);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.bigspec[data-step="0"] .bigspec__bg { transform: translate3d(-6%, -3%, 0); }
.bigspec[data-step="1"] .bigspec__bg { transform: translate3d(0%, 0%, 0); }
.bigspec[data-step="2"] .bigspec__bg { transform: translate3d(6%, 3%, 0); }
.bigspec[data-step="3"] .bigspec__bg { transform: translate3d(0%, -6%, 0); }

.bigspec__inner {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 28px;
}
.bigspec__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.bigspec__eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.bigspec__stack {
  position: relative;
  display: grid;
  place-items: center;
}
.bigspec__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(120px, 24vw, 380px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: #fff;
  grid-column: 1; grid-row: 1;
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.92);
  filter: blur(14px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s var(--ease-out);
}
.bigspec__num .accent { color: var(--accent); }
.bigspec__num[data-on="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.bigspec__num[data-on="false"][data-prev="true"] {
  opacity: 0;
  transform: translate3d(0, -40px, 0) scale(1.04);
  filter: blur(10px);
}
.bigspec__caption {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
}
.bigspec__caption span {
  grid-column: 1; grid-row: 1;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.bigspec__caption span[data-on="true"] {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}
.bigspec__rail {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.bigspec__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.bigspec__dot[data-on="true"] {
  background: var(--accent);
  transform: scale(1.4);
}
/* Steps wrapper removed — bigspec section itself drives the pin */
@media (max-width: 720px) {
  .bigspec { min-height: 280vh; }
}

/* =========================================================
   HIGHLIGHTS — AirPods Max-style feature cards
   ========================================================= */
.highlights {
  padding: 120px 0;
}
.highlights__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.highlights__title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(36px, 4.8vw, 64px);
  margin: 18px 0 0;
  color: #111;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .highlights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .highlights__grid { grid-template-columns: 1fr; gap: 14px; } }

.highlight {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  will-change: transform;
}
.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
}

.highlight__media {
  position: relative;
  aspect-ratio: 1.2 / 1;
  background: linear-gradient(135deg, #1c1c1e 0%, #050505 100%);
  overflow: hidden;
  isolation: isolate;
}
.highlight__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,59,48,0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(80,80,255,0.10), transparent 55%);
  pointer-events: none;
}
.highlight__viz {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease-out);
}
.highlight:hover .highlight__viz {
  transform: scale(1.06);
}

/* — Variants: each highlight gets its own abstract visual — */

/* Design: a small grid of dots with a "cursor" hovering */
.highlight__viz--design .hl-grid {
  width: 65%;
  height: 65%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.5) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  border-radius: 12px;
}
.highlight__viz--design .hl-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent-glow);
  animation: hlCursor 4s ease-in-out infinite;
}
@keyframes hlCursor {
  0%   { transform: translate(-40%, -30%); }
  25%  { transform: translate(40%, -30%); }
  50%  { transform: translate(40%, 30%); }
  75%  { transform: translate(-40%, 30%); }
  100% { transform: translate(-40%, -30%); }
}

/* Speed: stacked horizontal bars that shimmer */
.highlight__viz--speed {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 18%;
}
.highlight__viz--speed .hl-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: hlBar 2.4s ease-in-out infinite;
  transform-origin: 0 50%;
}
.highlight__viz--speed .hl-bar:nth-child(1) { animation-delay: 0s;   width: 100%; }
.highlight__viz--speed .hl-bar:nth-child(2) { animation-delay: 0.15s; width: 78%; }
.highlight__viz--speed .hl-bar:nth-child(3) { animation-delay: 0.3s;  width: 92%; }
.highlight__viz--speed .hl-bar:nth-child(4) { animation-delay: 0.45s; width: 64%; }
@keyframes hlBar {
  0%, 100% { transform: scaleX(0.6); opacity: 0.4; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* Mobile: two phone outlines, one in front, one slightly behind */
.highlight__viz--mobile { perspective: 600px; }
.highlight__viz--mobile .hl-phone {
  position: absolute;
  width: 70px;
  height: 130px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,59,48,0.18) 100%);
  animation: hlPhone 4s ease-in-out infinite;
}
.highlight__viz--mobile .hl-phone--alt {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,59,48,0.10), transparent);
  animation-delay: -2s;
}
@keyframes hlPhone {
  0%, 100% { transform: translate(-25%, 0) rotateY(-12deg); }
  50%      { transform: translate(25%, -6%) rotateY(12deg); }
}

/* Brand: a single M-shaped logo that rotates softly */
.highlight__viz--brand .hl-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #ff7a72, #fff, var(--accent));
  position: relative;
  animation: hlLogo 8s linear infinite;
}
.highlight__viz--brand .hl-logo::before {
  content: "M";
  position: absolute;
  inset: 8px;
  background: #0a0a0a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Doto', monospace;
  font-weight: 900;
  font-size: 48px;
  color: #fff;
}
@keyframes hlLogo {
  to { transform: rotate(360deg); }
}

/* Scale: concentric rings expanding outward */
.highlight__viz--scale { display: grid; place-items: center; }
.highlight__viz--scale .hl-rings {
  position: relative;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-glow);
}
.highlight__viz--scale .hl-rings::before,
.highlight__viz--scale .hl-rings::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  animation: hlRing 2.4s ease-out infinite;
}
.highlight__viz--scale .hl-rings::after { animation-delay: 1.2s; }
@keyframes hlRing {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Support: a single pulsing dot with halo */
.highlight__viz--support .hl-dot-pulse {
  width: 16px; height: 16px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.6);
  position: relative;
}
.highlight__viz--support .hl-dot-pulse::before,
.highlight__viz--support .hl-dot-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: hlSupport 2.6s ease-out infinite;
}
.highlight__viz--support .hl-dot-pulse::after { animation-delay: 1.3s; }
@keyframes hlSupport {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(5);   opacity: 0; }
}

.highlight__body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.highlight__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}
.highlight__h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  color: #111;
}
.highlight__p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0,0,0,0.62);
  margin: 0;
  max-width: 36ch;
}
.highlight__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  margin-top: 4px;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.highlight__link::after { content: "→"; }
.highlight__link:hover {
  gap: 12px;
  border-bottom-color: var(--accent);
}

/* Directional case reveal removed — cards now use static layout via Apple gallery */

/* === STICKY BOTTOM CTA PILL === */
.sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.92);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), background 0.3s var(--ease), color 0.3s var(--ease);
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.1);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}
.sticky-cta::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}
.sticky-cta:hover { background: var(--accent); color: #fff; }
.sticky-cta:hover::after { background: #fff; transform: translateX(4px); }
@media (max-width: 600px) {
  .sticky-cta { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 11px; }
}

/* === SECTION COLOR-MOOD TRANSITIONS === */
/* As bigspec exits, body background tints redder briefly */
body { transition: background 1s var(--ease-out); }
.is-mood-warm body,
body.is-mood-warm {
  background: radial-gradient(900px 600px at 80% 0%, rgba(255,59,48,0.06), transparent 60%), var(--bg);
}

/* =========================================================
   PHASE 4 — Premium micro-interactions
   ========================================================= */

/* === HERO WORD CYCLING ===
   Words sit at the bottom of the cycler box so their baseline aligns with
   the surrounding accent dot — both anchored to the line's baseline. */
.word-cycler {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  height: 1em;
}
.word-cycler__inner {
  display: block;
  position: relative;
  height: 1em;
  width: 100%;
}
.word-cycler__word {
  position: absolute;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 30%, 0);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.word-cycler__word--active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
.word-cycler__word--exiting {
  opacity: 0;
  transform: translate3d(0, -30%, 0);
}

/* Each cycled word has its own red dot — always flush with the word, no gap */
.word-cycler__word::after {
  content: ".";
  color: var(--accent);
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
}

/* Cycler width animates between words so the dot tracks each word tightly */
.word-cycler {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__apple-title .line > span {
  white-space: nowrap;
}

/* === HERO CURSOR PARALLAX (2D-only, no 3D layer flicker on scroll) === */
.hero__inner {
  --mx: 0;
  --my: 0;
}
.hero__apple-title {
  transform: translate3d(
    calc(var(--mx) * 8px),
    calc(var(--my) * 4px),
    0
  );
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === CURSOR SPOTLIGHT ON CARDS === */
.case, .svc {
  --cx: 50%;
  --cy: 50%;
}
/* Spotlight on .case removed — new grid cards are clean by design.
   Spotlight remains on services bento (.svc__spotlight) only. */
.svc__spotlight {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px 220px at var(--cx) var(--cy),
    rgba(255,59,48,0.25),
    rgba(255,59,48,0.05) 35%,
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  z-index: 0;
  mix-blend-mode: screen;
}

.svc { isolation: isolate; }
.svc__spotlight {
  background: radial-gradient(
    180px 180px at var(--cx) var(--cy),
    rgba(255,59,48,0.20),
    rgba(255,59,48,0.04) 40%,
    transparent 65%
  );
  z-index: 0;
}
.svc > * { position: relative; z-index: 1; }
.svc:hover .svc__spotlight { opacity: 1; }
.svc--light .svc__spotlight,
.svc--feature .svc__spotlight { mix-blend-mode: overlay; }

/* === LIVE MSK CLOCK === */
.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 14px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.live-clock__pulse {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.live-clock__time { color: var(--ink); font-weight: 500; }
@media (max-width: 1080px) { .live-clock { display: none; } }

/* === CLICK RIPPLE === */
.ripple-host { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255,255,255,0.45);
  mix-blend-mode: overlay;
  opacity: 0.9;
  animation: rippleOut 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}
.btn-big .ripple,
.btn-cta .ripple { background: rgba(255,255,255,0.6); }
.form-submit .ripple,
.sticky-cta .ripple { background: rgba(0,0,0,0.18); }
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

/* =========================================================
   APPLE SCROLL STORY — sticky narrative, like product pages
   ========================================================= */
.story {
  background: #fff;
  color: #111;
  position: relative;
}
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 28px 100px;
}
.story__stage {
  position: relative;
  height: clamp(360px, 50vh, 520px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #1f1f1f 0%, #050505 70%);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.3),
    0 0 0 1px rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
}
.story__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.1px, transparent 1.6px);
  background-size: 20px 20px;
  opacity: 0.5;
}
.story__stage-art {
  position: relative;
  width: 75%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.story__orb {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  filter: blur(30px);
  opacity: 0.55;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.story__digits {
  position: relative;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  z-index: 1;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.story__digits[data-active="false"] { opacity: 0; transform: scale(0.9); position: absolute; }
.story__caption {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.story__caption .red { color: var(--accent); }

.story__chapters {
  display: flex;
  flex-direction: column;
}
.chapter {
  min-height: 0;
  padding: 50px 0 50px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.chapter + .chapter { margin-top: 24px; }
.chapter::before {
  content: "";
  position: absolute;
  left: -5px; top: 80px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff;
}
.chapter__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 18px;
}
.chapter h2 {
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(36px, 4.8vw, 72px);
  margin: 0 0 22px;
  color: #111;
}
.chapter h2 .soft { font-weight: 400; color: rgba(0,0,0,0.4); }
.chapter h2 .accent { color: var(--accent); }
.chapter p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0,0,0,0.62);
  max-width: 460px;
  margin: 0;
}
.chapter__meta {
  margin-top: 32px;
  display: flex;
  gap: 32px;
}
.chapter__meta div span:first-child {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: #111;
  display: block;
}
.chapter__meta div span:first-child em { font-style: normal; color: var(--accent); }
.chapter__meta div span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-top: 6px;
  display: block;
}

@media (max-width: 980px) {
  .story__inner { grid-template-columns: 1fr; padding: 60px 18px 80px; gap: 24px; }
  .story__stage { position: relative; top: 0; height: 60vh; max-height: 480px; }
  .chapter { padding: 60px 0 60px 24px; min-height: auto; }
}

/* =========================================================
   QUOTE — Apple-style big quote on white
   ========================================================= */
.quote-section {
  background: #fff;
  color: #111;
  padding: 140px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 50%, rgba(255,59,48,0.06), transparent 60%);
}
.quote-section__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 28px; }
.quote-section p.eyebrow { color: rgba(0,0,0,0.55); justify-content: center; display: inline-flex; }
.quote-section blockquote {
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(28px, 4vw, 56px);
  margin: 28px 0 36px;
  color: #111;
}
.quote-section blockquote .quote-mark {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0.08em;
}
.quote-section blockquote .soft { color: rgba(0,0,0,0.4); font-weight: 400; }
.quote-section blockquote .accent { color: var(--accent); }
.quote-section .quote__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
}
.quote-section .quote__author::before {
  content: "";
  width: 36px; height: 1px;
  background: rgba(0,0,0,0.2);
}

/* =========================================================
   SCROLL INDICATOR — Apple-style hint
   ========================================================= */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 3;
}
.scroll-hint__bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--ink-4) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-hint__bar::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--ink);
  animation: scrollHintAnim 1.8s var(--ease) infinite;
}
@keyframes scrollHintAnim {
  0%   { transform: translateY(0);    opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
@media (max-width: 880px) { .scroll-hint { display: none; } }

/* =========================================================
   GLOBAL BG FX — fixed canvas that lives behind everything
   ========================================================= */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.55;
  transition: opacity 0.7s var(--ease);
}
body { background: var(--bg); }
/* lift content above bg */
.topbar, main, .footer, .scroll-hint, .scroll-progress, .chapter-tag, .cursor, .cursor-ring, .loader {
  position: relative;
  z-index: 1;
}
.topbar { z-index: 200; }
.cursor, .cursor-ring { z-index: 10000; }
.loader { z-index: 9999; }

/* In hero, kill local canvas (replaced by global) */
.hero__canvas { display: none; }

/* Light sections need a slightly translucent background so the canvas peeks through subtly */
.section--light, .section--white, .story, .quote-section, .showcase {
  position: relative;
  z-index: 1;
}
.section--light::after,
.section--white::after,
.story::after,
.quote-section::after,
.showcase::after {
  /* nothing — bg is solid; canvas auto-inverts color when over light */
}

/* =========================================================
   MINIMAL TOP SCROLL PROGRESS BAR
   ========================================================= */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 250;
  background: transparent;
  pointer-events: none;
}
.scroll-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* =========================================================
   CHAR-BY-CHAR REVEAL
   ========================================================= */
[data-split] { display: inline-block; }
.split-char {
  display: inline-block;
  transform: translateY(40%);
  opacity: 0;
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity   0.5s ease-out;
}
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.05em; }
.is-revealed .split-char { transform: translateY(0); opacity: 1; }

/* SCROLL-DRIVEN PARALLAX HOOKS */
[data-parallax] { will-change: transform; transition: transform 0.05s linear; }

/* SMEAR — applied to certain visuals while scrolling fast */
[data-smear] { transition: filter 0.25s var(--ease), transform 0.25s var(--ease); }

/* Marquee enhanced: speed via CSS var */
.marquee__track { animation-duration: var(--marq-dur, 28s); }
.marquee--reverse .marquee__track { animation-direction: reverse; }

/* Stickier hero feel: slight zoom on the canvas via transform */
.bg-fx[data-state="hero"] { opacity: 1; }
.bg-fx[data-state="dim"]  { opacity: 0.45; }
.bg-fx[data-state="bright"] { opacity: 1; }

/* Pin-progress visible on right of stage during scroll-story */
.story__progress {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.story__progress span {
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}
.story__progress span.is-active { background: var(--accent); width: 28px; }

/* =========================================================
   MOBILE POLISH — v.2026.06
   Сводный блок мобильных правок. Намеренно вынесен в конец
   файла, чтобы быть последним в каскаде и не задеть desktop.
   Брейкпоинты: 1024 → 768 → 560 → 400 → 360.
   ========================================================= */

/* iOS не зумит инпуты только если font-size >= 16px.
   На мобилке принудительно поднимаем размер ввода. */
@media (max-width: 768px) {
  .field input,
  .field textarea,
  .hero__form input { font-size: 16px !important; }
}

/* ---------- TOPBAR / NAV (mobile) ---------- */
@media (max-width: 880px) {
  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    padding: 8px 8px 8px 16px;
  }
  .brand { font-size: 11px; letter-spacing: 0.14em; }
  .brand__mark { width: 18px; height: 18px; }
  .topbar__actions { gap: 6px; }
  .burger { width: 36px; height: 36px; }
}

/* Блокируем скролл боди когда открыт drawer */
body.drawer-open { overflow: hidden; }
@media (max-width: 480px) {
  .drawer a { font-size: 32px; }
}

/* ---------- HERO ---------- */
@media (max-width: 768px) {
  .hero { padding: 110px 0 56px; min-height: auto; }
  .hero__meta {
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 36px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }
  .hero__bottom { margin-top: 48px; gap: 24px; }
  .hero__title { font-size: clamp(48px, 13vw, 88px); line-height: 0.92; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 0 48px; }
  .hero__meta span:nth-child(3) { display: none; } /* прячем v.2026.05 на узких */
  .hero__form {
    flex-direction: column;
    border-radius: 18px;
    padding: 6px;
    gap: 6px;
  }
  .hero__form input { padding: 14px 12px; }
  .hero__form button {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 14px;
  }
  .hero__proof { font-size: 10px; letter-spacing: 0.14em; }
  .hero__signature { display: none; }
}

/* ---------- MARQUEE ---------- */
@media (max-width: 480px) {
  .marquee { padding: 18px 0; }
  .marquee__track { gap: 36px; }
  .marquee__track span { gap: 36px; }
}

/* ---------- STATS — 4→2→1 ---------- */
@media (max-width: 560px) {
  .stats { padding: 64px 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { min-height: 160px; padding: 28px 22px; }
  .stat__num { font-size: 64px; }
  .stat__label { max-width: none; font-size: 10px; }
}

/* ---------- SECTION HEADS (заголовок + аннотация рядом) ---------- */
@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }
  .section-head h2 { max-width: none; font-size: clamp(34px, 9vw, 56px); }
  .section-head__aside { max-width: none; }
}

/* ---------- MANIFESTO ---------- */
@media (max-width: 480px) {
  .manifesto { padding: 72px 0; }
  .manifesto__title { font-size: clamp(32px, 9vw, 48px); margin-bottom: 36px; }
  .manifesto__grid { margin-top: 48px; gap: 22px; }
}

/* ---------- HIGHLIGHTS ---------- */
@media (max-width: 640px) {
  .highlights { padding: 72px 0; }
  .highlights__head { margin-bottom: 32px; }
  .highlight__media { aspect-ratio: 16 / 10; } /* не такие высокие в одну колонку */
  .highlight__body { padding: 24px 22px 26px; }
}

/* ---------- SHOWCASE ---------- */
@media (max-width: 880px) {
  .showcase__inner { gap: 32px; }
}
@media (max-width: 480px) {
  .showcase { padding: 72px 0; }
  .showcase__readout {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .showcase__readout .val { font-size: 32px; }
  .showcase__readout .lbl { font-size: 9px; }
}

/* ---------- STORY (scrollytelling — упрощаем на тач-устр) ---------- */
@media (max-width: 768px) {
  .story__stage { position: static !important; min-height: 60vh; }
  .chapter { padding: 56px 22px; }
}

/* ---------- SERVICES BENTO ---------- */
@media (max-width: 560px) {
  .services { padding: 72px 0; }
  .services__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .svc { padding: 22px; min-height: 180px; }
  .svc--xl, .svc--l, .svc--m, .svc--s { grid-column: span 1; }
}

/* ---------- CASES ---------- */
@media (max-width: 560px) {
  .cases { padding: 72px 0; }
  .cases__title { font-size: clamp(34px, 8.5vw, 52px); margin-bottom: 32px; }
  .cases__foot { flex-wrap: wrap; gap: 16px; padding-top: 8px; }
  .cases__nav-controls { margin-left: auto; }
}

/* ---------- BIGSPEC (огромные цифры) ---------- */
@media (max-width: 560px) {
  .bigspec { min-height: 240vh; }
  .bigspec__inner { padding: 0 22px; }
  .bigspec__num { font-size: clamp(96px, 32vw, 180px); }
  .bigspec__caption { font-size: 14px; max-width: 90%; }
  .bigspec__rail { bottom: 28px; }
}

/* ---------- PROCESS ---------- */
@media (max-width: 480px) {
  .process { padding: 72px 0; }
  .step { padding: 22px; min-height: auto; }
  .step__num { font-size: 44px; }
}

/* ---------- QUOTE ---------- */
@media (max-width: 560px) {
  .quote-section { padding: 96px 0; }
  .quote-section__inner { padding: 0 22px; }
  .quote-section blockquote { font-size: clamp(22px, 6.4vw, 32px); line-height: 1.25; }
}

/* ---------- BIG CTA ---------- */
@media (max-width: 480px) {
  .bigcta { padding: 80px 0; }
  .bigcta h2 { font-size: clamp(44px, 13vw, 80px); }
  .bigcta p { font-size: 14px; }
}

/* ---------- CONTACT ---------- */
@media (max-width: 560px) {
  .contact { padding: 72px 0; }
  .contact__info, .contact__form { padding: 24px 22px; border-radius: 22px; }
  .contact__brand { font-size: clamp(36px, 12vw, 56px); }
  .contact__email { font-size: 14px; word-break: break-all; }
  .form-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    align-self: stretch;
  }
}

/* ---------- FOOTER BOTTOM (две длинные строки слипаются) ---------- */
@media (max-width: 640px) {
  .footer { padding: 56px 0 28px; }
  .footer__top { gap: 32px; margin-bottom: 40px; }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

/* ---------- STICKY CTA (на мобилке делаем компактнее
   и подальше от sticky tab bar браузеров) ---------- */
@media (max-width: 600px) {
  .sticky-cta {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
}

/* ---------- TAP TARGETS (Apple HIG / WCAG — минимум 44px) ---------- */
@media (hover: none) and (pointer: coarse) {
  .nav a,
  .drawer a,
  .footer__cols a,
  .case__caption + * a,
  .highlight__link,
  .showcase__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .cases__nav { width: 44px; height: 44px; }
  .cases__pagination button { padding: 10px; }
}

/* ---------- SAFE-AREA для iPhone с челкой ---------- */
@supports (padding: max(0px)) {
  .shell {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
  @media (max-width: 720px) {
    .shell {
      padding-left: max(18px, env(safe-area-inset-left));
      padding-right: max(18px, env(safe-area-inset-right));
    }
  }
}

/* ---------- VERY SMALL (iPhone SE / mini, ≤375px) ---------- */
@media (max-width: 380px) {
  .topbar { padding: 6px 6px 6px 12px; }
  .brand span:not(.brand__mark) { display: none; } /* только логомарк */
  .hero__title { font-size: clamp(42px, 14vw, 64px); }
  .stat__num { font-size: 52px; }
  .bigspec__num { font-size: 96px; }
}

/* ---------- PRINT (быстрая чистка для PDF/печати) ---------- */
@media print {
  .topbar, .drawer, .sticky-cta, .loader, .cursor, .cursor-ring,
  .scroll-bar, .scroll-hint, .marquee { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* =========================================================
   MOBILE POLISH v.2 — после очистки декора
   ========================================================= */

/* Hero — больше воздуха после удаления meta и signature */
@media (max-width: 768px) {
  .hero, .hero--apple { padding: 96px 0 56px; min-height: auto; }
  .hero__bottom { margin-top: 40px; }
  /* word-cycler — фикс ширины по самому длинному слову,
     чтобы при переключении "масштабировать" не вылезало за экран */
  .word-cycler {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    overflow: hidden;
  }
  .word-cycler__inner { display: inline-block; }
  .hero__apple-title .word-cycler__word { display: block; }
}

@media (max-width: 480px) {
  .hero, .hero--apple { padding: 88px 0 48px; }
  /* Тайтл ужать, чтобы "масштабировать" точно уместилось */
  .hero__apple-title { font-size: clamp(42px, 11vw, 68px) !important; line-height: 0.92; }
  /* Drawer-пункты крупнее и с воздухом */
  .drawer a { font-size: 30px; padding: 6px 12px; line-height: 1.1; }
  .drawer nav { gap: 14px; }
  /* Топбар совсем компактный — только бренд и burger */
  .topbar { padding: 7px 7px 7px 14px; }
  .brand { font-size: 10.5px; }
}

/* Если когда-нибудь надумаете вернуть live-clock или CTA в шапке —
   эти правила сами подхватятся обратно. Сейчас в HTML их нет. */


/* =========================================================
   MOBILE BEAUTY v.3 — финальная полировка под мобилку
   Цель: смягчить геометрию, выровнять ритм, добавить «дыхание»
   ========================================================= */

/* ---------- Smooth scroll + лучшие нативные дефолты ---------- */
@media (max-width: 768px) {
  html { -webkit-tap-highlight-color: transparent; scroll-padding-top: 80px; }
  body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  ::selection { background: var(--accent); color: #fff; }
}

/* ---------- TOPBAR — стеклянная плавающая капсула ---------- */
@media (max-width: 880px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 10px 8px 16px;
    background: rgba(10,10,10,0.62);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
      0 4px 24px -8px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .burger {
    width: 34px; height: 34px;
    border-color: rgba(255,255,255,0.12);
  }
  .burger::before,
  .burger::after { width: 14px; height: 1.4px; }
}

/* ---------- DRAWER — мягкий блюр-фон, ритмичная типографика ---------- */
@media (max-width: 880px) {
  .drawer {
    background: rgba(5,5,5,0.78);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
  }
  .drawer nav {
    gap: 6px;
    padding: 20px 24px;
  }
  .drawer a {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 38px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: rgba(255,255,255,0.92);
    padding: 14px 0;
    position: relative;
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  }
  .drawer a:hover,
  .drawer a:active { color: var(--accent); padding-left: 14px; }
  .drawer a::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 0; height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
    transition: width 0.3s var(--ease);
  }
  .drawer a:hover::before,
  .drawer a:active::before { width: 8px; }
}

/* ---------- HERO — больше воздуха, мягкое свечение снизу ---------- */
@media (max-width: 768px) {
  .hero, .hero--apple {
    padding: 100px 0 64px;
    background:
      radial-gradient(120% 80% at 50% 100%, rgba(255,59,48,0.08), transparent 60%);
  }
  .hero__noise { opacity: 0.04; }
  .hero__inner { display: flex; flex-direction: column; gap: 0; }
  .hero__bottom {
    margin-top: 44px;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }
  .hero__lead {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
  }
  .hero__form {
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
  }
  .hero__form input {
    font-size: 16px;
    padding: 12px 0;
  }
  .hero__form button {
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 11px;
  }
  .hero__proof {
    justify-content: flex-start;
    color: rgba(255,255,255,0.55);
  }
}

@media (max-width: 480px) {
  .hero, .hero--apple { padding: 92px 0 56px; }
  .hero__bottom { margin-top: 36px; gap: 24px; }
}

/* ---------- MARQUEE — спокойнее и тоньше ---------- */
@media (max-width: 560px) {
  .marquee {
    padding: 14px 0;
    border-top-color: rgba(255,255,255,0.05);
    border-bottom-color: rgba(255,255,255,0.05);
    background: transparent;
  }
  .marquee__track span {
    font-size: 24px;
    gap: 28px;
    color: rgba(255,255,255,0.7);
  }
  .marquee__track { gap: 28px; animation-duration: 32s; }
}

/* ---------- STATS — отдельные мягкие карточки вместо grid-сетки ---------- */
@media (max-width: 560px) {
  .stats { padding: 56px 0; }
  .stats__grid {
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 22px 18px;
    min-height: 140px;
    gap: 12px;
  }
  .stat__corner { display: none; }
  .stat__num { font-size: 44px; letter-spacing: -0.02em; }
  .stat__label {
    font-size: 10px;
    letter-spacing: 0.14em;
    max-width: none;
    line-height: 1.4;
  }
}
@media (max-width: 380px) {
  .stats__grid { grid-template-columns: 1fr; }
}

/* ---------- MANIFESTO — больше воздуха между принципами ---------- */
@media (max-width: 768px) {
  .manifesto { padding: 88px 0 64px; }
  .manifesto__title {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.1;
    margin-bottom: 40px;
  }
  .manifesto__grid { margin-top: 40px; gap: 32px; }
  .manifesto-pt { padding-top: 20px; }
  .manifesto-pt h3 { font-size: 19px; }
  .manifesto-pt p { font-size: 14px; line-height: 1.6; }
}

/* ---------- HIGHLIGHTS — refine скругления и тени ---------- */
@media (max-width: 640px) {
  .highlights { padding: 64px 0; }
  .highlight {
    border-radius: 22px;
    border-color: rgba(0,0,0,0.05);
  }
  .highlight__media { aspect-ratio: 16 / 11; border-radius: 22px 22px 0 0; }
  .highlight__body { padding: 22px 22px 26px; }
  .highlight__h3 { font-size: 20px; line-height: 1.2; }
  .highlight__p { font-size: 14px; line-height: 1.55; }
}

/* ---------- SHOWCASE — компактнее ---------- */
@media (max-width: 560px) {
  .showcase { padding: 64px 0; }
  .showcase__copy h2 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
  }
  .showcase__copy p { font-size: 15px; }
  .showcase__visual {
    border-radius: 22px;
    padding: 26px 22px;
  }
  .showcase__readout { gap: 14px; }
  .showcase__readout .val { font-size: 28px; }
  .showcase__readout .lbl { font-size: 9px; letter-spacing: 0.14em; }
}

/* ---------- SERVICES — рамка тоньше, padding ровнее ---------- */
@media (max-width: 560px) {
  .services { padding: 64px 0; }
  .services__grid { gap: 10px; }
  .svc {
    border-radius: 20px;
    padding: 22px 20px;
    min-height: 160px;
    border-color: rgba(255,255,255,0.06);
  }
  .svc__title { font-size: 26px; }
  .svc__desc { font-size: 13px; line-height: 1.5; }
  .svc__icon { width: 22px; height: 22px; top: 20px; right: 20px; }
}

/* ---------- CASES — fade по краям + крупнее dots ---------- */
@media (max-width: 768px) {
  .cases { padding: 64px 0 48px; }
  .cases__scroller {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .cases__title { font-size: clamp(30px, 8vw, 48px); margin-bottom: 28px; }
  .case { border-radius: 22px; }
  .case__caption { padding: 24px 22px 0; font-size: 18px; line-height: 1.3; }
  .cases__pagination li button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 0;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .cases__pagination li button[aria-current="true"],
  .cases__pagination li.is-active button {
    background: var(--accent);
    transform: scale(1.4);
  }
  .cases__nav {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ---------- BIGSPEC — резкое уменьшение pin-зоны на мобиле ---------- */
@media (max-width: 768px) {
  .bigspec { min-height: 180vh; }
  .bigspec__inner { padding: 0 22px; }
  .bigspec__num {
    font-size: clamp(96px, 30vw, 160px);
    letter-spacing: -0.04em;
  }
  .bigspec__caption {
    font-size: 14px;
    line-height: 1.5;
    max-width: 88%;
    margin-top: 24px;
  }
  .bigspec__rail { bottom: 32px; gap: 8px; }
  .bigspec__dot { width: 7px; height: 7px; }
}

/* ---------- PROCESS — мягче карточки ---------- */
@media (max-width: 560px) {
  .process { padding: 64px 0; }
  .step {
    border-radius: 20px;
    padding: 22px 20px;
    border-color: rgba(255,255,255,0.06);
  }
  .step__num { font-size: 40px; letter-spacing: -0.02em; }
  .step h3 { font-size: 17px; margin-top: 10px; }
  .step p { font-size: 13px; }
}

/* ---------- QUOTE ---------- */
@media (max-width: 560px) {
  .quote-section { padding: 88px 0; }
  .quote-section blockquote {
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  .quote-section .quote-mark { opacity: 0.5; }
}

/* ---------- BIG CTA — ритмичнее ---------- */
@media (max-width: 560px) {
  .bigcta { padding: 72px 0 80px; }
  .bigcta h2 {
    font-size: clamp(44px, 13vw, 76px);
    line-height: 0.92;
    margin: 12px 0 18px;
  }
  .bigcta p { font-size: 14px; max-width: 90%; }
  .btn-big {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    border-radius: 999px;
  }
}

/* ---------- CONTACT — стеклянные блоки, ритм полей ---------- */
@media (max-width: 560px) {
  .contact { padding: 72px 0 88px; }
  .contact__grid { gap: 14px; }
  .contact__info,
  .contact__form {
    padding: 26px 22px;
    border-radius: 22px;
    border-color: rgba(255,255,255,0.06);
  }
  .contact__info { gap: 22px; }
  .contact__brand { font-size: 44px; }
  .contact__email { font-size: 14px; padding-bottom: 10px; }
  .contact__meta { font-size: 10px; letter-spacing: 0.14em; }
  .contact__form { gap: 18px; }
  .field span { font-size: 9px; letter-spacing: 0.18em; }
  .field input,
  .field textarea {
    font-size: 16px;
    padding: 12px 0;
    border-bottom-color: rgba(255,255,255,0.12);
  }
  .form-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
    margin-top: 4px;
    border-radius: 999px;
    align-self: stretch;
  }
  .form-hint { font-size: 10px; line-height: 1.5; }
}

/* ---------- FOOTER — лаконичнее ---------- */
@media (max-width: 640px) {
  .footer { padding: 56px 0 32px; }
  .footer__top { gap: 28px; margin-bottom: 36px; }
  .footer__brand {
    font-size: clamp(56px, 18vw, 96px);
    line-height: 0.9;
  }
  .footer__cols h4 { font-size: 10px; margin-bottom: 12px; }
  .footer__cols a { font-size: 14px; }
  .footer__cols ul { gap: 8px; }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 22px;
    border-top-color: rgba(255,255,255,0.06);
  }
}

/* ---------- STICKY CTA — на мобиле прячем (есть hero CTA и кнопка в формe) ---------- */
@media (max-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* ---------- SECTION-HEAD — заголовок чуть мягче ---------- */
@media (max-width: 768px) {
  .section-head { margin-bottom: 32px; gap: 14px; }
  .section-head h2 {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.0;
    letter-spacing: -0.015em;
  }
  .section-head__aside p { font-size: 14px; line-height: 1.55; }
  .eyebrow { font-size: 10px; letter-spacing: 0.18em; }
}

/* ---------- Ритм между секциями — общий ---------- */
@media (max-width: 480px) {
  section { scroll-margin-top: 80px; }
}

/* ---------- LOADER — компактнее на мобиле ---------- */
@media (max-width: 560px) {
  .loader__grid {
    grid-template-columns: repeat(5, 10px);
    gap: 7px;
  }
  .loader__grid span { width: 10px; height: 10px; }
  .loader__label { font-size: 10px; letter-spacing: 0.32em; bottom: 26px; }
}

/* ---------- Уменьшаем motion для тех, кто этого хочет ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   MOBILE BEAUTY v.4 — точечная переверстка showcase + story
   ========================================================= */

/* ---------- SHOWCASE: «Дизайн, который собирается в код» ---------- */
@media (max-width: 768px) {
  .showcase { padding: 72px 0 80px; }
  .showcase__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
  }
  .showcase__copy h2 {
    font-size: clamp(28px, 8.4vw, 40px);
    line-height: 1.1;
    margin: 14px 0 18px;
    letter-spacing: -0.025em;
  }
  .showcase__copy p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: none;
  }
  /* Буллеты — каждая на «плитке», лучше читаются */
  .showcase__bullets {
    margin: 0 0 24px;
    gap: 10px;
  }
  .showcase__bullets li {
    font-size: 14px;
    line-height: 1.45;
    align-items: flex-start;
    padding: 12px 14px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    gap: 10px;
  }
  .showcase__bullets li::before {
    margin-top: 8px;
    width: 6px; height: 6px;
  }
  .showcase__link {
    font-size: 14px;
    padding-bottom: 6px;
  }

  /* Визуал-карточка: более квадратная, легче в композиции */
  .showcase__visual {
    aspect-ratio: 4 / 3.2;
    border-radius: 24px;
    box-shadow: 0 24px 56px -22px rgba(0,0,0,0.4);
  }
  /* Орб-свечение чуть слабее */
  .showcase__visual::after {
    width: 60%;
    height: 60%;
    top: 20%; left: 20%;
    filter: blur(28px);
    opacity: 0.7;
  }
  /* Точки фон — реже */
  .showcase__visual::before {
    background-size: 22px 22px;
    opacity: 0.4;
  }
  .showcase__chip {
    top: 18px;
    left: 18px;
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: 0.2em;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* Readout — каждая метрика как мини-чип */
  .showcase__readout {
    bottom: 18px;
    left: 18px;
    right: 18px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .showcase__readout > div {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 6px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .showcase__readout .val {
    font-size: 26px;
    line-height: 1;
    color: #fff;
  }
  .showcase__readout .val .accent { color: var(--accent); }
  .showcase__readout .lbl {
    font-size: 9px;
    margin-top: 6px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
  }
}

@media (max-width: 480px) {
  .showcase__visual { aspect-ratio: 1 / 1; border-radius: 22px; }
  .showcase__readout .val { font-size: 22px; }
  .showcase__readout .lbl { font-size: 8px; }
}


/* ---------- STORY: «Сначала — понимание» ---------- */
/* На мобиле прячем сцену с цифрами (она для desktop scrollytelling).
   Главы оформляем самостоятельными карточками с большой
   полупрозрачной цифрой в углу. */
@media (max-width: 768px) {
  .story__inner {
    display: block;
    padding: 64px 18px 72px;
  }

  .story__stage,
  .story__progress { display: none !important; }

  .story__chapters {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .chapter {
    padding: 28px 24px 30px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    margin: 0;
    box-shadow: 0 14px 36px -18px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: auto;
  }

  /* Декоративный digit в углу каждой главы — переопределяем
     дефолтную точку timeline-а */
  .chapter::before {
    content: "01";
    position: absolute;
    top: 14px;
    right: 18px;
    left: auto;
    width: auto;
    height: auto;
    font-family: 'Doto', 'VT323', monospace;
    font-weight: 900;
    font-size: 92px;
    line-height: 1;
    color: rgba(255,59,48,0.10);
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
  }
  .chapter[data-chapter="0"]::before { content: "01"; }
  .chapter[data-chapter="1"]::before { content: "02"; }
  .chapter[data-chapter="2"]::before { content: "03"; }

  /* Eyebrow с номером главы — красный */
  .chapter__num {
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
  }

  /* Заголовок — освобождаем место справа под digit */
  .chapter h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    padding-right: 70px;
    position: relative;
    z-index: 1;
  }

  .chapter p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0,0,0,0.62);
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  /* Stats внизу главы — разделены чёрточкой сверху */
  .chapter__meta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.06);
    gap: 24px;
    position: relative;
    z-index: 1;
  }
  .chapter__meta div span:first-child {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .chapter__meta div span:last-child {
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-top: 6px;
  }
}

/* Совсем узкие — поджимаем digit и заголовок */
@media (max-width: 380px) {
  .chapter { padding: 24px 20px 26px; border-radius: 20px; }
  .chapter h2 { font-size: 22px; padding-right: 56px; }
  .chapter::before { font-size: 72px; top: 12px; right: 14px; }
  .chapter__meta { gap: 18px; }
  .chapter__meta div span:first-child { font-size: 24px; }
}


/* =========================================================
   PAGE: PROCESS — отдельная страница process.html
   Editorial-стиль: hero, карта 6 этапов, deep-блоки, FAQ, CTA
   ========================================================= */

.page-process { background: var(--bg); color: var(--ink); }

/* ---- активный пункт в шапке для текущей страницы ---- */
.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}
.nav a.is-active::before,
.nav a[aria-current="page"]::before { opacity: 1; }

.drawer a[aria-current="page"] { color: var(--accent); }


/* ====== PROC HERO ====== */
.proc-hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.proc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(255,59,48,0.10), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(60,30,120,0.08), transparent 60%);
  pointer-events: none;
}
.proc-hero__inner { position: relative; z-index: 1; }

.proc-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.proc-hero__back:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.05);
  padding-left: 10px;
}

.proc-hero__title {
  font-family: 'Inter', -apple-system, "SF Pro Display", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 24px 0 36px;
  max-width: 18ch;
}
.proc-hero__title .accent { color: var(--accent); }
.proc-hero__title .soft { color: var(--ink-3); font-weight: 400; }

.proc-hero__lead {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 0 56px;
}

.proc-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 880px;
}
.proc-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
}
.proc-hero__meta-val {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.proc-hero__meta-val em {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-style: normal;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.proc-hero__meta-val em:first-child + span,
.proc-hero__meta > div:nth-child(1) .proc-hero__meta-val em { color: var(--accent); }
.proc-hero__meta-lbl {
  font-size: 12px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
}


/* ====== OVERVIEW MAP ====== */
.proc-overview {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.proc-overview__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.proc-overview__head h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
  color: var(--ink);
}
.proc-overview__head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}

.proc-map {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.proc-map li { list-style: none; }
.proc-map__card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
  min-height: 200px;
}
.proc-map__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.proc-map__card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.proc-map__card:hover::before { opacity: 0.45; }
.proc-map__card > * { position: relative; z-index: 1; }

.proc-map__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.proc-map__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.proc-map__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
.proc-map__dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proc-map__dur::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ====== DEEP STEPS ====== */
.proc-steps {
  padding: 80px 0 100px;
}
.step-deep {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 100px;
}
.step-deep:first-child { border-top: 0; padding-top: 24px; }

.step-deep__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(120px, 14vw, 200px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  align-self: start;
  position: sticky;
  top: 100px;
}

.step-deep__content { min-width: 0; }

.step-deep__chapter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.step-deep__chapter::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.step-deep__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 22ch;
}

.step-deep__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 52px;
}

.step-deep__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.step-deep__block h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.step-deep__block p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.step-deep__block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-deep__block li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.step-deep__block li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.step-deep__foot {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.step-deep__foot em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
  margin-right: 4px;
}


/* ====== FAQ ====== */
.proc-faq {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.proc-faq__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.proc-faq__head h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
  transition: background 0.3s var(--ease);
}
.faq-item:hover { background: rgba(255,255,255,0.015); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  margin-top: 4px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent); }

.faq-item__body {
  padding: 0 0 28px;
  max-width: 760px;
}
.faq-item__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}


/* ====== BOTTOM CTA ====== */
.proc-cta {
  position: relative;
  padding: 140px 0 160px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}
.proc-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(700px 500px at 50% 50%, rgba(255,59,48,0.14), transparent 70%);
  pointer-events: none;
}
.proc-cta__inner { position: relative; z-index: 1; }
.proc-cta h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 18px auto 24px;
  max-width: 16ch;
}
.proc-cta h2 .accent { color: var(--accent); }
.proc-cta h2 .soft { color: var(--ink-3); font-weight: 400; }
.proc-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto 40px;
}
.proc-cta__actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.proc-cta__mail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.proc-cta__mail:hover { color: var(--ink); border-color: var(--ink); }


/* ====== MOBILE — page-process ====== */
@media (max-width: 980px) {
  .proc-map { grid-template-columns: repeat(2, 1fr); }
  .step-deep { grid-template-columns: 1fr; gap: 24px; }
  .step-deep__num {
    position: static;
    font-size: clamp(96px, 22vw, 160px);
  }
}

@media (max-width: 768px) {
  .proc-hero { padding: 120px 0 72px; }
  .proc-hero__back { margin-bottom: 28px; padding: 7px 12px; font-size: 10px; }
  .proc-hero__title { font-size: clamp(36px, 9vw, 56px); margin: 18px 0 24px; }
  .proc-hero__lead { font-size: 16px; margin-bottom: 36px; }
  .proc-hero__meta { grid-template-columns: 1fr; gap: 10px; max-width: none; }
  .proc-hero__meta > div { padding: 18px 20px; border-radius: 16px; }
  .proc-hero__meta-val em { font-size: 36px; }

  .proc-overview { padding: 72px 0; }
  .proc-overview__head { margin-bottom: 32px; }
  .proc-overview__head h2 { font-size: clamp(28px, 8vw, 40px); }
  .proc-overview__head p { font-size: 14.5px; }
  .proc-map { grid-template-columns: 1fr; gap: 10px; }
  .proc-map__card {
    grid-template-rows: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 18px;
    padding: 22px;
    min-height: auto;
    border-radius: 20px;
  }
  .proc-map__num {
    font-size: 44px;
    grid-row: span 3;
    grid-column: 2;
    align-self: center;
    color: rgba(255,59,48,0.85);
  }
  .proc-map__title { font-size: 16px; grid-column: 1; }
  .proc-map__desc { font-size: 13px; line-height: 1.45; grid-column: 1; }
  .proc-map__dur { font-size: 10px; grid-column: 1; }

  .proc-steps { padding: 56px 0 80px; }
  .step-deep {
    padding: 56px 0;
    gap: 18px;
  }
  .step-deep:first-child { padding-top: 8px; }
  .step-deep__num {
    font-size: 88px;
    line-height: 0.9;
    color: rgba(255,59,48,0.85);
  }
  .step-deep__chapter { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 14px; }
  .step-deep__title {
    font-size: clamp(26px, 7.4vw, 36px);
    line-height: 1.1;
    margin-bottom: 18px;
  }
  .step-deep__lede { font-size: 15.5px; line-height: 1.55; margin-bottom: 36px; }
  .step-deep__body { grid-template-columns: 1fr; gap: 32px; }
  .step-deep__block h3 { font-size: 10px; margin-bottom: 14px; padding-bottom: 12px; }
  .step-deep__block p,
  .step-deep__block li { font-size: 15px; line-height: 1.6; }
  .step-deep__foot {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-top: 36px;
    padding-top: 20px;
  }

  .proc-faq { padding: 64px 0 56px; }
  .proc-faq__head { margin-bottom: 32px; }
  .proc-faq__head h2 { font-size: clamp(28px, 8vw, 40px); }
  .faq-item summary {
    padding: 22px 0;
    font-size: 16px;
    gap: 18px;
    line-height: 1.35;
  }
  .faq-item summary::after { font-size: 22px; }
  .faq-item__body { padding-bottom: 22px; }
  .faq-item__body p { font-size: 14.5px; line-height: 1.6; }

  .proc-cta { padding: 88px 0 100px; }
  .proc-cta h2 { font-size: clamp(36px, 11vw, 56px); }
  .proc-cta p { font-size: 14.5px; padding: 0 8px; margin-bottom: 28px; }
  .proc-cta__actions { width: 100%; gap: 14px; }
  .proc-cta__actions .btn-big { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .step-deep__num { font-size: 72px; }
  .proc-map__card { padding: 18px; }
  .proc-map__num { font-size: 36px; }
  .step-deep__title { font-size: 22px; }
}


/* =========================================================
   PAGE PROCESS — MICRO-ANIMATIONS & POLISH
   ========================================================= */

/* ---- Bigspec на странице процесса: чуть другой акцентный градиент ---- */
.bigspec--process .bigspec__bg {
  background:
    radial-gradient(900px 600px at 50% 50%, rgba(255,59,48,0.20), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(80,40,180,0.12), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, rgba(0,150,180,0.08), transparent 60%);
}
.bigspec--process .bigspec__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
}
.bigspec--process { min-height: 320vh; }
@media (max-width: 768px) {
  .bigspec--process { min-height: 220vh; }
}

/* ---- Map-карточки: стрелка-индикатор появляется на hover ---- */
.proc-map__card {
  isolation: isolate;
}
.proc-map__card::after {
  content: "→";
  position: absolute;
  top: 26px; right: 28px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.proc-map__card:hover::after {
  opacity: 1;
  transform: translateX(0);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.proc-map__num {
  transition: transform 0.45s var(--ease-out), color 0.35s var(--ease);
}
.proc-map__card:hover .proc-map__num {
  transform: translateX(-4px);
}
@media (max-width: 768px) {
  .proc-map__card::after {
    top: 50%; right: 22px;
    transform: translateY(-50%);
    opacity: 0.6;
    width: 28px; height: 28px;
  }
  .proc-map__card:hover::after {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  /* На мобиле цифра справа уже у нас — убираем сдвиг */
  .proc-map__card:hover .proc-map__num { transform: none; }
}

/* ---- Step-deep number: лёгкая «жизнь» на hover карточки ---- */
.step-deep {
  transition: background 0.5s var(--ease);
}
.step-deep__num {
  transition:
    transform 0.55s var(--ease-out),
    color 0.4s var(--ease),
    text-shadow 0.5s var(--ease);
  text-shadow: 0 0 0 transparent;
}
.step-deep:hover .step-deep__num {
  transform: translateX(6px) scale(1.02);
  text-shadow:
    0 0 28px rgba(255,59,48,0.35),
    0 0 60px rgba(255,59,48,0.12);
}
.step-deep:hover .step-deep__chapter::before {
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ---- FAQ: плавное раскрытие + лёгкая подсветка ---- */
.faq-item {
  padding: 0 4px;
  border-radius: 0;
  transition: background 0.4s var(--ease);
}
.faq-item[open] {
  background: rgba(255,59,48,0.025);
}
.faq-item[open] summary {
  color: var(--ink);
}
.faq-item summary {
  border-radius: 0;
  position: relative;
  padding-right: 14px;
}
.faq-item summary::before {
  content: "";
  position: absolute;
  left: -16px; top: 50%;
  width: 0; height: 1.5px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.35s var(--ease);
  border-radius: 999px;
}
.faq-item:hover summary::before,
.faq-item[open] summary::before { width: 10px; }

/* Modern CSS — плавное раскрытие height для деталей.
   Chrome 131+ / Safari 18+ поддерживают; в старых браузерах
   будет мгновенное раскрытие, без поломок. */
@supports (interpolate-size: allow-keywords) {
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
    interpolate-size: allow-keywords;
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}
.faq-item__body {
  animation: faqFadeIn 0.5s var(--ease-out) both;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero meta cards: акцент на первой через тонкий cвет ---- */
.proc-hero__meta > div {
  transition:
    border-color 0.4s var(--ease),
    background 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.proc-hero__meta > div:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.proc-hero__meta > div:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255,59,48,0.07), rgba(255,59,48,0) 60%),
    rgba(255,255,255,0.025);
}
.proc-hero__meta > div:nth-child(1) .proc-hero__meta-val em { color: var(--accent); }

/* ---- Floating chapter indicator (видно только на десктопе) ---- */
.proc-steps {
  position: relative;
}
.proc-chapter-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.proc-chapter-indicator.is-visible { opacity: 1; }
.proc-chapter-indicator a {
  pointer-events: auto;
  width: 24px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}
.proc-chapter-indicator a::before {
  content: "";
  height: 2px;
  width: 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.proc-chapter-indicator a:hover::before { width: 22px; background: rgba(255,255,255,0.4); }
.proc-chapter-indicator a.is-active::before { width: 22px; background: var(--accent); }
.proc-chapter-indicator a[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.proc-chapter-indicator a:hover::after,
.proc-chapter-indicator a.is-active::after { opacity: 1; }

@media (max-width: 1080px) {
  .proc-chapter-indicator { display: none; }
}

/* ---- Subtle animation для секции overview при появлении ---- */
.proc-overview__head h2 .split-char,
.proc-faq__head h2 .split-char,
.proc-cta h2 .split-char,
.proc-hero__title .split-char {
  display: inline-block;
  transform: translateY(0.6em);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.5s var(--ease-out);
}
.proc-overview__head h2.is-revealed .split-char,
.proc-faq__head h2.is-revealed .split-char,
.proc-cta h2.is-revealed .split-char,
.proc-hero__title.is-revealed .split-char {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Subtle pulse для CTA-кнопки ---- */
.proc-cta .btn-big {
  position: relative;
  overflow: visible;
}
.proc-cta .btn-big::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  z-index: -1;
  animation: ctaPulse 2.6s var(--ease-out) infinite;
}
@keyframes ctaPulse {
  0%   { opacity: 0.3; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ---- Reveal анимация для proc-map с задержкой ---- */
.proc-map li {
  perspective: 1000px;
}
.proc-map li .proc-map__card.reveal {
  transform: translateY(28px) rotateX(8deg);
  transform-origin: center bottom;
}
.proc-map li .proc-map__card.reveal.is-visible {
  transform: translateY(0) rotateX(0);
}


/* =========================================================
   TIMELINE SCRUBBER — Gantt-style pinned scrollytelling
   Уникальный эффект для страницы процесса:
   - Sticky 100vh секция внутри runway 400vh
   - Горизонтальная шкала 0–16 недель с 6 сегментами
   - Красный playhead-индикатор скользит по шкале при скролле
   - Под шкалой большая карточка «сейчас» — синхронно меняется
   ========================================================= */

.timeline-scrub {
  position: relative;
  height: 400vh;                /* runway для скролла */
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* ВНИМАНИЕ: НЕ ставить overflow: clip / hidden / auto на этом контейнере —
     это ломает position: sticky у потомка .timeline-scrub__pin. */
}

.timeline-scrub__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.timeline-scrub__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 80% 15%, rgba(255,59,48,0.10), transparent 60%),
    radial-gradient(700px 500px at 15% 85%, rgba(70,40,200,0.08), transparent 60%);
  pointer-events: none;
}

.timeline-scrub__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- Head ---- */
.timeline-scrub__head {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: end;
  gap: 28px;
}
.timeline-scrub__head h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  color: var(--ink);
  max-width: 18ch;
}
.timeline-scrub__lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.timeline-scrub__lede em {
  font-style: normal;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.15em;
}

/* ---- Chart container ---- */
.timeline-scrub__chart {
  position: relative;
  padding: 36px 0 28px;
}

/* Ruler (week marks above the track).
   Все цифры центрируются ровно по своей % точке, тик — absolute через
   ::after внутри span'а, тоже центрирован. Цифры на краях (0 и 16+ нед)
   слегка вылезают за края шкалы — это нормально и читается как ruler. */
.timeline-scrub__ruler {
  position: relative;
  height: 26px;
  margin-bottom: 14px;
}
.timeline-scrub__ruler span {
  position: absolute;
  left: var(--w);
  top: 0;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.timeline-scrub__ruler span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: var(--line-2);
}

/* Track row with 6 segments */
.timeline-scrub__track {
  position: relative;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}

/* Each segment is positioned by --from / --to (percentages) */
.timeline-scrub__bar {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--line);
  transition:
    background 0.5s var(--ease),
    color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
  overflow: hidden;
  color: var(--ink-3);
}
.timeline-scrub__bar:last-child { border-right: 0; }
.timeline-scrub__bar-num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.timeline-scrub__bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.timeline-scrub__bar.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 8px 36px -8px rgba(255,59,48,0.45);
  z-index: 2;
}
.timeline-scrub__bar.is-active .timeline-scrub__bar-num {
  color: #fff;
  transform: translateX(2px);
}
.timeline-scrub__bar.is-active .timeline-scrub__bar-label { color: rgba(255,255,255,0.92); }

/* Grid lines under the track for visual rhythm */
.timeline-scrub__grid {
  position: absolute;
  inset: 36px 0 28px;
  top: 36px;
  pointer-events: none;
  z-index: 0;
}
.timeline-scrub__grid span {
  position: absolute;
  left: var(--w);
  top: 28px; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.05);
}

/* Playhead — vertical line that slides.
   Позиционируем через left: var(--p) (проценты считаются от ширины родителя),
   и центруем 2px линию через transform: translateX(-50%). */
.timeline-scrub__playhead {
  --p: 0%;
  position: absolute;
  top: 28px;
  bottom: 24px;
  left: var(--p);
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), 0 0 0 1px rgba(255,59,48,0.2);
  transform: translateX(-50%);
  transition: left 0.12s linear;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  will-change: left;
}
.timeline-scrub__playhead::before {
  content: "";
  position: absolute;
  left: -5px; top: -5px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-glow);
}
.timeline-scrub__playhead::after {
  content: "";
  position: absolute;
  left: -5px; bottom: -5px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--accent-glow);
}
/* Floating weeks-readout bubble above playhead */
.timeline-scrub__playhead-bubble {
  position: absolute;
  left: 50%;
  top: -38px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgba(255,59,48,0.45);
}
.timeline-scrub__playhead-bubble em {
  font-style: normal;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.timeline-scrub__playhead-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--accent);
}

/* ---- "Сейчас" card below the chart ---- */
.timeline-scrub__now {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.timeline-scrub__now-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}
.timeline-scrub__now-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.timeline-scrub__now-stack {
  position: relative;
  display: grid;
  min-height: 130px;
}
.timeline-scrub__now-card {
  grid-column: 1; grid-row: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
  pointer-events: none;
}
.timeline-scrub__now-card[data-on="true"] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.08s;
}
.timeline-scrub__now-num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.timeline-scrub__now-text h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
  color: var(--ink);
}
.timeline-scrub__now-text p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 620px;
}

/* ---- Mobile ---- */
@media (max-width: 980px) {
  .timeline-scrub { height: 320vh; }
  .timeline-scrub__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

@media (max-width: 768px) {
  .timeline-scrub { height: 280vh; }
  .timeline-scrub__inner { gap: 28px; }
  .timeline-scrub__head h2 { font-size: clamp(24px, 7.4vw, 34px); }
  .timeline-scrub__lede { font-size: 14px; }

  .timeline-scrub__chart { padding: 24px 0 16px; }
  .timeline-scrub__ruler { height: 18px; margin-bottom: 10px; }
  .timeline-scrub__ruler span { font-size: 9px; letter-spacing: 0.14em; }

  .timeline-scrub__track {
    height: 64px;
    border-radius: 14px;
  }
  .timeline-scrub__bar { padding: 0 8px; }
  .timeline-scrub__bar-num { font-size: 14px; }
  .timeline-scrub__bar-label {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  /* В очень узких сегментах прячем подпись, оставляем номер */
  .timeline-scrub__bar[data-step="0"] .timeline-scrub__bar-label,
  .timeline-scrub__bar[data-step="1"] .timeline-scrub__bar-label,
  .timeline-scrub__bar[data-step="4"] .timeline-scrub__bar-label {
    display: none;
  }

  .timeline-scrub__playhead { top: 22px; bottom: 16px; }
  .timeline-scrub__playhead-bubble {
    top: -32px;
    padding: 5px 9px;
    font-size: 9px;
  }
  .timeline-scrub__playhead-bubble em { font-size: 14px; }

  .timeline-scrub__now {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }
  .timeline-scrub__now-eyebrow { padding-top: 0; font-size: 10px; }
  .timeline-scrub__now-stack { min-height: 160px; }
  .timeline-scrub__now-card { grid-template-columns: auto 1fr; gap: 18px; }
  .timeline-scrub__now-num { font-size: 52px; }
  .timeline-scrub__now-text h3 { font-size: 19px; margin: 0 0 8px; }
  .timeline-scrub__now-text p { font-size: 13.5px; line-height: 1.55; }
}

@media (max-width: 480px) {
  .timeline-scrub { height: 240vh; }
  .timeline-scrub__track { height: 56px; border-radius: 12px; }
  .timeline-scrub__bar-num { font-size: 12px; }
  .timeline-scrub__bar { padding: 0 6px; }
  /* На самых узких — все подписи прячем, остаются только номера */
  .timeline-scrub__bar-label { display: none; }
}

/* Чтобы не дёргалось у тех, кто отключил движение */
@media (prefers-reduced-motion: reduce) {
  .timeline-scrub__playhead { transition: none; }
  .timeline-scrub__now-card {
    transition: opacity 0.2s linear;
    filter: none !important;
    transform: none !important;
  }
}


/* =========================================================
   PAGE: SERVICES — Horizontal carousel pinned scrollytelling
   Вертикальный скролл переводится в горизонтальный translate
   шести панелей. Каждая панель — самостоятельный «паспорт» услуги
   со своим тоном.
   ========================================================= */

.page-services { background: var(--bg); color: var(--ink); }

/* Hint под hero */
.svc-scroll-cue {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.svc-scroll-cue__line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ====== CAROUSEL CONTAINER ====== */
.svc-carousel {
  position: relative;
  height: 700vh;        /* runway: 6 panels * ~100vh + 100vh entry */
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.svc-carousel__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background that shifts color with active panel */
.svc-carousel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
  transition: background 0.8s var(--ease-out);
}

/* ====== HEAD: progress + dots ====== */
.svc-carousel__head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.svc-carousel__progress {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.svc-carousel__progress-curr {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  min-width: 50px;
  display: inline-block;
}
.svc-carousel__progress-sep {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-3);
}
.svc-carousel__progress > span:last-child {
  font-size: 22px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Dots — clickable panel jumpers */
.svc-carousel__dots {
  display: inline-flex;
  gap: 8px;
}
.svc-carousel__dots button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  padding: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.svc-carousel__dots button:hover { background: rgba(255,255,255,0.25); }
.svc-carousel__dots button.is-active {
  background: var(--accent);
  width: 44px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.svc-carousel__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ====== TRACK & PANELS ====== */
.svc-carousel__track {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  width: 600vw;                                /* 6 panels × 100vw */
  will-change: transform;
  transition: transform 0.18s linear;
}

.svc-panel {
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* per-tone background gradients */
.svc-panel__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.svc-panel[data-tone="red"]    .svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(255,59,48,0.18), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(255,90,80,0.10), transparent 60%);
}
.svc-panel[data-tone="amber"]  .svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(255,160,80,0.15), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(255,90,140,0.10), transparent 60%);
}
.svc-panel[data-tone="cyan"]   .svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(0,200,200,0.13), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(0,120,180,0.10), transparent 60%);
}
.svc-panel[data-tone="violet"] .svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(120,80,255,0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(80,40,180,0.12), transparent 60%);
}
.svc-panel[data-tone="green"]  .svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(80,200,120,0.14), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(200,200,80,0.08), transparent 60%);
}
.svc-panel[data-tone="magenta"].svc-panel__bg {
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(220,40,140,0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(180,20,60,0.12), transparent 60%);
}

.svc-panel__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* LEFT — name & lede */
.svc-panel__left {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.svc-panel.is-active .svc-panel__left {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.svc-panel__code {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 24px;
}

.svc-panel__num {
  display: block;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 32px rgba(255,59,48,0.25);
  margin-bottom: 14px;
}
/* per-tone num colors */
.svc-panel[data-tone="red"]    .svc-panel__num { color: #ff3b30; }
.svc-panel[data-tone="amber"]  .svc-panel__num { color: #ffa760; }
.svc-panel[data-tone="cyan"]   .svc-panel__num { color: #50e3c2; }
.svc-panel[data-tone="violet"] .svc-panel__num { color: #9a80ff; }
.svc-panel[data-tone="green"]  .svc-panel__num { color: #88d672; }
.svc-panel[data-tone="magenta"].svc-panel__num { color: #ff5290; }

.svc-panel__name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 14ch;
}
.svc-panel__name .dot { color: var(--accent); }
.svc-panel[data-tone="amber"]   .svc-panel__name .dot { color: #ffa760; }
.svc-panel[data-tone="cyan"]    .svc-panel__name .dot { color: #50e3c2; }
.svc-panel[data-tone="violet"]  .svc-panel__name .dot { color: #9a80ff; }
.svc-panel[data-tone="green"]   .svc-panel__name .dot { color: #88d672; }
.svc-panel[data-tone="magenta"] .svc-panel__name .dot { color: #ff5290; }

.svc-panel__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 460px;
}

.svc-panel__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.svc-panel__tags span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.svc-panel__tags em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* RIGHT — specs */
.svc-panel__right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.svc-panel.is-active .svc-panel__right {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.svc-spec h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.svc-spec ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-spec li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.svc-spec li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.svc-spec--row { display: flex; align-items: baseline; gap: 18px; }
.svc-spec--row h3 {
  border-bottom: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.svc-spec--row p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}


/* ====== PACKAGES SECTION ====== */
.svc-packs {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.svc-packs__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-pack {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.svc-pack:hover {
  border-color: var(--line-2);
  background: var(--surface);
  transform: translateY(-2px);
}
.svc-pack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.2;
  pointer-events: none;
}
.svc-pack > * { position: relative; z-index: 1; }

.svc-pack__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.svc-pack__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}
.svc-pack__head h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.svc-pack p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.svc-pack__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-pack__list li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.svc-pack__list li::before {
  content: "+";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
}
.svc-pack__price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.svc-pack--feature {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.svc-pack--feature::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1.6px);
}
.svc-pack--feature .svc-pack__num {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.svc-pack--feature .svc-pack__head { border-bottom-color: rgba(255,255,255,0.18); }
.svc-pack--feature .svc-pack__head h3,
.svc-pack--feature p,
.svc-pack--feature li { color: #fff; }
.svc-pack--feature .svc-pack__list li::before { color: rgba(255,255,255,0.85); }
.svc-pack--feature .svc-pack__price {
  border-top-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.svc-pack--feature:hover { background: #ff5247; border-color: #ff5247; }


/* ====== MOBILE — services carousel ====== */
@media (max-width: 980px) {
  .svc-panel__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 28px;
    align-content: center;
  }
  .svc-panel__num { font-size: clamp(96px, 22vw, 140px); }
  .svc-panel__name { font-size: clamp(34px, 8vw, 56px); }
  .svc-packs__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* На мобиле горизонтальный sticky-карусель — слишком тяжело для скролла.
   Переключаем на вертикальный стек: убираем pin, разворачиваем track в столбик. */
@media (max-width: 768px) {
  .svc-carousel {
    height: auto;
    border-top: 0;
  }
  .svc-carousel__pin {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .svc-carousel__head {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 18px;
  }
  .svc-carousel__progress-curr { font-size: 32px; min-width: 38px; }
  .svc-carousel__progress > span:last-child { font-size: 16px; }
  .svc-carousel__progress-sep { font-size: 16px; }
  .svc-carousel__dots button { width: 22px; }
  .svc-carousel__dots button.is-active { width: 36px; }
  .svc-carousel__hint { display: none; }

  .svc-carousel__track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
    transition: none !important;
  }
  .svc-panel {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 60vh;
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
  }
  .svc-panel:last-child { border-bottom: 0; }
  /* На мобиле все панели «активны» (видны), убираем opacity-эффект */
  .svc-panel__left,
  .svc-panel__right { opacity: 1; transform: none; }

  .svc-panel__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 18px;
    align-items: start;
  }
  .svc-panel__code { font-size: 10px; padding: 5px 10px; margin-bottom: 18px; }
  .svc-panel__num { font-size: clamp(80px, 26vw, 120px); margin-bottom: 8px; }
  .svc-panel__name { font-size: clamp(30px, 9vw, 42px); margin-bottom: 16px; }
  .svc-panel__lede { font-size: 15px; margin-bottom: 22px; }
  .svc-panel__tags span { padding: 7px 11px; font-size: 11px; }
  .svc-panel__right { gap: 24px; }
  .svc-spec li { font-size: 14px; }
  .svc-spec--row { flex-direction: column; gap: 8px; }

  .svc-packs { padding: 72px 0; }
  .svc-pack { padding: 24px; }

  .svc-scroll-cue { font-size: 10px; letter-spacing: 0.16em; gap: 10px; }
  .svc-scroll-cue__line { width: 32px; }
}

@media (max-width: 480px) {
  .svc-panel { padding: 44px 0; min-height: auto; }
  .svc-panel__num { font-size: 72px; }
}

/* Reduce motion fallback */
@media (prefers-reduced-motion: reduce) {
  .svc-carousel__track { transition: none; }
  .svc-panel__left,
  .svc-panel__right {
    transition: opacity 0.2s linear;
    transform: none !important;
  }
}

/* Skew у трека — без CSS-transition, всё через JS rAF.
   will-change для плавности на 60+ fps. */
.svc-carousel__track { will-change: transform; }


/* =========================================================
   PAGE: WORKS — Gallery Fly-Through
   Виртуальная стена с 6 работами. Sticky-секция, внутри которой
   камера летает по работам через transform: translate + scale.
   ========================================================= */

.page-works { background: var(--bg); color: var(--ink); }


/* ====== GALLERY CONTAINER ====== */
.works-gallery {
  position: relative;
  height: 700vh;        /* runway — длинный, на 7 переходов */
  background: #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.works-gallery__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Подложка-небо — затемнённый фон с лёгким градиентом */
.works-gallery__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1400px 900px at 30% 20%, rgba(255,59,48,0.06), transparent 60%),
    radial-gradient(1100px 700px at 75% 80%, rgba(60,30,120,0.05), transparent 60%),
    #050505;
  pointer-events: none;
}
.works-gallery__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.6;
  pointer-events: none;
}


/* ====== HEAD: counter + title + hint ====== */
.works-gallery__head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  background: rgba(5,5,5,0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.works-gallery__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.works-gallery__counter-curr {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  min-width: 50px;
  display: inline-block;
}
.works-gallery__counter-sep,
.works-gallery__counter-total {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.works-gallery__title-wrap {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.works-gallery__pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.works-gallery__pre::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}
.works-gallery__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.works-gallery__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.works-gallery__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  flex-shrink: 0;
}


/* ====== WORLD & BOARD (the gallery wall) ====== */
.works-gallery__world {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.works-gallery__board {
  position: absolute;
  top: 0; left: 0;
  width: 6600px;
  height: 4500px;
  transform-origin: 0 0;
  will-change: transform;
  /* Сетка-фон — как стена с пунктиром */
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 200px 200px;
}


/* ====== GALLERY PIECE (each artwork) ====== */
.gallery-piece {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  transform-origin: center;
}
.gallery-piece__link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0e0e10;
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gallery-piece.is-active .gallery-piece__link {
  box-shadow:
    0 40px 120px -20px rgba(255,59,48,0.35),
    0 0 0 1px rgba(255,59,48,0.4);
}
.gallery-piece__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.95);
  transition: filter 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.gallery-piece.is-active .gallery-piece__media {
  filter: saturate(1.15) contrast(1.04);
}
/* Лёгкий vignette */
.gallery-piece__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.gallery-piece__plate {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 26px;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}
.gallery-piece__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.gallery-piece__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
}
.gallery-piece__yr {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}


/* ====== DETAIL PANEL (left side overlay) ====== */
.works-gallery__detail {
  position: absolute;
  z-index: 8;
  bottom: 32px;
  left: 32px;
  width: min(360px, 32vw);
  pointer-events: none;
}
.works-gallery__detail-card {
  background: rgba(8,8,9,0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.works-gallery__detail-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.works-gallery__detail-label::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.works-gallery__detail-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.works-gallery__detail-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
}
.works-gallery__detail-meta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-2);
}
.works-gallery__detail-meta em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  flex-shrink: 0;
  width: 50px;
}
.works-gallery__detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  align-self: flex-start;
  transition: background 0.3s var(--ease), gap 0.3s var(--ease);
}
.works-gallery__detail-link:hover {
  background: #ff5247;
  gap: 12px;
}


/* ====== INDEX LIST ====== */
.works-index {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.works-index__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.works-index__list li {
  border-bottom: 1px solid var(--line);
}
.works-index__list a {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.works-index__list a:hover {
  padding-left: 14px;
  color: var(--ink);
}
.works-index__list a:hover .works-index__name { color: var(--accent); }
.works-index__num {
  font-family: 'Doto', 'VT323', monospace;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-3);
}
.works-index__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
.works-index__role {
  font-size: 14px;
  color: var(--ink-3);
}
.works-index__yr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
}


/* ====== MOBILE: упрощаем — стек карточек, без камеры ====== */
@media (max-width: 980px) {
  .works-gallery__detail { width: min(280px, 50vw); bottom: 20px; left: 20px; }
  .works-gallery__head { padding: 16px 20px; gap: 14px; }
  .works-gallery__title-wrap { display: none; }
  .works-gallery__hint { display: none; }
}

@media (max-width: 768px) {
  /* На мобиле полностью отключаем fly-through: показываем грид-обзор */
  .works-gallery { height: auto; }
  .works-gallery__pin {
    position: relative;
    height: auto;
    padding: 88px 18px 60px;
    overflow: visible;
  }
  .works-gallery__sky { position: absolute; }
  .works-gallery__head {
    position: relative;
    padding: 0 0 28px;
    background: none;
    backdrop-filter: none;
    border-bottom: 0;
    border-radius: 0;
  }
  .works-gallery__counter-curr { font-size: 28px; min-width: 36px; }
  .works-gallery__counter-sep,
  .works-gallery__counter-total { font-size: 16px; }
  .works-gallery__world { position: relative; height: auto; }
  .works-gallery__board {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    background: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-piece {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none !important;
  }
  .gallery-piece__link {
    border-radius: 18px;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
  }
  .gallery-piece.is-active .gallery-piece__link {
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
  }
  .gallery-piece__num { font-size: 32px; }
  .gallery-piece__name { font-size: 18px; }
  .gallery-piece__plate { padding: 16px 18px; gap: 12px; }
  .works-gallery__detail { display: none; }

  .works-index { padding: 64px 0; }
  .works-index__list a {
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    padding: 18px 0;
  }
  .works-index__role { grid-column: 2; font-size: 12px; }
  .works-index__name { font-size: 17px; }
  .works-index__num { font-size: 22px; }
  .works-index__yr { font-size: 10px; }
}


/* Reduce motion fallback */
@media (prefers-reduced-motion: reduce) {
  .works-gallery__board { will-change: auto; }
  .gallery-piece__link,
  .gallery-piece__media { transition: none; }
}


/* =========================================================
   PAGE: CONTACT — Conversational Wizard + Live Presence
   ========================================================= */

.page-contact { background: var(--bg); color: var(--ink); }

/* ====== STAGE ====== */
.contact-stage {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 100px;
  overflow: hidden;
}
.contact-stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 700px at 80% 25%, rgba(255,59,48,0.10), transparent 60%),
    radial-gradient(800px 600px at 15% 85%, rgba(60,30,120,0.08), transparent 60%);
  pointer-events: none;
}
.contact-stage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1.6px);
  background-size: 28px 28px;
  opacity: 0.5;
}
.contact-stage__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}


/* ====== WIZARD ====== */
.wizard {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wizard__head { display: flex; flex-direction: column; gap: 16px; }
.wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  align-self: flex-start;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.wizard__back:hover { color: var(--ink); border-color: var(--line-2); padding-left: 10px; }

.wizard__title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.8vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 10px 0 0;
  color: var(--ink);
}
.wizard__title .soft { color: var(--ink-3); font-weight: 400; }
.wizard__title .accent { color: var(--accent); }


/* Progress dots */
.wizard__progress {
  display: inline-flex;
  gap: 8px;
}
.wizard__progress span {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}
.wizard__progress span.is-done { background: var(--accent); }
.wizard__progress span.is-active {
  background: var(--accent);
  width: 56px;
  box-shadow: 0 0 12px var(--accent-glow);
}


/* Form & steps */
.wizard__form {
  position: relative;
  min-height: 380px;
}
.wizard__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}
.wizard__step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.08s;
}
.wizard__step.is-prev {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.wizard__num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  align-self: flex-start;
}

.wizard__field { display: flex; flex-direction: column; gap: 14px; }

.wizard__q {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: block;
}
.wizard__q--centered { text-align: center; margin-bottom: 8px; }

.wizard__field input,
.wizard__field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-2);
  padding: 14px 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}
.wizard__field input::placeholder,
.wizard__field textarea::placeholder { color: var(--ink-4); }
.wizard__field input:focus,
.wizard__field textarea:focus { border-color: var(--ink); }
.wizard__field input.is-invalid,
.wizard__field textarea.is-invalid {
  border-color: var(--accent);
  animation: wizShake 0.35s var(--ease);
}
@keyframes wizShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}


/* Chips */
.wizard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.wizard__chips.is-invalid { animation: wizShake 0.35s var(--ease); }
.wizard__chips button {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.wizard__chips button:hover {
  border-color: var(--ink);
  background: rgba(255,255,255,0.04);
}
.wizard__chips button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


/* Summary */
.wizard__summary {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wizard__sum-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
}
.wizard__sum-row em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.wizard__sum-row span {
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}


/* Navigation buttons */
.wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}
.wizard__cta,
.wizard__send {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.wizard__cta:hover,
.wizard__send:hover { background: var(--accent); color: #fff; }
.wizard__send {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
}
.wizard__send:hover { background: #ff5247; }
.wizard__send-plane svg { display: block; }

.wizard__back-btn {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.wizard__back-btn:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

.wizard__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}


/* ====== PAPER PLANE ANIMATION ====== */
.wizard__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 12px 24px rgba(255,59,48,0.4));
}
.wizard__plane.is-flying {
  animation: planeFly 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes planeFly {
  0% {
    transform: translate(-50%, 30%) rotate(-15deg) scale(0.6);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -10%) rotate(-10deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(420%, -180%) rotate(35deg) scale(0.6);
    opacity: 0;
  }
}
.wizard__plane-trail {
  position: absolute;
  top: 50%; right: 100%;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: translateY(-50%);
  opacity: 0;
}
.wizard__plane.is-flying .wizard__plane-trail {
  animation: trailFly 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes trailFly {
  0% { width: 0; opacity: 0.7; }
  60% { width: 140px; opacity: 0.5; }
  100% { width: 80px; opacity: 0; }
}

.wizard.is-sending .wizard__form { opacity: 0.2; pointer-events: none; transition: opacity 0.3s; }


/* ====== DONE STATE ====== */
.wizard__step--done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out) 0.2s;
}
.wizard__step--done.is-active {
  opacity: 1;
  pointer-events: auto;
}
.wizard__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 40px 0;
}
.wizard__done-icon { color: var(--accent); }
.wizard__done-icon .wizard__check {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}
.wizard__done h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  color: var(--ink);
}
.wizard__done h2 .accent { color: var(--accent); }
.wizard__done p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 440px;
  margin: 0;
}
.wizard__done-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.wizard__done-link:hover { color: var(--ink); gap: 14px; }


/* ====== PRESENCE CARD ====== */
.presence { position: sticky; top: 100px; }
.presence__card {
  background: rgba(10,10,11,0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.presence__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
}
.presence__card > * { position: relative; z-index: 1; }

.presence__head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.presence__pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  position: relative;
  box-shadow: 0 0 12px rgba(46,204,113,0.6);
}
.presence__pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(46,204,113,0.6);
  animation: presencePulse 1.8s ease-out infinite;
}
.presence__pulse.is-off {
  background: var(--ink-4);
  box-shadow: none;
}
.presence__pulse.is-off::after { display: none; }
@keyframes presencePulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}
.presence__status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.presence__clock {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.presence__time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.presence__zone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.presence__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.presence__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.presence__row em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.presence__row span { color: var(--ink); }
.presence__row strong { color: var(--accent); font-weight: 500; }

.presence__rule { display: none; }

.presence__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.presence__contact {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.presence__contact:last-child { border-bottom: 0; }
.presence__contact:hover { padding-left: 8px; }
.presence__contact:hover span { color: var(--accent); }
.presence__contact em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.presence__contact span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.presence__signature {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: -8px;
}


/* ====== ALTERNATIVE CONTACTS GRID ====== */
.contact-also {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.contact-also__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contact-also__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-also__card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.contact-also__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,59,48,0.10);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 20px;
}
.contact-also__lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}
.contact-also__val {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-also__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}


/* ====== MOBILE ====== */
@media (max-width: 980px) {
  .contact-stage__grid { grid-template-columns: 1fr; gap: 32px; }
  .presence { position: static; }
  .contact-also__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-stage { padding: 100px 0 64px; }
  .wizard { gap: 24px; min-height: auto; }
  .wizard__title { font-size: clamp(28px, 9vw, 40px); }
  .wizard__form { min-height: 340px; }
  .wizard__q { font-size: clamp(22px, 6.4vw, 30px); }
  .wizard__field input,
  .wizard__field textarea { font-size: 18px; }
  .wizard__chips button { padding: 10px 16px; font-size: 12px; }
  .wizard__send { padding: 14px 24px; }
  .wizard__cta { padding: 12px 20px; }
  .wizard__nav { flex-wrap: wrap; gap: 10px; }
  .presence__card { padding: 22px; border-radius: 20px; }
  .presence__time { font-size: 36px; }
  .presence__row { grid-template-columns: 90px 1fr; }
  .presence__contact { grid-template-columns: 64px 1fr; }
  .contact-also { padding: 64px 0; }
  .contact-also__card { padding: 22px; border-radius: 18px; }
  .contact-also__val { font-size: 16px; }
}


@media (prefers-reduced-motion: reduce) {
  .wizard__step { transition: opacity 0.2s linear; transform: none !important; }
  .wizard__plane, .wizard__plane-trail { animation: none !important; opacity: 0 !important; }
  .presence__pulse::after { animation: none !important; }
}


/* =========================================================
   MOBILE COMPREHENSIVE FINAL PASS v.5
   Универсальный финальный слой — побеждает по каскаду, чистит баги
   на всех страницах. Делится на 4 секции:
     A. Глобальные мобильные основы
     B. Topbar/drawer/loader
     C. Index — главная (хирургические правки)
     D. Process — таймскраб
     E. Services — карусель
     F. Works — галерея
     G. Contact — wizard + presence
   ========================================================= */

/* ========== A. ГЛОБАЛЬНЫЕ ОСНОВЫ ========== */

/* Заранее отключаем горизонтальный скролл из-за overflow-сюрпризов */
@media (max-width: 768px) {
  html, body { max-width: 100vw; }

  /* iOS: предотвращаем зум при тапе на input — все формы 16px+ */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Touch targets — минимум 44px (Apple HIG / WCAG) */
  button:not(.burger):not([data-chip]):not(.cases__nav):not(.cases__pagination button),
  .btn-cta,
  .btn-big,
  .wizard__cta,
  .wizard__send,
  .wizard__back-btn,
  .form-submit,
  .presence__contact,
  .contact-also__card,
  .proc-cta__mail,
  .wizard__done-link {
    min-height: 44px;
  }

  /* Якорные ссылки в шапке: при тапе якорь не уезжает под фикс-топбар */
  html { scroll-padding-top: 76px; }

  /* Запрет «двойного тапа для зума» — мы и так адаптивны */
  body { touch-action: manipulation; }

  /* Удобный select на полную ширину */
  ::selection { background: var(--accent); color: #fff; }
}


/* ========== B. TOPBAR / DRAWER / LOADER ========== */

@media (max-width: 768px) {
  /* Topbar плавающая капсула — компакт, никогда не перекрывает контент */
  .topbar {
    top: 10px;
    width: calc(100% - 16px);
    padding: 6px 8px 6px 14px;
    border-radius: 999px;
    background: rgba(10,10,10,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .brand { font-size: 10.5px; letter-spacing: 0.14em; }
  .brand__mark { width: 18px; height: 18px; }
  .nav { display: none; }
  .burger { width: 34px; height: 34px; min-height: 34px; }

  /* Если topbar скрывается на скролл-down — отдаём ему «уходить» полностью */
  .topbar.is-hidden { transform: translate(-50%, -150%); }
}

@media (max-width: 480px) {
  .topbar {
    top: 8px;
    width: calc(100% - 12px);
    padding: 5px 7px 5px 12px;
  }
  .burger { width: 32px; height: 32px; min-height: 32px; }
  .burger::before,
  .burger::after { width: 13px; height: 1.3px; }
}

/* Drawer на маленьких экранах — крупнее, удобнее тапать */
@media (max-width: 768px) {
  .drawer { background: rgba(5,5,5,0.95); }
  .drawer nav { gap: 10px; padding: 0 24px; }
  .drawer a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: -0.02em;
    padding: 12px 0;
    min-height: 44px;
  }
}

/* Лоадер совсем мелкий на крошечных экранах */
@media (max-width: 480px) {
  .loader__grid {
    grid-template-columns: repeat(5, 9px);
    gap: 6px;
  }
  .loader__grid span { width: 9px; height: 9px; }
  .loader__label { font-size: 10px; letter-spacing: 0.3em; bottom: 22px; }
}


/* ========== C. INDEX — главная страница ========== */

@media (max-width: 768px) {
  /* Hero — компактнее и без word-cycler-обрезки */
  .hero, .hero--apple {
    padding: 100px 0 56px;
    min-height: auto;
  }
  .hero__bottom { gap: 24px; margin-top: 40px; }
  .hero__lead { font-size: 15.5px; line-height: 1.55; }

  /* Cycler — самое длинное слово «масштабировать» должно влезть */
  .word-cycler {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: top;
  }
  .word-cycler__word { display: block; }
}

@media (max-width: 480px) {
  .hero, .hero--apple { padding: 92px 0 48px; }
  .hero__apple-title,
  .hero__title {
    font-size: clamp(38px, 12vw, 64px) !important;
    line-height: 0.94 !important;
  }
}

@media (max-width: 380px) {
  .hero__apple-title,
  .hero__title {
    font-size: clamp(34px, 13vw, 52px) !important;
  }
}


/* ========== D. PROCESS — Timeline Scrubber + Step-Deep ========== */

@media (max-width: 768px) {
  /* Pin на мобиле должен ВЛЕЗАТЬ в 100dvh, иначе обрезается контент */
  .timeline-scrub { height: 280vh; }
  .timeline-scrub__pin {
    top: 60px;            /* чуть ниже шапки */
    height: calc(100vh - 60px);
  }
  .timeline-scrub__inner { gap: 22px; padding-top: 4px; }
  .timeline-scrub__head h2 { font-size: clamp(22px, 7vw, 32px); }
  .timeline-scrub__lede { font-size: 13px; line-height: 1.55; }
  .timeline-scrub__chart { padding: 20px 0 16px; }

  /* Шкала: подписи 4/8/12 могут залипать — поджимаем */
  .timeline-scrub__ruler span { font-size: 9px; letter-spacing: 0.12em; }
  .timeline-scrub__track { height: 56px; border-radius: 12px; }
  .timeline-scrub__bar { padding: 0 6px; }
  .timeline-scrub__bar-num { font-size: 12px; }
  .timeline-scrub__bar-label { display: none; }

  .timeline-scrub__playhead-bubble {
    top: -28px;
    padding: 4px 8px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .timeline-scrub__playhead-bubble em { font-size: 13px; }

  /* "Сейчас" карточка — стек с воздухом */
  .timeline-scrub__now {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
  }
  .timeline-scrub__now-stack { min-height: 150px; }
  .timeline-scrub__now-num { font-size: 48px; }
  .timeline-scrub__now-text h3 { font-size: 18px; }
  .timeline-scrub__now-text p { font-size: 13px; line-height: 1.55; }
}

@media (max-width: 480px) {
  .timeline-scrub { height: 240vh; }
  .timeline-scrub__inner { gap: 18px; }
  .timeline-scrub__track { height: 48px; border-radius: 10px; }
  .timeline-scrub__bar-num { font-size: 11px; }
  .timeline-scrub__now-num { font-size: 42px; }

  /* Step-deep — компактнее, чтобы число не вылазило */
  .step-deep { padding: 44px 0; }
  .step-deep__num { font-size: 76px; line-height: 0.88; }
  .step-deep__title { font-size: clamp(22px, 7.4vw, 30px); margin-bottom: 16px; }
  .step-deep__lede { font-size: 14.5px; margin-bottom: 28px; }
  .step-deep__body { gap: 24px; }

  /* Карта процесса — компактные карточки в 1 колонку */
  .proc-map__card { padding: 18px; border-radius: 18px; }
  .proc-map__num { font-size: 38px; }
  .proc-map__title { font-size: 15px; }
  .proc-map__desc { font-size: 12.5px; }

  /* FAQ — лучше тапается */
  .faq-item summary {
    padding: 18px 0;
    font-size: 15.5px;
    gap: 14px;
  }
  .faq-item summary::after { font-size: 20px; margin-top: 2px; }
  .faq-item__body p { font-size: 14px; line-height: 1.55; }
}


/* ========== E. SERVICES — Horizontal Carousel ========== */

@media (max-width: 768px) {
  /* Карусель уже превращена в вертикальный стек, но финально подбьём sticky-шапку */
  .svc-carousel__head {
    top: 56px;            /* под мобильной шапкой */
    padding: 10px 14px;
    border-radius: 0;
    box-shadow: 0 4px 16px -8px rgba(0,0,0,0.5);
  }
  .svc-carousel__progress-curr { font-size: 26px; min-width: 32px; }
  .svc-carousel__progress > span:last-child,
  .svc-carousel__progress-sep { font-size: 14px; }
  .svc-carousel__dots { gap: 5px; }
  .svc-carousel__dots button { width: 20px; height: 3px; }
  .svc-carousel__dots button.is-active { width: 32px; }

  .svc-panel { padding: 44px 0; min-height: auto; border-bottom: 1px solid var(--line); }
  .svc-panel__num { font-size: clamp(72px, 22vw, 110px); margin-bottom: 6px; }
  .svc-panel__name { font-size: clamp(28px, 9vw, 40px); margin-bottom: 14px; line-height: 0.94; }
  .svc-panel__code { font-size: 9.5px; padding: 5px 10px; margin-bottom: 14px; }
  .svc-panel__lede { font-size: 14.5px; margin-bottom: 20px; }
  .svc-panel__tags span { padding: 6px 11px; font-size: 11px; }

  .svc-spec h3 { font-size: 10px; margin-bottom: 12px; padding-bottom: 10px; }
  .svc-spec li { font-size: 13.5px; padding-left: 16px; line-height: 1.5; }
  .svc-spec li::before { width: 4px; height: 4px; top: 8px; }
  .svc-spec--row { gap: 6px; }
  .svc-spec--row p { font-size: 12px; }
}

@media (max-width: 380px) {
  .svc-panel { padding: 36px 0; }
  .svc-panel__num { font-size: 64px; }
  .svc-panel__name { font-size: 24px; }
  .svc-panel__inner { padding: 0 14px; gap: 24px; }
}


/* ========== F. WORKS — Gallery ========== */

@media (max-width: 768px) {
  /* На мобиле fly-through отключён, секция — обычный стек грид-карточек */
  .works-gallery { padding-top: 70px; }
  .works-gallery__pin { padding: 0 14px 56px; }
  .works-gallery__head {
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(10,10,11,0.85);
  }
  .works-gallery__counter-curr { font-size: 24px; min-width: 30px; }
  .works-gallery__counter-sep,
  .works-gallery__counter-total { font-size: 14px; }

  /* Карточки работ — компактнее, читаемее */
  .works-gallery__board { gap: 10px; }
  .gallery-piece { aspect-ratio: 16 / 10; }
  .gallery-piece__link { border-radius: 16px; }
  .gallery-piece__plate { padding: 12px 14px; gap: 10px; }
  .gallery-piece__num { font-size: 26px; }
  .gallery-piece__name { font-size: 15.5px; }
  .gallery-piece__yr { font-size: 9px; }

  /* Index-список — большие чёткие пункты */
  .works-index { padding: 56px 0; }
  .works-index__list a {
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    padding: 16px 0;
    align-items: center;
  }
  .works-index__name { font-size: 16px; }
  .works-index__role { grid-column: 2; font-size: 12px; color: var(--ink-3); }
  .works-index__num { font-size: 20px; }
  .works-index__yr { font-size: 10px; }
}


/* ========== G. CONTACT — Wizard + Presence ========== */

@media (max-width: 768px) {
  .contact-stage { padding: 90px 0 56px; }
  .contact-stage__grid { gap: 24px; }

  .wizard { gap: 22px; min-height: auto; }
  .wizard__head { gap: 12px; }
  .wizard__back { padding: 7px 12px; font-size: 10px; }
  .wizard__title { font-size: clamp(26px, 9vw, 36px); margin-top: 6px; }
  .wizard__progress span { width: 28px; height: 3.5px; }
  .wizard__progress span.is-active { width: 44px; }

  /* Form может расти — даём ему высоту по контенту, а не absolute layers */
  .wizard__form { min-height: 360px; position: relative; }
  .wizard__step { gap: 18px; }
  .wizard__num { font-size: 10px; padding: 5px 10px; }
  .wizard__q { font-size: clamp(20px, 6.4vw, 26px); }

  .wizard__field input,
  .wizard__field textarea {
    font-size: 16px !important;       /* без зума iOS, плюс крупнее по ощущению */
    padding: 12px 0;
  }
  .wizard__chips button { padding: 9px 14px; font-size: 12px; min-height: 38px; }
  .wizard__nav { gap: 8px; flex-wrap: wrap; }
  .wizard__cta { padding: 12px 20px; font-size: 11px; min-height: 44px; }
  .wizard__send { padding: 13px 22px; font-size: 11px; min-height: 44px; }
  .wizard__back-btn { padding: 7px 10px; font-size: 10.5px; min-height: 38px; }
  .wizard__hint { display: none; }

  /* Сводка — компактнее */
  .wizard__summary { padding: 16px 18px; border-radius: 14px; gap: 10px; }
  .wizard__sum-row { grid-template-columns: 64px 1fr; gap: 10px; }
  .wizard__sum-row em { font-size: 9px; letter-spacing: 0.18em; }
  .wizard__sum-row span { font-size: 13.5px; }

  /* Самолёт — траектория короче (экран узкий, нельзя «улетать» за край сильно) */
  .wizard__plane.is-flying {
    animation: planeFlyMob 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes planeFlyMob {
    0%   { transform: translate(-50%, 30%) rotate(-12deg) scale(0.55); opacity: 0; }
    20%  { transform: translate(-50%, -10%) rotate(-8deg) scale(0.95); opacity: 1; }
    100% { transform: translate(180%, -150%) rotate(35deg) scale(0.5); opacity: 0; }
  }

  /* Done-state */
  .wizard__done { gap: 14px; padding: 24px 0; }
  .wizard__done-icon svg { width: 56px; height: 56px; }
  .wizard__done h2 { font-size: clamp(24px, 7vw, 32px); }
  .wizard__done p { font-size: 14px; }

  /* Presence card — компактная, не залипает */
  .presence { position: static; }
  .presence__card { padding: 20px; border-radius: 18px; gap: 16px; }
  .presence__time { font-size: 36px; }
  .presence__zone { font-size: 9.5px; letter-spacing: 0.22em; }
  .presence__status { font-size: 10px; letter-spacing: 0.18em; }
  .presence__rows { gap: 10px; padding: 12px 0; }
  .presence__row {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    font-size: 11.5px;
  }
  .presence__row em { font-size: 9px; letter-spacing: 0.18em; }
  .presence__contact { grid-template-columns: 64px 1fr; gap: 12px; padding: 6px 0; }
  .presence__contact em { font-size: 9px; }
  .presence__contact span { font-size: 13px; }
  .presence__signature { display: none; }

  /* Альтернативные контакты — стек */
  .contact-also { padding: 56px 0; }
  .contact-also__grid { gap: 10px; margin-top: 32px; }
  .contact-also__card { padding: 18px; border-radius: 16px; gap: 8px; }
  .contact-also__icon { width: 38px; height: 38px; font-size: 17px; }
  .contact-also__lbl { font-size: 9.5px; letter-spacing: 0.18em; }
  .contact-also__val { font-size: 16px; }
  .contact-also__hint { font-size: 10px; padding-top: 12px; }
}

@media (max-width: 480px) {
  .contact-stage { padding: 80px 0 48px; }
  .wizard__title { font-size: clamp(22px, 9vw, 30px); }
  .wizard__field input,
  .wizard__field textarea { font-size: 16px !important; padding: 10px 0; }
  .wizard__chips button { padding: 8px 12px; font-size: 11.5px; }
  .wizard__summary { padding: 14px 16px; }
  .wizard__sum-row { grid-template-columns: 56px 1fr; }

  .presence__card { padding: 18px; }
  .presence__time { font-size: 32px; }
  .presence__row { grid-template-columns: 88px 1fr; }
}

/* iPhone SE (375px) и совсем узкие */
@media (max-width: 380px) {
  .wizard__title { font-size: 22px; }
  .wizard__q { font-size: 18px; }
  .wizard__field input,
  .wizard__field textarea { font-size: 16px !important; }
  .wizard__sum-row { grid-template-columns: 50px 1fr; }
  .presence__row { grid-template-columns: 80px 1fr; font-size: 11px; }
  .presence__contact { grid-template-columns: 56px 1fr; }
}


/* ========== SAFE-AREA для iPhone с челкой / Dynamic Island ========== */

@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .topbar {
      top: max(10px, calc(env(safe-area-inset-top) + 6px));
    }
    .drawer nav {
      padding-top: max(20px, env(safe-area-inset-top));
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .sticky-cta {
      bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
    }
    .footer {
      padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
    }
    /* Доп. падинг внутри shell на крошечных экранах с safe-area */
    .shell {
      padding-left: max(18px, env(safe-area-inset-left));
      padding-right: max(18px, env(safe-area-inset-right));
    }
  }
}


/* ========== ОБЩАЯ ЗАЩИТА ОТ HORIZONTAL OVERFLOW ========== */
/* Если какой-то блок «уехал» вправо из-за float / transform — обрежем мягко */
@media (max-width: 768px) {
  main { overflow-x: clip; }
  section { max-width: 100vw; }
}


/* =========================================================
   ADDITIONS v.6 — топбар + футер + стрелки
   ========================================================= */

/* ========== TOPBAR с 5 пунктами (была 4) — чуть компактнее ========== */
@media (min-width: 881px) {
  /* На десктопе влезает легко, можно не трогать */
}
@media (max-width: 1180px) and (min-width: 881px) {
  /* Промежуточные ширины — слегка поджимаем nav */
  .nav { gap: 4px; }
  .nav a { padding: 8px 11px; font-size: 11.5px; letter-spacing: 0.14em; }
  .btn-cta { padding: 9px 16px; font-size: 11.5px; }
}


/* ========== ПОДВАЛ: «Micro.tize» — однострочное, не вылазит ========== */
.footer__brand {
  white-space: nowrap;
  /* Защита от случайного выхода за края */
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .footer__brand {
    font-size: clamp(40px, 12vw, 64px) !important;
    line-height: 1;
    letter-spacing: -0.03em;
  }
}
@media (max-width: 480px) {
  .footer__brand {
    font-size: clamp(34px, 10vw, 52px) !important;
  }
}
@media (max-width: 380px) {
  .footer__brand {
    font-size: clamp(28px, 9vw, 44px) !important;
  }
}


/* ========== СТРЕЛКИ prev/next — общие стили для services и works ========== */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.4);
}
.carousel-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 36px -8px rgba(255,59,48,0.55);
}
.carousel-arrow--prev { left: 28px; }
.carousel-arrow--next { right: 28px; }
.carousel-arrow--prev:hover svg { transform: translateX(-3px); }
.carousel-arrow--next:hover svg { transform: translateX(3px); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-arrow:disabled,
.carousel-arrow[aria-disabled="true"] {
  opacity: 0.28;
  pointer-events: none;
  cursor: not-allowed;
}

/* Adapt to medium screens */
@media (max-width: 1100px) {
  .carousel-arrow { width: 48px; height: 48px; }
  .carousel-arrow--prev { left: 18px; }
  .carousel-arrow--next { right: 18px; }
}

/* Hide on mobile — там и так вертикальный стек */
@media (max-width: 768px) {
  .carousel-arrow { display: none; }
}
