/* ============================================
   STEWARD — Spatial Environment
   Japanese Design Philosophy
   ============================================ */

/* --- Reset --- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  background-color: #FFFFFC;
  color: #2B2B2B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Time of day --- */

body[data-tod="morning"] { background-color: #FFFEF8; }
body[data-tod="evening"] { background-color: #FCFDFF; }
body[data-tod="night"]   { background-color: #F9FAFC; }

/* --- Ambient field (fixed, always present) --- */

.ambient-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 2000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ambient-field.active {
  opacity: 1;
}

/* --- Cursor warmth trace --- */

.cursor-warmth {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 240, 228, 0.025) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, top;
}

.cursor-warmth.active {
  opacity: 1;
}

/* --- Scroll progress orb --- */

.scroll-orb {
  position: fixed;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(220, 218, 210, 0.35);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
    top 80ms linear,
    background-color 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-orb.visible {
  opacity: 1;
}

/* --- Entry veil --- */

.entry-veil {
  position: fixed;
  inset: 0;
  background-color: #FFFFFC;
  z-index: 100;
  pointer-events: none;
  opacity: 1;
  animation: veilBreathe 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes veilBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.985; }
}

.entry-veil.dissolved {
  animation: none;
  opacity: 0;
}

/* ══════════════════════════════════════
   HERO — Full viewport, centered
   ══════════════════════════════════════ */

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 24px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Title animation (fluid typography) --- */

.hero__identity {
  margin-bottom: 64px;
}

.hero__title {
  font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: #2B2B2B;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-size: clamp(0.6875rem, 0.5rem + 0.5vw, 0.875rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: #6A6A6A;
  margin-top: 14px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) 400ms,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1) 400ms;
}

.hero__subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   MAIN ORB — Alive, distinct, central
   Layered, stateful, aware
   Tone: Shironeri (warm off-white)
   ══════════════════════════════════════ */

.hero__orb-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.main-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  --proximity: 0;
}

/* Aura — outermost field, barely visible, slow orbit */
.main-orb__aura {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  border: 1px solid rgba(220, 218, 210, 0.0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 2000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.present .main-orb__aura {
  opacity: 1;
  border-color: rgba(220, 218, 210, 0.04);
}

.main-orb.alive .main-orb__aura {
  opacity: 1;
  animation: auraPulse 11s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes auraPulse {
  0%, 100% {
    transform: translate(-50%, -55%) scale(1);
    border-color: rgba(220, 218, 210, 0.03);
  }
  50% {
    transform: translate(-50%, -55%) scale(1.04);
    border-color: rgba(220, 218, 210, 0.06);
  }
}

/* Glow — warm Shironeri-tinted halo */
.main-orb__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 240, 228, 0.10) 0%,
    rgba(234, 229, 220, 0.05) 35%,
    rgba(234, 229, 220, 0.02) 55%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.present .main-orb__glow {
  opacity: 1;
}

.main-orb.alive .main-orb__glow {
  animation: glowBreathe 11s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  filter: brightness(calc(1 + var(--proximity) * 0.15));
}

@keyframes glowBreathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -55%) scale(1.03); }
}

.main-orb__body {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.present .main-orb__body {
  opacity: 1;
  transform: scale(1);
}

/* Core — Shironeri warm ivory undertone */
.main-orb__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 42% 36%,
    #FDFCF6 0%,
    #FAF8F0 18%,
    #F5F3EB 40%,
    #EFEDE6 65%,
    #E6E3DA 100%
  );
  box-shadow:
    0 2px 80px rgba(0, 0, 0, 0.02),
    0 0 120px rgba(234, 229, 220, 0.18),
    0 0 50px rgba(243, 240, 228, 0.12),
    inset 0 -6px 40px rgba(180, 175, 160, 0.04),
    inset 0 4px 16px rgba(253, 252, 246, 0.9);
  transition: box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Inner light — secondary rhythm, shifts independently */
.main-orb__inner-light {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 34%,
    rgba(253, 252, 246, 0.6) 0%,
    rgba(250, 248, 240, 0.2) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
  translate: 0 var(--parallax-y, 0px);
}

.main-orb.present .main-orb__inner-light {
  opacity: 0.5;
}

.main-orb.alive .main-orb__inner-light {
  animation: innerLightBreathe 11s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes innerLightBreathe {
  0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
  30% { opacity: 0.7; transform: scale(1.02) translate(-1%, -1%); }
  70% { opacity: 0.5; transform: scale(0.98) translate(1%, 1%); }
}

/* Surface highlight */
.main-orb__surface {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 46% 40%,
    rgba(253, 252, 246, 0.55) 0%,
    rgba(250, 248, 240, 0.25) 40%,
    rgba(243, 240, 228, 0.08) 70%,
    transparent 100%
  );
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  translate: 0 var(--parallax-y, 0px);
}

/* Pulse ring — primary life signal */
.main-orb__pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(220, 218, 210, 0.08);
  opacity: 0;
  animation: none;
  pointer-events: none;
}

/* Secondary pulse — offset rhythm */
.main-orb__pulse--secondary {
  inset: -16px;
  border-color: rgba(220, 218, 210, 0.04);
}

.main-orb.alive .main-orb__pulse {
  opacity: 1;
  animation: orbPulse 4.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.main-orb.alive .main-orb__pulse--secondary {
  opacity: 1;
  animation: orbPulse 4.5s cubic-bezier(0.22, 1, 0.36, 1) 2.25s infinite;
}

@keyframes orbPulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
    border-color: rgba(220, 218, 210, 0.12);
  }
  60% {
    transform: scale(1.14);
    opacity: 0;
    border-color: rgba(220, 218, 210, 0);
  }
  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

/* Main orb breathing — 7s primary, polyrhythmic with 11s glow/inner-light */
.main-orb.alive .main-orb__body {
  animation: mainOrbBreathe 7s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes mainOrbBreathe {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
  55% { transform: scale(1.04); }
}

/* Main orb ground — warm shadow, uses transform not width */
.main-orb__ground {
  width: 260px;
  height: 1px;
  margin-top: 28px;
  background: radial-gradient(ellipse at center, rgba(200, 195, 182, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.present .main-orb__ground {
  opacity: 1;
}

.main-orb.alive .main-orb__ground {
  animation: groundBreathe 7s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes groundBreathe {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.7; transform: scaleX(1.08); }
}

/* ── HERO ORB STATE: LISTENING ──
   Energy gathers inward. Attentive. Focused. */

.main-orb.listening .main-orb__body {
  animation: none;
  transform: scale(1.02);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.listening .main-orb__core {
  box-shadow:
    0 2px 80px rgba(0, 0, 0, 0.015),
    0 0 140px rgba(234, 229, 220, 0.22),
    0 0 60px rgba(243, 240, 228, 0.18),
    inset 0 -4px 30px rgba(180, 175, 160, 0.025),
    inset 0 4px 20px rgba(253, 252, 246, 1);
}

.main-orb.listening .main-orb__inner-light {
  animation: innerLightListen 3s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes innerLightListen {
  0%, 100% { opacity: 0.7; transform: scale(1.02); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.main-orb.listening .main-orb__glow {
  animation: none;
  opacity: 1.0;
  transform: translate(-50%, -55%) scale(1.06);
  transition: all 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.listening .main-orb__aura {
  animation: auraListen 2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes auraListen {
  0%, 100% {
    transform: translate(-50%, -55%) scale(1);
    border-color: rgba(220, 218, 210, 0.05);
  }
  50% {
    transform: translate(-50%, -55%) scale(1.02);
    border-color: rgba(220, 218, 210, 0.09);
  }
}

.main-orb.listening .main-orb__pulse {
  animation: orbPulseListening 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.main-orb.listening .main-orb__pulse--secondary {
  animation: orbPulseListening 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s infinite;
}

@keyframes orbPulseListening {
  0% {
    transform: scale(1);
    opacity: 0.45;
    border-color: rgba(220, 218, 210, 0.18);
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

/* ── HERO ORB STATE: PROCESSING ──
   Concentrated rhythm. Deliberate energy. */

.main-orb.processing .main-orb__body {
  animation: mainOrbProcess 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes mainOrbProcess {
  0%, 100% { transform: scale(1.02); }
  35% { transform: scale(1.06); }
  65% { transform: scale(1.05); }
}

.main-orb.processing .main-orb__core {
  box-shadow:
    0 2px 80px rgba(0, 0, 0, 0.02),
    0 0 100px rgba(234, 229, 220, 0.15),
    0 0 40px rgba(243, 240, 228, 0.10),
    inset 0 -6px 40px rgba(180, 175, 160, 0.04),
    inset 0 4px 16px rgba(253, 252, 246, 0.85);
}

.main-orb.processing .main-orb__inner-light {
  animation: innerLightProcess 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes innerLightProcess {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.main-orb.processing .main-orb__surface {
  opacity: 0.35;
  animation: surfaceProcess 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes surfaceProcess {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.main-orb.processing .main-orb__pulse {
  animation: orbPulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.main-orb.processing .main-orb__pulse--secondary {
  animation: orbPulse 2s cubic-bezier(0.22, 1, 0.36, 1) 1s infinite;
}

.main-orb.processing .main-orb__glow {
  animation: glowProcess 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes glowProcess {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.main-orb.processing .main-orb__aura {
  animation: auraProcess 2.4s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes auraProcess {
  0%, 100% { border-color: rgba(220, 218, 210, 0.04); }
  50% { border-color: rgba(220, 218, 210, 0.08); }
}

/* ── HERO ORB STATE: PATIENCE ──
   Deeper, slower breathing. The orb has settled into your presence. */

.main-orb.patience .main-orb__body {
  animation: mainOrbBreatheDeep 10s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes mainOrbBreatheDeep {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.main-orb.patience .main-orb__glow {
  animation: glowBreatheDeep 10s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes glowBreatheDeep {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -55%) scale(1.05); }
}

.main-orb.patience .main-orb__inner-light {
  animation: innerLightDeep 13s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes innerLightDeep {
  0%, 100% { opacity: 0.45; transform: scale(1) translate(0, 0); }
  35% { opacity: 0.75; transform: scale(1.03) translate(-1.5%, -1.5%); }
  65% { opacity: 0.55; transform: scale(0.97) translate(1.5%, 1.5%); }
}

/* ── Orb intent (long-press, mobile) ── */

.main-orb.intent .main-orb__body {
  animation: none;
  transform: scale(1.08);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.intent .main-orb__glow {
  animation: none;
  opacity: 1;
  transform: translate(-50%, -55%) scale(1.08);
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-orb.intent .main-orb__inner-light {
  animation: none;
  opacity: 0.8;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Orb active (touch/press) ── */

.main-orb:active .main-orb__body {
  transform: scale(0.97);
  transition: transform 100ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Orb focus (keyboard) ── */

.main-orb:focus-visible {
  outline: none;
}

.main-orb:focus-visible .main-orb__aura {
  border-color: rgba(220, 218, 210, 0.12) !important;
  opacity: 1;
}

/* --- Voice prompt --- */

.hero__prompt {
  height: 24px;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__prompt.visible {
  opacity: 1;
}

.prompt-text,
.prompt-listening {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #6A6A6A;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.prompt-listening {
  display: none;
  letter-spacing: 0.08em;
}

.hero__prompt.is-listening .prompt-text {
  display: none;
}

.hero__prompt.is-listening .prompt-listening {
  display: inline;
  animation: listenPulse 2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes listenPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Text input fallback --- */

.hero__text-input {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
}

.hero__text-input.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #2B2B2B;
  text-align: center;
  letter-spacing: 0.005em;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(220, 218, 210, 0.25);
  padding: 10px 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.text-input::placeholder {
  color: #BCBCBC;
  font-weight: 300;
}

.text-input:focus {
  border-color: rgba(220, 218, 210, 0.5);
}

/* --- Transcript --- */

.hero__transcript {
  font-size: 1rem;
  font-weight: 300;
  color: #2B2B2B;
  text-align: center;
  min-height: 28px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__transcript.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__transcript.dissolving {
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 400ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Ghost transcript — remembered phrase from last visit */
.hero__transcript.ghost {
  color: #6A6A6A;
}

.hero__transcript.ghost.visible {
  opacity: 0.08;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   ENVIRONMENT — Scrollable content
   ══════════════════════════════════════ */

.environment {
  position: relative;
  z-index: 1;
}

/* --- MA: Space --- */

.space {
  pointer-events: none;
  position: relative;
}

.space--breath {
  height: 50vh;
}

.space--short {
  height: 25vh;
}

.space--settling {
  height: 60vh;
}

.space--closing {
  height: 40vh;
}

/* --- Breath lines — rhythm markers between experiences --- */

.breath-line {
  width: 40px;
  height: 1px;
  margin: 0 auto;
  background: rgba(220, 218, 210, 0);
  transition: background-color 800ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  top: 50%;
}

.breath-line.visible {
  background: rgba(220, 218, 210, 0.15);
}

/* --- Moment --- */

.moment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px;
  position: relative;
}

.moment__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
}

/* --- Shared orb visual (experience orbs) --- */
/* CSS vars defined at section level for proper cascading */

.moment--experience {
  --orb-warm: 244, 243, 239;
  --orb-edge: 228, 226, 220;
  --orb-shadow: 200, 198, 192;
  --orb-highlight: 253, 252, 250;
  scroll-snap-align: start;
}

.exp-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.exp-orb .orb-core {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 44% 38%,
    rgba(var(--orb-highlight), 1) 0%,
    rgba(var(--orb-warm), 1) 25%,
    rgba(var(--orb-warm), 0.85) 50%,
    rgba(var(--orb-edge), 1) 100%
  );
  box-shadow:
    0 1px 40px rgba(var(--orb-shadow), 0.06),
    0 0 80px rgba(var(--orb-edge), 0.10),
    inset 0 -2px 14px rgba(var(--orb-shadow), 0.03),
    inset 0 2px 6px rgba(var(--orb-highlight), 0.7);
  transition:
    box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
  translate: 0 var(--parallax-y, 0px);
}

.exp-orb .orb-surface {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 48% 42%,
    rgba(var(--orb-highlight), 0.4) 0%,
    rgba(var(--orb-warm), 0.15) 60%,
    transparent 100%
  );
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  translate: 0 var(--parallax-y, 0px);
}

/* ── Japanese Color Tones per Experience ──
   Defined at section level so both .exp-orb and .ground-plane inherit */

/* Send — Gin Nezumi (銀鼠) soft silver gray */
[data-experience="send"] {
  --orb-warm: 238, 238, 240;
  --orb-edge: 208, 210, 216;
  --orb-shadow: 175, 178, 185;
  --orb-highlight: 250, 250, 252;
}

/* Forgot — Aisumicha (藍墨茶) muted indigo gray */
[data-experience="forgot"] {
  --orb-warm: 236, 237, 240;
  --orb-edge: 200, 204, 212;
  --orb-shadow: 160, 165, 178;
  --orb-highlight: 248, 249, 252;
}

/* Access — Fukagawa Nezumi (深川鼠) deep blue-gray */
[data-experience="access"] {
  --orb-warm: 234, 239, 241;
  --orb-edge: 196, 210, 216;
  --orb-shadow: 155, 175, 182;
  --orb-highlight: 247, 250, 252;
}

/* Ambient — Sabimidori (錆緑) rusted green */
[data-experience="ambient"] {
  --orb-warm: 237, 241, 236;
  --orb-edge: 204, 214, 200;
  --orb-shadow: 162, 178, 155;
  --orb-highlight: 249, 252, 248;
}

/* Gochip — Rikyū Nezumi (利休鼠) tea gray */
[data-experience="gochip"] {
  --orb-warm: 240, 239, 234;
  --orb-edge: 214, 210, 198;
  --orb-shadow: 178, 172, 155;
  --orb-highlight: 252, 251, 247;
}

/* Dynamic (voice-generated) — Benikeshinezumi (紅消鼠) faded plum gray */
.moment--dynamic {
  --orb-warm: 240, 237, 239;
  --orb-edge: 214, 206, 212;
  --orb-shadow: 178, 165, 175;
  --orb-highlight: 252, 250, 251;
}

/* Ground plane — inherits orb tone from section */

.ground-plane {
  width: 180px;
  height: 1px;
  margin-top: 20px;
  background: radial-gradient(ellipse at center, rgba(var(--orb-shadow), 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Experience moments --- */

.moment--experience {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed {
  opacity: 1;
  transform: translateY(0);
}

.experience-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.exp-orb {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .exp-orb {
  opacity: 1;
  transform: scale(1);
}

/* Experience orb state animations — each state has distinct energy */

.exp-orb[data-state="breathing"] {
  animation: expOrbBreathe 6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.exp-orb[data-state="breathing"] .orb-core {
  box-shadow:
    0 1px 40px rgba(var(--orb-shadow), 0.06),
    0 0 80px rgba(var(--orb-edge), 0.10),
    inset 0 -2px 14px rgba(var(--orb-shadow), 0.03),
    inset 0 2px 6px rgba(var(--orb-highlight), 0.7);
}

@keyframes expOrbBreathe {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.025); }
  55% { transform: scale(1.03); }
}

.exp-orb[data-state="listening"] {
  animation: none;
  transform: scale(1.02);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-orb[data-state="listening"] .orb-core {
  box-shadow:
    0 1px 50px rgba(var(--orb-shadow), 0.08),
    0 0 100px rgba(var(--orb-edge), 0.14),
    inset 0 -2px 14px rgba(var(--orb-shadow), 0.02),
    inset 0 3px 10px rgba(var(--orb-highlight), 0.85);
}

.exp-orb[data-state="processing"] {
  animation: expOrbProcess 2.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.exp-orb[data-state="processing"] .orb-core {
  box-shadow:
    0 1px 40px rgba(var(--orb-shadow), 0.05),
    0 0 70px rgba(var(--orb-edge), 0.08),
    inset 0 -3px 20px rgba(var(--orb-shadow), 0.035),
    inset 0 3px 12px rgba(var(--orb-highlight), 0.8);
}

@keyframes expOrbProcess {
  0%, 100% { transform: scale(1.01); }
  35% { transform: scale(1.04); }
  65% { transform: scale(1.035); }
}

.exp-orb[data-state="executing"] {
  animation: none;
  transform: scale(1.05);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-orb[data-state="executing"] .orb-core {
  box-shadow:
    0 2px 60px rgba(var(--orb-shadow), 0.07),
    0 0 120px rgba(var(--orb-edge), 0.12),
    inset 0 -2px 14px rgba(var(--orb-shadow), 0.02),
    inset 0 3px 10px rgba(var(--orb-highlight), 0.9);
}

.exp-orb[data-state="executing"] .orb-surface {
  opacity: 0.25;
}

.moment--experience.revealed .ground-plane {
  opacity: 1;
}

/* --- Dynamic experience --- */

.moment--dynamic {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--dynamic.revealed {
  opacity: 1;
  transform: translateY(0);
}

.moment--dynamic.revealed .exp-orb {
  opacity: 1;
  transform: scale(1);
}

.moment--dynamic.revealed .ground-plane {
  opacity: 1;
}

.moment--dynamic.revealed .experience-context {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 200ms;
}

.moment--dynamic.revealed .intent-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 400ms;
}

.moment--dynamic.revealed .execution-surface {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 600ms;
}

.moment--dynamic.revealed .trace {
  opacity: 1;
  transform: translateY(0);
}

.moment--dynamic.revealed .trace:nth-child(1) { transition-delay: 800ms; }
.moment--dynamic.revealed .trace:nth-child(2) { transition-delay: 940ms; }
.moment--dynamic.revealed .trace:nth-child(3) { transition-delay: 1080ms; }
.moment--dynamic.revealed .trace:nth-child(4) { transition-delay: 1220ms; }

.moment--dynamic.revealed .state-step {
  opacity: 1;
  transform: translateY(0);
}

.moment--dynamic.revealed .state-step[data-order="0"] { transition-delay: 1400ms; }
.moment--dynamic.revealed .state-step[data-order="1"] { transition-delay: 1600ms; }
.moment--dynamic.revealed .state-step[data-order="2"] { transition-delay: 1800ms; }
.moment--dynamic.revealed .state-step[data-order="3"] { transition-delay: 2000ms; }

.moment--dynamic.revealed .state-dot {
  opacity: 1;
  transition-delay: 1500ms;
}

/* --- Experience context --- */

.experience-context {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #6A6A6A;
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .experience-context {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

/* --- Intent text --- */

.intent-text {
  font-size: clamp(0.875rem, 0.6rem + 0.5vw, 0.9375rem);
  font-weight: 300;
  color: #2B2B2B;
  letter-spacing: 0.005em;
  text-align: center;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .intent-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 400ms;
}

.ambient-intent {
  font-style: italic;
  color: #6A6A6A;
}

/* --- Execution surface --- */

.execution-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .execution-surface {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 700ms;
}

/* --- Trace lines --- */

.trace-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
  padding: 28px 36px;
  background: #F8F8F8;
  border-radius: 16px;
  border: 1px solid rgba(234, 229, 227, 0.4);
  width: 100%;
  max-width: 360px;
}

.trace {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6A6A6A;
  letter-spacing: 0.015em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .trace {
  opacity: 1;
  transform: translateY(0);
}

.moment--experience.revealed .trace:nth-child(1) { transition-delay: 900ms; }
.moment--experience.revealed .trace:nth-child(2) { transition-delay: 1040ms; }
.moment--experience.revealed .trace:nth-child(3) { transition-delay: 1180ms; }
.moment--experience.revealed .trace:nth-child(4) { transition-delay: 1320ms; }

/* --- State flow --- */

.state-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.state-step {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #6A6A6A;
  letter-spacing: 0.06em;
  background: #FBFAF5;
  border: 1px solid #EAE5E3;
  border-radius: 100px;
  padding: 5px 16px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .state-step[data-order="0"] { transition-delay: 1500ms; }
.moment--experience.revealed .state-step[data-order="1"] { transition-delay: 1700ms; }
.moment--experience.revealed .state-step[data-order="2"] { transition-delay: 1900ms; }
.moment--experience.revealed .state-step[data-order="3"] { transition-delay: 2100ms; }

.moment--experience.revealed .state-step {
  opacity: 1;
  transform: translateY(0);
}

.state-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #DCDDDD;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .state-dot {
  opacity: 1;
  transition-delay: 1600ms;
}

/* --- GoChip visual --- */

.gochip-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .gochip-visual {
  opacity: 1;
  transition-delay: 800ms;
}

.gochip-object {
  position: relative;
  width: 72px;
  height: 50px;
}

.gochip-form {
  width: 72px;
  height: 50px;
  border-radius: 10px;
  background: #F3F3F3;
  border: 1px solid #EAE5E3;
}

.gochip-tag {
  position: absolute;
  top: -5px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E5E4E6;
  border: 2px solid #FFFFFC;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--experience.revealed .gochip-tag {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1100ms;
}

/* --- Framing (fluid typography) --- */

.moment--framing {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.moment__inner--text {
  max-width: 520px;
  text-align: center;
}

.framing-headline {
  font-size: clamp(1.375rem, 0.8rem + 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin-bottom: 28px;
}

.framing-sub {
  font-size: clamp(0.9375rem, 0.7rem + 0.6vw, 1.0625rem);
  font-weight: 300;
  color: #2B2B2B;
  line-height: 1.7;
  margin-bottom: 28px;
}

.framing-detail {
  font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 0.9375rem);
  font-weight: 300;
  color: #6A6A6A;
  line-height: 1.8;
}

/* --- Principle --- */

.moment--principle {
  min-height: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.principle-text {
  font-size: clamp(0.875rem, 0.6rem + 0.6vw, 1rem);
  font-weight: 300;
  color: #2B2B2B;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.principle-text:last-child {
  margin-bottom: 0;
}

/* --- Section label --- */

.moment--label {
  min-height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: #DCDDDD;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* --- Feeling --- */

.moment--feeling {
  min-height: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.feeling-line {
  font-size: clamp(0.9375rem, 0.7rem + 0.6vw, 1.0625rem);
  font-weight: 300;
  color: #2B2B2B;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.7;
}

.feeling-line:last-child {
  margin-bottom: 0;
}

.feeling-line--emphasis {
  margin-top: 16px;
  font-weight: 400;
}

/* --- Scroll-reveal (spring overshoot) --- */

.reveal-text {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Realization --- */

.moment--realization {
  min-height: 80vh;
}

.realization-text {
  font-size: clamp(0.8125rem, 0.6rem + 0.5vw, 0.9375rem);
  font-weight: 300;
  color: #6A6A6A;
  letter-spacing: 0.005em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--realization.revealed .realization-text {
  opacity: 1;
  transform: translateY(0);
}

/* --- Closing orb — Kogecha (焦茶) deep brown tone --- */

.moment--closing-orb {
  min-height: 40vh;
  --orb-warm: 238, 234, 230;
  --orb-edge: 210, 200, 190;
  --orb-shadow: 155, 145, 130;
  --orb-highlight: 250, 248, 245;
}

.closing-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--closing-orb.revealed .closing-orb {
  opacity: 1;
  transform: translateY(0);
}

.closing-orb__body {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
}

.closing-orb__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 44% 38%,
    rgba(var(--orb-highlight), 1) 0%,
    rgba(var(--orb-warm), 1) 30%,
    rgba(var(--orb-edge), 1) 100%
  );
  box-shadow:
    0 1px 30px rgba(var(--orb-shadow), 0.05),
    0 0 60px rgba(var(--orb-edge), 0.08),
    inset 0 -2px 10px rgba(var(--orb-shadow), 0.03),
    inset 0 2px 5px rgba(var(--orb-highlight), 0.6);
}

.closing-orb__surface {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 48% 42%,
    rgba(var(--orb-highlight), 0.35) 0%,
    rgba(var(--orb-warm), 0.12) 60%,
    transparent 100%
  );
}

.closing-orb.alive .closing-orb__body {
  animation: closingOrbBreathe 8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes closingOrbBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.closing-orb__ground {
  width: 100px;
  height: 1px;
  margin-top: 16px;
  background: radial-gradient(ellipse at center, rgba(var(--orb-shadow), 0.12) 0%, transparent 70%);
}

/* Closing orb acknowledging — pulses once when access button clicked */
.closing-orb.acknowledging .closing-orb__body {
  animation: closingOrbAck 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes closingOrbAck {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.closing-orb.acknowledging .closing-orb__core {
  box-shadow:
    0 1px 40px rgba(var(--orb-shadow), 0.08),
    0 0 80px rgba(var(--orb-edge), 0.14),
    inset 0 -2px 10px rgba(var(--orb-shadow), 0.02),
    inset 0 2px 8px rgba(var(--orb-highlight), 0.8);
  transition: box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Access (with orb glow) --- */

.moment--access {
  min-height: 60vh;
}

.moment--access .moment__inner {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.moment--access.revealed .moment__inner {
  opacity: 1;
  transform: translateY(0);
}

.access-button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #2B2B2B;
  background: #F8F8F8;
  border: 1px solid #EAE5E3;
  border-radius: 12px;
  padding: 16px 52px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

.access-button::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(234, 229, 220, 0) 0%, transparent 70%);
  transition: background 400ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: -1;
}

.access-button:hover {
  background: #F3F3F3;
}

.access-button:hover::before {
  background: radial-gradient(circle, rgba(234, 229, 220, 0.06) 0%, transparent 70%);
}

.access-button:active {
  transform: scale(0.985);
}

.access-button:focus-visible {
  outline: 2px solid #DCDDDD;
  outline-offset: 4px;
}

/* --- Footer --- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 60px;
}

.footer__mark {
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: #DCDDDD;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__line {
  width: 40px;
  height: 1px;
  background: rgba(220, 218, 210, 0.15);
}

/* --- Responsive --- */

@media (max-width: 480px) {
  .main-orb__body {
    width: 160px;
    height: 160px;
  }

  .main-orb__glow {
    width: 270px;
    height: 270px;
  }

  .main-orb__aura {
    width: 280px;
    height: 280px;
  }

  .exp-orb {
    width: 120px;
    height: 120px;
  }

  .ground-plane {
    width: 140px;
  }

  .moment {
    padding: 60px 20px;
  }

  .trace-lines {
    padding: 22px 28px;
  }

  .space--breath {
    height: 35vh;
  }

  .space--short {
    height: 18vh;
  }

  .closing-orb__body {
    width: 64px;
    height: 64px;
  }

  .closing-orb__ground {
    width: 80px;
  }

  .cursor-warmth {
    display: none;
  }
}

/* --- Selection --- */

::selection {
  background-color: #EAE5E3;
  color: #2B2B2B;
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
  width: 0;
}

body {
  scrollbar-width: none;
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }

  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .cursor-warmth,
  .scroll-orb,
  .main-orb__pulse,
  .main-orb__pulse--secondary,
  .main-orb__aura {
    display: none;
  }
}
