/* ======================================
   VYBN LAW — Foundation/Seldon Vault Aesthetic
   Dark-only. No light mode.
   ====================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500&family=JetBrains+Mono:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-vybn: #0d1117;
  --gold: #d4a853;
  --gold-hover: #e8c577;
  --gold-dim: rgba(212, 168, 83, 0.3);
  --gold-glow: rgba(212, 168, 83, 0.08);
  --text: #c8ccd4;
  --text-muted: #6b7280;
  --crimson: #8b1a1a;
  --crimson-bright: #c23b3b;
  --timeline-accent: rgba(212, 168, 83, 0.3);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-text: 720px;
  --max-wide: 960px;
  --section-gap: clamp(4rem, 8vw, 8rem);
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.25rem;
}

strong {
  font-weight: 500;
  color: #dde0e6;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

blockquote {
  border-left: 3px solid var(--gold-dim);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* External links */
.content a[target="_blank"]::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.6;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  height: var(--nav-height);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
  flex-shrink: 0;
}

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

.nav-logo span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.06);
}

.nav-links a.active {
  color: var(--gold);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gold);
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    gap: 0.25rem;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* --- Vault Door / Hero --- */
.vault-door {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.vault-door::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.vault-door .module-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.vault-door h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.vault-door .subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.vault-door .tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: pulse-down 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-indicator .chevron {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--gold-dim);
  border-bottom: 1.5px solid var(--gold-dim);
  transform: rotate(45deg);
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(6px); }
}

/* --- Content Area --- */
.content {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding-block: var(--section-gap);
}

.section + .section {
  border-top: 1px solid rgba(212, 168, 83, 0.06);
}

/* --- Module Page Layout --- */
.module-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Only pages that still have a timeline get the narrow left rail */
.module-layout.with-timeline {
  grid-template-columns: 60px 1fr;
}

@media (max-width: 768px) {
  .module-layout,
  .module-layout.with-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--timeline-accent);
}

.timeline-entry {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  position: absolute;
  left: -8px;
  top: 1.5rem;
  white-space: nowrap;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .timeline {
    display: none;
  }
}

/* --- Module Content --- */
.module-content {
  min-width: 0;
}

.module-content h2 {
  margin-top: 0;
}

.module-content h3 {
  color: var(--gold);
  margin-top: 3rem;
}

.module-content h3:first-child {
  margin-top: 0;
}

/* --- Vybn Sections --- */
.vybn-section {
  border-left: 2px solid var(--gold-dim);
  background: var(--surface-vybn);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 0 20px var(--gold-glow), inset 0 0 30px rgba(212, 168, 83, 0.02);
  position: relative;
}

.vybn-section::before {
  content: 'VYBN';
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: var(--surface-vybn);
  padding: 0 0.5rem;
  opacity: 0.7;
}

.vybn-section p {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.9;
}

.vybn-section p:last-child {
  margin-bottom: 0;
}

/* --- Legal Citations --- */
.legal-cite {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Thread Tag Pills --- */
.thread-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.thread-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.thread-tag:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold);
  text-decoration: none;
}

.thread-tag::before {
  content: '◈';
  font-size: 0.6rem;
  opacity: 0.6;
}

/* --- Thread Annotation Inline --- */
.thread-annotation {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.65;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-decoration: none;
  transition: opacity 0.2s;
}

.thread-annotation:hover {
  opacity: 1;
  text-decoration: none;
}

/* --- Module Cards (Landing Page) --- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.module-card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: 8px;
  padding: 2rem;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.module-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
}

.module-card .card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.module-card h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 0;
}

/* --- Thread Cards (Landing/Threads Page) --- */
.thread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.thread-card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.3s;
}

.thread-card:hover {
  border-color: var(--gold-dim);
  text-decoration: none;
}

.thread-card h4 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.thread-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Sequential Nav (Prev/Next) --- */
.seq-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-text);
  margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.seq-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.seq-nav a:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.04);
  text-decoration: none;
}

.seq-nav .spacer {
  flex: 1;
}

/* --- Source List --- */
.sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.sources h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.sources ul {
  list-style: none;
  padding: 0;
}

.sources li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(212, 168, 83, 0.15);
  line-height: 1.6;
}

.sources li a {
  word-break: break-all;
}

/* --- Footer --- */
.footer {
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid rgba(212, 168, 83, 0.06);
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.footer .sovereignty {
  font-style: italic;
  opacity: 0.7;
  margin-top: 1rem;
}

/* --- Danger/Crimson Sections --- */
.danger-callout {
  border-left: 3px solid var(--crimson);
  background: rgba(139, 26, 26, 0.06);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.danger-callout strong {
  color: var(--crimson-bright);
}

/* --- Landing Hero Specific --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-logo {
  margin-bottom: 2.5rem;
}

.hero-logo svg {
  width: 120px;
  height: 120px;
}

.hero .course-info {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

/* --- Course Arc Table --- */
.arc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 2rem 0;
}

.arc-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gold-dim);
}

.arc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.06);
  vertical-align: top;
}

.arc-table tr:hover td {
  background: rgba(212, 168, 83, 0.02);
}

/* --- Capstone Directions --- */
.capstone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.capstone-card {
  background: var(--surface);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.capstone-card h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.capstone-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Section Heading Decorators --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gallery Placeholder --- */
.gallery-placeholder {
  background: var(--surface);
  border: 1px dashed rgba(212, 168, 83, 0.15);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.gallery-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Thread section header on module pages */
.thread-section {
  margin-top: var(--section-gap);
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.thread-section h3 {
  font-size: 1rem;
  margin-top: 0;
}

/* --- Axiom Blocks --- */
.axiom-intro {
  max-width: var(--max-text);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.axiom-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.9;
}

.axiom-block {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: 5rem;
}

.axiom-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.axiom-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.5;
  min-width: 1.5rem;
}

.axiom-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  color: var(--gold);
  margin: 0;
  line-height: 1.1;
}

.axiom-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.axiom-body {
  padding-left: 2.75rem;
  border-left: 1px solid rgba(212, 168, 83, 0.1);
}

.axiom-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.axiom-body .vybn-section {
  margin-left: -2.75rem;
  padding-left: calc(2.75rem + 2rem);
}

.axiom-body .thread-tag {
  margin-top: 1rem;
  margin-right: 0.5rem;
}

.axiom-synthesis {
  max-width: var(--max-text);
  margin: 2rem auto 0;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.axiom-synthesis h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.axiom-synthesis p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.module-nav {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-text);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
}

.module-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.module-nav a:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.04);
  text-decoration: none;
}

@media (max-width: 768px) {
  .axiom-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .axiom-body {
    padding-left: 1.25rem;
  }
  .axiom-body .vybn-section {
    margin-left: -1.25rem;
    padding-left: calc(1.25rem + 1.5rem);
  }
}

/* Index page 3-column grid */
.index-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Mobile overflow fixes */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .nav-links:not(.open) {
    display: none !important;
    width: 0;
    height: 0;
    overflow: hidden;
  }

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

  .content-wide {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .vault-door h1 {
    font-size: 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-indicator {
    animation: none;
  }
}
