/* Let's Get Lucid v2 — neon dream
   Layout: dark void with dashed column guides; oversized condensed-to-wide grotesk headlines;
   magenta/violet glow concentrated in the hero portal and the closing portal. */

@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/literata-latin-opsz-normal.woff2) format("woff2-variations"), url(../fonts/literata-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(../fonts/literata-latin-opsz-italic.woff2) format("woff2-variations"), url(../fonts/literata-latin-opsz-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --void: #08040F;          /* page ground: black with a violet bias */
  --deep: #120822;          /* raised surfaces */
  --glass: rgba(255, 255, 255, .045);
  --line: rgba(236, 222, 255, .12);
  --line-strong: rgba(236, 222, 255, .26);
  --ink: #F6F1FF;           /* headlines, primary text */
  --text: #DCD3EE;          /* running text */
  --muted: #A496BF;
  --magenta: #D52CFF;       /* the neon */
  --magenta-deep: #8E14D9;
  --violet: #7A3BFF;
  --ember: #FFB04A;         /* visor glow: used only for the shifting line */
  --on-magenta: #FFFFFF;
  --badge: #F6F1FF;
  --badge-ink: #120822;
  --neon: linear-gradient(120deg, #F05BFF 0%, #D52CFF 38%, #9B3BFF 100%);
  --neon-card: linear-gradient(150deg, #E33BFF 0%, #A51EEB 45%, #4B0F8F 100%);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --read: "Literata", "Iowan Old Style", Georgia, serif;

  --wide: 78rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-panel: 28px;
  --r-card: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--magenta); color: var(--on-magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--void); padding: .5rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { left: .5rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; position: relative; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dashed column guides (fixed, behind everything) */
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.guides .wrap { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.guides span { border-left: 1px dashed rgba(236, 222, 255, .07); }
.guides span:last-child { border-right: 1px dashed rgba(236, 222, 255, .07); }
@media (max-width: 700px) { .guides .wrap { grid-template-columns: repeat(2, 1fr); } .guides span:nth-child(n+3) { display: none; } .guides span:nth-child(2) { border-right: 1px dashed rgba(236, 222, 255, .07); } }
main, .site-footer, .site-header { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding-block: .85rem; transition: background-color .3s ease; }
.site-header.scrolled { background: rgba(8, 4, 15, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.header-inner { display: flex; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.wordmark svg { width: 1.5rem; height: 1.5rem; flex: none; }
.nav {
  margin-inline: auto; display: flex; gap: .15rem; padding: .3rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(18, 8, 34, .6);
}
.nav a { text-decoration: none; font-size: .84rem; font-weight: 500; color: var(--text); padding: .42rem .85rem; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--glass); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--void); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--magenta); color: var(--magenta); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.menu-btn { display: none; }
@media (max-width: 1240px) { .nav { display: none; } .menu-btn { display: grid; } .header-tools { margin-left: auto; } }
@media (max-width: 520px) { .header-tools .pill-cta { display: none; } }

/* Pills / buttons */
.pill-cta, .btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-weight: 600; font-size: .92rem; border-radius: 999px; padding: .38rem 1.05rem .38rem .38rem; border: 1px solid transparent;
}
.btn .dot, .pill-cta .dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.btn .dot svg, .pill-cta .dot svg { width: .9rem; height: .9rem; }
.btn.primary, .pill-cta { background: var(--neon); color: var(--on-magenta); box-shadow: 0 8px 30px -8px rgba(213, 44, 255, .7); }
.btn.primary .dot, .pill-cta .dot { background: var(--on-magenta); color: var(--magenta-deep); }
.btn.primary:hover, .pill-cta:hover { box-shadow: 0 10px 40px -6px rgba(213, 44, 255, .95); filter: brightness(1.08); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(8, 4, 15, .4); }
.btn.ghost .dot { background: var(--ink); color: var(--void); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { font-size: 1rem; padding: .5rem 1.4rem .5rem .5rem; }
.btn.big .dot { width: 2.2rem; height: 2.2rem; }

.tag { display: inline-flex; align-items: center; text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: .34rem .75rem; border-radius: 999px; border: 1px solid rgba(213, 44, 255, .55); background: rgba(142, 20, 217, .22); white-space: nowrap; }
a.tag:hover { background: rgba(213, 44, 255, .4); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- Display type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
.shout { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: .9; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.neon-text { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .neon-text { color: var(--magenta); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; left: -20vw; top: -30%; width: 75vw; height: 120%; background: radial-gradient(closest-side, rgba(142, 20, 217, .55), rgba(142, 20, 217, .18) 55%, transparent); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.3rem, 6.1vw, 5.75rem); font-stretch: 92%; margin: 1.4rem 0 1.6rem; }
@media (max-width: 860px) { .hero h1 { font-size: min(11.5vw, 4.5rem); } }
.hero h1 .line { display: block; }
.hero h1 .line + .line { margin-top: .04em; }
.hero h1 .shift { min-height: 1.8em; transition: filter .3s ease; }
.hero h1 .shift.is-shifting { background: linear-gradient(120deg, #FFD08A, var(--ember) 50%, #FF7A3D); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 18px rgba(255, 176, 74, .55)); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--text); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.check { margin-top: 2.25rem; display: flex; gap: .75rem; align-items: flex-start; max-width: 32rem; font-size: .9rem; color: var(--muted); }
.check svg { width: 1.3rem; height: 1.3rem; color: var(--ember); flex: none; margin-top: .1rem; }
.check strong { color: var(--ink); font-weight: 600; }

.portal-wrap { position: relative; z-index: 1; }
.portal {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-panel) var(--r-panel); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 95%, #FFD9FF 0%, #E04BFF 18%, #7A1BD9 42%, #250A4A 70%, #0C0518 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 40px 120px -30px rgba(213, 44, 255, .75), 0 0 80px -10px rgba(122, 59, 255, .45);
}
.portal canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 60px rgba(8, 4, 15, .55); pointer-events: none; }
.portal-caption { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 2; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; background: rgba(8, 4, 15, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sparkle { position: absolute; z-index: 3; width: 5.5rem; height: 5.5rem; filter: drop-shadow(0 10px 24px rgba(213, 44, 255, .55)); animation: drift 9s ease-in-out infinite; pointer-events: none; }
.sparkle.s1 { left: -2.5rem; top: 8%; }
.sparkle.s2 { right: -1.75rem; bottom: 18%; width: 3.6rem; height: 3.6rem; animation-delay: -4s; }
.sparkle.s3 { right: 22%; top: -1.5rem; width: 2.4rem; height: 2.4rem; animation-delay: -2s; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(14deg); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portal-wrap { max-width: 26rem; width: 86%; margin: 1rem auto 0; }
  .sparkle.s1 { left: -1.5rem; width: 3.8rem; height: 3.8rem; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding-block: 1.1rem; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 2.25rem; padding: 0 1.125rem; margin: 0; list-style: none; }
.marquee li { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 2.25rem; }
.marquee li:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px rgba(246, 241, 255, .7); }
.marquee li:nth-child(even) { color: var(--ink); }
.marquee li::after { content: ""; width: .9rem; height: .9rem; flex: none; background: var(--magenta); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 26rem); gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.section-head .more { justify-self: end; }
.section-head.aside-auto { grid-template-columns: minmax(0, auto) minmax(0, auto); }
@media (max-width: 760px) { .section-head, .section-head.aside-auto { grid-template-columns: 1fr; } .section-head .more { justify-self: start; } }

/* Date-badge cards */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.post-card a { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; }
.post-card .frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--deep); box-shadow: 0 0 0 1px var(--line); }
.post-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .4s ease; filter: saturate(1.05) brightness(.92); }
.post-card .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(142, 20, 217, .55), transparent 45%); opacity: 0; transition: opacity .4s ease; }
.post-card a:hover .frame img { transform: scale(1.04); filter: saturate(1.15) brightness(1); }
.post-card a:hover .frame::after { opacity: 1; }
.date-badge { position: absolute; left: .85rem; bottom: .85rem; z-index: 1; background: var(--badge); color: var(--badge-ink); border-radius: 4px; padding: .3rem .45rem .25rem; font-weight: 800; font-size: .95rem; line-height: 1; text-transform: uppercase; text-align: left; font-stretch: 100%; }
.date-badge small { display: block; font-size: .7rem; font-weight: 700; margin-top: .15rem; }
.date-badge .yr { font-weight: 600; opacity: .6; }
.post-card .topic { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); }
.post-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.12; letter-spacing: -.01em; margin-top: .35rem; }
.post-card a:hover h3 { color: #F3C6FF; }
.post-card p { margin: .5rem 0 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .rt { font-size: .82rem; color: var(--muted); margin-top: .6rem; display: block; }
.post-card[hidden] { display: none; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } .post-card .frame { aspect-ratio: 4 / 3; } }

/* Latest + halo button */
.latest-row { position: relative; }
.halo-btn { position: absolute; right: -1rem; top: 38%; translate: 0 -50%; z-index: 3; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: rgba(246, 241, 255, .14); box-shadow: 0 0 0 1.1rem rgba(246, 241, 255, .07); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .3s ease; }
.halo-btn span { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ink); color: var(--void); display: grid; place-items: center; }
.halo-btn svg { width: 1.4rem; height: 1.4rem; }
.halo-btn:hover { transform: scale(1.06); }
.halo-btn:hover span { background: var(--magenta); color: var(--on-magenta); }
@media (max-width: 1100px) { .halo-btn { position: static; translate: none; margin: 2.5rem auto 0; } }

/* Start here: glass steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a { position: relative; display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--r-card); text-decoration: none; background: linear-gradient(160deg, rgba(142, 20, 217, .28), rgba(18, 8, 34, .6) 60%); border: 1px solid rgba(213, 44, 255, .3); transition: border-color .3s ease, transform .3s ease; }
.steps a:hover { border-color: var(--magenta); transform: translateY(-3px); }
.steps a::before { content: counter(step); width: 2.4rem; height: 2.4rem; border-radius: 8px; display: grid; place-items: center; background: var(--neon); color: var(--on-magenta); font-weight: 800; font-size: 1.15rem; box-shadow: 0 6px 20px -6px rgba(213, 44, 255, .9); }
.steps .why { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); }
.steps h3 { font-size: 1.2rem; line-height: 1.18; }
.steps .rt { margin-top: auto; font-size: .82rem; color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Topic tabs + carousel */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.tab { appearance: none; cursor: pointer; font-size: .82rem; font-weight: 500; color: var(--text); background: transparent; border: 1px solid transparent; padding: .45rem .9rem; border-radius: 999px; white-space: nowrap; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--neon); color: var(--on-magenta); box-shadow: 0 6px 22px -8px rgba(213, 44, 255, .9); }
.topic-panel { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.topic-panel[hidden] { display: none; }
.topic-panel .side h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-stretch: 92%; line-height: .95; }
.topic-panel .side p { color: var(--text); margin: 1rem 0 1.25rem; font-size: .98rem; }
.topic-panel .side .count { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.arrows { display: flex; gap: .6rem; margin-top: 1.5rem; }
.arrows button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.arrows button:hover { border-color: var(--magenta); background: rgba(213, 44, 255, .15); }
.arrows button:disabled { opacity: .35; cursor: default; }
.arrows svg { width: 1.1rem; height: 1.1rem; }
.track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.track::-webkit-scrollbar { display: none; }
.neon-card { flex: 0 0 clamp(14rem, 22vw, 16.5rem); scroll-snap-align: start; }
.neon-card a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; text-decoration: none; background: var(--deep); box-shadow: 0 0 0 1px rgba(213, 44, 255, .35); }
.neon-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: transform .7s ease, filter .4s ease; }
.neon-card a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(110, 10, 190, .95) 0%, rgba(213, 44, 255, .55) 42%, rgba(122, 59, 255, .15) 75%); mix-blend-mode: normal; transition: opacity .4s ease; }
.neon-card a::after { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 14px); }
.neon-card a:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1.05); }
.neon-card a:hover::before { opacity: .8; }
.neon-card .go { position: absolute; top: .9rem; right: .9rem; z-index: 2; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .8); display: grid; place-items: center; color: #fff; }
.neon-card .go svg { width: .9rem; height: .9rem; }
.neon-card .body { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; z-index: 2; color: #fff; }
.neon-card h4 { color: #fff; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.005em; }
.neon-card .rt { display: block; font-size: .78rem; color: rgba(255, 255, 255, .8); margin-top: .5rem; }
@media (max-width: 860px) {
  .topic-panel { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .topic-panel .arrows { display: none; }
}

/* About bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bento > * { border-radius: var(--r-card); overflow: hidden; min-height: 15rem; }
.bento .ph { grid-column: span 2; position: relative; background: var(--deep); }
.bento .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) brightness(.88); }
.bento .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(142, 20, 217, .35), transparent 50%); }
.bento .card { padding: 1.6rem; background: var(--neon-card); color: var(--on-magenta); display: flex; flex-direction: column; justify-content: center; gap: .75rem; box-shadow: 0 30px 60px -30px rgba(213, 44, 255, .8); }
.bento .card h3 { color: var(--on-magenta); font-size: 1.35rem; text-transform: uppercase; font-stretch: 112%; letter-spacing: -.01em; }
.bento .card p { margin: 0; font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.bento .card a { color: var(--on-magenta); font-weight: 600; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .bento .ph { grid-column: auto; min-height: 13rem; } }

/* Closing portal */
.closing { position: relative; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); text-align: center; isolation: isolate; }
.closing canvas, .closing .closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.closing .closing-bg { background: radial-gradient(60% 70% at 50% 100%, rgba(224, 75, 255, .85), rgba(122, 27, 217, .55) 40%, rgba(8, 4, 15, 0) 75%); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--void), rgba(8, 4, 15, .2) 35%, rgba(8, 4, 15, .15) 70%, var(--void)); pointer-events: none; }
.closing .kicker { font-size: .95rem; color: var(--ink); margin-bottom: 1.25rem; }
.closing h2 { font-size: clamp(2.6rem, 8vw, 6.75rem); text-shadow: 0 0 60px rgba(213, 44, 255, .5); }
.closing p { max-width: 34rem; margin: 1.5rem auto 2rem; color: var(--ink); }

/* ---------- Page heads (archive, topics, about) ---------- */
.page-head { position: relative; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head::before { content: ""; position: absolute; left: -15vw; top: -50%; width: 60vw; height: 140%; background: radial-gradient(closest-side, rgba(142, 20, 217, .45), transparent); pointer-events: none; z-index: -1; }
.page-head h1 { font-size: clamp(2.8rem, 9vw, 7rem); }
.page-head h1 .line { display: block; }
.page-head p { color: var(--text); font-size: 1.15rem; max-width: 36rem; margin: 1.5rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2.5rem; }
.chip { appearance: none; cursor: pointer; font-size: .85rem; font-weight: 500; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--magenta); }
.chip[aria-pressed="true"] { background: var(--neon); color: var(--on-magenta); border-color: transparent; }
.filter-search { margin-left: auto; position: relative; }
.filter-search input { font: inherit; font-size: .92rem; color: var(--ink); background: rgba(18, 8, 34, .7); border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1rem .55rem 2.4rem; width: 16rem; }
.filter-search input::placeholder { color: var(--muted); }
.filter-search input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(213, 44, 255, .25); }
.filter-search svg { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; width: 1rem; height: 1rem; color: var(--muted); }
@media (max-width: 700px) { .filter-search { margin-left: 0; width: 100%; } .filter-search input { width: 100%; } }
.empty { padding: 3rem 0; color: var(--muted); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--neon); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; box-shadow: 0 0 12px rgba(213, 44, 255, .8); }
.article-head { position: relative; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-head::before { content: ""; position: absolute; left: -15vw; top: -40%; width: 70vw; height: 150%; background: radial-gradient(closest-side, rgba(142, 20, 217, .5), transparent); pointer-events: none; z-index: -1; }
.article-head .inner { max-width: 62rem; }
.article-head h1 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: .94; font-stretch: 88%; text-transform: uppercase; letter-spacing: -.015em; margin: 1.25rem 0 1.5rem; }
.article-head .dek { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--text); max-width: 44rem; margin: 0 0 2rem; }
.byline { display: flex; align-items: center; gap: .85rem; }
.byline img { width: 2.9rem; height: 2.9rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--magenta); }
.byline .who { font-weight: 700; color: var(--ink); line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .85rem; color: var(--muted); }
.meta > * { white-space: nowrap; }
.hero-img { margin-block: 0 clamp(3rem, 6vw, 4.5rem); }
.hero-img .frame { margin-inline: auto; border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 100px -40px rgba(213, 44, 255, .8); }
.hero-img img { width: 100%; max-height: 76vh; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); gap: 0 3rem; }
.article-layout > .prose { grid-column: 2; }
.toc { grid-column: 1; justify-self: end; width: 100%; max-width: 15.5rem; }
.toc-inner { position: sticky; top: 6.5rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); }
.toc h2 { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: .38rem .6rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .86rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); background: var(--glass); }
.toc a.active { color: var(--on-magenta); background: rgba(213, 44, 255, .28); }
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .article-layout > .prose { grid-column: 1; width: 100%; max-width: var(--measure); }
  .toc { display: none; }
}

.prose { font-family: var(--read); font-size: clamp(1.08rem, 1.5vw, 1.17rem); line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.015em; margin-top: 2.3em; color: var(--ink); }
.prose h2::before { content: ""; display: block; width: 2.5rem; height: 3px; border-radius: 3px; background: var(--neon); margin-bottom: .9rem; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 1.25em; line-height: 1.25; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose a { color: #F0A8FF; text-decoration-color: rgba(240, 168, 255, .5); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose a:hover { color: #fff; text-decoration-color: var(--magenta); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--magenta); }
.prose figure { margin: 2.4em 0; }
.prose figure img { border-radius: 14px; margin-inline: auto; box-shadow: 0 0 0 1px var(--line); }
.prose figcaption { font-family: var(--display); font-size: .8rem; color: var(--muted); margin-top: .75rem; text-align: center; }
.prose figure.wide { margin-inline: clamp(-6rem, -8vw, 0rem); }
@media (max-width: 1180px) { .prose figure.wide { margin-inline: 0; } }
.prose blockquote { margin: 2.2em 0; padding: 1.25rem 1.5rem; border-radius: 14px; background: linear-gradient(135deg, rgba(142, 20, 217, .25), rgba(18, 8, 34, .5)); border: 1px solid rgba(213, 44, 255, .3); font-style: italic; color: var(--ink); }
.prose blockquote p + p { margin-top: .8em; }
.prose blockquote cite { display: block; font-family: var(--display); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: .75em; }
.prose blockquote.pull { background: none; border: 0; padding: 0; font-family: var(--display); font-style: normal; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -.015em; }
.prose blockquote.pull p { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose > p:first-of-type::first-letter { font-family: var(--display); font-weight: 800; float: left; font-size: 4.2em; line-height: .8; padding: .08em .1em 0 0; background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }

.article-end { max-width: var(--measure); margin: clamp(3rem, 7vw, 4.5rem) auto clamp(3rem, 7vw, 5rem); }
.article-end .tags { margin-bottom: 2rem; }
.author-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; padding: 1.6rem; border-radius: var(--r-card); background: var(--neon-card); color: var(--on-magenta); box-shadow: 0 30px 60px -30px rgba(213, 44, 255, .8); }
.author-card img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.author-card h2 { color: var(--on-magenta); font-size: 1.3rem; text-transform: uppercase; font-stretch: 112%; }
.author-card p { margin: .5rem 0 .8rem; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.author-card a { color: var(--on-magenta); font-weight: 600; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.prevnext a { text-decoration: none; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); transition: border-color .3s ease; }
.prevnext a:hover { border-color: var(--magenta); }
.prevnext .dir { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin-bottom: .4rem; }
.prevnext .t { color: var(--ink); font-weight: 700; line-height: 1.2; }
.prevnext .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { grid-column: 1; text-align: left; } }

/* About page */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: clamp(3rem, 7vw, 5rem); }
.about .portrait { position: sticky; top: 6.5rem; }
.about .portrait .frame { border-radius: 999px 999px var(--r-panel) var(--r-panel); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 100px -40px rgba(213, 44, 255, .8); }
.about .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about .prose > p:first-of-type::first-letter { all: unset; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about .portrait { position: static; max-width: 22rem; } }
.lite-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; box-shadow: 0 0 0 1px var(--line); }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.lite-yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.lite-yt .play span { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--neon); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 40px -8px rgba(213, 44, 255, .9); }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--r-card); background: var(--neon-card); text-decoration: none; font-family: var(--display); font-weight: 600; }
.prose .yt-link { color: #fff; text-decoration: none; }
.yt-link .play span { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #fff; color: var(--magenta-deep); display: grid; place-items: center; }

/* Legal */
.legal { max-width: var(--measure); margin-inline: auto; padding-bottom: 5rem; }
.legal .prose { font-size: 1rem; line-height: 1.7; }
.legal .prose > p:first-of-type::first-letter { all: unset; }
.legal .prose h2 { font-size: 1.45rem; }

/* ---------- Search ---------- */
.search-dlg { border: 0; padding: 0; background: transparent; width: min(100% - 2rem, 40rem); max-height: 80vh; margin: 12vh auto auto; color: var(--ink); }
.search-dlg::backdrop { background: rgba(8, 4, 15, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.search-box { background: var(--deep); border: 1px solid rgba(213, 44, 255, .4); border-radius: 20px; box-shadow: 0 40px 120px -30px rgba(213, 44, 255, .7); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: .75rem; padding: 0 1.2rem; border-bottom: 1px solid var(--line); }
.search-field svg { width: 1.15rem; height: 1.15rem; color: var(--magenta); flex: none; }
.search-field input { flex: 1; font: inherit; font-size: 1.15rem; padding: 1.15rem 0; border: 0; background: transparent; color: var(--ink); outline: none; min-width: 0; }
.search-field input::placeholder { color: var(--muted); }
.search-field kbd { font-family: var(--display); font-size: .72rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: .1rem .45rem; }
.search-results { list-style: none; margin: 0; padding: .5rem; max-height: 55vh; overflow: auto; }
.search-results a { display: block; padding: .75rem .85rem; border-radius: 12px; text-decoration: none; }
.search-results a:hover, .search-results a.sel { background: rgba(213, 44, 255, .2); }
.search-results .t { font-weight: 700; color: var(--ink); line-height: 1.25; }
.search-results .s { font-size: .82rem; color: var(--muted); }
.search-results .none { padding: 1rem .85rem; color: var(--muted); }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--void); display: none; flex-direction: column; padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); overflow: auto; }
.sheet::before { content: ""; position: absolute; right: -30vw; bottom: -20vh; width: 90vw; height: 70vh; background: radial-gradient(closest-side, rgba(142, 20, 217, .5), transparent); pointer-events: none; }
.sheet.open { display: flex; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { display: flex; flex-direction: column; margin-top: 2.5rem; position: relative; }
.sheet nav a { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; text-decoration: none; color: var(--ink); padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.sheet nav a:hover { color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-row .note { max-width: 24rem; color: var(--muted); font-size: .95rem; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.foot-links a:hover { color: var(--magenta); }
.giant { display: block; width: 100%; height: auto; margin: clamp(2.5rem, 6vw, 4rem) 0 1.25rem; overflow: visible; user-select: none; }
.giant text { font-family: var(--display); font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.02em; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.foot-base kbd { font-family: var(--display); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 .35rem; }

.notfound { padding: clamp(3rem, 10vw, 7rem) 0; }
.notfound h1 { font-size: clamp(2.8rem, 9vw, 7rem); }
.notfound h1 .line { display: block; }
.notfound p { font-size: 1.15rem; color: var(--text); max-width: 32rem; margin: 1.5rem 0 2rem; }
.notfound .actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
   App page + phone mockups
   ================================================================= */
.nav a .new { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--magenta); margin-left: .35rem; vertical-align: .15em; box-shadow: 0 0 8px var(--magenta); }
.nav a[aria-current="page"] .new { background: var(--magenta-deep); box-shadow: none; }

.phone { position: relative; width: min(100%, 19rem); aspect-ratio: 9 / 19.2; border-radius: 3rem; padding: .55rem; flex: none;
  background: linear-gradient(160deg, #34254a, #120a1f 42%, #2a1a3e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 120px -30px rgba(213, 44, 255, .75), 0 0 60px -10px rgba(122, 59, 255, .45); }
.phone .screen { position: relative; height: 100%; border-radius: 2.5rem; overflow: hidden; background: #0B0616; container-type: inline-size; }
.phone .island { position: absolute; top: .55rem; left: 50%; translate: -50% 0; width: 31%; height: 1.4rem; background: #000; border-radius: 999px; z-index: 6; }
.phone .status { position: absolute; top: .72rem; left: 1.5rem; right: 1.4rem; display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; color: #fff; z-index: 5; }
.phone .status .sig { display: flex; gap: .25rem; align-items: center; }
.phone .status .sig i { display: block; width: 1.1rem; height: .5rem; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .8); position: relative; }
.phone .status .sig i::after { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #fff; border-radius: 1px; }

/* Lock screen */
.lock { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 95%, #FFD9FF 0%, #E04BFF 18%, #7A1BD9 42%, #250A4A 70%, #0C0518 100%); }
.lock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-clock { position: relative; z-index: 2; text-align: center; color: #fff; margin-top: 3.2rem; }
.lock-clock .d { font-size: .78rem; font-weight: 600; opacity: .9; }
.lock-clock .t { font-size: 4.1rem; font-weight: 700; font-stretch: 108%; line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(80, 0, 140, .5); }
.notifs { position: absolute; left: .55rem; right: .55rem; bottom: 1.4rem; z-index: 2; display: grid; gap: .45rem; }
.notif { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; padding: .7rem .75rem; border-radius: 1.15rem; background: rgba(28, 12, 48, .58); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: #fff; font-size: .7rem; line-height: 1.35; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
.notif .ico { grid-row: span 2; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: #08040F; display: grid; place-items: center; }
.notif .ico svg { width: 1.05rem; height: 1.05rem; }
.notif .top { display: flex; justify-content: space-between; gap: .5rem; }
.notif .top b { font-weight: 700; }
.notif .top span { opacity: .65; white-space: nowrap; }
.notif p { margin: 0; opacity: .92; }
.notif.alarm { background: rgba(255, 255, 255, .88); color: #1A0B2E; }
.notif.alarm .top span { opacity: .55; }

/* App UI inside the phone */
.app-ui { position: absolute; inset: 0; padding: 2.7rem .85rem 4.3rem; display: flex; flex-direction: column; gap: .55rem; overflow: hidden; color: var(--text); font-size: .72rem; line-height: 1.4;
  background: radial-gradient(130% 55% at 50% -5%, rgba(142, 20, 217, .45), transparent 65%), #0B0616; }
.app-ui[hidden] { display: none; }
.app-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .15rem; }
.app-h h4 { font-size: 1.3rem; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
.app-h span { color: var(--muted); font-size: .66rem; }
.ui-card { border-radius: 1rem; padding: .7rem .75rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.ui-card.neon { background: var(--neon-card); border-color: transparent; color: #fff; }
.ui-label { font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--magenta); }
.ui-card.neon .ui-label { color: rgba(255, 255, 255, .8); }
.ui-title { display: block; font-weight: 700; color: var(--ink); font-size: .84rem; line-height: 1.25; margin: .15rem 0 .3rem; }
.ui-card.neon .ui-title { color: #fff; }
.ui-p { margin: 0; font-family: var(--read); font-size: .68rem; line-height: 1.55; color: var(--text); }
.ui-p mark { background: rgba(255, 176, 74, .2); color: #FFD08A; border-radius: 3px; padding: 0 .15em; }
.ui-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem; }
.ui-chip { font-size: .6rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); }
.ui-chip.sign { border-color: rgba(255, 176, 74, .6); color: #FFD08A; }
.ui-chip.lucid { background: var(--neon); border-color: transparent; color: #fff; }
.ui-muted { color: var(--muted); font-size: .64rem; }

.rec { display: flex; align-items: center; gap: .7rem; }
.mic { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; background: var(--neon); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 .35rem rgba(213, 44, 255, .2), 0 0 26px rgba(213, 44, 255, .7); }
.mic svg { width: 1.15rem; height: 1.15rem; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 1.8rem; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #F0A8FF; height: var(--h); transform-origin: center; animation: talk 1.1s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

.row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row b { color: var(--ink); font-weight: 600; font-size: .74rem; }
.row small { display: block; color: var(--muted); font-size: .62rem; }
.tgl { width: 2rem; height: 1.15rem; flex: none; border-radius: 999px; background: rgba(255, 255, 255, .16); position: relative; }
.tgl::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: .85rem; height: .85rem; border-radius: 50%; background: #fff; }
.tgl.on { background: var(--magenta); box-shadow: 0 0 10px rgba(213, 44, 255, .6); }
.tgl.on::after { left: auto; right: .15rem; }
.big-num { font-size: 1.9rem; font-weight: 800; font-stretch: 108%; color: #fff; line-height: 1; letter-spacing: -.02em; }

.sleep { position: relative; height: 3.4rem; display: flex; align-items: flex-end; gap: 2px; padding: 0 .1rem; }
.sleep i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(164, 150, 191, .35); height: var(--h); }
.sleep i.rem { background: var(--magenta); box-shadow: 0 0 8px rgba(213, 44, 255, .6); }
.sleep .alarm-line { position: absolute; top: -.2rem; bottom: 0; left: 68.75%; width: 2px; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.sleep .alarm-line::before { content: "4:30"; position: absolute; top: -.95rem; left: 50%; translate: -50% 0; font-size: .58rem; font-weight: 700; color: var(--ember); }
.sleep-axis { display: flex; justify-content: space-between; font-size: .58rem; color: var(--muted); margin-top: .3rem; }
.sleep-key { display: flex; gap: .8rem; font-size: .58rem; color: var(--muted); margin-top: .35rem; }
.sleep-key span::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 2px; margin-right: .3rem; background: rgba(164, 150, 191, .35); vertical-align: -.05em; }
.sleep-key span.k-rem::before { background: var(--magenta); }
.sleep-key span.k-alarm::before { background: var(--ember); width: 2px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.tiles div { border-radius: .8rem; padding: .55rem .5rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tiles b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.tiles span { font-size: .58rem; color: var(--muted); }
.nights { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; margin-top: .45rem; }
.nights i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.nights i.r { background: rgba(240, 168, 255, .55); }
.nights i.l { background: var(--magenta); box-shadow: 0 0 6px rgba(213, 44, 255, .8); }
.nights i.l::after { content: ""; width: 45%; height: 45%; border-radius: 50%; box-shadow: inset -2px 1px 0 0 #fff; transform: rotate(-20deg); }
.nights i.n { box-shadow: inset 0 0 0 1.5px rgba(164, 150, 191, .45); }
.nights-key { display: flex; gap: .7rem; font-size: .58rem; color: var(--muted); margin-top: .4rem; }
.nights-key i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .25rem; vertical-align: -.05em; }
.signs { display: grid; gap: .35rem; margin-top: .4rem; }
.signs div { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) 1.2rem; align-items: center; gap: .4rem; font-size: .64rem; color: var(--text); }
.signs .bar { height: .5rem; border-radius: 0 4px 4px 0; background: var(--magenta); width: var(--w); }
.signs b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.progress-ui { height: .35rem; border-radius: 999px; background: rgba(255, 255, 255, .25); margin-top: .5rem; overflow: hidden; }
.progress-ui span { display: block; height: 100%; width: 43%; background: #fff; border-radius: inherit; }
.mini-post { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: .55rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.mini-post:last-child { border-bottom: 0; }
.mini-post img { width: 2.9rem; height: 2.9rem; object-fit: cover; border-radius: .55rem; }
.mini-post b { display: block; color: var(--ink); font-size: .68rem; line-height: 1.25; }
.mini-post span { font-size: .58rem; color: var(--muted); }

.tabbar { position: absolute; left: .55rem; right: .55rem; bottom: .55rem; height: 3.15rem; border-radius: 1.4rem; z-index: 4; display: flex; justify-content: space-around; align-items: center;
  background: rgba(22, 11, 38, .9); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabbar span { display: grid; justify-items: center; gap: .15rem; font-size: .52rem; font-weight: 600; color: var(--muted); }
.tabbar svg { width: 1.05rem; height: 1.05rem; }
.tabbar .on { color: var(--magenta); }

/* App hero */
.app-hero .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.app-hero h1 { font-size: clamp(2.4rem, 6.2vw, 5.9rem); font-stretch: 92%; margin: 1.4rem 0 1.6rem; }
.app-hero h1 .line { display: block; }
.phone-stage { position: relative; display: grid; place-items: center; padding-block: 1rem; }
.phone-stage::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 44, 255, .45), rgba(122, 59, 255, .15) 55%, transparent); z-index: -1; }
.phone-stage .sparkle.s1 { left: 2%; top: 14%; }
.phone-stage .sparkle.s2 { right: 0; bottom: 20%; }
.phone-stage .sparkle.s3 { right: 14%; top: 2%; }
.app-note { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .app-hero .hero-grid { grid-template-columns: 1fr; } .app-hero h1 { font-size: min(11vw, 4.5rem); } .phone-stage { margin-top: 1rem; } .phone-stage .phone { width: min(78vw, 18rem); } }

/* Tour */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tour-btn { appearance: none; width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .95rem; align-items: start; padding: 1rem 1.15rem; border-radius: var(--r-card); border: 1px solid var(--line); background: transparent; color: var(--text); font-size: .92rem; line-height: 1.45; transition: border-color .25s ease, background-color .25s ease; }
.tour-btn:hover { border-color: var(--line-strong); }
.tour-btn .ico { grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: rgba(213, 44, 255, .14); color: var(--magenta); }
.tour-btn .ico svg { width: 1.2rem; height: 1.2rem; }
.tour-btn b { color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.tour-btn .d { color: var(--muted); }
.tour-btn[aria-pressed="true"] { border-color: rgba(213, 44, 255, .7); background: linear-gradient(135deg, rgba(142, 20, 217, .3), rgba(18, 8, 34, .3)); }
.tour-btn[aria-pressed="true"] .ico { background: var(--neon); color: #fff; box-shadow: 0 6px 20px -6px rgba(213, 44, 255, .9); }
.tour-btn[aria-pressed="true"] .d { color: var(--text); }
.tour .phone-stage .phone { width: min(80vw, 19.5rem); }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .tour-list::-webkit-scrollbar { display: none; }
  .tour-list li { flex: 0 0 min(78vw, 17rem); scroll-snap-align: start; }
  .tour-btn { height: 100%; }
}

/* Feature grid */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.features li { padding: 1.4rem; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); }
.features .ico { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: var(--neon); color: #fff; box-shadow: 0 6px 20px -6px rgba(213, 44, 255, .9); margin-bottom: 1rem; }
.features .ico svg { width: 1.2rem; height: 1.2rem; }
.features h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.features p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* A night with the app: a real timeline */
.night-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.night-plan::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; border-top: 1px dashed var(--line-strong); }
.night-plan li { position: relative; padding-top: 2rem; }
.night-plan li::before { content: ""; position: absolute; top: 0; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--void); box-shadow: inset 0 0 0 3px var(--magenta), 0 0 14px rgba(213, 44, 255, .7); }
.night-plan time { display: block; font-weight: 800; font-stretch: 108%; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.night-plan h3 { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin: .35rem 0 .5rem; }
.night-plan p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .night-plan { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2rem; }
  .night-plan::before { left: .55rem; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed var(--line-strong); }
  .night-plan li { padding-top: 0; }
  .night-plan li::before { left: -2rem; top: .3rem; }
}

/* Waitlist */
.waitlist { display: flex; gap: .5rem; max-width: 30rem; margin: 0 auto; padding: .4rem; border-radius: 999px; background: rgba(8, 4, 15, .55); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.waitlist input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; padding: .55rem .9rem; outline: none; }
.waitlist input::placeholder { color: var(--muted); }
.waitlist:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(213, 44, 255, .25); }
.waitlist .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--ink); opacity: .85; margin-top: 1rem !important; min-height: 1.3em; }
.form-note.ok { opacity: 1; color: #FFD08A; }
@media (max-width: 480px) { .waitlist { flex-direction: column; border-radius: 22px; } .waitlist .btn { justify-content: center; } }

/* Home promo */
.app-promo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.app-promo h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 1rem 0 1.25rem; }
.app-promo h2 .line { display: block; }
.app-promo > div > p { max-width: 32rem; }
.app-promo ul { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; }
.app-promo li { display: flex; gap: .6rem; align-items: center; color: var(--ink); font-weight: 600; font-size: .95rem; }
.app-promo li span { width: 2rem; height: 2rem; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(213, 44, 255, .16); color: var(--magenta); }
.app-promo li svg { width: 1rem; height: 1rem; }
.app-promo .phone { width: min(70vw, 17rem); }
@media (max-width: 860px) { .app-promo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .app-promo ul { grid-template-columns: 1fr; } }

.thanks { padding: clamp(3rem, 10vw, 7rem) 0; }
.thanks h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); }
.thanks h1 .line { display: block; }
.thanks p { font-size: 1.15rem; max-width: 32rem; margin: 1.5rem 0 2rem; }

/* ---------- Meditation + sleep stories ---------- */
/* phone: practice screen */
.breath-card { display: grid; justify-items: center; gap: .55rem; padding-block: 1rem .8rem; }
.mini-breath { position: relative; width: 9.5rem; height: 9.5rem; display: grid; place-items: center; }
.mini-breath::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(236, 222, 255, .25); }
.mini-orb { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, #F7C9FF 14%, #E04BFF 44%, #8E14D9 72%, #3A0D73 100%); box-shadow: 0 0 30px rgba(213, 44, 255, .7); transform: scale(.6); animation: mini-breathe 10s ease-in-out infinite; }
@keyframes mini-breathe { 0% { transform: scale(.58); } 40% { transform: scale(1); } 100% { transform: scale(.58); } }
.mini-breath .lbl { position: absolute; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 10px rgba(60, 0, 110, .8); }
.mini-breath .lbl.in { opacity: 1; animation: lbl-in 10s linear infinite; }
.mini-breath .lbl.out { opacity: 0; animation: lbl-out 10s linear infinite; }
@keyframes lbl-in { 0%, 37% { opacity: 1; } 42%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lbl-out { 0%, 37% { opacity: 0; } 42%, 95% { opacity: 1; } 100% { opacity: 0; } }
.play-dot { width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(213, 44, 255, .2); color: #F0A8FF; }
.play-dot svg { width: .8rem; height: .8rem; margin-left: 1px; }

/* phone: sleep stories screen */
.story-now { padding: .55rem .55rem .75rem; }
.story-banner { height: 9rem; border-radius: .75rem; overflow: hidden; margin-bottom: .55rem; }
.story-banner svg, .mini-cover svg { display: block; width: 100%; height: 100%; }
.story-now .ui-label, .story-now .ui-title, .story-now .scrub, .story-now .scrub-t, .story-now .controls, .story-now .ui-chips { margin-inline: .2rem; }
.scrub { height: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: .45rem; }
.scrub span { display: block; width: 38%; height: 100%; background: var(--neon); border-radius: inherit; }
.scrub-t { display: flex; justify-content: space-between; font-size: .56rem; color: var(--muted); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.controls { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; font-size: .6rem; color: var(--text); }
.controls .pp { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; color: var(--magenta-deep); display: grid; place-items: center; box-shadow: 0 0 20px rgba(213, 44, 255, .55); }
.controls .pp svg { width: 1rem; height: 1rem; }
.mini-cover { width: 2.9rem; height: 2.9rem; border-radius: .55rem; overflow: hidden; display: block; }

/* page: breathing exercise */
.breathe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.orb-stage { position: relative; width: min(100%, 32rem); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
@media (min-width: 861px) { .breathe { align-items: start; } .orb-stage { position: sticky; top: max(6rem, calc(50vh - 16rem)); } }
.orb-stage::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(213, 44, 255, .35), rgba(122, 59, 255, .12) 60%, transparent); z-index: -1; }
.orb-stage .ring { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-stage .r1 { inset: 0; border: 1px dashed rgba(236, 222, 255, .2); animation: spin 90s linear infinite; }
.orb-stage .r2 { inset: 11%; border: 1px solid rgba(213, 44, 255, .25); }
.orb-stage .r3 { inset: 22%; border: 1px solid rgba(213, 44, 255, .14); }
@keyframes spin { to { transform: rotate(360deg); } }
.orb { width: 78%; aspect-ratio: 1; border-radius: 50%; transform: scale(.55);
  background: radial-gradient(circle at 40% 34%, #FFFFFF 0%, #F7C9FF 13%, #E04BFF 42%, #8E14D9 70%, #3A0D73 100%);
  box-shadow: 0 0 70px rgba(213, 44, 255, .65), 0 0 160px rgba(122, 59, 255, .4), inset 0 -20px 60px rgba(40, 0, 90, .45), inset 0 10px 40px rgba(255, 255, 255, .3);
  transition-property: transform, box-shadow; transition-timing-function: cubic-bezier(.45, 0, .55, 1); transition-duration: 4s; }
.orb.big { transform: scale(1); box-shadow: 0 0 110px rgba(213, 44, 255, .85), 0 0 240px rgba(122, 59, 255, .55), inset 0 -20px 60px rgba(40, 0, 90, .45), inset 0 10px 40px rgba(255, 255, 255, .3); }
.orb-label { position: absolute; display: grid; justify-items: center; gap: .1rem; color: #fff; text-align: center; pointer-events: none; }
.orb-label b { font-size: clamp(1.3rem, 2.8vw, 2.1rem); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(60, 0, 110, .7); }
.orb-label span { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; font-variant-numeric: tabular-nums; opacity: .9; }
[data-now="hold"] .orb-label b { color: #FFD08A; }
.breathe-copy h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); margin: 1rem 0 1.25rem; }
.breathe-copy h2 .line { display: block; }
.breathe-copy > p { max-width: 34rem; }
.breathe-patterns { margin: 1.5rem 0 1.25rem; }
.breathe-toggle .i-pause, .breathe-toggle[data-state="running"] .i-play { display: none; }
.breathe-toggle[data-state="running"] .i-pause { display: grid; }
.breathe-toggle .dot svg { width: .9rem; height: .9rem; }
.sessions-h { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 .5rem; }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.sessions li:last-child { border-bottom: 0; }
.sessions b { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; }
.sessions li div span { font-size: .88rem; color: var(--muted); }
.sessions time { font-size: .85rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sessions .play-dot { width: 2.2rem; height: 2.2rem; }
@media (max-width: 860px) { .breathe { grid-template-columns: 1fr; } .orb-stage { width: min(88vw, 24rem); } }

/* page: sleep stories */
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.story .art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(213, 44, 255, .7); }
.story .art svg { display: block; width: 100%; height: 100%; transition: transform .8s ease; }
.story:hover .art svg { transform: scale(1.04); }
.story .len { position: absolute; left: .7rem; bottom: .7rem; font-size: .72rem; font-weight: 700; color: #fff; padding: .25rem .6rem; border-radius: 999px; background: rgba(8, 4, 15, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story h3 { font-size: 1.05rem; line-height: 1.2; margin-top: .85rem; }
@media (max-width: 1000px) {
  .stories { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .stories::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 min(62vw, 14rem); scroll-snap-align: start; }
}

/* =================================================================
   Hero motion graphic: lucid dreaming in a nutshell
   Every element's resting style is its END state, so the scene reads
   correctly when motion is off; keyframes animate in from the start.
   ================================================================= */
.nutshell { margin: 0; }
.nutshell::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(12, 4, 28, .92) 0%, rgba(12, 4, 28, .65) 24%, rgba(12, 4, 28, 0) 46%), radial-gradient(70% 45% at 50% 42%, rgba(12, 4, 28, .35), transparent 70%); }
.ns-stage { position: absolute; left: 3%; right: 3%; top: 9%; bottom: 31%; z-index: 2; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .55s ease; overflow: visible; }
.scene.on { opacity: 1; }
.ns-cap { position: absolute; left: 7%; right: 7%; bottom: 12.5%; z-index: 3; text-align: center; color: #fff; }
.ns-cap b { display: block; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; text-shadow: 0 2px 18px rgba(30, 0, 60, .8); }
.ns-cap span { display: block; margin-top: .4rem; font-size: clamp(.8rem, 1.15vw, .95rem); line-height: 1.4; color: rgba(255, 255, 255, .86); }
.ns-cap.anim b, .ns-cap.anim span { animation: ns-cap .6s ease both; }
.ns-cap.anim span { animation-delay: .12s; }
@keyframes ns-cap { from { opacity: 0; transform: translateY(10px); } }
.ns-link { display: none; margin-top: .7rem; font-size: .85rem; font-weight: 700; color: #fff; text-decoration: none; padding: .35rem .9rem; border-radius: 999px; background: var(--neon); box-shadow: 0 6px 20px -6px rgba(213, 44, 255, .9); }
.ns-cap.last .ns-link { display: inline-block; }
.ns-ctrl { position: absolute; left: 0; right: 0; bottom: 3.5%; z-index: 3; display: flex; justify-content: center; align-items: center; gap: .1rem; }
.ns-dot { appearance: none; border: 0; background: none; padding: 0 .2rem; height: 1.75rem; display: grid; place-items: center; cursor: pointer; }
.ns-dot span { position: relative; display: block; width: .45rem; height: .45rem; border-radius: 999px; background: rgba(255, 255, 255, .38); overflow: hidden; transition: width .35s ease; }
.ns-dot:hover span { background: rgba(255, 255, 255, .7); }
.ns-dot[aria-current="step"] span { width: 1.9rem; }
.ns-dot i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.ns-dot[aria-current="step"] i { transform: scaleX(1); }
.ns-dot.run i { animation: ns-fill var(--dur, 4s) linear both; }
@keyframes ns-fill { from { transform: scaleX(0); } }
.ns-pause { width: 1.9rem; height: 1.9rem; margin-left: .45rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(8, 4, 15, .4); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ns-pause:hover { border-color: #fff; background: rgba(213, 44, 255, .35); }
.ns-pause svg { width: .75rem; height: .75rem; }
.ns-pause .i-play, .nutshell.stopped .ns-pause .i-pause { display: none; }
.nutshell.stopped .ns-pause .i-play { display: grid; }
.nutshell.paused *, .nutshell.paused *::before, .nutshell.paused *::after { animation-play-state: paused !important; }
.nutshell.static .scene *, .nutshell.static .ns-dot i, .nutshell.static .ns-cap * { animation: none !important; }

/* 1: falling asleep */
.s1 .eye-open, .s4 .eye-open { transform-origin: 200px 190px; }
.s1 .eye-open { transform: scaleY(.04); opacity: 0; }
.s1.on .eye-open { animation: ns-close 1.7s ease-in-out .2s both; }
@keyframes ns-close { 0%, 40% { transform: scaleY(1); opacity: 1; } 55% { transform: scaleY(.55); } 66% { transform: scaleY(.85); } 90% { transform: scaleY(.04); opacity: 1; } 100% { transform: scaleY(.04); opacity: 0; } }
.s1.on .eye-shut { animation: ns-in .3s ease 1.75s both; }
.s1.on .z { animation: ns-z 1.1s ease-out both; }
.s1.on .z1 { animation-delay: 2s; } .s1.on .z2 { animation-delay: 2.3s; } .s1.on .z3 { animation-delay: 2.6s; }
@keyframes ns-in { from { opacity: 0; } }
@keyframes ns-z { from { opacity: 0; transform: translate(-12px, 16px); } }

/* 2: the dream */
.s2 .b { transform-box: fill-box; transform-origin: center; }
.s2.on .b { animation: ns-pop .45s cubic-bezier(.3, 1.6, .6, 1) both; }
.s2.on .b1 { animation-delay: .2s; } .s2.on .b2 { animation-delay: .45s; } .s2.on .b3 { animation-delay: .7s; }
@keyframes ns-pop { from { transform: scale(0); opacity: 0; } }
.s2 .dream { transform-origin: 176px 192px; }
.s2.on .dream { animation: ns-grow 1s cubic-bezier(.2, 1.15, .4, 1) .9s both; }
@keyframes ns-grow { from { transform: scale(.08); opacity: 0; } }
.s2 .fish { transform: translate(300px, 74px); }
.s2.on .fish { animation: ns-swim 2.8s ease-in-out 1.2s both; }
@keyframes ns-swim { from { transform: translate(178px, 92px); } 50% { transform: translate(240px, 70px); } to { transform: translate(300px, 74px); } }
.s2.on .island { animation: ns-bob 2.6s ease-in-out 1.4s infinite; }
@keyframes ns-bob { 50% { transform: translateY(-5px); } }

/* 3: something doesn't add up */
.s3 .d1, .s3 .d2 { opacity: 0; }
.s3.on .d1 { animation: ns-d1 3.4s linear both; }
.s3.on .d2 { animation: ns-d2 3.4s linear both; }
.s3.on .d3 { animation: ns-d3 3.4s linear both; }
@keyframes ns-d1 { 0%, 38% { opacity: 1; } 39%, 47% { opacity: 0; } 48%, 54% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes ns-d2 { 0%, 38% { opacity: 0; } 39%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes ns-d3 { 0%, 54% { opacity: 0; } 55%, 100% { opacity: 1; } }
.s3 .clock { transform-origin: 200px 175px; }
.s3.on .clock { animation: ns-shake 3.4s linear both; }
@keyframes ns-shake { 0%, 54%, 68%, 100% { transform: none; } 56% { transform: translateX(-7px) rotate(-2.5deg); } 59% { transform: translateX(7px) rotate(2.5deg); } 62% { transform: translateX(-4px) rotate(-1deg); } 65% { transform: translateX(3px); } }
.s3 .q { transform-box: fill-box; transform-origin: center; }
.s3.on .q { animation: ns-pop .5s cubic-bezier(.3, 1.6, .6, 1) both; }
.s3.on .q1 { animation-delay: 2s; } .s3.on .q2 { animation-delay: 2.2s; } .s3.on .q3 { animation-delay: 2.4s; }

/* 4: realization */
.s4 .eye-shut, .s4 .ring, .s4 .flash { opacity: 0; }
.s4.on .eye-shut { animation: ns-unshut 1.6s linear .2s both; }
@keyframes ns-unshut { 0%, 32% { opacity: 1; } 38%, 100% { opacity: 0; } }
.s4.on .eye-open { animation: ns-open 1.6s ease-out .2s both; }
@keyframes ns-open { 0%, 34% { transform: scaleY(.04); opacity: 0; } 36% { opacity: 1; } 58% { transform: scaleY(1.12); } 70%, 100% { transform: scaleY(1); opacity: 1; } }
.s4.on .flash { animation: ns-flash 1.3s ease-out .65s both; }
@keyframes ns-flash { 0% { opacity: 0; } 12% { opacity: .55; } 100% { opacity: 0; } }
.s4 .ring { transform-box: fill-box; transform-origin: center; }
.s4.on .ring { animation: ns-ring 1.8s ease-out both; }
.s4.on .rg1 { animation-delay: .8s; } .s4.on .rg2 { animation-delay: 1.4s; }
@keyframes ns-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.s4.on .glow { animation: ns-in .8s ease .8s both; }
.s4 .sp, .s6 .sp { transform-box: fill-box; transform-origin: center; }
.s4.on .sp { animation: ns-twinkle .6s cubic-bezier(.3, 1.6, .6, 1) both; }
.s4.on .sp1 { animation-delay: 1.1s; } .s4.on .sp2 { animation-delay: 1.25s; } .s4.on .sp3 { animation-delay: 1.4s; } .s4.on .sp4 { animation-delay: 1.55s; }
@keyframes ns-twinkle { from { transform: scale(0) rotate(-45deg); opacity: 0; } }

/* 5: steering the dream */
.s5 .trail { stroke-dasharray: 1; stroke-dashoffset: 0; }
.s5.on .trail { animation: ns-draw 2.8s ease-in-out .2s both; }
@keyframes ns-draw { from { stroke-dashoffset: 1; } }
.s5 .flyer { transform: translate(372px, 40px) rotate(-69deg); }
.s5.on .flyer { animation: ns-fly 2.8s ease-in-out .2s both; }

/* 6: end card */
.s6 .bigmoon, .s6 .halo { transform-box: fill-box; transform-origin: center; }
.s6.on .bigmoon { animation: ns-grow 1s cubic-bezier(.2, 1.15, .4, 1) .1s both; }
.s6.on .halo { animation: ns-in 1.2s ease .3s both; }
.s6 .orbit { transform-box: fill-box; transform-origin: center; }
.s6.on .orbit { animation: ns-in 1s ease .6s both; }
.s6.on .sp { animation: ns-twinkle .6s cubic-bezier(.3, 1.6, .6, 1) both; }
.s6.on .sp1 { animation-delay: .7s; } .s6.on .sp2 { animation-delay: .85s; } .s6.on .sp3 { animation-delay: 1s; } .s6.on .sp4 { animation-delay: 1.15s; } .s6.on .sp5 { animation-delay: 1.3s; } .s6.on .sp6 { animation-delay: 1.45s; }
@media (max-width: 860px) { .ns-cap { bottom: 13.5%; } .ns-stage { top: 10%; bottom: 33%; } }
@keyframes ns-fly {
  0.0% { transform: translate(30.0px, 300.0px) rotate(-7deg); }
  5.0% { transform: translate(52.0px, 293.9px) rotate(-24deg); }
  9.8% { transform: translate(70.7px, 282.6px) rotate(-38deg); }
  14.6% { transform: translate(86.9px, 267.5px) rotate(-48deg); }
  19.6% { transform: translate(101.4px, 249.9px) rotate(-53deg); }
  24.7% { transform: translate(115.0px, 231.2px) rotate(-54deg); }
  29.7% { transform: translate(128.6px, 212.9px) rotate(-52deg); }
  34.5% { transform: translate(143.1px, 196.2px) rotate(-45deg); }
  39.2% { transform: translate(159.3px, 182.6px) rotate(-34deg); }
  43.7% { transform: translate(178.0px, 173.4px) rotate(-18deg); }
  48.6% { transform: translate(200.0px, 170.0px) rotate(0deg); }
  53.7% { transform: translate(223.1px, 169.3px) rotate(-4deg); }
  58.4% { transform: translate(244.6px, 167.0px) rotate(-9deg); }
  62.9% { transform: translate(264.5px, 162.7px) rotate(-16deg); }
  67.2% { transform: translate(283.0px, 155.9px) rotate(-25deg); }
  71.5% { transform: translate(300.2px, 146.2px) rotate(-34deg); }
  76.0% { transform: translate(316.4px, 133.3px) rotate(-43deg); }
  81.0% { transform: translate(331.4px, 116.6px) rotate(-52deg); }
  86.5% { transform: translate(345.7px, 95.8px) rotate(-59deg); }
  92.8% { transform: translate(359.1px, 70.4px) rotate(-65deg); }
  100.0% { transform: translate(372.0px, 40.0px) rotate(-69deg); }
}
