/* ==========================================================================
   WHEELER HUBBELL PUBLISHING — LUXURY EDITORIAL SYSTEM
   Aesthetic: 1960s British Intelligence meets Oxford Academic & Fine Bookmaking
   Palette: Rich Obsidian, Aged Walnut, Antique Gold/Brass, Imperial Oxblood & Deep Olive
   Typography: Cormorant Garamond, Plus Jakarta Sans, IBM Plex Mono
   ========================================================================== */

:root {
  /* Ground & Surfaces */
  --bg-void:         #070706;
  --bg-base:         #0E0D0B;
  --bg-surface:      #161412;
  --bg-surface-elev: #1E1B18;
  --bg-surface-high: #27231E;
  --bg-glass:        rgba(22, 20, 18, 0.85);

  /* Metallic Accents (Antique Gold & Polished Brass) */
  --gold-pure:       #D4AF37;
  --gold-light:      #E6CA65;
  --gold-muted:      #C5A059;
  --gold-dark:       #8F7034;
  --gold-faint:      rgba(197, 160, 89, 0.12);
  --gold-border:     rgba(197, 160, 89, 0.28);
  --gold-border-sub: rgba(197, 160, 89, 0.14);

  /* Accent Colors */
  --oxblood:         #781D29;
  --oxblood-deep:    #4D121A;
  --oxblood-hover:   #922432;
  --oxblood-glow:    rgba(120, 29, 41, 0.35);

  --olive:           #2A362B;
  --olive-light:     #3E4E3F;
  --olive-faint:     rgba(42, 54, 43, 0.30);

  /* Text & Ink */
  --text-pure:       #FAF8F5;
  --text-main:       #EAE5DC;
  --text-muted:      #A8A296;
  --text-faint:      #6E685E;
  --text-gold:       #DFBE77;

  /* Architectural Hairlines */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle:   rgba(255, 255, 255, 0.14);
  --border-gold:     rgba(197, 160, 89, 0.35);

  /* Typography */
  --font-serif:      "Cormorant Garamond", Garamond, "Times New Roman", Georgia, serif;
  --font-sans:       "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-mono:       "IBM Plex Mono", Menlo, Consolas, monospace;

  /* Max Widths */
  --wrap-max:        1280px;
  --wrap-narrow:     960px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(120, 29, 41, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(197, 160, 89, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-base) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 32px;
}

.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }
.font-mono  { font-family: var(--font-mono); }

/* ==========================================================================
   UTILITY BAR
   ========================================================================== */
.top-utility {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 0;
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-motto {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-motto .dot {
  color: var(--gold-muted);
  opacity: 0.7;
}

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

.utility-meta a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   PRIMARY NAVIGATION & MASTHEAD
   ========================================================================== */
.site-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  transition: all 0.3s ease;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.crest-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  background: radial-gradient(circle, var(--gold-faint) 0%, transparent 80%);
  border-radius: 2px;
  color: var(--gold-light);
  transition: all 0.3s ease;
}

.brand-lockup:hover .crest-symbol {
  border-color: var(--gold-light);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.25);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-pure);
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--text-pure);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-muted);
  transition: width 0.25s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--gold-border);
  background: rgba(197, 160, 89, 0.04);
  color: var(--gold-light);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-gold-outline:hover {
  background: var(--gold-muted);
  color: var(--bg-void);
  border-color: var(--gold-muted);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
}

.btn-oxblood {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--oxblood) 0%, var(--oxblood-deep) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  box-shadow: 0 6px 20px var(--oxblood-glow);
  transition: all 0.3s ease;
}

.btn-oxblood:hover {
  background: linear-gradient(135deg, var(--oxblood-hover) 0%, var(--oxblood) 100%);
  border-color: var(--gold-border);
  box-shadow: 0 8px 25px rgba(120, 29, 41, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO / OPENING BROADWAY-GRADE ARCHITECTURE
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 90px 0 110px 0;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(120, 29, 41, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-pure);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 38px;
  font-weight: 300;
}

.hero-lead strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 48px;
}

.hero-quote {
  padding-left: 20px;
  border-left: 2px solid var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-quote span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 6px;
}

/* Hero Showcase Frame */
.hero-stage {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 4px;
  padding: 14px;
  background: linear-gradient(145deg, #1A1714 0%, #0F0E0C 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(197, 160, 89, 0.08);
}

.hero-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-frame-plate {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.hero-frame-plate .plate-title {
  color: var(--gold-light);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  margin-bottom: 56px;
  position: relative;
}

.section-pre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.section-pre::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  color: var(--text-pure);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   CATALOGUE: THE FOUR PHYSICAL VOLUMES
   ========================================================================== */
.catalogue-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elev);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px 20px 22px 20px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-border);
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(197, 160, 89, 0.12);
}

.book-card-vol {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-cover-stage {
  aspect-ratio: 1 / 1.45;
  background: #090807;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.book-cover-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.book-card:hover .book-cover-stage img {
  transform: scale(1.03);
}

.book-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.book-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.book-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.book-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  margin-bottom: 18px;
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-card-order {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--oxblood);
  color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-card-order:hover {
  background: var(--oxblood-hover);
  box-shadow: 0 4px 16px var(--oxblood-glow);
}

.btn-card-read {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-card-read:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-faint);
}

/* ==========================================================================
   RESEARCH & METHODS: NUMBERED FORMAL REGISTER
   ========================================================================== */
.research-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.register-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 1.8fr 180px;
  gap: 32px;
  align-items: center;
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.register-row:hover {
  border-color: var(--gold-border);
  background: var(--bg-surface-elev);
  transform: translateX(6px);
}

.reg-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
}

.reg-num small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

.reg-title h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-pure);
  line-height: 1.25;
}

.reg-title p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 6px;
}

.reg-thesis {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.reg-action {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   DECISION INTEGRITY & SOVEREIGN PROTOCOL PANEL
   ========================================================================== */
.protocol-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-hairline);
  background: radial-gradient(ellipse at 80% 50%, rgba(42, 54, 43, 0.15) 0%, transparent 60%);
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.axiom-card {
  background: var(--bg-void);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  padding: 38px 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.axiom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.axiom-formula {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 28px 0;
  background: rgba(197, 160, 89, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  margin-bottom: 24px;
}

.axiom-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.machine-spec-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.machine-spec-box .spec-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.machine-spec-box .spec-line:last-child {
  margin-bottom: 0;
}

.machine-spec-box .spec-val {
  color: var(--gold-light);
}

/* ==========================================================================
   THE KEEPING ROOM & DISPATCHES
   ========================================================================== */
.keeping-room-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.keeping-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
}

.featured-essay-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 44px 38px;
  position: relative;
}

.essay-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 16px;
}

.essay-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-pure);
  line-height: 1.2;
  margin-bottom: 18px;
}

.essay-excerpt {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 300;
}

.subscribe-card {
  background: linear-gradient(145deg, var(--bg-surface-elev) 0%, var(--bg-void) 100%);
  border: 1px solid var(--gold-border-sub);
  border-radius: 4px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.subscribe-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.subscribe-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dispatch-input {
  background: var(--bg-void);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.dispatch-input:focus {
  outline: none;
  border-color: var(--gold-muted);
}

/* ==========================================================================
   ABOUT THE HOUSE & WHEELER HUBBELL
   ========================================================================== */
.about-section {
  padding: 110px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.author-frame {
  background: var(--bg-surface-elev);
  border: 1px solid var(--gold-border);
  padding: 14px;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.author-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-hairline);
  filter: contrast(1.05) saturate(0.95);
}

.about-copy h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.about-creds {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 28px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER & COLOPHON
   ========================================================================== */
.site-footer {
  background: var(--bg-void);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.footer-bottom .ens-badge {
  color: var(--gold-muted);
}

/* ==========================================================================
   MODALS: ACQUISITIONS & PRESS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-window {
  background: var(--bg-surface-elev);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--text-pure);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .register-row {
    grid-template-columns: 100px 1.2fr 1fr;
  }
  .register-row .reg-action {
    grid-column: span 3;
    justify-content: flex-start;
    margin-top: 12px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .protocol-grid,
  .keeping-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .primary-nav {
    display: none;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .register-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .register-row .reg-action {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
