/*
  Purpose: Sneak preview — full-viewport narrative scroll (1 scene = 1 viewport)
  Last modified: 2026-06-27 | Completeness: 99/100
*/

@import url("brand.css");

:root {
  --bg: #ffffff;
  --bg-dark: var(--bdna-navy);
  --bg-mid: #1a1040;
  --surface: #ffffff;
  --text: var(--bdna-text);
  --text-inv: #f9fafb;
  --muted: var(--bdna-muted);
  --muted-inv: #9ca3af;
  --accent: var(--bdna-primary);
  --accent-light: #7c4dff;
  --accent-soft: var(--bdna-soft);
  --gold: #3d9ab5;
  --bdna-green: #b6d7a8;
  --border: var(--bdna-border);
  --sans: var(--bdna-font);
  --scene-pad: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }
}

body.preview-story {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Nav --- */
.preview-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem var(--scene-pad);
  min-height: var(--bdna-nav-h);
  background: rgba(5, 10, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.preview-nav a,
.preview-nav-tag {
  pointer-events: auto;
}

.preview-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.preview-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.preview-nav-brand .bdna-logo__mark {
  width: 2.1rem;
  height: auto;
}

.preview-nav-brand .bdna-wordmark {
  font-size: 1rem;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  animation: none;
}

.site-nav .bdna-logo__mark {
  width: 2.1rem;
  height: auto;
}

.preview-nav-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-inv);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* --- Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  background: rgba(255,255,255,0.08);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease-out;
}

/* --- Story rail — node images + purple line + green ring marker --- */
.story-rail {
  position: fixed;
  top: calc(var(--bdna-nav-h) + 0.75rem);
  right: clamp(0.35rem, 1.5vw, 1rem);
  bottom: clamp(0.75rem, 3vh, 1.5rem);
  width: 2rem;
  z-index: 99;
  pointer-events: none;
}

.story-rail__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-rail__line {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 999px;
  opacity: 0.4;
  background: linear-gradient(
    180deg,
    rgba(99, 54, 249, 0.25) 0%,
    var(--accent) 18%,
    #7c4dff 50%,
    var(--accent) 82%,
    rgba(99, 54, 249, 0.25) 100%
  );
  box-shadow: 0 0 10px rgba(99, 54, 249, 0.35);
}

.story-rail__nodes {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.story-rail__node {
  position: absolute;
  left: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.story-rail__node:hover .story-rail__node-img,
.story-rail__node:focus-visible .story-rail__node-img {
  opacity: 0.55;
  transform: scale(1.15);
}

.story-rail__node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.story-rail__node-img {
  display: block;
  width: 0.44rem;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.story-rail__node-img.is-active,
.story-rail__node.is-active .story-rail__node-img {
  opacity: 0.55;
  transform: scale(1.12);
}

.story-rail__ring {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.25rem;
  height: auto;
  transform: translate(-50%, -50%);
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(182, 215, 168, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .story-rail__ring {
    transition: none;
  }
}

@media (max-width: 479px) {
  .story-rail {
    width: 1.5rem;
    right: 0.2rem;
  }

  .story-rail__node {
    width: 0.7rem;
    height: 0.7rem;
  }

  .story-rail__node-img {
    width: 0.35rem;
  }

  .story-rail__ring {
    width: 1rem;
  }
}

/* --- Scenes --- */
.story-scroll {
  display: block;
}

.scene {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--scene-pad) + 2rem) var(--scene-pad) var(--scene-pad);
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene-inner {
  width: min(100%, 36rem);
  text-align: center;
}

@media (min-width: 768px) {
  .scene-inner {
    width: min(100%, 42rem);
  }

  .scene-inner--split {
    width: min(100%, 56rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
    text-align: left;
  }

  .scene-inner--split .scene-copy {
    text-align: left;
  }
}

.scene-has-mock .scene-headline {
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
}

.scene-has-mock .scene-body {
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
}

.scene-copy {
  text-align: center;
}

@media (min-width: 768px) {
  .scene-copy { text-align: left; }
}

.scene-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  opacity: 0.7;
}

.scene-title {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 10vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.scene-title em {
  font-style: normal;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-title--tagline {
  --tagline-lh: 1.05;
  --tagline-row: calc(var(--tagline-lh) * 1em);
  --tagline-gap: 0.1em;
  display: block;
  line-height: var(--tagline-lh);
  min-height: calc(var(--tagline-row) * 3 + var(--tagline-gap));
}

.scene-title__lead {
  display: block;
  transform: translateY(calc(var(--tagline-row) + var(--tagline-gap)));
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.scene-title--tagline.is-everywhere-in .scene-title__lead {
  transform: translateY(0);
}

.scene-title__everywhere {
  display: block;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(calc(var(--tagline-row) * 0.35));
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene-title--tagline.is-everywhere-in .scene-title__everywhere {
  margin-top: var(--tagline-gap);
  max-height: var(--tagline-row);
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .scene-title--tagline.is-everywhere-in .scene-title__everywhere {
    animation: scene-everywhere-gradient 7s ease-in-out 0.9s infinite;
  }
}

@keyframes scene-everywhere-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-title__lead {
    transform: none;
    transition: none;
  }

  .scene-title__everywhere {
    max-height: none;
    margin-top: var(--tagline-gap, 0.1em);
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }

  .scene-title--tagline.is-everywhere-in .scene-title__lead,
  .scene.is-visible .scene-title--tagline .scene-title__lead {
    transform: none;
  }
}

.scene-headline {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.scene-emoji {
  display: inline-block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.92em;
  vertical-align: middle;
  line-height: 1;
}

.scene-headline--aside {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.88;
}

.scene-body {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  margin: 0;
  opacity: 0.88;
}

.scene-body strong {
  font-weight: 600;
  opacity: 1;
}

/* --- Scroll cue — floating word + chevron; mouse pulses to draw attention --- */
.scroll-cue--fixed {
  position: fixed;
  bottom: clamp(0.75rem, 3vh, 1.5rem);
  left: 50%;
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

.scroll-cue--fixed.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-cue--fixed.is-on-light {
  color: rgba(15, 23, 42, 0.42);
}

.scroll-cue__label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.scroll-cue__mouse {
  position: relative;
  width: 1.1rem;
  height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  border: 0 solid currentColor;
  border-radius: 999px;
  transition:
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    margin 0.35s ease,
    border-width 0.35s ease;
}

.scroll-cue--fixed.is-expanded .scroll-cue__mouse {
  height: 1.65rem;
  opacity: 0.85;
  margin: 0.12rem 0;
  border-width: 1.5px;
}

.scroll-cue__mouse::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 50%;
  width: 2px;
  height: 0.35rem;
  margin-left: -1px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
  animation: scroll-cue-wheel 2.2s ease-in-out infinite;
}

.scroll-cue__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.7;
}

.scroll-cue__chevron svg {
  display: block;
}

@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scroll-cue-wheel {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(0.25rem); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue--fixed,
  .scroll-cue__mouse,
  .scroll-cue__mouse::after {
    animation: none;
  }

  .scroll-cue--fixed {
    transform: translateX(-50%);
  }

  .scroll-cue__mouse {
    display: none;
  }
}

.scene-hint {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.45;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-hint { animation: none; }
}

/* --- Brand DNA mesh texture — Scene 18 purple only --- */
.scene-texture {
  overflow: hidden;
}

.scene-texture > .scene-inner {
  position: relative;
  z-index: 2;
}

.scene-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/brand-texture.png");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.05s ease 0.08s;
}

.scene-texture.is-visible::before {
  opacity: var(--texture-opacity);
  filter: var(--texture-filter);
  mix-blend-mode: soft-light;
}

.scene-texture--purple {
  --texture-opacity: 0.68;
  --texture-filter: brightness(0.5) sepia(1) hue-rotate(225deg) saturate(3.2) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .scene-texture::before {
    opacity: var(--texture-opacity);
    filter: var(--texture-filter);
    transition: none;
  }
}

/* --- Scene palettes --- */
.scene-thankyou {
  background:
    radial-gradient(ellipse 85% 65% at 50% 35%, rgba(99, 54, 249, 0.4) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0a1028 100%);
  color: var(--text-inv);
}

.scene-thankyou .scene-label {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.scene-thankyou .scene-title {
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.scene-thankyou__thanks {
  font-size: clamp(1.75rem, 5vw, 2.25rem) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem !important;
  opacity: 0.92;
}

.scene-thankyou-lead {
  margin-top: 1rem !important;
}

.scene-thankyou-note {
  margin-top: 1.25rem !important;
  font-size: 0.875rem !important;
  opacity: 0.55 !important;
}

.scene-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(99, 54, 249, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 70%);
  color: var(--text-inv);
}

/* Key in. Brand on. — very faint darkened purple web */
.scene-hero--web-bg {
  overflow: hidden;
}

.scene-hero--web-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/hero-web-bg.png");
  background-size: cover;
  background-position: center 42%;
  opacity: 0.14;
  filter: brightness(0.28) sepia(1) hue-rotate(232deg) saturate(2.4) contrast(1.08);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.scene-hero--web-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 50% 28%, rgba(26, 16, 64, 0.55) 0%, transparent 58%),
    linear-gradient(180deg, rgba(26, 16, 64, 0.72) 0%, rgba(5, 10, 31, 0.88) 100%);
}

.scene-hero--web-bg .scene-inner {
  position: relative;
  z-index: 1;
}

/* Hero entrance — bridge from gap arc → Our stance */
.scene-entrance {
  background:
    radial-gradient(ellipse 75% 55% at 50% 40%, rgba(99, 54, 249, 0.42) 0%, transparent 58%),
    linear-gradient(180deg, #0a1028 0%, var(--bg-mid) 55%, var(--bg-dark) 100%);
  color: var(--text-inv);
  text-align: center;
}

.scene-entrance .scene-label {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.scene-entrance__headline {
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  max-width: 22em;
  margin-inline: auto;
  line-height: 1.22;
}

.scene-entrance__headline em {
  font-style: normal;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-problem {
  background: var(--bg-dark);
  color: var(--text-inv);
}

.scene-gap {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1028 100%);
  color: var(--text-inv);
}

.scene-vendors {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  opacity: 0.92;
}

.scene-gap .scene-vendors {
  color: var(--accent-light);
}

.scene-body--gap-lead {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  opacity: 0.95;
}

.scene-gap--close {
  background: linear-gradient(180deg, #0a1028 0%, var(--bg-dark) 100%);
}

/* Department silo scenes — one viewport each */
.scene-dept {
  color: var(--text-inv);
  min-height: 100svh;
}

.scene-dept--marketing {
  background: linear-gradient(180deg, #0a1028 0%, #0c1430 100%);
}

.scene-dept--design {
  background: linear-gradient(180deg, #0c1430 0%, #0e1638 100%);
}

.scene-dept--contractors {
  background: linear-gradient(180deg, #0e1638 0%, #101a40 100%);
}

.scene-dept--production {
  background: linear-gradient(180deg, #101a40 0%, #0a1028 100%);
}

.scene-dept .scene-label {
  color: var(--accent-light);
  opacity: 0.85;
}

.scene-dept-name {
  margin-bottom: 0.75rem;
}

.scene-dept-tool {
  margin-bottom: 1.25rem;
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  font-weight: 500;
  opacity: 0.8;
}

.scene-not {
  background: var(--surface);
  color: var(--text);
}

.scene-not .scene-label { color: var(--accent); opacity: 1; }

/* --- White slides: full-bleed sculpture (125vh, clipped at 100vh) + centered copy --- */
.scene-sculpture {
  overflow: hidden;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  align-items: center;
  justify-content: center;
}

.scene-sculpture::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 0;
  width: 100%;
  height: 125svh;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.05s ease 0.08s;
}

.scene-sculpture.is-visible::before {
  opacity: 1;
}

.scene-sculpture--zoom1::before {
  background-image: url("images/web-zoom-1.png");
  background-position: center center;
}

.scene-sculpture--zoom2::before {
  background-image: url("images/web-zoom-2.png");
  background-position: center bottom;
}

.scene-sculpture--zoom3::before {
  background-image: url("images/web-zoom-3.png");
  background-position: center center;
}

.scene-sculpture--zoom4::before {
  background-image: url("images/web-zoom-4.png");
  background-position: center bottom;
}

/* Purple colorized web — Harmonizer */
.brand-web-full--colorized img {
  filter: brightness(0.5) sepia(1) hue-rotate(228deg) saturate(3.5) contrast(1.1);
  mix-blend-mode: soft-light;
}

.scene-sculpture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-sculpture-fade--center::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 20%,
    rgba(255, 255, 255, 0.55) 42%,
    rgba(255, 255, 255, 0.15) 62%,
    transparent 78%
  );
}

.scene-key.scene-sculpture-fade--center::after {
  background: linear-gradient(
    to bottom,
    rgba(247, 245, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 20%,
    rgba(255, 255, 255, 0.5) 42%,
    transparent 72%
  );
}

.scene-white-layout {
  align-items: center;
  justify-content: center;
}

.scene-white-layout .scene-inner,
.scene-white-layout .scene-inner--split {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-inline: auto;
  width: min(100%, 36rem);
}

.scene-white-layout .scene-copy {
  text-align: center;
}

.scene-white-layout .scene-inner--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .scene-white-layout .scene-inner,
  .scene-white-layout .scene-inner--split {
    width: min(100%, 42rem);
  }
}

.scene-white-layout .feature-shot {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  margin-inline: auto;
}

.scene-white-layout .fork-tree {
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scene-sculpture::before {
    opacity: 1;
    transition: none;
  }
}

.scene-key {
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--bg) 100%);
  color: var(--text);
}

.scene-key .scene-label { color: var(--accent); opacity: 1; }

.scene-laws {
  background: var(--bg);
  color: var(--text);
}

.scene-laws .scene-label { color: var(--accent); opacity: 1; }

.scene-harmonize {
  background: linear-gradient(
    155deg,
    rgba(26, 16, 64, 0.98) 0%,
    var(--accent) 46%,
    rgba(61, 37, 153, 0.98) 100%
  );
  color: var(--text-inv);
}

.scene-harmonize--web {
  overflow: hidden;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(5rem, 20vh, 8.5rem);
  padding-bottom: var(--scene-pad);
}

.scene-harmonize--web::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(26, 16, 64, 0.92) 0%,
    rgba(99, 54, 249, 0.72) 22%,
    rgba(99, 54, 249, 0.35) 45%,
    rgba(99, 54, 249, 0.08) 62%,
    transparent 78%
  );
}

.scene-harmonize--web.is-visible .brand-web-full {
  opacity: 0.88;
}

.scene-harmonize .scene-label {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.scene-harmonize .scene-inner {
  position: relative;
  z-index: 2;
}

.scene-harmonize .scene-flow {
  justify-content: center;
  position: relative;
  z-index: 2;
}

.scene-stack {
  background: var(--bg-dark);
  color: var(--text-inv);
}

.scene-receipt {
  background: linear-gradient(180deg, #0a1028 0%, var(--bg-mid) 100%);
  color: var(--text-inv);
}

.scene-fork {
  background: var(--bg);
  color: var(--text);
}

.scene-fork .scene-label { color: var(--accent); opacity: 1; }

.scene-scope {
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.scene-scope--bleed {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-inline: var(--scene-pad);
  padding-bottom: var(--scene-pad);
}

.scene-scope--full-web {
  overflow: hidden;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  justify-content: flex-start;
  align-items: center;
  padding-top: clamp(5rem, 20vh, 8.5rem);
  padding-bottom: var(--scene-pad);
  background: var(--surface);
}

.scene-scope--full-web .scene-scope__copy {
  margin-top: 0;
  align-self: center;
}

.brand-web-full {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  margin: 0;
  line-height: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1.05s ease 0.08s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.scene-scope--full-web.is-visible .brand-web-full {
  opacity: 1;
  transform: translateY(0);
}

.brand-web-full img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.24);
  transform-origin: center bottom;
  object-fit: contain;
  object-position: center bottom;
}

.scene-scope--full-web::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.9) 14%,
    rgba(255, 255, 255, 0.45) 32%,
    transparent 52%
  );
}

.scene-scope--bleed .scene-scope__copy,
.scene-scope--full-web .scene-scope__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  margin-inline: auto;
  padding-inline: 0;
  flex-shrink: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .scene-scope--bleed .scene-scope__copy,
  .scene-scope--full-web .scene-scope__copy {
    width: min(100%, 42rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-web-full {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.scene-scope .scene-label {
  color: var(--accent);
  opacity: 1;
}

.fork-lifecycle {
  list-style: none;
  padding: 0;
  margin: 1.75rem auto 0;
  max-width: 22rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
}

.fork-lifecycle li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.fork-lifecycle li:last-child { border-bottom: none; }

.fork-step {
  display: inline-block;
  min-width: 4.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.35rem;
}

.fork-tree {
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 20rem;
}

.fork-chip {
  display: block;
  width: 100%;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.6875rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(99, 54, 249, 0.1);
}

.fork-chip.fork-main {
  border-color: var(--accent-light);
  font-weight: 600;
}

.fork-branch {
  width: 2px;
  height: 1.25rem;
  background: var(--border);
}

.fork-children {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fork-footnote {
  margin-top: 1.25rem !important;
  font-size: 0.875rem !important;
  font-style: italic;
  opacity: 0.85 !important;
}

.scene-body--scope-lead {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.scope-pills {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 30rem;
  margin-inline: auto;
}

.scope-pills li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 54, 249, 0.08);
  border: 1px solid rgba(99, 54, 249, 0.18);
  color: var(--text);
}

.scene-spectrum {
  background: linear-gradient(165deg, #1a1040 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
  color: var(--text-inv);
}

.scene-spectrum.scene-texture--purple {
  background: linear-gradient(
    165deg,
    rgba(26, 16, 64, 0.94) 0%,
    rgba(99, 54, 249, 0.82) 48%,
    rgba(5, 10, 31, 0.96) 100%
  );
}

.scene-spectrum .scene-label {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.spectrum-pills {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 28rem;
  margin-inline: auto;
}

.spectrum-pills li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.spectrum-tagline {
  margin-top: 2rem !important;
  font-size: clamp(1rem, 3.2vw, 1.25rem) !important;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1 !important;
  text-align: center;
}

.spectrum-tagline em {
  font-style: normal;
  background: var(--bdna-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scene-honest {
  background: #0a1028;
  color: var(--text-inv);
}

.scene-resolution {
  background:
    radial-gradient(ellipse 75% 55% at 50% 40%, rgba(99, 54, 249, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
  color: var(--text-inv);
}

.scene-resolution .scene-label {
  color: var(--accent-light);
  opacity: 1;
}

.scene-body--payoff {
  margin-top: 1.5rem !important;
  font-size: 1.125rem !important;
  opacity: 1 !important;
}

.scene-body--payoff em {
  font-style: normal;
  font-weight: 600;
  color: #c4b5fd;
}

.receipt-panel {
  margin: 2rem auto 0;
  max-width: 20rem;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.receipt-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(61, 154, 181, 0.15);
  border-bottom: 1px solid rgba(61, 154, 181, 0.25);
}

.receipt-panel__status {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.receipt-panel__id {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.55);
}

.receipt-panel__rows {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
}

.receipt-panel__rows li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.receipt-panel__rows li:last-child {
  border-bottom: none;
}

.receipt-panel__rows code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.625rem;
  color: #a5b4fc;
}

.receipt-check {
  flex-shrink: 0;
  color: #7dd3fc;
  font-weight: 700;
}

.receipt-panel__seal {
  padding: 0.5rem 0.85rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(99, 54, 249, 0.2);
  color: #c4b5fd;
}

.fork-tree--simple {
  margin-top: 1.75rem;
}

.fork-tree--simple .fork-chip {
  font-size: 0.75rem;
}

/* Notify form (public closing) */
.notify-form {
  margin: 2rem auto 0;
  max-width: 22rem;
  text-align: left;
}

.notify-form__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.notify-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .notify-form__row {
    flex-direction: row;
    align-items: stretch;
  }
}

.notify-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(
    180deg,
    rgba(210, 198, 255, 0.82) 0%,
    rgba(235, 228, 255, 0.9) 48%,
    rgba(255, 255, 255, 0.96) 100%
  );
  color: var(--bdna-navy);
  font-family: var(--sans);
  font-size: 0.9375rem;
  box-shadow:
    inset 0 5px 14px rgba(45, 25, 110, 0.28),
    inset 0 3px 6px rgba(99, 54, 249, 0.22),
    inset 0 1px 2px rgba(5, 10, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.notify-form__input::placeholder {
  color: rgba(99, 54, 249, 0.45);
}

.notify-form__input:focus {
  outline: none;
  background: linear-gradient(
    180deg,
    rgba(200, 188, 255, 0.88) 0%,
    rgba(230, 222, 255, 0.94) 50%,
    rgba(255, 255, 255, 0.98) 100%
  );
  box-shadow:
    inset 0 6px 16px rgba(45, 25, 110, 0.32),
    inset 0 3px 8px rgba(99, 54, 249, 0.26),
    inset 0 1px 2px rgba(5, 10, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 3px rgba(99, 54, 249, 0.18);
}

.notify-form__btn {
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.notify-form__note {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  opacity: 0.45;
  text-align: center;
}

.notify-form__success {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(61, 154, 181, 0.12);
  border: 1px solid rgba(61, 154, 181, 0.25);
  font-size: 0.875rem;
  text-align: center;
  color: #7dd3fc;
}

.scene-cta {
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(99, 54, 249, 0.55) 0%, var(--bg-dark) 65%);
  color: var(--text-inv);
}

/* Public closing — balanced spacing (logo near fold, not cramped) */
.scene-cta--public {
  align-items: center;
  padding-top: calc(var(--scene-pad) + 2.35rem);
  padding-bottom: calc(var(--scene-pad) + 0.75rem);
}

.scene-cta--public .scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(100%, 36rem);
}

.scene-cta--public .scene-label {
  margin-bottom: 0.9rem;
}

.scene-cta--public .scene-headline {
  margin-bottom: 1.15rem;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
}

.scene-cta--public .scene-body--closing {
  margin-bottom: 1.5rem;
  max-width: none;
  width: 100%;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  line-height: 1.5;
  text-wrap: balance;
}

.scene-cta--public .closing-br {
  display: none;
}

.scene-cta--public .notify-form {
  margin-top: 0.25rem;
  margin-bottom: 0;
  width: 100%;
  max-width: 22rem;
}

.scene-cta--public .notify-form__label {
  margin-bottom: 0.5rem;
}

.scene-cta--public .notify-form__note,
.scene-cta--public .notify-form__success {
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .scene-cta--public .scene-inner {
    width: min(100%, 50rem);
  }

  .scene-cta--public .closing-br {
    display: inline;
  }

  .scene-cta--public .scene-body--closing {
    font-size: 1.0625rem;
    line-height: 1.45;
  }
}

@media (min-width: 768px) {
  .scene-cta--public {
    padding-top: calc(var(--scene-pad) + 2.1rem);
    padding-bottom: calc(var(--scene-pad) + 1rem);
  }

  .scene-cta--public .scene-label {
    margin-bottom: 1rem;
  }

  .scene-cta--public .scene-headline {
    margin-bottom: 1.35rem;
  }

  .scene-cta--public .scene-body--closing {
    margin-bottom: 1.75rem;
  }
}

/* --- Public vs research preview modes --- */
.preview--public #thank-you {
  display: none;
}

.preview--public .feature-shot--research {
  display: none;
}

.preview--public .scene-has-mock .scene-inner--split {
  grid-template-columns: 1fr;
  text-align: center;
}

.preview--public .scene-has-mock .scene-copy {
  text-align: center;
}

.preview--public .scene-cta--research {
  display: none;
}

.preview--research .scene-cta--public {
  display: none;
}

.scene-body--dim {
  margin-top: 1rem !important;
  font-size: 0.9375rem !important;
  font-style: italic;
  opacity: 0.55 !important;
}

.scene-footnote--public .scene-link {
  color: rgba(255, 255, 255, 0.55);
}

/* --- Visual elements --- */
.key-visual {
  position: relative;
  margin-top: 2rem;
  display: inline-block;
}

.key-chip {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.8125rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(99, 54, 249, 0.15);
}

.key-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  border: 2px solid var(--accent-light);
  opacity: 0.4;
  animation: pulse 2.5s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 0; }
}

.scene-stack-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.scene-stack-list li {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.4rem 1.25rem;
  border-bottom: 1px solid var(--border);
  width: min(100%, 14rem);
}

.scene-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.flow-arrow { opacity: 0.5; font-weight: 400; }

.flow-accent {
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.scene-orbit {
  position: relative;
  width: min(280px, 80vw);
  height: min(280px, 80vw);
  margin: 2rem auto 0;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.orbit-item {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}

.orbit-item:nth-child(2) { top: 5%; left: 50%; transform: translateX(-50%); }
.orbit-item:nth-child(3) { bottom: 22%; left: 2%; }
.orbit-item:nth-child(4) { bottom: 22%; right: 2%; }
.orbit-item:nth-child(5) { top: 42%; right: -2%; font-size: 0.65rem; }

.orbit-item-sm {
  padding: 0.35rem 0.6rem !important;
}

.receipt-card {
  text-align: left;
  margin: 2rem auto 0;
  max-width: 20rem;
  padding: 1rem 1.1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 0.6875rem;
  line-height: 1.5;
  overflow-x: auto;
}

.receipt-card code {
  font-family: ui-monospace, "SF Mono", monospace;
  color: #a5b4fc;
}

/* --- Feature screenshots (logged-in Brand Studio) --- */
.feature-shot {
  margin: 1.75rem 0 0;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .feature-shot {
    margin-top: 0;
    max-width: none;
  }
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: cover;
  object-position: top center;
}

.scene-laws .feature-shot img {
  object-position: top left;
}

.feature-shot__cap {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.55);
}

.scene-laws .feature-shot__cap {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

/* --- Product UI mocks (fallback — unused when screenshots present) --- */
.ui-mock {
  margin-top: 1.75rem;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: left;
}

@media (min-width: 768px) {
  .ui-mock {
    margin-top: 0;
    max-width: none;
  }
}

.ui-mock__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6875rem;
}

.ui-mock__dots {
  display: flex;
  gap: 0.25rem;
}

.ui-mock__dots i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.ui-mock__title {
  flex: 1;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.ui-mock__badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(99, 54, 249, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(99, 54, 249, 0.35);
}

.ui-mock__badge--live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(61, 154, 181, 0.2);
  color: #7dd3fc;
  border-color: rgba(61, 154, 181, 0.35);
}

.ui-mock__body {
  padding: 0.85rem;
  background: linear-gradient(165deg, #12182e 0%, #0a1028 100%);
  color: rgba(255, 255, 255, 0.88);
}

.ui-mock__footnote {
  margin: 0.75rem 0 0;
  font-size: 0.5625rem;
  opacity: 0.45;
  line-height: 1.4;
}

/* Scoped Keys mock */
.ui-mock--keys .ui-mock__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.key-panel__label {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.25rem;
}

.key-panel__value {
  display: block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(99, 54, 249, 0.45);
  border-radius: 8px;
  color: #e9d5ff;
}

.key-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.45rem;
  font-size: 0.625rem;
}

.key-panel__scope {
  font-family: ui-monospace, "SF Mono", monospace;
  color: #a5b4fc;
}

.key-panel__inherit {
  opacity: 0.55;
}

.key-panel__beacon {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(61, 154, 181, 0.08);
  border: 1px solid rgba(61, 154, 181, 0.2);
  border-radius: 8px;
  font-size: 0.625rem;
  line-height: 1.35;
}

.key-panel__beacon strong {
  display: block;
  font-size: 0.6875rem;
  color: #7dd3fc;
}

.key-panel__beacon span {
  opacity: 0.65;
}

.beacon-dot,
.beacon-ring {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3d9ab5;
}

.beacon-ring {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
}

.beacon-ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(61, 154, 181, 0.5);
  animation: pulse 2s ease-out infinite;
}

.key-panel__actions {
  display: flex;
  gap: 0.45rem;
}

.ui-btn {
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.ui-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Rules mock */
.rules-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.rules-tab {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}

.rules-tab.is-active {
  background: rgba(99, 54, 249, 0.3);
  color: #e9d5ff;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rules-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 0.625rem;
}

.rule-sev {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.rule-sev--must {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.rule-sev--should {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

.rule-sev--run {
  background: rgba(61, 154, 181, 0.2);
  color: #7dd3fc;
}

.rule-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rule-src {
  font-size: 0.5rem;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rules-merge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.5625rem;
}

.rules-merge__pill {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-merge__arrow {
  opacity: 0.4;
  margin: 0 0.15rem;
}

.rules-merge__tree {
  font-weight: 600;
  color: #c4b5fd;
}

.scene-laws .ui-mock__body {
  color: var(--text);
  background: linear-gradient(165deg, #fafafa 0%, #f3f0ff 100%);
}

.scene-laws .ui-mock__chrome {
  background: #fff;
  border-bottom-color: var(--border);
}

.scene-laws .ui-mock__title {
  color: var(--text);
}

.scene-laws .rules-list li {
  background: #fff;
  border: 1px solid var(--border);
}

.scene-laws .rules-tab {
  background: var(--accent-soft);
  color: var(--muted);
}

.scene-laws .rules-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.scene-laws .rules-merge {
  border-top-color: var(--border);
}

.scene-laws .rules-merge__pill {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

/* Connections mock */
.conn-tier__label {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.4rem;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.conn-tile {
  font-size: 0.5625rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 0.2rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conn-tile--more {
  opacity: 0.55;
  font-style: italic;
}

.conn-hub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.conn-hub__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 54, 249, 0.6), transparent);
}

.conn-hub__core {
  flex-shrink: 0;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(99, 54, 249, 0.2);
  border: 1px solid rgba(99, 54, 249, 0.45);
  min-width: 7.5rem;
}

.conn-hub__core strong {
  display: block;
  font-size: 0.6875rem;
  color: #e9d5ff;
}

.conn-hub__core span {
  font-size: 0.5rem;
  opacity: 0.6;
}

.conn-hub__key {
  display: block;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.5rem;
  color: #a5b4fc;
  margin-bottom: 0.15rem;
}

.ui-mock--connections .conn-tier + .conn-tier {
  margin-top: 0.15rem;
}

@media (max-width: 767px) {
  .scene-has-mock {
    align-items: flex-start;
    padding-top: calc(var(--scene-pad) + 3rem);
    min-height: 100dvh;
  }

  .conn-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conn-tile {
    font-size: 0.625rem;
    padding: 0.4rem 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beacon-ring::after {
    animation: none;
  }
}

/* --- CTA --- */
.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-story {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.btn-story:hover { transform: translateY(-2px); }

.btn-story.primary {
  background: var(--accent);
  color: #fff;
}

.btn-story.primary:hover {
  background: var(--bdna-primary-hover);
}

.btn-story.ghost {
  background: transparent;
  color: var(--text-inv);
  border: 1px solid rgba(255,255,255,0.25);
}

.bdna-block-logo--end {
  margin: 2.5rem auto 1.5rem;
  max-width: min(100%, 15rem);
  opacity: 0.9;
}

.bdna-block-logo--public {
  display: block;
  margin-top: 1.65rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0;
  max-width: min(100%, 16rem);
}

.scene-footnote--public {
  margin-top: 0 !important;
  padding-top: 0;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.bdna-block-logo--end:hover {
  opacity: 1;
}

.scene-footnote {
  margin: 2.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.45;
}

/* --- Fade-in on scroll --- */
.scene-inner {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scene.is-visible .scene-inner {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scene-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
