/* ─────────────────────────────────────────────────────────────────────────────
   LIFEology landing — "Four Rings, One Light"
   Standalone stylesheet for / only. The shared /styles.css (join, login,
   LIFEmaster) is intentionally untouched. Tokens mirror it so the landing and
   the dashboard speak one language:
     night / sky / indigo  ← .page-lifemaster in styles.css
     sun / fire / water / land ← .element-* and .progress-bar in styles.css
     radii 12 / 20 / 28, ease (.22,1,.36,1) ← portal cards + page-fade-in
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --night-0: #03050c;
  --night-1: #060913;
  --night-2: #0a0f1e;
  --glass: rgba(14, 20, 38, 0.72);
  --glass-strong: rgba(10, 18, 36, 0.94);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  --ink: #eef2ff;
  --ink-2: #cdd6e4;
  --muted: #9fb0c6;

  --sky: #38bdf8;
  --indigo: #818cf8;
  --sky-ink: #05121f;

  --sun: #facc15;
  --fire: #f87171;
  --water: #60a5fa;
  --land: #4ade80;
  --sun-rgb: 250, 204, 21;
  --fire-rgb: 248, 113, 113;
  --water-rgb: 96, 165, 250;
  --land-rgb: 74, 222, 128;
  --sky-rgb: 56, 189, 248;
  --indigo-rgb: 129, 140, 248;

  --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --font-ui: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --header-h: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night-1);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 700px at 100% 8%, rgba(129, 140, 248, 0.08), transparent 60%),
    var(--night-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fine film grain — gives the night some material */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
}

::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #e0f2fe;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--night-1);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Type primitives ──────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.9);
}

.eyebrow-sky {
  color: #7dd3fc;
}

.section {
  position: relative;
  padding-block: clamp(96px, 13vw, 190px);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.15rem + 4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-title em,
.who-kicker em,
.begin-title em,
.hero-title em {
  font-weight: 400;
  color: #fff;
  background: linear-gradient(100deg, #fde68a 0%, #fca5a5 34%, #93c5fd 66%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-lead {
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 38rem;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.text-link::after {
  content: "→";
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  border-color: var(--sky);
  color: #fff;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* ── Buttons (dashboard grammar: pill, sky → indigo primary) ─────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-primary {
  color: var(--sky-ink);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow:
    0 12px 32px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
      0 18px 44px rgba(56, 189, 248, 0.34),
      0 0 0 6px rgba(56, 189, 248, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.45);
  }

  .btn:hover .btn-arrow {
    transform: translateX(4px);
  }
}

/* ── Scroll progress (join-flow element gradient) ─────────────────────────── */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sun), var(--fire), var(--water), var(--land), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 9, 19, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.18));
}

.brand-word {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-word span {
  font-weight: 400;
}

.site-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-menu a:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}

.nav-login:hover {
  background: rgba(148, 163, 184, 0.12);
}

.nav-login.is-member {
  color: var(--sky-ink);
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  padding: 0 18px;
  min-height: 40px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.6px;
  margin-left: -8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle-bars {
  top: 50%;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.menu-toggle-bars::before {
  transform: translateY(-5px);
}

.menu-toggle-bars::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  transform: rotate(-45deg);
}

@media (max-width: 899px) {
  .js .menu-toggle {
    display: inline-block;
  }

  .js .site-menu {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-m);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .js .site-header.is-open .site-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .js .site-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .js .site-menu a {
    min-height: 52px;
    padding: 0 16px;
    border-radius: var(--r-s);
    font-size: 1.05rem;
    color: var(--ink);
  }

  /* Without JS the links simply wrap below the brand */
  html:not(.js) .header-inner {
    flex-wrap: wrap;
  }

  html:not(.js) .site-header {
    position: absolute;
    height: auto;
  }

  html:not(.js) .site-menu {
    order: 3;
    width: 100%;
  }

  html:not(.js) .site-menu ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .brand-word {
    display: none;
  }

  .nav-login {
    padding: 0 10px;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 72% 46%, rgba(129, 140, 248, 0.14), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(56, 189, 248, 0.08), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--night-1));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: calc(var(--header-h) + 24px);
}

.hero-copy {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: min(640px, 48vw);
}

/* Soft shade behind the copy so text always wins over light */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -12% -30% -12% -40%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(3, 5, 12, 0.72), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 1rem + 5.1vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
}

.hero-title em {
  font-weight: 500;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-meta li {
  position: relative;
  padding-left: 16px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--land);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.hero-meta-member {
  display: block;
}

.hero-agent-link {
  margin: 14px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-agent-link a {
  color: var(--muted);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-agent-link a:hover {
  color: var(--ink-2);
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(24px, 4vh, 40px);
}

.element-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.element-legend a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.element-legend a::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--c);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--c);
}

.element-legend a:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.1);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: cue 2.4s var(--ease-io) infinite;
}

@keyframes cue {
  to {
    top: 110%;
  }
}

/* Hero intro choreography (only when JS is present and motion is welcome) */
.js .hero-reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in 1.3s var(--ease) forwards;
  animation-delay: calc(0.7s + var(--d, 0) * 0.11s);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-copy {
    max-width: min(560px, 50vw);
  }
}

@media (max-width: 1023px) {
  .hero-inner {
    align-items: flex-start;
    padding-top: max(46svh, 330px);
  }

  .hero-copy {
    max-width: 40rem;
  }

  .hero-copy::before {
    inset: -8% -20%;
  }

  .hero-foot {
    padding-top: 36px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: max(40svh, 290px);
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .scroll-cue {
    display: none;
  }

  .element-legend {
    width: 100%;
    justify-content: space-between;
  }

  .element-legend a {
    padding: 0 8px 0 4px;
    letter-spacing: 0.1em;
  }
}

/* ── Generic reveal ──────────────────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── Who we are ───────────────────────────────────────────────────────────── */

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.who-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.who-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.manifesto {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1rem + 2.7vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.js .manifesto.is-split .w {
  color: rgba(238, 242, 255, 0.24);
  transition: color 0.6s var(--ease), text-shadow 0.6s var(--ease);
}

.js .manifesto.is-split .w.is-lit {
  color: var(--ink);
}

.js .manifesto.is-split .w.is-accent.is-lit {
  color: #fde68a;
  text-shadow: 0 0 28px rgba(250, 204, 21, 0.35);
}

/* Vitals — four living emblems of how the family holds together */

.vitals-wrap {
  margin-top: clamp(80px, 11vw, 150px);
}

.vitals-kicker {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.vitals-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.vitals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vital {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: 4px clamp(20px, 2.6vw, 40px) 8px;
  isolation: isolate;
}

.vital:first-child {
  padding-left: 0;
}

.vital:last-child {
  padding-right: 0;
}

.vital + .vital::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

.vital-art {
  width: clamp(104px, 9.5vw, 132px);
  height: auto;
  margin: 0 0 18px -6px;
  overflow: visible;
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.vital:hover .vital-art {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 18px rgba(var(--c-rgb), 0.45));
}

.vital-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
}

.vital-label span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.vital-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.35rem + 1.5vw, 3rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.vital-note {
  max-width: 24ch;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Emblem drawing */
.vital-art .ln {
  fill: none;
  stroke: rgba(226, 232, 240, 0.5);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vital-art .faint {
  stroke: rgba(226, 232, 240, 0.2);
}

.vital-art .node {
  fill: #e2e8f0;
}

.vital-art .dim {
  fill: rgba(226, 232, 240, 0.55);
}

.vital-art .ac {
  fill: var(--c);
}

.halo-stop {
  stop-color: var(--c);
  stop-opacity: 0.5;
}

.halo-stop-end {
  stop-color: var(--c);
  stop-opacity: 0;
}

.vital-art .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 4.8s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.vital-art .spin {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: orbit var(--spin, 10s) linear infinite;
}

.vital-art .spin-reverse {
  animation-direction: reverse;
}

.vital-art .ripple {
  fill: none;
  stroke: var(--c);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 4.2s var(--ease-io) infinite;
  animation-delay: var(--r-d, 0s);
}

@keyframes ripple {
  0% {
    opacity: 0.75;
    transform: scale(0.22);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.vital-art .flow {
  fill: rgba(226, 232, 240, 0.85);
  opacity: 0;
  animation: inflow 3s ease-in infinite;
  animation-delay: var(--f-d, 0s);
}

@keyframes inflow {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(36px);
  }
}

.js .vital .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease-io);
  transition-delay: calc(var(--d, 0) * 90ms + var(--s, 0) * 160ms + 250ms);
}

.js .vital.is-in .draw {
  stroke-dashoffset: 0;
}

.js .vital .pop {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--d, 0) * 90ms + var(--s, 0) * 220ms + 350ms);
}

.js .vital.is-in .pop {
  transform: scale(1);
}

@media (max-width: 1023px) {
  .who-grid {
    grid-template-columns: 1fr;
  }

  .who-aside {
    position: static;
  }

  .vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .vital:nth-child(2) {
    padding-right: 0;
  }

  .vital:nth-child(3) {
    padding-left: 0;
  }

  .vital:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .vitals {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .vital {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 8px;
    padding: 30px 0;
  }

  .vital-art {
    grid-row: 1 / span 3;
    width: 84px;
    margin: 0;
  }

  .vital + .vital::before,
  .vital:nth-child(3)::before {
    display: block;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
  }

  .vital-note {
    max-width: none;
  }
}

/* ── Four rings ───────────────────────────────────────────────────────────── */

.rings {
  background:
    radial-gradient(50% 40% at 20% 40%, rgba(250, 204, 21, 0.04), transparent 70%),
    radial-gradient(50% 40% at 30% 80%, rgba(74, 222, 128, 0.04), transparent 70%);
}

.rings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.rings-figure {
  position: sticky;
  top: calc(50vh - min(250px, 30vw) + var(--header-h) / 2);
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.rings-stage {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
}

.rings-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--active-rgb, 250, 204, 21), 0.16), transparent);
  transition: background 0.8s var(--ease);
}

.rings-svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: sway 18s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.rg,
.rc {
  fill: none;
  transition: stroke-opacity 0.45s var(--ease), stroke-width 0.45s var(--ease);
}

.rg {
  stroke-width: 22;
  stroke-opacity: 0.04;
}

.rc {
  stroke-width: 7;
  stroke-opacity: 0.14;
}

.rg-sun,
.rc-sun,
.comet-sun {
  stroke: var(--sun);
  fill: var(--sun);
}

.rg-fire,
.rc-fire,
.comet-fire {
  stroke: var(--fire);
  fill: var(--fire);
}

.rg-water,
.rc-water,
.comet-water {
  stroke: var(--water);
  fill: var(--water);
}

.rg-land,
.rc-land,
.comet-land {
  stroke: var(--land);
  fill: var(--land);
}

.rg,
.rc {
  fill: none !important;
}

.rings-figure[data-active="sun"] {
  --active-rgb: var(--sun-rgb);
}
.rings-figure[data-active="fire"] {
  --active-rgb: var(--fire-rgb);
}
.rings-figure[data-active="water"] {
  --active-rgb: var(--water-rgb);
}
.rings-figure[data-active="land"] {
  --active-rgb: var(--land-rgb);
}

.rings-figure[data-active="sun"] .rg-sun,
.rings-figure[data-active="fire"] .rg-fire,
.rings-figure[data-active="water"] .rg-water,
.rings-figure[data-active="land"] .rg-land {
  stroke-opacity: 0.9;
}

.rings-figure[data-active="sun"] .rc-sun,
.rings-figure[data-active="fire"] .rc-fire,
.rings-figure[data-active="water"] .rc-water,
.rings-figure[data-active="land"] .rc-land {
  stroke-opacity: 1;
  stroke-width: 9;
}

.comet {
  opacity: 0;
  transform-box: view-box;
  transition: opacity 0.6s var(--ease);
  filter: drop-shadow(0 0 6px #fff);
}

.comet-sun {
  transform-origin: 200px 118px;
}
.comet-fire {
  transform-origin: 282px 200px;
}
.comet-water {
  transform-origin: 200px 282px;
}
.comet-land {
  transform-origin: 118px 200px;
}

.rings-figure[data-active="sun"] .comet-sun,
.rings-figure[data-active="fire"] .comet-fire,
.rings-figure[data-active="water"] .comet-water,
.rings-figure[data-active="land"] .comet-land {
  opacity: 1;
  animation: orbit 5.5s linear infinite;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

.rings-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rings-caption-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgb(var(--active-rgb, 250, 204, 21));
  transition: color 0.8s var(--ease);
}

.ring-article {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 82vh;
  padding-block: 48px;
}

.ring-glyph {
  display: none;
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 14px rgba(var(--c-rgb), 0.45));
}

.ring-index {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c);
}

.ring-index span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}

.ring-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 2rem + 8vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--c);
  text-shadow: 0 0 60px rgba(var(--c-rgb), 0.35);
}

.ring-meaning {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  line-height: 1.2;
  color: #fff;
  max-width: 26ch;
}

.ring-body {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.ring-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ring-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(var(--c-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--c-rgb), 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.ring-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.js .ring-article > * {
  opacity: 0.22;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .ring-article.is-active > * {
  opacity: 1;
  transform: none;
}

.js .ring-article.is-active > :nth-child(2) {
  transition-delay: 40ms;
}
.js .ring-article.is-active > :nth-child(3) {
  transition-delay: 80ms;
}
.js .ring-article.is-active > :nth-child(4) {
  transition-delay: 140ms;
}
.js .ring-article.is-active > :nth-child(5) {
  transition-delay: 200ms;
}
.js .ring-article.is-active > :nth-child(6) {
  transition-delay: 260ms;
}

@media (max-width: 899px) {
  .rings-layout {
    grid-template-columns: 1fr;
  }

  .rings-figure {
    display: none;
  }

  .ring-glyph {
    display: block;
  }

  .ring-article {
    min-height: 0;
    padding-block: 40px;
    border-top: 1px solid var(--line);
  }

  .ring-article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .js .ring-article > * {
    opacity: 1;
    transform: none;
  }
}

/* ── Path ─────────────────────────────────────────────────────────────────── */

.path-track {
  position: relative;
}

.path-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.path-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sun), var(--fire), var(--water), var(--land), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(1);
}

.path-line-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 18%;
  height: 8px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0;
}

.path-track.is-in .path-line-pulse {
  animation: pulse-run 4.5s var(--ease-io) 2.4s infinite;
}

@keyframes pulse-run {
  0% {
    left: -18%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.js .path-track[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .path-track .path-line-fill {
  transform: scaleX(0);
  transition: transform 2.4s var(--ease-io);
}

.js .path-track.is-in .path-line-fill {
  transform: scaleX(1);
}

.path-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.path-step {
  display: grid;
  align-content: start;
  gap: 10px;
}

.path-node {
  position: relative;
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  border-radius: 50%;
  border: 2px solid var(--c);
  background: var(--night-1);
  box-shadow: 0 0 0 6px var(--night-1), 0 0 22px var(--c);
}

.path-node::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--c);
}

.path-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c);
}

.path-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 0.9vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.path-step p:last-child {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.js .path-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(0.3s + var(--i) * 0.42s);
}

.js .path-step .path-node {
  transform: scale(0.2);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.3s + var(--i) * 0.42s);
}

.js .path-track.is-in .path-step {
  opacity: 1;
  transform: none;
}

.js .path-track.is-in .path-node {
  transform: scale(1);
}

@media (max-width: 1023px) {
  .path-steps {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 56px;
    max-width: 36rem;
    margin-inline: auto;
  }

  .path-line {
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    left: max(11px, calc(50% - 18rem + 11px));
  }

  .path-line-fill {
    background: linear-gradient(180deg, var(--sun), var(--fire), var(--water), var(--land), var(--sky));
    transform-origin: 50% 0;
  }

  .js .path-track .path-line-fill {
    transform: scaleY(0);
  }

  .js .path-track.is-in .path-line-fill {
    transform: scaleY(1);
  }

  .path-line-pulse {
    display: none;
  }

  .path-step {
    position: relative;
  }

  .path-node {
    position: absolute;
    left: -56px;
    top: 2px;
    margin: 0;
  }
}

/* ── LIFEmaster preview ───────────────────────────────────────────────────── */

.lifemaster {
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 55%, rgba(56, 189, 248, 0.1), transparent 70%),
    radial-gradient(40% 35% at 80% 30%, rgba(129, 140, 248, 0.08), transparent 70%);
}

.lm-stage {
  position: relative;
  perspective: 1800px;
  perspective-origin: 50% 0%;
  max-width: 1180px;
  margin-inline: auto;
}

.js .lm-stage {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0deg;
  --sc: 1;
}

.lm-tilt {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx, 0deg) + var(--px, 0deg))) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 20%;
  transition: transform 0.12s linear;
  will-change: transform;
}

.lm-window {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    0 60px 120px rgba(2, 6, 23, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 -1px 0 rgba(125, 211, 252, 0.25) inset;
}

/* Without JS the replica cannot be scaled to fit, so it steps aside */
html:not(.js) .lm-stage {
  display: none;
}

.lm-inner {
  width: 1200px;
  transform-origin: 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: #eef2ff;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.2), transparent 50%),
    #0a0f1e;
  user-select: none;
  pointer-events: none;
}

.lm-inner p {
  margin: 0;
}

.lm-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background: rgba(3, 5, 12, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.lm-dots {
  display: flex;
  gap: 7px;
}

.lm-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}

.lm-dots i:nth-child(1) {
  background: #f87171;
}
.lm-dots i:nth-child(2) {
  background: #facc15;
}
.lm-dots i:nth-child(3) {
  background: #4ade80;
}

.lm-dots-ghost {
  visibility: hidden;
}

.lm-url {
  padding: 4px 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.lm-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 700px;
}

.lm-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 26px 18px;
  background: rgba(8, 12, 26, 0.95);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.lm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lm-brand img {
  width: 40px;
  height: 40px;
}

.lm-brand-title {
  font-size: 16px;
  font-weight: 700;
}

.lm-brand-sub {
  font-size: 12px;
  color: #94a3b8;
}

.lm-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.lm-nav span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.08);
  font-size: 13px;
  font-weight: 600;
}

.lm-nav .is-active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.4);
}

.lm-side-foot {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.lm-btn-ghost {
  background: rgba(56, 189, 248, 0.16);
  color: #f8fafc;
}

.lm-btn-primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #05121f;
}

.lm-main {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 30px 36px 36px;
}

.lm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lm-menu {
  display: none;
}

.lm-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.85);
}

.lm-h1 {
  margin: 6px 0 6px !important;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lm-h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px !important;
}

.lm-muted {
  font-size: 12.5px;
  color: #94a3b8;
}

.lm-actions {
  display: flex;
  gap: 10px;
}

.lm-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lm-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(14, 20, 38, 0.92);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

.lm-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lm-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.lm-value small {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 600;
}

.lm-week {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.lm-week i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.lm-week i.on {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.lm-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
}

.lm-spotlight {
  gap: 18px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%),
    rgba(10, 18, 36, 0.96);
}

.lm-spot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lm-pill,
.lm-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 600;
}

.lm-status {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.lm-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  height: 190px;
}

.lm-chart i {
  height: var(--h);
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(129, 140, 248, 0.5));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
  transform-origin: 50% 100%;
}

.js .lm-chart i {
  transform: scaleY(0.04);
  transition: transform 1.2s var(--ease);
}

.js .lm-stage.is-in .lm-chart i {
  transform: scaleY(1);
}

.lm-chart i:nth-child(2) {
  transition-delay: 0.08s;
}
.lm-chart i:nth-child(3) {
  transition-delay: 0.16s;
}
.lm-chart i:nth-child(4) {
  transition-delay: 0.24s;
}
.lm-chart i:nth-child(5) {
  transition-delay: 0.32s;
}
.lm-chart i:nth-child(6) {
  transition-delay: 0.4s;
}

.lm-next {
  gap: 10px;
}

.lm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.lm-item > div {
  flex: 1;
  min-width: 0;
}

.lm-item-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px !important;
}

.lm-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  font-weight: 700;
}

/* Compact replica mirrors the dashboard's own ≤960px layout */
.lm-window.is-compact .lm-inner {
  width: 440px;
}

.lm-window.is-compact .lm-app {
  grid-template-columns: 1fr;
  min-height: 0;
}

.lm-window.is-compact .lm-side {
  display: none;
}

.lm-window.is-compact .lm-main {
  padding: 22px 20px 26px;
  gap: 16px;
}

.lm-window.is-compact .lm-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lm-window.is-compact .lm-menu {
  display: inline-flex;
}

.lm-window.is-compact .lm-h1 {
  font-size: 30px;
}

.lm-window.is-compact .lm-actions {
  width: 100%;
}

.lm-window.is-compact .lm-actions .lm-btn {
  flex: 1;
}

.lm-window.is-compact .lm-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lm-window.is-compact .lm-split {
  grid-template-columns: 1fr;
}

.lm-window.is-compact .lm-chart {
  height: 130px;
}

.lm-window.is-compact .lm-url {
  font-size: 11px;
  padding: 3px 12px;
}

.lm-halo {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8%;
  height: 40%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.28), rgba(129, 140, 248, 0.12) 50%, transparent);
  filter: blur(30px);
  pointer-events: none;
}

.lm-caption {
  margin-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

html:not(.js) .lm-caption {
  display: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(64px, 8vw, 110px);
}

.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.feature svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--c);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--c));
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
}

.feature p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.lm-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(56px, 7vw, 96px);
}

@media (max-width: 1023px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }

  .lm-cta .btn {
    flex: 1 1 100%;
  }
}

/* ── Beliefs ──────────────────────────────────────────────────────────────── */

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--line);
}

.belief {
  display: flex;
  background: var(--night-1);
}

.belief-feature {
  grid-column: span 3;
}

.belief a {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  width: 100%;
  padding: clamp(28px, 3.5vw, 44px);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: background-color 0.5s var(--ease);
}

.belief a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--c-rgb), 0.14), transparent 60%);
  transition: opacity 0.6s var(--ease);
}

.belief a:hover::before,
.belief a:focus-visible::before {
  opacity: 1;
}

.belief a:focus-visible {
  outline-offset: -4px;
  border-radius: 0;
}

.belief-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c);
}

.belief-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.35rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.belief-text {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.belief-feature a {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(40px, 5vw, 72px);
}

.belief-feature .belief-num {
  grid-row: span 3;
  align-self: start;
  font-size: clamp(4rem, 2rem + 6vw, 8rem);
  line-height: 0.8;
  text-shadow: 0 0 50px rgba(var(--c-rgb), 0.45);
}

.belief-feature .belief-title {
  font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4.4rem);
  line-height: 1;
}

.belief-feature .belief-text {
  max-width: 40rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

/* Reveal the card contents, not the cell, so the grid's hairline background never shows through */
.js .belief[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .belief[data-reveal] > a {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease),
    background-color 0.5s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .belief[data-reveal].is-in > a {
  opacity: 1;
  transform: none;
}

.belief-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.belief-more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.belief a:hover .belief-more::after {
  transform: translateX(4px);
}

@media (max-width: 1023px) {
  .belief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .belief-feature {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .belief-grid {
    grid-template-columns: 1fr;
  }

  .belief-feature {
    grid-column: auto;
  }

  .belief-feature a {
    grid-template-columns: 1fr;
  }

  .belief-feature .belief-num {
    grid-row: auto;
  }
}

/* ── Vision ───────────────────────────────────────────────────────────────── */

.vision {
  background: radial-gradient(45% 40% at 78% 35%, rgba(250, 204, 21, 0.06), transparent 70%);
}

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.vision-copy {
  display: grid;
  gap: 28px;
}

.vision-quote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.vision-quote blockquote p::before {
  content: "“";
  display: block;
  height: 0.5em;
  margin-bottom: 0.15em;
  font-size: 1.8em;
  line-height: 1;
  color: var(--sun);
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.5);
}

.vision-quote figcaption {
  margin-top: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.vision-quote figcaption::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--line-strong);
}

.hive {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.hive svg {
  width: 100%;
  max-width: 440px;
  overflow: visible;
}

.hive figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.cell {
  fill: rgba(148, 163, 184, 0.03);
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.2;
  transition: fill 0.9s var(--ease), stroke 0.9s var(--ease);
}

.gen-0 {
  fill: rgba(250, 204, 21, 0.85);
  stroke: #fde68a;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.7));
}

.gen-1 {
  fill: rgba(248, 113, 113, 0.45);
  stroke: var(--fire);
}
.gen-2 {
  fill: rgba(96, 165, 250, 0.3);
  stroke: var(--water);
}
.gen-3 {
  fill: rgba(74, 222, 128, 0.2);
  stroke: var(--land);
}
.gen-4 {
  fill: rgba(56, 189, 248, 0.1);
  stroke: rgba(56, 189, 248, 0.6);
}

.js .hive:not(.is-in) .cell:not(.gen-0) {
  fill: rgba(148, 163, 184, 0.02);
  stroke: rgba(148, 163, 184, 0.16);
}

.js .hive.is-in .gen-1 {
  transition-delay: 0.5s;
}
.js .hive.is-in .gen-2 {
  transition-delay: 1s;
}
.js .hive.is-in .gen-3 {
  transition-delay: 1.5s;
}
.js .hive.is-in .gen-4 {
  transition-delay: 2s;
}

.hive.is-in .gen-0 {
  animation: genesis 3.2s ease-in-out infinite;
}

@keyframes genesis {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.55));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(250, 204, 21, 0.95));
  }
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(64px, 8vw, 110px);
}

.stage {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stage-when {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c);
}

.stage-when::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.stage h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 0.9vw, 2.3rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
}

.stage p:last-child {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 1023px) {
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .hive svg {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .stages {
    grid-template-columns: 1fr;
  }
}

/* ── Final call ───────────────────────────────────────────────────────────── */

.begin {
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(50% 55% at 50% 45%, rgba(129, 140, 248, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-0));
}

.begin-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.begin-rings {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(250, 204, 21, 0.25)) drop-shadow(0 0 40px rgba(96, 165, 250, 0.2));
  animation: begin-breathe 8s ease-in-out infinite;
}

@keyframes begin-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(6deg);
  }
}

.begin-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.begin-lead {
  max-width: 36rem;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.begin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 560px) {
  .begin-actions .btn {
    flex: 1 1 100%;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(56px, 8vw, 96px) 36px;
  border-top: 1px solid var(--line);
  background: var(--night-0);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr);
  gap: 36px;
}

.footer-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.footer-heading {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover,
.footer-help a:hover {
  color: #7dd3fc;
}

.footer-help p:last-child {
  color: var(--ink-2);
}

.footer-help a {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-help {
    grid-column: span 2;
  }
}

/* ── Preferences & modes ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .hero-reveal,
  .js [data-reveal],
  .js .belief[data-reveal] > a,
  .js .path-step,
  .js .ring-article > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .js .path-track .path-line-fill,
  .js .lm-chart i {
    transform: none !important;
  }

  .js .path-step .path-node {
    transform: none !important;
  }

  .js .manifesto.is-split .w {
    color: var(--ink) !important;
  }

  .rings-svg,
  .begin-rings,
  .scroll-cue-line::after,
  .path-line-pulse {
    animation: none !important;
  }

  .comet {
    display: none;
  }
}

@media (forced-colors: active) {
  body::before,
  .hero-canvas,
  .lm-halo {
    display: none;
  }

  .btn,
  .menu-toggle,
  .vital,
  .stage,
  .lm-window {
    border: 1px solid CanvasText;
  }

  .section-title em,
  .who-kicker em,
  .begin-title em,
  .hero-title em {
    -webkit-text-fill-color: CanvasText;
    background: none;
  }

  .ring-name,
  .belief-num,
  .path-num {
    color: CanvasText;
  }
}

@media print {
  body::before,
  .hero-canvas,
  .scroll-progress,
  .menu-toggle,
  .lm-stage,
  .lm-caption {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  .js [data-reveal],
  .js .belief[data-reveal] > a,
  .js .hero-reveal,
  .js .path-step,
  .js .ring-article > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
