:root {
  --void: #05060a;
  --panel: rgba(10, 14, 22, 0.72);
  --cream: #f4e7d6;
  --cream-dim: #c9b7a4;
  --ice: #d7e8ff;
  --earth: #3d86ff;
  --line: rgba(215, 232, 255, 0.16);
  --ink: #071018;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--void);
  line-height: 1.6;
}
img { display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #2457b8; color: #fff; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--earth), var(--ice));
  z-index: 40;
}

.sky, .sky canvas, .limbs, .earth, .grid, .follow, .grain, .vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.sky { z-index: 0; }
#stars { width: 100%; height: 100%; }
.limbs {
  background:
    radial-gradient(42% 80% at 0% 55%, rgba(40, 110, 255, 0.22), transparent 70%),
    radial-gradient(42% 80% at 100% 55%, rgba(40, 110, 255, 0.2), transparent 70%);
}
.earth {
  top: auto;
  left: -20%;
  right: -20%;
  bottom: -46vh;
  height: 62vh;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(120, 176, 255, 0.5), rgba(18, 48, 110, 0.18) 42%, transparent 68%);
  filter: blur(6px);
  animation: limb 12s ease-in-out infinite;
}
.grid {
  background-image:
    linear-gradient(rgba(215, 232, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 232, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
  animation: gridshift 36s linear infinite;
}
.follow {
  width: 42vw;
  height: 42vw;
  inset: auto;
  left: var(--mx, 50%);
  top: var(--my, 20%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 134, 255, 0.16), transparent 62%);
  transition: left 0.4s ease, top 0.4s ease;
}
.grain {
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  animation: grain 0.9s steps(2) infinite;
}
.vignette {
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.nav, main, .foot { position: relative; z-index: 2; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  background: rgba(5, 6, 10, 0.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: 0.22em;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(215, 232, 255, 0.25);
}
.links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.links a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--cream-dim);
  position: relative;
}
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.links a:hover { color: var(--cream); }
.links a:hover::after { transform: scaleX(1); }
.nav-side {
  display: flex;
  align-items: center;
  gap: 14px;
}
#bridge-time {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.14em;
  color: var(--ice);
  font-size: 15px;
}
.nav-x {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.nav-x:hover { transform: translateY(-2px); border-color: var(--ice); }
.menu {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 120px 7vw 90px;
  position: relative;
  overflow: hidden;
}
.tubes {
  position: absolute;
  top: 78px;
  left: 10%;
  right: 10%;
  height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.tubes span {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(236, 244, 255, 0.95), transparent);
  box-shadow: 0 0 16px rgba(215, 232, 255, 0.85);
  animation: tube 6.5s infinite;
}
.tubes span:nth-child(2) { animation-delay: 1.1s; opacity: 0.72; }
.tubes span:nth-child(3) { animation-delay: 2.4s; opacity: 0.45; }

.kicker, .index, .seal-tag, .stats dt, .steps span, .plate-head p {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker {
  margin: 0 0 10px;
  color: var(--ice);
  font-size: 15px;
}
h1 { margin: 0; line-height: 0.86; }
.rank {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
}
.name {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 680;
  font-size: clamp(84px, 12vw, 168px);
  letter-spacing: -0.04em;
  background: linear-gradient(185deg, #fff 8%, #f4e7d6 46%, #8eb6ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.post {
  margin: 14px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--cream);
}
.lede {
  max-width: 46ch;
  color: var(--cream-dim);
  font-weight: 300;
  font-size: 17px;
}
.cta, .plate-links, .join-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.btn img { width: 18px; height: 18px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28), transparent 58%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { animation: sheen 0.7s ease; }
.solid { background: var(--cream); color: var(--ink); }
.solid img { filter: brightness(0); }
.ghost { border: 1px solid var(--line); background: rgba(5, 8, 14, 0.45); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  max-width: 560px;
}
.stats div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.stats dt { color: var(--cream-dim); font-size: 13px; }
.stats dd { margin: 2px 0 0; font-family: Fraunces, Georgia, serif; font-size: 20px; }

.seal {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(215, 232, 255, 0.28);
}
.ring-a { inset: 4%; animation: spin 28s linear infinite; border-style: dashed; }
.ring-b { inset: 12%; animation: spin 18s linear infinite reverse; }
.sweep {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(215, 232, 255, 0.55) 88%, transparent 100%);
  animation: spin 9s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 63% 70%, transparent 72%);
  mask: radial-gradient(circle, transparent 61%, #000 63% 70%, transparent 72%);
}
.portrait {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(244, 231, 214, 0.35),
    0 0 80px rgba(215, 232, 255, 0.22);
  animation: float 6.5s ease-in-out infinite;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.whisk {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 231, 214, 0.7), transparent);
  z-index: 2;
  animation: whisk 3.6s ease-in-out infinite;
}
.w1 { width: 18%; left: 2%; top: 46%; transform: rotate(-8deg); }
.w2 { width: 16%; left: 4%; top: 54%; animation-delay: .4s; }
.w3 { width: 18%; right: 2%; top: 46%; transform: rotate(8deg); animation-delay: .2s; }
.w4 { width: 16%; right: 4%; top: 54%; animation-delay: .6s; }
.seal-tag {
  position: absolute;
  bottom: 6%;
  margin: 0;
  font-size: 13px;
  color: var(--ice);
  z-index: 2;
}
.down {
  position: absolute;
  left: 7vw;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream-dim);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
}
.down i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ice), transparent);
  animation: drop 1.8s ease-in-out infinite;
}

.tape {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.45);
  backdrop-filter: blur(8px);
}
.tape-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 32s linear infinite;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ice);
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape b {
  width: 6px;
  height: 6px;
  align-self: center;
  background: var(--cream);
  transform: rotate(45deg);
}

.block { padding: 96px 0; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.index {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  font-size: 14px;
  margin: 0 0 18px;
}
.index span { color: var(--cream); }
h2 {
  margin: 0 0 14px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.about-grid, .split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.about-grid p, .split p, .card p, .steps p {
  color: var(--cream-dim);
  font-weight: 300;
  font-size: 17px;
}
.seal-mini {
  width: min(280px, 70%);
  margin-left: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(61, 134, 255, 0.25);
  animation: float 7s ease-in-out infinite;
}
.seal-mini img { width: 100%; height: 100%; object-fit: cover; }
.cards, .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.steps { grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; }
.card, .steps li, .plate {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.card::before, .steps li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--ice), transparent);
  animation: rail 3.4s ease-in-out infinite;
}
.card h3, .steps h3, .plate h3 {
  margin: 8px 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  font-size: 26px;
}
.steps span { color: var(--earth); font-size: 14px; }
.plate { margin-top: 18px; }
.plate-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.plate-head p { margin: 0; color: var(--cream-dim); font-size: 14px; }
.spec {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 8px 0 18px;
}
.spec div { border-top: 1px solid var(--line); padding-top: 10px; }
.spec dt {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--cream-dim);
}
.spec dd { margin: 6px 0 0; }
.spec button, .spec a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ice);
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  word-break: break-all;
}
.spec button:hover, .spec a:hover { color: var(--cream); }
.plate-links { margin-top: 8px; }

.hud { position: relative; }
.screen {
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070b12;
  min-height: 640px;
}
.screen iframe {
  width: 100%;
  height: 680px;
  border: 0;
  display: block;
}
.hud .c {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ice);
  z-index: 2;
  animation: blink 4.5s ease-in-out infinite;
}
.hud .tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hud .tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hud .bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.hud .br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.chart-link { margin: 14px 0 0; }
.chart-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chart-link a:hover { color: var(--cream); }

.still {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #070b12;
}
.still img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  height: auto;
}
.still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16), transparent 58%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.still figcaption {
  padding: 12px 16px 14px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-size: 14px;
}
.join-row { margin-top: 22px; }
.socs { display: flex; gap: 10px; }
.soc {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.soc img { width: 18px; height: 18px; }
.soc:hover { transform: translateY(-3px); border-color: var(--cream); }

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--cream-dim);
  font-size: 14px;
}
.foot span {
  margin-left: 8px;
  letter-spacing: 0.18em;
  font-family: "Barlow Condensed", sans-serif;
  color: var(--ice);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes tube {
  0%, 100% { opacity: 0.85; }
  91% { opacity: 0.85; }
  92% { opacity: 0.25; }
  94% { opacity: 1; }
  96% { opacity: 0.4; }
  97% { opacity: 0.95; }
}
@keyframes limb {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes gridshift {
  to { background-position: 88px 88px; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 1%); }
}
@keyframes sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes drop {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes whisk {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}
@keyframes rail {
  0%, 100% { transform: translateY(-30%); opacity: 0; }
  50% { transform: translateY(30%); opacity: 1; }
}
@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.35; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .seal { width: min(380px, 86vw); }
  .about-grid, .split, .cards, .steps, .spec { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .down { display: none; }
}
@media (max-width: 760px) {
  .menu { display: inline-flex; }
  .links {
    display: none;
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 14px;
    flex-direction: column;
    background: rgba(7, 10, 16, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    z-index: 31;
  }
  .links.open { display: flex; }
  .nav-side time { display: none; }
  .about-grid, .split, .cards, .steps, .spec, .stats { grid-template-columns: 1fr; }
  .seal-mini { margin: 0 auto; }
  .foot-row { flex-direction: column; }
  .screen, .screen iframe { min-height: 520px; height: 520px; }
  .hero { padding-inline: 20px; }
  .name { font-size: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
