/* ════════════════════════════════════════════════════════════════
   Antares — main.css
   Light "ice" system: milk background, navy type, steel accent,
   glass cards with a hairline edge. Night windows (.screen) are navy
   with a field of stars. The footer sits on the same sky as the page.
   html.tonight — tonight's sky panel is open.
   ════════════════════════════════════════════════════════════════ */

/* ── fonts: self-hosted, SIL Open Font License (assets/fonts/OFL-*.txt) ── */
@font-face { font-family: 'Cormorant Garamond'; src: url(../fonts/cormorant-garamond.woff2) format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../fonts/cormorant-garamond-italic.woff2) format('woff2'); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../fonts/manrope.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }

/* ── tokens ─────────────────────────────────────────────────────── */
:root {
  --bg: #FAF8F4;            /* milk */
  --ink: #0F1B24;           /* navy type */
  --ink-2: #3A4A55;
  --ink-3: #55656F;
  --accent: #4F7184;        /* steel */
  --accent-ink: #42627A;    /* steel for small type: ≥4.5:1 on ice */
  --accent-soft: #8FAEBE;
  --glacier: #BCD3DE;
  --line: rgba(79, 113, 132, .28);
  --line-2: rgba(79, 113, 132, .42);
  --navy: #0F1B24;          /* night windows */

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: 56px;
  --header-h: 88px;
}

/* ── base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }
/* a scrollbar in the site's steel-on-ice palette */
html { scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-radius: 999px; border: 3px solid var(--bg);
  background: var(--accent-soft); background-clip: padding-box;
  transition: background .4s var(--ease);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .5s var(--ease); }
a:hover { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
kbd { font: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(79, 113, 132, .2); }

/* Star trails behind every section, so the glass has something to blur.
   .sky-still is one still frame for when JS is off; the canvas draws the
   living version on top of it. */
.sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.sky.on { opacity: 1; }
.sky-still { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg) url(../img/trails.webp) center / cover no-repeat; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg);
  transform: translateY(-200%); transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }

/* ── type ───────────────────────────────────────────────────────── */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-ink); }

.h1 {
  margin: 0; max-width: 760px;
  font-weight: 300; font-size: clamp(52px, 6.4vw, 108px); line-height: .92; letter-spacing: -.02em;
}
.h1 em { font-style: italic; color: var(--accent); }
.h2 { margin: 0; font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.lead.small { font-size: 15px; max-width: 380px; }

.arrow { display: inline-block; transition: transform .7s var(--ease); }
a:hover .arrow { transform: translateX(5px); }

.link-line {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 14px; letter-spacing: .04em; color: var(--ink);
  border-bottom: .5px solid var(--line-2);
}
.link-line:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.link-line.bare { border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 22px;
  border-radius: 8px; font-size: 14px; letter-spacing: .04em; color: var(--ink);
  transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.btn-solid {
  -webkit-backdrop-filter: blur(7px) saturate(1.12); backdrop-filter: blur(7px) saturate(1.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(220, 231, 238, .32));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(79, 113, 132, .4), 0 10px 24px -14px rgba(15, 27, 36, .25);
}
.btn-solid:hover { color: var(--ink); background: rgba(255, 255, 255, .85); }
.btn-ghost { box-shadow: inset 0 0 0 .5px rgba(79, 113, 132, .5); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

/* ── motion ─────────────────────────────────────────────────────── */
@keyframes emerge { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes sweep { 0% { transform: translateX(-160%) skewX(-16deg); } 55%, 100% { transform: translateX(460%) skewX(-16deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes scrollDot { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.emerge { animation: emerge 1.8s var(--ease) both; }
.d1 { animation-delay: .25s; } .d2 { animation-delay: .6s; } .d3 { animation-delay: 1s; } .d4 { animation-delay: 1.4s; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }

/* Reveal on scroll: hidden only when JS runs */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── ice: glass card ─────────────────────────────────────────────── */
.glass {
  position: relative; isolation: isolate; border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(220, 231, 238, .26));
  -webkit-backdrop-filter: blur(7px) saturate(1.12);
  backdrop-filter: blur(7px) saturate(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 .5px rgba(79, 113, 132, .28);
}
/* a glint runs along the edge after the pointer */
.glass::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), var(--glint, #fff), rgba(188, 211, 222, .7) 35%, rgba(188, 211, 222, 0) 70%);
  -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;
  opacity: 0; transition: opacity .9s var(--ease);
}
.glass.lit::before { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* night window: dark panels on the light page */
.screen {
  --glint: rgba(228, 237, 242, .85);
  color: #EEF3F6;
  background: url(../img/stars.webp) center / cover, linear-gradient(180deg, #172733, var(--navy));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 .5px rgba(188, 211, 222, .24), 0 40px 80px -36px rgba(15, 27, 36, .5);
}

.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: .5px solid rgba(188, 211, 222, .18); }
.win-bar > i { width: 7px; height: 7px; border-radius: 50%; background: rgba(238, 243, 246, .28); }
.win-bar > span { margin-left: 10px; font-size: 9.5px; color: var(--accent-soft); }

/* ════ HEADER ════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ink);
  border-bottom: .5px solid transparent;
  transition: background .7s var(--ease), border-color .7s var(--ease);
}
.site-header.scrolled, html:not(.js) .site-header {
  background: rgba(250, 248, 244, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; gap: 36px; height: var(--header-h); transition: height .7s var(--ease); }
.site-header.scrolled .header-row { height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; flex: none; width: 13px; height: 13px; border: .5px solid var(--accent); transform: rotate(45deg); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 3.5px rgba(79, 113, 132, .6); }
.logo-mark { position: relative; }
.logo-mark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: #C9785C; box-shadow: 0 0 4px 1px rgba(201, 120, 92, .55); }
.logo-short { display: none; }
.nav { margin-left: auto; display: flex; gap: 28px; font-size: 13px; letter-spacing: .04em; }
.nav a { position: relative; padding: 14px 0; color: var(--ink-2); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: .5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.hctl { display: flex; align-items: center; gap: 8px; }
.tonight-toggle, .palette-btn, .pill {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(228, 237, 242, .6));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(79, 113, 132, .32);
  font-size: 13px; letter-spacing: .02em; color: var(--accent-ink);
  transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.tonight-toggle:hover, .palette-btn:hover { color: var(--ink); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px var(--accent); }
.bt-track { position: relative; width: 24px; height: 13px; border-radius: 7px; box-shadow: inset 0 0 0 .5px currentColor; }
.bt-knob { position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: transform .6s var(--ease); }
.bt-label { font-weight: 500; }
.tonight-toggle[aria-pressed="true"] { background: var(--navy); color: #EEF3F6; box-shadow: none; }
.tonight-toggle[aria-pressed="true"] .bt-knob { transform: translateX(11px); }
.palette kbd, .hud kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 4px; box-shadow: inset 0 0 0 .5px currentColor; font-family: var(--mono); font-size: 10px; line-height: 1;
}
.menu-ico { display: block; flex: none; }
.pb-label { font-weight: 500; }
.pill { padding: 0 18px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.pill-short { display: none; }
html:not(.js) .tonight-toggle, html:not(.js) .palette-btn { display: none; }
.pill:hover { color: #EEF3F6; background: var(--navy); box-shadow: none; }

/* ════ 01 ARRIVAL ════════════════════════════════════════════════ */
/* Text on the left; on the right, two night windows: tonight's
   conditions and the programme that ticks itself off. */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(680px, 100vh, 940px); display: flex; flex-direction: column; justify-content: center;
}
.hero-light { display: none; }
.hero-grid {
  position: relative; z-index: 3; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 48px 72px;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 80px;
}
.hero-body { position: relative; }
.hero-body .eyebrow { margin-bottom: 28px; }
.hero-lead { margin: 32px 0 0; max-width: 470px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* windows overlap: conditions board and tonight's programme */
.hero-stage { position: relative; padding-bottom: 72px; }
.term { position: absolute; z-index: 5; left: -56px; bottom: 0; width: 300px; border-radius: 10px; overflow: hidden; }
.term-body { padding: 12px 16px 14px; font-size: 10.5px; line-height: 1.85; color: #DDE6EB; }
.term-body > div { white-space: pre; min-height: 1.85em; }
.term .dim { color: var(--accent-soft); }
.term .st, .term .ok { color: #9FD3E6; }
.term .st.wait { color: var(--accent-soft); animation: pulse 1s ease-in-out infinite; }
.term .caret::after { content: '▍'; animation: pulse 1s steps(2) infinite; }
.term [data-final].hide { opacity: 0; }
.term [data-final] { transition: opacity 1s var(--ease); }

.dash { position: relative; z-index: 4; width: 100%; border-radius: 12px; overflow: hidden; }
.dash .win-bar { padding: 12px 16px; }
.dash .win-bar > i { width: 8px; height: 8px; }
.dash .url { margin: 0 auto !important; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #B7C9D3 !important; }
.dash .live { display: flex; align-items: center; gap: 6px; margin: 0 !important; color: #CFE3EC !important; }
.dash .dot { width: 6px; height: 6px; border-radius: 50%; background: #9FD3E6; }
.dash-body { display: flex; }
.dash-rail { flex: 0 0 44px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: .5px solid rgba(188, 211, 222, .16); }
.dash-rail b, .dash-rail i { width: 16px; height: 16px; border-radius: 4px; }
.dash-rail b { background: rgba(238, 243, 246, .8); }
.dash-rail i { border: .5px solid rgba(238, 243, 246, .35); }
.dash-main { flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: .5px solid rgba(188, 211, 222, .16); }
.kpi span { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.kpi b { margin-top: 4px; font-weight: 400; font-size: 24px; line-height: 1.2; color: #EEF3F6; }
.kpi em { font-style: normal; font-size: 9px; color: #9FD3E6; }
.chart-wrap { display: flex; flex-direction: column; gap: 4px; }
.chart-cap { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.chart { display: block; }
.hours { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--accent-soft); }
.js .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) 1.6s forwards; }
.js .chart-area { opacity: 0; animation: fadeIn 2s var(--ease) 2.6s forwards; }
.funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.funnel div { display: flex; flex-direction: column; gap: 6px; }
.funnel span { font-size: 8.5px; color: var(--accent-soft); }
.funnel i { display: block; height: 4px; border-radius: 2px; background: rgba(207, 227, 236, .9); }
.sweep {
  position: absolute !important; top: -20%; bottom: -20%; left: 0; width: 18%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
  animation: sweep 9s cubic-bezier(.45, 0, .2, 1) infinite;
}

.scroll-hint { margin-top: 48px; display: flex; align-items: center; gap: 16px; }
.scroll-hint .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.mouse { position: relative; display: block; width: 22px; height: 36px; border-radius: 11px; box-shadow: inset 0 0 0 .5px var(--accent); }
.sdot { position: absolute; left: 10px; top: 11px; width: 2px; height: 6px; border-radius: 1px; background: var(--accent); animation: scrollDot 2.2s ease-in-out infinite; }

/* ════ MARQUEE ═══════════════════════════════════════════════════ */
.marquee { position: relative; overflow: hidden; border-top: .5px solid var(--line); border-bottom: .5px solid var(--line); padding: 18px 0; }
.marq-track { display: flex; gap: 56px; width: max-content; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; animation: marq 48s linear infinite; }
.marquee:hover .marq-track { animation-play-state: paused; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ════ NIGHTS ════════════════════════════════════════════════════ */
.caps { position: relative; padding: 96px 0 24px; }
.caps-row { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cap { display: flex; flex-direction: column; gap: 16px; min-height: 300px; padding: 26px 24px 22px; color: var(--ink); }
.cap:hover { color: var(--ink); }
.cap-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .1em; color: var(--accent-ink); }
.cap-top .price { color: var(--ink-2); letter-spacing: .04em; }
.cap-title { margin-top: 14px; font-size: 32px; font-weight: 400; line-height: 1.05; }
.cap-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.cap-stack { margin-top: auto; padding-top: 16px; border-top: .5px solid var(--line); font-size: 11px; color: var(--accent-ink); }
.cap:nth-child(5) { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.cap:nth-child(5) .cap-top { flex-basis: 100%; }
.cap:nth-child(5) .cap-title { margin-top: 0; }
.cap:nth-child(5) .cap-text { flex: 1 1 260px; }
.cap:nth-child(5) .cap-stack { margin: 0 0 0 auto; padding-top: 0; border-top: 0; }
.caps-row .cap:nth-child(2) { transition-delay: .08s; }
.caps-row .cap:nth-child(3) { transition-delay: .16s; }
.caps-row .cap:nth-child(4) { transition-delay: .24s; }
.caps-row .cap:nth-child(5) { transition-delay: .32s; }

/* ════ 02 OBSERVATORY ════════════════════════════════════════════ */
.house { position: relative; }
.house-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px 80px; align-items: center; padding-top: 120px; padding-bottom: 120px;
}
.house-body { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.house-body .lead { max-width: 520px; }
.disciplines { list-style: none; margin: 0; padding: 6px 28px; display: flex; flex-direction: column; }
.disciplines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: .5px solid var(--line); font-size: 15px; color: var(--ink); }
.disciplines li .mono { font-size: 11px; color: var(--accent-ink); }
.disciplines li.more { padding: 10px 0 12px; border-bottom: 0; }

/* ════ 03 GROUNDS ════════════════════════════════════════════════ */
.objects { position: relative; }
.objects-row {
  position: relative; padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) 200px;
  grid-template-areas: "info preview thumbs"; gap: 48px; align-items: center;
}
.objects-info { grid-area: info; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.obj-card { margin-top: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.obj-meta { font-size: 11px; color: var(--accent-ink); }
.obj-name { font-size: 36px; line-height: 1; color: var(--ink); }
.obj-desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.obj-stack { font-size: 11px; color: var(--accent-ink); }
.obj-card .link-line { margin-top: 6px; }
.obj-card [data-b] { transition: opacity .5s var(--ease), filter .5s var(--ease); }
.obj-card.swap [data-b] { opacity: 0; filter: blur(6px); }

.thumbs { grid-area: thumbs; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.thumb {
  position: relative; height: 112px; padding: 12px; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(220, 231, 238, .26));
  -webkit-backdrop-filter: blur(7px) saturate(1.12); backdrop-filter: blur(7px) saturate(1.12);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px var(--line);
  display: flex; flex-direction: column; gap: 8px; color: var(--ink);
  transition: box-shadow .6s var(--ease), transform .8s var(--ease);
}
.thumb .th-dots, .thumb .th-ui { opacity: .55; transition: opacity .6s var(--ease); }
.thumb:hover .th-dots, .thumb:hover .th-ui { opacity: .8; }
.thumb[aria-pressed="true"] .th-dots, .thumb[aria-pressed="true"] .th-ui { opacity: 1; }
.thumb[aria-pressed="true"] { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--accent); transform: translateX(-6px); }
.th-dots { display: flex; gap: 4px; }
.th-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(79, 113, 132, .35); }
.th-ui { flex: 1; display: grid; gap: 5px; min-height: 0; }
.th-ui i, .th-ui span > i { display: block; border-radius: 3px; background: rgba(79, 113, 132, .16); }
.th-label { font-size: 10px; color: var(--accent-ink); }
/* telescope: three eyepiece views */
.th-shop { grid-template-columns: repeat(3, 1fr); align-items: center; }
.th-shop i { position: relative; width: 100%; max-width: 40px; aspect-ratio: 1; justify-self: center; border-radius: 50%; background: rgba(15, 27, 36, .12); box-shadow: inset 0 0 0 .5px rgba(79, 113, 132, .4); }
.th-shop i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(15, 27, 36, .45); }
.th-shop i:nth-child(1)::after { width: 14px; height: 5px; margin: -2.5px 0 0 -7px; background: none; border: 1px solid rgba(15, 27, 36, .4); box-shadow: inset 0 0 0 1.5px rgba(15, 27, 36, .18); }
.th-shop i:nth-child(3)::after { width: 3px; height: 3px; margin: -1.5px 0 0 -4px; box-shadow: 5px 1px 0 rgba(15, 27, 36, .35); }
/* pier: night schedule */
.th-kanban { grid-template-columns: repeat(3, 1fr); align-items: start; }
.th-kanban > span { display: grid; gap: 3px; }
.th-kanban > span > i { height: 9px; background: rgba(79, 113, 132, .22); }
.th-kanban > span:first-child > i:first-child { background: rgba(15, 27, 36, .45); }
/* guesthouse: messages */
.th-chat { align-content: start; gap: 4px; }
.th-chat i { height: 9px; }
.th-chat i:nth-child(1) { width: 58%; justify-self: end; background: rgba(15, 27, 36, .4); }
.th-chat i:nth-child(2) { width: 82%; }
.th-chat i:nth-child(3) { width: 64%; }
/* tonight: a few stars of Scorpius */
.th-self { position: relative; display: block; }
.th-self i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(15, 27, 36, .4); }
.th-self i:nth-child(1) { left: 72%; top: 10%; }
.th-self i:nth-child(2) { left: 58%; top: 34%; width: 6px; height: 6px; background: #C9785C; box-shadow: 0 0 5px 1px rgba(201, 120, 92, .45); }
.th-self i:nth-child(3) { left: 46%; top: 56%; }
.th-self i:nth-child(4) { left: 40%; top: 82%; }
.th-self i:nth-child(5) { left: 20%; top: 74%; }

/* preview window: a night window */
.obj-preview { grid-area: preview; border-radius: 12px; overflow: hidden; }
.obj-preview .win-bar { position: relative; z-index: 2; padding: 12px 16px; background: rgba(15, 27, 36, .4); }
.obj-preview .url { margin: 0 auto !important; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #B7C9D3 !important; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.pv-stage { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.pv {
  position: absolute; inset: 0; overflow: hidden; padding: 22px; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease), visibility 0s .8s;
}
.pv.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.obj-preview.swap .url { opacity: 0; filter: blur(6px); }
.pv i, .pv b, .pv em, .pv span { display: block; }
.pv i { height: 8px; border-radius: 3px; background: rgba(169, 200, 216, .22); }
.pv p { margin: 0; }
.pv .t { color: #EEF3F6; font-weight: 400; line-height: 1.05; }
.pv .mono { font-style: normal; letter-spacing: .02em; }
/* 01 telescope: tonight through the eyepiece */
.pv-nav { display: flex; align-items: center; gap: 14px; }
.pv-nav b { margin-right: auto; font-size: 17px; font-weight: 500; letter-spacing: .08em; color: #EEF3F6; }
.pv-nav i { width: 44px; height: 6px; }
.pv-nav em { width: 14px; height: 14px; border-radius: 50%; background: rgba(238, 243, 246, .7); }
.pv-banner {
  position: relative; flex: 0 0 auto; border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: linear-gradient(120deg, rgba(200, 225, 235, .22), rgba(60, 96, 116, .18) 55%, rgba(200, 225, 235, .06));
  border: .5px solid rgba(188, 211, 222, .2);
}
.pv-banner .t { font-size: clamp(16px, 1.6vw, 22px); }
.pv-banner i { width: 30%; height: 6px; }
.pv-banner .cta { align-self: flex-start; margin-top: 2px; padding: 5px 14px; border-radius: 999px; background: rgba(238, 243, 246, .9); color: var(--navy); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.pv-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 12px; min-height: 0; }
.pv-grid > div { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.pv-grid > div > span { flex: 1; min-height: 22px; border-radius: 6px; background: linear-gradient(160deg, rgba(200, 225, 235, .16), rgba(169, 200, 216, .05)); border: .5px solid rgba(188, 211, 222, .14); }
.pv-grid > div > i { width: 70%; height: 6px; flex: none; }
.pv-grid em { font-size: 9.5px; color: #9FD3E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv .ev { position: relative; background: radial-gradient(circle at 50% 50%, rgba(200, 225, 235, .07), rgba(169, 200, 216, .02) 70%); }
.ev::before, .ev::after { content: ''; position: absolute; left: 50%; top: 50%; }
.ev::before { height: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #0A131A 62%, #070E14); box-shadow: inset 0 0 0 .5px rgba(188, 211, 222, .28), 0 0 0 3px rgba(188, 211, 222, .05); }
.ev-saturn::after { width: 26px; height: 9px; margin: -4.5px 0 0 -13px; border-radius: 50%; border: 1.5px solid rgba(226, 210, 168, .8); transform: rotate(-16deg); background: radial-gradient(circle, #E6D6AC 0 4.5px, rgba(230, 214, 172, 0) 5px); }
.ev-cluster::after { width: 2px; height: 2px; border-radius: 50%; background: #EEF3F6; box-shadow: 4px 2px #DDE6EB, -3px 4px #DDE6EB, 6px -4px #C9D7DF, -6px -3px #DDE6EB, 1px -6px #EEF3F6, -1px 7px #C9D7DF, 9px 3px #AFC2CD, -9px 1px #AFC2CD, 3px 9px #AFC2CD, -5px -8px #AFC2CD, 8px -8px #93A8B4, -10px 7px #93A8B4, 12px -1px #93A8B4, 0 0 6px 3px rgba(238, 243, 246, .25); }
.ev-double::after { width: 5px; height: 5px; margin: -4px 0 0 -6px; border-radius: 50%; background: #F4DDB0; box-shadow: 0 0 6px 1px rgba(244, 221, 176, .6), 8px 4px 0 -1px #F1C99A, 8px 4px 5px 0 rgba(241, 201, 154, .4); }
.ev-moon::after { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: radial-gradient(circle at 38% 40%, #E2E7EA, #B9C3C9 70%); box-shadow: inset -11px 0 0 0 #0A131A; }
.ev-nebula::after { width: 34px; height: 26px; margin: -13px 0 0 -17px; border-radius: 50%; background: radial-gradient(ellipse at 45% 50%, rgba(238, 196, 204, .7), rgba(201, 148, 170, .35) 40%, rgba(159, 211, 230, .12) 62%, rgba(159, 211, 230, 0) 72%); filter: blur(1.5px); }
.ev-galaxy::after { width: 30px; height: 8px; margin: -4px 0 0 -15px; border-radius: 50%; transform: rotate(-24deg); background: radial-gradient(ellipse, #F2EEE6 0 12%, rgba(220, 214, 200, .55) 34%, rgba(220, 214, 200, 0) 70%); box-shadow: 0 1.5px 0 -1px rgba(10, 19, 26, .9); }
/* 02 pier: tonight's schedule */
.pv-crm { flex-direction: row; gap: 18px; }
.pv-side { flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; border-right: .5px solid rgba(188, 211, 222, .16); }
.pv-side b { width: 18px; height: 18px; border-radius: 5px; background: rgba(238, 243, 246, .8); }
.pv-side i { width: 16px; height: 16px; border-radius: 4px; background: none; border: .5px solid rgba(238, 243, 246, .3); }
.pv-board { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv-kpi span { padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: .5px solid rgba(188, 211, 222, .16); min-width: 0; }
.pv-kpi em { font-size: 8.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-kpi b { margin-top: 3px; font-size: clamp(15px, 1.5vw, 22px); font-weight: 400; color: #EEF3F6; white-space: nowrap; }
.pv-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pv-cols > div { display: flex; flex-direction: column; gap: 7px; min-height: 0; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .025); border: .5px solid rgba(188, 211, 222, .12); }
.pv .pv-pier { display: inline; }
.pv-cols em { font-size: 8.5px; color: var(--accent-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.pv-cols i { flex: 0 1 46px; min-height: 18px; height: auto; border-radius: 6px; background: rgba(169, 200, 216, .14); border: .5px solid rgba(188, 211, 222, .14); }
.pv-cols > div:first-child i:first-of-type { background: rgba(159, 211, 230, .22); border-color: rgba(159, 211, 230, .45); }
/* 03 guesthouse: older messages slide up under a mask, like a scrolled chat */
.pv-ai { gap: 10px; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px); mask-image: linear-gradient(180deg, transparent 0, #000 40px); }
.pv-msg { flex: none; align-self: flex-start; max-width: 72%; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .05); border: .5px solid rgba(188, 211, 222, .16); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.45; color: #DDE6EB; }
.pv-msg.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(159, 211, 230, .14); border-color: rgba(159, 211, 230, .3); color: #EEF3F6; }
.pv-msg .mono { font-size: 9px; color: #9FD3E6; }
.pv-msg.typing { flex-direction: row; gap: 5px; padding: 12px 14px; }
.pv-msg.typing b { width: 6px; height: 6px; border-radius: 50%; background: rgba(238, 243, 246, .6); animation: pulse 1.2s ease-in-out infinite; }
.pv-msg.typing b:nth-child(2) { animation-delay: .2s; } .pv-msg.typing b:nth-child(3) { animation-delay: .4s; }
.pv-input { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: .5px solid rgba(188, 211, 222, .24); }
.pv-input i { flex: 1; height: 6px; background: rgba(154, 167, 176, .35); }
.pv-input em { width: 22px; height: 22px; border-radius: 50%; background: rgba(238, 243, 246, .7); }
/* 00 tonight: a chart of Scorpius */
.pv-chart { flex: 1; min-height: 0; width: 100%; display: block; }
.ch-grid path { fill: none; stroke: rgba(188, 211, 222, .12); stroke-width: .6; stroke-dasharray: 2 4; }
.ch-bg circle { fill: rgba(220, 235, 242, .55); }
.ch-lines path { fill: none; stroke: rgba(159, 211, 230, .38); stroke-width: .7; }
.ch-stars circle { fill: #EEF3F6; }
.ch-m4 { fill: none; stroke: rgba(220, 235, 242, .55); stroke-width: .6; stroke-dasharray: 1.5 1.5; }
.ch-glow { fill: rgba(214, 120, 88, .22); }
.ch-antares { fill: #E9926E; }
.ch-label { fill: #DDE6EB; font: 400 9px var(--mono); letter-spacing: .06em; }
.ch-label.dim { fill: var(--accent-soft); }
.pv-blocks { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pv-blocks span { padding: 8px 10px; border: .5px dashed rgba(159, 211, 230, .55); border-radius: 4px; font-size: 9px; color: #9FD3E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ════ 04 EYE TO STAR ═══════════════════════════════════════════ */
.craft { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; padding: 24px var(--gutter) 24px; max-width: 1440px; margin: 0 auto; }
.craft-visual {
  flex: 1.15 1 560px; position: relative; min-height: 640px; overflow: hidden; border-radius: 12px;
  background: url(../img/stars.webp) center / cover, var(--navy);
  box-shadow: inset 0 0 0 .5px rgba(188, 211, 222, .2), 0 40px 80px -40px rgba(15, 27, 36, .45);
}
.craft-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 60% 42%, rgba(79, 113, 132, .5), rgba(15, 27, 36, 0) 70%); }

.stack { position: absolute; left: 22%; right: 0; top: 60px; bottom: 170px; display: grid; place-items: center; perspective: 1800px; }
.stack-3d {
  position: relative; width: 270px; height: 270px;
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg + var(--tx, 0deg))) rotateZ(calc(-42deg + var(--tz, 0deg)));
  transition: transform 1.2s var(--ease);
}
.plate {
  --z: calc((6 - var(--i)) * 30px);
  --lift: 0px;
  position: absolute; inset: 0; padding: 22px;
  border: 1px solid rgba(200, 220, 230, .32); border-radius: 6px;
  background: linear-gradient(135deg, rgba(200, 225, 235, .12), rgba(200, 225, 235, .03) 60%, rgba(200, 225, 235, .07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  transform: translateZ(calc(var(--z) + var(--lift)));
  transition: transform 1.2s var(--ease), opacity 1s var(--ease), border-color 1s var(--ease), background 1s var(--ease), box-shadow 1s var(--ease);
  overflow: hidden;
}
.plate::after {
  content: ''; position: absolute; top: -50%; bottom: -50%; left: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-200%) skewX(-16deg); opacity: 0;
}
.plate.above { --lift: 90px; opacity: .1; }
.plate.below { opacity: .5; }
.plate.on {
  opacity: 1; border-color: rgba(200, 220, 230, .85);
  background: linear-gradient(135deg, rgba(200, 225, 235, .2), rgba(200, 225, 235, .06) 60%, rgba(200, 225, 235, .12));
  box-shadow: 0 0 60px -6px rgba(159, 211, 230, .35), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.plate.on::after { opacity: 1; animation: sweep 6s cubic-bezier(.45, 0, .2, 1) .4s infinite; }
.plate.on .pl-label { color: rgba(238, 243, 246, .95); }
.pl-label { position: absolute; left: 14px; bottom: 10px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(220, 235, 242, .85); }
.plate > div { position: relative; height: calc(100% - 26px); }
.plate i, .plate b, .plate span > i { display: block; }
.pl-eye, .pl-mirror, .pl-star { display: grid; place-items: center; }
/* eye: iris and a wide-open pupil */
.pl-eye b { width: 66%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(200, 220, 230, .55); background: radial-gradient(circle, #08111A 0 31%, rgba(159, 211, 230, .5) 32%, rgba(120, 160, 180, .22) 50%, rgba(169, 200, 216, .08) 66%, transparent 67%); }
.pl-api { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: rgba(220, 235, 242, .9); white-space: pre; }
/* mirror: silvered disc with the central hole */
.pl-mirror b { width: 76%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(200, 220, 230, .6); background: radial-gradient(circle, #0B151D 0 13%, rgba(200, 220, 230, .5) 14%, rgba(169, 200, 216, .16) 45%, rgba(220, 235, 242, .32) 70%, rgba(169, 200, 216, .12) 99%); }
/* dome: half a sphere with the slit open */
.pl-dome { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pl-dome b { position: relative; width: 72%; height: 36%; border-radius: 999px 999px 0 0; border: 1px solid rgba(200, 220, 230, .6); border-bottom: 0; background: linear-gradient(180deg, rgba(169, 200, 216, .2), rgba(169, 200, 216, .06)); overflow: hidden; }
.pl-dome b::after { content: ''; position: absolute; left: 43%; width: 14%; top: 0; bottom: 0; background: #0B151D; box-shadow: 0 0 0 1px rgba(200, 220, 230, .5); }
.pl-dome i { width: 84%; height: 16%; border: 1px solid rgba(200, 220, 230, .45); border-top: 0; background: rgba(169, 200, 216, .08); }
/* atmosphere: turbulent layers */
.pl-air svg { width: 100%; height: 100%; display: block; }
.pl-air path { fill: none; stroke: rgba(200, 220, 230, .55); stroke-width: 1; }
/* dust: soft clouds */
.pl-dust i { position: absolute; border-radius: 50%; filter: blur(6px); }
.pl-dust i:nth-child(1) { left: 6%; top: 10%; width: 62%; height: 46%; background: rgba(214, 186, 132, .28); }
.pl-dust i:nth-child(2) { left: 38%; top: 38%; width: 56%; height: 44%; background: rgba(159, 211, 230, .22); }
.pl-dust i:nth-child(3) { left: 14%; top: 56%; width: 40%; height: 30%; background: rgba(201, 120, 92, .22); }
/* antares: a red supergiant */
.pl-star b { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFE7CC 0 7%, #F2A882 16%, rgba(214, 112, 82, .6) 30%, rgba(214, 112, 82, .16) 50%, rgba(214, 112, 82, 0) 68%); }

.code {
  position: absolute; left: 32px; bottom: 32px; z-index: 2; width: min(460px, calc(100% - 64px));
  padding: 18px 22px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.8; color: rgba(221, 230, 235, .92);
}
.code-file { color: var(--accent-soft); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.code pre { margin: 6px 0 0; font: inherit; white-space: pre; overflow: hidden; min-height: calc(1.8em * 5); }
.code pre code { font: inherit; display: block; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.code.swap pre code { opacity: 0; filter: blur(6px); }
.code .k { color: #9FD3E6; }
.code .n { color: #C9B8E8; }

.craft-body { flex: 1 1 480px; min-width: 0; padding: 72px 0 72px clamp(32px, 5vw, 80px); display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.craft-body .lead { max-width: 460px; }
.layers { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.layer-list { flex: 0 0 180px; display: flex; flex-direction: column; border-left: .5px solid var(--line-2); }
.layer-list button {
  min-height: 40px; padding: 0 0 0 18px; margin-left: -1px; border: 0; border-left: 1px solid transparent;
  background: transparent; cursor: pointer; text-align: left; font-family: var(--sans); font-size: 14px; color: var(--ink-3);
  transition: color .5s var(--ease), border-color .5s var(--ease), padding .6s var(--ease);
}
.layer-list button:hover { color: var(--ink); }
.layer-list button[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--accent); padding-left: 24px; }
.layer-detail { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.layer-detail [data-b] { transition: opacity .5s var(--ease), filter .5s var(--ease); }
.layer-detail.swap [data-b] { opacity: 0; filter: blur(6px); }
.layer-n { font-size: 11px; color: var(--accent-ink); }
.layer-title { margin: 0; font-size: 30px; line-height: 1.1; color: var(--ink); }
.layer-desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.layer-stack { font-size: 11px; color: var(--accent-ink); }

/* ════ 05 YOUR NIGHT ═════════════════════════════════════════════ */
.process { position: relative; }
.process > .wrap { padding-top: 120px; padding-bottom: 96px; }
.process-head { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.process-head > div { display: flex; flex-direction: column; gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; }
.steps li > span:nth-child(2) { font-size: 28px; line-height: 1.05; color: var(--ink); }
.steps li > span:nth-child(3) { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.step-n { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--accent-ink); }
.step-n i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79, 113, 132, .12); }
.steps .out { font-size: 11px; color: var(--accent-ink); }
.steps li:nth-child(2) { transition-delay: .08s; } .steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; } .steps li:nth-child(5) { transition-delay: .32s; }
.steps li:nth-child(6) { transition-delay: .4s; }

/* ════ 06 HOUSE RULES + 07 BOOK ═════════════════════════════════ */
.standard { position: relative; overflow: hidden; color: var(--ink); }
.standard-row { position: relative; padding-top: 140px; padding-bottom: 120px; display: flex; gap: 40px 56px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.standard-intro { flex: 0 1 340px; display: flex; flex-direction: column; gap: 24px; }
.principles { flex: 1 1 420px; max-width: 540px; list-style: none; margin: 0; padding: 4px clamp(20px, 2.4vw, 32px); }
.principles li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: .5px solid var(--line); }
.principles li:last-child { border-bottom: 0; }
.principles li > .mono { padding-top: 7px; font-size: 11px; color: var(--accent-ink); }
.principles li > span:last-child { display: flex; flex-direction: column; gap: 6px; }
.principles b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; color: var(--ink); }
.principles .en { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); }
.proof { margin-top: 2px; font-size: 11px; color: var(--ink-2); }
.proof::before { content: '↳ '; }

.enter { flex: 0 1 360px; min-width: 0; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.enter-title { margin: 0 0 4px; font-size: 36px; font-weight: 300; line-height: 1.02; color: var(--ink); }
.enter-title em { font-style: italic; color: var(--accent); }
.enter label { margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.field {
  min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 .5px var(--line-2);
  color: var(--ink); font: 400 15px var(--sans); transition: box-shadow .5s var(--ease), background .5s var(--ease);
}
.field::placeholder { color: #5F6F7A; }
.field:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #B5715F; }
.req { margin: 2px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(79, 113, 132, .06); border: .5px dashed var(--line-2); font-size: 10.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: break-all; }
.req .k { color: var(--accent-ink); }
.req .ph { color: var(--ink-3); opacity: .7; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enter.closed .enter-btn { cursor: not-allowed; }
.enter-btn {
  margin-top: 6px; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 22px;
  border: 0; border-radius: 8px; cursor: pointer; background: var(--navy); color: #EEF3F6;
  font: 500 14px var(--sans); letter-spacing: .04em; transition: background .6s var(--ease);
}
.enter-btn:hover { background: #22384A; }
.enter-btn span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: rgba(238, 243, 246, .12); color: #EEF3F6; transition: transform .7s var(--ease); }
.enter-btn:hover span { transform: translateX(3px); }
.enter-btn[disabled] { opacity: .6; cursor: progress; }
.enter-note { margin: -4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.enter-status { margin: 0; min-height: 1.5em; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ════ FOOTER: on the same sky as the page ══════════════════════ */
.site-footer { position: relative; margin-top: 24px; border-top: .5px solid var(--line); color: var(--ink); }
.footer-row { padding-top: 32px; padding-bottom: 40px; display: flex; gap: 24px 48px; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .serif { font-size: 24px; font-weight: 500; }
.footer-brand span:last-child { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--ink-2); }
.footer-nav a:hover, .footer-links a:hover { color: var(--accent-ink); }
.footer-links { margin-left: auto; display: flex; gap: 24px; font-size: 13px; }
.footer-links[hidden] { display: none; }
.footer-build { width: 100%; margin-top: 8px; padding-top: 24px; border-top: .5px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--accent-ink); }
.footer-concept { width: 100%; margin-top: -12px; font-size: 9px; letter-spacing: .08em; color: var(--ink-3); opacity: .55; }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; border-bottom: .5px dotted currentColor; }
.linkish:hover { color: var(--ink); }

/* ════ TONIGHT — the Moon and the darkest dates ═════════════════ */
[tabindex="-1"]:focus { outline: none; }

.hud {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 300px;
  padding: 14px 16px 12px; border-radius: 10px;
  background: rgba(15, 27, 36, .94); box-shadow: inset 0 0 0 .5px rgba(188, 211, 222, .3), 0 30px 60px -30px rgba(15, 27, 36, .6);
  color: #DDE6EB; font-size: 10.5px; line-height: 1.7;
}
.hud:not([hidden]) { animation: emerge 1s var(--ease) both; }
.hud-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: .5px solid rgba(188, 211, 222, .2); color: #BCD3DE; letter-spacing: .12em; text-transform: uppercase; font-size: 9.5px; }
.hud-head button { width: 28px; height: 28px; margin: -6px -8px -6px 0; border: 0; background: none; color: var(--accent-soft); cursor: pointer; font-size: 16px; line-height: 1; }
.hud-head button:hover { color: #EEF3F6; }
.hud dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; }
.hud dt { color: var(--accent-soft); }
.hud dd { margin: 0; text-align: right; color: #EEF3F6; font-variant-numeric: tabular-nums; }
.hud dd.good { color: #9FD3E6; }
.hud p { margin: 10px 0 0; color: var(--accent-soft); font-size: 9.5px; }
.hud kbd { min-width: 16px; height: 16px; font-size: 9px; }

/* a short confirmation after a menu action */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 8px;
  background: var(--navy); color: #EEF3F6; font-size: 11.5px; letter-spacing: .04em;
  box-shadow: 0 20px 40px -20px rgba(15, 27, 36, .5);
}
.toast:not([hidden]) { animation: emerge .6s var(--ease) both; }

/* ════ MENU ═══════════════════════════════════════════════════════ */
.palette { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(15, 27, 36, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .5s var(--ease) both; }
.palette-box {
  position: relative; width: min(560px, 100%); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 247, 249, .9));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px var(--line-2), 0 40px 80px -30px rgba(15, 27, 36, .35);
  animation: emerge .7s var(--ease) both;
}
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: .5px solid var(--line); color: var(--accent-ink); }
.palette-input input { flex: 1; min-height: 56px; border: 0; background: transparent; color: var(--ink); font: 400 16px var(--sans); outline: none; }
.palette-input input::placeholder { color: #5F6F7A; }
.palette kbd { color: var(--accent-ink); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette-list .grp { padding: 10px 12px 6px; font: 400 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.palette-list [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px;
  border-radius: 6px; cursor: pointer; color: var(--ink-2); font-size: 14px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.palette-list [role="option"] .mono { font-size: 10.5px; color: var(--accent-ink); }
.palette-list [role="option"][aria-selected="true"] { background: rgba(79, 113, 132, .1); color: var(--ink); }
.palette-list .empty { padding: 18px 12px; color: var(--ink-3); font-size: 13px; }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: .5px solid var(--line); font-size: 11px; color: var(--ink-3); }
.palette-foot span { display: flex; align-items: center; gap: 6px; }
.palette-foot kbd { min-width: 18px; height: 18px; }

/* ════ RESPONSIVE ════════════════════════════════════════════════ */
@media (min-width: 1600px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
}
@media (max-width: 1360px) {
  .nav { gap: 22px; }
}
@media (max-width: 1240px) {
  .nav { display: none; }
  .hctl { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px 56px; }
}
/* Grounds: three columns only where the preview is wider than ~560px */
@media (max-width: 1340px) {
  .standard-intro { flex-basis: 100%; }
}
@media (max-width: 1320px) {
  .caps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objects-row { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); grid-template-areas: "info preview" "thumbs thumbs"; gap: 40px; }
  .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumb[aria-pressed="true"] { transform: translateY(-4px); }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .term { left: -36px; width: 280px; }
  .house-row { gap: 48px 56px; }
  .objects-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "preview" "thumbs"; gap: 32px; }
  .objects-info { max-width: 560px; }
  .craft-body { padding-left: 0; }
}
@media (max-width: 900px) {
  .house-row { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 88px; padding-bottom: 88px; }
  /* Tablet and phone: text first, the night windows below */
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
  .hero-stage { max-width: 600px; padding-bottom: 88px; }
  .term { left: 28px; width: min(300px, calc(100% - 28px)); }
  .h1, .hero-lead { max-width: none; }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 72px; }
  .header-row { gap: 12px; }
  .logo { letter-spacing: .18em; }
  .logo-name { display: none; }
  .logo-short { display: inline; font-size: 13px; }
  .bt-label, .pb-label { display: none; }
  .tonight-toggle, .palette-btn { padding: 0 12px; }
  .pv-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pv-blocks span { padding: 6px 8px; }
  .pill { padding: 0 16px; }

  .h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-grid { padding-top: calc(var(--header-h) + 40px); gap: 40px; }
  .hero-stage { padding-bottom: 96px; }
  .term { left: 16px; }
  .dash-rail { display: none; }
  .dash .url { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-main { padding: 14px; gap: 12px; }
  .kpis { gap: 6px; }
  .kpi { padding: 8px 9px; }
  .kpi b { font-size: 20px; }
  .kpi span { letter-spacing: .08em; }
  .funnel span { font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-body .eyebrow { margin-bottom: 22px; }
  .hero-lead { font-size: 16px; }

  .caps { padding-top: 64px; }
  .cap { min-height: 0; }
  .caps-row { grid-template-columns: minmax(0, 1fr); }
  .cap:nth-child(5) { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .cap:nth-child(5) .cap-top, .cap:nth-child(5) .cap-text { flex: none; }
  .cap:nth-child(5) .cap-title { margin-top: 14px; }
  .cap:nth-child(5) .cap-stack { margin: 0; padding-top: 16px; border-top: .5px solid var(--line); }
  .house-row { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
  .disciplines { padding: 4px 20px; }
  .objects-row { padding-top: 64px; padding-bottom: 64px; gap: 24px; }
  /* on phones the thumbs are compact switches; the big preview sits above them */
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .thumb { height: auto; min-height: 44px; justify-content: center; padding: 0 12px; }
  .thumb .th-dots, .thumb .th-ui { display: none; }
  .thumb[aria-pressed="true"] { transform: none; }
  .pv-stage { aspect-ratio: 4 / 3.4; }
  .pv { padding: 14px; gap: 10px; }
  .pv-nav i { width: 24px; }
  .pv-crm { gap: 10px; }
  .pv-side { display: none; }
  .pv-kpi { gap: 6px; }
  .pv-kpi span { padding: 7px 8px; }
  .pv-cols { gap: 6px; }
  .pv-cols > div { padding: 6px; gap: 5px; }
  .pv-msg { font-size: 11.5px; max-width: 82%; }
  .pv-banner { padding: 12px 14px; gap: 7px; }
  .pv-grid { grid-auto-rows: auto; }
  .pv-grid > div:nth-child(n+4) { display: none; }
  .pv-grid > div > span { flex: none; height: 64px; }
  .craft { padding-top: 8px; padding-bottom: 8px; }
  .craft-visual { min-height: 600px; }
  .stack { left: 0; top: 40px; bottom: 230px; }
  .stack-3d { width: 190px; height: 190px; }
  .plate { --z: calc((6 - var(--i)) * 22px); padding: 16px; }
  .plate.above { --lift: 60px; }
  .pl-api { font-size: 10px; gap: 8px; }
  .pl-dust i { filter: blur(4px); }
  .code { left: 16px; bottom: 16px; width: calc(100% - 32px); font-size: 10.5px; padding: 14px 16px; }
  .code pre { overflow-x: auto; scrollbar-width: none; }
  .craft-body { padding-top: 56px; padding-bottom: 40px; }
  .layer-list { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: .5px solid var(--line-2); }
  .layer-list button { min-height: 44px; padding: 0 14px 0 0; margin: 0 0 -1px; border-left: 0; border-bottom: 1px solid transparent; }
  .layer-list button[aria-pressed="true"] { padding-left: 0; border-bottom-color: var(--accent); }
  .process > .wrap { padding-top: 72px; padding-bottom: 72px; }
  .steps li > span:nth-child(2) { font-size: 22px; }
  .standard-row { padding-top: 96px; padding-bottom: 72px; }
  .sky-still { background-image: url(../img/trails-960.webp); }
  .screen, .craft-visual { background-image: url(../img/stars-960.webp), linear-gradient(180deg, #172733, var(--navy)); }
  .principles { padding: 4px 20px; }
  .enter { flex-basis: 100%; padding: 24px 20px; }
  .footer-links { margin-left: 0; }
  .hud { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .hud dl { grid-template-columns: 1fr auto; }
  .pv .pv-pier { display: none; }
  .palette { padding-top: 10vh; }
  .palette-foot { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .pill-full { display: none; }
  .pill-short { display: inline; }
  .pv-cols em { white-space: normal; }
  .h2 { font-size: 40px; }
  .header-row { gap: 8px; }
  .hctl { gap: 6px; }
  .tonight-toggle, .palette-btn { padding: 0 10px; }
  .pill { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emerge, .sweep, .pulse, .sdot, .marq-track, .plate.on::after, .hud:not([hidden]), .toast:not([hidden]), .palette-box, .pv-msg.typing b { animation: none !important; }
  .js .chart-line { stroke-dashoffset: 0; animation: none; }
  .js .chart-area { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
