/* First-paint shell styles — keep in sync with src/landing-critical.css */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.no-shell #landing-shell { display: none !important; }

.landing-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "cv02", "ss01";
  letter-spacing: -0.011em;
  min-height: 100vh;
  background: #08090a;
  color: #eceef1;
}

.shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.shell-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #eceef1;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.shell-nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.shell-nav-links a {
  padding: 6px 12px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

.shell-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-nav-actions .shell-youtube {
  display: none;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  padding: 0 8px;
}

@media (min-width: 640px) {
  .shell-nav-actions .shell-youtube { display: inline-flex; }
}

@media (min-width: 768px) {
  .shell-nav-links { display: flex; }
}

.studio-logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: url("/brand/studio-logo-mark-64.png") center / contain no-repeat;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.shell-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 108px 24px 0;
  overflow: hidden;
  text-align: center;
}

.studio-hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 60vh;
  background: radial-gradient(
    ellipse 60% 50% at 50% 40%,
    rgba(94, 92, 230, 0.14) 0%,
    rgba(94, 92, 230, 0.04) 40%,
    transparent 70%
  );
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  pointer-events: none;
}

.shell-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 880px;
}

.studio-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 24px;
}

.shell-h1 {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #eceef1;
}

.shell-muted { color: #6b7280; }
.shell-emphasis { color: #eceef1; }

.studio-lead {
  color: #8b919a;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  max-width: 480px;
  margin: 0 auto;
}

.shell-accent { color: #9b9eff; }

.shell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.studio-btn-primary {
  background: #eceef1;
  color: #08090a;
}

.studio-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #b4b8bf;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-btn-hero {
  min-width: min(100%, 260px);
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px auto 0;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-scroll-hint span {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 158, 255, 0.8));
}

.hero-odyssey-collage {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  height: clamp(280px, 34vw, 470px);
  margin: 48px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #101114;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-odyssey-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(155, 158, 255, 0.2), transparent 38%),
    linear-gradient(90deg, rgba(8, 9, 10, 0.34), transparent 18%, transparent 82%, rgba(8, 9, 10, 0.4));
}

.hero-odyssey-slice {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  overflow: hidden;
  background: #0b0c0e;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  filter: drop-shadow(-18px 0 22px rgba(0, 0, 0, 0.42));
}

.hero-odyssey-slice::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-8deg);
  transform-origin: bottom;
}

.hero-odyssey-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
  transform: scale(1.02);
}

.hero-odyssey-slice-1 {
  left: -2%;
  width: 33%;
  clip-path: polygon(0 0, 100% 0, 89% 100%, 0 100%);
  z-index: 10;
  filter: none;
}

.hero-odyssey-slice-2 {
  left: 24%;
  width: 31%;
  z-index: 20;
}

.hero-odyssey-slice-3 {
  left: 48%;
  width: 31%;
  z-index: 30;
  filter: drop-shadow(-20px 0 24px rgba(0, 0, 0, 0.5));
}

.hero-odyssey-slice-4 {
  left: 72%;
  width: 31%;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 40;
  filter: drop-shadow(-22px 0 26px rgba(0, 0, 0, 0.56));
}

.hero-odyssey-seam {
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: clamp(30px, 3.8vw, 52px);
  pointer-events: none;
  transform: skewX(-8deg);
  transform-origin: bottom center;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 18%,
      rgba(0, 0, 0, 0.72) 58%,
      rgba(0, 0, 0, 0.36) 78%,
      transparent 100%
    );
  opacity: 0.95;
}

.hero-odyssey-seam::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8px;
  bottom: 0;
  width: 12px;
  background: rgba(0, 0, 0, 0.68);
  filter: blur(8px);
}

.hero-odyssey-seam-1 {
  left: calc(24% - clamp(24px, 3.2vw, 44px));
  z-index: 15;
}

.hero-odyssey-seam-2 {
  left: calc(48% - clamp(24px, 3.2vw, 44px));
  z-index: 25;
}

.hero-odyssey-seam-3 {
  left: calc(72% - clamp(24px, 3.2vw, 44px));
  z-index: 35;
}

.studio-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(to top, #08090a 0%, transparent 100%);
  pointer-events: none;
}

.shell-btn-sm { padding: 6px 14px !important; }

/* Shell → React handoff overlay */

html.landing-handoff #landing-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

html.landing-handoff #landing-shell.shell-exiting {
  opacity: 0;
  filter: blur(5px) brightness(1.06);
  pointer-events: none;
}

html.landing-handoff #root {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.landing-handoff #landing-shell {
    transition: none;
  }
  html.landing-handoff #landing-shell.shell-exiting {
    opacity: 0;
    filter: none;
  }
}

@media (max-width: 640px) {
  .hero-odyssey-collage {
    width: min(100%, 420px);
    height: clamp(280px, 80vw, 380px);
  }

  .hero-odyssey-slice-1 {
    left: -18%;
    width: 52%;
  }

  .hero-odyssey-slice-2 {
    left: 18%;
    width: 48%;
  }

  .hero-odyssey-slice-3 {
    left: 52%;
    width: 48%;
  }

  .hero-odyssey-slice-4 {
    display: none;
  }

  .hero-odyssey-seam {
    width: 42px;
  }

  .hero-odyssey-seam-1 {
    left: calc(18% - 30px);
  }

  .hero-odyssey-seam-2 {
    left: calc(52% - 30px);
  }

  .hero-odyssey-seam-3 {
    display: none;
  }
}
