@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=IM+Fell+English:ital@0;1&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --void: #080808;
  --surface: #0e0e0e;
  --red-deep: #6b0000;
  --red-mid: #990000;
  --red-bright: #cc0000;
  --red-glow: #ff2020;
  --text-primary: #e8e2d9;
  --text-secondary: #a09890;
  --text-muted: #5a5450;
  --border: rgba(150, 0, 0, 0.2);
  --border-bright: rgba(150, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--void);
  background-image: url('../assets/CrimsonCosmos.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-decoration: none;
  z-index: 101;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--red-bright);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--red-bright);
}

.nav-links a.active::after {
  width: 100%;
}

/* ─── PAGE WRAPPER ────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ─── HERO ────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-title span {
  color: var(--red-bright);
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.55rem, 1.5vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--red-mid), transparent);
  margin: 0 auto 3.5rem;
}

.hero-quote {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 4rem;
  padding: 0 1rem;
}

.hero-quote::before {
  content: '\201C';
  color: var(--red-deep);
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
}

.hero-quote::after {
  content: '\201D';
  color: var(--red-deep);
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-left: 0.1em;
}

.hero-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1rem;
}

.hero-nav-link {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border: 0.5px solid var(--border);
  transition: all 0.3s ease;
}

.hero-nav-link:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  background: rgba(100, 0, 0, 0.1);
}

/* ─── WITNESS PULSE ───────────────────────────────────── */

.witness-pulse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.witness-line {
  width: 0.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red-mid), transparent);
  animation: pulse 2.5s ease-in-out infinite;
}

.witness-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ─── CONTENT PAGES ───────────────────────────────────── */

.content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.page-title span {
  color: var(--red-bright);
}

.page-rule {
  width: 60px;
  height: 0.5px;
  background: var(--red-mid);
  margin: 2rem 0;
}

.page-intro {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
}

/* ─── SECTIONS ────────────────────────────────────────── */

.section {
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section p {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ─── DIVIDERS ────────────────────────────────────────── */

.rule {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 3rem 0;
}

/* ─── IDENTITIES PAGE ─────────────────────────────────── */

.identities-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.identities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.identity-panel {
  background: var(--void);
  padding: 3rem 2.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.identity-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(100, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.identity-panel:hover::before {
  opacity: 1;
}

.identity-panel-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 1rem;
}

.identity-panel-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.identity-panel-sub {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.identity-panel-hint {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-top: 2rem;
  transition: color 0.3s ease;
}

.identity-panel:hover .identity-panel-hint {
  color: var(--red-mid);
}

.identity-content {
  display: none;
  grid-column: 1 / -1;
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 3rem 2.5rem;
  animation: fadeIn 0.4s ease;
}

.identity-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── GLITCH ──────────────────────────────────────────── */

.glitch-cover {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.glitch-cover .true-name {
  visibility: hidden;
  color: transparent;
  display: block;
}

.glitch-cover .glitch-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px;
}

.glitch-cover .glitch-layer::before,
.glitch-cover .glitch-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--red-deep)    0%,
    var(--red-bright)  18%,
    var(--red-mid)     35%,
    var(--red-deep)    52%,
    var(--red-bright)  67%,
    var(--red-mid)     84%,
    var(--red-deep)    100%
  );
  background-size: 200% 100%;
  animation: glitchShift 0.06s steps(1) infinite;
  mix-blend-mode: screen;
}

.glitch-cover .glitch-layer::after {
  animation-delay: 0.03s;
  animation-duration: 0.09s;
  opacity: 0.6;
  background: linear-gradient(
    90deg,
    var(--red-mid)     0%,
    var(--red-deep)    25%,
    var(--red-bright)  50%,
    var(--red-deep)    75%,
    var(--red-mid)     100%
  );
  background-size: 300% 100%;
}

.fragment {
  display: inline;
  white-space: nowrap;
}

.fragment .visible {
  font-family: 'Cinzel', serif;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.fragment .obscured {
  display: inline;
  position: relative;
  color: transparent;
  user-select: none;
  vertical-align: baseline;
  font-family: 'Cinzel', serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  border-radius: 2px;
  overflow: hidden;
}

.fragment .obscured::before,
.fragment .obscured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--red-deep)   0%,
    var(--red-bright) 20%,
    var(--red-mid)    40%,
    var(--red-deep)   60%,
    var(--red-bright) 80%,
    var(--red-mid)    100%
  );
  background-size: 250% 100%;
  animation: glitchShift 0.07s steps(1) infinite;
}

.fragment .obscured::after {
  animation-delay: 0.035s;
  animation-duration: 0.11s;
  opacity: 0.5;
  clip-path: inset(30% 0 20% 0);
}

@keyframes glitchShift {
  0%   { background-position: 0% 0%;   clip-path: inset(0 0 0 0); }
  10%  { background-position: 60% 0%;  clip-path: inset(15% 0 5% 0); }
  20%  { background-position: 30% 0%;  clip-path: inset(0 0 0 0); }
  30%  { background-position: 90% 0%;  clip-path: inset(40% 0 10% 0); }
  40%  { background-position: 10% 0%;  clip-path: inset(0 0 0 0); }
  50%  { background-position: 75% 0%;  clip-path: inset(5% 0 35% 0); }
  60%  { background-position: 45% 0%;  clip-path: inset(0 0 0 0); }
  70%  { background-position: 20% 0%;  clip-path: inset(25% 0 15% 0); }
  80%  { background-position: 80% 0%;  clip-path: inset(0 0 0 0); }
  90%  { background-position: 55% 0%;  clip-path: inset(10% 0 40% 0); }
  100% { background-position: 0% 0%;   clip-path: inset(0 0 0 0); }
}

/* ─── SOLVED STATE ────────────────────────────────────── */

html.solved .glitch-cover .glitch-layer {
  display: none;
}

html.solved .glitch-cover .true-name {
  visibility: visible;
  color: var(--text-primary);
  transition: color 0.8s ease;
}

html.solved .fragment .obscured {
  color: var(--text-secondary);
  transition: color 0.6s ease;
}

html.solved .fragment .obscured::before,
html.solved .fragment .obscured::after {
  display: none;
}

html.solved .fragment .visible {
  color: var(--text-secondary);
  transition: color 0.6s ease;
}

/* ─── PUZZLE BOX ──────────────────────────────────────── */

.puzzle-box {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}

.puzzle-label {
  text-align: center;
}

.puzzle-prompt {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 1.75rem;
}

.puzzle-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.puzzle-input {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--text-muted);
  color: var(--text-primary);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
}

.puzzle-input:focus {
  border-bottom-color: var(--red-mid);
}

.puzzle-input.error {
  border-bottom-color: var(--red-bright);
  animation: redPulse 0.5s ease;
}

.puzzle-input.solved {
  border-bottom-color: var(--text-muted);
}

.puzzle-input-hint {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.puzzle-response {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--red-bright);
  margin-top: 1.75rem;
  min-height: 1.5rem;
}

.puzzle-response.easter {
  color: var(--text-muted);
}

@keyframes redPulse {
  0%   { box-shadow: 0 0 0 rgba(200, 0, 0, 0); }
  50%  { box-shadow: 0 0 20px rgba(200, 0, 0, 0.5); }
  100% { box-shadow: 0 0 12px rgba(200, 0, 0, 0.3); }
}

/* ─── IDENTITY IMAGES ─────────────────────────────────── */

.identity-img-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 220px;
  opacity: 0.85;
  border: 0.5px solid var(--border-bright);
  filter: brightness(0.9) contrast(1.05);
}

.identity-img-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  width: 220px;
  opacity: 0.85;
  border: 0.5px solid var(--border-bright);
  filter: brightness(0.9) contrast(1.05);
}

.identity-img-clear {
  clear: both;
}

/* ─── RELIC PAGE ──────────────────────────────────────── */

.relic-glow {
  position: relative;
  padding: 2.5rem;
  border: 0.5px solid var(--border-bright);
  background: rgba(80, 0, 0, 0.08);
  margin: 2rem 0;
}

.relic-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 0.5px solid var(--red-deep);
  opacity: 0.4;
  pointer-events: none;
}

.relic-glow p {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.9;
}

/* ─── LEGENDS PAGE ────────────────────────────────────── */

.legend-entry {
  border-top: 0.5px solid var(--border);
  padding: 2rem 0 0;
  margin-bottom: 0;
}

.legend-entry:last-of-type {
  border-bottom: 0.5px solid var(--border);
}

.legend-toggle {
  cursor: pointer;
  padding-bottom: 2rem;
  user-select: none;
}

.legend-toggle:hover .legend-numeral {
  color: var(--text-primary);
}

.legend-numeral {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-mid);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legend-numeral-arrow {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--red-deep);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.legend-entry.active .legend-numeral-arrow {
  transform: rotate(180deg);
  color: var(--red-mid);
}

.legend-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.legend-teaser {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legend-content {
  display: none;
  padding-bottom: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.legend-content.active {
  display: block;
}

.legend-source {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--border);
  line-height: 1.7;
}

.legend-register {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  line-height: 2.4;
}

.legend-register p {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* ─── PLACEHOLDER ─────────────────────────────────────── */

.placeholder-notice {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3rem;
  border: 0.5px solid var(--border);
  text-align: center;
  margin-top: 2rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 900px) {
  nav {
    padding: 1.25rem 2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
  }

  .nav-brand {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 0.6rem;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: auto auto;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    list-style: none;
  }

  .nav-links li:nth-child(5) { grid-column: 1; grid-row: 2; }
  .nav-links li:nth-child(6) { grid-column: 2; grid-row: 2; }
  .nav-links li:nth-child(7) { grid-column: 3 / span 2; grid-row: 2; }

  .nav-links a {
    font-size: 9px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .content-wrap {
    padding: 9rem 1.25rem 4rem;
  }

  .identities-wrap {
    padding: 9rem 1.25rem 4rem;
  }

  .identities-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 9rem 1.5rem 3rem;
  }

  .hero-eyebrow {
    letter-spacing: 0.2em;
    font-size: 9px;
  }

  .hero-subtitle {
    letter-spacing: 0.15em;
  }

  .hero-divider {
    height: 40px;
    margin-bottom: 2.5rem;
  }

  .hero-quote {
    margin-bottom: 3rem;
  }

  .hero-nav {
    gap: 0.75rem;
  }

  .hero-nav-link {
    font-size: 9px;
    padding: 0.6rem 1rem;
    letter-spacing: 0.15em;
  }

  .witness-pulse {
    margin-top: 2rem;
  }

  .identity-panel {
    padding: 2rem 1.5rem;
  }

  .identity-content {
    padding: 2rem 1.5rem;
  }

  img.identity-img-right,
  img.identity-img-left {
    width: 45% !important;
    max-width: 45% !important;
    height: auto !important;
  }

  .relic-glow {
    padding: 1.75rem 1.5rem;
  }

  .legend-toggle {
    padding-bottom: 1.5rem;
  }

  .legend-content {
    padding-bottom: 1.75rem;
  }

  .puzzle-input-wrap {
    max-width: 100%;
  }

  .section-label {
    letter-spacing: 0.2em;
  }

  .page-eyebrow {
    letter-spacing: 0.2em;
  }

  .rule {
    margin: 2rem 0;
  }

  .section {
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 401px) and (max-width: 600px) {
  .content-wrap {
    padding: 9rem 1.5rem 5rem;
  }

  .identities-wrap {
    padding: 9rem 1.5rem 5rem;
  }

  .identity-panel {
    padding: 2.5rem 2rem;
  }

  .identity-content {
    padding: 2.5rem 2rem;
  }

  img.identity-img-right,
  img.identity-img-left {
    width: 55% !important;
    max-width: 55% !important;
  }

  .hero {
    padding: 9rem 2rem 3rem;
  }
}

@media (max-width: 400px) {
  .nav-links {
    grid-template-columns: repeat(3, auto);
  }

  .nav-links li:nth-child(5) { grid-column: 1; grid-row: 2; }
  .nav-links li:nth-child(6) { grid-column: 2; grid-row: 2; }
  .nav-links li:nth-child(7) { grid-column: 1 / span 3; grid-row: 3; text-align: center; }

  .nav-links a {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  img.identity-img-right,
  img.identity-img-left {
    width: 35% !important;
    max-width: 35% !important;
    height: auto !important;
  }

  .hero-nav-link {
    font-size: 8px;
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.1em;
  }

  .identity-panel {
    padding: 1.5rem 1.25rem;
  }

  .identity-content {
    padding: 1.5rem 1.25rem;
  }

  .legend-numeral {
    letter-spacing: 0.15em;
  }

  .content-wrap {
    padding: 10rem 1rem 3rem;
  }

  .identities-wrap {
    padding: 10rem 1rem 3rem;
  }
}

/* ─── IMAGE OVERRIDE ──────────────────────────────────── */

@media (max-width: 768px) {
  img.identity-img-right,
  img.identity-img-left {
    width: 67% !important;
    max-width: 67% !important;
    height: auto !important;
  }
}

@media (max-width: 400px) {
  img.identity-img-right,
  img.identity-img-left {
    width: 52% !important;
    max-width: 52% !important;
    height: auto !important;
  }
}