:root {
  color-scheme: dark;
  --void: #030303;
  --ink: #050505;
  --plum: #0a080c;
  --oxide: #3a0b0b;
  --oxide-glow: rgba(90, 24, 28, 0.45);
  --clinical: #1c2d38;
  --candle: #e4e0da;
  --blush: #c4a8a0;
  --mist: rgba(228, 224, 218, 0.4);
  --muted: rgba(168, 165, 175, 0.55);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-bright: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(4, 4, 6, 0.78);
  --glass-edge: var(--hairline);
  --glass-highlight: rgba(255, 255, 255, 0.04);
  --gloss-sheen: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-ui: "Inter", system-ui, sans-serif;
  font-family: var(--font-ui);
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  color: var(--candle);
  line-height: 1.6;
  font-weight: 400;
  font-size: 1.02rem;
  background: var(--void);
  background-image: radial-gradient(ellipse 100% 70% at 50% -8%, rgba(48, 22, 28, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 42% at 95% 35%, rgba(22, 40, 52, 0.18) 0%, transparent 48%),
    radial-gradient(ellipse 45% 38% at 3% 75%, rgba(40, 18, 24, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #010101 0%, var(--void) 45%, #000000 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-breath {
  position: absolute;
  inset: -25%;
  z-index: 0;
  opacity: 0.45;
  will-change: transform;
  background: radial-gradient(ellipse 75% 58% at 28% 22%, rgba(55, 28, 35, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 65% 52% at 72% 78%, rgba(24, 36, 48, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(20, 18, 22, 0.12) 0%, transparent 55%);
  mix-blend-mode: screen;
  animation: breath-pan 105s ease-in-out infinite alternate;
}

@keyframes breath-pan {
  0% {
    transform: translate(-7%, -5%) scale(1.04) rotate(0.35deg);
  }
  100% {
    transform: translate(9%, 8%) scale(1.14) rotate(-0.45deg);
  }
}

/* Whisper-soft color drift: “shadows breathing,” barely-there */
.ambient-psych {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.045;
  background: radial-gradient(ellipse 75% 58% at 28% 32%, rgba(62, 48, 98, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 70% 52% at 72% 68%, rgba(32, 78, 68, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 48% 48%, rgba(52, 26, 42, 0.18) 0%, transparent 48%);
  animation: ambient-psych-drift 145s ease-in-out infinite alternate;
  will-change: opacity, transform, filter;
}

@keyframes ambient-psych-drift {
  0% {
    opacity: 0.038;
    transform: translate(-0.8%, -0.6%) scale(1);
    filter: hue-rotate(-6deg) saturate(1.03);
  }
  35% {
    opacity: 0.058;
    transform: translate(1.2%, 0.4%) scale(1.008);
    filter: hue-rotate(8deg) saturate(1.06);
  }
  70% {
    opacity: 0.048;
    transform: translate(0.4%, 1%) scale(1.004);
    filter: hue-rotate(18deg) saturate(1.04);
  }
  100% {
    opacity: 0.052;
    transform: translate(-0.5%, 0.5%) scale(1.006);
    filter: hue-rotate(-3deg) saturate(1.05);
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.52;
  will-change: transform;
  animation: drift-a 54s ease-in-out infinite;
}

.orb-a {
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  top: -16%;
  left: -14%;
  background: radial-gradient(circle, rgba(108, 48, 64, 0.55) 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-b {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  bottom: -14%;
  right: -10%;
  background: radial-gradient(circle, rgba(32, 48, 88, 0.58) 0%, transparent 72%);
  animation: drift-b 64s ease-in-out infinite;
  animation-delay: -11s;
}

.orb-c {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 34%;
  right: 12%;
  background: radial-gradient(circle, rgba(130, 100, 118, 0.22) 0%, transparent 74%);
  animation: drift-c 76s ease-in-out infinite;
  animation-delay: -19s;
  opacity: 0.42;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(5%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-4%, -5%) scale(0.97);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1.02);
  }
  40% {
    transform: translate(-5%, 3%) scale(1.04);
  }
  75% {
    transform: translate(4%, -4%) scale(0.98);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, -2%) scale(1.06);
  }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain-live 22s ease-in-out infinite alternate;
}

@keyframes grain-live {
  0% {
    opacity: 0.034;
  }
  100% {
    opacity: 0.056;
  }
}

.ambient-mist {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.ambient-mist--deep {
  background: radial-gradient(ellipse 95% 58% at 48% 108%, rgba(28, 58, 98, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 48% 38% at 12% 22%, rgba(62, 32, 50, 0.16) 0%, transparent 56%);
  animation: mist-waltz-a 72s ease-in-out infinite;
  opacity: 0.72;
}

.ambient-mist--front {
  background: radial-gradient(ellipse 70% 45% at 78% 18%, rgba(48, 36, 72, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 55% 40% at 20% 85%, rgba(24, 52, 82, 0.12) 0%, transparent 50%);
  mix-blend-mode: soft-light;
  animation: mist-waltz-b 84s ease-in-out infinite reverse;
  opacity: 0.55;
}

@keyframes mist-waltz-a {
  0%,
  100% {
    opacity: 0.52;
    transform: translate(-4%, 2%) scale(1);
  }
  45% {
    opacity: 0.85;
    transform: translate(5%, -4%) scale(1.05);
  }
}

@keyframes mist-waltz-b {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(3%, -2%) scale(1.02);
  }
  50% {
    opacity: 0.68;
    transform: translate(-6%, 4%) scale(1.08);
  }
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 180px 70px rgba(0, 0, 0, 0.78);
}

.glass-sheet {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    0 12px 48px rgba(0, 0, 0, 0.55);
  animation: glass-ambient-pulse 32s ease-in-out infinite alternate;
}

.glass-sheet::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background: linear-gradient(
    122deg,
    transparent 30%,
    rgba(180, 205, 255, 0.14) 47%,
    rgba(255, 245, 235, 0.1) 50%,
    rgba(200, 160, 195, 0.08) 53%,
    transparent 70%
  );
  background-size: 200% 200%;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: glass-light-slide 36s ease-in-out infinite;
  pointer-events: none;
}

.glass-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 38%),
    linear-gradient(0deg, rgba(80, 40, 60, 0.06) 0%, transparent 32%);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  animation: glass-rim-breathe 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.glass-sheet > * {
  position: relative;
  z-index: 1;
}

@keyframes glass-light-slide {
  0%,
  100% {
    background-position: 5% 20%;
    opacity: 0.38;
    transform: translate(-2%, 1%) rotate(-4deg) scale(1.04);
  }
  50% {
    background-position: 95% 80%;
    opacity: 0.68;
    transform: translate(2%, -1%) rotate(3deg) scale(1.07);
  }
}

@keyframes glass-rim-breathe {
  0%,
  100% {
    opacity: 0.32;
  }
  50% {
    opacity: 0.58;
  }
}

@keyframes glass-ambient-pulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px rgba(0, 0, 0, 0.65),
      0 12px 48px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.62),
      0 14px 52px rgba(0, 0, 0, 0.52), 0 0 100px rgba(60, 40, 90, 0.1);
  }
}

.site-header {
  position: relative;
  z-index: 3;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2rem) 0;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.glass-bar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.55rem 0.85rem;
  border-radius: 3px;
  background: rgba(3, 3, 4, 0.82);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: glass-bar-edge-pulse 36s ease-in-out infinite alternate;
}

.glass-bar::before {
  content: "";
  position: absolute;
  inset: -50% -25%;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 32%,
    rgba(200, 220, 255, 0.12) 48%,
    rgba(255, 230, 220, 0.1) 50%,
    transparent 64%
  );
  background-size: 180% 140%;
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: glass-bar-light-drift 40s ease-in-out infinite;
  pointer-events: none;
}

.glass-bar > * {
  position: relative;
  z-index: 1;
}

@keyframes glass-bar-light-drift {
  0%,
  100% {
    background-position: 8% 35%;
    opacity: 0.35;
    transform: translate(-2%, 1%) rotate(-3deg);
  }
  50% {
    background-position: 92% 60%;
    opacity: 0.62;
    transform: translate(2%, -1%) rotate(2.5deg);
  }
}

@keyframes glass-bar-edge-pulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 9px 36px rgba(0, 0, 0, 0.58),
      0 0 60px rgba(40, 55, 85, 0.045);
  }
}

.nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

/* Grouped “tab” links: Home · Loop · Well · Finance · Pulse */
.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.1rem;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-tabs .nav-link {
  padding: 0.45rem 0.65rem;
  min-height: 40px;
  border-radius: 2px;
}

.nav-tabs .nav-link + .nav-link {
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  margin-left: 0.05rem;
  padding-left: 0.7rem;
}

.nav-link {
  position: relative;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    background 0.18s var(--ease-out), transform 0.15s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gloss-sheen);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}

.nav-link:hover {
  color: var(--candle);
  border-color: var(--hairline-bright);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover::after {
  transform: translateX(120%);
}

.nav-link:active {
  transform: scale(0.98);
}

.nav-link.is-active {
  color: rgba(232, 210, 208, 0.92);
  border-color: rgba(90, 28, 32, 0.55);
  background: linear-gradient(180deg, rgba(58, 11, 11, 0.35) 0%, rgba(20, 8, 10, 0.5) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.nav-link.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
}

.nav-link.nav-icon:hover {
  color: var(--candle);
}

.nav-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sound-toggle {
  cursor: pointer;
  border: none;
  margin: 0;
  font: inherit;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sound-toggle:focus-visible {
  outline: 1px solid rgba(120, 40, 48, 0.65);
  outline-offset: 3px;
}

.sound-toggle:disabled {
  opacity: 0.45;
  cursor: wait;
}

.sound-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sound-toggle .sound-toggle__icon--on {
  display: none;
}

.sound-toggle.is-on .sound-toggle__icon--off {
  display: none;
}

.sound-toggle.is-on .sound-toggle__icon--on {
  display: block;
}

.sound-toggle__label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sound-toggle.is-on .sound-toggle__label {
  color: rgba(220, 205, 205, 0.95);
}

.footer-link.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  border-bottom: none;
}

.footer-link.footer-icon:hover {
  border-bottom: none;
  color: var(--candle);
}

.footer-icon-svg {
  width: 1rem;
  height: 1rem;
  display: block;
  opacity: 0.85;
}

.footer-link.footer-icon:hover .footer-icon-svg {
  opacity: 1;
}

.dev-preview-banner {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--candle);
  background: rgba(107, 45, 60, 0.45);
  border-bottom: 1px solid rgba(232, 196, 181, 0.25);
  text-align: center;
}

.dev-preview-banner code {
  font-size: 0.85em;
  color: rgba(240, 220, 200, 0.85);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 4vw, 2rem) clamp(1.75rem, 5vw, 2.75rem);
}

.hero-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.portrait-stack {
  margin: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 400px;
}

.portrait-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 196, 181, 0.14) 0%,
    rgba(107, 45, 60, 0.12) 38%,
    transparent 68%
  );
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.portrait-card {
  position: relative;
  z-index: 1;
  padding: 0.45rem;
  border-radius: 4px;
}

.glass-inset {
  background: rgba(2, 2, 4, 0.88);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 56px rgba(0, 0, 0, 0.65);
}

.portrait-shine {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 38%,
    transparent 62%,
    rgba(55, 20, 26, 0.06) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.portrait-frame {
  position: relative;
  z-index: 3;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 688 / 637;
  background: #010101;
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.92), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.miono-rig {
  width: 100%;
  height: 100%;
  animation: miono-breathe 11s ease-in-out infinite;
}

.miono-rig.is-paused {
  animation-play-state: paused;
}

.miono-rig-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.miono-layer {
  position: absolute;
  left: calc(var(--x) * 100% / 688);
  top: calc(var(--y) * 100% / 637);
  width: calc(var(--w) * 100% / 688);
  height: calc(var(--h) * 100% / 637);
  object-fit: fill;
  max-width: none;
  pointer-events: none;
  display: block;
  transition: opacity 0.22s ease;
}

.miono-layer.is-off {
  opacity: 0;
}

/* L5 + L6: tiny vertical float + ~±3° tilt (no horizontal drift; offset rhythms) */
[data-miono-layer="5"],
[data-miono-layer="6"] {
  transform-origin: 50% 42%;
  will-change: transform;
}

[data-miono-layer="5"] {
  animation: miono-wobble-a 4.8s ease-in-out infinite;
}

[data-miono-layer="6"] {
  animation: miono-wobble-b 5.4s ease-in-out infinite;
  animation-delay: -1.35s;
}

.miono-rig.is-paused [data-miono-layer="5"],
.miono-rig.is-paused [data-miono-layer="6"] {
  animation-play-state: paused;
}

.miono-layer--rim {
  animation: rim-shimmer 12s ease-in-out infinite alternate;
}

.miono-rig.is-paused .miono-layer--rim {
  animation-play-state: paused;
}

@keyframes miono-wobble-a {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  25% {
    transform: translateY(-1.2px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(3deg);
  }
  75% {
    transform: translateY(-0.8px) rotate(0.5deg);
  }
}

@keyframes miono-wobble-b {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  28% {
    transform: translateY(-1px) rotate(0.5deg);
  }
  52% {
    transform: translateY(-1.8px) rotate(-3deg);
  }
  78% {
    transform: translateY(-0.6px) rotate(-1deg);
  }
}

@keyframes miono-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes rim-shimmer {
  from {
    opacity: 0.92;
    filter: brightness(0.99);
  }
  to {
    opacity: 1;
    filter: brightness(1.04);
  }
}

.portrait-note {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

.layer-lab {
  margin-top: 1rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: rgba(6, 4, 12, 0.55);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.layer-lab-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 196, 181, 0.65);
}

.layer-lab-lede {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(240, 220, 200, 0.58);
  font-weight: 300;
}

.layer-lab-lede strong {
  color: rgba(240, 220, 200, 0.85);
  font-weight: 500;
}

.layer-lab-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.layer-lab-btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 242, 0.14);
  background: rgba(255, 248, 242, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.layer-lab-btn:hover {
  color: var(--candle);
  border-color: rgba(232, 196, 181, 0.35);
}

.layer-lab-btn-accent {
  border-color: rgba(107, 45, 60, 0.45);
  background: rgba(107, 45, 60, 0.25);
  color: rgba(232, 196, 181, 0.9);
}

.layer-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.layer-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(240, 220, 200, 0.55);
  cursor: pointer;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 248, 242, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.layer-chip:has(input:checked) {
  color: rgba(232, 196, 181, 0.95);
  border-color: rgba(232, 196, 181, 0.22);
  background: rgba(107, 45, 60, 0.2);
}

.layer-chip input {
  accent-color: #c4a484;
}

.hero-copy {
  padding-top: 0.25rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 11vw, 3.35rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.08;
  color: rgba(236, 232, 228, 0.94);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 0 40px rgba(40, 12, 16, 0.15);
}

.hero-rule {
  width: min(6rem, 32vw);
  height: 1px;
  margin: clamp(0.85rem, 2.5vw, 1.15rem) 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14) 42%,
    rgba(255, 255, 255, 0.14) 58%,
    transparent
  );
  opacity: 0.75;
}

.hero-station {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 3px;
}

/* #talk is the whole hero so hash links don’t crop the portrait */
section#talk:target {
  outline: none;
}

.hero-station__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(168, 165, 175, 0.85);
}

.hero-station__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(212, 206, 200, 0.88);
  max-width: 38rem;
}

.hero-station__lede a {
  color: rgba(228, 208, 200, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero-station__lede a:hover {
  border-bottom-color: rgba(232, 196, 181, 0.35);
}

.hero-station__note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(140, 136, 145, 0.88);
}

.hero-station__note a {
  color: rgba(185, 178, 172, 0.85);
}

.glass-panel {
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 48px rgba(0, 0, 0, 0.55);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1rem, 4vw, 2rem) max(2rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.glass-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border-radius: 4px;
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-meta.footer-line {
  margin: 0;
}

.footer-line {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.footer-email {
  color: rgba(232, 212, 200, 0.55);
  user-select: all;
  text-transform: none;
  letter-spacing: 0.04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-legal-link {
  color: rgba(175, 170, 178, 0.65);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.footer-legal-link:hover {
  color: var(--candle);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.legal-body .legal-main {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) 3rem;
}

.legal-doc {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 4px;
}

.legal-doc h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--candle);
}

.legal-doc h2 {
  margin: 1.35rem 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 175, 185, 0.85);
}

.legal-doc p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: rgba(240, 220, 200, 0.72);
  line-height: 1.6;
  font-weight: 300;
}

.legal-doc blockquote {
  margin: 1rem 0 1.25rem;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 2px solid rgba(107, 45, 60, 0.55);
}

.legal-doc blockquote p {
  margin: 0;
  font-style: italic;
  color: rgba(232, 210, 208, 0.82);
}

.legal-doc a {
  color: rgba(212, 175, 155, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-doc a:hover {
  color: var(--candle);
}

.legal-updated {
  font-size: 0.82rem !important;
  color: rgba(154, 149, 140, 0.85) !important;
  margin-bottom: 1rem !important;
}

.legal-back {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

.legal-back a {
  color: rgba(232, 196, 181, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 196, 181, 0.2);
}

.legal-back a:hover {
  color: var(--candle);
}

.footer-dot {
  opacity: 0.35;
}

.footer-soft {
  font-weight: 300;
  opacity: 0.85;
}

.footer-link {
  color: rgba(175, 170, 178, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.footer-link:hover {
  color: var(--candle);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.25rem);
    text-align: center;
  }

  .hero-copy {
    max-width: 28rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .glass-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .portrait-stack {
    max-width: min(92vw, 380px);
  }
}

@media (max-width: 480px) {
  .orb {
    opacity: 0.44;
    filter: blur(72px);
  }

  .orb-a {
    animation-duration: 62s;
  }

  .orb-b {
    animation-duration: 74s;
  }

  .orb-c {
    animation-duration: 86s;
  }

  .ambient-breath {
    animation-duration: 128s;
    opacity: 0.5;
  }

  .ambient-mist--deep {
    animation-duration: 58s;
  }

  .ambient-mist--front {
    animation-duration: 68s;
  }

  .glass-sheet {
    border-radius: 4px;
  }

  .hero-shell {
    padding: clamp(1.15rem, 4vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient-breath {
    animation: none;
    transform: none;
    opacity: 0.48;
  }

  .ambient-psych {
    animation: none;
    filter: none;
    transform: none;
    opacity: 0.04;
  }

  .orb {
    animation: none;
    opacity: 0.38;
  }

  .ambient-mist--deep,
  .ambient-mist--front {
    animation: none;
    opacity: 0.55;
    transform: none;
  }

  .grain {
    animation: none;
    opacity: 0.04;
  }

  .miono-rig,
  .miono-layer--rim {
    animation: none !important;
  }

  [data-miono-layer="5"],
  [data-miono-layer="6"] {
    animation: none !important;
  }

  .nav-link:active {
    transform: none;
  }

  /* Glass chrome stays subtle-simmered; reduced-motion targets vestibular triggers above */
}

/* Short prose blocks (Return page, etc.) */
.loop-verse {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(228, 224, 218, 0.88);
  max-width: 36rem;
}

.loop-verse:last-of-type {
  margin-bottom: 1.75rem;
}

/* Finance: board layout (glass / inset panels, not spreadsheet cosplay) */
.finance-page .finance-doc {
  max-width: 56rem;
}

.finance-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    165deg,
    rgba(46, 22, 28, 0.14) 0%,
    transparent 42%
  );
}

.finance-doc > .finance-hero h1 {
  margin-bottom: 0.25rem;
}

.finance-tagline {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(168, 165, 175, 0.72);
  max-width: 28rem;
  line-height: 1.55;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .finance-summary {
    grid-template-columns: 1fr;
  }
}

.finance-stat {
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 3px;
  background: linear-gradient(165deg, rgba(8, 6, 10, 0.92) 0%, rgba(4, 4, 6, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.finance-stat__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.finance-stat__value {
  display: block;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(232, 218, 210, 0.92);
}

.finance-intro {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(185, 180, 188, 0.82);
  max-width: 38rem;
}

.finance-board {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 880px) {
  .finance-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    align-items: start;
  }

  .finance-panel--wide {
    grid-column: 1 / -1;
  }
}

.finance-panel {
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 3px;
  background: rgba(2, 2, 4, 0.72);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 48px rgba(0, 0, 0, 0.42);
  position: relative;
}

.finance-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(107, 45, 60, 0.55) 0%,
    rgba(90, 28, 32, 0.25) 50%,
    rgba(28, 45, 56, 0.35) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.finance-panel__title {
  margin: 0 0 1rem;
  padding-left: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 210, 208, 0.88);
}

.finance-panel__lede {
  margin: -0.35rem 0 0.85rem;
  padding-left: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(155, 152, 162, 0.85);
}

.finance-panel__note {
  margin: 1rem 0 0;
  padding: 0.65rem 0.75rem 0.7rem;
  padding-left: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(145, 142, 152, 0.88);
  border-left: 1px solid rgba(90, 28, 32, 0.45);
  background: rgba(0, 0, 0, 0.22);
}

.finance-metrics {
  margin: 0;
  padding: 0 0 0 0.65rem;
}

.finance-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.finance-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.finance-metrics dt {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(196, 168, 160, 0.78);
  line-height: 1.4;
}

.finance-metrics dd {
  margin: 0;
  text-align: right;
}

.metric-pending {
  display: inline-block;
  padding: 0.12rem 0.45rem 0.14rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(140, 136, 148, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
}

.finance-split {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .finance-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.finance-split__head {
  margin: 0 0 0.65rem;
  padding-left: 0.65rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.finance-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 0 0.65rem;
  list-style: none;
}

.finance-pills li {
  padding: 0.35rem 0.65rem 0.38rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(200, 192, 188, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.finance-list-plain {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(190, 184, 192, 0.88);
}

.finance-list-plain li {
  margin: 0.4rem 0;
}

.finance-foot {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(130, 126, 138, 0.85);
}

.finance-foot code {
  font-size: 0.68rem;
  color: rgba(168, 164, 176, 0.75);
}

.finance-foot a {
  color: rgba(185, 175, 168, 0.85);
}

/* Pulse: live feed shell (data wired later) */
.pulse-doc .pulse-feed {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-height: 4.5rem;
}

.pulse-doc .pulse-quiet {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(168, 165, 175, 0.88);
  font-style: normal;
}

.pulse-doc .pulse-prose {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(185, 180, 188, 0.85);
  max-width: 38rem;
}

.pulse-rail {
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.pulse-rail__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 210, 208, 0.82);
}

.pulse-dl {
  margin: 0;
}

.pulse-dl__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.85rem;
}

.pulse-dl__row:last-child {
  border-bottom: none;
}

.pulse-dl dt {
  margin: 0;
  color: rgba(196, 168, 160, 0.78);
}

.pulse-dl dd {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82rem;
  color: rgba(145, 142, 152, 0.95);
}

.pulse-dl__hint {
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pulse-feed__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 210, 208, 0.82);
}
