:root {
  --void: #050506;
  --ink: #0a0a0c;
  --steel: #b2c2cc;
  --cyan: #9ebccc;
  --cyan-deep: #385c7a;
  --path: #dbad61;
  --amber: #b87a2e;
  --magenta: #9e3829;
  --alert: #c73d2e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: color-mix(in srgb, var(--steel) 86%, #050506);
  font-family: "SFMono-Regular", "SF Mono", "Roboto Mono", "Courier New", monospace;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--void);
}

.hero-photo {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: calc(100vw * 471 / 1024);
  max-height: 100%;
  pointer-events: none;
  background: url("images/hero.jpg?v=2") center top / 100% 100% no-repeat;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.62) 58%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 32%,
    rgba(0, 0, 0, 0.62) 58%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-conic-gradient(
      from 0deg,
      rgba(0, 0, 0, 0.42) 0deg 90deg,
      rgba(255, 255, 255, 0.05) 90deg 180deg
    ),
    repeating-radial-gradient(
      circle at 1px 1px,
      rgba(0, 0, 0, 0.38) 0 0.55px,
      transparent 0.7px 3px
    ),
    repeating-radial-gradient(
      circle at 2px 2px,
      rgba(255, 255, 255, 0.09) 0 0.4px,
      transparent 0.55px 4px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='1' height='1' fill='%23000' fill-opacity='.32'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23fff' fill-opacity='.1'/%3E%3Ccircle cx='5' cy='1.2' r='.55' fill='%23000' fill-opacity='.36'/%3E%3Ccircle cx='1.4' cy='4.2' r='.45' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E");
  background-size: 2px 2px, 3px 3px, 4px 4px, 6px 6px;
  mix-blend-mode: overlay;
  opacity: 0.72;
}

.ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  overflow: hidden;
  border-top: 0;
  background: transparent;
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  color: #dbad61;
  font-size: 11px;
  letter-spacing: 0.42em;
  opacity: 0.78;
}

.ticker-seq {
  display: flex;
  flex-shrink: 0;
  gap: 44px;
  padding-right: 44px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.side-rail {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.38em;
  font-size: 11px;
  color: color-mix(in srgb, var(--path) 72%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.header {
  width: 100%;
  min-height: 105px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px clamp(32px, 4.5vw, 86px) 12px;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.logo span:not(.path) {
  color: var(--cyan);
}

.logo span.path {
  color: #dbad61;
}

.mast {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 200;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-align: right;
  color: color-mix(in srgb, var(--steel) 90%, transparent);
}

.mast span {
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: 46px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

.nav a {
  opacity: 0.82;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav a:hover {
  color: var(--path);
  opacity: 1;
}

.header-note {
  max-width: 280px;
  text-align: right;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--steel) 62%, transparent);
}

.moves-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  width: min(420px, 86vw);
  margin-top: 36px;
}

.moves-mini span {
  display: block;
  color: #dbad61;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.moves-mini p {
  color: color-mix(in srgb, var(--steel) 72%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(560px, 90vw);
  margin-left: clamp(32px, 4.5vw, 86px);
  padding-bottom: 48px;
}

.eyebrow {
  color: color-mix(in srgb, var(--path) 78%, transparent);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(60px, 6.3vw, 105px);
  line-height: 0.88;
  font-weight: 200;
  letter-spacing: 0.09em;
  margin-bottom: 34px;
  color: color-mix(in srgb, var(--steel) 88%, #050506);
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--steel) 78%, transparent);
  margin-bottom: 30px;
}

.appstore {
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  transition: transform 180ms ease, filter 180ms ease;
}

.appstore:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.appstore img {
  display: block;
  width: 168px;
  height: 56px;
}

footer.hero-foot {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border: 0;
  padding: 12px clamp(22px, 4.5vw, 86px) calc(14px + env(safe-area-inset-bottom, 0px));
  font-size: 11px;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--steel) 55%, transparent);
}

footer.hero-foot a {
  justify-self: start;
  text-align: left;
}

footer.hero-foot span {
  justify-self: end;
  text-align: right;
}

footer.hero-foot a:hover {
  color: var(--path);
}

.subpage .header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage footer {
  min-height: 72px;
  padding: 22px clamp(22px, 5vw, 85px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.subpage footer a {
  justify-self: start;
  color: var(--cyan);
}

.subpage footer a:hover {
  color: var(--path);
}

.subpage footer .copyright {
  justify-self: end;
  text-align: right;
}

.footer-logo {
  font-size: 15px;
  letter-spacing: 0.28em;
}

.footer-logo span {
  color: var(--cyan);
}

.footer-logo .path {
  color: var(--path);
}

.footer-links {
  display: flex;
  gap: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: color-mix(in srgb, var(--steel) 62%, transparent);
}

.footer-links a:hover {
  color: var(--path);
}

.copyright {
  color: color-mix(in srgb, var(--steel) 42%, transparent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.legal {
  width: min(720px, calc(100% - 64px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal h1 {
  color: color-mix(in srgb, var(--steel) 88%, #050506);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 200;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.legal .meta {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}

.legal h2 {
  color: color-mix(in srgb, var(--path) 82%, transparent);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin: 36px 0 12px;
}

.legal p {
  color: color-mix(in srgb, var(--steel) 68%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal a {
  color: var(--cyan);
}

.legal a:hover {
  color: var(--path);
}

@media (max-width: 800px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
  }

  .header,
  .hero-foot {
    padding-left: 22px;
    padding-right: 22px;
  }

  .header {
    height: auto;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .ticker,
  .hero-foot {
    flex-shrink: 0;
  }

  .hero-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .mast {
    font-size: clamp(28px, 10vw, 44px);
  }

  .logo {
    font-size: 17px;
  }

  .hero-photo {
    height: 100%;
    background-size: cover;
    background-position: left center;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 40%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.12) 88%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 40%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.12) 88%,
      transparent 100%
    );
  }

  .hero-overlay {
    background: none;
  }

  .hero-content {
    margin-left: 24px;
    padding-top: 36px;
    padding-bottom: 8px;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 78px);
  }

  .side-rail {
    display: none;
  }

  .header-note {
    max-width: 160px;
    font-size: 10px;
  }

  .moves-mini {
    margin-top: 28px;
    gap: 14px 18px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: calc(100% - 48px);
  }

  .hero h1 {
    font-size: 54px;
  }

  .description {
    font-size: 13px;
  }

  footer.hero-foot,
  .subpage footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
