:root {
  --black: #050607;
  --panel: #0d0f10;
  --line: rgba(211, 216, 218, .22);
  --line-strong: rgba(211, 216, 218, .42);
  --text: #d7dbdc;
  --muted: #7c8487;
  --red: #d83a2e;
  --mono: "IBM Plex Mono", monospace;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --pad: clamp(20px, 3vw, 54px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  color: var(--text);
  background: var(--black);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a, button { color: inherit; }
a { text-decoration: none; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .14em; }

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(320px, .42fr) 1fr minmax(300px, .42fr);
  align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(5,6,7,.86);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--condensed);
  font-size: clamp(34px, 3.1vw, 58px);
  font-weight: 600;
  letter-spacing: .18em;
  white-space: nowrap;
}
.topbar nav {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 5vw, 78px);
  font-size: 14px;
}
.topbar nav a {
  position: relative;
  color: #d8dcdd;
}
.topbar nav .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--red);
}
.top-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
}
.search-icon,
.menu-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
}
.search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -7px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
}
.menu-icon {
  width: 24px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.hero {
  position: relative;
  min-height: 690px;
  height: 72svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 128px 128px;
  opacity: .34;
}
.hero-bg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  opacity: 0;
  filter: brightness(.55) contrast(1.18) saturate(.2);
  transform: translate3d(var(--bgx, 0), var(--bgy, 0), 0) scale(1.03);
  animation: bg-on 1.2s ease forwards;
}
.noise-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 50%, rgba(255,255,255,.05), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.032) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: .38;
}
.main-frame {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 8%;
  width: 60%;
  max-width: 1000px;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.7)) contrast(1.12) brightness(.98);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(var(--mx, 0), 30px, 0) scale(var(--frame-scale, 1)) rotate(var(--mr, 0deg));
  animation: frame-in 1.2s .35s cubic-bezier(.16,1,.3,1) forwards;
}
.frame-sweep {
  position: absolute;
  z-index: 4;
  right: -8%;
  top: 3%;
  width: 62%;
  height: 62%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.34) 48%, rgba(255,255,255,.08) 54%, transparent 66%);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transform: translateX(-80%);
  animation: sweep 1.35s 1.55s cubic-bezier(.16,1,.3,1) forwards;
}
.foreground-hub {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: -2%;
  width: 38%;
  max-width: 650px;
  opacity: 0;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,.8)) contrast(1.14) brightness(.78);
  mix-blend-mode: screen;
  transform: translate3d(var(--hx, 0), 20px, 0) rotate(var(--hr, 0deg));
  animation: hub-in 1.1s .75s cubic-bezier(.16,1,.3,1) forwards;
}
.ui-scan {
  position: absolute;
  z-index: 6;
  inset: 72px 0 auto;
  height: 1px;
  pointer-events: none;
  opacity: .75;
  background: linear-gradient(90deg, transparent, rgba(216,58,46,.72), rgba(220,226,228,.28), transparent);
  transform: translateY(0);
  animation: scan-pass 4.8s 2s linear infinite;
}
.main-frame + .foreground-hub::before {
  content: "";
}
.ui-layer { position: absolute; z-index: 6; }
.left-meta {
  left: 3.8%;
  top: 100px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.left-meta > * {
  opacity: 0;
  transform: translateY(-8px);
  animation: meta-on .42s cubic-bezier(.16,1,.3,1) forwards;
}
.left-meta > *:nth-child(1) { animation-delay: 1.25s; }
.left-meta > *:nth-child(2) { animation-delay: 1.32s; }
.left-meta > *:nth-child(3) { animation-delay: 1.39s; }
.left-meta > *:nth-child(4) { animation-delay: 1.46s; }
.left-meta > *:nth-child(5) { animation-delay: 1.53s; }
.left-meta > *:nth-child(6) { animation-delay: 1.6s; }
.left-meta > *:nth-child(7) { animation-delay: 1.67s; }
.left-meta b,
.left-meta strong,
.right-unit b,
.warning span,
.manifest p { color: var(--red); }
.left-meta strong {
  font-family: var(--condensed);
  font-size: 34px;
  line-height: .82;
  letter-spacing: .12em;
}
.left-meta em { font-style: normal; color: var(--text); }
.left-meta i {
  width: 26px;
  height: 26px;
  position: relative;
  margin-top: 30px;
}
.left-meta i::before,
.left-meta i::after {
  content: "";
  position: absolute;
  background: var(--line-strong);
}
.left-meta i::before { width: 100%; height: 1px; top: 50%; }
.left-meta i::after { height: 100%; width: 1px; left: 50%; }
.hero-copy {
  position: absolute;
  z-index: 5;
  left: 12%;
  top: 120px;
  width: min(36%, 620px);
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(112px, 13vw, 238px);
  font-weight: 700;
  line-height: .82;
  letter-spacing: .03em;
  color: #d9dddc;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,.42));
  text-shadow:
    0 1px 0 #ffffff,
    0 -1px 0 #606668,
    0 10px 30px rgba(0,0,0,.72);
}
.hero-copy h1 span {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: mask-reveal .9s .95s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-copy h1 span:nth-child(2) { animation-delay: 1.1s; }
.kicker {
  width: max-content;
  margin: 18px 0 20px;
  padding-left: 20px;
  border-left: 2px solid var(--red);
  color: #d9ddde;
  font-size: 15px;
  line-height: 1.5;
}
.body-copy {
  width: min(350px, 92%);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: .06em;
  line-height: 1.55;
}
.archive-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 18px 42px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.08);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.archive-link::after { content: "↗"; margin-left: 16px; color: var(--red); }
.archive-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-18deg);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.archive-link:hover::before { transform: translateX(360%) skewX(-18deg); }
.spec-panel {
  left: 27%;
  bottom: 38px;
  width: 360px;
  display: grid;
  gap: 8px;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: panel-on .7s 1.45s cubic-bezier(.16,1,.3,1) forwards;
}
.spec-panel dt { color: var(--text); margin-bottom: 6px; }
.spec-panel dd {
  display: grid;
  grid-template-columns: 112px 1fr;
  margin: 0;
}
.spec-panel b { color: #aeb5b8; font-weight: 500; }
.right-unit {
  right: 4%;
  top: 112px;
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  transform: translateX(18px);
  animation: side-on .7s 1.55s cubic-bezier(.16,1,.3,1) forwards;
}
.right-unit p {
  width: max-content;
  margin: 0 0 24px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.right-unit span { display: block; margin-bottom: 8px; }
.warning {
  right: 4%;
  bottom: 58px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 12px;
  opacity: 0;
  transform: translateX(18px);
  animation: side-on .7s 1.75s cubic-bezier(.16,1,.3,1) forwards;
}
.warning span {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 24px solid var(--red);
  animation: red-pulse 2.8s 2.4s ease-in-out infinite;
}
.warning b { color: var(--text); }
.warning p { margin: 8px 0 0; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.65fr;
  gap: 18px;
  padding: 18px var(--pad) 28px;
  border-bottom: 1px solid var(--line);
}
.module-card,
.manifest {
  position: relative;
  min-height: 176px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #0a0c0d;
}
.module-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,58,46,.9), transparent);
  transform: translateX(-100%);
  opacity: 0;
}
.module-card:hover::before {
  opacity: 1;
  animation: card-scan .7s cubic-bezier(.16,1,.3,1);
}
.module-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.16) brightness(.82);
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .7s;
}
.module-card:hover img {
  transform: scale(1.04);
  filter: grayscale(.8) contrast(1.22) brightness(.95);
}
.module-card span {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  font-size: 12px;
}
.module-card span::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--red);
}
.module-card h2 {
  margin: 14px 16px 2px;
  font-family: var(--condensed);
  font-size: 26px;
  letter-spacing: .12em;
}
.module-card p {
  margin: 0 16px;
  color: var(--muted);
  font-size: 11px;
}
.module-card::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 26px;
}
.manifest {
  padding: 34px 42px;
}
.manifest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}
.manifest p,
.manifest h2,
.manifest span {
  position: relative;
  z-index: 1;
}
.manifest h2 {
  margin: 26px 0;
  font-family: var(--condensed);
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .18em;
}
.manifest span { color: var(--muted); font-size: 12px; }

.footer {
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1.4fr 1.4fr;
  gap: clamp(24px, 4vw, 80px);
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--condensed);
  font-size: 22px;
  letter-spacing: .16em;
}
.footer p { margin: 0; line-height: 1.75; }
.footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 10px 24px;
}
.mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--condensed);
  font-size: 34px;
}
.status {
  padding: 16px;
  border: 1px solid var(--line-strong);
}
.status span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
  animation: red-pulse 2.4s ease-in-out infinite;
}

@keyframes bg-on { to { opacity: 1; } }
@keyframes frame-in { to { opacity: 1; transform: translate3d(var(--mx, 0), 0, 0) scale(var(--frame-scale, 1)) rotate(var(--mr, 0deg)); } }
@keyframes hub-in { to { opacity: 1; transform: translate3d(var(--hx, 0), 0, 0) rotate(var(--hr, 0deg)); } }
@keyframes mask-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes sweep {
  0% { opacity: 0; transform: translateX(-70%); }
  18% { opacity: .85; }
  100% { opacity: 0; transform: translateX(70%); }
}
@keyframes scan-pass {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: .72; }
  42% { opacity: .18; }
  100% { opacity: 0; transform: translateY(610px); }
}
@keyframes meta-on { to { opacity: 1; transform: translateY(0); } }
@keyframes panel-on { to { opacity: 1; transform: translateY(0); } }
@keyframes side-on { to { opacity: 1; transform: translateX(0); } }
@keyframes red-pulse {
  0%, 100% { filter: brightness(1); opacity: .78; }
  50% { filter: brightness(1.6); opacity: 1; }
}
@keyframes card-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .top-actions button:first-child,
  .divider { display: none; }
  .hero {
    min-height: 780px;
    height: auto;
  }
  .main-frame {
    top: 23%;
    right: -18%;
    width: 92%;
  }
  .foreground-hub {
    width: 58%;
    left: -12%;
  }
  .hero-copy {
    left: 24px;
    top: 108px;
    width: 70%;
  }
  .hero-copy h1 { font-size: clamp(86px, 22vw, 150px); }
  .left-meta, .right-unit, .warning, .spec-panel { display: none; }
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .manifest { grid-column: 1 / -1; }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 64px;
    padding-inline: 18px;
  }
  .brand { font-size: 30px; }
  .top-actions { font-size: 11px; }
  .hero-copy {
    width: calc(100% - 36px);
  }
  .kicker { font-size: 13px; }
  .body-copy { width: 260px; }
  .main-frame {
    top: 31%;
    right: -48%;
    width: 132%;
  }
  .foreground-hub {
    width: 82%;
    left: -34%;
  }
  .module-grid,
  .footer {
    grid-template-columns: 1fr;
  }
}
