/* ============================================
   XELVYN — Solar Brutal Grid
   HTML + CSS Only
   ============================================ */

:root {
  --solar-yellow: #FACC15;
  --bright-amber: #F59E0B;
  --deep-mustard: #CA8A04;
  --pure-white: #FFFFFF;
  --rich-black: #111827;
  --neutral-gray: #E5E7EB;

  --identity-bar-width: 72px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--pure-white);
  color: var(--rich-black);
  overflow-x: hidden;
  line-height: 1.5;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.heading {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ============================================
   IDENTITY BAR
   ============================================ */

.identity-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--identity-bar-width);
  height: 100vh;
  background: var(--solar-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  z-index: 1000;
  border-right: 4px solid var(--rich-black);
}

.identity-letter {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--rich-black);
  line-height: 1;
  animation: letterReveal 0.6s ease forwards;
  opacity: 0;
}

.identity-letter:nth-child(1) { animation-delay: 0.1s; }
.identity-letter:nth-child(2) { animation-delay: 0.15s; }
.identity-letter:nth-child(3) { animation-delay: 0.2s; }
.identity-letter:nth-child(4) { animation-delay: 0.25s; }
.identity-letter:nth-child(5) { animation-delay: 0.3s; }
.identity-letter:nth-child(6) { animation-delay: 0.35s; }

@keyframes letterReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SYSTEM LABELS
   ============================================ */

.system-labels {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rich-black);
  animation: fadeIn 0.8s ease 0.5s forwards;
  opacity: 0;
}

.label-sep {
  color: var(--deep-mustard);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  margin-left: var(--identity-bar-width);
}

.section {
  position: relative;
  width: 100%;
}

/* ============================================
   SECTION 1 — HERO
   ============================================ */

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 3rem 4rem 4rem;
  border-bottom: 4px solid var(--rich-black);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--neutral-gray) 1px, transparent 1px),
    linear-gradient(90deg, var(--neutral-gray) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  opacity: 0.5;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-tag {
  color: var(--deep-mustard);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(4rem, 12vw, 10rem);
  color: var(--rich-black);
  margin-bottom: 2rem;
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 520px;
  color: var(--rich-black);
  font-weight: 400;
  line-height: 1.7;
}

.hero-line {
  width: 120px;
  height: 6px;
  background: var(--solar-yellow);
  margin-top: 3rem;
}

/* ============================================
   SECTION 2 — STATEMENTS
   ============================================ */

.section-statements {
  border-bottom: 4px solid var(--rich-black);
}

.statement-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 3rem 3rem 4rem;
  border-bottom: 2px solid var(--rich-black);
  background: var(--pure-white);
  transition: background 0.15s ease;
  cursor: default;
}

.statement-block--alt {
  background: var(--solar-yellow);
}

.statement-block:hover {
  background: var(--bright-amber);
}

.statement-block--alt:hover {
  background: var(--bright-amber);
}

.statement-index {
  color: var(--deep-mustard);
  font-size: 0.85rem;
}

.statement-block--alt .statement-index {
  color: var(--rich-black);
  opacity: 0.5;
}

.statement-word {
  font-size: clamp(3rem, 10vw, 8rem);
  text-align: right;
}

/* ============================================
   SECTION 3 — METRICS
   ============================================ */

.section-metrics {
  padding: 4rem 3rem 4rem 4rem;
  background: var(--rich-black);
  color: var(--pure-white);
  border-bottom: 4px solid var(--solar-yellow);
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--solar-yellow);
}

.metrics-status {
  color: var(--solar-yellow);
  animation: pulse 2s ease infinite;
}

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

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

.metric-card {
  padding: 2rem 1.5rem;
  border: 2px solid var(--neutral-gray);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.metric-card:hover {
  border-color: var(--solar-yellow);
  background: rgba(250, 204, 21, 0.08);
}

.metric-value {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--solar-yellow);
}

.metric-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral-gray);
}

/* ============================================
   SECTION 4 — MODULES
   ============================================ */

.section-modules {
  padding: 4rem 3rem 4rem 4rem;
  border-bottom: 4px solid var(--rich-black);
}

.modules-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.modules-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.modules-count {
  color: var(--deep-mustard);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 4px solid var(--rich-black);
}

.module-card {
  padding: 2.5rem;
  border: 2px solid var(--rich-black);
  background: var(--pure-white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  transition: background 0.15s ease;
}

.module-card--filled {
  background: var(--solar-yellow);
}

.module-card:hover {
  background: var(--bright-amber);
}

.module-num {
  color: var(--deep-mustard);
  font-size: 0.85rem;
}

.module-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.module-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: auto;
  color: var(--rich-black);
  opacity: 0.75;
}

/* ============================================
   SECTION 5 — MANIFESTO
   ============================================ */

.section-manifesto {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 8rem 4rem;
  background: var(--pure-white);
  border-bottom: 4px solid var(--rich-black);
  text-align: center;
}

.manifesto-quote {
  border: none;
}

.manifesto-text {
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: var(--rich-black);
  animation: textReveal 1.2s ease forwards;
}

@keyframes textReveal {
  from {
    opacity: 0;
    letter-spacing: 0.3em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.02em;
  }
}

.manifesto-bar {
  width: 80px;
  height: 8px;
  background: var(--solar-yellow);
  margin-top: 4rem;
}

/* ============================================
   SECTION 6 — POSTER WALL
   ============================================ */

.section-posters {
  padding: 4rem 3rem 4rem 4rem;
  border-bottom: 4px solid var(--rich-black);
}

.posters-header {
  margin-bottom: 2rem;
  color: var(--deep-mustard);
}

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

.poster-panel {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 4px solid var(--rich-black);
  transition: transform 0.15s ease;
  cursor: default;
}

.poster-panel:hover {
  transform: scale(1.02);
  z-index: 1;
}

.poster-panel--a {
  background: var(--solar-yellow);
  color: var(--rich-black);
}

.poster-panel--b {
  background: var(--rich-black);
  color: var(--solar-yellow);
}

.poster-panel--c {
  background: var(--rich-black);
  color: var(--solar-yellow);
}

.poster-panel--d {
  background: var(--solar-yellow);
  color: var(--rich-black);
}

.poster-label {
  font-size: 0.7rem;
  opacity: 0.6;
}

.poster-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  align-self: flex-end;
}

/* ============================================
   SECTION 7 — PERFORMANCE STRIP
   ============================================ */

.section-performance {
  background: var(--solar-yellow);
  border-bottom: 4px solid var(--rich-black);
  overflow: hidden;
  padding: 1.25rem 0;
}

.performance-track {
  overflow: hidden;
  white-space: nowrap;
}

.performance-inner {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: scrollStrip 18s linear infinite;
}

@keyframes scrollStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.performance-item {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rich-black);
  position: relative;
}

.performance-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rich-black);
  transition: width 0.2s ease;
}

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

.performance-arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--deep-mustard);
}

/* ============================================
   SECTION 8 — CTA
   ============================================ */

.section-cta {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 3rem 6rem 4rem;
  background: var(--rich-black);
  border-bottom: 4px solid var(--solar-yellow);
  text-align: center;
}

.cta-headline {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--pure-white);
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rich-black);
  background: var(--solar-yellow);
  padding: 1.25rem 3rem;
  border: 4px solid var(--solar-yellow);
  transition: background 0.15s ease, color 0.15s ease;
}

.cta-button:hover {
  background: var(--rich-black);
  color: var(--solar-yellow);
}

/* ============================================
   CONTACT
   ============================================ */

.section-contact {
  padding: 5rem 3rem 5rem 4rem;
  border-bottom: 4px solid var(--rich-black);
}

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

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  color: var(--deep-mustard);
  font-size: 0.7rem;
}

.contact-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.contact-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--solar-yellow);
  transition: width 0.2s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  padding: 6rem 3rem 3rem 4rem;
  overflow: hidden;
  min-height: 200px;
}

.footer-billboard {
  position: absolute;
  bottom: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8rem, 25vw, 20rem);
  color: var(--neutral-gray);
  opacity: 0.35;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--rich-black);
  opacity: 0.5;
  letter-spacing: 0.15em;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --identity-bar-width: 48px;
  }

  .identity-letter {
    font-size: 1.1rem;
  }

  .system-labels {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.55rem;
    flex-wrap: wrap;
    max-width: 200px;
    justify-content: flex-end;
  }

  .section-hero,
  .section-metrics,
  .section-modules,
  .section-posters,
  .section-contact,
  .section-manifesto,
  .section-cta {
    padding-left: 2rem;
    padding-right: 1.5rem;
  }

  .statement-block {
    padding: 2rem 1.5rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .statement-word {
    text-align: left;
    font-size: clamp(2.5rem, 15vw, 5rem);
  }

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

  .module-card {
    min-height: 200px;
  }

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

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

  .poster-panel {
    aspect-ratio: 1 / 1;
  }

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

@media (max-width: 480px) {
  :root {
    --identity-bar-width: 36px;
  }

  .identity-letter {
    font-size: 0.85rem;
  }

  .system-labels span:not(.label-sep):nth-child(3),
  .system-labels .label-sep:nth-child(4) {
    display: none;
  }

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

  .poster-panel {
    aspect-ratio: 16 / 9;
    flex-direction: row;
    align-items: center;
  }

  .poster-title {
    align-self: center;
  }
}
