/* Mindhour website. Palette taken from the channel's banner and 24-hour dial logo. */

@font-face { font-family: 'Lato'; src: url('/fonts/Lato-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('/fonts/Lato-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --bg: #060914;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(200, 205, 255, 0.09);
  --line-2: rgba(200, 205, 255, 0.17);
  --text: #eeecff;
  --muted: #a6a5c8;
  --faint: #7c7ca3;
  --cream: #fbf3e3;
  --navy: #0b0f26;
  --gold: #f3d19b;

  /* Brainwave ranges: night indigo → dawn sky → day gold, as on the logo ring */
  --delta: #7f81f2;
  --theta: #b292f4;
  --alpha: #88d4ea;
  --beta: #f2c47f;
  --gamma: #f39b7e;

  --tone: var(--gold);
  --b: var(--alpha);
  --radius: 16px;
  --wrap: 1200px;
  --header: 68px;
}

.band-delta { --b: var(--delta); }
.band-theta { --b: var(--theta); }
.band-alpha { --b: var(--alpha); }
.band-beta { --b: var(--beta); }
.band-gamma { --b: var(--gamma); }

.tone-sleep { --tone: #9192f6; }
.tone-focus { --tone: #72d7ca; }
.tone-calm { --tone: #b89ff4; }
.tone-morning { --tone: #f3c47c; }
.tone-circadian { --tone: #8fd3ea; }
.tone-workout { --tone: #f39d80; }
.tone-hormone { --tone: #eea1c7; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1; outline: none; transition: opacity 0.2s; }
main.is-loading { opacity: 0.45; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-weight: 300; font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(243, 209, 155, 0.35); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--cream); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

/* ---------- night sky ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(78, 88, 205, 0.26), transparent 62%),
    radial-gradient(900px 520px at 105% 8%, rgba(150, 96, 190, 0.15), transparent 60%),
    radial-gradient(900px 700px at 55% 115%, rgba(36, 92, 150, 0.2), transparent 62%),
    var(--bg);
}
.sky::before, .sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 33% 72%, #fff, transparent),
    radial-gradient(1px 1px at 52% 34%, #fff, transparent), radial-gradient(1.5px 1.5px at 71% 12%, #fff, transparent),
    radial-gradient(1px 1px at 88% 58%, #fff, transparent), radial-gradient(1px 1px at 23% 46%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 88%, #fff, transparent), radial-gradient(1px 1px at 92% 90%, #fff, transparent),
    radial-gradient(1px 1px at 6% 82%, #fff, transparent), radial-gradient(1px 1px at 44% 6%, #fff, transparent);
  background-size: 540px 540px;
  opacity: 0.35;
}
.sky::after { background-size: 820px 820px; background-position: 130px 210px; opacity: 0.22; }
/* The glowing horizon line from the channel banner, under the home hero. */
.hero { position: relative; }
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 3px;
  transform: translateX(-50%);
  /* The colours slide slowly along the line, like light moving across the horizon. */
  background: linear-gradient(90deg, #9aa6ee, #efb88c 22%, #a891d8 45%, #f0c08e 68%, #8fd3ea 86%, #9aa6ee) 0 0 / 50% 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  animation: horizon-flow 26s linear infinite;
}
@keyframes horizon-flow { to { background-position: 100% 0; } }
body { overflow-x: clip; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 9, 20, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: 0.24em; font-size: 1.02rem; }
.brand img { border-radius: 50%; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--muted); padding: 7px 13px; border-radius: 999px; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a[aria-current='page'] { color: var(--text); background: var(--surface-2); }
.nav-subscribe { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 4px rgba(251, 243, 227, 0.12), 0 10px 30px -10px rgba(251, 243, 227, 0.5); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(220, 222, 255, 0.3); }
.btn-small { padding: 8px 15px; font-size: 0.88rem; }
.btn svg, .chip svg, .listen svg, .eyebrow svg, .text-link svg, .more svg, .series svg, .icon-btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow.gold { color: var(--gold); letter-spacing: 0.28em; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(8, 10, 28, 0.8); border: 1px solid var(--line-2); color: var(--text);
  /* No backdrop blur: the background moves, and a blur behind every pill would be redrawn each frame. */
}
.pill-live { color: #c2f5d8; }
.pill-quiet { color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5be3a0; box-shadow: 0 0 0 0 rgba(91, 227, 160, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(91, 227, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 160, 0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 0.84rem;
  background: var(--surface-2); border: 1px solid var(--line);
}
.chip[class*='band-'] { color: var(--b); border-color: color-mix(in srgb, var(--b) 40%, transparent); background: color-mix(in srgb, var(--b) 9%, transparent); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 64px 0 48px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 60ch; margin-top: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; margin: 40px 0 0; }
.stats dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.stats dd { margin: 2px 0 0; font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.hero-dial { display: block; max-width: 500px; width: 100%; justify-self: center; border-radius: 50%; }
.hero-dial:hover .seg { fill-opacity: 0.6; }

/* ---------- the dial ---------- */
.dial { width: 100%; height: auto; display: block; overflow: visible; }
.dial .seg { fill: var(--b); fill-opacity: 0.32; stroke: transparent; stroke-width: 0; transition: fill-opacity 0.25s, stroke 0.25s; }
.dial .seg.is-live { fill-opacity: 0.8; }
.dial .seg.is-selected { fill-opacity: 1; stroke: #fff; stroke-width: 2.5; }
.dial-interactive .seg { cursor: pointer; outline: none; }
.dial-interactive .seg:hover { fill-opacity: 0.92; }
.dial-interactive .seg:focus-visible { stroke: var(--gold); stroke-width: 3.5; fill-opacity: 1; }
.dial .tick { stroke: rgba(230, 230, 255, 0.24); stroke-width: 2; stroke-linecap: round; }
.dial .tick.major { stroke: rgba(230, 230, 255, 0.5); stroke-width: 3.5; }
.dial .sun { fill: #fff7e6; }
.dial-hand { transition: transform 1s linear; }
.dial text { font-family: inherit; text-anchor: middle; dominant-baseline: middle; fill: var(--text); }
.dial .dial-label { font-size: 13px; fill: var(--faint); font-weight: 700; letter-spacing: 0.06em; }
.dial .dial-label.major { fill: var(--muted); }
.dial .c-time, .dial .c-hour { font-size: 50px; font-weight: 300; font-variant-numeric: tabular-nums; }
.dial .c-sub { font-size: 19px; font-weight: 700; fill: var(--gold); }
.dial .c-tiny { font-size: 13px; fill: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

/* ---------- sections ---------- */
.section { margin: 80px auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.more:hover { color: var(--text); }
.page-head { padding: 56px 0 28px; }
.page-head .lede { margin-top: 16px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tone) 45%, transparent); box-shadow: 0 22px 44px -26px var(--tone); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #0c1024; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .pill { position: absolute; top: 10px; left: 10px; }
.thumb .len { position: absolute; bottom: 10px; right: 10px; font-size: 0.74rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(4, 6, 16, 0.82); }
.card-body { padding: 14px 16px 18px; }
.card-body .eyebrow { color: var(--tone); margin-bottom: 4px; font-size: 0.7rem; }
.card-body h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 0.84rem; color: var(--muted); }
.meta .band { color: var(--b); display: inline-flex; align-items: center; gap: 6px; }
.meta .band::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--b); }
.listen { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- player ---------- */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(120, 130, 255, 0.5); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-start { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.player-start img, .player-waiting img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(251, 243, 227, 0.93); color: var(--navy);
  box-shadow: 0 0 0 10px rgba(251, 243, 227, 0.14), 0 12px 40px rgba(0, 0, 0, 0.5); transition: transform 0.25s;
}
.play-icon svg { width: 34px; height: 34px; margin-left: 4px; }
.player-start:hover .play-icon { transform: scale(1.07); }
.player-note { position: absolute; left: 14px; bottom: 12px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.55); padding: 3px 9px; border-radius: 6px; }
.player-waiting img { filter: brightness(0.5) saturate(0.85); }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.overlay-label { font-weight: 700; font-size: 0.95rem; background: rgba(6, 9, 20, 0.72); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; }
.countdown { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.player-overlay .countdown { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }

/* ---------- home: your hour ---------- */
.now-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center;
  padding: 28px; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(143, 211, 234, 0.08), rgba(178, 146, 244, 0.07) 55%, rgba(243, 209, 155, 0.05));
}
.now-body h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 10px; }
.now-body .eyebrow { color: var(--tone); }
.now-intro { color: var(--muted); }
.alt { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.alt-label { font-size: 0.86rem; color: var(--muted); margin-bottom: 10px; }
.alt-card { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.alt-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.alt-card img { flex-shrink: 0; width: 112px; height: auto; border-radius: 9px; aspect-ratio: 16 / 9; object-fit: cover; }
.alt-card span:not(.alt-play) { flex: 1; display: flex; flex-direction: column; }
.alt-card small { color: var(--muted); font-size: 0.8rem; }
.alt-play { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.alt-play svg { width: 18px; height: 18px; margin-left: 2px; }

.premiere {
  display: flex; align-items: center; gap: 26px; margin-top: 28px; padding: 18px 26px 18px 18px;
  border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 13%, transparent), transparent 75%);
}
.premiere-thumb { flex-shrink: 0; width: 200px; height: auto; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.premiere-body { flex: 1; min-width: 0; }
.premiere-body .eyebrow { color: var(--tone); }
.premiere-body h2 { font-size: 1.7rem; margin-bottom: 4px; }
.premiere-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.premiere-body p { margin: 0; }
.premiere-count { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.countdown.big { font-size: 2.3rem; font-weight: 300; line-height: 1; }

.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mood {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 22px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.mood strong { font-size: 1.15rem; }
.mood span { color: var(--muted); font-size: 0.92rem; }
.mood small { margin-top: auto; padding-top: 10px; color: var(--tone); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.mood-glow { position: absolute; z-index: -1; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, var(--tone), transparent 68%); opacity: 0.28; transition: opacity 0.3s; }
.mood:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); transform: translateY(-2px); }
.mood:hover .mood-glow { opacity: 0.5; }

.trailer { display: grid; grid-template-columns: 1fr 1.45fr; gap: 44px; align-items: center; }
.trailer h2 { margin-bottom: 10px; font-size: 2.2rem; }

/* ---------- library ---------- */
.filters { display: grid; gap: 16px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); color: var(--muted);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.search input::placeholder { color: var(--faint); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.chip-btn:hover { color: var(--text); border-color: rgba(220, 222, 255, 0.32); }
.chip-btn.is-on { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.chip-btn small { font-weight: 400; opacity: 0.75; margin-left: 2px; }
.selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.selects label, .row-2 > label { display: flex; flex-direction: column; gap: 6px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
select {
  appearance: none; -webkit-appearance: none; width: 100%;
  padding: 10px 34px 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23a6a5c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  color: var(--text); font: inherit; font-size: 0.9rem; letter-spacing: 0; text-transform: none; cursor: pointer;
}
select:focus { border-color: var(--gold); outline: none; }
select option { background: #0e1230; }
.result-count { color: var(--muted); margin: 20px 0 14px; font-size: 0.92rem; min-height: 1.5em; }
.loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.skeleton { aspect-ratio: 16 / 12.5; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 20px; }

/* ---------- video page ---------- */
.crumbs { display: flex; gap: 8px; margin: 28px 0 20px; font-size: 0.88rem; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.video-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.video-head .eyebrow { color: var(--tone); }
.video-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.subtitle { color: var(--muted); margin: 10px 0 0; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 20px; font-size: 0.92rem; }
.status-line .pill { font-size: 0.82rem; padding: 5px 12px; }
.intro { font-size: 1.05rem; }
.series { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin: 30px 0 6px; }
.series a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: background 0.2s, border-color 0.2s; }
.series a:hover { background: var(--surface-2); border-color: var(--line-2); }
.series a.next { justify-content: flex-end; text-align: right; }
.series small { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.series-clock { color: var(--muted); font-size: 0.88rem; }
.video-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-top: 34px; }
.block { margin-bottom: 34px; }
.block h2, .facts h2, .tags h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.01em; }
.inside { list-style: none; padding: 0; margin: 0; }
.inside li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; }
.inside li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.chapters button { display: flex; gap: 14px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.chapters button { cursor: pointer; transition: background 0.2s; }
.chapters button:hover { background: var(--surface-2); }
.chapters li { display: flex; gap: 14px; }
.chapters li:not(:has(button)) { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ts { min-width: 52px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.affirmations { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.affirmations li { padding: 11px 16px; border-left: 2px solid var(--tone); background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent); border-radius: 0 10px 10px 0; font-size: 1.02rem; }
.note { padding: 16px 18px; border-radius: 14px; background: rgba(243, 209, 155, 0.06); border: 1px solid rgba(243, 209, 155, 0.22); color: #eadfca; font-size: 0.9rem; }
.facts { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.facts dl { margin: 0 0 14px; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 700; }
.tags { margin-top: 24px; }
.tags ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.tags a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- clock page ---------- */
.clock-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding-bottom: 20px; }
.clock-dial { max-width: min(560px, 74vh); width: 100%; justify-self: center; }
.clock-panel h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 6px; }
.clock-panel .eyebrow { color: var(--gold); }
.panel-thumb { position: relative; display: block; margin: 18px 0 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.panel-thumb .pill { position: absolute; top: 12px; left: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 0.88rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend small { color: var(--faint); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--b); vertical-align: -1px; margin-right: 6px; }
.legend .swatch { margin: 0; }
.swatch-live { background: linear-gradient(90deg, rgba(136, 212, 234, 0.3) 50%, var(--alpha) 50%); }
.swatch-sun { background: #fff7e6; box-shadow: 0 0 10px #fff7e6; }
.hour-strip { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hour-btn {
  width: 100%; display: grid; gap: 1px; padding: 11px 14px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, background 0.2s;
}
.hour-btn:hover { border-color: var(--line-2); }
.hour-btn.is-on { border-color: var(--b); background: color-mix(in srgb, var(--b) 12%, transparent); }
.hour-btn .h { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; color: var(--muted); }
.hour-btn .n { font-size: 0.92rem; }
.hour-btn .b { font-size: 0.78rem; color: var(--b); }
.hour-btn.is-live .h::after { content: ' · OUT NOW'; color: #9ff0c6; }

/* ---------- schedule ---------- */
.schedule { padding-bottom: 20px; }
.month { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 40px 0 10px; }
.rel-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rel-row { display: grid; grid-template-columns: 58px 128px 1fr auto; gap: 18px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line); transition: background 0.2s; border-radius: 10px; }
.rel-row:hover { background: var(--surface); }
.rel-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rel-date .wd, .rel-date .m { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.rel-date .d { font-size: 1.6rem; font-weight: 300; color: var(--tone); }
.rel-thumb img { width: 128px; height: auto; border-radius: 9px; aspect-ratio: 16 / 9; object-fit: cover; }
.rel-body { display: flex; flex-direction: column; min-width: 0; }
.rel-body a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.rel-status { display: flex; align-items: center; gap: 10px; }
.rel-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

/* ---------- tone lab ---------- */
.lab { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; margin-bottom: 28px; }
.lab-stage {
  position: sticky; top: calc(var(--header) + 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 480px; padding: 34px 24px; text-align: center;
  border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--b) 14%, transparent), transparent 65%), var(--surface);
  transition: background 0.6s;
}
.lab-stage[data-range='delta'] { --b: var(--delta); }
.lab-stage[data-range='theta'] { --b: var(--theta); }
.lab-stage[data-range='alpha'] { --b: var(--alpha); }
.lab-stage[data-range='beta'] { --b: var(--beta); }
.lab-stage[data-range='gamma'] { --b: var(--gamma); }
.lab-orb {
  position: relative; width: 200px; height: 200px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--b) 80%, #fff 20%), color-mix(in srgb, var(--b) 30%, transparent) 58%, transparent 71%);
  box-shadow: 0 0 90px -10px color-mix(in srgb, var(--b) 55%, transparent);
  opacity: 0.7; transition: opacity 0.6s, background 0.6s, box-shadow 0.6s;
}
.lab-orb span { position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); }
/* A slow, fixed 8-second breath. It never follows the beat rate. */
.lab-stage.is-playing .lab-orb { opacity: 1; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.93); } 50% { transform: scale(1.04); } }
.lab-band { margin: 0; color: var(--b); font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.82rem; }
.lab-beat { margin: 0; font-size: 2.8rem; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lab-ears { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.lab-play { margin-top: 10px; min-width: 140px; }
.lab-play svg { width: 18px; height: 18px; }
.lab-hint { color: var(--muted); font-size: 0.88rem; max-width: 38ch; margin: 4px 0 0; }
.lab-controls { display: grid; gap: 22px; padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.chip-btn[class*='band-'] small { color: var(--b); opacity: 1; }
.chip-btn.is-on[class*='band-'] small { color: var(--navy); }
.segmented { display: flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 9px 10px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.segmented input:checked + span { background: var(--cream); color: var(--navy); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.slider { display: grid; gap: 10px; }
.slider > span { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); }
.slider output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--line-2); outline: none; margin: 6px 0; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px rgba(251, 243, 227, 0.14); cursor: pointer; }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px rgba(251, 243, 227, 0.14); cursor: pointer; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--gold); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab-figure { margin: 0; }
.lab-figure svg { width: 100%; height: 150px; display: block; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.lab-figure path { fill: none; vector-effect: non-scaling-stroke; }
.w-left { stroke: var(--theta); stroke-width: 1.3; opacity: 0.85; }
.w-right { stroke: var(--alpha); stroke-width: 1.3; opacity: 0.7; }
.w-beat { stroke: var(--gold); stroke-width: 2.4; }
.lab-figure figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--faint); }
.k { white-space: nowrap; color: var(--muted); }
.k::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin: 0 5px 3px 4px; vertical-align: middle; background: currentColor; }
.k-left::before { background: var(--theta); }
.k-right::before { background: var(--alpha); }
.k-beat::before { background: var(--gold); }

/* ---------- about ---------- */
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; padding-bottom: 20px; }
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #d6d4ef; }
.prose li { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); font-weight: 700; font-size: 0.88rem; }
.steps strong, .prose li strong { color: var(--text); }
table.bands { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.95rem; }
.bands th, .bands td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.bands thead th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.bands tbody th { font-weight: 700; white-space: nowrap; }
.bands td { color: var(--muted); }
.safety { position: sticky; top: calc(var(--header) + 20px); padding: 26px; border-radius: 20px; border: 1px solid rgba(243, 209, 155, 0.22); background: rgba(243, 209, 155, 0.045); }
.safety h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
.safety h2 + p { color: #e6dcc8; }
.safety ul { color: #e6dcc8; padding-left: 1.1em; margin-bottom: 26px; }
.safety li { margin-bottom: 6px; }

.not-found { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: 100px; border-top: 1px solid var(--line); background: rgba(4, 6, 15, 0.6); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px 48px; padding: 48px 0 36px; color: var(--muted); font-size: 0.9rem; }
.footer-brand p { margin-top: 14px; max-width: 46ch; }
.footer-brand .brand { color: var(--text); font-size: 0.92rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: end; gap: 8px 40px; align-content: start; }
.footer-links a:hover { color: var(--text); }
.footer-note { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); max-width: 100ch; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 0.82rem; cursor: pointer; }
.motion-toggle:hover { color: var(--text); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle[aria-pressed='true'] { color: var(--gold); border-color: rgba(243, 209, 155, 0.35); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero, .now-card, .video-top, .video-body, .clock-layout, .lab, .prose-grid, .trailer { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding-top: 40px; }
  .hero-dial { max-width: 400px; }
  .lab-stage, .safety { position: static; }
  .lab-stage { min-height: 0; }
  .clock-dial { max-width: 520px; }
}
/* Eight header items need room, so the menu folds away a little earlier. */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px;
    background: rgba(6, 9, 20, 0.97); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav-subscribe { margin: 10px 0 0; }
}
@media (max-width: 900px) {
  .premiere { flex-wrap: wrap; padding: 18px; }
  .premiere-thumb { width: 100%; max-width: 340px; }
  .premiere-count { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}
@media (max-width: 600px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .stats { grid-template-columns: repeat(2, auto); gap: 14px 32px; }
  .now-card { padding: 16px; gap: 22px; }
  .rel-row { grid-template-columns: 48px 1fr auto; gap: 12px; }
  .rel-thumb { display: none; }
  .series { grid-template-columns: 1fr 1fr; }
  .series-clock { display: none !important; }
  .row-2 { grid-template-columns: 1fr; }
  .section { margin: 60px auto; }
  .lab-controls { padding: 18px; }
}

/* ======================================================================================
   Flowing elements. All of it is slow (the fastest loop takes several seconds) and nothing
   flashes. It all stops when the visitor prefers reduced motion or presses "Pause motion".
   ====================================================================================== */

/* The canvases from flow.js. Aurora and motes fill the screen behind everything; the wave-line
   strip sits inside the page's header area, across the full width at its bottom edge, so it
   scrolls with the page. Each is sized in device pixels by flow.js, so it's sharp on Retina. */
.flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.flow-lines { position: absolute; left: calc(50% - 50vw); top: calc(100% - 94px); width: 100vw; height: 200px; z-index: -1; pointer-events: none; }
body > .flow-lines { display: none; }
.page-head, .video-top { position: relative; }

/* Page changes crossfade (browsers with view transitions). */
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out 0.28s ease both; }
::view-transition-new(page) { animation: page-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; } }

/* Sections and cards drift up into place as they scroll into view. */
[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease var(--d, 0ms), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

/* Headline words with light flowing through them. */
.flow-text {
  background: linear-gradient(90deg, #d9d4ff, #f3d19b 20%, #f0b9a0 38%, #b9a6f6 58%, #9fdcef 78%, #d9d4ff) 0 0 / 200% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: text-flow 16s linear infinite;
}
@keyframes text-flow { to { background-position: 200% 0; } }

/* The dial: segments fan in, a soft light travels round the ring, the sun has a slow halo. */
.dial .seg { animation: seg-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 32ms); transform-origin: 260px 260px; }
@keyframes seg-in { from { opacity: 0; transform: rotate(-8deg) scale(0.94); } }
.dial-sweep { transform-origin: 260px 260px; animation: dial-spin 36s linear infinite; opacity: 0.22; mix-blend-mode: screen; pointer-events: none; }
@keyframes dial-spin { to { transform: rotate(360deg); } }
.dial .sun-halo { fill: none; stroke: #fff3da; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 5s ease-out infinite; }
@keyframes halo { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* The line of affirmations under the home dial. */
.hero-visual { display: grid; justify-items: center; gap: 6px; }
.whisper-line { margin: 0; min-height: 1.6em; text-align: center; color: var(--muted); font-size: 1.02rem; letter-spacing: 0.02em; }
.whisper-line span { display: inline-block; transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease; }
.whisper-line span::before { content: '“'; }
.whisper-line span::after { content: '”'; }
.whisper-line span.is-fading { opacity: 0; filter: blur(6px); transform: translateY(6px); }

/* A band of affirmations drifting across the page in two directions. */
.stream { margin: 72px 0 0; }
.stream-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.stream-row {
  overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.stream-track { display: flex; width: max-content; animation: stream 140s linear infinite; }
.stream-row[data-dir='right'] .stream-track { animation-direction: reverse; animation-duration: 160s; }
.stream-set { display: flex; }
@keyframes stream { to { transform: translateX(-50%); } }
.stream-row:hover .stream-track, .stream-row:focus-within .stream-track, .stream.is-paused .stream-track { animation-play-state: paused; }
.whisper {
  display: inline-flex; align-items: center; gap: 9px; margin-right: 12px; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  color: #d9d7f2; white-space: nowrap; font-size: 0.95rem; transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.whisper::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.whisper:hover { color: var(--text); border-color: color-mix(in srgb, var(--tone) 50%, transparent); background: color-mix(in srgb, var(--tone) 8%, transparent); }

/* Light running round the edge of the feature cards. */
@property --flow-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.now-card, .premiere { position: relative; isolation: isolate; }
.lab-stage { isolation: isolate; } /* already sticky, so it's positioned */
.now-card::before, .premiere::before, .lab-stage.is-playing::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--flow-angle), transparent 0 55%, rgba(136, 212, 234, 0.8) 68%, rgba(178, 146, 244, 0.85) 78%, rgba(243, 209, 155, 0.8) 88%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-flow 12s linear infinite;
}
.premiere::before { animation-duration: 16s; animation-direction: reverse; }
@keyframes border-flow { to { --flow-angle: 360deg; } }

/* Mood tiles: their glows drift; card thumbnails ease in closer on hover. */
.mood-glow { animation: drift 19s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -3.3s); }
@keyframes drift { 50% { transform: translate(-50px, 36px) scale(1.18); } 100% { transform: translate(-16px, 70px) scale(0.92); } }
.thumb { overflow: hidden; }
.thumb img { transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .thumb img { transform: scale(1.06); }
.play-icon { animation: play-breathe 4.5s ease-in-out infinite; }
@keyframes play-breathe { 50% { box-shadow: 0 0 0 16px rgba(251, 243, 227, 0.06), 0 12px 40px rgba(0, 0, 0, 0.5); } }

/* Clock: the side panel eases in when you pick an hour. */
.clock-panel.panel-in > * { animation: panel-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.clock-panel.panel-in > :nth-child(2) { animation-delay: 50ms; }
.clock-panel.panel-in > :nth-child(3) { animation-delay: 100ms; }
.clock-panel.panel-in > :nth-child(n + 4) { animation-delay: 150ms; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } }

/* Tone Lab: slow ripples spread from the orb while a tone plays (a fixed 7 s cycle, never the beat). */
.lab-orb .ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--b) 70%, transparent); opacity: 0; }
.lab-stage.is-playing .ripple { animation: ripple 7s ease-out infinite; }
.lab-stage.is-playing .ripple:nth-of-type(2) { animation-delay: -2.33s; }
.lab-stage.is-playing .ripple:nth-of-type(3) { animation-delay: -4.66s; }
@keyframes ripple { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* Motion off: by the visitor's system setting or the footer button. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none !important; }
  .stream-row { overflow-x: auto; }
}
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-off ::view-transition-old(page), .motion-off ::view-transition-new(page) { animation: none !important; }
.motion-off .stream-row { overflow-x: auto; }
.motion-off [data-reveal] { opacity: 1; transform: none; }

/* ======================================================================================
   Services: overview, request builders, day plan, home teaser, admin list
   ====================================================================================== */

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px; padding: 30px;
  border-radius: 26px; border: 1px solid var(--line); background: var(--surface);
}
.offer-custom { background: radial-gradient(520px 340px at 100% 0%, rgba(178, 146, 244, 0.17), transparent 70%), var(--surface); }
.offer-business { background: radial-gradient(520px 340px at 100% 0%, rgba(243, 196, 127, 0.14), transparent 70%), var(--surface); }
.offer h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.offer .eyebrow { margin: 0; }
.offer > .muted { margin: 0; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer-art { height: 150px; display: flex; align-items: center; margin-bottom: 6px; }
.art-ring { width: 150px; height: 150px; overflow: visible; }
.art-ring text { font-size: 12.5px; fill: var(--muted); letter-spacing: 0.08em; font-weight: 700; }
.art-spin { transform-origin: 110px 110px; animation: dial-spin 48s linear infinite; }
.art-dot { fill: #fff7e6; filter: drop-shadow(0 0 8px #fff7e6); }
.art-curve { width: 220px; height: 130px; }
/* Specks of light travelling along a line. */
.flow-dash { stroke-dasharray: 2 26; animation: dash-flow 2.6s linear infinite; opacity: 0.9; }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
.ticks { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #d9d7f2; }
.ticks svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.promise { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(136, 212, 234, 0.28); background: rgba(136, 212, 234, 0.06); color: #cfeef7; font-size: 0.92rem; max-width: 70ch; }
.page-head .promise { margin-top: 18px; }

.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243, 209, 155, 0.4); color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.standard { display: flex; gap: 14px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.standard-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(91, 227, 160, 0.1); color: #9ff0c6; }
.standard-icon svg { width: 18px; height: 18px; }
.standard h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.standard p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 50px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.35rem; font-weight: 400; transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* Builders */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.builder.is-sent { display: block; }
.builder-form { display: grid; gap: 20px; min-width: 0; }
.step-block { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 24px; min-width: 0; margin: 0; }
.step-block > legend {
  float: left; width: 100%; padding: 0; margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 1.35rem; font-weight: 300; color: var(--text); letter-spacing: 0; text-transform: none;
}
.step-block > legend + * { clear: both; }
.step-block .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 0.9rem; font-weight: 900; flex-shrink: 0; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 22px 0 10px; }
.step-block .sub:first-of-type { margin-top: 4px; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.opts-tiles.two { grid-template-columns: repeat(2, 1fr); }
.opts-tiles.three { grid-template-columns: repeat(3, 1fr); }
.opts-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-body {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.opt-tile .opt-body { padding: 14px 16px; border-radius: 14px; }
.opt-tile strong { font-size: 0.98rem; }
.opt-body small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.opt-chip .opt-body { flex-direction: row; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; }
.opt-chip small { font-size: 0.76rem; }
.opt:hover .opt-body { border-color: rgba(220, 222, 255, 0.34); }
.opt input:checked + .opt-body { border-color: var(--gold); background: rgba(243, 209, 155, 0.1); box-shadow: inset 0 0 0 1px var(--gold); }
.opt-chip input:checked + .opt-body { background: var(--cream); border-color: var(--cream); color: var(--navy); box-shadow: none; }
.opt-chip input:checked + .opt-body small { color: rgba(11, 15, 38, 0.7); }
.opt-chip[class*='band-'] small { color: var(--b); }
.opt-chip[class*='band-'] input:checked + .opt-body { background: var(--b); border-color: var(--b); }
.opt-chip[class*='band-'] input:checked + .opt-body small { color: rgba(11, 15, 38, 0.75); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt-style .opt-body { padding: 6px; border-radius: 12px; gap: 6px; }
.opt-style img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.opt-style strong { font-size: 0.85rem; padding: 0 4px 4px; }

.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: #d6d4ef; font-size: 0.9rem; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.pick .plus { font-style: normal; color: var(--gold); font-weight: 700; }
.pick svg { width: 15px; height: 15px; }
.pick:hover span { border-color: rgba(220, 222, 255, 0.36); color: var(--text); }
.pick.is-on span { border-style: solid; border-color: var(--cream); background: var(--cream); color: var(--navy); }
.pick input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.more-lines { background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.9rem; margin-bottom: 18px; }
.more-lines[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; min-width: 0; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.28); color: var(--text); font: inherit; font-size: 0.95rem;
  letter-spacing: 0; text-transform: none; font-weight: 400;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-wide { grid-column: 1 / -1; margin-bottom: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 14px; align-items: end; }
.step-block .row-2 { align-items: end; }
.mini { margin: 0; }
.segmented small { font-weight: 400; opacity: 0.75; }
.beat-kind { margin-top: 12px; max-width: 480px; }
.beat-kind[hidden] { display: none; }
.slider-field input[type='range'] { margin: 14px 0 4px; }
.slider-field output { color: var(--text); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.range-ends { display: flex; justify-content: space-between; font-size: 0.72rem; }

.preview { margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid rgba(178, 146, 244, 0.26); background: linear-gradient(135deg, rgba(178, 146, 244, 0.09), transparent); }
.preview[hidden] { display: none; }
.preview ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: #e4e1ff; }
.preview .small { margin: 10px 0 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .field-wide { margin-bottom: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px; color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.form-errors ul { margin: 12px 0 0; padding: 12px 16px 12px 32px; border-radius: 12px; background: rgba(243, 155, 126, 0.1); border: 1px solid rgba(243, 155, 126, 0.4); color: #ffd4c6; font-size: 0.9rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.submit-row p { margin: 0; }
.btn-big { padding: 15px 28px; font-size: 1rem; }
.btn.is-busy { opacity: 0.6; cursor: progress; }

.builder-summary { position: sticky; top: calc(var(--header) + 20px); padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(10, 14, 34, 0.72); }
.builder-summary h2 { font-size: 1.45rem; margin-bottom: 14px; }
.builder-summary dl { margin: 0 0 16px; }
.builder-summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.builder-summary dt { color: var(--muted); flex-shrink: 0; }
.builder-summary dd { margin: 0; text-align: right; font-weight: 700; }
.builder-summary .promise { margin: 16px 0 0; }
.builder-summary .text-link[hidden] { display: none; }

.sent { text-align: center; padding: 56px 24px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.sent .lede { margin: 12px auto 0; }
.sent .eyebrow { justify-content: center; }
.sent .actions { justify-content: center; }
.sent-ring { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(91, 227, 160, 0.12); color: #9ff0c6; box-shadow: 0 0 0 10px rgba(91, 227, 160, 0.05); animation: ring-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sent-ring svg { width: 36px; height: 36px; }
@keyframes ring-in { from { transform: scale(0.6); opacity: 0; } }
.ref { color: var(--gold); letter-spacing: 0.06em; }

/* The business day plan */
.day-plan { margin-top: 18px; }
.day-chart { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); }
.day-chart text { font-family: inherit; fill: var(--faint); font-size: 11px; }
.day-chart .axis { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.day-chart .block { fill: rgba(255, 255, 255, 0.015); }
.day-chart .block.alt { fill: rgba(255, 255, 255, 0.045); }
.day-chart .block-label { text-anchor: middle; fill: var(--muted); font-weight: 700; }
.day-chart .tick-label.end { text-anchor: end; }
.day-plan.is-new .day-line { stroke-dasharray: 1400; animation: draw 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.day-plan.is-new .day-area { animation: fade-in 0.9s 0.3s both; }
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.plan-list { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 6px; }
.plan-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.16); font-size: 0.9rem; }
.plan-list .when { min-width: 168px; font-variant-numeric: tabular-nums; }
.mood-pill { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.mood-calm { background: rgba(127, 129, 242, 0.18); color: #c4c5ff; }
.mood-soft { background: rgba(178, 146, 244, 0.18); color: #ddd0ff; }
.mood-steady { background: rgba(136, 212, 234, 0.16); color: #c3ecf7; }
.mood-bright { background: rgba(242, 196, 127, 0.18); color: #f8deb4; }
.mood-lively { background: rgba(243, 155, 126, 0.2); color: #ffd0c0; }

/* Home teaser */
.svc-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s, transform 0.25s; }
.svc-tile strong { font-size: 1.45rem; font-weight: 300; }
.svc-tile > span:not(.mood-glow):not(.svc-cta) { color: var(--muted); max-width: 52ch; }
.svc-tile .eyebrow { color: var(--tone); margin: 0; }
.svc-cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.svc-cta svg { width: 16px; height: 16px; }
.svc-tile:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); transform: translateY(-2px); }
.svc-tile:hover .mood-glow { opacity: 0.5; }

/* Contact email */
.footer-contact { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.footer-contact a { color: var(--gold); font-weight: 700; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ask-us { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 880px; margin-top: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(243, 209, 155, 0.24); background: rgba(243, 209, 155, 0.05); }
.ask-us h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.ask-us p { margin: 0; }
.prefer-email { margin: 14px 0 0; }

/* Server-rendered content (seen before the app loads, and by crawlers and no-JS visitors) */
.ssr { padding-bottom: 40px; }
.ssr a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(243, 209, 155, 0.5); text-underline-offset: 3px; }
.ssr a:hover { color: var(--gold); }
.ssr .section h2 { margin-bottom: 12px; }
.ssr-list { display: grid; gap: 8px; padding-left: 1.2em; margin: 0; color: #d6d4ef; }
.ssr .block h2 { margin-top: 28px; }
.ssr dl div { display: flex; gap: 12px; }
.ssr dt { color: var(--muted); min-width: 90px; }
.ssr dd { margin: 0; }
.footer-parent { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; }
.footer-parent a { color: var(--gold); font-weight: 700; }
.footer-parent a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Admin list (/admin/requests) */
body.admin { display: block; }
.admin main { padding: 40px 0 80px; }
.admin .req { margin: 16px 0; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.admin .req header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.admin dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 20px; margin: 0; font-size: 0.9rem; }
.admin dl div { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.admin dt { color: var(--faint); min-width: 120px; }
.admin dd { margin: 0; }
.admin .msg { margin: 12px 0 0; white-space: pre-wrap; color: #d6d4ef; }

@media (max-width: 1020px) {
  .offers, .svc-teaser, .builder { grid-template-columns: 1fr; }
  .builder-summary { position: static; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .standards, .fields, .row-3, .opts-tiles.two, .opts-tiles.three, .steps-row { grid-template-columns: 1fr; }
  .step-block { padding: 18px; }
  .offer { padding: 22px; }
  .plan-list .when { min-width: 0; }
}

@media print {
  .flow, .flow-lines, .sky, .stream, .site-header, .motion-toggle { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.band-none { --b: var(--cream); }
