:root {
  --black: #050303;
  --ink: #0c0807;
  --charcoal: #171412;
  --bone: #dad0c2;
  --ash: #90867b;
  --rust: #8d2416;
  --blood: #e21209;
  --ember: #ff3c13;
  --cyan: #6fd2c9;
  --bruise: #352a36;
  --edge: rgba(218, 208, 194, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--bone);
  background:
    radial-gradient(circle at 80% 20%, rgba(226, 18, 9, 0.18), transparent 28rem),
    linear-gradient(180deg, #070303 0%, #110706 46%, #030202 100%);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 7px 11px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 3, 3, 0.94), rgba(5, 3, 3, 0.16));
  border-bottom: 1px solid rgba(218, 208, 194, 0.08);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 3, 3, 0.92);
  border-color: rgba(218, 208, 194, 0.16);
}

.brand img {
  width: clamp(160px, 20vw, 285px);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 60, 19, 0.26));
}

nav {
  display: flex;
  gap: clamp(0.65rem, 2vw, 1.35rem);
  font-size: 0.77rem;
  text-transform: uppercase;
  color: rgba(218, 208, 194, 0.82);
}

nav a {
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
  border-color: var(--blood);
}

.steam-nav {
  color: #fff;
  border-color: rgba(226, 18, 9, 0.72);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1rem, 5vw, 5rem) 5rem;
  isolation: isolate;
}

.hero-art,
.hero-vignette,
.hero-scanline {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.12) brightness(0.72);
}

.hero-vignette {
  z-index: -2;
  background:
    radial-gradient(circle at 54% 48%, transparent 0 18%, rgba(5, 3, 3, 0.36) 42%, rgba(5, 3, 3, 0.92) 86%),
    linear-gradient(90deg, rgba(5, 3, 3, 0.96), rgba(5, 3, 3, 0.42) 44%, rgba(5, 3, 3, 0.84));
}

.hero-scanline {
  z-index: -1;
  opacity: 0.28;
  background: linear-gradient(180deg, transparent, rgba(111, 210, 201, 0.32), transparent);
  height: 26%;
  animation: scan 6s infinite linear;
}

.hero-content {
  max-width: 740px;
}

.kicker,
.eyebrow,
.readout-label {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.76rem;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: 0.88;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 0.94;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-copy,
.section-copy p,
.depth-display p,
.system-card p,
figcaption,
.site-footer p {
  color: rgba(218, 208, 194, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--edge);
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.primary-link {
  background: var(--blood);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 24px rgba(226, 18, 9, 0.38);
}

.secondary-link {
  background: rgba(5, 3, 3, 0.62);
  color: var(--bone);
}

.signal-panel {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 2rem;
  display: grid;
  gap: 0.35rem;
  max-width: 300px;
  padding: 1rem;
  color: rgba(218, 208, 194, 0.86);
  background: rgba(5, 3, 3, 0.66);
  border: 1px solid rgba(111, 210, 201, 0.28);
  border-radius: 4px;
  backdrop-filter: blur(12px);
}

.signal-panel span,
.signal-panel small {
  color: rgba(111, 210, 201, 0.9);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.signal-panel strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-copy {
  max-width: 690px;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.case-band {
  min-height: 60vh;
}

.quote-wall {
  display: grid;
  gap: 0.7rem;
  border-left: 1px solid var(--blood);
  padding-left: 1.25rem;
}

.quote-wall p {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.descent-section {
  position: relative;
  overflow: hidden;
  min-height: 86vh;
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: #090504;
  border-block: 1px solid rgba(218, 208, 194, 0.08);
}

.descent-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background:
    linear-gradient(180deg, rgba(5, 3, 3, 0.94), rgba(5, 3, 3, 0.48), rgba(5, 3, 3, 0.96)),
    url("assets/mariano-freyre-pd-01.jpg") center/cover;
  filter: grayscale(0.2) contrast(1.08);
}

.descent-section > *:not(.descent-backdrop) {
  position: relative;
}

.depth-console {
  width: min(980px, calc(100% - 2rem));
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 92px;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 3, 3, 0.76);
  border: 1px solid rgba(111, 210, 201, 0.2);
  border-radius: 6px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
}

.depth-meter {
  display: grid;
  gap: 0.7rem;
}

.depth-meter span {
  height: 44px;
  border: 1px solid rgba(218, 208, 194, 0.18);
  border-radius: 4px;
  background: rgba(218, 208, 194, 0.05);
}

.depth-meter span.active {
  background: linear-gradient(90deg, rgba(226, 18, 9, 0.95), rgba(111, 210, 201, 0.5));
  box-shadow: 0 0 18px rgba(226, 18, 9, 0.45);
}

.depth-display {
  min-height: 180px;
}

.depth-control {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 1rem;
  min-height: 260px;
  color: var(--ash);
  text-transform: uppercase;
  font-size: 0.76rem;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blood);
}

#depth-slider {
  width: 240px;
  height: 34px;
  cursor: grab;
  touch-action: none;
  transform: rotate(90deg);
}

#depth-slider:active {
  cursor: grabbing;
}

.systems-band,
.evidence-band {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.system-card {
  min-height: 260px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(218, 208, 194, 0.08), rgba(218, 208, 194, 0.025));
  border: 1px solid rgba(218, 208, 194, 0.12);
  border-radius: 6px;
}

.system-card span {
  display: inline-block;
  margin-bottom: 2.25rem;
  color: var(--cyan);
  font-size: 0.8rem;
}

.alpha-band {
  align-items: center;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
}

.poster-frame {
  overflow: hidden;
  border: 1px solid rgba(218, 208, 194, 0.12);
  border-radius: 6px;
  background: var(--black);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.scope-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  padding: 0.85rem 0 0.85rem 1rem;
  color: rgba(218, 208, 194, 0.84);
  border-left: 2px solid rgba(226, 18, 9, 0.84);
  background: linear-gradient(90deg, rgba(226, 18, 9, 0.08), transparent);
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(218, 208, 194, 0.12);
  background: #050303;
}

figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

figcaption {
  padding: 0.8rem;
  color: rgba(218, 208, 194, 0.7);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(218, 208, 194, 0.12);
}

.site-footer img {
  width: 230px;
}

.site-footer p {
  margin: 0;
  text-transform: uppercase;
}

@keyframes scan {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(390%);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 94vh;
    padding-top: 9rem;
  }

  .signal-panel {
    position: static;
    margin-top: 2rem;
    max-width: 100%;
  }

  .section-grid,
  .alpha-band,
  .system-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .depth-console {
    grid-template-columns: minmax(82px, 0.3fr) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .depth-control {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 250px;
  }

  .depth-meter {
    grid-column: 2;
  }

  .depth-display {
    grid-column: 2;
  }

  .depth-display {
    min-height: 220px;
  }

  figure img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .depth-console {
    grid-template-columns: 1fr;
  }

  .depth-control,
  .depth-meter,
  .depth-display {
    grid-column: 1;
    grid-row: auto;
  }

  .depth-control {
    min-height: 220px;
  }

  .depth-control span {
    max-width: 160px;
  }

  .depth-meter {
    grid-template-columns: 1fr;
  }

  .depth-meter span {
    height: 30px;
  }
}
