/* ==========================================================================
   ORLUX — Light & Wellness. A calmer, brighter, breathing theme.
   Scoped to .lt-theme so the dark cinematic site is untouched. v2 (2026-11-17);
   v1 (dark gold) archived in brain/archive/light-v1/.
   Contrast (verified by calc): ink #2A2926 on cream #F7F2EA ≈ 13:1; muted #665F54 ≈ 5.6:1; sage #4B6B58 ≈ 5.4:1.
   ========================================================================== */

.lt-theme {
  color-scheme: light;
  --color-bg: #F7F2EA;  --color-surface: #EFE7DA;  --color-card: #FFFDF8;  --color-raised: #E7DECF;
  --color-fg: #2A2926;  --color-fg-2: #4A4740;     --color-muted: #665F54;  --color-faint: #6F685C;
  --color-accent: #4B6B58;  --color-accent-hover: #3B5746;  --color-accent-press: #2F4638;  --color-on-accent: #F7F2EA;
  --color-cta: #2A2926;  --color-on-cta: #F7F2EA;
  --color-line: rgba(42, 41, 38, .12);  --color-line-strong: rgba(42, 41, 38, .22);
  --color-ring: #4B6B58;
  --glow-accent: 0 0 0 1px rgba(75, 107, 88, .3), 0 0 24px rgba(75, 107, 88, .18);
  --shadow-3: 0 30px 70px -30px rgba(90, 70, 40, .35);
  --breath: 9s;
  background: var(--color-bg); color: var(--color-fg);
}
.lt-theme .display, .lt-theme .wl-hero__title { font-weight: 300; }
.lt-theme .display em { color: var(--color-accent); }
.lt-theme .btn--cta:hover { background: #3E3B36; box-shadow: var(--glow-accent); }
.lt-theme .site-header.is-solid { background: rgba(247, 242, 234, .82); }
.lt-theme .mobile-menu { background: rgba(247, 242, 234, .97); }
.lt-theme .menu-btn { background: rgba(247, 242, 234, .6); }
.lt-theme .site-footer { background: var(--color-surface); }
.lt-theme ::selection { background: rgba(75, 107, 88, .25); }

/* ---- Breathing primitives ---------------------------------------------- */
@keyframes wl-breathe { 0%, 100% { transform: scale(.9); opacity: .78; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes wl-ring    { 0%, 100% { transform: scale(.82); opacity: .0; } 40% { opacity: .55; } 50% { transform: scale(1.12); opacity: .5; } 90% { opacity: 0; } }
@keyframes wl-in      { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wl-out     { 0%, 45% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wl-drift   { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
@keyframes wl-dot     { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.08); } }

.wl-orb { position: relative; width: var(--orb-size, 320px); aspect-ratio: 1; flex: none; }
.wl-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--ink, 75 107 88) / .45); opacity: 0; animation: wl-ring var(--breath) ease-in-out infinite; }
.wl-orb i:nth-child(2) { inset: -11%; animation-delay: calc(var(--breath) * .12); }
.wl-orb i:nth-child(3) { inset: -24%; animation-delay: calc(var(--breath) * .24); }
.wl-orb b { position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--orb, #FFD9B3) 42%, var(--orb-0, rgba(255, 217, 179, 0)) 71%);
  filter: blur(1.5px); animation: wl-breathe var(--breath) ease-in-out infinite; }

/* ---- Hero --------------------------------------------------------------- */
.wl-hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, #FBE8D3, #F7F2EA 38%, #DCEBEF 70%, #F7E3D0); background-size: 240% 240%; animation: wl-drift 40s ease-in-out infinite; }
.wl-orb--hero { --orb-size: min(78vw, 640px); --orb: #FFC99A; --orb-0: rgba(255, 201, 154, 0); --ink: 75 107 88;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.wl-hero__body { position: relative; display: grid; justify-items: center; gap: var(--space-5); padding-block: 7rem 6rem; }
.wl-breath { position: relative; margin: 0; height: 1.6em; width: 12em; font-size: var(--text-eyebrow); letter-spacing: .38em; text-transform: uppercase; color: var(--color-muted); }
.wl-breath span { position: absolute; inset: 0; text-align: center; margin-right: -.38em; }
.wl-breath span:first-child { animation: wl-in var(--breath) ease-in-out infinite; }
.wl-breath span:last-child  { opacity: 0; animation: wl-out var(--breath) ease-in-out infinite; }
.wl-hero__title { margin: 0; max-width: 14ch; font-family: var(--font-display); font-size: clamp(2.8rem, 1.4rem + 6vw, 6.5rem); line-height: 1.03; letter-spacing: -.01em; text-wrap: balance; }
.wl-hero__title em { font-style: italic; font-weight: 300; color: var(--color-accent); }
.wl-hero__sub { margin: 0; font-size: var(--text-lead); color: var(--color-fg-2); }
.wl-down { display: grid; place-items: center; width: 44px; height: 44px; margin-top: var(--space-6); text-decoration: none; }
.wl-down span { width: 12px; height: 12px; border-right: 1.5px solid var(--color-fg-2); border-bottom: 1.5px solid var(--color-fg-2); rotate: 45deg; animation: wl-dot var(--breath) ease-in-out infinite; }

/* ---- Three truths ------------------------------------------------------- */
.wl-truths { padding-block: clamp(4rem, 9vw, 8rem); background: var(--color-bg); }
.wl-truths ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); text-align: center; }
.wl-truths li { display: grid; justify-items: center; gap: var(--space-5); }
.wl-truths p { margin: 0; max-width: 11ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.2; text-wrap: balance; }
.wl-truths em { font-style: italic; color: var(--color-accent); }
.wl-dot { display: block; width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--c, var(--k)) 60%); box-shadow: 0 14px 40px -8px var(--c, var(--k)); animation: wl-dot var(--breath) ease-in-out infinite; }
.wl-truths li:nth-child(2) .wl-dot, .wl-ks li:nth-child(2) .wl-dot { animation-delay: calc(var(--breath) * .18); }
.wl-truths li:nth-child(3) .wl-dot, .wl-ks li:nth-child(3) .wl-dot { animation-delay: calc(var(--breath) * .36); }
.wl-ks li:nth-child(4) .wl-dot { animation-delay: calc(var(--breath) * .54); }
.wl-ks li:nth-child(5) .wl-dot { animation-delay: calc(var(--breath) * .72); }

/* ---- Section heads ------------------------------------------------------ */
.wl-head { text-align: center; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); max-width: 40rem; }
.wl-head .eyebrow { margin-bottom: var(--space-4); }
.wl-day, .wl-kelvin, .wl-flows, .wl-craft { padding-block: clamp(4rem, 9vw, 8rem); }
.wl-kelvin { background: var(--color-surface); }

/* ---- A day in light ----------------------------------------------------- */
.wl-sky { --sky-top: #D9EAF3; --sky-bot: #FFEBD6; --ink: 42 41 38;
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.75rem, 5vw, 4.5rem); border-radius: clamp(28px, 4vw, 56px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); color: rgb(var(--ink)); box-shadow: var(--shadow-3); }
.wl-orb--sky { --orb-size: clamp(200px, 30vw, 340px); margin: clamp(.5rem, 2.5vw, 2rem); transform: scale(var(--s, 1)); transition: transform 300ms linear; }
.wl-sky__copy { display: grid; gap: var(--space-3); }
.wl-sky__clock { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); letter-spacing: .24em; opacity: .75; font-variant-numeric: tabular-nums; }
.wl-sky__word { margin: 0; font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(3.2rem, 1.6rem + 7vw, 7rem); line-height: 1; letter-spacing: -.01em; }
.wl-sky__line { margin: var(--space-3) 0 0; font-size: var(--text-lead); max-width: 28ch; line-height: 1.4; }
.wl-sky__home { margin: 0; font-size: var(--text-sm); max-width: 38ch; opacity: .82; }
.wl-sky__nums { margin: var(--space-3) 0 0; display: flex; gap: .8em; font-size: var(--text-sm); letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: .8; }
.wl-sky__controls { grid-column: 1 / -1; display: grid; gap: var(--space-3); }
.wl-sky__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wl-pill, .wl-wake button { min-height: 44px; padding: 0 1.15rem; border-radius: 999px; cursor: pointer; border: 1px solid rgb(var(--ink) / .35); background: rgb(255 255 255 / .18); color: inherit; font-variant-numeric: tabular-nums; transition: background var(--dur-fast) var(--ease-out); }
.wl-pill:hover, .wl-wake button:hover { background: rgb(255 255 255 / .38); }
.wl-pill[aria-pressed="true"], .wl-wake button[aria-pressed="true"] { background: rgb(var(--ink)); color: rgb(var(--ink-inv, 247 242 234)); border-color: transparent; }
.wl-wake { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-left: auto; }
.wl-wake__label { font-size: var(--text-sm); opacity: .8; margin-right: var(--space-1); }
.wl-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.wl-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgb(var(--ink) / .3); }
.wl-slider::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(var(--ink) / .3); }
.wl-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: rgb(var(--ink)); border: 4px solid rgb(255 255 255 / .55); }
.wl-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--ink)); border: 4px solid rgb(255 255 255 / .55); }
.wl-slider:focus-visible, .wl-pill:focus-visible, .wl-wake button:focus-visible { outline: 2px solid rgb(var(--ink)); outline-offset: 3px; }

.wl-chart { margin: clamp(2rem, 4vw, 3.5rem) 0 0; }
.wl-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.wl-chart figcaption { margin-top: var(--space-2); text-align: center; color: var(--color-muted); font-size: var(--text-sm); }
.lt-grid { stroke: var(--color-line); }
.lt-axis { fill: var(--color-muted); font-family: var(--font-body); font-size: 11px; letter-spacing: .06em; }
.lt-axis--mark { fill: var(--color-fg-2); }
.lt-area { fill: rgba(233, 162, 122, .22); }
.lt-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lt-line--b { stroke: #D98A5F; stroke-width: 1.5; }
.lt-line--k { stroke: var(--color-accent); }
.lt-label { display: none; }
.lt-mark { fill: var(--color-bg); stroke: var(--color-fg-2); stroke-width: 1.5; }
.lt-cursor { stroke: var(--color-fg); stroke-opacity: .45; stroke-dasharray: 3 4; }
.lt-dot { stroke: var(--color-fg); stroke-width: 2; }

/* ---- Kelvin ------------------------------------------------------------- */
.wl-scale { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.wl-scale div { height: clamp(10px, 1.6vw, 16px); border-radius: 999px; }
.wl-ks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); text-align: center; }
.wl-ks li { display: grid; justify-items: center; gap: var(--space-2); }
.wl-ks .wl-dot { width: clamp(44px, 6vw, 72px); margin-bottom: var(--space-3); }
.wl-ks b { font-family: var(--font-display); font-weight: 300; font-size: var(--text-h3); font-variant-numeric: tabular-nums; }
.wl-ks span { color: var(--color-muted); font-size: var(--text-sm); letter-spacing: .14em; text-transform: uppercase; }

/* ---- Waking / settling ------------------------------------------------- */
.wl-flows__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.wl-flow { padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: clamp(24px, 3vw, 40px); }
.wl-flow--dawn { background: linear-gradient(160deg, #FFE6CC, #FFF6E8 60%, #E4F0F4); }
.wl-flow--dusk { background: linear-gradient(160deg, #F6D2B2, #E9C3B0 55%, #CBBFD3); }
.wl-flow h3 { margin: 0 0 var(--space-6); font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: var(--text-h2); line-height: 1; }
.wl-flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.wl-flow li { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; padding-top: var(--space-3); border-top: 1px solid rgba(42, 41, 38, .18); }
.wl-flow b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.wl-flow span { color: #3F3B34; }

/* ---- Craft -------------------------------------------------------------- */
.wl-craft ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.wl-craft li { padding-top: var(--space-4); border-top: 1px solid var(--color-line-strong); }
.wl-craft h3 { margin: 0 0 var(--space-2); font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.wl-craft p { margin: 0; color: var(--color-fg-2); }

/* ---- Close -------------------------------------------------------------- */
.wl-close { position: relative; overflow: hidden; text-align: center; padding-block: clamp(5rem, 11vw, 10rem); background: linear-gradient(180deg, var(--color-bg), #F6DFC8 60%, #EFD3BC); }
.wl-orb--close { --orb-size: min(90vw, 620px); --orb: #FFD2A6; --orb-0: rgba(255, 210, 166, 0); --ink: 75 107 88; position: absolute; left: 50%; top: 42%; translate: -50% -50%; }
.wl-close__body { position: relative; display: grid; justify-items: center; gap: var(--space-6); }
.wl-close .display { font-size: var(--text-display); }
.wl-close p { margin: 0; }
.wl-nums { margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) clamp(2rem, 6vw, 5rem); }
.wl-nums dt { font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-muted); }
.wl-nums dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-variant-numeric: tabular-nums; }
.wl-fine { max-width: 52ch; color: var(--color-fg-2); font-size: var(--text-sm); }
.wl-sources { color: var(--color-muted); font-size: var(--text-sm); max-width: 70ch; text-align: left; }
.wl-sources summary { cursor: pointer; min-height: 44px; display: flex; justify-content: center; align-items: center; letter-spacing: .14em; text-transform: uppercase; font-size: var(--text-eyebrow); }
.wl-sources ul { margin: var(--space-2) 0 0; padding-left: 1.1rem; display: grid; gap: var(--space-2); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .wl-truths ul { grid-template-columns: 1fr; gap: var(--space-7); }
  .wl-sky { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wl-sky__copy { justify-items: center; }
  .wl-wake { margin-left: 0; }
  .wl-sky__row { justify-content: center; }
  .wl-flows__grid { grid-template-columns: 1fr; }
  .wl-craft ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wl-ks { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-6); }
  .wl-craft ul { grid-template-columns: 1fr; }
  .wl-flow li { grid-template-columns: 4.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-orb i, .wl-orb b, .wl-dot, .wl-down span, .wl-hero { animation: none !important; }
  .wl-orb i { opacity: .3; }
  .wl-breath span:last-child { display: none; }
  .wl-orb--sky { transition: none; }
}

/* ---- Homepage section (id="wellness") ---------------------------------- */
.wl-home { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 12vw, 11rem); background: linear-gradient(180deg, #F7F2EA, #FBE8D3 55%, #DCEBEF); }
.wl-orb--home { top: 50%; --orb-size: min(86vw, 560px); }
.wl-home__body { position: relative; display: grid; justify-items: center; gap: var(--space-5); }
.wl-home .display { font-size: var(--text-display); max-width: 14ch; }
.wl-home__sub { margin: 0; font-size: var(--text-lead); color: var(--color-fg-2); }
.wl-home__dots { list-style: none; margin: var(--space-5) 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6) clamp(1.5rem, 4vw, 3.5rem); }
.wl-home__dots li { display: grid; justify-items: center; gap: var(--space-3); }
.wl-home__dots .wl-dot { width: clamp(44px, 6vw, 68px); }
.wl-home__dots li:nth-child(2) .wl-dot { animation-delay: calc(var(--breath) * .18); }
.wl-home__dots li:nth-child(3) .wl-dot { animation-delay: calc(var(--breath) * .36); }
.wl-home__dots li:nth-child(4) .wl-dot { animation-delay: calc(var(--breath) * .54); }
.wl-home__dots li:nth-child(5) .wl-dot { animation-delay: calc(var(--breath) * .72); }
.wl-home__dots span { font-size: var(--text-sm); letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.wl-home p { margin: 0; }
