@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #050608;
  --panel: #0f1116;
  --panel-hi: #171a22;
  --panel-soft: #12141a;
  --ink: #f5f5f7;
  --secondary: #a4a8b3;
  --muted: #767b87;
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.22);
  --glow: rgba(72, 146, 232, 0.26);
  --accent: #78b4ff;
  --accent-ink: #050608;
  --font-sans: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: min(1220px, calc(100vw - 48px));
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  color-scheme: dark;
  accent-color: var(--accent);
  scrollbar-color: rgba(255, 255, 255, 0.22) #050608;
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: rgba(120, 180, 255, 0.28); color: #ffffff; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: #ffffff; color: #050608; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 14px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* Bare Cinema Topbar */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 6px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em;
  min-height: 44px; color: var(--ink);
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 7px; display: block; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--secondary);
  padding: 8px 13px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: #ffffff; background: rgba(255, 255, 255, 0.08);
}
.nav-lang {
  border: 1px solid var(--line);
  margin-left: 6px;
}

/* Buttons — Fitts's Law high-contrast primary vs recessed titanium secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: #ffffff; color: #050608; }
.btn--primary:hover { opacity: 0.9; }
.btn--secondary { background: rgba(255, 255, 255, 0.09); color: #ffffff; }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.16); }
.btn--accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent:hover { opacity: 0.92; }

/* Headings — Zero Eyebrows */
h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.032em; text-wrap: balance;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px); font-weight: 600;
  line-height: 1.14; letter-spacing: -0.028em; text-wrap: balance;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
}
.lead {
  margin: 0 0 26px; font-size: 17px; line-height: 1.62;
  color: var(--secondary); max-width: 48ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* =========================================================
   STUDIO HERO — OBSIDIAN HARDWARE THEATRE
   Hick's Law: 3 Large-Icon Flagships + 3 Compact Secondary Chips
   ========================================================= */
.theatre {
  padding: clamp(28px, 4vw, 52px) 0 clamp(64px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.theatre-left .intro {
  margin: 0 0 26px; font-size: 16.5px; color: var(--secondary); line-height: 1.62; max-width: 40ch;
}

/* All 6 Flagship Apps — Equal visual prominence (2-col compact flagship grid above the fold) */
.rail-flagships { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.rail-flag {
  appearance: none; border: 1px solid transparent; width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); color: var(--secondary); font-family: inherit;
  padding: 12px 14px; border-radius: 16px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 76px;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-flag img {
  width: 48px; height: 48px; border-radius: 12px; display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.rail-flag strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; }
.rail-flag small { display: block; font-size: 12.5px; color: var(--secondary); margin-top: 3px; line-height: 1.35; }
.rail-flag .rail-host { display: none; }
.rail-flag:hover { background: var(--panel-hi); transform: translateY(-1px); }
.rail-flag[aria-selected="true"] {
  background: var(--panel-hi); border-color: var(--line-hi); color: #ffffff;
}

/* Tier 2: Compact Secondary Row (Smaller 32px icon pills — progressive disclosure) */
.rail-more-wrap {
  padding-top: 14px; border-top: 1px solid var(--line);
}
.rail-more-title {
  margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.rail-secondary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.rail-mini {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--secondary); font-family: inherit;
  padding: 9px 10px; border-radius: 13px; min-height: 52px;
  display: flex; align-items: center; gap: 9px; text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.rail-mini img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: block; }
.rail-mini span { font-size: 13px; font-weight: 500; line-height: 1.25; }
.rail-mini:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.rail-mini[aria-selected="true"] {
  background: var(--panel-hi); border-color: var(--line-hi); color: #ffffff;
}

/* Right Dual-iPhone Backlit Sliding Stage (Auto-Play Keynote Carousel) */
.stage-wrap {
  position: relative; border-radius: 32px;
  background: radial-gradient(circle at 56% 42%, var(--glow), transparent 64%), var(--panel);
  padding: clamp(24px, 3.6vw, 42px) clamp(24px, 3.6vw, 42px) 22px;
  overflow: hidden;
  transition: background 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage-viewport {
  overflow: hidden; width: 100%; touch-action: pan-y;
}
.stage-track {
  display: flex;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .stage-track { transition: none; }
}
.stage-card {
  flex: 0 0 100%; min-width: 100%;
}
.stage-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.stage-progress-track {
  flex: 1 1 auto; height: 2px; background: rgba(255, 255, 255, 0.12);
  border-radius: 999px; overflow: hidden;
}
.stage-progress-fill {
  height: 100%; width: 0%; background: #ffffff;
  transform-origin: left center;
}
.stage-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.stage-ctrl {
  appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500;
  min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.stage-ctrl:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-hi); }
.stage-counter {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 44px; text-align: center;
}
.dual-phones {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 460px; margin-bottom: 24px;
}
.phone-back {
  position: absolute; width: 208px; aspect-ratio: 9 / 19.5;
  transform: translateX(108px) translateY(18px) scale(0.92);
  border-radius: 34px; padding: 7px; background: #1c1e24;
  opacity: 0.58; filter: blur(0.6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.68);
}
.phone-front {
  position: relative; z-index: 2; width: 240px; aspect-ratio: 9 / 19.5;
  transform: translateX(-34px);
  border-radius: 38px; padding: 8px; background: #262932;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.phone-front img, .phone-back img {
  width: 100%; height: 100%; object-fit: contain; background: #07080a;
  border-radius: 30px; display: block;
}
.phone-back img { border-radius: 27px; }

.stage-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.stage-caption-copy { max-width: 44ch; }
.stage-caption-copy p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.stage-trust { font-size: 13px; color: var(--muted); margin: 0; }

/* =========================================================
   TIER 1 FLAGSHIP SHOWCASES (BeyondRead, Brickium, Pianolio)
   Asymmetric 7:5 Magazine Spread + Full-Bleed Concert Banner
   ========================================================= */
.section-band { padding: 0 0 clamp(44px, 5vw, 68px); }
.spread-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.feature-plate {
  border-radius: var(--radius-lg); padding: clamp(28px, 3.6vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  overflow: hidden;
}
.feature-plate--br {
  background: radial-gradient(circle at 82% 20%, rgba(72, 146, 232, 0.2), transparent 56%), #0e1118;
}
.feature-plate--bk {
  background: radial-gradient(circle at 82% 20%, rgba(240, 182, 54, 0.18), transparent 56%), #14130f;
}
.feature-plate--pl {
  background: radial-gradient(circle at 82% 20%, rgba(114, 142, 240, 0.22), transparent 56%), #0f1119;
}
.feature-plate--tr {
  background: radial-gradient(circle at 82% 20%, rgba(216, 172, 82, 0.20), transparent 56%), #14120d;
}
.feature-plate--np {
  background: radial-gradient(circle at 82% 20%, rgba(92, 174, 112, 0.20), transparent 56%), #0e1410;
}
.feature-plate--ds {
  background: radial-gradient(circle at 82% 20%, rgba(168, 134, 224, 0.20), transparent 56%), #131018;
}
.plate-id { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plate-id img {
  width: 56px; height: 56px; border-radius: 14px; display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.plate-id strong { display: block; font-size: 18px; font-weight: 600; }
.plate-id span { display: block; font-size: 13.5px; color: var(--muted); }
.feature-plate h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 12px; }
.feature-plate p { margin: 0; color: var(--secondary); font-size: 15.5px; max-width: 46ch; }
.plate-visual { display: flex; gap: 16px; align-items: flex-end; }
.plate-visual img {
  width: 47%; max-width: 205px; height: auto; border-radius: 22px; display: block;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

/* Full-Bleed Concert-Hall Darkroom Showcase (Pianolio) */
.darkroom-box {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 76% 48%, rgba(114, 142, 240, 0.22), transparent 58%), #0f1119;
  padding: clamp(32px, 4.5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
}
.darkroom-box p { margin: 0 0 24px; color: var(--secondary); font-size: 16.5px; max-width: 46ch; }
.darkroom-shots { display: flex; gap: 16px; align-items: center; }
.darkroom-shots img {
  width: 182px; height: auto; border-radius: 24px; display: block;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
}

/* =========================================================
   PSYCHOLOGY HOOKS BAND (Reciprocity + Curiosity Gap + Foot-in-the-Door)
   ========================================================= */
.hooks-band {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 6.5vw, 84px) 0;
}
.hooks-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr 0.85fr; gap: 22px;
}
.hook-panel {
  border-radius: var(--radius-lg); background: var(--panel);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.hook-panel h3 { font-size: 21px; margin: 0 0 8px; }
.hook-panel p { margin: 0; font-size: 15px; color: var(--secondary); line-height: 1.6; }

/* Interactive BeyondRead in-page highlight hook */
.quote-demo {
  background: #141720; border-radius: var(--radius-md); padding: 18px 20px;
  font-size: 15.5px; line-height: 1.7; color: #d7dbe4;
}
.quote-tap {
  appearance: none; border: none; font: inherit; color: #ffffff; cursor: pointer;
  background: rgba(120, 180, 255, 0.24); border-bottom: 1.5px solid #78b4ff;
  border-radius: 4px; padding: 1px 5px; transition: background 0.18s ease;
}
.quote-tap:hover, .quote-tap[aria-expanded="true"] {
  background: rgba(120, 180, 255, 0.38);
}
.quote-popover {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(120, 180, 255, 0.1); border: 1px solid rgba(120, 180, 255, 0.26);
  font-size: 14px; color: #e8eef8; line-height: 1.6;
}
.quote-popover[hidden] { display: none; }
.quote-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: block; }

/* Live Moon Day countdown hook */
.moon-countdown {
  background: rgba(216, 172, 82, 0.08); border: 1px solid rgba(216, 172, 82, 0.28);
  border-radius: var(--radius-md); padding: 18px 20px;
  font-variant-numeric: tabular-nums;
}
.moon-countdown strong { display: block; font-size: 22px; color: #f3d58d; margin-bottom: 4px; letter-spacing: -0.02em; }
.moon-countdown span { font-size: 13.5px; color: var(--secondary); }

/* Pianolio familiar pieces hook */
.piece-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.piece-chip {
  font-size: 13.5px; color: var(--ink); background: var(--panel-hi);
  padding: 7px 13px; border-radius: 999px;
}

/* =========================================================
   TIER 2 STUDIO COLLECTION (Smaller 40px icons: Tristhana, NanoPlant, DearlyStory)
   ========================================================= */
.collection-band {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 6.5vw, 84px) 0;
}
.collection-head { margin-bottom: 32px; max-width: 52ch; }
.collection-head p { margin: 0; color: var(--secondary); font-size: 16px; }
.collection-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.collection-item {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.collection-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.collection-id { display: flex; align-items: center; gap: 12px; }
.collection-id img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.collection-id h3 { margin: 0; font-size: 18px; }
.collection-domain { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.collection-item p { margin: 0; font-size: 15px; color: var(--secondary); line-height: 1.6; }
.collection-links { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.collection-links a {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.collection-links a:hover { border-bottom-color: #ffffff; color: #ffffff; }
.collection-links a.subtle { color: var(--secondary); border-bottom-color: transparent; }
.collection-links a.subtle:hover { color: #ffffff; }

/* =========================================================
   TIER 3 QUIET ARCHIVE (Subtle small 28px icons: 五行食记, 屏分)
   ========================================================= */
.archive-band {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.archive-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px;
}
.archive-label { font-size: 14px; color: var(--muted); margin: 0; }
.archive-list { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.archive-chip {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 6px 12px 6px 6px; border-radius: 12px; min-height: 44px;
  color: var(--secondary); transition: background 0.18s ease, color 0.18s ease;
}
.archive-chip:hover { background: var(--panel); color: #ffffff; }
.archive-chip img { width: 28px; height: 28px; border-radius: 7px; display: block; opacity: 0.9; }
.archive-chip strong { font-size: 14px; font-weight: 500; color: var(--ink); }
.archive-chip span { font-size: 13px; color: var(--muted); }

/* =========================================================
   DEDICATED SUB-PAGES (/tristhana/, /pianolio/, /nanoplant/)
   ========================================================= */
.sub-hero {
  padding: clamp(44px, 6vw, 76px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.sub-hero--tr { background: radial-gradient(circle at 75% 32%, rgba(216, 172, 82, 0.18), transparent 58%), var(--bg); }
.sub-hero--pl { background: radial-gradient(circle at 75% 32%, rgba(114, 142, 240, 0.2), transparent 58%), var(--bg); }
.sub-hero--np { background: radial-gradient(circle at 75% 32%, rgba(92, 174, 112, 0.2), transparent 58%), var(--bg); }

.product-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px); align-items: center;
}
.product-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-lockup img { width: 52px; height: 52px; border-radius: 13px; display: block; }
.product-lockup span { font-size: 15px; color: var(--secondary); font-weight: 500; }
.product-facts {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.product-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start;
}
.product-gallery .shot-slot {
  border-radius: 22px; overflow: hidden; padding: 5px; background: #1e2129;
  aspect-ratio: 9 / 19.5;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.65);
}
.product-gallery .shot-slot img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; background: #07080a;
  border-radius: 17px; display: block;
}

.band { padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.band--panel { background: #0a0c10; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-head p { max-width: 52ch; color: var(--secondary); margin: 0; }

.pillar-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.pillar {
  padding: 24px 0 0; border-top: 1px solid var(--line);
}
.pillar p { margin: 0; color: var(--secondary); font-size: 15px; }

/* Interactive Moon Days Utility (Tristhana) */
.tool-box {
  background: var(--panel); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px;
}
.tool-next {
  padding: 18px 22px; border-radius: var(--radius-md); background: var(--panel-hi);
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
}
.tool-next strong { font-size: 18px; color: #ffffff; }
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
  font-variant-numeric: tabular-nums;
}
.moon-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px;
  display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, 0.02);
}
.moon-item.is-past { opacity: 0.45; }
.moon-item.is-next { border-color: #d8ac52; background: rgba(216, 172, 82, 0.08); }
.moon-badge { font-family: var(--font-mono); font-size: 11px; color: #e2be70; font-weight: 500; }

/* Modern Web Guidance: Responsive Table with @container */
.table-wrapper {
  overflow: auto; max-inline-size: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--panel); container-type: inline-size;
}
.table-wrapper table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; text-align: left;
  font-variant-numeric: tabular-nums;
}
.table-wrapper caption {
  text-align: left; padding: 16px 18px; font-weight: 500; font-size: 14px;
  color: var(--secondary); border-bottom: 1px solid var(--line);
}
.table-wrapper thead {
  position: sticky; inset-block-start: 0; z-index: 1; background: var(--panel-hi);
}
.table-wrapper th, .table-wrapper td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.table-wrapper tbody tr:last-child th, .table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody th {
  position: sticky; inset-inline-start: 0; background: var(--panel); font-weight: 600; color: #ffffff;
}
.table-wrapper td { color: var(--secondary); }

@container (width < 600px) {
  .table-wrapper table,
  .table-wrapper caption,
  .table-wrapper thead,
  .table-wrapper tbody,
  .table-wrapper tr,
  .table-wrapper th,
  .table-wrapper td { display: block; }
  .table-wrapper thead { display: none; }
  .table-wrapper tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-wrapper tbody th {
    position: sticky; inset-block-start: 0; z-index: 2;
    background: var(--panel-hi); border-bottom: 1px solid var(--line);
  }
  .table-wrapper td { border-bottom: none; padding: 8px 16px; }
  .table-wrapper td::before {
    content: attr(data-label) ": "; font-weight: 600; color: var(--ink);
  }
}

/* Modern Web Guidance: Accessible Accordion with ::details-content */
.accordion { display: grid; gap: 10px; max-width: 74ch; }
.accordion details {
  background: var(--panel); border-radius: var(--radius-sm); padding: 0 20px;
}
.accordion summary {
  list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 0; font-weight: 500; cursor: pointer; min-height: 52px; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ""; inline-size: 9px; block-size: 9px; flex-shrink: 0;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}
.accordion details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: transform 0.2s ease; }
}
.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.accordion details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion details::details-content {
    transition: block-size 0.25s ease, content-visibility 0.25s ease, display 0.25s ease;
    transition-behavior: allow-discrete;
  }
}
.accordion .faq-body { padding: 0 0 18px 21px; color: var(--secondary); font-size: 15px; }
.accordion .faq-body p { margin: 0; }

/* Footer */
.site-footer {
  padding: 44px 0 60px; font-size: 13.5px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-col h3 { font-size: 13px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-col a { text-decoration: none; color: var(--secondary); display: inline-flex; align-items: center; min-height: 36px; }
.footer-col a:hover { color: #ffffff; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 22px; font-size: 13px;
}

@media (max-width: 980px) {
  .theatre, .spread-grid, .darkroom-box, .hooks-grid, .collection-grid, .product-hero, .pillar-grid { grid-template-columns: 1fr; }
  .dual-phones { min-height: 370px; }
  .phone-front { width: 205px; transform: translateX(-24px); }
  .phone-back { width: 178px; transform: translateX(74px) translateY(14px) scale(0.92); }
  .darkroom-shots img { width: 46%; max-width: 182px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rail-secondary { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
