/* ==========================================================================
   HASTATI MUSIC NETWORK // OPENING SEQUENCE, ASCII FRAME & SCUTUM NAV
   ========================================================================== */

:root {
  --bg-void: #060608;
  --bg-obsidian: #0c0d12;

  --text-marble: #ede8dc;
  --text-muted: #989389;
  --text-dim: #5e5b55;

  --gold: #d4af37;
  --gold-bright: #f3d576;
  --cyan-pulse: #4ce0d2;
  --crimson-spark: #e04f3d;

  --border-stone: rgba(237, 232, 220, 0.14);
  --border-gold: rgba(212, 175, 55, 0.45);

  --font-display: 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --wreath-top: 100%;
  --horizon: 56vh;
}

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

html,
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  color: var(--text-marble);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

body.phase-loading,
body.phase-gladius,
body.phase-impact {
  overflow: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ==========================================================================
   INTRO CHOREOGRAPHY OVERLAY
   ========================================================================== */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.intro-overlay.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Horizontal ground split halves (top rises, bottom sinks) */
.curtain {
  position: absolute;
  left: 0;
  right: 0;
  background: #060608;
  z-index: 1;
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.curtain-top {
  top: 0;
  height: var(--horizon);
}

.curtain-bottom {
  top: var(--horizon);
  bottom: 0;
}

.curtain-grain {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(rgba(237, 232, 220, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

.curtain-crack-edge {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.9), 0 0 24px rgba(243, 213, 118, 0.6);
  opacity: 0;
  white-space: pre;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.24s ease;
  overflow: hidden;
}

.curtain-crack-edge-top {
  bottom: 2px;
}

.curtain-crack-edge-bottom {
  top: 2px;
}

body.phase-impact .curtain-crack-edge,
body.phase-split .curtain-crack-edge {
  opacity: 1;
}

body.phase-split .curtain-top {
  transform: translateY(-106%);
}

body.phase-split .curtain-bottom {
  transform: translateY(106%);
}

/* Horizontal fissure beam & impact shockwave along 56vh */
.fissure-beam {
  position: absolute;
  left: 50%;
  top: var(--horizon);
  width: 0;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-bright) 18%,
    #ffffff 50%,
    var(--gold-bright) 82%,
    transparent
  );
  box-shadow: 0 0 28px 8px rgba(212, 175, 55, 0.85), 0 0 70px 18px rgba(243, 213, 118, 0.35);
  z-index: 4;
  opacity: 0;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

body.phase-impact .fissure-beam {
  width: 100vw;
  opacity: 1;
}

body.phase-split .fissure-beam {
  width: 100vw;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.impact-shockwave {
  position: absolute;
  left: 50%;
  top: var(--horizon);
  width: 240px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.75), inset 0 0 24px rgba(76, 224, 210, 0.35);
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

body.phase-impact .impact-shockwave {
  animation: shockwavePulse 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwavePulse {
  0% {
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(4.2, 1.8);
    opacity: 0;
  }
}

body.phase-impact .intro-overlay {
  animation: impactTremor 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes impactTremor {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(0, 6px, 0); }
  30% { transform: translate3d(-4px, -5px, 0); }
  45% { transform: translate3d(4px, 4px, 0); }
  60% { transform: translate3d(-2px, -3px, 0); }
  80% { transform: translate3d(1px, 1px, 0); }
}

/* ==========================================================================
   PHASE 1: ASCII LAUREL WREATH LOADER
   ========================================================================== */

.loader-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.phase-gladius .loader-stage,
body.phase-impact .loader-stage,
body.phase-split .loader-stage {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.wreath-loader {
  position: relative;
  display: inline-block;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.wreath-loader.is-charged {
  filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.75));
  transform: scale(1.03);
}

.ascii-wreath {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.35vw, 13.5px);
  line-height: 1.15;
  white-space: pre;
  user-select: none;
}

.ascii-wreath-ghost {
  visibility: hidden;
}

.wreath-fill-window {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--wreath-top, 100%) 0 0 0);
  will-change: clip-path;
}

.ascii-wreath-filled {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.65);
}

.wreath-scanline {
  position: absolute;
  left: -4%;
  right: -4%;
  top: var(--wreath-top, 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-pulse), var(--gold-bright), var(--cyan-pulse), transparent);
  box-shadow: 0 0 12px var(--gold-bright);
  opacity: 0.85;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}

.wreath-loader.is-charged .wreath-scanline {
  opacity: 0;
}

.loader-telemetry {
  width: min(300px, 80vw);
}

.loader-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.loader-pct {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.85rem;
}

.loader-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(237, 232, 220, 0.1);
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--cyan-pulse));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.75);
}

/* ==========================================================================
   PHASE 2: SLOW HEAVY GLADIUS PLUNGE (TIP BURIES INTO GROUND AT 56VH)
   ========================================================================== */

.gladius-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.gladius-ground-mask {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 90vw);
  height: var(--horizon);
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.gladius-trail {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 10%, rgba(243, 213, 118, 0.65) 85%, rgba(255, 255, 255, 0.9));
  opacity: 0;
}

.ascii-gladius {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.55vw, 15px);
  line-height: 1.06;
  letter-spacing: 0.04em;
  color: var(--text-marble);
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.75),
    0 0 24px rgba(76, 224, 210, 0.25);
  white-space: pre;
  transform: translateY(-115%);
}

.impact-sparks {
  position: absolute;
  left: 50%;
  top: var(--horizon);
  transform: translate(-50%, -45%);
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 16px);
  line-height: 1.1;
  color: var(--gold-bright);
  text-shadow: 0 0 14px var(--gold-bright), 0 0 24px var(--crimson-spark);
  opacity: 0;
  white-space: pre;
}

body.phase-gladius .gladius-stage {
  opacity: 1;
}

body.phase-gladius .gladius-trail {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

body.phase-gladius .ascii-gladius {
  animation: gladiusPlunge 1.55s cubic-bezier(0.32, 0.04, 0.75, 0.28) forwards;
}

body.phase-impact .gladius-stage {
  opacity: 1;
}

body.phase-impact .gladius-trail {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.phase-impact .ascii-gladius {
  transform: translateY(calc(var(--horizon) - 67%));
  color: #ffffff;
  text-shadow: 0 0 18px var(--gold-bright), 0 0 36px rgba(255, 255, 255, 0.7);
}

body.phase-impact .impact-sparks {
  animation: sparksFlash 0.68s ease-out forwards;
}

body.phase-split .gladius-stage {
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}

body.phase-split .ascii-gladius {
  transform: translateY(calc(var(--horizon) - 67%));
}

@keyframes gladiusPlunge {
  0% {
    transform: translateY(-110%);
    filter: blur(0px);
  }
  65% {
    transform: translateY(calc(var(--horizon) - 102%));
    filter: blur(0.6px);
  }
  100% {
    transform: translateY(calc(var(--horizon) - 67%));
    filter: blur(0px);
  }
}

@keyframes sparksFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.4);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -45%) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(1.8);
  }
}

.skip-intro-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  background: rgba(12, 13, 18, 0.85);
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.skip-intro-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* ==========================================================================
   REVEALED GRECO-ROMAN ASCII TEMPLE FRAME (95% WIDTH MEANDERS + COLUMNS)
   ========================================================================== */

.temple-frame {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.85s ease 0.15s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

body.phase-split .temple-frame,
body.phase-ready .temple-frame,
body.subpage .temple-frame {
  opacity: 1;
  transform: scale(1);
}

.frame-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #060608;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  padding: 0.5rem 2.5vw;
}

.frame-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: #060608;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  padding: 0.5rem 2.5vw;
}

.ascii-meander {
  margin: 0;
  width: fit-content;
  max-width: 95vw;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(8.5px, 0.82vw, 11px);
  line-height: 1.05;
  color: rgba(212, 175, 55, 0.65);
  white-space: pre;
  overflow: hidden;
}

.frame-column {
  position: fixed;
  top: 4.1rem;
  bottom: 4.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  color: rgba(237, 232, 220, 0.5);
  overflow: hidden;
}

.frame-column-left {
  left: 2.5vw;
  pointer-events: auto;
  cursor: default;
  user-select: none;
}

.frame-column-right {
  right: 2.5vw;
}

.ascii-col-cap,
.ascii-col-shaft,
.ascii-col-base {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.12;
  white-space: pre;
}

.ascii-col-cap,
.ascii-col-base {
  color: rgba(212, 175, 55, 0.76);
  flex-shrink: 0;
}

.ascii-col-shaft {
  flex: 1;
  overflow: hidden;
  color: rgba(237, 232, 220, 0.34);
}

/* ==========================================================================
   LANDING STAGE & 4-QUADRANT ASCII SCUTUM NAVIGATION
   ========================================================================== */

.revealed-stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 4.35rem max(6.5rem, var(--frame-inner-right, 6.5rem)) 6.5rem max(6.5rem, var(--frame-inner-left, 6.5rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.4rem;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.85s ease 0.25s, transform 0.85s ease 0.25s;
}

body.phase-split .revealed-stage,
body.phase-ready .revealed-stage {
  opacity: 1;
  transform: scale(1);
}

.stage-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.35rem;
}

.stage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-marble);
}

/* Scutum 3D hover + opposite-direction parallax + idle 360 spin + ground glow */
.scutum-viewport {
  perspective: 1100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
}

.scutum-ground-glow {
  width: clamp(220px, 26vw, 340px);
  height: 28px;
  margin-top: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(235, 240, 255, 0.24) 44%,
    rgba(255, 255, 255, 0.05) 72%,
    transparent 100%
  );
  filter: blur(7px);
  animation: scutumGlowPulse 4.4s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes scutumGlowPulse {
  0%, 100% {
    /* Scutum at highest point (-5px): smaller, softer floor glow */
    transform: scale(0.76, 0.72);
    opacity: 0.42;
  }
  50% {
    /* Scutum at lowest point (+5px): larger, brighter floor glow */
    transform: scale(1.18, 1.1);
    opacity: 0.94;
  }
}

.scutum-float {
  animation: scutumHover 4.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes scutumHover {
  0%, 100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(5px);
  }
}

.scutum-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.scutum-spin {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.scutum-spin.is-spinning {
  animation: scutumSpin360 1.35s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes scutumSpin360 {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.scutum-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0;
  line-height: 0;
}

.scutum-quad {
  display: block;
  text-decoration: none;
  color: rgba(237, 232, 220, 0.8);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: pointer;
}

/* Strictly enforced, mutually exclusive responsive hit perimeters around sovereign center HEN */
.scutum-tl {
  clip-path: polygon(0% 0%, 100% 0%, 100% 70.5%, 64.5% 70.5%, 61.5% 77%, 61.5% 100%, 0% 100%);
}

.scutum-tr {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 38.5% 100%, 38.5% 77%, 35.5% 70.5%, 0% 70.5%);
}

.scutum-bl {
  clip-path: polygon(0% 0%, 61.5% 0%, 61.5% 23%, 64.5% 29.5%, 100% 29.5%, 100% 100%, 0% 100%);
}

.scutum-br {
  clip-path: polygon(38.5% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 29.5%, 35.5% 29.5%, 38.5% 23%);
}

.scutum-quad:hover,
.scutum-quad:focus-visible,
.scutum-quad:active,
.scutum-quad.is-tapped {
  color: #fff8dc;
  background: transparent;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.95),
    0 0 16px rgba(212, 175, 55, 0.8),
    0 0 28px rgba(212, 175, 55, 0.45);
  outline: none;
}

/* Sovereign Center Umbo Medallion: HEN */
.scutum-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: block;
  text-decoration: none;
  color: var(--gold);
  background: transparent;
  clip-path: polygon(18% 0%, 82% 0%, 100% 25%, 100% 75%, 82% 100%, 18% 100%, 0% 75%, 0% 25%);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  cursor: pointer;
}

.scutum-center:hover,
.scutum-center:focus-visible,
.scutum-center:active,
.scutum-center.is-tapped {
  color: #fff8dc;
  background: transparent;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.98),
    0 0 18px rgba(212, 175, 55, 0.85),
    0 0 32px rgba(212, 175, 55, 0.5);
  outline: none;
}

.scutum-ascii {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(8.5px, min(1.72vh, 1.18vw), 16px);
  line-height: 1.14;
  white-space: pre;
  user-select: none;
}

.replay-btn {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 15;
  background: transparent;
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.ambience-toggle-btn {
  position: fixed;
  top: 4.65rem;
  right: var(--frame-inner-right, clamp(9.6rem, 12vw, 13.5rem));
  z-index: 20;
  font-size: 0.64rem;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.35s ease, color 0.2s ease, text-shadow 0.2s ease;
}

body:has(#intro-overlay):not(.phase-ready) .ambience-toggle-btn,
body:has(#intro-overlay):not(.phase-ready) .top-right-controls {
  opacity: 0;
  pointer-events: none;
}

.ambience-toggle-btn.is-muted {
  color: rgba(237, 232, 220, 0.45);
}

/* ==========================================================================
   DESKTOP LANDING BACKDROP: ANIMATED TORCHES, COBBLESTONE ROAD & AMPHORA
   ========================================================================== */

.desktop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.35s;
}

body.phase-split .desktop-backdrop,
body.phase-ready .desktop-backdrop {
  opacity: 1;
}

.ascii-torch {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.torch-near-left {
  left: 20.5%;
  bottom: 36%;
}

.torch-near-right {
  right: 20.5%;
  bottom: 36%;
}

.torch-far-left {
  left: 26.5%;
  bottom: 54%;
  opacity: 0.52;
}

.torch-far-right {
  right: 26.5%;
  bottom: 54%;
  opacity: 0.52;
}

.torch-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.smoke-particle {
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  color: rgba(215, 210, 200, 0.55);
  text-shadow: 0 0 6px rgba(200, 196, 188, 0.22);
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.wind-wisp {
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(230, 236, 244, 0.28);
  text-shadow: 0 0 8px rgba(210, 224, 240, 0.22);
  white-space: pre;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.torch-flame,
.torch-stand {
  margin: 0;
  font-family: var(--font-mono);
  white-space: pre;
}

.torch-near-left .torch-flame,
.torch-near-left .torch-stand,
.torch-near-right .torch-flame,
.torch-near-right .torch-stand {
  font-size: clamp(9px, 1vw, 12px);
}

.torch-far-left .torch-flame,
.torch-far-left .torch-stand,
.torch-far-right .torch-flame,
.torch-far-right .torch-stand {
  font-size: clamp(7px, 0.72vw, 9px);
}

.torch-flame {
  transform-origin: 50% 100%;
  transition: transform 0.22s ease-out;
  color: var(--gold-bright);
  text-shadow:
    0 0 8px rgba(243, 213, 118, 0.9),
    0 0 18px rgba(224, 120, 48, 0.6),
    0 0 28px rgba(224, 79, 61, 0.38);
  animation: flamePulse 1.4s ease-in-out infinite alternate;
}

.torch-stand {
  position: relative;
  z-index: 2;
  color: rgba(237, 232, 220, 0.34);
}

.torch-base-glow {
  position: relative;
  z-index: 1;
  width: clamp(74px, 7.2vw, 112px);
  height: clamp(18px, 1.9vw, 28px);
  margin-top: -8px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(246, 206, 114, 0.48) 0%,
    rgba(224, 128, 48, 0.28) 38%,
    rgba(196, 74, 34, 0.12) 64%,
    transparent 82%
  );
  filter: blur(5px);
  will-change: transform, opacity, filter;
  transition: translate 0.22s ease-out;
  animation: torchBaseFlicker 2.15s ease-in-out infinite;
}

.torch-far-left .torch-base-glow,
.torch-far-right .torch-base-glow {
  width: clamp(48px, 4.8vw, 76px);
  height: clamp(12px, 1.3vw, 18px);
  margin-top: -6px;
  filter: blur(4px);
}

.torch-far-left .torch-base-glow {
  animation-duration: 2.35s;
  animation-delay: -0.45s;
}

.torch-far-right .torch-base-glow {
  animation-duration: 2.65s;
  animation-delay: -1.3s;
}

.torch-near-left .torch-base-glow {
  animation-duration: 1.95s;
  animation-delay: -0.2s;
}

.torch-near-right .torch-base-glow {
  animation-duration: 2.25s;
  animation-delay: -0.95s;
}

@keyframes torchBaseFlicker {
  0% {
    opacity: 0.56;
    transform: scale(0.92, 0.88);
    filter: blur(5px) brightness(0.88);
  }
  16% {
    opacity: 0.94;
    transform: scale(1.08, 1.06);
    filter: blur(5px) brightness(1.18);
  }
  31% {
    opacity: 0.68;
    transform: scale(0.96, 0.94);
    filter: blur(5px) brightness(0.95);
  }
  47% {
    opacity: 1;
    transform: scale(1.13, 1.1);
    filter: blur(5px) brightness(1.24);
  }
  63% {
    opacity: 0.62;
    transform: scale(0.93, 0.9);
    filter: blur(5px) brightness(0.9);
  }
  79% {
    opacity: 0.89;
    transform: scale(1.05, 1.03);
    filter: blur(5px) brightness(1.12);
  }
  91% {
    opacity: 0.72;
    transform: scale(0.97, 0.95);
    filter: blur(5px) brightness(0.96);
  }
  100% {
    opacity: 0.56;
    transform: scale(0.92, 0.88);
    filter: blur(5px) brightness(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .torch-base-glow {
    animation: none;
    opacity: 0.75;
  }
}

@keyframes flamePulse {
  from {
    opacity: 0.82;
    filter: brightness(0.95);
  }
  to {
    opacity: 1;
    filter: brightness(1.15);
  }
}

/* Bottom-Left Clickable ASCII Amphora ("The Network") & Bottom-Right Scrolls ("Privacy and Cookie Policy") */
.ascii-amphora-wrap,
.ascii-scrolls-wrap {
  position: fixed;
  bottom: 4.5rem;
  z-index: 15;
  display: block;
  text-decoration: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.ascii-amphora-wrap {
  left: var(--frame-inner-left, 8.5rem);
}

.ascii-scrolls-wrap {
  right: var(--frame-inner-right, 8.5rem);
}

.ascii-amphora,
.ascii-scrolls {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.85vw, 10.5px);
  line-height: 1.08;
  color: rgba(212, 175, 55, 0.78);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.22);
  white-space: pre;
  user-select: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ascii-amphora-wrap:hover .ascii-amphora,
.ascii-amphora-wrap:focus-visible .ascii-amphora,
.ascii-scrolls-wrap:hover .ascii-scrolls,
.ascii-scrolls-wrap:focus-visible .ascii-scrolls {
  color: #fff8dc;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.95),
    0 0 16px rgba(212, 175, 55, 0.8),
    0 0 28px rgba(212, 175, 55, 0.45);
}

.ascii-amphora-wrap:focus-visible,
.ascii-scrolls-wrap:focus-visible {
  outline: none;
}

.amphora-row {
  display: contents;
}

.replay-btn:hover {
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

.replay-btn:active {
  transform: translateX(-50%) translateY(1px);
}

@media (max-width: 1240px) {
  .desktop-backdrop {
    display: none;
  }

  .stage-header {
    padding-top: 2.1rem;
  }
}

@media (max-width: 960px) {
  .amphora-row {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    gap: 1.25rem;
    width: 100%;
    max-width: 440px;
    margin-top: 0.9rem;
  }

  .ascii-amphora-wrap,
  .ascii-scrolls-wrap {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .ascii-amphora,
  .ascii-scrolls {
    font-size: clamp(7.5px, 2.1vw, 9.5px);
  }

  .replay-btn {
    position: static;
    transform: none;
    margin-top: 1.1rem;
  }

  .replay-btn:active {
    transform: translateY(1px);
  }
}

/* ==========================================================================
   EMPTY SUBPAGE SHELLS (ARTIST MANAGEMENT, NEWS BLOG, SHOWS, HEN)
   ========================================================================== */

.subpage-stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7.4rem 7rem 5.5rem;
  display: flex;
  flex-direction: column;
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-stone);
}

.subpage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-marble);
}

.back-link {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  padding: 0.55rem 0.95rem;
  transition: background-color 0.2s ease;
}

.back-link:hover {
  background: rgba(212, 175, 55, 0.12);
}

.subpage-empty-body {
  flex: 1;
}

.blog-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

/* ==========================================================================
   ARTIST MANAGEMENT ROSTER & BACKEND ADMIN MODULE
   ========================================================================== */

.subpage-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.back-link-muted {
  color: var(--text-muted);
  border-color: var(--border-stone);
}

.back-link-muted:hover {
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* Live Artist Roster */
.artist-roster {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
}

.roster-empty-state {
  border: 1px dashed var(--border-stone);
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.ascii-shield-frame,
.artist-shield-frame {
  position: relative;
  padding: 15px 19px;
  box-sizing: border-box;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.16));
}

.ascii-shield-stretch {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ascii-shield-stretch > .ascii-shield-bevel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ascii-shield-stretch > .ascii-shield-bevel > * {
  flex: 1;
}

.ascii-shield-network {
  width: min(718px, 100%);
}

.ascii-shield-network .network-card {
  width: 100%;
}

.ascii-shield-post {
  width: 100%;
  max-width: 858px;
  margin: 0 auto;
}

.shield-rail {
  position: absolute;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: rgba(243, 213, 118, 0.88);
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

.shield-rail-top {
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.shield-rail-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.shield-rail-left,
.shield-rail-right {
  top: 14px;
  bottom: 14px;
  width: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1.4;
  white-space: pre;
  overflow: hidden;
  text-align: center;
}

.shield-rail-left {
  left: 0;
}

.shield-rail-right {
  right: 0;
}

.ascii-shield-bevel,
.artist-shield-bevel {
  padding: 2px;
  background: linear-gradient(135deg, #f3d576 0%, #9b7a22 45%, #f3d576 100%);
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

.ascii-shield-bevel > .managed-artist-card,
.ascii-shield-bevel > .news-hero-card,
.ascii-shield-bevel > .news-archive-row,
.ascii-shield-bevel > .show-card,
.ascii-shield-bevel > .network-card,
.ascii-shield-bevel > .single-post-shell {
  background: #060608;
  border: none;
  clip-path: polygon(
    13px 0,
    calc(100% - 13px) 0,
    100% 13px,
    100% calc(100% - 13px),
    calc(100% - 13px) 100%,
    13px 100%,
    0 calc(100% - 13px),
    0 13px
  );
}

.managed-artist-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 310px) 1fr;
  align-items: stretch;
  background: #060608;
  border: none;
}

.managed-artist-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #08090d;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.managed-press-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.managed-photo-placeholder {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.managed-logo-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: 110px;
  max-height: 54px;
  background: rgba(6, 6, 8, 0.84);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.5rem;
  display: grid;
  place-items: center;
}

.managed-logo-badge img {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  display: block;
}

.managed-logo-badge img[src$=".svg"],
.upload-preview img[src$=".svg"] {
  min-width: 48px;
  height: auto;
}

.managed-artist-body {
  padding: 1.75rem;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.managed-artist-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.managed-artist-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: 0.12em;
  color: var(--text-marble);
}

.managed-artist-genre {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan-pulse);
}

.managed-artist-bio {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.managed-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.artist-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.artist-link-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.artist-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.artist-pill-link {
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-marble);
  border: 1px solid var(--border-stone);
  padding: 0.4rem 0.7rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.artist-pill-link:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.enquiry-btn {
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #060608;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 1px solid var(--gold-bright);
  padding: 0.75rem 1.35rem;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.enquiry-btn:hover {
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* Backend Admin Portal */
.admin-stage {
  max-width: 1220px;
}

.admin-login-gate {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.admin-login-gate[hidden],
#admin-dashboard[hidden] {
  display: none;
}

.login-panel {
  width: min(440px, 100%);
}

.invite-result-box {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--bg-void);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.invite-result-box[hidden] {
  display: none;
}

.invite-result-box input {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  color: var(--cyan-pulse);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.55rem 0.7rem;
}

.admin-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.75rem;
  padding-top: 1.75rem;
  align-items: start;
}

.admin-panel {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  border-top: 2px solid var(--gold);
  padding: 1.5rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-stone);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.admin-count {
  font-size: 0.8rem;
  color: var(--cyan-pulse);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label,
.upload-card label {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.field-group input,
.field-group select,
.field-group textarea,
.upload-card input[type="url"] {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--border-stone);
  color: var(--text-marble);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.6rem 0.75rem;
  outline: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.upload-card input[type="url"]:focus {
  border-color: var(--gold);
}

.field-section {
  border: 1px solid var(--border-stone);
  padding: 0.9rem 1rem 1rem;
  margin: 0;
}

.field-section legend {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 0 0.45rem;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--border-stone);
  background: rgba(6, 6, 8, 0.55);
  padding: 0.85rem;
}

.upload-preview {
  height: 110px;
  border: 1px dashed var(--border-stone);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-void);
}

.upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#press-preview img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center 20%;
}

.preview-empty {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.file-input {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-stone);
  background: transparent;
  color: var(--text-marble);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.admin-btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-bright);
  color: #060608;
  font-weight: 700;
}

.admin-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.admin-btn-danger {
  border-color: rgba(224, 79, 61, 0.45);
  color: var(--crimson-spark);
}

.admin-btn-danger:hover {
  background: rgba(224, 79, 61, 0.12);
}

.admin-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.74rem;
  color: var(--cyan-pulse);
}

.admin-status.is-error {
  color: var(--crimson-spark);
}

.admin-artist-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-empty {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.admin-artist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--bg-void);
  border: 1px solid var(--border-stone);
}

.admin-artist-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.admin-artist-info strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.admin-artist-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.admin-row-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .admin-layout,
  .managed-artist-card {
    grid-template-columns: 1fr;
  }

  .managed-artist-media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 240px;
    border-bottom: 1px dashed var(--border-gold);
  }

  .managed-artist-body {
    border-left: none;
  }
}

@media (max-width: 640px) {
  .field-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADMIN TABS, NEWS BLOG (HERO + THUMBNAIL ARCHIVE), SHOWS & CONTACT CAPTCHA
   ========================================================================== */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.admin-tab {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  padding: 0.6rem 1rem;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.admin-tab:hover {
  border-color: var(--border-gold);
  color: var(--text-marble);
}

.admin-tab.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.admin-tab-panel[hidden] {
  display: none;
}

.panel-head-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* News Blog: Hero (3 Most Recent) + Older Thumbnail Archive */
.news-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-hero:has(.roster-empty-state) {
  display: block;
}

.news-hero-card {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  border-top: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-hero-media {
  aspect-ratio: 16 / 10;
  background: #08090d;
  border-bottom: 1px solid var(--border-stone);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.news-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-hero-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.news-date {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan-pulse);
}

.news-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--text-marble);
}

.news-excerpt {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.news-read-btn {
  align-self: flex-start;
  margin-top: auto;
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  cursor: pointer;
}

.news-read-btn:hover {
  text-decoration: underline;
}

/* Older Posts Chronological Archive (Left-Hand Thumbnail <= 76px) */
.news-archive-wrap {
  margin-top: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-stone);
}

.news-archive-wrap[hidden] {
  display: none;
}

.news-archive-heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.news-archive {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.news-archive-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
}

.news-thumb-wrap {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  flex-shrink: 0;
  background: #08090d;
  border: 1px solid var(--border-stone);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb-empty {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.news-archive-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-archive-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: var(--text-marble);
}

/* Full Post Reader Modal */
.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.reader-modal[hidden] {
  display: none;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.86);
  backdrop-filter: blur(6px);
}

.reader-box {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-obsidian);
  border: 1px solid var(--gold);
  padding: 1.75rem;
}

.reader-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.reader-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  letter-spacing: 0.08em;
}

.reader-image-wrap {
  margin-bottom: 1.15rem;
  border: 1px solid var(--border-stone);
  overflow: hidden;
}

.reader-image-wrap[hidden] {
  display: none;
}

.reader-image-wrap img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.reader-body {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-marble);
  white-space: pre-wrap;
}

/* Shows Grid */
.shows-section {
  padding-top: 2rem;
}

.shows-section-past {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.shows-section-heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.show-card-past .show-flyer {
  filter: saturate(0.75) brightness(0.9);
}

body:not(.admin-page) .show-ticket-btn-closed {
  border-color: rgba(237, 232, 220, 0.32);
  color: rgba(237, 232, 220, 0.65);
}

body:not(.admin-page) .show-ticket-btn-closed::before,
body:not(.admin-page) .show-ticket-btn-closed::after {
  color: rgba(237, 232, 220, 0.45);
}

.shows-grid:has(.roster-empty-state) {
  display: block;
}

.show-card {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  border-top: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.show-flyer-wrap {
  aspect-ratio: 4 / 5;
  background: #08090d;
  border-bottom: 1px solid var(--border-stone);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.show-flyer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.show-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.show-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.show-card-venue {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.show-ticket-btn {
  width: 100%;
  text-align: center;
}

/* Contact Form & Math CAPTCHA */
.contact-wrap {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
}

.contact-panel {
  width: min(580px, 100%);
}

.captcha-box {
  border: 1px solid var(--border-gold);
  background: rgba(6, 6, 8, 0.7);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.captcha-box label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.captcha-question {
  color: var(--gold-bright);
  font-size: 0.95rem;
}

.captcha-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.captcha-row input {
  width: 130px;
  background: var(--bg-void);
  border: 1px solid var(--border-stone);
  color: var(--text-marble);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  outline: none;
}

.captcha-row input:focus {
  border-color: var(--gold);
}

@media (max-width: 960px) {
  .news-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .news-archive-row {
    flex-wrap: wrap;
  }
}

/* The Network Partners Page */
.network-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
  align-items: center;
}

.network-card {
  width: min(680px, 100%);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  border-top: 2px solid var(--gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.network-image-link {
  display: block;
  background: #08090d;
  border-bottom: 1px solid var(--border-stone);
  overflow: hidden;
}

.network-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

a.network-image-link:hover .network-image {
  transform: scale(1.02);
  opacity: 0.92;
}

.network-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: center;
}

.network-partner-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.network-partner-name a {
  color: var(--gold-bright);
  text-decoration: none;
}

.network-partner-name a:hover {
  text-decoration: underline;
}

.network-partner-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   CENTER-SCREEN COOKIE & PRIVACY CONSENT MODAL (GDPR / CCPA-CPRA / AU)
   ========================================================================== */

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.consent-modal[hidden] {
  display: none;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.82);
  backdrop-filter: blur(5px);
}

.consent-box {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: visible;
  background: var(--bg-obsidian);
  border: 1px solid var(--gold);
  border-top: 2px solid var(--gold-bright);
  padding: 1.65rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consent-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cyan-pulse);
}

.consent-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: 0.12em;
  color: var(--text-marble);
}

.consent-copy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.consent-copy a {
  color: var(--gold-bright);
  text-decoration: underline;
}

.consent-gpc-badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--cyan-pulse);
  border: 1px solid rgba(76, 224, 210, 0.35);
  background: rgba(76, 224, 210, 0.06);
  padding: 0.45rem 0.7rem;
}

.consent-gpc-badge[hidden] {
  display: none;
}

.consent-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-void);
  border: 1px solid var(--border-stone);
}

.consent-details[hidden] {
  display: none;
}

.consent-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.74rem;
}

.consent-option-text strong {
  display: block;
  color: var(--text-marble);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.consent-option-text span {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
  display: block;
}

.consent-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.consent-actions .admin-btn {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.consent-secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.consent-btn-optout {
  border-color: var(--border-gold);
  color: var(--gold-bright);
  font-weight: 700;
}

.consent-btn-optout:hover {
  background: rgba(212, 175, 55, 0.12);
}

@media (max-width: 540px) {
  .consent-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NATIVE BLOG BLOCK COMPOSER & INLINE POST BLOCKS (IMAGES + SUBSCRIBE)
   ========================================================================== */

.block-composer-wrap {
  border: 1px solid var(--border-stone);
  background: rgba(6, 6, 8, 0.55);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.block-composer-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.block-composer-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.block-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.block-add-btn {
  font-size: 0.66rem;
  padding: 0.42rem 0.7rem;
}

.news-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.composer-block {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  border-left: 2px solid var(--gold);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.composer-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.composer-block-type {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--cyan-pulse);
}

.composer-block-controls {
  display: flex;
  gap: 0.3rem;
}

.block-mini-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.66rem;
}

.composer-block input:not([type="file"]),
.composer-block textarea {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--border-stone);
  color: var(--text-marble);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.52rem 0.68rem;
  outline: none;
}

.composer-block input:focus,
.composer-block textarea:focus {
  border-color: var(--gold);
}

/* Public Rendered Post Blocks */
.post-block-heading {
  margin: 1.4rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.post-block-paragraph {
  margin: 0 0 1rem;
  white-space: pre-wrap;
}

.post-block-figure {
  margin: 1.25rem 0;
  border: 1px solid var(--border-stone);
  background: #08090d;
  overflow: hidden;
}

.post-block-image-link {
  display: block;
}

.post-block-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.post-block-image-link:hover .post-block-image {
  opacity: 0.9;
}

.post-block-caption {
  padding: 0.55rem 0.85rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-stone);
}

.post-subscribe-box {
  margin: 1.4rem 0;
  padding: 1.25rem;
  background: var(--bg-void);
  border: 1px solid var(--border-gold);
  border-top: 2px solid var(--gold-bright);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-subscribe-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.post-subscribe-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.post-subscribe-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-stone);
  color: var(--text-marble);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.65rem 0.8rem;
  outline: none;
}

.post-subscribe-input:focus {
  border-color: var(--gold);
}

/* ==========================================================================
   PUBLIC ASCII-STYLIZED BUTTONS & FORMS (APPLIED OUTSIDE ADMIN PORTAL)
   ========================================================================== */

/* Primary public ASCII buttons: [= LABEL =] with pure ASCII character glow */
body:not(.admin-page) .enquiry-btn,
body:not(.admin-page) .admin-btn-gold,
body:not(.admin-page) .consent-btn-optout {
  background: transparent;
  border: 1px dashed var(--border-gold);
  color: var(--gold-bright);
  box-shadow: none;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.65rem 1rem;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-page) .enquiry-btn::before,
body:not(.admin-page) .admin-btn-gold::before,
body:not(.admin-page) .consent-btn-optout::before {
  content: '[= ';
  color: var(--gold);
}

body:not(.admin-page) .enquiry-btn::after,
body:not(.admin-page) .admin-btn-gold::after,
body:not(.admin-page) .consent-btn-optout::after {
  content: ' =]';
  color: var(--gold);
}

body:not(.admin-page) .enquiry-btn:hover,
body:not(.admin-page) .enquiry-btn:focus-visible,
body:not(.admin-page) .admin-btn-gold:hover,
body:not(.admin-page) .admin-btn-gold:focus-visible,
body:not(.admin-page) .consent-btn-optout:hover,
body:not(.admin-page) .consent-btn-optout:focus-visible {
  background: transparent;
  border-color: var(--gold-bright);
  color: #fff8dc;
  box-shadow: none;
  transform: none;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.95),
    0 0 16px rgba(212, 175, 55, 0.75);
  outline: none;
}

/* Secondary / utility public ASCII buttons: [ LABEL ] */
body:not(.admin-page) .back-link,
body:not(.admin-page) .replay-btn,
body:not(.admin-page) .ambience-toggle-btn,
body:not(.admin-page) .skip-intro-btn,
body:not(.admin-page) .artist-pill-link,
body:not(.admin-page) .admin-btn-ghost {
  background: transparent;
  border: none;
  color: rgba(237, 232, 220, 0.82);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  padding: 0.45rem 0.4rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

body:not(.admin-page) .back-link::before,
body:not(.admin-page) .replay-btn::before,
body:not(.admin-page) .ambience-toggle-btn::before,
body:not(.admin-page) .skip-intro-btn::before,
body:not(.admin-page) .artist-pill-link::before,
body:not(.admin-page) .admin-btn-ghost::before {
  content: '[ ';
  color: var(--gold);
}

body:not(.admin-page) .back-link::after,
body:not(.admin-page) .replay-btn::after,
body:not(.admin-page) .ambience-toggle-btn::after,
body:not(.admin-page) .skip-intro-btn::after,
body:not(.admin-page) .artist-pill-link::after,
body:not(.admin-page) .admin-btn-ghost::after {
  content: ' ]';
  color: var(--gold);
}

body:not(.admin-page) .back-link:hover,
body:not(.admin-page) .back-link:focus-visible,
body:not(.admin-page) .replay-btn:hover,
body:not(.admin-page) .replay-btn:focus-visible,
body:not(.admin-page) .ambience-toggle-btn:hover,
body:not(.admin-page) .ambience-toggle-btn:focus-visible,
body:not(.admin-page) .skip-intro-btn:hover,
body:not(.admin-page) .skip-intro-btn:focus-visible,
body:not(.admin-page) .artist-pill-link:hover,
body:not(.admin-page) .artist-pill-link:focus-visible,
body:not(.admin-page) .admin-btn-ghost:hover,
body:not(.admin-page) .admin-btn-ghost:focus-visible {
  background: transparent;
  color: #fff8dc;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.9),
    0 0 14px rgba(212, 175, 55, 0.65);
  outline: none;
}

/* Reader close button already has [X] text, avoid double brackets */
body:not(.admin-page) #reader-close::before,
body:not(.admin-page) #reader-close::after {
  content: none;
}

/* News inline read button */
body:not(.admin-page) .news-read-btn::before {
  content: '[ ';
  color: var(--gold);
}

body:not(.admin-page) .news-read-btn::after {
  content: ' ]';
  color: var(--gold);
}

body:not(.admin-page) .news-read-btn:hover {
  text-decoration: none;
  color: #fff8dc;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.9),
    0 0 14px rgba(212, 175, 55, 0.65);
}

/* Public ASCII Forms & Utility Boxes (Contact Form, Subscribe Box, Consent Modal, Policy Banner, Empty States) */
body:not(.admin-page) .contact-panel,
body:not(.admin-page) .post-subscribe-box,
body:not(.admin-page) .consent-box,
body:not(.admin-page) .policy-meta-banner,
body:not(.admin-page) .roster-empty-state {
  position: relative;
  background: #060608;
  border: 1px dashed var(--border-gold);
  overflow: visible;
}

body:not(.admin-page) .single-post-shell {
  padding: 1.75rem 1.85rem;
}

@media (max-width: 640px) {
  body:not(.admin-page) .single-post-shell {
    padding: 1.25rem 1rem;
  }
}

body:not(.admin-page) .single-post-featured,
body:not(.admin-page) .post-inline-figure img,
body:not(.admin-page) .news-thumb-wrap,
body:not(.admin-page) .managed-logo-badge {
  border: 1px dashed var(--border-gold);
}

body:not(.admin-page) .subpage-header {
  border-bottom: 1px dashed rgba(212, 175, 55, 0.35);
}

body:not(.admin-page) .contact-panel::before,
body:not(.admin-page) .post-subscribe-box::before,
body:not(.admin-page) .consent-box::before,
body:not(.admin-page) .policy-meta-banner::before,
body:not(.admin-page) .roster-empty-state::before {
  content: '+---';
  position: absolute;
  top: -0.62rem;
  left: -0.1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: #060608;
  padding-right: 0.25rem;
  pointer-events: none;
}

body:not(.admin-page) .contact-panel::after,
body:not(.admin-page) .post-subscribe-box::after,
body:not(.admin-page) .consent-box::after,
body:not(.admin-page) .policy-meta-banner::after,
body:not(.admin-page) .roster-empty-state::after {
  content: '---+';
  position: absolute;
  bottom: -0.62rem;
  right: -0.1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: #060608;
  padding-left: 0.25rem;
  pointer-events: none;
}

body:not(.admin-page) form label::before {
  content: '> ';
  color: var(--gold);
}

body:not(.admin-page) .consent-option::before {
  content: none;
}

body:not(.admin-page) form input:not([type="checkbox"]),
body:not(.admin-page) form textarea,
body:not(.admin-page) .post-subscribe-input {
  background: #060608;
  border: 1px dashed rgba(237, 232, 220, 0.28);
  color: var(--text-marble);
  font-family: var(--font-mono);
  caret-color: var(--gold-bright);
  transition: border-color 0.2s ease, text-shadow 0.2s ease;
}

body:not(.admin-page) form input:not([type="checkbox"]):focus,
body:not(.admin-page) form textarea:focus,
body:not(.admin-page) .post-subscribe-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

body:not(.admin-page) .captcha-box {
  background: #060608;
  border: 1px dashed var(--border-gold);
}

@media (max-width: 780px) {
  .frame-column {
    display: none;
  }

  .revealed-stage,
  .subpage-stage {
    padding: 6.2rem 0.75rem 5.25rem;
  }

  .stage-header {
    padding-top: 0.35rem;
  }

  .scutum-ascii {
    font-size: clamp(9.4px, 2.75vw, 14px);
  }

  .scutum-ground-glow {
    width: min(235px, 66vw);
  }

  .replay-btn {
    position: static;
    margin-top: 0.5rem;
  }

  .ambience-toggle-btn {
    top: 4.15rem;
    right: 1rem;
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scutum-float,
  .scutum-ground-glow,
  .scutum-spin.is-spinning {
    animation: none !important;
  }
}

/* ==========================================================================
   TOP-RIGHT SUBPAGE ASCII HAMBURGER DROPDOWN & UTILITY BAR
   ========================================================================== */

.top-right-controls {
  position: fixed;
  top: 4.55rem;
  right: var(--frame-inner-right, clamp(9.6rem, 12vw, 13.5rem));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

body.subpage .top-right-controls {
  top: var(--frame-top-h, 3.85rem);
  left: var(--frame-inner-left, 6.5rem);
  right: var(--frame-inner-right, 6.5rem);
  justify-content: flex-end;
  padding: 0.38rem 0;
  background: #060608;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.22);
}

.top-right-controls .ambience-toggle-btn {
  position: static;
  top: auto;
  right: auto;
}

.subpage-menu-wrap {
  position: relative;
}

.subpage-menu-btn {
  background: transparent;
  border: none;
  color: rgba(237, 232, 220, 0.88);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.4rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.subpage-menu-btn::before {
  content: '[ ';
  color: var(--gold);
}

.subpage-menu-btn::after {
  content: ' ]';
  color: var(--gold);
}

.subpage-menu-btn:hover,
.subpage-menu-btn:focus-visible {
  color: #fff8dc;
  text-shadow:
    0 0 6px rgba(243, 213, 118, 0.9),
    0 0 14px rgba(212, 175, 55, 0.65);
  outline: none;
}

.subpage-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 272px;
  background: #060608;
  border: 1px dashed var(--border-gold);
  padding: 0.55rem 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.78);
}

.subpage-menu-dropdown[hidden] {
  display: none;
}

.subpage-menu-dropdown::before {
  content: '+---';
  position: absolute;
  top: -0.62rem;
  left: -0.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: #060608;
  padding-right: 0.25rem;
  pointer-events: none;
}

.subpage-menu-dropdown::after {
  content: '---+';
  position: absolute;
  bottom: -0.62rem;
  right: -0.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  background: #060608;
  padding-left: 0.25rem;
  pointer-events: none;
}

.subpage-menu-link {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(237, 232, 220, 0.84);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, text-shadow 0.18s ease;
}

.subpage-menu-link::before {
  content: '  ';
  white-space: pre;
}

.subpage-menu-link.is-current {
  color: var(--gold-bright);
}

.subpage-menu-link.is-current::before {
  content: '> ';
  color: var(--gold-bright);
}

.subpage-menu-link:hover,
.subpage-menu-link:focus-visible {
  color: #fff8dc;
  background: rgba(212, 175, 55, 0.08);
  text-shadow: 0 0 8px rgba(243, 213, 118, 0.7);
  outline: none;
}

@media (max-width: 780px) {
  .top-right-controls,
  body.subpage .top-right-controls {
    top: var(--frame-top-h, 2.75rem);
    left: 0;
    right: 0;
    z-index: 40;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.25rem 0.9rem;
    background: #060608;
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
    transition: opacity 0.35s ease;
  }

  .subpage-menu-btn {
    font-size: 0.58rem;
  }
}

/* ==========================================================================
   SINGLE BLOG POST PAGE, CATEGORIES, TABLE OF CONTENTS & EMBEDS
   ========================================================================== */

.news-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.news-cat-filter {
  background: transparent;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  color: rgba(237, 232, 220, 0.78);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.news-cat-filter.is-active,
.news-cat-filter:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.news-card-meta,
.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-category-pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.post-category-pill:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #fff8dc;
}

.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-title-link:hover {
  color: var(--gold-bright);
}

.single-post-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
  overflow: visible;
}

.single-post-shell > *,
.single-post-body,
.single-post-body > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.single-post-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-wrap: break-word;
}

.single-post-body p {
  margin: 0;
}

.single-post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.55rem);
  letter-spacing: 0.08em;
  color: var(--text-marble);
  line-height: 1.22;
}

.single-post-excerpt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.single-post-featured {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--border-stone);
  background: #08080b;
  overflow: hidden;
}

.single-post-featured img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 480px;
  height: auto;
  object-fit: cover;
}

.post-inline-figure {
  margin: 0.75rem 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.post-inline-figure a {
  display: block;
  width: 100%;
}

.post-inline-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-stone);
  background: #08080b;
}

.post-inline-figure figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* Blog Heading Levels (H1 - H4) */
.post-heading-h1 {
  margin: 1.25rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  letter-spacing: 0.08em;
  color: var(--text-marble);
  line-height: 1.24;
}

.post-heading-h2 {
  margin: 1.1rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  line-height: 1.28;
}

.post-heading-h3 {
  margin: 0.95rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  letter-spacing: 0.07em;
  color: var(--gold);
  line-height: 1.32;
}

.post-heading-h4 {
  margin: 0.8rem 0 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 213, 118, 0.9);
  line-height: 1.35;
}

.post-toc {
  position: relative;
  background: #060608;
  border: 1px dashed var(--border-gold);
  padding: 1rem 1.25rem;
}

.post-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  margin-bottom: 0.65rem;
}

.post-toc-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-toc-level-h2 {
  margin-left: 0.45rem;
}

.post-toc-level-h3 {
  margin-left: 1.15rem;
}

.post-toc-level-h4 {
  margin-left: 1.85rem;
}

.post-toc-list a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(237, 232, 220, 0.86);
  text-decoration: none;
}

.post-toc-list a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.post-embed-block {
  margin: 0.75rem 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.post-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050507;
  border: 1px solid var(--border-gold);
  overflow: hidden;
}

.post-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-embed-block figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.composer-heading-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.composer-heading-level {
  padding: 0.55rem 0.5rem;
  font-weight: 700;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-marble);
  cursor: pointer;
}

.admin-checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
  cursor: pointer;
}

.admin-slug-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  text-decoration: none;
}

.admin-slug-link:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* ==========================================================================
   ADMIN ANALYTICS (SITE-KIT STYLE DASHBOARD)
   ========================================================================== */

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.analytics-kpi-card {
  background: rgba(14, 14, 19, 0.85);
  border: 1px solid var(--border-stone);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.analytics-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.analytics-kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
  line-height: 1.1;
}

.analytics-bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 165px;
  padding-top: 1rem;
}

.analytics-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 155px;
}

.analytics-day-val {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold-bright);
  min-height: 0.8rem;
}

.analytics-day-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-stone);
}

.analytics-day-bar {
  width: 72%;
  background: linear-gradient(180deg, var(--gold-bright), rgba(212, 175, 55, 0.45));
  transition: height 0.25s ease;
}

.analytics-day-lbl {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.analytics-list-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.analytics-list-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.analytics-list-label {
  color: var(--text-marble);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list-count {
  color: var(--gold-bright);
}

.analytics-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.25s ease;
}

.analytics-device-split {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.analytics-device-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-marble);
}

/* ==========================================================================
   PRIVACY & COOKIE POLICY PAGE
   ========================================================================== */

.policy-shell {
  width: 100%;
  max-width: 860px;
  margin: 1.75rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  color: rgba(237, 232, 220, 0.88);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.policy-meta-banner {
  background: #060608;
  border: 1px dashed var(--border-gold);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.policy-meta-label {
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-right: 0.4rem;
}

.policy-cta-row {
  margin-top: 0.6rem;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.policy-section h3 {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: var(--text-marble);
}

.policy-section p {
  margin: 0;
}

.policy-section ul {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.policy-shell a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-shell a:hover {
  color: #fff8dc;
}

.policy-shell code {
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.06rem 0.32rem;
  font-size: 0.76rem;
  color: var(--gold-bright);
}

.policy-inline-btn {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.policy-inline-btn:hover {
  color: #fff8dc;
}

.policy-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-stone);
  background: #060608;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.policy-table th,
.policy-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(237, 232, 220, 0.12);
  vertical-align: top;
}

.policy-table th {
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: rgba(212, 175, 55, 0.06);
}

.policy-table tr:last-child td {
  border-bottom: none;
}
