@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --basalt: #17141f;
  --basalt-2: #231e2e;
  --trail: #4b3a2d;
  --trail-edge: #33271f;
  --rift: #a56bff;
  --core: #35d9d2;
  --energy: #f2b23e;
  --ash: #eeeaf5;
  --ash-2: #b9b2c9;
  --trail-width: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--basalt);
  color: var(--ash);
  font: 400 18px/1.6 "Inter", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--core); text-underline-offset: 3px; }
a:hover { color: var(--ash); }
:focus-visible { outline: 3px solid var(--energy); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 3; padding: 20px 0; }
.top .wrap { display: flex; justify-content: flex-end; gap: 24px; }
.top a { color: var(--ash); text-decoration: none; font-size: 15px; font-weight: 500; }
.top a:hover { color: var(--core); }

/* Hero: the rift, where the route begins */
.hero { position: relative; min-height: min(100vh, 860px); display: grid; align-items: center; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0 0 0 auto; width: min(54%, 700px); height: 100%;
  object-fit: cover; object-position: 50% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 130px;
  background: linear-gradient(transparent, var(--basalt));
}
.hero-copy { position: relative; z-index: 2; padding: 96px 0 72px; }
.hero-copy img { width: min(460px, 86%); margin-left: -14px; }
.nb { white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 18px 0 16px; max-width: 11em; }
.hero p { max-width: 24em; margin: 0 0 28px; color: var(--ash-2); font-size: 20px; line-height: 1.5; }
.status { display: inline-block; padding: 12px 20px; border: 2px solid var(--core); border-radius: 10px; font-weight: 600; font-size: 16px; }

/* The route that runs down the page */
.turn { display: block; width: 100%; height: 150px; overflow: visible; }
.turn path { fill: none; vector-effect: non-scaling-stroke; }
.turn .bed { stroke: var(--trail-edge); stroke-width: calc(var(--trail-width) + 10px); }
.turn .road { stroke: var(--trail); stroke-width: var(--trail-width); }
.turn .march { stroke: var(--rift); stroke-width: 5px; stroke-dasharray: 3 24; stroke-linecap: round; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -27; } }
.stub { display: none; }

/* Sections sit on the route: each screenshot is a stop */
.leg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.leg .shot { justify-self: center; width: min(320px, 100%); position: relative; z-index: 1; grid-column: 2; grid-row: 1; }
.leg .text { grid-column: 1; grid-row: 1; padding-right: 48px; }
.leg.flip .shot { grid-column: 1; }
.leg.flip .text { grid-column: 2; padding: 0 0 0 48px; }
.shot img { border-radius: 26px; border: 3px solid var(--core); box-shadow: 0 0 0 10px var(--basalt), 0 0 54px rgba(53, 217, 210, .28); }
.leg.flip .shot img { border-color: var(--rift); box-shadow: 0 0 0 10px var(--basalt), 0 0 54px rgba(165, 107, 255, .32); }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; }
.text p { margin: 0 0 18px; color: var(--ash-2); max-width: 32em; }
.family { border-radius: 12px; margin: 22px 0 18px; }

.towers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 0; }
.towers div { min-width: 0; }
.towers dt { font-weight: 700; font-size: 16px; }
.towers dd { margin: 0; color: var(--ash-2); font-size: 15px; line-height: 1.4; }

.bosses { list-style: none; padding: 0; margin: 0; }
.bosses li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(238, 234, 245, .16); font-weight: 600; }
.bosses span { color: var(--rift); font-weight: 500; white-space: nowrap; }

/* The core: where the route ends */
.core { text-align: center; padding-bottom: 72px; }
.core img { width: min(380px, 100%); margin: 0 auto 30px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--core); position: relative; box-shadow: 0 0 80px rgba(53, 217, 210, .3); }
.core p { color: var(--ash-2); max-width: 34em; margin: 0 auto 26px; }
.promises { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0 auto 30px; max-width: 760px; }
.promises li { padding: 10px 16px; background: var(--basalt-2); border-radius: 8px; font-size: 16px; font-weight: 500; }

.foot { background: #100e16; padding: 34px 0; font-size: 14px; color: var(--ash-2); line-height: 1.6; }
.foot p { margin: 0; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot nav { display: flex; flex-direction: column; gap: 4px; }

/* Legal pages */
.bar { padding: 18px 0; border-bottom: 1px solid rgba(238, 234, 245, .14); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bar img { width: 104px; }
.bar nav { display: flex; gap: 20px; font-size: 15px; }
.bar nav a { color: var(--ash); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--core); }
.legal { width: min(720px, 100% - 40px); margin: 0 auto; padding: 44px 0 72px; font-size: 17px; }
.legal .lang { display: flex; gap: 16px; margin-bottom: 18px; font-size: 15px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px; }
.legal .meta { color: var(--ash-2); margin: 0 0 26px; font-size: 15px; }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: 34px 0 8px; }
.legal p, .legal li { color: #d8d3e3; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal hr { border: 0; border-top: 2px solid var(--trail); margin: 60px 0; }
.legal .box { background: var(--basalt-2); border-left: 4px solid var(--core); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.legal .box p { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(238, 234, 245, .16); }
.legal th { color: var(--ash); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { min-height: 0; display: block; padding-top: 0; }
  .hero-art { position: relative; width: 100%; height: 56vh; min-height: 340px; object-position: 50% 44%; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .hero::after { display: none; }
  .hero-copy { padding: 0 0 12px; margin-top: -74px; }
  .turn { display: none; }
  .stub { display: block; width: var(--trail-width); height: 70px; margin: 0 auto; background: var(--trail); box-shadow: 0 0 0 5px var(--trail-edge); }
  .leg, .leg.flip { display: flex; flex-direction: column; }
  .leg .text, .leg.flip .text { padding: 0; margin-bottom: 30px; width: 100%; }
  .leg .shot { width: min(300px, 86%); margin-bottom: 32px; }
}

@media (max-width: 440px) {
  .towers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .turn .march { animation: none; }
}
