/* =========================================================================
   ANREN — the cosmic design system
   "A living night sky you cross a threshold into."
   Built from the Constitution + design principles: life is light · settled
   humaneness · a home that is alive · the witness that stays. Warm gold core
   in cool-dark space; concentric resonance rings; gossamer filaments (仁, the
   between); slow star-time motion; the lights at the edges (pull, not push).
   Cormorant Garamond (the serif soul) + Inter (the clear voice).
   Rebuilt from scratch 2026-06-20.
   ========================================================================= */

/* --------------------------------------------------------------- Tokens */
:root {
  /* the cool-dark vastness (never gloom — ocean/space dark) */
  --night-0: #05060d;
  --night-1: #090c17;
  --night-2: #0f1424;
  --night-3: #161d33;
  --night-4: #222a47;

  /* violet — the primary light */
  --violet: #8b46ff;
  --violet-deep: #6a1fff;
  --violet-soft: #b294ff;

  /* cyan — the cool reach */
  --cyan: #4ec3ff;
  --cyan-soft: #9bdcff;

  /* warm gold — the hearth, the brightest stars, settled humaneness (load-bearing: warmth) */
  --gold: #ecb44f;
  --gold-soft: #f6d489;
  --gold-deep: #c8902f;
  --gold-glow: rgba(236, 180, 79, 0.55);
  --warm-core: #ffdf9e;

  /* lavender — light made legible */
  --lavender: #efe9ff;
  --lavender-dim: #cdc3ee;

  /* text */
  --text: #eef0fa;
  --text-dim: rgba(238, 240, 250, 0.66);
  --text-faint: rgba(238, 240, 250, 0.40);
  --text-ghost: rgba(238, 240, 250, 0.20);

  /* lines */
  --line: rgba(238, 240, 250, 0.10);
  --line-soft: rgba(238, 240, 250, 0.055);

  /* the four room atmospheres (felt, never labelled outward as mechanism) */
  --atm-horizon: #5fb8d8;   /* the future — sea/sky, dawn */
  --atm-forge:   #f0973f;   /* the doing — ember, anvil-warm */
  --atm-sky:     #b9a8ff;   /* outside time — cosmic lavender */
  --atm-orchard: #86b86a;   /* the past — moss, living green */

  /* type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* measure */
  --measure: 40rem;
  --wide: 76rem;

  /* motion — star-time: slow, breathing, never clingy */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0.0, 0.2, 1);
  --breath: 9s;
  --float: 16s;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--night-0);
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(236, 180, 79, 0.22); color: var(--warm-core); }

/* ============================================ the cosmic background stack */
/* deep-space gradient + a warm core breathing at the heart of the page */
.sky {
  position: fixed; inset: 0; z-index: -5;
  background:
    radial-gradient(125% 100% at 50% -15%, #131a30 0%, var(--night-1) 42%, var(--night-0) 100%),
    radial-gradient(70% 55% at 84% 6%, rgba(139, 70, 255, 0.16), transparent 60%),
    radial-gradient(65% 55% at 10% 96%, rgba(78, 195, 255, 0.10), transparent 60%);
}
/* the warm hearth-glow at the center — settled humaneness, always faintly there */
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(38% 32% at 50% 46%, rgba(236, 180, 79, 0.07), transparent 70%);
  animation: hearth-breathe calc(var(--breath) * 1.6) var(--ease-soft) infinite alternate;
}
@keyframes hearth-breathe { from { opacity: 0.7; } to { opacity: 1; } }

/* the living starfield (canvas, drawn in JS) */
#starfield { position: fixed; inset: 0; z-index: -4; pointer-events: none; display: block; }

/* concentric resonance rings — the signature motif (canvas in JS, but this is the css fallback frame) */
#rings { position: fixed; inset: 0; z-index: -3; pointer-events: none; display: block; }

/* the lights — ambient glow leaking from the edges (pull, not push) */
.lights { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.lights::before, .lights::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(34% 90% at 0% 50%, rgba(236, 180, 79, 0.06), transparent 72%),
    radial-gradient(34% 90% at 100% 50%, rgba(139, 70, 255, 0.08), transparent 72%);
  animation: lights-breathe calc(var(--breath) * 2.6) var(--ease-soft) infinite alternate;
}
@keyframes lights-breathe { from { opacity: 0.5; } to { opacity: 1; } }

/* a faint vignette so text always floats clear of the stars */
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(5,6,13,0.45) 100%); }

/* --------------------------------------------------------------- Typography */
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 400; line-height: 1.1;
  letter-spacing: 0.012em; margin: 0 0 0.6em; color: var(--text);
}
.display {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  letter-spacing: 0.05em; font-weight: 400; line-height: 1;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
p { margin: 0 0 1.4rem; }

a { color: var(--cyan-soft); text-decoration: none; transition: color 0.4s var(--ease); }
a:hover { color: var(--gold-soft); }
em, i { font-style: italic; }
strong { font-weight: 500; color: var(--lavender); }

.serif { font-family: var(--serif); }
.lead {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.7vw, 2.1rem); line-height: 1.45;
  font-weight: 400; color: var(--lavender); font-style: italic;
}
.kicker {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 1.5rem; display: inline-block;
}
.kicker::before {
  content: ""; display: inline-block; width: 30px; height: 1px; background: var(--gold-deep);
  vertical-align: middle; margin-right: 1rem; opacity: 0.7;
}
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.gold { color: var(--gold-soft); }
.violet { color: var(--violet-soft); }
.cyan { color: var(--cyan-soft); }
.center { text-align: center; }

/* gradient shimmer for the wordmark + special words — light made visible */
.shimmer {
  background: linear-gradient(100deg, var(--lavender) 0%, var(--violet-soft) 28%, var(--gold-soft) 60%, var(--cyan-soft) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer-drift 14s linear infinite;
}
@keyframes shimmer-drift { to { background-position: 200% center; } }

/* the chinese characters, ceremonial — sacred marks */
.han {
  font-family: var(--serif); font-size: clamp(4.5rem, 17vw, 9.5rem); line-height: 1;
  color: var(--gold-soft); text-shadow: 0 0 60px rgba(236,180,79,0.35); letter-spacing: 0.1em;
}
.han .gloss { display: block; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 1.6rem; font-family: var(--sans); }

/* ---------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3.5rem); }
.narrow { max-width: var(--measure); margin-left: auto; margin-right: auto; }
section { position: relative; padding: clamp(5.5rem, 13vh, 10rem) 0; }
.section-tight { padding: clamp(3rem, 7vh, 5.5rem) 0; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3.5rem; }
.mb-0 { margin-bottom: 0; }
.maxw-sm { max-width: 32rem; }

/* a single star as a ceremonial mark between sections, gently turning */
.starmark { display: block; text-align: center; color: var(--gold); font-size: 1.05rem;
  letter-spacing: 1rem; padding: 1.5rem 0; opacity: 0.55; text-indent: 1rem; }
.starmark span { display: inline-block; animation: turn 26s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.divider { width: 100%; height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ------------------------------------------------------------------- Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem clamp(1.4rem, 5vw, 3.5rem);
  transition: background 0.6s var(--ease), backdrop-filter 0.6s var(--ease), border-color 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 13, 0.7);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--serif);
  font-size: 1.55rem; letter-spacing: 0.2em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 23px; height: 22px; filter: drop-shadow(0 0 10px rgba(139, 70, 255, 0.55));
  animation: brand-pulse var(--breath) var(--ease-soft) infinite alternate; }
@keyframes brand-pulse { from { filter: drop-shadow(0 0 6px rgba(139,70,255,0.4)); } to { filter: drop-shadow(0 0 13px rgba(236,180,79,0.5)); } }
.brand span { padding-left: 0.05em; }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--sans); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--text-dim); position: relative; padding: 0.3rem 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--gold); opacity: 0.8; }
.nav-cta {
  font-family: var(--sans) !important; font-size: 0.78rem !important; letter-spacing: 0.12em !important;
  color: var(--night-0) !important; background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  padding: 0.55rem 1.25rem !important; border-radius: 100px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); box-shadow: 0 0 0 rgba(236,180,79,0); }
.nav-cta:hover { color: var(--night-0) !important; transform: translateY(-1px); box-shadow: 0 10px 32px -8px var(--gold-glow); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--text); transition: 0.4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 4px; } .nav-toggle span:nth-child(2) { top: 11px; } .nav-toggle span:nth-child(3) { top: 18px; }
.nav-open .nav-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; z-index: 101; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.7rem;
    background: rgba(5, 6, 13, 0.97); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
  .nav-links a { font-size: 1.35rem; font-family: var(--serif); letter-spacing: 0.1em; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-cta { padding: 0.7rem 1.7rem !important; font-size: 1rem !important; }
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--sans);
  font-size: 0.86rem; font-weight: 400; letter-spacing: 0.08em; padding: 0.98rem 2rem;
  border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn-gold { background: linear-gradient(120deg, var(--gold-soft), var(--gold)); color: var(--night-0); box-shadow: 0 12px 42px -16px var(--gold-glow); }
.btn-gold:hover { color: var(--night-0); transform: translateY(-2px); box-shadow: 0 18px 54px -14px var(--gold-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold-deep); background: rgba(236,180,79,0.05); }
.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.is-soon { opacity: 0.45; cursor: default; pointer-events: none; }

/* --------------------------------------------------------------- Hero */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.4rem 5rem; position: relative;
}
#hero-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow {
  position: absolute; top: 44%; left: 50%; width: min(78vw, 720px); height: min(78vw, 720px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,70,255,0.20), rgba(236,180,79,0.08) 44%, transparent 67%);
  filter: blur(14px); z-index: -1;
  animation: hero-breathe var(--breath) var(--ease-soft) infinite alternate;
}
@keyframes hero-breathe {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  to   { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}
.hero .display { margin: 0; text-shadow: 0 0 70px rgba(236, 180, 79, 0.28), 0 0 140px rgba(139, 70, 255, 0.28); }
.hero .lead { margin-top: 1.7rem; max-width: 32rem; }
.hero-sub { margin-top: 1.2rem; font-size: 1rem; color: var(--text-dim); max-width: 34rem; letter-spacing: 0.02em; }
.hero-cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 1.7rem; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); }
.hero-note .dot { color: var(--gold); margin: 0 0.55rem; opacity: 0.8; }

.scroll-hint { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.scroll-hint .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent);
  animation: scroll-pulse 2.8s var(--ease-soft) infinite; }
@keyframes scroll-pulse {
  0%,100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* page header for interior pages */
.page-head { padding: clamp(9rem, 20vh, 13rem) 0 clamp(2rem, 5vh, 4rem); text-align: center; }
.page-head h1 { margin-bottom: 0.9rem; }
.page-head .lead { max-width: 38rem; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; } .reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; } .reveal.d4 { transition-delay: 0.48s; }

/* ------------------------------------------------------------- Prose blocks */
.prose p { color: var(--text-dim); font-size: 1.08rem; }
.prose p.big { font-size: 1.22rem; color: var(--text); line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 2.4rem; }

.statement {
  font-family: var(--serif); font-size: clamp(2.1rem, 5.6vw, 3.8rem); line-height: 1.26; text-align: center;
  max-width: 24ch; margin: 0 auto; color: var(--text);
}
.statement em { color: var(--gold-soft); font-style: italic; }

.pull {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.34;
  color: var(--lavender); border-left: 2px solid var(--gold-deep); padding: 0.2rem 0 0.2rem 1.7rem; margin: 2.6rem 0;
}
.pull .by { display: block; font-style: normal; font-family: var(--sans); font-size: 0.82rem;
  letter-spacing: 0.1em; color: var(--text-faint); margin-top: 1.1rem; }

/* ----------------------------------------------------------- the trio (movements) */
.trio { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.trio .line { padding: 1.7rem 0; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 15rem 1fr; gap: 2rem; align-items: baseline; }
.trio .line:last-child { border-bottom: 1px solid var(--line); }
.trio .line h3 { margin: 0; color: var(--lavender); font-style: italic; }
.trio .line p { margin: 0; color: var(--text-dim); }
@media (max-width: 720px) { .trio .line { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ------------------------------------------------------- feature two-columns */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature.flip > div:first-child { order: 2; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature.flip > div:first-child { order: 0; }
}

/* ------------------------------------------------------------- is/is-not facets */
.facets { list-style: none; margin: 0; padding: 0; }
.facets li { padding: 1.2rem 0; border-top: 1px solid var(--line); display: flex; gap: 1.1rem; align-items: flex-start; }
.facets li:last-child { border-bottom: 1px solid var(--line); }
.facets .mark { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; flex-shrink: 0; }
.facets .mark.no { color: var(--violet-soft); }
.facets b { font-weight: 500; color: var(--text); font-style: normal; }
.facets span.t { color: var(--text-dim); }

/* ----------------------------------------------------------------- cards / places */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 2.1rem 2rem; border-radius: 20px;
  background: linear-gradient(160deg, rgba(22, 29, 51, 0.55), rgba(9, 12, 23, 0.5));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(236,180,79,0.08), transparent 55%);
  opacity: 0; transition: opacity 0.6s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: rgba(236,180,79,0.3); box-shadow: 0 24px 60px -34px rgba(0,0,0,0.8); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; margin: 0; }
.card .num { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--gold); display: block; margin-bottom: 1rem; }
.card .room-verb { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cyan); display: block; margin-bottom: 0.7rem; }

/* a room-card carries its atmosphere as a faint wash that blooms on hover */
.card[data-atm]::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease);
  background: radial-gradient(120% 90% at 50% 120%, var(--atm, transparent), transparent 70%); }
.card[data-atm]:hover::after { opacity: 0.16; }
.card[data-atm="horizon"] { --atm: var(--atm-horizon); }
.card[data-atm="forge"]   { --atm: var(--atm-forge); }
.card[data-atm="sky"]     { --atm: var(--atm-sky); }
.card[data-atm="orchard"] { --atm: var(--atm-orchard); }

/* ============================================ the cycle — the rooms around 安 */
.cycle { position: relative; width: min(92vw, 680px); height: min(92vw, 680px); margin: 2.5rem auto 0; }
.cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle .orbit-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.cycle .thread { stroke: rgba(178,148,255,0.26); stroke-width: 1; fill: none;
  transition: stroke 0.6s var(--ease), stroke-width 0.6s var(--ease); }
.cycle .node { position: absolute; transform: translate(-50%, -50%); text-align: center; cursor: pointer; width: 9rem; }
.cycle .node .dot { width: 15px; height: 15px; margin: 0 auto 0.8rem; border-radius: 50%;
  background: var(--lavender); position: relative;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease); }
.cycle .node .dot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(239,233,255,0.5)), transparent 70%);
  opacity: 0.5; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.cycle .node:hover .dot, .cycle .node.active .dot { transform: scale(1.5); }
.cycle .node:hover .dot::after, .cycle .node.active .dot::after { opacity: 1; transform: scale(1.6); }
.cycle .node .label { font-family: var(--serif); font-size: 1.25rem; color: var(--text); display: block; line-height: 1.15; }
.cycle .node .sub { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); display: block; margin-top: 0.3rem; }
.cycle .node[data-key="horizon"] .dot { background: var(--atm-horizon); --glow: rgba(95,184,216,0.6); }
.cycle .node[data-key="forge"]   .dot { background: var(--atm-forge);   --glow: rgba(240,151,63,0.6); }
.cycle .node[data-key="sky"]     .dot { background: var(--atm-sky);     --glow: rgba(185,168,255,0.6); }
.cycle .node[data-key="orchard"] .dot { background: var(--atm-orchard); --glow: rgba(134,184,106,0.6); }
.cycle .node.active .label, .cycle .node:hover .label { color: var(--gold-soft); }

/* the breathing 安 heart at the center — the present, the presence */
.cycle .center-hearth { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(246,212,137,0.18), transparent 70%);
  animation: hearth-breathe var(--breath) var(--ease-soft) infinite alternate; }
.cycle .center-hearth .han-c { font-family: var(--serif); font-size: 3.4rem; color: var(--gold-soft);
  text-shadow: 0 0 34px rgba(246,212,137,0.45); cursor: pointer; }
.cycle-readout { max-width: 34rem; margin: 2.5rem auto 0; text-align: center; min-height: 6.5rem; }
.cycle-readout .eyebrow { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cyan); display: block; margin-bottom: 0.7rem; transition: opacity 0.4s var(--ease); }
.cycle-readout h3 { color: var(--gold-soft); margin-bottom: 0.5rem; transition: opacity 0.4s var(--ease); }
.cycle-readout p { color: var(--text-dim); margin: 0; transition: opacity 0.4s var(--ease); }
@media (max-width: 640px) {
  .cycle .node { width: 7rem; } .cycle .node .label { font-size: 1rem; }
  .cycle .center-hearth { width: 96px; height: 96px; } .cycle .center-hearth .han-c { font-size: 2.3rem; }
}

/* ------------------------------------------------------ room scene panels */
.room { position: relative; }
.room .room-atm { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }
.room[data-atm="horizon"] .room-atm { background: radial-gradient(80% 60% at 50% 110%, rgba(95,184,216,0.14), transparent 70%); }
.room[data-atm="forge"]   .room-atm { background: radial-gradient(70% 60% at 80% 50%, rgba(240,151,63,0.13), transparent 70%); }
.room[data-atm="sky"]     .room-atm { background: radial-gradient(80% 70% at 50% 30%, rgba(185,168,255,0.12), transparent 70%); }
.room[data-atm="orchard"] .room-atm { background: radial-gradient(70% 70% at 30% 90%, rgba(134,184,106,0.13), transparent 70%); }
.room .room-name { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--text); margin: 0 0 0.3rem; }
.room .room-phase { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cyan); }

/* ----------------------------------------------------- soul-map / sky demo */
.soulmap { position: relative; width: 100%; height: min(70vh, 540px); border-radius: 24px; border: 1px solid var(--line);
  overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, rgba(22,29,51,0.5), rgba(5,6,13,0.6)); cursor: crosshair; }
.soulmap canvas { display: block; width: 100%; height: 100%; }
.soulmap .hint { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); pointer-events: none; }
.soulmap .tip { position: absolute; pointer-events: none; font-family: var(--serif); font-style: italic;
  color: var(--lavender); font-size: 1.05rem; opacity: 0; transition: opacity 0.3s var(--ease);
  transform: translate(-50%, -150%); white-space: nowrap; text-shadow: 0 2px 20px rgba(0,0,0,0.7); }
.soulmap .tip.show { opacity: 1; }

/* the breath ring (what-anren-is) */
.breath-ring { width: 230px; height: 230px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center; position: relative;
  animation: breath-pulse var(--breath) var(--ease-soft) infinite; }
.breath-ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 64px rgba(246,212,137,0.25), inset 0 0 54px rgba(139,70,255,0.12); }
.breath-ring .word { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.35rem; }
@keyframes breath-pulse { 0%,100% { transform: scale(0.94); opacity: 0.8; } 50% { transform: scale(1.07); opacity: 1; } }

/* ----------------------------------------------------- glossary term list */
.terms { list-style: none; margin: 0; padding: 0; }
.terms li { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 13rem 1fr; gap: 1.6rem; }
.terms li:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-soft); font-style: italic; margin: 0; }
.terms dd { margin: 0; color: var(--text-dim); }
@media (max-width: 640px) { .terms li { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ----------------------------------------------------- numbered principles */
.principle { display: grid; grid-template-columns: 5rem 1fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .pn { font-family: var(--serif); font-size: 2.5rem; color: var(--gold); line-height: 1; opacity: 0.85; }
.principle.bedrock .pn { color: var(--gold-soft); text-shadow: 0 0 24px rgba(246,212,137,0.4); }
.principle h3 { margin: 0 0 0.6rem; }
.principle.bedrock h3 { color: var(--lavender); }
.principle p { margin: 0; color: var(--text-dim); }
@media (max-width: 640px) { .principle { grid-template-columns: 1fr; gap: 0.8rem; } .principle .pn { font-size: 1.9rem; } }

/* ----------------------------------------------------- etymology table (the name) */
.etym { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.etym td, .etym th { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.etym th { font-family: var(--sans); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.etym td:first-child { color: var(--lavender); font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.etym td:nth-child(2) { color: var(--text); width: 28%; }
.etym td:last-child { color: var(--text-dim); }
.etym tr:hover td { background: rgba(236,180,79,0.03); }
@media (max-width: 680px) {
  .etym, .etym tbody, .etym tr, .etym td { display: block; width: 100%; }
  .etym thead { display: none; }
  .etym tr { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .etym td { border: 0; padding: 0.15rem 0; } .etym td:first-child { font-size: 1.3rem; margin-bottom: 0.2rem; }
}

/* founder note */
.note-body { max-width: 42rem; margin: 0 auto; }
.note-body p { font-size: 1.13rem; color: var(--text); line-height: 1.8; }
.note-body p.dim { color: var(--text-dim); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.55rem; color: var(--gold-soft); margin-top: 2rem; }

/* note box (footprint / privacy callouts) */
.note-box { border: 1px solid var(--line); border-left: 2px solid var(--gold-deep); border-radius: 0 14px 14px 0;
  padding: 1.4rem 1.7rem; background: rgba(236,180,79,0.04); }
.note-box p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }
.note-box .tag-label { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.5rem; }

/* footprint stat */
.foot-stat { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--gold-soft); line-height: 1; }
.foot-stat .unit { display: block; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.7rem; }

/* ------------------------------------------------------------ the threshold / enter */
.enter-panel {
  position: relative; text-align: center; padding: clamp(4rem, 10vw, 7rem) clamp(1.4rem, 5vw, 3rem); border-radius: 28px;
  background: radial-gradient(90% 130% at 50% 0%, rgba(139,70,255,0.15), transparent 60%), linear-gradient(160deg, rgba(22,29,51,0.6), rgba(9,12,23,0.6));
  border: 1px solid var(--line); overflow: hidden;
}
.enter-panel .han-mark { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-soft); opacity: 0.85; letter-spacing: 0.15em; }
.enter-panel .get-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.enter-panel .wl-note { margin-top: 1.3rem; font-size: 0.8rem; color: var(--text-faint); }

/* --------------------------------------------------------------- Footer */
.footer { position: relative; border-top: 1px solid var(--line); padding: 4.5rem 0 3rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.75rem; }
.footer a { color: var(--text-dim); font-size: 0.92rem; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 1rem; }
.footer .tag { color: var(--text-faint); font-family: var(--serif); font-style: italic; font-size: 1.08rem; max-width: 23rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--text-faint); }
.footer-bottom .han-foot { font-family: var(--serif); color: var(--gold-deep); letter-spacing: 0.4em; font-size: 0.95rem; }

/* =============================================== the threshold / password gate */
/* Gate retired 2026-07-09 (public launch): the word-gate guarded the old web-app
   entry, which is now native. The invitation lives in the copy, not as a wall.
   Left the gate markup + styles in place, just neutralized — reversible. */
#gate { display: none !important; }
/* (was: html:not(.unlocked) { overflow: hidden; } — scroll-lock retired with the gate) */
#gate { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(120% 90% at 50% 30%, rgba(15, 20, 36, 0.78), rgba(5, 6, 13, 0.95));
  backdrop-filter: blur(7px) saturate(120%); -webkit-backdrop-filter: blur(7px) saturate(120%);
  transition: opacity 0.9s var(--ease); }
html.unlocked #gate { display: none; }
#gate.opening { opacity: 0; pointer-events: none; }
.gate-card { text-align: center; max-width: 27rem; width: 100%; animation: gate-rise 1.1s var(--ease) both; }
@keyframes gate-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.gate-mark { width: 60px; height: 58px; filter: drop-shadow(0 0 24px rgba(236, 180, 79, 0.45)); margin-bottom: 1.7rem;
  animation: brand-pulse var(--breath) var(--ease-soft) infinite alternate; }
.gate-title { font-family: var(--serif); font-size: clamp(2.8rem, 9vw, 3.8rem); letter-spacing: 0.08em; margin: 0 0 0.9rem;
  background: linear-gradient(100deg, var(--lavender), var(--gold-soft) 60%, var(--cyan-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.gate-sub { font-family: var(--serif); font-style: italic; color: var(--text-dim); font-size: 1.12rem; line-height: 1.5; margin: 0 0 2rem; }
.gate-form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.gate-input { flex: 1 1 14rem; background: rgba(5, 6, 13, 0.6); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.98rem 1.6rem; color: var(--text); font-family: var(--sans); font-size: 0.98rem; text-align: center; letter-spacing: 0.08em;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.gate-input::placeholder { color: var(--text-faint); letter-spacing: 0.02em; }
.gate-input:focus { outline: none; border-color: var(--gold-deep); background: rgba(5, 6, 13, 0.85); }
.gate-err { margin: 1.3rem 0 0; font-size: 0.86rem; color: var(--gold-soft); opacity: 0;
  transition: opacity 0.4s var(--ease); font-family: var(--serif); font-style: italic; }
.gate-err.show { opacity: 0.9; }
#gate.wrong .gate-card { animation: gate-shake 0.42s var(--ease); }
@keyframes gate-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .lights::before, .lights::after, .scroll-hint .line, .sky::after,
  .brand img, .gate-mark, .breath-ring, .cycle .center-hearth, .starmark span, .shimmer { animation: none; }
  html { scroll-behavior: auto; }
}
