/* ==========================================================================
   ALEXANDRIA PROTOCOL — THE ANCIENT GREEK SANCTUARY OF ON-CHAIN INTELLIGENCE
   Authentic Honeyed Papyrus Scrolls, Temple Mahogany, Burnished Gold & Celestial Circuits
   ========================================================================== */

:root {
  /* Ancient Temple Wood & Shadows */
  --temple-void: #0D0907;
  --temple-wood: #18110C;
  --temple-mahogany: #251B14;
  --temple-shelf: #2E221A;
  
  /* Authentic Aged Papyrus Reed Tones */
  --papyrus-light: #F7EFE0;
  --papyrus-sheet: #EFE4CF;
  --papyrus-base: #E4D5BA;
  --papyrus-aged: #D4C3A3;
  --papyrus-dark: #C2B08C;
  --papyrus-border: #9C855E;
  
  /* Indelible Scriptorium Inks */
  --ink-primary: #15100B;
  --ink-secondary: #352A20;
  --ink-muted: #6B5B49;
  --ink-sepia: #856E54;
  
  /* Hellenic Burnished Gold Leaf */
  --gold-leaf: #D4AF37;
  --gold-bright: #F5E298;
  --gold-shadow: #8A6A1E;
  --gold-gradient: linear-gradient(135deg, #F5E298 0%, #D4AF37 50%, #8A6A1E 100%);
  
  /* Celestial Constellation Cyan (from the Grand Orrery) */
  --celestial-cyan: #5CE1E6;
  --celestial-glow: rgba(92, 225, 230, 0.45);
  --celestial-blue: #2E79B9;
  
  /* Mediterranean Cinnabar Wax */
  --cinnabar-seal: #B52828;
  --cinnabar-dark: #7A1414;
  --cinnabar-glow: rgba(181, 40, 40, 0.4);

  /* Typography */
  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Smooth Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #120B07;
}

body.greek-sanctuary {
  background-color: #120B07;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 226, 152, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 10% 25%, rgba(181, 40, 40, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(92, 225, 230, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 35% 70%, rgba(212, 175, 55, 0.09) 0%, transparent 50%),
    linear-gradient(180deg, rgba(16, 10, 6, 0.88) 0%, rgba(22, 14, 9, 0.82) 50%, rgba(13, 8, 5, 0.94) 100%),
    url('assets/wood-desk.jpg');
  background-attachment: fixed;
  background-size: cover;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.68;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Papyrus Fiber Micro-Texture (Non-flickering, gentle grain) */
.papyrus-fibers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: radial-gradient(#F5E298 1px, transparent 0);
  background-size: 24px 24px;
}

/* Greek Key Meander Pattern Ribbon */
.greek-meander-bar {
  width: 100%;
  height: 12px;
  background-color: var(--gold-leaf);
  background-image: 
    linear-gradient(180deg, rgba(255, 246, 200, 0.5) 0%, rgba(212, 175, 55, 1) 50%, rgba(138, 106, 30, 0.9) 100%),
    repeating-linear-gradient(
      90deg,
      #1F140C 0px,
      #1F140C 5px,
      transparent 5px,
      transparent 14px,
      #1F140C 14px,
      #1F140C 18px
    );
  box-shadow: 0 2px 8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
  opacity: 0.92;
}

/* ==========================================================================
   TOP SACRED LEDGER
   ========================================================================== */
.top-ledger {
  background: linear-gradient(180deg, #1C120A 0%, #120B06 100%);
  color: #DFC8A5;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.6);
  padding: 8px 1.5rem;
}

.ledger-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ledger-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-weight: 700;
}

.greek-omega-symbol {
  font-family: var(--font-display);
  color: var(--cinnabar-seal);
  font-size: 0.95rem;
  font-weight: 900;
}

.ledger-quote {
  font-style: italic;
  color: #BFB097;
}

.ledger-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-bright);
}

.stat-sep {
  color: var(--gold-shadow);
}

/* ==========================================================================
   MASTER HEADER & GREEK MONOGRAM
   ========================================================================== */
.master-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(24, 16, 11, 0.98) 0%, rgba(16, 10, 7, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold-leaf);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(245, 226, 152, 0.3);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-monogram .brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.greek-seal-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-leaf);
  padding: 2px;
  background: var(--temple-mahogany);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.brand-link:hover .greek-seal-frame {
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 0 18px var(--gold-leaf);
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-greek-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  font-weight: 700;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #FFF4D0 0%, #E6C364 45%, #AA812A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--celestial-cyan);
  font-weight: 700;
}

.master-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #DFD3BE;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-leaf);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--gold-bright);
}

.nav-item:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Hellenic Buttons */
.btn-hellenic {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--gold-leaf);
  box-shadow: 2px 2px 0 #000;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-gold-leaf {
  background: var(--gold-gradient);
  color: var(--temple-void);
  border-color: var(--gold-bright);
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.btn-gold-leaf:hover {
  transform: translate(-1px, -1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.6);
  color: #000;
}

.btn-cinnabar-seal {
  background: var(--cinnabar-seal);
  color: #FFF6EC;
  border-color: #E63946;
  box-shadow: 0 2px 8px var(--cinnabar-glow);
}

.btn-cinnabar-seal:hover {
  background: var(--cinnabar-dark);
  box-shadow: 0 4px 14px var(--cinnabar-glow);
}

.seal-icon {
  font-family: var(--font-display);
  font-size: 1rem;
}

/* ==========================================================================
   HERO SECTION: ANCIENT TEMPLE & ILLUMINATED PAPYRUS SCROLL
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 1380px;
  margin: 1.5rem auto 4.5rem;
  padding: 0 1.5rem;
}

/* Backdrop Artwork with Vignette */
.hero-temple-backdrop {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 70px rgba(0,0,0,0.85), inset 0 0 40px rgba(0,0,0,0.6);
}

.temple-bg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.15) saturate(1.2);
  transform: scale(1.02);
}

.temple-overlay-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 30%, rgba(92, 225, 230, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 25% 40%, rgba(245, 226, 152, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 14, 10, 0.5) 0%, rgba(16, 10, 7, 0.8) 100%);
}

.temple-circuit-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(92, 225, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Foreground Papyrus Scroll Container */
.hero-scroll-container {
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 1140px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.9));
}

.hero-roll-top {
  position: relative;
  z-index: 10;
  margin-bottom: -58px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  pointer-events: none;
}

.hero-roll-bottom {
  position: relative;
  z-index: 10;
  margin-top: -54px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  pointer-events: none;
}

/* The Papyrus Sheet Itself (Authentic Woven Reed Texture) */
.papyrus-scroll-sheet {
  background-color: #D3B27D;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 246, 215, 0.12) 0%, transparent 75%),
    url('assets/papyrus-royal.jpg');
  background-size: cover;
  background-position: center;
  border-left: 3px solid #2B1D11;
  border-right: 3px solid #2B1D11;
  padding: 4.5rem 3.5rem 4rem;
  box-shadow: 
    inset 0 45px 40px -10px rgba(25, 15, 6, 0.8),
    inset 0 -45px 40px -10px rgba(25, 15, 6, 0.8),
    inset 16px 0 28px -8px rgba(25, 15, 6, 0.4),
    inset -16px 0 28px -8px rgba(25, 15, 6, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 5;
}

.meander-corner-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(156, 133, 94, 0.4);
  pointer-events: none;
}

.meander-corner-frame::before {
  content: '❖';
  position: absolute;
  top: 4px;
  left: 6px;
  color: var(--gold-shadow);
  font-size: 1rem;
}

.meander-corner-frame::after {
  content: '❖';
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--gold-shadow);
  font-size: 1rem;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}

.incipit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--cinnabar-seal);
  background: rgba(181, 40, 40, 0.08);
  border: 1px dashed var(--cinnabar-seal);
  padding: 4px 12px;
  margin-bottom: 1.25rem;
}

.greek-symbol {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ink-primary);
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 0 rgba(245, 226, 152, 0.6);
}

.highlight-gold {
  color: #7A5310;
  background: linear-gradient(135deg, #85580E 0%, #B88924 50%, #613C03 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 0 rgba(245, 226, 152, 0.4));
}

.hero-subtitle-greek {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #5C4329;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 2rem;
}

.illuminated-drop {
  float: left;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--cinnabar-seal);
  text-shadow: 2px 2px 0 var(--gold-leaf);
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.btn-papyrus-primary {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-primary);
  color: #FFF7EC;
  border: 2px solid var(--gold-leaf);
  box-shadow: 4px 4px 0 var(--gold-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-papyrus-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold-shadow);
  background: #231C16;
}

.btn-papyrus-secondary {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(228, 213, 186, 0.6);
  color: var(--ink-primary);
  border: 2px solid var(--ink-primary);
  box-shadow: 4px 4px 0 var(--ink-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-papyrus-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink-primary);
  background: var(--papyrus-light);
}

/* Hero Metrics Folio */
.hero-metrics-folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--papyrus-border);
  border-bottom: 1px solid var(--papyrus-border);
  padding: 1rem 0;
  background: rgba(212, 195, 163, 0.3);
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink-primary);
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--ink-sepia);
}

.metric-sep {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-shadow);
  padding: 0 0.5rem;
}

/* ==========================================================================
   ASTROLABE PAPYRUS SHOWCASE & GLOWING CONSTELLATIONS
   ========================================================================== */
.hero-astrolabe-showcase {
  display: flex;
  justify-content: center;
}

.astrolabe-papyrus-card {
  width: 100%;
  max-width: 480px;
  background: #0E0914 url('assets/celestial-map.jpg') center/cover no-repeat;
  border: 3px double var(--gold-leaf);
  border-radius: 4px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(212, 175, 55, 0.4),
    inset 0 0 50px rgba(0, 0, 0, 0.75);
  padding: 1.25rem;
  color: #EDE4CF;
  position: relative;
  overflow: hidden;
}

.astrolabe-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.45);
  background: rgba(14, 9, 20, 0.7);
  padding: 0.5rem 0.75rem;
  margin: -0.5rem -0.5rem 0.75rem;
  border-radius: 2px;
}

.greek-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.block-telemetry {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--celestial-cyan);
}

.astrolabe-canvas-box {
  position: relative;
  background: radial-gradient(circle at center, rgba(30, 20, 45, 0.45) 0%, rgba(10, 6, 14, 0.75) 85%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

#astrolabeCanvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

/* Glowing Constellations Labels matching banner */
.canvas-star-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--celestial-cyan);
  text-shadow: 0 0 8px var(--celestial-cyan);
  pointer-events: none;
}

.canvas-star-label.cygnus { top: 22px; right: 28px; }
.canvas-star-label.andromeda { bottom: 65px; left: 24px; }
.canvas-star-label.lyra { top: 55px; left: 30px; }

.canvas-telemetry-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(16, 12, 8, 0.85);
  border: 1px solid rgba(92, 225, 230, 0.4);
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--celestial-cyan);
}

.astrolabe-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  padding-top: 0.65rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.foot-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--celestial-cyan);
}

.dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.foot-quote {
  font-style: italic;
  color: var(--gold-bright);
}

/* ==========================================================================
   PAPYRUS THESIS SECTION
   ========================================================================== */
.thesis-section {
  max-width: 1380px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.papyrus-scroll-sheet-card {
  background-color: #EFE4CF;
  background-image: 
    radial-gradient(circle, rgba(60, 40, 20, 0.12) 1.2px, transparent 1.2px),
    url('assets/papyrus-smooth.jpg');
  background-size: 16px 16px, 800px 800px;
  border: 2px solid #2B1D11;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.75),
    inset 0 0 0 2px rgba(212, 175, 55, 0.45),
    inset 0 0 50px rgba(100, 70, 30, 0.2);
  padding: 3.5rem 3.5rem;
  position: relative;
}

.greek-meander-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(80, 50, 20, 0.4);
  pointer-events: none;
}

.thesis-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.thesis-pre {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: #8A6A2E;
  font-weight: 900;
}

.thesis-header h2 {
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 900;
  color: #120B05;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

.greek-flourish {
  font-size: 1.3rem;
  color: var(--cinnabar-seal);
  margin-top: 0.5rem;
  text-shadow: 1px 1px 0 rgba(212, 175, 55, 0.5);
}

.thesis-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.thesis-col .col-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #120B05;
  border-bottom: 2px solid var(--gold-leaf);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.thesis-col p {
  font-size: 1.08rem;
  line-height: 1.72;
  color: #1A120A;
}

/* Illuminated Initial Drop Caps */
.thesis-col:nth-child(1) p::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: var(--cinnabar-seal);
  text-shadow: 2px 2px 0 var(--gold-leaf);
  font-weight: 900;
}

.thesis-col:nth-child(2) p::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: #8A6A1E;
  text-shadow: 2px 2px 0 var(--gold-bright);
  font-weight: 900;
}

.thesis-col:nth-child(3) p::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 8px;
  padding-top: 4px;
  color: #1B4E7A;
  text-shadow: 2px 2px 0 var(--celestial-cyan);
  font-weight: 900;
}

/* ==========================================================================
   THE SCRIPTURIUM (INSCRIBER FORGE ON ANCIENT PAPYRUS)
   ========================================================================== */
.scriptorium-section {
  max-width: 1380px;
  margin: 0 auto 5rem;
  padding: 3.5rem 2rem 4rem;
  background: 
    radial-gradient(circle at 80% 20%, rgba(245, 226, 152, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(181, 40, 40, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(22, 14, 9, 0.94) 0%, rgba(15, 9, 5, 0.97) 100%),
    url('assets/wood-desk.jpg') center/cover;
  border: 2px solid #8A6A3E;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: var(--gold-bright);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FFF4D0 0%, #E6C364 45%, #AA812A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.25rem;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8));
}

.section-sub {
  font-size: 1.15rem;
  color: #DFC8A5;
  margin-top: 0.5rem;
}

.scriptorium-desk {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
}

/* Left Desk Scroll */
.desk-left-scroll {
  background-color: #D3B27D;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 246, 215, 0.12) 0%, transparent 80%),
    url('assets/papyrus-royal.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 2px rgba(212, 175, 55, 0.45),
    inset 0 0 45px rgba(60, 35, 10, 0.35),
    0 14px 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.desk-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #E6D4B2 0%, #D8BE94 100%);
  border-bottom: 2px solid #8A6A40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 0.75rem 1.15rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 5;
}

.panel-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 13px;
  border: 1px solid rgba(138, 106, 64, 0.4);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.6) 0%, rgba(230, 215, 190, 0.6) 100%);
  color: #3A2616;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn .tab-glyph {
  font-size: 0.85rem;
}

.tab-btn:hover {
  color: #120B05;
  background: linear-gradient(180deg, #FFFDF8 0%, #E8D7BA 100%);
  border-color: #9C792B;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(180deg, #FFFDF8 0%, #F5E6CC 100%);
  border: 1.5px solid #8A6A40;
  border-bottom: 3px solid #D4AF37;
  color: #120B05;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(0,0,0,0.14), inset 0 1px 0 #FFF;
}

.archetype-pill-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFF2C6;
  background: linear-gradient(180deg, #3A2616 0%, #20130B 100%);
  border: 1.5px solid #D4AF37;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.2s ease;
}

.archetype-pill-btn:hover {
  background: linear-gradient(180deg, #4D331E 0%, #29180E 100%);
  border-color: #F5E298;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.archetype-pill-btn .pill-glyph {
  color: #E6C364;
  font-size: 0.85rem;
}

.editor-papyrus-inner {
  display: flex;
  flex: 1;
  min-height: 380px;
  max-height: 520px;
  background-color: #D3B27D;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 246, 215, 0.15) 0%, transparent 80%),
    url('assets/papyrus-royal.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 
    inset 0 0 40px rgba(50, 30, 10, 0.35),
    inset 0 0 90px rgba(35, 18, 5, 0.2);
  border-top: 1px solid #9C7844;
  border-bottom: 1px solid #9C7844;
}

.line-numbers {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #7D5C32;
  padding: 1.15rem 0.75rem;
  text-align: right;
  user-select: none;
  background: linear-gradient(90deg, rgba(40, 24, 12, 0.14) 0%, rgba(50, 30, 15, 0.05) 100%);
  border-right: 2px solid #8A6A40;
  display: flex;
  flex-direction: column;
  min-width: 44px;
  overflow: hidden;
  font-weight: 600;
  box-shadow: inset -2px 0 6px rgba(0,0,0,0.06);
}

.line-numbers span {
  display: block;
}

.editor-code-container {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.editor-syntax-view {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre;
  word-wrap: normal;
  overflow: hidden;
  pointer-events: none;
  color: #1A1008;
  z-index: 1;
  -webkit-font-smoothing: antialiased;
}

#agentPayload {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre;
  word-wrap: normal;
  overflow: auto;
  background: transparent;
  color: transparent;
  caret-color: #8B1E1E;
  border: none;
  outline: none;
  resize: none;
  z-index: 2;
  tab-size: 2;
  -webkit-font-smoothing: antialiased;
}

#agentPayload::selection {
  background: rgba(212, 175, 55, 0.45);
  color: transparent;
}

/* Scriptorium Syntax Inks */
.syn-section {
  color: #8C1D1D;
  background: rgba(212, 175, 55, 0.2);
  padding: 2px 8px;
  border-radius: 3px;
  border-left: 3px solid #C29B38;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.syn-key {
  color: #8C1D1D;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.syn-keyword {
  color: #9E2A2B;
  font-weight: 800;
}

.syn-str {
  color: #0E4877;
  font-weight: 600;
}

.syn-num {
  color: #8C6510;
  font-weight: 700;
}

.syn-comment {
  color: #6E5338;
  font-style: italic;
  font-weight: 500;
}

.syn-fn {
  color: #6B3A0E;
  font-weight: 700;
}

.syn-self {
  color: #7A3585;
  font-weight: 700;
}

.syn-ident {
  color: #1B5E20;
  font-weight: 600;
}

/* Custom Scrollbar for Editor & Terminal */
.editor-code-container #agentPayload::-webkit-scrollbar,
.term-history-papyrus::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.editor-code-container #agentPayload::-webkit-scrollbar-track,
.term-history-papyrus::-webkit-scrollbar-track {
  background: rgba(50, 30, 12, 0.12);
  border-radius: 4px;
}

.editor-code-container #agentPayload::-webkit-scrollbar-thumb,
.term-history-papyrus::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #A88755 0%, #7A5B36 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 246, 200, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.editor-code-container #agentPayload::-webkit-scrollbar-thumb:hover,
.term-history-papyrus::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #D4AF37 0%, #9C792B 100%);
}

.editor-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #DECCA7 0%, #CEB88E 100%);
  border-top: 2px solid #8A6A40;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 -2px 6px rgba(0,0,0,0.06);
  padding: 0.75rem 1.25rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-label {
  color: #4A3520;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.m-val {
  font-weight: 800;
  color: #120B05;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(138, 106, 64, 0.35);
  padding: 2px 7px;
  border-radius: 3px;
}

.text-cyan,
.m-val.text-cyan {
  color: #0A6064;
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  font-weight: 800;
}

.text-gold,
.m-val.text-gold {
  color: #7D5505;
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.5);
  font-weight: 800;
}

/* Right Desk Manifest */
.desk-right-manifest {
  display: flex;
  flex-direction: column;
}

.manifest-papyrus-card {
  background-color: #D3B27D;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 246, 215, 0.12) 0%, transparent 80%),
    url('assets/papyrus-royal.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 2px rgba(212, 175, 55, 0.4),
    inset 0 0 35px rgba(100, 70, 30, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.65);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.manifest-seal-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gold-leaf);
  padding-bottom: 1rem;
}

.wax-seal-ornament {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cinnabar-seal);
  color: #FFF6EC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 3px 8px var(--cinnabar-glow);
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.manifest-header-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}

.manifest-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.ledger-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dotted var(--papyrus-border);
}

.l-key { color: var(--ink-muted); }
.l-val { font-weight: 700; color: var(--ink-primary); }

.total-row {
  border-top: 2px solid var(--ink-primary);
  border-bottom: none;
  padding-top: 0.75rem;
  font-size: 0.92rem;
}

.highlight-cinnabar {
  color: var(--cinnabar-seal);
  font-size: 1.1rem;
  font-weight: 900;
}

/* Seal Press Button */
.btn-papyrus-seal-press {
  width: 100%;
  padding: 14px 20px;
  background: var(--ink-primary);
  color: #FFF6EC;
  border: 2px solid var(--gold-leaf);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 4px 4px 0 var(--gold-shadow);
  transition: all var(--transition-fast);
}

.btn-papyrus-seal-press:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold-shadow);
  background: #251B14;
}

.press-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.press-greek {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
}

.press-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.press-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #DFC8A5;
}

.press-wax-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cinnabar-seal);
  text-shadow: 0 0 10px rgba(181, 40, 40, 0.6);
}

/* Inscription Console */
.inscription-console {
  background: #120C08;
  color: #EDE4CF;
  border: 1px solid var(--gold-shadow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.75rem;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.c-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--celestial-cyan);
}

.console-body {
  max-height: 100px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.text-muted { color: #9C855E; }
.text-success { color: var(--celestial-cyan); }
.text-gold-log { color: var(--gold-bright); }

/* ==========================================================================
   AUTHENTIC PAPYRUS SCROLL WINDOW SYSTEM & ORACLE CHAMBER
   Cylindrical Rolls, Dog-Ear Curled Corners, Reed Grid & Scribe Inks
   ========================================================================== */
.sandbox-section {
  max-width: 1380px;
  margin: 0 auto 5.5rem;
  padding: 4rem 2rem 4.5rem;
  background: 
    radial-gradient(circle at 50% 15%, rgba(245, 226, 152, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 85%, rgba(92, 225, 230, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(20, 13, 8, 0.94) 0%, rgba(14, 9, 5, 0.97) 100%),
    url('assets/wood-desk.jpg') center/cover;
  border: 2px solid #8A6A3E;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.papyrus-scroll-window {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.9));
}

/* Photorealistic Ancient Papyrus Cylinder Rolls (Top & Bottom) */
.scroll-roll-banner {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  pointer-events: none;
}

.roll-top-banner {
  margin-bottom: -68px;
}

.roll-bottom-banner {
  margin-top: -64px;
}

.scroll-cylinder-img {
  width: calc(100% + 220px);
  max-width: 1300px;
  margin: 0 -110px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.95));
}

/* The Authentic Papyrus Frame Sheet */
.sandbox-frame-papyrus {
  position: relative;
  background-color: #D3B27D;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 246, 215, 0.12) 0%, transparent 75%),
    url('assets/papyrus-royal.jpg');
  background-size: cover;
  background-position: center;
  border-left: 3px solid #2B1D11;
  border-right: 3px solid #2B1D11;
  padding-top: 54px;
  padding-bottom: 58px;
  box-shadow: 
    inset 0 45px 40px -10px rgba(25, 15, 6, 0.8),
    inset 0 -45px 40px -10px rgba(25, 15, 6, 0.8),
    inset 16px 0 28px -8px rgba(25, 15, 6, 0.4),
    inset -16px 0 28px -8px rgba(25, 15, 6, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 5;
}

/* Greek Key Inset Frame */
.papyrus-meander-frame {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(80, 50, 20, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* Titlebar in Antique Papyrus */
.sandbox-titlebar-papyrus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #E6D8BC 0%, #D8C6A5 100%);
  padding: 0.9rem 1.75rem;
  border-bottom: 2px solid #8A6A40;
  position: relative;
  z-index: 3;
}

.wax-seal-mini-red {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cinnabar-seal);
  color: #FFF6EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px var(--cinnabar-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.titlebar-heading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #2E2014;
}

.badge-papyrus-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(181, 40, 40, 0.08);
  color: var(--cinnabar-seal);
  border: 1px dashed var(--cinnabar-seal);
  font-weight: 700;
}

/* Papyrus Split View */
.sandbox-split-papyrus {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 440px;
  position: relative;
  z-index: 3;
}

/* Left Sidebar in Warm Papyrus Reed */
.sandbox-sidebar-papyrus {
  background: rgba(235, 222, 198, 0.55);
  border-right: 2px solid #8A6A40;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(2px);
}

.active-artifact-card-papyrus {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 252, 245, 0.92);
  border: 1.5px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 1px rgba(212, 175, 55, 0.4),
    2px 2px 0 rgba(43, 29, 17, 0.3);
  padding: 0.9rem;
}

.art-info h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 900;
  color: #1F150B;
}

.art-info p {
  font-size: 0.82rem;
  color: #4A3A2A;
  line-height: 1.35;
}

.art-pda {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cinnabar-seal);
  font-weight: 700;
}

.sandbox-controls-papyrus {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Action Buttons (Matching user's reference in media_1792713595958_540201bb.png!) */
.btn-papyrus-action {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  border: 2px solid #241A12;
  box-shadow: 3px 3px 0 #241A12;
  transition: all var(--transition-fast);
}

.btn-papyrus-action:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #241A12;
}

.btn-papyrus-action:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #241A12;
}

.btn-gold-action {
  background: linear-gradient(180deg, #E6C678 0%, #D4AF37 50%, #B38930 100%);
  color: #17110A;
  border-color: #593E15;
}

.btn-gold-action:hover {
  background: linear-gradient(180deg, #F2D58C 0%, #DFC15A 50%, #C4983D 100%);
}

.btn-wood-action {
  background: #F5EAD4 url('assets/papyrus-smooth.jpg') center/cover;
  color: #241A12;
  border-color: #241A12;
}

.btn-wood-action:hover {
  background-color: #EADBC4;
}

.runtime-specs-papyrus {
  margin-top: auto;
  border-top: 1px dashed #8A6A40;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #5C4731;
}

.runtime-specs-papyrus strong {
  color: #1F150B;
}

/* Right Terminal Body on Genuine Papyrus Reed */
.sandbox-terminal-papyrus {
  display: flex;
  flex-direction: column;
  background: rgba(248, 241, 226, 0.75);
  box-shadow: inset 0 0 45px rgba(138, 102, 54, 0.2);
}

.term-history-papyrus {
  flex: 1;
  padding: 1.75rem;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
}

.term-msg-papyrus {
  padding: 0.85rem 1.2rem;
  border-left: 3px solid;
  position: relative;
}

.term-msg-papyrus.system {
  background: rgba(228, 214, 188, 0.45);
  border-color: #8A6A40;
  color: #4A3A2A;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.scribe-incipit {
  font-weight: 700;
  color: #8A6A40;
  letter-spacing: 0.08em;
}

.term-msg-papyrus.agent {
  background: rgba(28, 59, 111, 0.07);
  border-color: #1B3B6F;
  color: #10264A;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.04);
}

.scribe-speaker {
  font-family: var(--font-heading);
  font-weight: 900;
  color: #1B3B6F;
  display: block;
  margin-bottom: 4px;
}

.term-msg-papyrus.user {
  background: rgba(181, 40, 40, 0.08);
  border-color: var(--cinnabar-seal);
  color: #5C1414;
}

/* Scribe Input Row (Carved Groove into Papyrus) */
.term-input-row-papyrus {
  display: flex;
  align-items: center;
  background: #EFE4CF;
  border-top: 2px solid #8A6A40;
  padding: 0.65rem 1.25rem;
  gap: 0.85rem;
}

.term-prompt-papyrus {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cinnabar-seal);
}

#termInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #1A1209;
}

#termInput::placeholder {
  color: #8C7862;
  font-style: italic;
}

.term-submit {
  font-size: 0.78rem;
  padding: 7px 16px;
}

/* ==========================================================================
   THE GREAT CATALOG (MANUSCRIPT CARDS IN PAPYRUS)
   ========================================================================== */
.codices-section {
  max-width: 1380px;
  margin: 0 auto 5rem;
  padding: 3.5rem 2rem 4rem;
  background: 
    radial-gradient(circle at 50% 25%, rgba(26, 17, 10, 0.72) 0%, rgba(13, 8, 5, 0.96) 100%),
    url('assets/library-wall.jpg') center/cover no-repeat;
  border: 2px solid #8A6A3E;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.85),
    inset 0 0 100px rgba(0, 0, 0, 0.9);
  border-radius: 4px;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.cat-pill {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 22px;
  border: 1px solid #D4AF37;
  background: linear-gradient(180deg, #2A1C12 0%, #160D08 100%);
  color: #F0E4CE;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(245, 226, 152, 0.25);
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.cat-pill:hover {
  background: linear-gradient(180deg, #3A2719 0%, #20130B 100%);
  color: #FFF2C6;
  border-color: #F5E298;
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #F5E298 0%, #D4AF37 50%, #8A6A1E 100%);
  color: #140E08;
  border-color: #FFF2C6;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.5);
}

.cat-pill:hover {
  background: #251B14;
  color: var(--gold-bright);
}

.cat-pill.active {
  background: var(--gold-gradient);
  color: var(--temple-void);
  font-weight: 900;
}

.codices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.manuscript-card {
  background-color: #E8D7B8;
  background-image: 
    radial-gradient(circle, rgba(60, 40, 20, 0.16) 1.2px, transparent 1.2px),
    url('assets/papyrus-smooth.jpg');
  background-size: 16px 16px, cover;
  border: 2px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 2px rgba(212, 175, 55, 0.4),
    inset 0 0 35px rgba(100, 70, 30, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.65);
  padding: 2.25rem 1.75rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.manuscript-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(80, 50, 20, 0.35);
  pointer-events: none;
}

.manuscript-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 
    inset 0 0 50px rgba(160, 130, 80, 0.28),
    0 14px 32px rgba(0, 0, 0, 0.85);
  border-color: #1A1109;
}

.card-seal-pin {
  position: absolute;
  top: -14px;
  right: 20px;
  z-index: 5;
}

.seal-wax-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.seal-wax-mini.red { background: var(--cinnabar-seal); }
.seal-wax-mini.gold { background: var(--gold-leaf); color: #000; }
.seal-wax-mini.blue { background: #1C3B6F; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  position: relative;
  z-index: 2;
}

.card-id {
  color: var(--gold-shadow);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card-badge.verified {
  padding: 2px 7px;
  color: #17543D;
  border: 1px solid #17543D;
  background: rgba(23, 84, 61, 0.08);
  font-weight: 700;
  font-size: 0.68rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #120B05;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.card-desc {
  font-size: 1.05rem;
  color: #1A120A;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-manifest {
  background: rgba(245, 238, 224, 0.82);
  border: 1px dashed #7A5B36;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.m-row { display: flex; justify-content: space-between; }
.m-row span { color: #523D26; font-weight: 600; }
.m-row strong { color: #120B05; font-weight: 700; }
.hash-sm { color: var(--cinnabar-seal); font-weight: 700; }

.card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

/* Buttons matching the user's uploaded reference (media_1792713595958_540201bb.png!) */
.btn-sm {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 12px;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  border: 1.5px solid #251B12;
  box-shadow: 2px 2px 0 #251B12;
  transition: all var(--transition-fast);
}

.btn-sm:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #251B12;
}

.btn-sm:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #251B12;
}

.btn-inspect {
  color: #251B12;
  background: #F4EDE0 url('assets/papyrus-smooth.jpg') center/cover;
}

.btn-inspect:hover {
  background: #ECE0CD;
}

.btn-run {
  background: linear-gradient(180deg, #D4AF37 0%, #C4983D 45%, #9E7422 100%);
  color: #15100B;
  border-color: #251B12;
  font-weight: 900;
}

.btn-run:hover {
  background: linear-gradient(180deg, #E2BF48 0%, #D4A84D 45%, #AD8331 100%);
}

/* ==========================================================================
   ARCHITECTURE (SACRED GEOMETRY)
   ========================================================================== */
.engine-section {
  max-width: 1380px;
  margin: 0 auto 5rem;
  padding: 3.5rem 2rem 4rem;
  background: 
    radial-gradient(circle at 15% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 40% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 65% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(20, 13, 8, 0.94) 0%, rgba(14, 9, 5, 0.97) 100%),
    url('assets/wood-desk.jpg') center/cover;
  border: 2px solid #8A6A3E;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.pillar-card {
  background-color: #EFE4CF;
  background-image: 
    radial-gradient(circle, rgba(60, 40, 20, 0.12) 1.2px, transparent 1.2px),
    url('assets/papyrus-smooth.jpg');
  background-size: 16px 16px, cover;
  border: 2px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 2px rgba(212, 175, 55, 0.4),
    inset 0 0 35px rgba(100, 70, 30, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.65);
  padding: 2.25rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    inset 0 0 45px rgba(160, 130, 80, 0.3),
    0 16px 36px rgba(0, 0, 0, 0.85);
}

/* Pillar 1: Emerald Alchemy */
.pillar-card:nth-child(1) {
  border-top: 5px solid #10B981;
}
.pillar-card:nth-child(1) .pillar-greek {
  color: #059669;
}
.pillar-card:nth-child(1) .pillar-tag {
  color: #065F46;
  border-top-color: rgba(16, 185, 129, 0.4);
}

/* Pillar 2: Celestial Lapis Lazuli */
.pillar-card:nth-child(2) {
  border-top: 5px solid #06B6D4;
}
.pillar-card:nth-child(2) .pillar-greek {
  color: #0891B2;
}
.pillar-card:nth-child(2) .pillar-tag {
  color: #155E75;
  border-top-color: rgba(6, 182, 212, 0.4);
}

/* Pillar 3: Imperial Tyrian Purple */
.pillar-card:nth-child(3) {
  border-top: 5px solid #8B5CF6;
}
.pillar-card:nth-child(3) .pillar-greek {
  color: #7C3AED;
}
.pillar-card:nth-child(3) .pillar-tag {
  color: #5B21B6;
  border-top-color: rgba(139, 92, 246, 0.4);
}

/* Pillar 4: Solar Amber & Cinnabar */
.pillar-card:nth-child(4) {
  border-top: 5px solid #F59E0B;
}
.pillar-card:nth-child(4) .pillar-greek {
  color: #D97706;
}
.pillar-card:nth-child(4) .pillar-tag {
  color: #92400E;
  border-top-color: rgba(245, 158, 11, 0.4);
}

.pillar-greek {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
}

.pillar-icon { font-size: 2.2rem; margin-bottom: 0.85rem; }

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: #120B05;
  margin-bottom: 0.65rem;
}

.pillar-card p {
  font-size: 1.02rem;
  color: #1A120A;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-top: 1px dotted var(--papyrus-border);
  padding-top: 0.65rem;
  font-weight: 700;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  max-width: 1080px;
  margin: 0 auto 5.5rem;
  padding: 3.5rem 2.5rem 4rem;
  background: 
    radial-gradient(circle at 50% 20%, rgba(245, 226, 152, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(22, 14, 9, 0.94) 0%, rgba(15, 9, 5, 0.97) 100%),
    url('assets/wood-desk.jpg') center/cover;
  border: 2px solid #8A6A3E;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0,0,0,0.8);
  border-radius: 4px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: #EFE4CF;
  background-image: 
    radial-gradient(circle, rgba(60, 40, 20, 0.12) 1.2px, transparent 1.2px),
    url('assets/papyrus-smooth.jpg');
  background-size: 16px 16px, cover;
  border: 2px solid #2B1D11;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(212, 175, 55, 0.4);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: #8A6A3E;
  box-shadow: 0 10px 28px rgba(0,0,0,0.75);
}

.faq-item[open] {
  background-color: #FAF4E8;
  border-color: #D4AF37;
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.8),
    inset 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.faq-item summary {
  padding: 1.25rem 1.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: #120B05;
}

.faq-toggle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cinnabar-seal);
  transition: transform var(--transition-fast);
  text-shadow: 1px 1px 0 rgba(212, 175, 55, 0.4);
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.75rem 1.5rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #1A120A;
  border-top: 1px dotted rgba(138, 106, 64, 0.4);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* ==========================================================================
   MODAL: INSPECT MANUSCRIPT
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 10, 7, 0.82);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.show { display: flex; }

.modal-parchment {
  background-color: #E8D7B8;
  background-image: 
    radial-gradient(circle, rgba(60, 40, 20, 0.16) 1.2px, transparent 1.2px),
    url('assets/papyrus-smooth.jpg');
  background-size: 16px 16px, cover;
  border: 2px solid #2B1D11;
  box-shadow: 
    inset 0 0 0 2px rgba(212, 175, 55, 0.5),
    inset 0 0 60px rgba(100, 70, 30, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.95);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background: var(--papyrus-aged);
  border-bottom: 2px solid var(--gold-leaf);
}

.modal-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-shadow);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--ink-primary);
  line-height: 1;
}

.modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chunk-card {
  background: var(--papyrus-sheet);
  border: 1px solid var(--papyrus-border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.modal-hex-viewer {
  background: #120C08;
  color: #EDE4CF;
  border: 1px solid var(--gold-shadow);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hex-title {
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.25rem;
}

#modalHexCode {
  overflow-x: auto;
  line-height: 1.45;
  color: var(--celestial-cyan);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.75rem;
  background: var(--papyrus-aged);
  border-top: 1px solid var(--papyrus-border);
}

/* ==========================================================================
   MASTER FOOTER & LEGAL DISCLAIMER
   ========================================================================== */
.master-footer {
  background: 
    linear-gradient(180deg, rgba(20, 13, 8, 0.96) 0%, rgba(12, 7, 4, 0.99) 100%),
    url('assets/wood-desk.jpg') center/cover;
  color: #EDE4CF;
  border-top: 3px double var(--gold-leaf);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.9);
  padding: 3rem 1.5rem 2.5rem;
}

.footer-top-ornament {
  display: flex;
  align-items: center;
  max-width: 1380px;
  margin: 2.5rem auto 3rem;
  gap: 1.5rem;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.ornament-center {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.footer-grid {
  max-width: 1380px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.brand-col .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.footer-emblem-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold-leaf);
}

.f-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.f-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #C2B08C;
  margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: 0.85rem; }

.social-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all var(--transition-fast);
}

.social-tag:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: var(--gold-bright);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: #C2B08C;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--gold-bright); }

.telemetry-box {
  background: #1C130D;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #C2B08C;
}

.telemetry-box strong { color: var(--celestial-cyan); }
.hash-code { color: var(--gold-bright); }

/* Strict Legal Disclaimer Wrapper */
.legal-disclaimer-wrapper {
  max-width: 1380px;
  margin: 0 auto;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding-top: 2.5rem;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.disclaimer-shield { font-size: 1.2rem; }

.disclaimer-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #9C855E;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.disclaimer-text strong { color: #DFC8A5; }

.disclaimer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7D6B4E;
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
  padding-top: 1rem;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-content-grid { grid-template-columns: 1fr; }
  .scriptorium-desk { grid-template-columns: 1fr; }
  .thesis-columns { grid-template-columns: 1fr; }
  .codices-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sandbox-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .master-nav { display: none; }
  .codices-grid, .pillars-grid, .footer-grid { grid-template-columns: 1fr; }
  .papyrus-scroll-sheet { padding: 2rem 1.25rem; }
  .hero-metrics-folio {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .metric-sep { display: none; }
}
