/* ============================================================
   SmaugBrain Homepage — Home-specific layout, hero, showcase,
   intro, and particle effects.
   Shared tokens, header, menu, footer, and buttons are in
   themes.css (always loaded).
   ============================================================ */

body.smaug-route-home::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 78%);
}

.sm-home-shell {
  position: relative;
}

body.smaug-route-home {
  cursor: auto !important;
}

body.smaug-route-home canvas {
  cursor: default !important;
}

html.sm-home-intro-pending,
html.sm-home-intro-pending body {
  overflow: hidden;
}

body.smaug-route-home.sm-home-readying .sm-home-header,
body.smaug-route-home.sm-home-readying .sm-home-hero-copy,
body.smaug-route-home.sm-home-readying .sm-home-hero-side {
  opacity: 0;
  pointer-events: none;
}

html.sm-home-intro-pending body.smaug-route-home .sm-home-header,
html.sm-home-intro-pending body.smaug-route-home .sm-home-hero-copy,
html.sm-home-intro-pending body.smaug-route-home .sm-home-hero-side {
  opacity: 0;
  pointer-events: none;
}

.sm-home-hero,
.sm-home-marquee,
.sm-home-section,
.sm-home-footer-inner {
  width: 100%;
  max-width: var(--sm-content-max);
  margin: 0;
  padding-left: var(--sm-shell-gutter);
  padding-right: var(--sm-shell-gutter);
  box-sizing: border-box;
}

.sm-home-hero,
.sm-home-marquee,
.sm-home-section:not(.sm-home-particle-sequence),
.sm-home-footer-inner {
  margin-left: auto;
  margin-right: auto;
}

/* .sm-home-header, .admin-bar .sm-home-header, .sm-home-brand, .sm-home-brand-mark
   are defined in themes.css (always loaded) */

.sm-home-hero-actions,
.sm-home-cta-actions,
.sm-home-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sm-home-footer-links a {
  color: var(--sm-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sm-home-footer-links a:hover {
  color: var(--sm-cobalt);
  transform: translateY(-1px);
}

/* .sm-home-control-rail, .sm-home-lang-switch, .sm-home-lang-option,
   .sm-home-rail-pill, .sm-home-context-pill, .sm-home-menu-toggle and its
   children, .sm-home-btn* are defined in themes.css (always loaded) */

.sm-home-rail-pill-dark {
  color: var(--sm-text);
  background: var(--sm-bg-soft);
  box-shadow: inset 0 0 0 1px var(--sm-border);
}

.sm-home-hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding-bottom: 72px;
  display: flex;
  align-items: center;
  overflow: clip;
}

.sm-home-hero-grid {
  width: min(100%, 1420px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 620px);
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
}

.sm-home-hero-copy {
  max-width: 760px;
}

.sm-home-eyebrow,
.sm-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sm-surface);
  color: var(--sm-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sm-home-title {
  display: grid;
  max-width: 10.2ch;
  margin: 18px 0 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(50px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.sm-home-title-accent {
  background: linear-gradient(135deg, #13151d, var(--sm-cobalt) 62%, #7f93ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sm-home-subcopy,
.sm-home-panel p,
.sm-home-route-card p,
.sm-home-tower-card p,
.sm-home-footer p {
  margin: 0;
  color: var(--sm-text-muted);
  font-size: 17px;
  line-height: 1.78;
}

.sm-home-hero-side {
  display: flex;
  justify-content: flex-start;
  padding-top: 0;
  padding-left: 0;
}

.sm-home-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(67, 84, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(255, 118, 54, 0.14), transparent 28%),
    linear-gradient(180deg, #090a0f 0%, #0b0d14 100%);
}

.sm-home-intro::before,
.sm-home-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-home-intro::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, black 52%, transparent 92%);
}

.sm-home-intro::after {
  background: radial-gradient(circle at center, transparent 0%, rgba(9, 10, 15, 0.26) 50%, rgba(9, 10, 15, 0.92) 100%);
}

.sm-home-intro-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(92px, 11vh, 132px) var(--sm-shell-gutter) clamp(56px, 8vh, 88px);
  box-sizing: border-box;
}

.sm-home-intro-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  padding: 22px 24px 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  transform-origin: center center;
}

.sm-home-intro-panel-primary {
  width: min(100%, 720px);
  margin-inline: auto;
}

.sm-home-intro-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(246, 244, 239, 0.64);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sm-home-intro-code,
.sm-home-editor-code {
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', monospace;
  white-space: pre-wrap;
}

.sm-home-intro-code {
  min-height: 172px;
  color: rgba(244, 239, 231, 0.92);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
}

.sm-home-intro-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sm-home-intro-floating {
  position: absolute;
  margin: 0;
  font-family: 'Space Grotesk', 'Noto Sans SC', monospace;
  line-height: 1.6;
  color: rgba(246, 244, 239, 0.65);
  white-space: pre-wrap;
  transform-origin: center;
  opacity: 0;
}

.sm-home-intro-pos-1 { top: 8%; left: 8%; transform: scale(1.1); font-size: 16px; opacity: 0.6; }
.sm-home-intro-pos-2 { top: 12%; right: 12%; transform: scale(0.9); font-size: 14px; opacity: 0.4; }
.sm-home-intro-pos-3 { bottom: 15%; left: 5%; transform: scale(1.2); font-size: 18px; opacity: 0.5; }
.sm-home-intro-pos-4 { top: 40%; left: 68%; transform: scale(0.8); font-size: 13px; opacity: 0.3; }
.sm-home-intro-pos-5 { bottom: 25%; right: 8%; transform: scale(1.05); font-size: 15px; opacity: 0.5; }
.sm-home-intro-pos-6 { top: 60%; left: 14%; transform: scale(0.85); font-size: 14px; opacity: 0.35; }
.sm-home-intro-pos-7 { top: 22%; left: 24%; transform: scale(0.75); font-size: 12px; opacity: 0.25; }
.sm-home-intro-pos-8 { bottom: 8%; left: 35%; transform: scale(0.95); font-size: 15px; opacity: 0.4; }
.sm-home-intro-pos-9 { top: 5%; left: 45%; transform: scale(0.8); font-size: 13px; opacity: 0.3; }
.sm-home-intro-pos-10 { top: 75%; right: 30%; transform: scale(1.15); font-size: 17px; opacity: 0.55; }
.sm-home-intro-pos-11 { top: 50%; right: 5%; transform: scale(0.7); font-size: 12px; opacity: 0.2; }
.sm-home-intro-pos-12 { bottom: 35%; left: 38%; transform: scale(0.8); font-size: 13px; opacity: 0.3; }

.sm-home-editor-window {
  position: relative;
  width: min(100%, 720px);
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.96) 0%, rgba(9, 10, 15, 0.98) 100%);
  box-shadow: 0 42px 120px rgba(4, 6, 12, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.sm-home-editor-window::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(67, 84, 255, 0.2), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(255, 118, 54, 0.12), transparent 24%);
}

.sm-home-editor-toolbar,
.sm-home-editor-tabs,
.sm-home-editor-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.sm-home-editor-toolbar {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.sm-home-editor-dots {
  display: inline-flex;
  gap: 8px;
}

.sm-home-editor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.18);
}

.sm-home-editor-dots span:first-child { background: #ff7636; }
.sm-home-editor-dots span:nth-child(2) { background: #ffb347; }
.sm-home-editor-dots span:nth-child(3) { background: #4354ff; }

.sm-home-editor-file,
.sm-home-editor-state,
.sm-home-editor-footer {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sm-home-editor-file {
  color: rgba(246, 244, 239, 0.8);
}

.sm-home-editor-state {
  color: rgba(255, 118, 54, 0.8);
}

.sm-home-editor-tabs {
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-home-editor-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 244, 239, 0.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sm-home-editor-tabs button:hover {
  transform: translateY(-1px);
  color: rgba(246, 244, 239, 0.84);
}

.sm-home-editor-tabs button:focus-visible {
  outline: 2px solid rgba(67, 84, 255, 0.5);
  outline-offset: 2px;
}

.sm-home-editor-tabs .is-active {
  background: rgba(67, 84, 255, 0.16);
  color: rgba(246, 244, 239, 0.96);
}

.sm-home-editor-code {
  position: relative;
  z-index: 1;
  min-height: 392px;
  padding: 28px 24px 26px;
  color: rgba(244, 239, 231, 0.9);
  font-size: 15px;
  line-height: 1.9;
}

.sm-home-editor-code code {
  display: block;
  min-height: inherit;
  white-space: pre-wrap;
}

.sm-home-editor-caret {
  display: inline-block;
  width: 0.62ch;
  height: 1.15em;
  margin-left: 0.08em;
  vertical-align: -0.16em;
  background: rgba(255, 118, 54, 0.92);
  box-shadow: 0 0 12px rgba(255, 118, 54, 0.32);
  animation: sm-home-editor-caret 0.9s steps(1) infinite;
}

@keyframes sm-home-editor-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.sm-home-token-keyword {
  color: #8eb6ff;
}

.sm-home-token-string {
  color: #ffbf73;
}

.sm-home-token-property {
  color: #82e3d7;
}

.sm-home-token-function {
  color: #f3f6ff;
}

.sm-home-token-variable {
  color: #ff9f8a;
}

.sm-home-token-number {
  color: #ffd87f;
}

.sm-home-editor-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(246, 244, 239, 0.52);
}

.sm-home-marquee {
  overflow: hidden;
  padding: 8px 0 18px;
}

.sm-home-showcase {
  position: relative;
  padding-top: 28px;
}

.sm-home-showcase-path-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
}

.sm-home-showcase-path-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sm-home-showcase-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 18px;
  align-items: stretch;
}

.sm-home-showcase-card {
  --mx: 50%;
  --my: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.28s ease;
  overflow: visible;
}

.sm-home-showcase-card:hover {
  transform: none;
  box-shadow: none;
}

.sm-home-showcase-card-wide,
.sm-home-showcase-card-tall,
.sm-home-showcase-card:nth-child(2),
.sm-home-showcase-card:nth-child(3) {
  grid-column: auto;
  grid-row: auto;
  min-height: auto;
}

.sm-home-showcase-visual {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1.55;
  min-height: 320px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #11131a, #212639);
}

.sm-home-showcase-card::after {
  display: none;
}

.sm-home-showcase-card::after,
.sm-home-route-card::after,
.sm-home-panel::after,
.sm-home-tower-card::after,
.sm-home-story-step::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(43, 73, 255, 0.14), transparent 24%),
    radial-gradient(circle at calc(var(--mx) - 10%) calc(var(--my) + 18%), rgba(255, 139, 74, 0.12), transparent 18%);
  transition: opacity 0.22s ease;
}

.sm-home-showcase-card:hover::after,
.sm-home-route-card:hover::after,
.sm-home-panel:hover::after,
.sm-home-tower-card:hover::after,
.sm-home-story-step:hover::after {
  opacity: 1;
}

.sm-home-showcase-meta {
  display: block;
  min-height: 1.2em;
  color: var(--sm-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sm-home-showcase-card h3 {
  margin: 0;
  position: relative;
  min-height: 1em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.sm-home-showcase-title-slot {
  position: relative;
  display: block;
  min-height: 1em;
  overflow: hidden;
}

.sm-home-showcase-title-copy {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform, opacity;
}

.sm-home-showcase-title-char {
  display: inline-block;
  will-change: transform, opacity;
}

.sm-home-showcase-visual::before,
.sm-home-showcase-visual::after,
.sm-home-showcase-shape,
.sm-home-showcase-disc,
.sm-home-showcase-bar,
.sm-home-showcase-gridline,
.sm-home-showcase-pillar {
  position: absolute;
  content: '';
}

.sm-home-showcase-visual-lab {
  background:
    radial-gradient(circle at 30% 30%, rgba(43, 73, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0d0f16 0%, #1a2030 100%);
}

.sm-home-showcase-shape {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(132, 139, 255, 0.26));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 20px 40px rgba(0,0,0,0.14);
}

.sm-home-showcase-shape-a {
  width: 38%;
  height: 38%;
  left: 10%;
  top: 18%;
  transform: rotate(-24deg);
}

.sm-home-showcase-shape-b {
  width: 34%;
  height: 34%;
  right: 16%;
  top: 12%;
  background: linear-gradient(180deg, rgba(43,91,255,0.95), rgba(255,255,255,0.16));
  transform: rotate(16deg);
}

.sm-home-showcase-shape-c {
  width: 48%;
  height: 48%;
  left: 36%;
  bottom: 10%;
  background: linear-gradient(180deg, rgba(18,19,25,0.95), rgba(43,73,255,0.16));
  transform: rotate(32deg);
}

.sm-home-showcase-visual-agents {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 139, 74, 0.16), transparent 24%),
    linear-gradient(135deg, #11131a, #11172c 55%, #1d2445);
}

.sm-home-showcase-disc {
  width: 54%;
  aspect-ratio: 1;
  left: 23%;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #5f79ff 55%, rgba(255,255,255,0.08) 70%);
  filter: blur(0.5px);
}

.sm-home-showcase-bar {
  left: 16%;
  right: 16%;
  bottom: 18%;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,139,74,0.58), rgba(43,73,255,0.38));
}

.sm-home-showcase-visual-history {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 139, 74, 0.18), transparent 20%),
    linear-gradient(135deg, #101218, #1a1c24);
}

.sm-home-showcase-gridline {
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.sm-home-showcase-gridline-alt {
  inset: 14% 10%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(43,73,255,0.16), rgba(255,139,74,0.1));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.sm-home-showcase-visual-team {
  background:
    radial-gradient(circle at 50% 18%, rgba(43,73,255,0.22), transparent 22%),
    linear-gradient(180deg, #11131a, #181a22 56%, #1b2029);
}

.sm-home-showcase-pillar {
  width: 18%;
  left: 16%;
  bottom: 8%;
  height: 58%;
  border-radius: 999px 999px 20px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.14));
}

.sm-home-showcase-pillar-2 {
  left: 42%;
  height: 72%;
  background: linear-gradient(180deg, rgba(43,73,255,0.95), rgba(43,73,255,0.14));
}

.sm-home-showcase-pillar-3 {
  left: 68%;
  height: 44%;
  background: linear-gradient(180deg, rgba(255,139,74,0.9), rgba(255,139,74,0.14));
}

.sm-home-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.sm-home-marquee-track span,
.sm-home-tag,
.sm-home-route-kind {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
  color: var(--sm-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.sm-home-section {
  padding: 108px 0;
}

.sm-home-section-head {
  max-width: 980px;
  margin-bottom: 44px;
}

.sm-home-section-head h2,
.sm-home-cta-card h2 {
  margin: 18px 0 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.sm-home-story-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 26px;
  align-items: start;
}

.sm-home-story-pin {
  position: sticky;
  top: 118px;
}

.sm-home-story-stage {
  position: relative;
  --mx: 50%;
  --my: 50%;
  min-height: 72vh;
  padding: 30px;
  border-radius: 36px;
  overflow: hidden;
  color: var(--sm-text);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.1), transparent 18%),
    radial-gradient(circle at 22% 20%, rgba(255, 139, 74, 0.18), transparent 22%),
    radial-gradient(circle at 76% 18%, rgba(43, 73, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #141720 0%, #101117 100%);
  box-shadow: 0 30px 86px rgba(11, 12, 18, 0.22);
}

.sm-home-story-stage::before,
.sm-home-story-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.sm-home-story-stage::before {
  inset: auto auto 18% -6%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 139, 74, 0.16), transparent 70%);
}

.sm-home-story-stage::after {
  inset: 12% -8% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 73, 255, 0.14), transparent 72%);
}

.sm-home-story-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 241, 234, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sm-home-story-progress {
  position: absolute;
  top: 78px;
  right: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sm-home-story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0.16);
  transform-origin: top center;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--sm-amber), var(--sm-cobalt));
}

.sm-home-story-scenes {
  position: relative;
  min-height: 450px;
  display: grid;
  margin-top: 42px;
}

.sm-home-story-scene {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  max-width: 520px;
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.96);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.sm-home-story-scene.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.sm-home-story-kicker,
.sm-home-story-step-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 234, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sm-home-story-scene h3,
.sm-home-story-step h3 {
  margin: 18px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.sm-home-story-scene p,
.sm-home-story-step p {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  line-height: 1.8;
}

.sm-home-story-chiprow,
.sm-home-story-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sm-home-story-chiprow span,
.sm-home-story-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--sm-border);
  color: rgba(245, 241, 234, 0.84);
  font-size: 13px;
}

.sm-home-story-stack {
  flex-direction: column;
  max-width: 320px;
}

.sm-home-story-stack span {
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.sm-home-story-orbit {
  position: relative;
  width: 260px;
  height: 260px;
  margin-top: 24px;
}

.sm-home-story-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sm-home-story-orbit span:nth-child(2) {
  inset: 16%;
  border-color: rgba(255, 122, 65, 0.34);
}

.sm-home-story-orbit span:nth-child(3) {
  inset: 34%;
  border-color: rgba(79, 91, 255, 0.42);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}

.sm-home-story-steps {
  display: grid;
  gap: 18px;
}

.sm-home-story-step {
  --mx: 50%;
  --my: 50%;
  padding: 28px;
  border-radius: 30px;
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
  transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
  overflow: hidden;
}

.sm-home-story-step p {
  color: var(--sm-text-muted);
}

.sm-home-story-step.is-active {
  transform: translateX(14px);
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
}

.sm-home-story-step.is-active .sm-home-story-step-index {
  color: var(--sm-text);
  background: rgba(16, 18, 23, 0.08);
}

.sm-home-manifesto-grid,
.sm-home-workbench-grid,
.sm-home-routes-grid {
  display: grid;
  gap: 22px;
}

.sm-home-execution-flow {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  overflow: clip;
  background: var(--sm-bg);
}

.sm-home-execution-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sm-home-execution-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.sm-home-execution-panel {
  flex: 0 0 100vw;
  width: 100vw;
  min-height: 100vh;
  display: flex;
}

.sm-home-execution-panel > .sm-home-section {
  width: 100%;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.sm-home-execution-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 4;
  will-change: transform;
}

.sm-home-execution-cover-inner {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.02) 0%, rgba(9, 10, 15, 0.88) 22%, var(--sm-bg) 100%),
    var(--sm-bg);
  box-shadow: 0 -32px 90px rgba(0, 0, 0, 0.28);
}

.sm-home-execution-cover .sm-home-cta {
  width: 100%;
  max-width: var(--sm-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-top: 120px;
  padding-bottom: 42px;
}

.sm-home-execution-cover .sm-home-footer {
  width: 100%;
  padding-bottom: 48px;
}

.sm-home-execution-cover .sm-home-footer-inner {
  margin-left: auto;
  margin-right: auto;
}

.sm-home-manifesto-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
}

.sm-home-panel,
.sm-home-tower-card,
.sm-home-route-card,
.sm-home-cta-card {
  --mx: 50%;
  --my: 50%;
  border-radius: 30px;
  padding: 28px;
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
  overflow: hidden;
}

.sm-home-panel-dark {
  color: var(--sm-text);
  background: linear-gradient(180deg, #141720 0%, #1a1f2e 100%);
}

.sm-home-panel-dark p {
  color: var(--sm-text-muted);
}

.sm-home-panel-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sm-text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sm-home-panel-dark .sm-home-panel-index {
  color: var(--sm-text-muted);
}

.sm-home-panel h3,
.sm-home-tower-card strong,
.sm-home-route-card h3 {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.sm-home-workbench {
  color: var(--sm-text);
}

.sm-home-workbench .sm-home-section-head h2,
.sm-home-workbench .sm-home-kicker {
  color: var(--sm-text);
}

.sm-home-workbench .sm-home-kicker {
  background: rgba(255, 255, 255, 0.08);
}

.sm-home-workbench-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-home-tower-card {
  min-height: 280px;
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
}

.sm-home-tower-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.sm-home-tower-card strong {
  margin: 0;
  font-size: 24px;
}

.sm-home-tower-card p {
  color: var(--sm-text-muted);
  font-size: 15px;
}

.sm-home-tag,
.sm-home-route-kind {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--sm-border);
  color: var(--sm-text-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sm-home-routes {
  background: transparent;
}

.sm-home-routes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-home-route-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.sm-home-route-card:hover {
  transform: translateY(-6px);
  background: var(--sm-surface);
  box-shadow: inset 0 0 0 1px var(--sm-border);
}

.sm-home-route-card p {
  font-size: 15px;
}

.sm-home-routes .sm-home-route-kind {
  background: rgba(16, 18, 23, 0.08);
  box-shadow: none;
  color: var(--sm-text-muted);
}

.sm-home-cta {
  padding-top: 32px;
  padding-bottom: 120px;
}

.sm-home-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--sm-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(43, 73, 255, 0.22), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255, 139, 74, 0.16), transparent 24%),
    linear-gradient(135deg, #14161e 0%, #0d0f15 100%);
  box-shadow: inset 0 0 0 1px var(--sm-border);
}

.sm-home-cta-card h2 {
  max-width: 780px;
  margin-top: 16px;
}

.sm-home-footer {
  padding: 0 0 48px;
}

.sm-home-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sm-text-muted);
}

.sm-home-footer strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: var(--sm-text);
}

.sm-home-footer-links a {
  color: var(--sm-text-muted);
}

.sm-home-motion [data-reveal]:not(.sm-home-section-head) {
  opacity: 0;
  transform: translateY(44px);
}

@media (max-width: 1100px) {
  .sm-home-hero-grid,
  .sm-home-story-shell,
  .sm-home-manifesto-grid,
  .sm-home-workbench-grid,
  .sm-home-routes-grid,
  .sm-home-cta-card,
  .sm-home-footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .sm-home-story-pin {
    position: relative;
    top: auto;
  }

  .sm-home-story-stage {
    min-height: 620px;
  }

  .sm-home-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sm-home-showcase-card-wide,
  .sm-home-showcase-card:nth-child(2),
  .sm-home-showcase-card:nth-child(3),
  .sm-home-showcase-card-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .sm-home-hero-side {
    width: 100%;
  }

  .sm-home-editor-window {
    width: 100%;
  }

  .sm-home-intro-stage {
    display: flex;
    justify-content: center;
  }

  .sm-home-intro-panel-primary {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 820px) {
  body.smaug-route-home {
    --sm-shell-gutter: 16px;
  }

  .sm-home-header-inner {
    min-height: 74px;
    padding: 0 12px;
  }

  .sm-home-control-rail {
    margin-left: auto;
  }

  .sm-home-lang-switch {
    min-height: 42px;
  }

  .sm-home-lang-option {
    min-width: 44px;
    min-height: 34px;
    padding: 0 10px;
  }

  .sm-home-rail-pill-dark {
    display: none;
  }

  .sm-home-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .sm-home-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .sm-home-editor-window {
    min-height: 500px;
    border-radius: 28px;
  }

  .sm-home-editor-code {
    min-height: 340px;
    padding: 24px 18px 22px;
    font-size: 14px;
  }

  .sm-home-intro-stage {
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .sm-home-intro-panel {
    padding: 18px 18px 20px;
    border-radius: 24px;
  }

  .sm-home-intro-card-d,
  .sm-home-intro-card-f {
    display: none;
  }

  .sm-home-workbench-grid,
  .sm-home-routes-grid,
  .sm-home-showcase-grid {
    grid-template-columns: 1fr;
  }

  .sm-home-story-stage {
    min-height: 560px;
  }

  .sm-home-story-progress {
    right: 18px;
    top: 70px;
    bottom: 18px;
  }
}

@media (max-width: 560px) {
  .sm-home-title {
    font-size: clamp(42px, 14vw, 68px);
  }

  .sm-home-subcopy {
    font-size: 16px;
  }

  .sm-home-control-rail {
    gap: 8px;
  }

  .sm-home-lang-switch {
    padding: 3px;
  }

  .sm-home-lang-option {
    min-width: 42px;
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .sm-home-rail-pill {
    display: none;
  }

  .sm-home-hero-actions,
  .sm-home-cta-actions,
  .sm-home-footer-links {
    flex-wrap: wrap;
  }

  .sm-home-intro-code {
    min-height: 148px;
    font-size: 14px;
  }

  .sm-home-menu-toggle {
    min-height: 42px;
    padding: 0 16px;
  }

  .sm-home-editor-window {
    min-height: 430px;
  }

  .sm-home-editor-code {
    min-height: 280px;
    font-size: 13px;
    line-height: 1.75;
  }

  .sm-home-editor-toolbar,
  .sm-home-editor-tabs,
  .sm-home-editor-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sm-home-intro-card-b,
  .sm-home-intro-card-c,
  .sm-home-intro-card-e {
    display: none;
  }

  .sm-home-story-stage,
  .sm-home-story-step {
    padding: 22px;
  }

  .sm-home-story-scenes {
    min-height: 500px;
  }

  .sm-home-story-scene h3,
  .sm-home-story-step h3 {
    font-size: 30px;
  }

  .sm-home-story-orbit {
    width: 210px;
    height: 210px;
  }
}

@media (pointer: fine) {
  .sm-home-btn,
  .sm-home-menu-link,
  .sm-home-menu-link-item,
  .sm-home-menu-card,
  .sm-home-route-card,
  .sm-home-showcase-card {
    will-change: transform;
  }
}

@media (max-width: 782px) {
  .admin-bar .sm-home-header {
    top: 46px;
  }
}

.sm-home-particle-sequence {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  height: 340vh;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  background: var(--sm-bg);
}

.sm-home-particle-sticky {
  position: relative;
  width: 100%;
  height: 100vh;
  left: 0;
  overflow: hidden;
}

#sm-home-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: default;
}

.sm-home-particle-content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.sm-home-particle-text {
  max-width: 460px;
  color: var(--sm-text);
  opacity: 0; /* JS will handle this */
  transform: translateY(50px);
}

.sm-home-particle-text h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  margin: 20px 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

.sm-home-particle-text p {
  color: var(--sm-text-muted);
  font-size: 17px;
  line-height: 1.8;
}

/* Ensure js-reveal items start invisible if JS is enabled, but handled better */
.sm-home-motion .js-reveal-line {
  transform: none;
  opacity: 1;
}
.sm-home-motion .sm-home-section-head h2 { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Hide Scrollbar globally */
::-webkit-scrollbar { display: none; width: 0; background: transparent; }
html { -ms-overflow-style: none; scrollbar-width: none; }

/* Enhancements for parallax cards */
.sm-home-showcase-card, .sm-home-route-card, .sm-home-panel {
  transform-style: preserve-3d;
  will-change: transform;
}
.sm-home-showcase-card-visual {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sm-home-story {
  position: relative;
  overflow: visible;
}

.sm-home-story-word-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
}

.sm-home-story-word-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sm-home-manifesto, .sm-home-workbench {
  position: relative;
  overflow: hidden;
}

.sm-parallax-bg-text {
  position: absolute;
  top: 10%;
  left: -10%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24vw;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: -0.05em;
  mix-blend-mode: overlay;
  will-change: transform;
}

.sm-home-section-head, .sm-home-showcase-grid, .sm-home-panel, .sm-home-story-shell {
  position: relative;
  z-index: 2;
}

.js-parallax-scale {
  transform-origin: center center;
  will-change: transform, filter;
}

html[data-theme='light'] body.smaug-route-home::before {
  background-image: radial-gradient(rgba(50, 72, 219, 0.08) 1px, transparent 1px);
  opacity: 0.2;
}

html[data-theme='light'] .sm-home-intro {
  background:
    radial-gradient(circle at 20% 18%, rgba(67, 84, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 30%, rgba(255, 118, 54, 0.1), transparent 28%),
    linear-gradient(180deg, #eef3fb 0%, #dfe7f5 100%);
}

html[data-theme='light'] .sm-home-intro::before {
  background-image:
    linear-gradient(rgba(15, 24, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 24, 40, 0.06) 1px, transparent 1px);
  opacity: 0.2;
}

html[data-theme='light'] .sm-home-intro::after {
  background: radial-gradient(circle at center, transparent 0%, rgba(213, 223, 239, 0.18) 52%, rgba(213, 223, 239, 0.62) 100%);
}

html[data-theme='light'] .sm-home-intro-panel-head,
html[data-theme='light'] .sm-home-intro-floating {
  color: rgba(15, 24, 40, 0.54);
}

html[data-theme='light'] .sm-home-intro-code {
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .sm-home-editor-window {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 255, 0.94) 100%);
  box-shadow: 0 34px 82px rgba(41, 56, 88, 0.16), inset 0 0 0 1px rgba(15, 24, 40, 0.08);
  border-color: rgba(15, 24, 40, 0.06);
}

html[data-theme='light'] .sm-home-editor-window::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(67, 84, 255, 0.12), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(255, 118, 54, 0.08), transparent 24%);
}

html[data-theme='light'] .sm-home-editor-toolbar {
  border-bottom-color: rgba(15, 24, 40, 0.08);
  background: rgba(246, 249, 255, 0.92);
}

html[data-theme='light'] .sm-home-editor-file {
  color: rgba(15, 24, 40, 0.76);
}

html[data-theme='light'] .sm-home-editor-tabs {
  border-bottom-color: rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .sm-home-editor-tabs button {
  background: rgba(15, 24, 40, 0.04);
  color: rgba(15, 24, 40, 0.74);
}

html[data-theme='light'] .sm-home-editor-tabs .is-active {
  background: rgba(67, 84, 255, 0.14);
  color: rgba(15, 24, 40, 0.92);
}

html[data-theme='light'] .sm-home-editor-code {
  color: rgba(15, 24, 40, 0.88);
}

html[data-theme='light'] .sm-home-token-keyword {
  color: #2458d3;
}

html[data-theme='light'] .sm-home-token-string {
  color: #9a4d00;
}

html[data-theme='light'] .sm-home-token-property {
  color: #0d7b76;
}

html[data-theme='light'] .sm-home-token-function {
  color: #111827;
}

html[data-theme='light'] .sm-home-token-variable {
  color: #c2442d;
}

html[data-theme='light'] .sm-home-token-number {
  color: #a16207;
}

html[data-theme='light'] .sm-home-editor-footer {
  border-top-color: rgba(15, 24, 40, 0.08);
  color: rgba(15, 24, 40, 0.5);
}

html[data-theme='light'] .sm-home-showcase-visual {
  background: linear-gradient(135deg, #ffffff, #e9eef8);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.06), 0 18px 40px rgba(41, 56, 88, 0.08);
}

html[data-theme='light'] .sm-home-showcase-visual-lab {
  background:
    radial-gradient(circle at 30% 30%, rgba(43, 73, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #f7f9ff 0%, #e7edf9 100%);
}

html[data-theme='light'] .sm-home-showcase-visual-agents {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 139, 74, 0.12), transparent 24%),
    linear-gradient(135deg, #f6f8ff, #e7edf9 55%, #dce4f6);
}

html[data-theme='light'] .sm-home-showcase-visual-history {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 139, 74, 0.14), transparent 20%),
    linear-gradient(135deg, #f7f9ff, #e8edf8);
}

html[data-theme='light'] .sm-home-showcase-visual-team {
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 73, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #f7f9ff, #e7edf9 56%, #dbe4f6);
}

html[data-theme='light'] .sm-home-showcase-gridline {
  background-image: linear-gradient(rgba(15, 24, 40, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 24, 40, 0.07) 1px, transparent 1px);
}

html[data-theme='light'] .sm-home-showcase-gridline-alt {
  background: linear-gradient(180deg, rgba(43, 73, 255, 0.1), rgba(255, 139, 74, 0.08));
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.06);
}

html[data-theme='light'] .sm-home-showcase-shape {
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.06), 0 20px 40px rgba(41, 56, 88, 0.1);
}

html[data-theme='light'] .sm-home-showcase-shape-c {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.9), rgba(43, 73, 255, 0.14));
}

html[data-theme='light'] .sm-home-showcase-disc {
  background: radial-gradient(circle at 35% 35%, #fff, #5f79ff 58%, rgba(95, 121, 255, 0.14) 76%);
}

html[data-theme='light'] .sm-home-showcase-bar {
  background: linear-gradient(90deg, rgba(15, 24, 40, 0.08), rgba(255, 139, 74, 0.34), rgba(43, 73, 255, 0.24));
}

html[data-theme='light'] .sm-home-story-stage {
  color: var(--sm-text);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(50, 72, 219, 0.08), transparent 18%),
    radial-gradient(circle at 22% 20%, rgba(255, 139, 74, 0.1), transparent 22%),
    radial-gradient(circle at 76% 18%, rgba(43, 73, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #e9eef8 100%);
  box-shadow: 0 28px 72px rgba(41, 56, 88, 0.12), inset 0 0 0 1px rgba(15, 24, 40, 0.06);
}

html[data-theme='light'] .sm-home-story-topbar,
html[data-theme='light'] .sm-home-story-scene p,
html[data-theme='light'] .sm-home-story-step p {
  color: rgba(15, 24, 40, 0.64);
}

html[data-theme='light'] .sm-home-story-progress {
  background: rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .sm-home-story-kicker,
html[data-theme='light'] .sm-home-story-step-index,
html[data-theme='light'] .sm-home-story-chiprow span,
html[data-theme='light'] .sm-home-story-stack span {
  background: rgba(15, 24, 40, 0.05);
  color: rgba(15, 24, 40, 0.76);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08);
}

html[data-theme='light'] .sm-home-story-stack span {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme='light'] .sm-home-story-orbit span {
  border-color: rgba(15, 24, 40, 0.12);
}

html[data-theme='light'] .sm-home-story-orbit span:nth-child(3) {
  background: radial-gradient(circle, rgba(43, 73, 255, 0.3), rgba(255, 255, 255, 0));
}

html[data-theme='light'] .sm-home-story-step.is-active .sm-home-story-step-index,
html[data-theme='light'] .sm-home-routes .sm-home-route-kind {
  background: rgba(67, 84, 255, 0.12);
  color: rgba(15, 24, 40, 0.82);
}

html[data-theme='light'] .sm-home-workbench .sm-home-kicker,
html[data-theme='light'] .sm-home-tag,
html[data-theme='light'] .sm-home-route-kind {
  background: rgba(15, 24, 40, 0.05);
}

html[data-theme='light'] .sm-home-panel-dark {
  color: var(--sm-text);
  background: linear-gradient(180deg, #ffffff 0%, #edf2fb 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08), 0 18px 44px rgba(41, 56, 88, 0.08);
}

html[data-theme='light'] .sm-home-cta-card {
  color: var(--sm-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(43, 73, 255, 0.14), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(255, 139, 74, 0.1), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #edf2fb 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 24, 40, 0.08), 0 24px 60px rgba(41, 56, 88, 0.1);
}

html[data-theme='light'] .sm-home-footer-inner {
  border-top-color: rgba(15, 24, 40, 0.1);
}

html[data-theme='light'] .sm-parallax-bg-text {
  color: rgba(50, 72, 219, 0.05);
  mix-blend-mode: normal;
}