/* === CUSTOM PROPERTIES === */
:root {
  --red: #CC0000;
  --deep-red: #8B0000;
  --bright-red: #FF1A1A;
  --black: #0A0A0A;
  --near-black: #140C0A;
  --gold: #B8960C;
  --gold-light: #D4AC1A;
  --rust: #8B3A0F;
  --rust-dark: #5C1A00;
  --dust: #C4A882;
  --ash: #2A2220;
  --ash-light: #3D3330;
  --bone: #D4C5A9;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--bone);
  font-family: Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* === DUST CANVAS === */
#dust-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.4;
}

/* === TEXTURE OVERLAYS === */
.texture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.texture-scorched {
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139,58,15,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(139,0,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(42,34,32,0.6) 0%, transparent 80%),
    repeating-linear-gradient(
      17deg,
      transparent 0px,
      transparent 3px,
      rgba(90,50,20,0.04) 3px,
      rgba(90,50,20,0.04) 4px
    ),
    repeating-linear-gradient(
      -8deg,
      transparent 0px,
      transparent 6px,
      rgba(20,12,10,0.06) 6px,
      rgba(20,12,10,0.06) 7px
    );
}

.texture-lacquer {
  background:
    radial-gradient(ellipse 30% 80% at 95% 50%, rgba(204,0,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 20% at 50% 0%, rgba(184,150,12,0.06) 0%, transparent 60%);
}

/* === TYPOGRAPHY FACES === */

/* High-fashion serif — Louboutin register */
.fashion-voice {
  font-family: 'Didot', 'Bodoni MT', 'Bodoni 72', 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: 0.12em;
}

/* Stencil/distressed — Mad Max register */
.mad-voice {
  font-family: 'Courier New', 'Courier', monospace;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Italic flowing — Stein register */
.stein-voice {
  font-family: Georgia, 'Times New Roman', 'Book Antiqua', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

/* === HEADER === */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid var(--gold);
  padding: 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--near-black) 100%);
  box-shadow: 0 2px 30px rgba(204,0,0,0.3), 0 1px 0 var(--rust-dark);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}

.header-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
}

.war-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stamp-line {
  display: block;
  text-align: center;
}

.stamp-top {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.stamp-main {
  font-family: 'Didot', 'Bodoni MT', 'Bodoni 72', Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 0 40px rgba(204,0,0,0.5), 2px 2px 0 var(--rust-dark);
  line-height: 1;
}

.stamp-sub {
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dust);
  opacity: 0.7;
  font-weight: 700;
}

.war-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.nav-item {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: default;
  opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
}

.nav-item:hover {
  color: var(--red);
  opacity: 1;
}

.nav-sep {
  color: var(--gold);
  font-size: 0.5rem;
  opacity: 0.6;
}

/* === GLITCH ANIMATION === */
@keyframes glitch-flicker {
  0%, 94%, 100% { opacity: 1; text-shadow: 0 0 40px rgba(204,0,0,0.5), 2px 2px 0 var(--rust-dark); }
  95% { opacity: 0.85; text-shadow: -3px 0 var(--gold), 3px 0 var(--rust), 0 0 40px rgba(204,0,0,0.8); clip-path: inset(20% 0 30% 0); }
  96% { opacity: 1; text-shadow: 0 0 40px rgba(204,0,0,0.5), 2px 2px 0 var(--rust-dark); clip-path: none; }
  97% { opacity: 0.9; text-shadow: 2px 0 var(--rust), -2px 0 var(--gold), 0 0 30px rgba(204,0,0,0.6); }
  98% { opacity: 1; text-shadow: 0 0 40px rgba(204,0,0,0.5), 2px 2px 0 var(--rust-dark); }
}

.glitch-text {
  animation: glitch-flicker 7s infinite;
  animation-timing-function: steps(1, end);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  z-index: 15;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 3rem 4rem;
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(139,0,0,0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--near-black) 0%, var(--black) 60%, rgba(139,58,15,0.15) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rust), var(--gold), var(--rust), transparent);
}

.hero-poem {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.poem-line {
  margin-bottom: 0.4rem;
}

.poem-opening {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--red);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 60px rgba(204,0,0,0.4);
}

.poem-beat {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--dust);
  line-height: 1.7;
}

.poem-stencil {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--bone);
  margin-bottom: 0.3rem;
  line-height: 1.4;
  text-shadow: 1px 1px 0 var(--ash);
}

.poem-whisper {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: var(--dust);
  opacity: 0.85;
}

.poem-title {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--gold);
  margin-top: 1rem;
  text-transform: uppercase;
  line-height: 1.5;
  letter-spacing: 0.18em;
}

.poem-title em {
  display: block;
  color: var(--dust);
  font-size: 0.7em;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  opacity: 0.9;
}

.poem-break {
  height: 2rem;
  width: 60%;
  margin: 1.5rem auto;
  border-top: 1px solid rgba(184,150,12,0.2);
  position: relative;
}

.poem-break::after {
  content: '✦';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  background: var(--black);
  padding: 0 0.5rem;
  opacity: 0.5;
}

.poem-break--wide {
  height: 3rem;
  width: 80%;
}

/* === SOLE CONTAINER === */
.sole-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 3rem auto 0;
  z-index: 2;
}

.sole-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  filter: contrast(1.1) saturate(1.1);
  mix-blend-mode: screen;
}

.sole-svg-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes sole-pulse {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 8px rgba(204,0,0,0.3)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 20px rgba(204,0,0,0.6)); }
}

.sole-svg-overlay {
  animation: sole-pulse 4s ease-in-out infinite;
}

/* === PROSE SECTIONS === */
.prose-section {
  position: relative;
  z-index: 15;
  padding: 5rem 3rem;
}

.prose-dark {
  background: linear-gradient(180deg, var(--black) 0%, var(--ash) 50%, var(--black) 100%);
}

.prose-rust {
  background:
    linear-gradient(135deg, var(--near-black) 0%, rgba(139,58,15,0.2) 50%, var(--near-black) 100%);
  border-top: 1px solid rgba(139,58,15,0.4);
  border-bottom: 1px solid rgba(139,58,15,0.4);
}

.prose-black {
  background: var(--near-black);
}

.prose-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.prose-inner--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  grid-template-columns: unset;
}

.prose-inner--fragmented {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-template-columns: unset;
  gap: 1.5rem;
}

.stencil-block {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--red);
  line-height: 1.3;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.8), 0 0 20px rgba(204,0,0,0.3);
}

.stein-block {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--dust);
  max-width: 580px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  text-shadow: 0 0 30px rgba(184,150,12,0.3);
}

.center-poem {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--dust);
  max-width: 700px;
  line-height: 2;
  text-align: center;
}

.poem-emphasis {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
  display: block;
  margin: 0.5rem 0;
  font-size: 1.1em;
  text-shadow: 0 0 15px rgba(204,0,0,0.4);
}

/* === WAR DIVIDER === */
.war-divider {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(90deg, var(--black) 0%, var(--ash) 50%, var(--black) 100%);
  overflow: hidden;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.divider-text {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.6;
  white-space: nowrap;
  font-weight: 700;
}

/* === FRAGMENT LINES === */
.fragment-line {
  max-width: 900px;
  padding-left: 2rem;
  border-left: 3px solid var(--rust-dark);
}

.fragment-line.mad-voice {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--red);
  border-left-color: var(--red);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}

.fragment-line.stein-voice {
  font-size: clamp(0.9rem, 1.7vw, 1.1rem);
  color: var(--dust);
  border-left-color: var(--rust);
}

.fragment-line.fashion-voice {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--gold);
  border-left-color: var(--gold);
  font-style: italic;
}

/* === GEOMETRY SECTION === */
.geometry-section {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 5rem 3rem;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(92,26,0,0.15) 50%, var(--black) 100%);
  overflow: hidden;
}

.geometry-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
}

.heel-geometry {
  width: 60px;
  height: 180px;
  opacity: 0.85;
  flex-shrink: 0;
}

.heel-geometry--mirror {
  transform: scaleX(-1);
}

@keyframes heel-sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heel-sway-mirror {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-8px); }
}

.heel-geometry {
  animation: heel-sway 5s ease-in-out infinite;
}

.heel-geometry--mirror {
  animation: heel-sway-mirror 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

.geo-center {
  max-width: 500px;
  text-align: center;
}

.geo-text {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(204,0,0,0.4), 2px 2px 0 var(--rust-dark);
}

.geo-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--dust);
  opacity: 0.8;
}

/* === FOOTER === */
.site-footer {
  position: relative;
  z-index: 20;
  padding: 4rem 3rem 3rem;
  background: linear-gradient(180deg, var(--black) 0%, var(--near-black) 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -2px 30px rgba(204,0,0,0.2);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-poem {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-poem p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--dust);
  opacity: 0.8;
  line-height: 1.9;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
}

.footer-loop {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  color: var(--red) !important;
  opacity: 1 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(204,0,0,0.3);
}

@keyframes footer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.footer-loop {
  animation: footer-pulse 3s ease-in-out infinite;
}

.footer-sigil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sigil-text {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.sigil-sub {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.5em;
  color: var(--dust);
  opacity: 0.5;
  text-transform: uppercase;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
}

/* === SELECTION === */
::selection {
  background: var(--red);
  color: var(--black);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner {
    padding: 1.5rem 1.5rem;
  }

  .war-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .prose-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .geometry-section {
    flex-direction: column;
    padding: 3rem 1.5rem;
  }

  .heel-geometry {
    width: 40px;
    height: 120px;
  }

  .prose-section {
    padding: 3rem 1.5rem;
  }

  .war-divider {
    padding: 1.5rem;
  }

  .divider-text {
    font-size: 0.4rem;
    letter-spacing: 0.15em;
  }
}