/* blogs page styles */
/* ── Font System (Project Core Fonts Only) ── */
@font-face {
  font-family: 'Gotham';
  src: local('Gotham'), local('Gotham-Book'), local('Gotham Book');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Medium'), local('Gotham Medium');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Bold'), local('Gotham Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Black'), local('Gotham Black');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070709;
  --card-bg: #0e0e12;
  --card-hover: #14141a;
  --card-alt: #121217;
  --ink: #f5f5f7;
  --ink-mid: #9898a6;
  --ink-dim: #545462;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-m: rgba(255, 255, 255, 0.15);
  --rule-heavy: rgba(255, 255, 255, 0.28);
  --cr: #c8102e;
  --cr-glow: rgba(200, 16, 46, 0.38);
  --cr-soft: rgba(200, 16, 46, 0.09);
  --cr-bright: #ff1e42;
  --sp: cubic-bezier(0.16, 1, 0.3, 1);
  --font-primary: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

[data-theme="light"],
body[data-theme="light"],
html[data-theme="light"],
:root[data-theme="light"] {
  --bg: #f5f5f8;
  --card-bg: #ffffff;
  --card-hover: #ececf2;
  --card-alt: #f0f0f6;
  --ink: #0c0c0f;
  --ink-mid: #4d4d5a;
  --ink-dim: #848494;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-m: rgba(0, 0, 0, 0.16);
  --rule-heavy: rgba(0, 0, 0, 0.28);
  --cr: #c8102e;
  --cr-glow: rgba(200, 16, 46, 0.22);
  --cr-soft: rgba(200, 16, 46, 0.06);
  --cr-bright: #d91434;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--sp), color 0.4s var(--sp);
  position: relative;
}

/* ── Interactive Custom Cursor ── */
.c-dot {
  width: 6px;
  height: 6px;
  background: var(--cr);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.c-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--cr);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s var(--sp), height 0.3s var(--sp), border-color 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   1. HERO SECTION: 100VH IMMERSIVE ARCHITECTURAL CANVAS
   (Pure Centered Perspective · No Top Clutter · Sophisticated Dispatches · Ending Stripe at Viewport Base)
   ═══════════════════════════════════════════════════════════ */
#perspectives-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 48%, rgba(200, 16, 46, 0.08) 0%, transparent 72%),
    var(--bg);
}

[data-theme="light"] #perspectives-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% 48%, rgba(200, 16, 46, 0.035) 0%, transparent 70%),
    var(--bg);
}

/* Subtle Architectural Coordinate Grid */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 80px 80px;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 80%);
}

[data-theme="light"] .hero-grid-overlay {
  opacity: 0.12;
}

/* Minimalist Central Stage (Mathematically Centered in 100vh Viewport) */
.hero-minimal-canvas {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1420px;
  margin: auto 0;
  padding: clamp(28px, 4.2vh, 56px) clamp(24px, 4.5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Monumental Sculptural Display Typography (Refined Scale) */
.hm-monument-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(20px, 2.8vh, 32px);
  user-select: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  transition: letter-spacing 0.5s var(--sp);
}

.hm-title-word {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s;
}

[data-theme="light"] .hm-title-word {
  background: linear-gradient(180deg, #0a0a0d 30%, #303038 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hm-period {
  color: var(--cr);
  -webkit-text-fill-color: var(--cr);
  text-shadow: 0 0 24px var(--cr-glow);
}

/* ── Critical Dispatch Component: Left Label + Right Rotating Blog Topics ── */
.critical-dispatch-bar {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule-heavy);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin: 0 0 clamp(24px, 3.4vh, 38px);
  max-width: 820px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.35s var(--sp), box-shadow 0.35s var(--sp), transform 0.35s var(--sp), background 0.3s;
}

[data-theme="light"] .critical-dispatch-bar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.critical-dispatch-bar:hover {
  border-color: var(--cr);
  box-shadow: 0 12px 36px rgba(200, 16, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .critical-dispatch-bar:hover {
  border-color: var(--cr);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.cdb-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-bright);
  padding-right: 18px;
  border-right: 1px solid var(--rule-heavy);
  white-space: nowrap;
}

.cdb-indicator {
  display: none !important;
}

.cdb-arrow {
  color: var(--ink-dim);
  font-size: 11px;
  transition: transform 0.3s var(--sp), color 0.3s;
}

.critical-dispatch-bar:hover .cdb-arrow {
  color: var(--cr-bright);
  transform: translateX(3px);
}

.cdb-right {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.cdb-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cdb-word {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;
}

.cdb-word.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.cdb-word.exit {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease-in, transform 0.2s ease-in, visibility 0.2s;
}

.cdb-num {
  color: var(--cr-bright);
  font-weight: 800;
  margin-right: 9px;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

.cdb-topic-name {
  font-weight: 700;
  color: var(--ink);
  transition: color 0.25s;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.critical-dispatch-bar:hover .cdb-topic-name,
.cdb-word:hover .cdb-topic-name {
  color: var(--cr-bright);
}

[data-theme="light"] .cdb-left {
  color: var(--cr);
  border-right-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .cdb-arrow {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .cdb-word {
  color: #0c0c0f;
}

[data-theme="light"] .cdb-topic-name {
  color: #0c0c0f;
}

[data-theme="light"] .cdb-num {
  color: var(--cr);
}

[data-theme="light"] .critical-dispatch-bar:hover .cdb-topic-name,
[data-theme="light"] .cdb-word:hover .cdb-topic-name {
  color: var(--cr);
}

.cdb-cat-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cr);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
}

[data-theme="light"] .cdb-cat-tag {
  background: rgba(200, 16, 46, 0.06);
  border-color: rgba(200, 16, 46, 0.18);
  color: var(--cr);
}

.critical-dispatch-bar:hover .cdb-cat-tag {
  background: rgba(200, 16, 46, 0.14);
  border-color: rgba(200, 16, 46, 0.35);
}

/* Minimal Sharp Manifesto Lead */
.hm-manifesto-lead {
  max-width: 760px;
  font-size: clamp(15.5px, 1.25vw, 19.5px);
  color: var(--ink-mid);
  line-height: 1.74;
  font-weight: 400;
  margin: 0 auto;
  letter-spacing: -0.012em;
}

/* Architectural Scroll Prompt (Pinned at Bottom Center of 100vh Hero) */
.hm-scroll-axis {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
  z-index: 10;
  cursor: pointer;
}

.hm-scroll-axis:hover {
  color: var(--cr-bright);
  transform: translateX(-50%) translateY(2px);
}

.hsa-line {
  width: 1px;
  height: 28px;
  background: var(--rule-heavy);
  position: relative;
  overflow: hidden;
}

.hsa-drop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, transparent, var(--cr-bright));
  animation: scrollDrop 2.2s infinite ease-in-out;
}

@keyframes scrollDrop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: translateY(280%);
    opacity: 0;
  }
}

/* Corner Crosshairs for Cards */
.corner-crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.featured-monograph-spread:hover .corner-crosshair,
.codex-card:hover .corner-crosshair,
.reader-modal-stage:hover .corner-crosshair {
  color: var(--cr);
}

.cc-tl {
  top: 10px;
  left: 10px;
}

.cc-tr {
  top: 10px;
  right: 10px;
}

.cc-bl {
  bottom: 10px;
  left: 10px;
}

.cc-br {
  bottom: 10px;
  right: 10px;
}

/* ═══════════════════════════════════════════════════════════
   COMMAND DOCK: WIDE SEARCH AT TOP & CENTERED FILTERS BELOW
   (Generous Breathing Spacing · Dual-End Highlight On Hover · Pure Centered Filters)
   ═══════════════════════════════════════════════════════════ */
#command-dock-wrap {
  position: sticky;
  top: 0;
  z-index: 850;
  background: rgba(7, 7, 9, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule-m);
  padding: clamp(38px, 4.8vh, 56px) 0;
  transition: padding 0.4s var(--sp), background 0.4s var(--sp), border-color 0.4s var(--sp), box-shadow 0.4s var(--sp);
}

[data-theme="light"] #command-dock-wrap {
  background: rgba(245, 245, 248, 0.95);
  border-bottom-color: var(--rule-m);
}

/* Kinetic Scroll Docked State (Clean White Rule Line) */
#command-dock-wrap.is-docked {
  padding: clamp(16px, 2.2vh, 24px) 0;
  background: rgba(7, 7, 9, 0.96);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  border-bottom-color: var(--rule-heavy);
}

[data-theme="light"] #command-dock-wrap.is-docked {
  background: rgba(245, 245, 248, 0.97);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--rule-m);
}

.command-dock-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 3.4vh, 40px);
  transition: gap 0.4s var(--sp);
}

#command-dock-wrap.is-docked .command-dock-container {
  gap: 14px;
}

/* ── Wide Top Search Bar (Left to Right, Full Width) ── */
.cmd-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.35s var(--sp);
}

/* Search Icon on the LEFT side */
/* ── Search icon — absolute, inside the pill ── */
.csb-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  color: var(--ink-dim);
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s var(--sp);
}

.cmd-search-box:hover .csb-icon {
  color: var(--ink);
}

.cmd-search-box:focus-within .csb-icon {
  color: var(--cr-bright);
}

.csb-input {
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--rule-m);
  border-radius: 999px;
  padding: 0 84px 0 56px;
  font-family: var(--font-secondary);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: all 0.35s var(--sp);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hover State on Input: subtle dual-end highlight */
.cmd-search-box:hover .csb-input {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.06), inset 0 1px 4px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .cmd-search-box:hover .csb-input {
  border-color: rgba(0, 0, 0, 0.32);
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

#command-dock-wrap.is-docked .csb-input {
  height: 48px;
  font-size: 13px;
}

[data-theme="light"] .csb-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--rule-m);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.csb-input:focus {
  border-color: var(--cr);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 30px var(--cr-soft), inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .csb-input:focus {
  background: #fff;
  border-color: var(--cr);
}

.csb-actions-right {
  position: absolute;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── RIGHT SIDE SHORTCUT HIGHLIGHT ON HOVER / FOCUS ── */
/* ── Shortcut badge — absolute, inside pill on the right ── */
.csb-shortcut {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
  user-select: none;
  transition: all 0.3s var(--sp);
}

.cmd-search-box:hover .csb-shortcut {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.cmd-search-box:focus-within .csb-shortcut {
  color: var(--cr-bright);
  border-color: var(--cr);
  background: var(--cr-soft);
}

[data-theme="light"] .cmd-search-box:hover .csb-shortcut {
  color: #000;
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.25);
}

.csb-clear {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 14px;
  display: none;
  padding: 4px;
  z-index: 2;
  transition: color 0.2s;
}

.csb-clear:hover {
  color: var(--cr-bright);
}

.csb-clear.active {
  display: block;
}

/* ── Centered Filter Section (Pure Centered Filter Vessel with Generous Spacing) ── */
.cmd-filter-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(6px, 1vh, 12px) 0;
}

.cmd-category-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--rule-m);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cmd-category-group::-webkit-scrollbar {
  display: none;
}

[data-theme="light"] .cmd-category-group {
  background: rgba(0, 0, 0, 0.025);
  border-color: var(--rule-m);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cmd-cat-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-mid);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.25s var(--sp);
}

.cmd-cat-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.065);
}

[data-theme="light"] .cmd-cat-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cmd-cat-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .cmd-cat-btn.active {
  background: var(--ink);
  color: #ffffff;
}

.cmd-cat-btn .ccb-count {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════
   4. FEATURED MASTER MONOGRAPH (Asymmetric Spread № 01)
   ═══════════════════════════════════════════════════════════ */
#featured-monograph {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vh, 64px) clamp(24px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
  box-sizing: border-box;
  position: relative;
}

/* ── Editorial Header: Left Title, One-line Description & Right Corner Counter ── */
.featured-section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(24px, 3.5vh, 40px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.fsh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fsh-sec-title {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

.fsh-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.fsh-desc-left {
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.01em;
}

.fsh-counter-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.fsh-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--rule-m);
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.3s var(--sp), border-color 0.3s var(--sp), opacity 0.2s var(--sp), transform 0.2s var(--sp);
}

[data-theme="light"] .fsh-counter {
  background: rgba(0, 0, 0, 0.035);
  border-color: var(--rule-m);
}

@media (max-width: 900px) {
  .fsh-meta-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ── Carousel Viewport (Clean Palette) ── */
.latest-blogs-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0 48px 0;
  margin: -24px 0 -48px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
}

.lbc-track {
  display: flex;
  width: 100%;
  align-items: stretch;
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.lbc-slide {
  width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}

.lbc-slide.active {
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}

/* ── Monograph Spread Card: Left Image, Right Content (Clean Luxury Palette) ── */
.featured-monograph-spread {
  background: var(--card-bg);
  border: 1px solid var(--rule-m);
  border-radius: clamp(24px, 3vw, 36px);
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: clamp(36px, 5vw, 68px);
  height: clamp(480px, 54vh, 560px);
  align-items: stretch;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: border-color 0.4s var(--sp), box-shadow 0.4s var(--sp), transform 0.4s var(--sp);
}

[data-theme="light"] .featured-monograph-spread {
  background: var(--card-bg);
  border-color: var(--rule-m);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03), 0 10px 30px rgba(0, 0, 0, 0.04);
}

.featured-monograph-spread:hover {
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.08), 0 16px 44px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .featured-monograph-spread:hover {
  border-color: rgba(200, 16, 46, 0.28);
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.06), 0 14px 36px rgba(0, 0, 0, 0.05);
}

/* Article without a cover image: no image column, the text spans the card */
.featured-monograph-spread.is-text-only {
  grid-template-columns: 1fr;
}

/* Right-side Narrative Content */
.fms-narrative {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 4px 0;
  transform: none;
  opacity: 1;
}

.lbc-slide.active .fms-narrative {
  transform: none;
  opacity: 1;
}

.fms-text-block {
  display: flex;
  flex-direction: column;
}

/* 1. TOP SECTION SPACING (Single Red Tag Only) */
.fms-top-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr);
  margin: 0;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.fms-cat-name {
  color: var(--cr);
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* 2. HEADER (TITLE) - 5 to 8 Words, Structured & Balanced */
.fms-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 32ch;
}

/* 3. DESCRIPTION (Clean 1-2 Lines) */
.fms-excerpt {
  font-size: clamp(13px, 0.95vw, 15px);
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 48ch;
}

/* Footer Meta (Clean Aligned Launch Button Pinned at Bottom) */
.fms-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: auto;
  width: 100%;
}

.fms-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--cr);
  border: 1px solid var(--cr);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  transition: all 0.35s var(--sp);
  text-decoration: none;
}

.flb-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--sp);
}

.featured-monograph-spread:hover .fms-launch-btn {
  background: var(--cr-bright);
  border-color: var(--cr-bright);
  color: #ffffff;
  box-shadow: 0 0 24px var(--cr-soft), 0 6px 18px rgba(200, 16, 46, 0.45);
  transform: translateY(-2px);
}

.featured-monograph-spread:hover .flb-icon {
  transform: translateX(3px);
}

.fms-blueprint-visual {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: clamp(18px, 2vw, 24px);
  background: var(--card-alt);
  border: 1px dashed var(--rule-heavy);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: none;
  opacity: 1;
  transition: border-color 0.4s var(--sp),
    background 0.4s var(--sp);
}

[data-theme="light"] .fms-blueprint-visual {
  background: var(--card-alt);
  border-color: var(--rule-m);
}

.lbc-slide.active .fms-blueprint-visual {
  transform: none;
  opacity: 1;
}

.featured-monograph-spread:hover .fms-blueprint-visual {
  border-color: var(--rule-heavy);
  background: rgba(255, 255, 255, 0.02);
}

.asset-blueprint-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  transition: transform 0.4s var(--sp), color 0.35s var(--sp), filter 0.35s var(--sp);
}

.featured-monograph-spread:hover .asset-blueprint-icon {
  transform: scale(1.15);
  color: var(--ink);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
}

.abi-svg {
  width: 92px;
  height: 92px;
  stroke: currentColor;
  transition: stroke 0.35s var(--sp);
}

/* ── Carousel Pagination Dots (Bottom) ── */
.lbc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(22px, 3vh, 34px);
  width: 100%;
  user-select: none;
}

.lbc-dot {
  border: none;
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-dim);
  opacity: 0.3;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    background-color 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.lbc-dot:hover {
  opacity: 0.75;
  transform: scale(1.2);
}

.lbc-dot.active {
  width: 32px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 1;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  transform: scale(1);
}

[data-theme="light"] .lbc-dot {
  background: rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .lbc-dot.active {
  background: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   5. PERSPECTIVES ARCHIVE (Horizontal Kinetic Scroll Codex)
   ═══════════════════════════════════════════════════════════ */
#perspectives-grid-sec {
  --pga-inset: max(clamp(24px, 4vw, 64px), calc((100vw - 1440px) / 2 + clamp(24px, 4vw, 64px)));
  --pga-gap: clamp(20px, 2.2vw, 28px);
  position: relative;
  min-height: 280vh;
  padding: 0;
  margin: 0;
}

.pga-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(20px, 3vh, 36px) 0 clamp(16px, 2.5vh, 28px);
}

.pga-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 clamp(14px, 1.8vh, 22px);
  padding: 0 var(--pga-inset) 14px;
  border-bottom: none;
  position: relative;
  box-sizing: border-box;
}

/* Horizontal line starts from the exact left line of The Editorial Codex and goes off-screen to the right */
.pga-header-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--pga-inset);
  right: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.pga-sec-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.pga-sec-desc {
  font-size: 13px;
  color: var(--ink-mid);
  margin-top: 4px;
  font-family: var(--font-secondary);
  letter-spacing: 0.01em;
}

.pga-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pga-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.pga-mobile-cta-wrap {
  display: none;
}

.pga-drift-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-m);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s var(--sp);
}

.pga-drift-hint:hover {
  background: var(--cr);
  border-color: var(--cr);
  color: #ffffff;
  box-shadow: 0 0 20px var(--cr-glow), 0 4px 14px rgba(200, 16, 46, 0.35);
  transform: translateY(-2px);
}

[data-theme="light"] .pga-drift-hint {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pga-drift-hint:hover {
  background: var(--cr);
  border-color: var(--cr);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(200, 16, 46, 0.25);
}

.pdh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cr-bright);
  box-shadow: 0 0 8px var(--cr-glow);
  transition: background 0.3s ease;
}

.pga-drift-hint:hover .pdh-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.pdh-text {
  font-family: var(--font-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: inherit;
}

.pdh-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--sp);
}

.pga-drift-hint:hover .pdh-icon {
  transform: translateX(3px);
}

.pga-track-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.pga-editorial-matrix {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--pga-gap);
  padding: 36px var(--pga-inset) 56px;
  width: max-content;
  will-change: transform;
  transition: transform 0.08s ease-out;
}

/* ── Editorial Codex Card: 16:9 Image Box with Image Icon & Size, Heading, Brief Description, Footer ── */
.codex-card {
  width: calc((100vw - (2 * var(--pga-inset)) - (2 * var(--pga-gap))) / 3);
  min-width: 320px;
  height: clamp(480px, 56vh, 530px);
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--rule-m);
  border-radius: clamp(18px, 1.8vw, 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.8vw, 22px);
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s var(--sp), border-color 0.4s var(--sp), box-shadow 0.4s var(--sp);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.codex-card:hover {
  transform: translateY(-6px);
  border-color: var(--rule-heavy);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .codex-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .codex-card:hover {
  border-color: var(--rule-heavy);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ── Top: Image Box (16:9 Ratio with Image Icon & Dimensions) ── */
.card-image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--rule-heavy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 14px;
  transition: border-color 0.35s var(--sp), background 0.35s var(--sp);
}

[data-theme="light"] .card-image-box {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.16);
}

.codex-card:hover .card-image-box {
  border-color: var(--cr);
  background: rgba(230, 57, 70, 0.04);
}

.cib-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.cib-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule-m);
  display: grid;
  place-items: center;
  color: var(--ink-mid);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

[data-theme="light"] .cib-icon-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.codex-card:hover .cib-icon-wrap {
  color: var(--cr-bright);
  border-color: var(--cr);
  transform: scale(1.06);
}

.cib-image-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.cib-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cib-ratio-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 4px;
}

[data-theme="light"] .cib-ratio-badge {
  background: rgba(0, 0, 0, 0.04);
}

.cib-dims {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.card-image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  z-index: 2;
}

/* ── Middle: Body with Title + Brief Description ── */
.card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cbc-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

.cbc-desc {
  font-family: var(--font-secondary);
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Bottom: Footer Row (City + Arrow) ── */
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.card-city {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-city::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-dim);
  transition: background 0.3s, transform 0.3s;
}

.codex-card:hover .card-city::before {
  background: var(--cr);
  transform: scale(1.4);
}

.card-action-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule-m);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  transition: all 0.3s var(--sp);
  flex-shrink: 0;
}

[data-theme="light"] .card-action-arrow {
  background: rgba(0, 0, 0, 0.04);
}

.codex-card:hover .card-action-arrow {
  border-color: var(--cr);
  background: var(--cr);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--cr-glow);
  transform: translateY(-1px);
}

.codex-card:hover .card-action-arrow svg {
  transform: translateX(2px);
}

/* Empty Search State */
.empty-search-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(60px, 10vh, 100px) 20px;
  display: none;
}

.empty-search-state.visible {
  display: block;
}

.ess-title {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ess-sub {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   6. PAGINATION ARCHIVE CONTROLS
   ═══════════════════════════════════════════════════════════ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(40px, 6vh, 64px);
}

.pagi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-m);
  background: var(--card-bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--sp);
}

.pagi-btn:hover {
  border-color: var(--cr);
  color: var(--cr);
}

.pagi-btn.active {
  background: var(--cr);
  border-color: var(--cr);
  color: #fff;
  box-shadow: 0 6px 20px var(--cr-glow);
}

.pagi-next {
  width: auto;
  padding: 0 22px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════
   7. EDITORIAL NEWSLETTER (The Sunday Memorandum // Pure Editorial Monolith)
   ═══════════════════════════════════════════════════════════ */
#newsletter-sec {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(60px, 8vh, 100px) clamp(24px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.newsletter-editorial-monolith {
  width: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.12) 0%, rgba(12, 12, 16, 0.97) 65%), var(--card-bg);
  border: 1px solid var(--rule-m);
  border-radius: clamp(28px, 3.5vw, 44px);
  padding: clamp(48px, 6.5vh, 84px) clamp(28px, 5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(200, 16, 46, 0.04);
  box-sizing: border-box;
  transition: border-color 0.4s var(--sp), box-shadow 0.4s var(--sp);
}

[data-theme="light"] .newsletter-editorial-monolith {
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.06) 0%, #ffffff 70%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
}

.nem-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr-bright);
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.nem-dot {
  font-size: 8px;
  animation: nemPulse 2.2s infinite ease-in-out;
}

@keyframes nemPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.nem-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 clamp(18px, 2.8vh, 28px);
  max-width: 100%;
  width: 100%;
}

@media (min-width: 680px) {
  .nem-title {
    white-space: nowrap;
  }
}

.nem-desc {
  font-family: var(--font-secondary);
  font-size: clamp(15px, 1.15vw, 17.5px);
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 780px;
  margin: 0 0 clamp(32px, 4.5vh, 48px);
}

.nem-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nem-input-capsule {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--rule-heavy);
  border-radius: 999px;
  padding: 6px 6px 6px 28px;
  width: 100%;
  max-width: 580px;
  box-sizing: border-box;
  transition: all 0.35s var(--sp);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .nem-input-capsule {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.nem-input-capsule:focus-within {
  border-color: var(--cr);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 32px var(--cr-soft), inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .nem-input-capsule:focus-within {
  border-color: var(--cr);
  background: #ffffff;
  box-shadow: 0 0 24px rgba(200, 16, 46, 0.14);
}

.nem-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-secondary);
  font-size: 14.5px;
  color: var(--ink);
  min-width: 0;
}

.nem-input::placeholder {
  color: var(--ink-dim);
  opacity: 0.65;
}

.nem-submit-btn {
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background: var(--cr);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s var(--sp);
  box-shadow: 0 8px 24px var(--cr-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.nem-submit-btn:hover {
  background: #f02242;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(200, 16, 46, 0.45);
}

.nem-submit-btn:active {
  transform: translateY(0);
}

.nem-cadence-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.nem-sep {
  color: var(--rule-heavy);
}

.nem-toast {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid var(--cr);
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 18px;
}

.nem-toast.show {
  display: inline-flex;
  animation: fadeIn 0.4s var(--sp);
}

.nem-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cr);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

/* ── Bottom Editorial Triad Strip ── */
.nem-triad-strip {
  width: 100%;
  max-width: 900px;
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: clamp(24px, 3vh, 36px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.nem-triad-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ntc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.ntc-val {
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .nem-input-capsule {
    flex-direction: column;
    padding: 16px;
    border-radius: 20px;
    gap: 12px;
  }

  .nem-input {
    width: 100%;
    text-align: center;
  }

  .nem-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .nem-triad-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* ── PERSPECTIVE READER DRAWER (MOBILE VIEW) ── */
  .reader-modal-stage {
    height: 96vh !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
  }

  .reader-top-bar {
    padding: 12px 16px !important;
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .reader-top-bar .reader-cat-pill,
  .reader-top-bar #mReaderCat {
    display: none !important;
  }

  .reader-top-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .reader-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }

  .reader-share-btn .rsb-icon,
  .reader-share-btn svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
    stroke-width: 2.2 !important;
  }

  .reader-close-btn,
  #readerCloseBtn {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
  }

  .reader-body-wrap {
    padding: 20px 16px 40px !important;
  }

  .reader-hero-title {
    font-size: clamp(24px, 6vw, 30px) !important;
    line-height: 1.15 !important;
    text-align: left !important;
  }

  .reader-hero-box {
    margin-bottom: 0 !important;
  }

  .reader-hero-meta {
    display: flex !important;
    align-items: center !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }

  .rhm-author-pill {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  #mReaderSpecimenBanner {
    height: 200px !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  .reader-meta-row-below-image {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--rule-m) !important;
    margin-bottom: 26px !important;
  }

  #mReaderDate {
    text-align: left !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--ink-mid) !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
  }

  #mReaderReadTime {
    text-align: right !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--ink-mid) !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-block !important;
  }

  #mReaderSpecimenBanner .hfs-badge,
  #mReaderSpecimenBanner .hfs-prompt,
  #mReaderSpecimenBadge,
  #mReaderSpecimenPrompt,
  .hfs-radar-ring {
    display: none !important;
  }

  #mReaderSpecimenGlyph {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  #mReaderSpecimenGlyph .hfs-svg-icon {
    width: 52px !important;
    height: 52px !important;
    display: block !important;
    margin: 0 auto !important;
    opacity: 0.65 !important;
  }

  .reader-cta-deck .sec-tag-pill,
  .reader-cta-deck .modal-subheading-tag {
    display: none !important;
  }

  .reader-editorial-layout {
    display: flex !important;
    flex-direction: column !important;
  }

  .reader-toc-sidebar {
    display: none !important;
  }

  /* Perspective Bottom CTA Deck on Mobile */
  .reader-cta-deck {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 18px !important;
    padding-top: 28px !important;
    width: 100% !important;
  }

  .reader-cta-deck > div {
    width: 100% !important;
    text-align: left !important;
  }

  .reader-cta-deck .sec-tag-pill {
    display: none !important;
  }

  .reader-cta-title {
    font-size: clamp(20px, 4.8vw, 24px) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }

  .reader-cta-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }

  .reader-cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    gap: 10px !important;
    border-radius: 999px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   9. DEEP-DIVE PERSPECTIVE READER DRAWER (Detail Modal)
   (With Dynamic TOC Scrollspy & Related Articles Grid)
   ═══════════════════════════════════════════════════════════ */
.reader-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.reader-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.reader-open #nav,
.reader-modal-backdrop.active ~ #nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transform: translateY(-100%) !important;
}

.reader-modal-stage {
  width: 100%;
  max-width: 1360px;
  height: 94vh;
  background: var(--card-bg);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border: 1px solid var(--rule-m);
  border-bottom: none;
  box-shadow: 0 -24px 90px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s var(--sp);
  position: relative;
}

.reader-modal-stage::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.reader-modal-backdrop.active .reader-modal-stage {
  transform: translateY(0);
}

/* Opened from an article's own link (/perspectives/<slug>): the reader covers the page from the
   first frame, so the listing never shows first. The article slides in once its content is ready. */
html.reader-boot body {
  overflow: hidden;
}

html.reader-boot .reader-modal-backdrop {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

html.reader-boot .reader-modal-backdrop:not(.active) .reader-modal-stage {
  visibility: hidden;
}

html.reader-boot #nav {
  visibility: hidden;
}

/* Sticky Reader Nav Header */
.reader-top-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  padding: 16px clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
}

[data-theme="light"] .reader-top-bar {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--rule);
}

.reader-cat-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cr-bright);
  background: var(--cr-soft);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 16, 46, 0.2);
}

.reader-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-share-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule-m);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--sp);
}

[data-theme="light"] .reader-share-btn {
  background: rgba(0, 0, 0, 0.03);
}

.reader-share-btn:hover {
  border-color: var(--cr);
  color: var(--cr);
}

.reader-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-m);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s var(--sp), background 0.3s, border-color 0.3s;
}

.reader-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--cr);
  border-color: var(--cr);
  color: #fff;
}

.reader-body-wrap {
  padding: clamp(28px, 4vw, 64px);
}

.reader-hero-box {
  margin-bottom: 0;
}

.reader-hero-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.reader-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.rhm-author-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rhm-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cr-soft);
  border: 1.5px solid var(--cr);
  color: var(--cr);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.rhm-name {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.rhm-role {
  font-size: 12px;
  color: var(--ink-dim);
}

.rhm-info-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Reader Blueprint Banner */
.reader-blueprint-banner {
  width: 100%;
  height: clamp(260px, 36vh, 440px);
  border-radius: clamp(20px, 2.5vw, 32px);
  background: radial-gradient(circle at 50% 50%, rgba(200, 16, 46, 0.08) 0%, transparent 65%), var(--card-alt);
  border: 1px dashed var(--rule-heavy);
  margin-top: clamp(24px, 3.5vh, 36px);
  margin-bottom: clamp(24px, 3.5vh, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Date & Read Time Row Positioned Below the Image */
.reader-meta-row-below-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 5vh, 52px);
}

/* Two-Column Reader Prose Layout */
.reader-editorial-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(52px, 7vh, 84px);
}

/* Sticky Table of Contents */
.reader-toc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cr-bright);
}

.toc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--rule);
  padding-left: 14px;
}

.toc-nav-list li a {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
  display: block;
  line-height: 1.4;
  cursor: pointer;
}

.toc-nav-list li a:hover,
.toc-nav-list li a.active {
  color: var(--cr);
  transform: translateX(4px);
}

/* Reader Typography Prose */
.reader-content-prose {
  font-size: clamp(16px, 1.2vw, 18.5px);
  color: var(--ink-mid);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.reader-content-prose p {
  margin: 0;
}

.reader-content-prose h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 24px;
  line-height: 1.2;
}

/* Article content from the admin editor: subheadings, lists, images, links, divider lines */
.reader-content-prose h3 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
  margin: 8px 0 0;
}

.reader-content-prose ul,
.reader-content-prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reader-content-prose li::marker {
  color: var(--cr);
}

.reader-content-prose strong {
  color: var(--ink);
}

.reader-content-prose a {
  color: var(--cr);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reader-content-prose figure {
  margin: 0;
}

.reader-content-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.reader-content-prose hr,
.reader-content-prose .editorial-divider {
  border: none;
  border-top: 1.5px solid var(--rule);
  margin: 8px 0;
  width: 100%;
}

/* Banner with a real image: never show the placeholder icon (shared phone styles force it visible) */
#mReaderSpecimenBanner.has-image #mReaderSpecimenGlyph {
  display: none !important;
}

.reader-pullquote {
  position: relative;
  background: var(--cr-soft);
  border-left: 3px solid var(--cr);
  border-radius: 0 18px 18px 0;
  padding: clamp(24px, 3vw, 36px);
  margin: 12px 0;
}

.reader-pullquote p {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.reader-takeaway-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--rule-m);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .reader-takeaway-box {
  background: rgba(0, 0, 0, 0.03);
}

.rtb-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cr-bright);
}

.rtb-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rtb-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}

.rtb-list li::before {
  content: '→';
  color: var(--cr);
  font-weight: 700;
}

/* ── Related Articles Grid inside Drawer ── */
.reader-related-section {
  border-top: 1.5px solid var(--rule);
  padding-top: clamp(36px, 5vh, 56px);
  margin-bottom: clamp(48px, 6vh, 72px);
}

.rrs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.rrs-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cr-bright);
}

.rrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rrs-card {
  background: var(--card-alt);
  border: 1px solid var(--rule-m);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--sp), border-color 0.3s var(--sp), box-shadow 0.3s var(--sp);
}

[data-theme="light"] .rrs-card {
  background: var(--card-bg);
  border-color: var(--rule-m);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rrs-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 18px rgba(200, 16, 46, 0.06);
}

[data-theme="light"] .rrs-card:hover {
  border-color: rgba(200, 16, 46, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 0 18px rgba(200, 16, 46, 0.04);
}

.rrs-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cr-bright);
}

.rrs-card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.rrs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

/* Author Bio Signature Deck */
.reader-author-bio-card {
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  padding: 36px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(48px, 6vh, 72px);
}

.rabc-avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cr-soft);
  border: 2px solid var(--cr);
  display: grid;
  place-items: center;
  color: var(--cr);
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}

.rabc-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rabc-name {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.rabc-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cr-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rabc-bio {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
}

/* Commission Callout Deck */
.reader-cta-deck {
  border-top: 1.5px solid var(--rule);
  padding-top: clamp(36px, 5vh, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.reader-cta-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.reader-cta-sub {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-mid);
  margin: 0;
}

.reader-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--cr);
  border: 1px solid var(--cr);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 35px var(--cr-glow);
  transition: all 0.35s var(--sp);
  flex-shrink: 0;
}

.reader-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 45px rgba(200, 16, 46, 0.45);
  background: #e01436;
}

.rcd-arrow-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s var(--sp);
}

.reader-cta-btn:hover .rcd-arrow-svg {
  transform: translate(3px, -3px);
}

/* Share Toast */
#shareToast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111115;
  border: 1px solid var(--cr);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 24px var(--cr-glow);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--sp);
}

#shareToast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   §7 — MODERN EDITORIAL LUXURY FOOTER (Exact Home Page Property)
   ═══════════════════════════════════════════════════════════ */
#footer-driver {
  position: relative;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4.5vh, 56px) clamp(24px, 3.5vw, 52px) clamp(24px, 3.5vh, 40px);
  box-sizing: border-box;
  z-index: 10;
}

.footer-luxury-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: clamp(36px, 5vw, 64px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.05);
  padding: clamp(48px, 6vh, 68px) clamp(40px, 5vw, 72px) 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1640px;
  min-height: clamp(500px, 68vh, 640px);
  margin: 0 auto;
  gap: clamp(48px, 7vh, 80px);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

[data-theme="dark"] .footer-luxury-card {
  background: #18181B;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.f-outer-bar {
  width: 100%;
  max-width: 1640px;
  margin: clamp(28px, 4vh, 44px) auto 0;
  padding: 0 clamp(16px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.f-outer-copyright,
.f-outer-dev {
  font-family: var(--font-primary);
  font-size: 0.76rem;
  color: var(--ink-dim);
  font-weight: 400;
  line-height: 1.4;
}

.f-outer-dev a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.f-outer-dev a:hover {
  color: var(--cr);
}

.f-header-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: flex-start;
}

.f-desc-col .f-statement-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.85vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 380px;
}

.f-desc-col .f-desc-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 340px;
  margin-bottom: 12px;
}

.f-desc-col .f-location-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-dim, var(--ink-mid));
  margin: 0 0 18px 0;
  text-transform: uppercase;
}

.f-col-label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}

.f-links-clean {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-links-clean a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .2s, transform .2s;
  display: inline-block;
}

.f-links-clean a:hover {
  color: var(--cr);
  transform: translateX(4px);
}

.f-social-circles {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.f-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s var(--sp);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.f-circle-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.f-cta-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.f-action-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform .25s var(--sp), box-shadow .25s;
}

.f-action-pill:hover {
  transform: translateY(-3px);
}

.f-action-pill.cta-primary {
  background: var(--cr);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.22);
}

.f-action-pill.cta-secondary {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.f-action-pill.cta-secondary:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.f-action-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f-action-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-action-sub {
  font-family: var(--font-primary);
  font-size: 0.74rem;
  opacity: 0.78;
}

.f-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cta-primary .f-action-arrow {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cta-secondary .f-action-arrow {
  background: var(--ink);
  color: var(--bg);
}

/* ── Bottom Cluster: Staggered Character Emergence Headline (Half-Cut to Full Wave) ── */
.f-bottom-cluster {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: clamp(32px, 5vh, 60px);
  margin-bottom: 0;
  position: relative;
}

.f-brand-title-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 2vw, 24px) 0 clamp(18px, 2.8vh, 32px) 0;
  user-select: none;
  box-sizing: border-box;
}

.f-brand-giant-text {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(26px, 6.85vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  transform: scaleY(1.22);
  transform-origin: center bottom;
}

.f-char-word {
  display: inline-flex;
  align-items: center;
}

.f-char-space {
  display: inline-block;
  width: 0.32em;
}

.f-char {
  display: inline-block;
  opacity: 1;
  transform: translateY(50%);
  transition: transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.f-brand-giant-text.revealed .f-char {
  transform: translateY(0%);
}

.f-bottom-line {
  width: 100%;
  height: 1.5px;
  background: var(--rule);
  margin: 0;
  transition: background 0.3s;
}

@media (max-width: 1024px) {
  .f-header-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .f-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .f-outer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

[data-theme="light"] .f-chip {
  background: rgba(0, 0, 0, 0.04);
}

.f-chip:hover {
  border-color: var(--cr);
  color: var(--cr);
  transform: translateX(4px);
}

.f-cta-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.f-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--cr);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s var(--sp);
  box-shadow: 0 8px 24px var(--cr-glow);
}

.f-cta-pill:hover {
  transform: scale(1.04);
  background: #e01436;
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.5);
}

/* Giant Cut Sliced Interactive Logo Section */
.f-giant-logo-area {
  position: relative;
  width: 100%;
  margin: clamp(30px, 4vh, 48px) 0 clamp(20px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  cursor: ns-resize;
}

.f-giant-cut-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 0px;
}

.f-giant-cut-svg {
  width: 100%;
  max-width: 1350px;
  display: block;
  overflow: visible;
}

.f-cut-h-line {
  width: 100%;
  height: 1.5px;
  background: var(--rule-heavy);
  position: relative;
  z-index: 5;
}

.f-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Floating Fixed Theme Toggle Button (Exact Home Page Property) ── */
#theme-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--rule-m);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity .4s var(--sp), transform .4s var(--sp), border-color .3s, box-shadow .3s, background .3s, color .3s;
}

[data-theme="light"] #theme-fab {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  color: #0a0a0c;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

#theme-fab:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--cr);
  box-shadow: 0 14px 40px var(--cr-glow);
}

#theme-fab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--sp);
  pointer-events: none;
}

#theme-fab:hover svg {
  transform: rotate(25deg);
}

[data-theme="dark"] #theme-fab .icon-moon,
[data-theme="light"] #theme-fab .icon-sun {
  display: none !important;
}

[data-theme="dark"] #theme-fab .icon-sun,
[data-theme="light"] #theme-fab .icon-moon {
  display: block !important;
}

/* ── Responsive Media Queries ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .codex-card {
    width: calc((100vw - (2 * var(--pga-inset)) - var(--pga-gap)) / 2);
  }
}

@media (max-width: 1180px) {
  .f-header-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .featured-monograph-spread {
    grid-template-columns: 1fr;
  }

  .reader-editorial-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .reader-toc-sidebar {
    position: static;
  }

  .newsletter-codex-card {
    grid-template-columns: 1fr;
  }

  .rrs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {

  .c-dot,
  .c-ring {
    display: none !important;
  }

  .hm-monument-title {
    font-size: clamp(34px, 8.5vw, 54px);
  }

  .critical-dispatch-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(390px, calc(100vw - 36px)) !important;
    max-width: 420px !important;
    padding: 12px 20px 11px !important;
    gap: 8px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    margin: 0 auto clamp(20px, 3vh, 32px) !important;
  }

  .critical-dispatch-bar:hover,
  [data-theme="light"] .critical-dispatch-bar:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
  }

  [data-theme="light"] .critical-dispatch-bar:hover {
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  .cdb-left {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-right: 0 !important;
    padding-bottom: 7px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    font-size: 10.5px !important;
    letter-spacing: 0.16em !important;
  }

  [data-theme="light"] .cdb-left {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  }

  .cdb-indicator,
  .cdb-arrow {
    display: none !important;
  }

  .cdb-right {
    flex: none !important;
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .cdb-slider {
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .cdb-word {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 26px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
    pointer-events: none !important;
  }

  .cdb-word.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }

  .cdb-word.exit {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-12px) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }

  .cdb-cat-tag {
    display: none !important;
  }

  .cdb-num {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    color: var(--cr) !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
  }

  .cdb-topic-name {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  [data-theme="light"] .cdb-topic-name {
    color: #0c0c0f !important;
  }

  #featured-monograph {
    min-height: auto;
    padding: clamp(36px, 5vh, 48px) 16px;
  }

  #perspectives-grid-sec {
    --pga-inset: 20px !important;
    --pga-gap: 16px !important;
    min-height: auto !important;
    padding: clamp(32px, 4.5vh, 48px) 0 16px !important;
  }

  .pga-header-bar {
    padding: 0 var(--pga-inset) 14px !important;
    margin: 0 0 10px !important;
  }

  .pga-header-bar::after {
    left: var(--pga-inset) !important;
  }

  .pga-header-meta {
    display: none !important;
  }

  .pga-sticky-wrap {
    position: static !important;
    height: auto !important;
    padding: 0 !important;
  }

  .pga-track-viewport {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: var(--pga-inset) !important;
    scroll-padding-right: var(--pga-inset) !important;
    scrollbar-width: none !important;
  }

  .pga-track-viewport::-webkit-scrollbar {
    display: none !important;
  }

  .pga-editorial-matrix {
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--pga-gap) !important;
    padding: 16px var(--pga-inset) 28px var(--pga-inset) !important;
    width: max-content !important;
    box-sizing: content-box !important;
  }

  .pga-editorial-matrix::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 1px !important;
    width: 1px !important;
    margin-left: -1px !important;
    pointer-events: none !important;
  }

  .codex-card {
    scroll-snap-align: start !important;
    width: 82vw !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: 480px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .pga-mobile-cta-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 8px var(--pga-inset) 16px !important;
    box-sizing: border-box !important;
  }

  .pga-mobile-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: var(--font-secondary) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--ink) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rule-m) !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease !important;
  }

  [data-theme="light"] .pga-mobile-cta-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0c0c0f !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  }

  .pga-mobile-cta-btn:hover,
  .pga-mobile-cta-btn:active {
    background: var(--cr) !important;
    border-color: var(--cr) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35) !important;
    transform: translateY(-2px) !important;
  }

  .pga-mobile-cta-btn:hover .pdh-dot,
  .pga-mobile-cta-btn:active .pdh-dot {
    background: #ffffff !important;
    box-shadow: 0 0 8px #ffffff !important;
  }

  .pga-mobile-cta-btn:hover .pdh-icon,
  .pga-mobile-cta-btn:active .pdh-icon {
    transform: translateX(3px) !important;
  }



  .command-dock-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cmd-search-box {
    width: 100%;
    max-width: 100%;
  }

  .cmd-filter-shell {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .cmd-category-group {
    justify-content: flex-start;
    overflow-x: auto;
    width: max-content;
    -webkit-overflow-scrolling: touch;
  }

  .f-header-grid {
    grid-template-columns: 1fr;
  }

  .f-meta-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ── Fixed Navigation Header (Unified Frosted Glassmorphism) ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 14px clamp(20px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 250, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform, opacity;
}

[data-theme="dark"] #nav {
  background: rgba(10, 10, 14, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

#nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

body.reader-open #nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: clamp(32px, 3.5vw, 40px);
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-logo-img,
body.dark .nav-logo-img {
  filter: brightness(1.28) contrast(1.08);
}

.nav-logo svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: all .25s ease;
  position: relative;
  padding: 5px 8px;
  border-radius: 20px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0px;
  height: 1.5px;
  background: var(--cr);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--sm);
}

.nav-links a:hover {
  color: var(--cr);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Clean Minimal Luxury Active Page Header Link ── */
.nav-links a.active {
  font-weight: 800;
  color: #0A0A0A;
  background: none;
  border: none;
  box-shadow: none;
  padding: 5px 6px;
}

.nav-links a.active::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--cr);
  left: 6px;
  right: 6px;
  bottom: -2px;
  border-radius: 2px;
  box-shadow: none;
}

.nav-links a.active:hover {
  color: #0A0A0A;
}

body.dark .nav-links a.active,
[data-theme="dark"] .nav-links a.active {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
}

body.dark .nav-links a.active::after,
[data-theme="dark"] .nav-links a.active::after {
  background: var(--cr);
  box-shadow: none;
}

body.dark .nav-links a.active:hover,
[data-theme="dark"] .nav-links a.active:hover {
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   BESPOKE ATELIER SERVICES DROPDOWN SYSTEM
   ═══════════════════════════════════════════════════════════ */
.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  width: 8px;
  height: 5px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.nav-has-dropdown:hover > a,
.nav-has-dropdown:focus-within > a {
  color: var(--cr, #C8102E);
}

.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--cr, #C8102E);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1001;
  padding-top: 12px; /* mouse bridge */
  width: clamp(210px, 18vw, 230px);
}

.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu,
.nav-has-dropdown.touch-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 14px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  padding: 6px;
  text-align: left;
}

[data-theme="dark"] .nav-dropdown-panel,
body.dark .nav-dropdown-panel {
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
  position: relative;
}

/* Reset global nav underlines inside dropdown */
.nav-dropdown-menu a::after,
.nav-dropdown-menu a.active::after {
  display: none !important;
}

.nav-dropdown-item:hover {
  background: rgba(10, 10, 10, 0.035);
  transform: translateX(2px);
}

[data-theme="dark"] .nav-dropdown-item:hover,
body.dark .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ndi-num {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cr, #C8102E);
  opacity: 0.75;
  letter-spacing: 0.03em;
  min-width: 18px;
  transition: opacity 0.18s ease;
}

.nav-dropdown-item:hover .ndi-num {
  opacity: 1;
}

.ndi-title {
  font-family: var(--font-primary, 'Gotham', 'Montserrat', sans-serif);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink, #0E0E10);
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.18s ease;
  line-height: 1.25;
  flex: 1;
}

[data-theme="dark"] .ndi-title,
body.dark .ndi-title {
  color: #EDEDF0;
}

.nav-dropdown-item:hover .ndi-title {
  color: var(--cr, #C8102E);
}

.ndi-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--cr, #C8102E);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-dropdown-item:hover .ndi-arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-dropdown-item.ndi-active {
  background: rgba(200, 16, 46, 0.05);
}

[data-theme="dark"] .nav-dropdown-item.ndi-active,
body.dark .nav-dropdown-item.ndi-active {
  background: rgba(200, 16, 46, 0.12);
}

.nav-dropdown-item.ndi-active .ndi-title {
  color: var(--cr, #C8102E);
}

.nav-dropdown-item.ndi-active .ndi-arrow {
  opacity: 0.8;
  transform: translateX(0);
}

.nav-dropdown-footer {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(10, 10, 10, 0.05);
}

[data-theme="dark"] .nav-dropdown-footer,
body.dark .nav-dropdown-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-primary, 'Gotham', 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mid, #666672);
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

[data-theme="dark"] .nav-dropdown-foot-link,
body.dark .nav-dropdown-foot-link {
  color: #9A9AA6;
}

.nav-dropdown-foot-link svg {
  transition: transform 0.18s ease, color 0.18s ease;
  color: currentColor;
}

.nav-dropdown-foot-link:hover {
  background: rgba(200, 16, 46, 0.05);
  color: var(--cr, #C8102E) !important;
}

[data-theme="dark"] .nav-dropdown-foot-link:hover,
body.dark .nav-dropdown-foot-link:hover {
  background: rgba(200, 16, 46, 0.12);
  color: var(--cr, #C8102E) !important;
}

.nav-dropdown-foot-link:hover svg {
  transform: translateX(3px);
  color: var(--cr, #C8102E) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--cr);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--cr-glow);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
  cursor: pointer;
  display: inline-block;
}

/* Light Theme: hover becomes darker */
.nav-cta:hover,
[data-theme="light"] .nav-cta:hover {
  background: var(--cr-dk, #6B1212);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 18, 18, 0.45);
}

/* Dark Theme: CTA turns white on hover */
[data-theme="dark"] .nav-cta:hover,
body.dark .nav-cta:hover {
  background: #ffffff !important;
  color: #0A0A0C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35) !important;
}

.nav-logo svg .nl,
.nav-logo svg .ns {
  fill: var(--cr);
  transition: fill 0.3s;
}

/* ── Smooth scrollbar ─────────────────────────────────── */
/* ── Smooth scrollbar on Desktop / Web view (> 768px) ── */
@media (min-width: 769px) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--cr) var(--bg);
  }

  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--cr);
    border-radius: 3px;
  }
}

/* ── Hide Scrolling Sidebar (Scrollbar) completely on Phone view (<= 768px) ── */
@media (max-width: 768px) {
  html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  ::-webkit-scrollbar,
  ::-webkit-scrollbar-thumb,
  ::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}
  
