/* Sergey Bezhaev — Path
   Apple precision × Lego modular × orbit deck × themes */

:root,
html[data-theme="void"] {
  --bg: #0a0a0b;
  --bg-elev: #121214;
  --bg-panel: #1a1a1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #f5f5f7;
  --accent-soft: rgba(245, 245, 247, 0.12);
  --blue: #0a84ff;
  --green: #30d158;
  --yellow: #ffd60a;
  --red: #ff453a;
  --bar-h: 44px;
  --deck-h: 108px;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --wash: none;
  --wash-opacity: 0;
}

html[data-theme="violet"] {
  --bg: #100816;
  --bg-elev: #1a0f24;
  --bg-panel: #241532;
  --text: #f3e8ff;
  --muted: #c4b5d4;
  --dim: #8b7a9e;
  --accent: #e9d5ff;
  --accent-soft: rgba(168, 85, 247, 0.18);
  --blue: #c084fc;
  --line: rgba(233, 213, 255, 0.1);
  --line-strong: rgba(233, 213, 255, 0.18);
  --wash: url("../assets/themes/purple.jpg");
  --wash-opacity: 0.22;
}

html[data-theme="ussr"] {
  --bg: #1a1410;
  --bg-elev: #2a2118;
  --bg-panel: #3a2e22;
  --text: #f5ebe0;
  --muted: #c4b5a5;
  --dim: #8a7a6a;
  --accent: #e8d5b5;
  --accent-soft: rgba(200, 160, 100, 0.15);
  --blue: #c9a227;
  --line: rgba(245, 235, 224, 0.1);
  --wash: url("../assets/themes/retro-ussr.jpg");
  --wash-opacity: 0.28;
}

html[data-theme="usa"] {
  --bg: #141210;
  --bg-elev: #221e1a;
  --bg-panel: #2e2822;
  --text: #faf6f1;
  --muted: #c9bfb3;
  --dim: #8f8578;
  --blue: #d97706;
  --wash: url("../assets/themes/retro-usa.jpg");
  --wash-opacity: 0.26;
}

html[data-theme="japan"] {
  --bg: #121110;
  --bg-elev: #1c1a18;
  --bg-panel: #262320;
  --text: #f7f3ee;
  --muted: #b8b0a6;
  --dim: #7d756c;
  --blue: #b45309;
  --wash: url("../assets/themes/retro-japan.jpg");
  --wash-opacity: 0.24;
}

html[data-theme="paris"] {
  --bg: #15121a;
  --bg-elev: #1f1a26;
  --bg-panel: #2a2433;
  --text: #f8f4ff;
  --muted: #c5b8d4;
  --dim: #8a7c99;
  --blue: #d4a574;
  --wash: url("../assets/themes/retro-paris.jpg");
  --wash-opacity: 0.25;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.6s var(--ease), color 0.4s var(--ease);
}

button,
a {
  font: inherit;
}

.theme-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--wash);
  background-size: cover;
  background-position: center;
  opacity: var(--wash-opacity);
  transition: opacity 0.7s var(--ease), background-image 0.5s;
  mix-blend-mode: soft-light;
}

/* ——— Top bar ——— */
.mac-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.mac-bar__left,
.mac-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mac-bar__left {
  gap: 10px;
}

/* Brand mark — left corner of chrome */
.mac-bar__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mac-bar__brand:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}
.mac-bar__brand:active {
  transform: scale(0.96);
}
.mac-bar__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
}

.mac-bar__right {
  justify-content: flex-end;
}

.mac-bar__center {
  text-align: center;
}

.acc-nav {
  display: flex;
  gap: 2px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.acc {
  position: relative;
}

.acc__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.acc__btn:hover,
.acc__btn[aria-expanded="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.acc__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  max-width: min(380px, 92vw);
  max-height: min(70vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border-radius: 14px;
  background: rgba(28, 28, 32, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.acc__panel::-webkit-scrollbar { width: 8px; }
.acc__panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.acc__panel[hidden] {
  display: none !important;
}

.acc__panel button,
.acc__panel a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.acc__panel button:hover,
.acc__panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.acc__hint {
  margin: 0 0 6px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--dim);
}

.acc__panel--themes {
  min-width: 280px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  cursor: pointer;
}

.theme-card.is-active {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}

.theme-card small {
  color: var(--dim);
  font-size: 10px;
}

.theme-card--wide {
  margin-top: 8px;
  width: 100%;
}

.theme-swatch {
  display: block;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 4px;
  background-size: cover;
  background-position: center;
}

.theme-swatch--void {
  background: linear-gradient(135deg, #0a0a0b, #1a1a1e 50%, #0a84ff33);
}
.theme-swatch--violet {
  background-image: url("../assets/themes/purple.jpg");
}
.theme-swatch--ussr {
  background-image: url("../assets/themes/retro-ussr.jpg");
}
.theme-swatch--usa {
  background-image: url("../assets/themes/retro-usa.jpg");
}
.theme-swatch--japan {
  background-image: url("../assets/themes/retro-japan.jpg");
}
.theme-swatch--paris {
  background-image: url("../assets/themes/retro-paris.jpg");
}

.mac-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.mac-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.mac-clock {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}

/* ——— Track ——— */
.track {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  bottom: var(--deck-h);
  z-index: 1;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  /* smooth only for button/API jumps — wheel free-scrolls then JS snaps to full bay */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  /* pan-x alone blocked vertical touch scroll inside bays */
  touch-action: pan-x pan-y;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.track::-webkit-scrollbar {
  height: 8px;
}
.track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.bay {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  /* each bay is one full viewport page — never half-show a seam as rest state */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(900px 500px at 90% 80%, rgba(10, 132, 255, 0.06), transparent 55%),
    transparent;
}
.bay::-webkit-scrollbar { width: 9px; }
.bay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.bay__inner {
  height: auto;
  min-height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bay__inner--hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: 100%;
}

.bay__inner--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.bay__inner--case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bay__inner--stack {
  justify-content: flex-start;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 20px;
  overflow: auto;
}

.bay__inner--legal {
  justify-content: flex-start;
  padding-top: 24px;
  padding-bottom: 24px;
  max-width: 960px;
  overflow: auto;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

h1, h2 {
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
}
.h1-line {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.55rem, 4.2vw, 3.1rem);
  letter-spacing: -0.03em;
}
h1 .h1-sub {
  display: block;
}
.h1-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { margin: 0 0 6px; font-size: 15px; font-weight: 550; }

.lead, .body {
  margin: 0 0 16px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--muted);
}
.body--narrow { max-width: 40ch; }
.body--punch { color: var(--text); font-weight: 400; }
.lead em {
  font-style: normal;
  color: var(--text);
  font-weight: 450;
}

.hint-scroll {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.trend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
}
.trend {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s;
}
.btn--primary { background: var(--text); color: #0a0a0b; }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.hero-visual figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.stud-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-depth { position: relative; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.chip-row li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mod {
  position: relative;
  padding: 16px 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  min-height: 110px;
}
.mod p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  font-weight: 300;
}
.mod__stud {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #8e8e93 55%, #3a3a3c 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.about-stack { display: grid; gap: 12px; }
.light-card {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 72px;
  transition: filter 0.8s var(--ease), background 0.8s var(--ease);
}
.light-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.light-card p { margin: 0; font-size: 15px; color: var(--text); }
.light-card[data-light="cool"] {
  background: linear-gradient(145deg, #1c1c1f, #0e1116);
}
.light-card[data-light="warm"] {
  background: linear-gradient(145deg, #1f1a16, #12100e);
  filter: sepia(0.2) saturate(1.1);
}
.light-card[data-light="edge"] {
  background: linear-gradient(145deg, #141416, #0a0a0b);
  filter: contrast(1.12);
}
.light-card.is-pulse {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.about-note { margin: 4px 0 0; font-size: 12px; color: var(--dim); }

.soft-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.soft-card h3 { margin-bottom: 8px; }
.soft-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* cases */
.case-url { margin: -8px 0 14px; font-size: 13px; }
.case-url a { color: var(--blue); text-decoration: none; }
.case-url a:hover { text-decoration: underline; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.tags li {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.case-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.case-frame__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.case-frame__chrome em {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-frame__chrome .case-lock {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #30d158;
  opacity: 0.85;
}
.case-frame__chrome .case-dots {
  display: inline-flex;
  gap: 4px;
}
.case-frame__chrome .case-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}
.case-frame__chrome .case-dots i:nth-child(1) { background: #ff5f57; }
.case-frame__chrome .case-dots i:nth-child(2) { background: #febc2e; }
.case-frame__chrome .case-dots i:nth-child(3) { background: #28c840; }
.case-frame__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: #0e0e10;
  overflow: hidden;
}
.case-frame__shot img,
.case-frame__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.case-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
  background: #fff;
  /* block pointer navigation outside via sandbox + no srcdoc address bar */
}
.case-frame.is-blocked .case-frame__iframe {
  display: none;
}
.case-frame.is-blocked .case-frame__fallback {
  position: relative;
  z-index: 2;
}
.case-frame__body {
  min-height: 220px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.case-frame__body--elena {
  background: radial-gradient(circle at 30% 40%, #ff6bcb55, transparent 50%),
    radial-gradient(circle at 70% 60%, #5b8cff55, transparent 45%),
    #121018;
}
.fallback-only { display: none; }
.case-frame__shot.is-fallback .fallback-only { display: block; }
.case-frame__shot.is-fallback img { display: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.orb--a {
  width: 120px; height: 120px; left: 18%; top: 28%;
  background: radial-gradient(circle at 30% 30%, #ff9ed8, #ff2d92 70%);
  opacity: 0.85;
}
.orb--b {
  width: 90px; height: 90px; right: 18%; bottom: 24%;
  background: radial-gradient(circle at 30% 30%, #9ecbff, #3b6cff 70%);
  opacity: 0.8;
}
.frame-note {
  position: absolute;
  left: 20px; bottom: 16px;
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-visual-col {
  display: grid;
  gap: 14px;
}

/* soft grid */
.soft-grid,
.cases-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.rail-card {
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  min-height: 120px;
}
.rail-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 300;
}
.rail-card a { color: var(--blue); }

.split-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.bb-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 215, 0, 0.08), transparent 50%),
    var(--bg-elev);
}
.bb-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.bb-tag {
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim) !important;
}

/* partners marquees */
.partners-block { margin-top: 8px; }
.marquee-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 220px;
  margin-top: 12px;
}
.marquee-col {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  animation: marqueeUp 18s linear infinite;
}
.marquee-track--rev { animation-name: marqueeDown; animation-duration: 22s; }
.marquee-col--2 .marquee-track { animation-duration: 20s; }
.marquee-col--3 .marquee-track { animation-duration: 16s; }
.marquee-col--4 .marquee-track { animation-duration: 24s; }

@keyframes marqueeUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes marqueeDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.logo-slot {
  flex: 0 0 auto;
  height: 64px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--dim);
  background: rgba(255,255,255,0.02);
}

/* legal */
.legal-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 20px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.legal-card {
  padding: 16px 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(18, 18, 20, 0.85);
}
.legal-card h3 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-card p,
.legal-card li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.legal-card ul {
  margin: 0;
  padding-left: 16px;
}
.legal-card--hot {
  grid-column: 1 / -1;
  border-color: rgba(255, 69, 58, 0.35);
  background: linear-gradient(180deg, rgba(255, 69, 58, 0.08), rgba(18,18,20,0.9));
}
.legal-card--warn {
  border-color: rgba(255, 214, 10, 0.3);
}
.law-list { display: grid; gap: 8px; }
.law-list li { list-style: disc; }
.legal-foot {
  margin: 18px 0 0;
  font-size: 11px;
  color: var(--dim);
  max-width: 70ch;
  line-height: 1.45;
}

/* contact end */
.bay__inner--end {
  align-items: flex-start;
  max-width: 720px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}
.end-sign {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.end-sign--dim {
  margin-top: 6px;
  font-size: 11px;
  color: var(--dim);
}

/* ——— Deck / orbit scrub ——— */
.deck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: var(--deck-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 8px 18px 10px;
  background: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
}

.deck__left,
.deck__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck__right { justify-content: flex-end; }

.deck-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}
.deck-btn:hover { background: rgba(255,255,255,0.08); }
.deck-btn--text {
  width: auto;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.deck__center { min-width: 0; }

.scrub--orbit {
  position: relative;
  padding: 0 4px 22px;
}

.scrub__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  overflow: visible;
}

.scrub__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(253,184,19,0.5), rgba(67,97,238,0.45));
  pointer-events: none;
}

.scrub__sphere {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7fffd4;
  box-shadow: inset -3px -3px 5px rgba(0, 70, 65, 0.28), inset 2px 2px 4px rgba(255, 255, 255, 0.65);
  transform: translate(-50%, -50%);
  animation: none;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.scrub__planets {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 6px;
  padding: 0 2px;
  pointer-events: none;
}

.scrub__planets button {
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.25s, transform 0.25s;
}
.scrub__planets button img {
  width: 100%;
  height: 100%;
  display: block;
}
.scrub__planets button.is-on {
  opacity: 1;
  transform: scale(1.15);
}
.scrub__planets button.is-active {
  opacity: 1;
  transform: scale(1.28);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}

.scrub__names {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 0;
  pointer-events: none;
}
.scrub__names span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  line-height: 1.1;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9.5%;
}
.scrub__names span.is-active {
  color: var(--text);
  font-weight: 500;
}

.scrub__meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.deck-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.7);
}
.deck-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  font-weight: 500;
}

.site-credit {
  position: fixed;
  right: 10px;
  bottom: calc(var(--deck-h) + 6px);
  z-index: 90;
  margin: 0;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  pointer-events: none;
  text-align: right;
  max-width: 42ch;
}

/* chaos easter egg */
body.is-chaos .bay {
  animation: chaosHue 0.8s linear infinite;
}
@keyframes chaosHue {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

/* responsive */
@media (max-width: 960px) {
  .bay__inner--hero,
  .bay__inner--split,
  .bay__inner--case,
  .split-block,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .module-grid,
  .soft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mac-title { display: none; }
  .acc__btn { padding: 6px 7px; font-size: 11px; }
  .hero-visual:not(.hero-visual--mesh) { display: none; }
  .hero-visual--mesh {
    width: min(88vw, 360px);
    margin: 8px auto 0;
  }
  .hero-visual--mesh .hero-mesh__img {
    max-height: min(52vh, 420px);
  }
  .marquee-4 { height: 160px; }
  .scrub__names { display: none; }
  .site-credit { display: none; }
  .deck { gap: 8px; padding: 8px 10px; }
  --deck-h: 100px;
}

@media (max-width: 640px) {
  .module-grid,
  .soft-grid,
  .marquee-4 {
    grid-template-columns: 1fr 1fr;
  }
  .bay__inner { padding: 28px 18px 20px; }
  .acc-nav { max-width: 58vw; overflow-x: auto; }
}

/* Mobile overflow safety */
@media (max-width: 720px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .bay__inner,
  .bay__copy,
  .mac-bar,
  .deck {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .bay__copy h1,
  .bay__copy h2,
  .bay__copy p,
  .bay__copy li,
  .module-card,
  .soft-card {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
  .acc-nav {
    max-width: min(62vw, 100%);
  }
  .module-grid,
  .soft-grid {
    grid-template-columns: 1fr;
  }
  .deck__center {
    min-width: 0;
    flex: 1;
  }
  .scrub {
    max-width: 100%;
  }
}

.legal-card--edu {
  border: 1px solid rgba(48, 209, 88, 0.25);
  background: rgba(48, 209, 88, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
}
.legal-doc-frame {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  min-height: 360px;
  height: min(52vh, 520px);
}
.legal-doc-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Two separate windows: Web browser + iPhone, side by side */
.case-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  gap: 20px;
  align-items: end;
  width: 100%;
  min-width: 0;
}
.case-window--web {
  border-radius: var(--radius, 14px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev, #141416);
  box-shadow: var(--shadow), 0 16px 48px rgba(0, 0, 0, 0.35);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.case-window__body--web {
  position: relative;
  background: #0c0c0e;
  padding: 0;
}
.case-desktop__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0c;
  min-height: 220px;
}
.case-frame__iframe--desk {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: top left;
  max-width: none;
  background: #fff;
}
.case-window--web .case-frame__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.case-window--web.is-blocked .case-frame__fallback {
  opacity: 1;
  z-index: 2;
}
.case-window--web.is-blocked .case-desktop__viewport iframe {
  opacity: 0;
}

/* iPhone — separate window (device chrome only, no browser top bar) */
.case-window--phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.case-phone-shell {
  width: 188px;
  height: 386px;
  border-radius: 36px;
  background: linear-gradient(160deg, #3a3a40 0%, #1a1a1e 40%, #0e0e10 100%);
  border: 2px solid #4a4a52;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px #0a0a0c,
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  padding: 12px 10px 16px;
  box-sizing: border-box;
}
.case-phone__speaker {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 5px;
  border-radius: 4px;
  background: #050505;
  z-index: 4;
}
.case-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #050505;
  z-index: 3;
}
.case-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.case-phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 4;
}
.case-frame__iframe--mob {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: top left;
  max-width: none;
  background: #fff;
}
.case-frame__fallback--mob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
.case-window--phone.is-blocked .case-frame__fallback--mob {
  opacity: 1;
  z-index: 2;
}
.case-window--phone.is-blocked .case-phone__screen iframe {
  opacity: 0;
}
.case-phone__caption {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Case meta + pair layout: text left, dual windows right (or stack) */
.bay__inner--case {
  align-items: start;
}
.bay__inner--case .case-pair {
  grid-column: auto;
}

@media (max-width: 980px) {
  .case-pair {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .case-window--web {
    width: 100%;
  }
}

/* Stars */
.path-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Social eggs IIchnica */
.soc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.soc-egg {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 40%),
    linear-gradient(145deg, #333, #111);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.soc-egg::after {
  content: "🍳";
  position: absolute;
  font-size: 28px;
  opacity: 0.35;
  transform: rotate(-18deg);
  right: 8px;
  bottom: 6px;
  filter: contrast(1.2);
}
.soc-egg span { position: relative; z-index: 1; text-shadow: 0 1px 4px #000; }
.soc-egg:hover { transform: translateY(-3px) scale(1.03); }
.soc-egg--dzen { background: linear-gradient(145deg, #111, #333); }
.soc-egg--vc { background: linear-gradient(145deg, #e8f0ff, #3b6ef5); color: #0a0a0b; }
.soc-egg--vc span { text-shadow: none; }
.soc-egg--vk { background: linear-gradient(145deg, #4a76a8, #1c2f4a); }
.soc-egg--pikabu { background: linear-gradient(145deg, #8bc34a, #2e4a12); }
.soc-egg--tiktok { background: linear-gradient(145deg, #111, #25f4ee 40%, #fe2c55); }
.soc-egg--yt { background: linear-gradient(145deg, #ff3b3b, #5a0000); }

.yt-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.clip-h { margin: 28px 0 12px; font-size: 1.05rem; }
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.yt-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.yt-card__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ff2d2d;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.yt-stage {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0c;
}
.yt-stage__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.yt-stage__chrome button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.yt-stage__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.yt-stage__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stages-arch { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.stages-project {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
}
.stages-project h3 { margin: 0 0 10px; font-size: 1rem; }
.stages-list { margin: 0; padding-left: 1.2em; color: var(--muted); line-height: 1.55; }
.stages-list strong { color: var(--text); }

.doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.doc-note { font-size: 12px; color: var(--dim); max-width: 42ch; }

/* Hero mesh portrait — no card/frame, full face on main bg */
.hero-visual--mesh {
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 0;
  /* kill .hero-visual card chrome */
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: transparent !important;
}
.hero-visual--mesh .hero-mesh {
  position: relative;
  width: min(100%, 520px);
  max-width: 100%;
  /* no fixed max-height that clips chin/hair */
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
}
.hero-visual--mesh .hero-mesh__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: min(78vh, 680px);
  object-fit: contain;
  object-position: center top;
  display: block;
  aspect-ratio: auto !important;
  filter: drop-shadow(0 0 32px rgba(255, 40, 60, 0.4));
  pointer-events: none;
  user-select: none;
  /* override generic .hero-visual img cover crop */
  saturate: 1;
}
.hero-visual--mesh img {
  aspect-ratio: auto !important;
  object-fit: contain !important;
  height: auto !important;
  filter: drop-shadow(0 0 32px rgba(255, 40, 60, 0.4)) !important;
}
.hero-mesh__fx {
  position: absolute;
  inset: -8% -20% -12%;
  width: 140%;
  height: 120%;
  left: -20%;
  top: -8%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.hero-visual--mesh figcaption {
  position: static;
  margin-top: 14px;
  text-align: center;
  left: auto;
  bottom: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim, #888);
  background: none;
  text-shadow: none;
}

/* Origin: keep face unclipped, but still allow wheel→path (see path.js) */
#bay-0 {
  overflow-x: hidden;
  overflow-y: auto;
}
#bay-0 .bay__inner--hero {
  overflow: visible;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 56px;
}
.track {
  overscroll-behavior-x: contain;
}

.profile-visual {
  margin: 0 0 16px;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev, #121214);
}
.profile-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.profile-visual figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--dim, #888);
  border-top: 1px solid var(--line);
}

/* Partners bay — give marquees room */
#bay-8 .marquee-4 {
  height: min(58vh, 480px);
  margin-top: 8px;
}
#bay-8 .bay__inner--stack {
  max-width: 1100px;
}

/* Hero brand logo — 2.5× smaller than prior 160px mark */
.hero-brand {
  margin: 0 0 12px;
}
.hero-brand__logo {
  width: min(64px, 14.4vw); /* 160 / 2.5 */
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
}

/* Seam red glyph burst — full height band between bays */
.seam-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.seam-fx__ch {
  position: fixed;
  color: #ff3b4a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 20px);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(255, 40, 60, 0.95),
    0 0 22px rgba(255, 20, 50, 0.55);
  animation: seamFly 1s cubic-bezier(0.15, 0.75, 0.25, 1) forwards;
  opacity: 0.98;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.seam-fx__ch--lg {
  font-size: clamp(20px, 3.2vw, 34px);
  color: #ff5a66;
  text-shadow:
    0 0 14px rgba(255, 50, 70, 1),
    0 0 36px rgba(255, 20, 50, 0.7);
}
.seam-fx__spine {
  position: fixed;
  top: var(--bar-h, 48px);
  bottom: var(--deck-h, 100px);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 50, 70, 0.15) 8%,
    rgba(255, 40, 60, 0.95) 50%,
    rgba(255, 50, 70, 0.15) 92%,
    transparent 100%
  );
  box-shadow:
    0 0 18px rgba(255, 40, 60, 0.85),
    0 0 48px rgba(255, 20, 50, 0.45);
  animation: seamSpine 0.65s ease-out forwards;
  pointer-events: none;
}
@keyframes seamFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.55) rotate(0deg);
    filter: blur(2px);
  }
  12% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.35) rotate(var(--rot, 0deg));
    filter: blur(5px);
  }
}
@keyframes seamSpine {
  0% { opacity: 0; transform: scaleY(0.2); }
  30% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1.05); }
}

/* data-vscroll helpers for long lists */
.bay__inner--legal,
.bay__inner--stack .stages-arch,
.yt-grid {
  /* mark for optional vertical if needed later */
}

/* i18n + gestures */
.path-lang-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.path-lang-label { display: block; font-size: 11px; color: #a1a1a6; margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
.path-lang-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #f5f5f7;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}
.path-lang-btn, .path-gesture-block button {
  margin-top: 10px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(48,209,88,.35);
  background: rgba(48,209,88,.1);
  color: #30d158;
  padding: 10px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gesture-hud {
  position: fixed;
  right: 12px;
  top: 72px;
  z-index: 90;
  width: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a0a0b;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.gesture-hud.is-on { opacity: 1; pointer-events: auto; transform: none; }
.gesture-hud video, .gesture-hud canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #000;
}
.gesture-hud canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.gesture-hud { position: fixed; }
.gesture-hud__meta {
  position: relative;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #30d158;
  padding: 6px 8px;
  background: rgba(0,0,0,.75);
  font-family: ui-monospace, Menlo, monospace;
}

.gesture-hud {
  cursor: default;
  z-index: 185 !important;
}
.gesture-hud__drag {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 5;
  font-size: 12px;
  color: #30d158;
  cursor: grab;
  user-select: none;
  letter-spacing: -2px;
}

/* Quiet background and clear navigation: no animated background layers. */
html, body.path-body { background: #050507; }
body.path-body { background-image: linear-gradient(115deg, #050507 0%, #050507 80%, #080e29 91%, #211032 100%); background-attachment: fixed; }
.path-body::before, .path-body::after, .theme-wash, .stud-field { display: none; }
.bay { background: transparent; touch-action: pan-y; }
.track { touch-action: pinch-zoom; }
.track .bay { touch-action: pinch-zoom; }
.hero-signature { font-size: 12px; font-weight: 400; letter-spacing: .12em; color: #a9a7b3; margin: 8px 0 24px; }
.hero-depth .lead { font-size: clamp(17px, 1.5vw, 22px); }
.mac-bar__center { display: none; }
.mac-bar__left { flex: 1; min-width: 0; }
.acc-nav { flex-wrap: nowrap; }
.nav-contact { color: #9df4df; border: 1px solid #41615c; border-radius: 6px; }
.case-next { position: relative; padding: 0 6vw 32px; }
.bay--clips .bay__inner { max-width: 1320px; }
.bay--clips h2, .clip-h { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; }
.bay--clips h2 { font-size: clamp(32px, 4.5vw, 66px); line-height: 1; max-width: 900px; }
.clip-masthead { margin: 36px 0; padding: 24px 0; border-top: 5px solid #f2efe7; border-bottom: 1px solid #555; font-size: clamp(40px, 8vw, 100px); font-weight: 900; font-style: italic; letter-spacing: -.06em; }
.clip-masthead span { display: block; font: 11px/2 monospace; letter-spacing: .18em; color: #d9a65a; }
.bay--clips .yt-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.bay--clips .yt-card { position: relative; display: block; padding: 0; border: 1px solid #4a4a4a; border-radius: 0; background: #eeece5; color: #141414; overflow: hidden; aspect-ratio: auto; }
.yt-card__cover { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.75); }
.bay--clips .yt-card > span { display: block; position: static; padding: 12px 16px; font: bold 16px Georgia,serif; text-transform: uppercase; }
.bay--clips .yt-card__play { position: absolute; top: 38%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid #fff; background: #000c; color: white; }
.bay--clips .yt-card:hover .yt-card__cover { filter: none; }
.service-menu { color: #ece5d5; max-width: 1120px; padding-top: 50px; }
.service-menu h2 { font: 700 clamp(40px,7vw,88px)/1 Georgia,serif; letter-spacing: -.04em; border-bottom: 3px double #b9a783; padding-bottom: 24px; }
.menu-intro { font: italic 22px/1.5 Georgia,serif; color: #c7b58f; margin: 24px 0 40px; }
.menu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.menu-item { position: relative; padding: 26px 0; border-bottom: 1px dashed #665c48; }
.menu-number { font: 12px monospace; color: #b5a17b; }
.menu-item h3 { font: 26px/1.2 Georgia,serif; margin: 8px 0 14px; }
.menu-item p, .menu-receipt p { color: #bfb9ad; line-height: 1.7; }
.menu-price { margin-top: 18px; font: italic 22px Georgia,serif; }
.menu-price span { display: block; font: 11px/2 Inter,sans-serif; color: #a99b82; }
.menu-receipt { border-top: 3px double #b9a783; margin-top: 40px; padding: 24px 0; max-width: 720px; }
.menu-receipt .btn { margin-top: 20px; }
@media(max-width: 800px) {
 .mac-bar { padding: 8px 12px; }
 .mac-bar__right { display: none; }
 .acc-nav { gap: 2px; }
 .acc__btn { padding: 8px 6px; font-size: 12px; }
 .acc__panel { max-width: calc(100vw - 24px); }
 .bay--clips .yt-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .menu-columns { grid-template-columns: 1fr; }
 .clip-masthead { font-size: 52px; }
}
@media(max-width: 420px) { .mac-bar__brand { display: none; } .bay--clips .yt-grid { grid-template-columns: 1fr; } }
.bay--clips .bay__inner { display: block; }
.bay--clips h2 { font-size: clamp(30px, 3.7vw, 52px); margin: 18px 0; }
.bay--clips .body { max-width: 760px; margin: 12px 0 24px; }
.clip-masthead { margin: 24px 0; padding: 16px 0; font-size: clamp(38px, 5vw, 66px); }
.menu-sides-title { font: 30px Georgia,serif; margin: 40px 0 20px; }
.menu-sides { max-width: 720px; }
.menu-sides div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px dotted #665c48; padding: 14px 0; }
.menu-sides dd { margin: 0; white-space: nowrap; }
.model-note { margin: 32px 0 0; padding: 24px 0; border-top: 1px solid #665c48; max-width: 720px; font-size: 13px; line-height: 1.7; color: #aaa497; }
.model-note h3 { font-size: 16px; }
.mac-bar { display: flex; justify-content: space-between; gap: 12px; }
.acc-nav { max-width: none; overflow: visible; }
@media(max-width: 800px) {
 .mac-bar__left { width: 100%; }
 .acc-nav { width: 100%; justify-content: space-between; }
 .acc { position: static; }
 .acc__panel { left: 12px; top: calc(100% + 4px); width: calc(100vw - 24px); }
 .deck { grid-template-columns: auto minmax(0,1fr); gap: 14px; }
 .deck__right { display: none; }
 .scrub__meta { white-space: nowrap; font-size: 10px; }
 .scrub__names { display: none; }
}

/* Content actions are plain text links; navigation controls keep their affordance. */
.track .btn, .track .btn:hover {
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #777;
}
.track .btn:hover { text-decoration-color: #9df4df; color: #9df4df; }
.hero-cta, .yt-channels { column-gap: 28px; }
