/* LAZY ZAMA — Bangkok After-Hours
   Dark, cinematic, patient. */

:root {
  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --fg: #f2f2f2;
  --fg-dim: rgba(242, 242, 242, 0.62);
  --fg-mute: rgba(242, 242, 242, 0.38);
  --fg-ghost: rgba(242, 242, 242, 0.14);
  --accent: #f25a00;
  --rule: rgba(242, 242, 242, 0.1);
  --grain-opacity: 0.4;

  --f-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-thai: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Global grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0.14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: var(--grain-opacity);
  mix-blend-mode: screen;
  z-index: 9999;
}


.muted {
  color: var(--fg-mute);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }

/* ── Top Bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px;
  transition: background 0.6s ease, backdrop-filter 0.6s ease, border-color 0.6s;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--rule);
}
.tb-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
}
.tb-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.tb-nav a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s;
}
.tb-nav a:hover { color: var(--fg); }
.tb-right { justify-self: end; }

.onair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.onair-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── Side Rail ──────────────────────────────────────────────────────── */
.rail {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  transition: color 0.4s;
}
.rail-n {
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.rail-bar {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--fg-ghost);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.4s;
}
.rail-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s;
  text-transform: uppercase;
}
.rail-item.on { color: var(--fg); }
.rail-item.on .rail-n { opacity: 1; }
.rail-item.on .rail-bar { width: 44px; background: var(--accent); }
.rail-item.on .rail-label { opacity: 1; transform: translateX(0); }
.rail-item:hover { color: var(--fg); }
.rail-item:hover .rail-bar { background: var(--fg); }

/* ── Reveal ─────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal="in"] {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section header ─────────────────────────────────────────────────── */
.sect-head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto 80px;
  max-width: 1280px;
  padding: 0 48px;
}
.sect-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.sect-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sect-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}
.sect-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 80px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 62%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  width: 100%;
  max-width: 1280px;
  min-height: calc(100vh - 200px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  z-index: 1;
}

.hero-meta { display: flex; flex-direction: column; gap: 6px; }
.hero-meta.top-left { grid-column: 1; grid-row: 1; align-items: flex-start; }
.hero-meta.top-right { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; }
.hero-meta.bot-left { grid-column: 1; grid-row: 3; align-items: flex-start; }
.hero-meta.bot-right { grid-column: 3; grid-row: 3; align-items: flex-end; text-align: right; }

.tick {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.clock {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-dim);
}
.clock .colon { opacity: 0.5; animation: blink 1s steps(2) infinite; }
.clock .sec { color: var(--accent); }
@keyframes blink { 50% { opacity: 0.2; } }

.scroll-line {
  position: relative;
  width: 1px;
  height: 48px;
  background: var(--fg-ghost);
  overflow: hidden;
}
.scroll-line i {
  display: block;
  position: absolute;
  top: -16px; left: 0;
  width: 1px;
  height: 16px;
  background: var(--accent);
  animation: scroll-drop 2.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { top: -16px; }
  100% { top: 48px; }
}

.hero-center {
  grid-column: 2; grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  margin-bottom: 28px;
}

.wordmark {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.wordmark-img {
  display: block;
  width: clamp(260px, 42vw, 560px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.8));
}

.hero-sub {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.hero-center > svg {
  margin: 40px auto 36px;
  max-width: 520px;
  opacity: 0.85;
}

.hero-tag {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.01em;
  color: var(--fg);
  font-style: italic;
}
.quote-mark {
  color: var(--accent);
  font-style: normal;
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 6px;
}
.quote-mark.close { margin: 0 0 0 6px; }

.hero-th {
  margin-top: 14px;
  font-family: var(--f-thai);
  font-size: 15px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-radius: 999px;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--fg);
  transform: translateY(-1px);
}
.btn-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #000;
}
.btn-ghost {
  color: var(--fg-dim);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

/* ── Featured ───────────────────────────────────────────────────────── */
.featured {
  padding: 140px 0;
  background: var(--bg);
}

.player {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
  align-items: start;
}

.player-art {
  position: relative;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-2);
}
.player-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 8s ease-out, filter 2s;
}
.player:hover .player-art img {
  transform: scale(1.04);
  filter: saturate(0.95) contrast(1.08);
}
.player-art-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(45deg, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.player-art-meta {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.player-body { padding-top: 8px; }
.player-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.player-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}
.player-desc em {
  color: var(--fg);
  font-style: italic;
}

.now-playing {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.np-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.np-track {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.np-n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}
.np-artist {
  font-weight: 500;
  color: var(--fg);
}
.np-dash { color: var(--fg-mute); }
.np-title {
  color: var(--fg-dim);
  font-style: italic;
}

.transport {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--fg-ghost);
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.play-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.transport-time {
  font-family: var(--f-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.transport-time.cur { color: var(--accent); }
.transport-wave {
  flex: 1;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.tl-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  color: var(--fg-dim);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.3s;
}
.tl-toggle:hover { color: var(--fg); }
.tl-caret {
  display: inline-block;
  transition: transform 0.4s;
}
.tl-caret.open { transform: rotate(180deg); color: var(--accent); }

.tracklist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-top: 1px solid transparent;
}
.tracklist.open {
  max-height: 800px;
  border-top-color: var(--rule);
}
.tl-inner {
  padding: 8px 0 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 32px 1fr 2fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  transition: color 0.3s, background 0.3s, padding 0.3s;
  color: var(--fg-dim);
  cursor: default;
}
.tl-row:hover {
  color: var(--fg);
  padding-left: 12px;
}
.tl-row.current {
  color: var(--fg);
}
.tl-row.current .tl-n {
  color: var(--accent);
}
.tl-n {
  font-family: var(--f-mono);
  color: var(--fg-mute);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.tl-artist {
  font-weight: 500;
}
.tl-title {
  font-style: italic;
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-len {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute);
}

/* ── Philosophy ─────────────────────────────────────────────────────── */
.philosophy {
  padding: 200px 48px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  position: relative;
}
.phil-mark {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  align-self: start;
  padding-top: 24px;
}
.phil-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.phil-lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
}
.phil-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.phil-body-text {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--fg-dim);
  max-width: 600px;
  font-style: italic;
}
.phil-th {
  font-family: var(--f-thai);
  font-size: 18px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ── Interlude ──────────────────────────────────────────────────────── */
.interlude {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.interlude-bg {
  position: absolute;
  inset: -10% 0;
}
.interlude-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.2) brightness(0.65);
  transform: translate3d(0, calc(var(--p, 0) * 8%), 0) scale(1.08);
  transition: transform 0.2s linear;
}
.interlude-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.75) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.7));
}
.interlude-copy {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.interlude-corner.tl { grid-column: 1; grid-row: 1; }
.interlude-corner.tr { grid-column: 2; grid-row: 1; text-align: right; }
.interlude-corner.bl { grid-column: 1; grid-row: 3; }
.interlude-corner.br { grid-column: 2; grid-row: 3; text-align: right; }
.interlude-corner { display: flex; flex-direction: column; gap: 4px; }

.interlude-headline {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  gap: 4px;
}
.il-accent { color: var(--accent); font-weight: 400; }

/* ── Archive ────────────────────────────────────────────────────────── */
.archive { padding: 140px 0; }

.arc-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.arc-card {
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.arc-card.dimmed { opacity: 0.4; }
.arc-card.hovered { transform: translateY(-4px); }

.arc-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-2);
  border-radius: 2px;
}
.arc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.85);
  transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s;
}
.arc-card.hovered .arc-media img {
  transform: scale(1.08);
  filter: saturate(0.95) brightness(1);
}
.arc-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6));
}
.arc-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  border: 1px solid var(--fg-ghost);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
}
.arc-card.hovered .arc-play {
  opacity: 1;
  transform: translateY(0);
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.arc-meta { display: flex; flex-direction: column; gap: 8px; }
.arc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.arc-id { color: var(--accent); }
.arc-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.arc-note {
  font-size: 13px;
  color: var(--fg-dim);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.45;
}

/* ── Booking ────────────────────────────────────────────────────────── */
.booking {
  padding: 140px 0 160px;
  background:
    linear-gradient(180deg, transparent, rgba(242, 90, 0, 0.015) 40%, transparent);
}

.book-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.book-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.book-lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.book-body {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  color: var(--fg-dim);
  font-style: italic;
  max-width: 500px;
}
.book-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition: all 0.4s;
  width: fit-content;
}
.book-cta:hover {
  color: var(--accent);
  padding-left: 12px;
}
.book-cta .muted {
  font-size: 16px;
  color: var(--accent);
}

.book-kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.book-kv > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.book-kv > div > span:first-child {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}
.book-kv > div > span:last-child {
  font-size: 14px;
  color: var(--fg);
}

.book-list {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}
.book-list-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.book-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  color: var(--fg-dim);
  font-family: var(--f-display);
  font-size: 20px;
  text-align: left;
  cursor: default;
  transition: color 0.4s, padding 0.4s;
}
.book-item:last-child { border-bottom: 1px solid var(--rule); }
.book-item.on {
  color: var(--fg);
  padding-left: 8px;
}
.book-item-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.book-item.on .book-item-n { color: var(--accent); }
.book-item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-ghost);
  transition: background 0.3s, transform 0.3s;
}
.book-item.on .book-item-dot {
  background: var(--accent);
  transform: scale(1.6);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  padding: 80px 48px 40px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}
.f-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--fg-dim);
  transition: color 0.3s, padding 0.3s;
}
.f-link:first-child { border-top: 1px solid var(--rule); }
.f-link:hover {
  color: var(--fg);
  padding-left: 8px;
}
.f-arrow {
  font-family: var(--f-mono);
  color: var(--fg-mute);
  transition: color 0.3s, transform 0.3s;
}
.f-link:hover .f-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

/* ── Direction variants ─────────────────────────────────────────────── */
.page.dir-clinical .hero-tag { font-style: normal; }
.page.dir-clinical .phil-lead,
.page.dir-clinical .book-lead,
.page.dir-clinical .book-body,
.page.dir-clinical .phil-body-text,
.page.dir-clinical .interlude-headline {
  font-style: normal;
  font-weight: 400;
}
.page.dir-clinical .phil-accent { font-style: normal; }
.page.dir-clinical { --grain-opacity: 0.2; }
.page.dir-clinical .player-art img,
.page.dir-clinical .arc-media img,
.page.dir-clinical .interlude-bg img {
  filter: saturate(0.5) contrast(1.08);
}

.page.dir-archive .hero-center,
.page.dir-archive .player-body,
.page.dir-archive .phil-body,
.page.dir-archive .book-copy {
  font-family: var(--f-mono);
}
.page.dir-archive .phil-lead,
.page.dir-archive .book-lead,
.page.dir-archive .player-title,
.page.dir-archive .arc-title,
.page.dir-archive .interlude-headline {
  font-family: var(--f-mono);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.page.dir-archive .hero-tag { font-family: var(--f-mono); font-style: normal; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rail { display: none; }
  .tb-nav { display: none; }
  .player { grid-template-columns: 1fr; gap: 32px; }
  .player-art { max-width: 420px; }
  .arc-grid { grid-template-columns: repeat(2, 1fr); }
  .book-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { align-items: flex-start; text-align: left; }
  .philosophy { grid-template-columns: 1fr; gap: 16px; padding: 120px 32px; }
  .hero { padding: 100px 32px 60px; }
  .sect-head, .arc-grid, .player, .book-layout { padding-left: 32px; padding-right: 32px; }
  .book-kv { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .hero-meta.top-left, .hero-meta.bot-left,
  .hero-meta.top-right, .hero-meta.bot-right { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-center { grid-column: 1; grid-row: 1; }
  .arc-grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px 20px; grid-template-columns: 1fr auto; }
  .tb-right { display: none; }
  .sect-head { grid-template-columns: 1fr; gap: 8px; }
  .sect-rule { display: none; }
  .interlude-copy { padding: 24px; }
  .transport { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .transport-wave { grid-column: 1 / -1; grid-row: 2; }
  .transport-time.tot { display: none; }
}
