:root {
  --void-black: #05101e;
  --axis-navy: #071323;
  --deep-orbit: #0e1d31;
  --axis-steel: #233a57;
  --orbital-blue: #365d86;
  --void-white: #f3f5f7;
  --orbital-silver: #c5cbd3;
  --cold-grey: #8d99a8;
  --rail-width: clamp(180px, 11.4vw, 220px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void-black);
}

body {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--void-white);
  background:
    radial-gradient(ellipse 78vw 86vh at calc(50% + var(--rail-width) / 2) 45%, #010408 0%, #010408 48%, #02070d 62%, var(--void-black) 76%, var(--axis-navy) 91%, var(--deep-orbit) 100%),
    var(--void-black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-rail {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: clamp(2rem, 4.6vw, 3.75rem) clamp(1.35rem, 2vw, 1.9rem);
  background: linear-gradient(180deg, rgba(5, 16, 30, 0.82), rgba(7, 19, 35, 0.64));
  border-right: 1px solid rgba(35, 58, 87, 0.42);
}

.rail-brand {
  color: var(--orbital-silver);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rail-links {
  display: grid;
  gap: 1.05rem;
  margin-top: clamp(4rem, 13vh, 8rem);
}

.rail-link {
  position: relative;
  display: block;
  color: rgba(197, 203, 211, 0.66);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.rail-link.is-active {
  color: var(--void-white);
}

.rail-link.is-active::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: -0.82rem;
  width: 1px;
  background: rgba(54, 93, 134, 0.86);
}

.rail-link[href]:hover {
  color: var(--orbital-silver);
}

.rail-link.is-disabled {
  color: rgba(141, 153, 168, 0.48);
  cursor: default;
}

.rail-group {
  display: grid;
  gap: 0.34rem;
}

.rail-sublink {
  position: relative;
  display: block;
  width: fit-content;
  margin-left: 0.72rem;
  color: rgba(197, 203, 211, 0.68);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.rail-sublink::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.72rem;
  width: 0.38rem;
  height: 1px;
  background: rgba(141, 153, 168, 0.42);
}

.rail-sublink:hover,
.rail-sublink:focus {
  color: var(--void-white);
}

.rail-sublink:focus-visible {
  outline: 1px solid rgba(197, 203, 211, 0.86);
  outline-offset: 0.24rem;
}

.splash {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 6rem);
}

.brand-artwork {
  display: block;
  width: min(76vw, 980px);
  max-width: 100%;
  max-height: min(54svh, 620px);
  object-fit: contain;
  opacity: 0;
  transform: translateY(8px);
  animation: settle-in 620ms ease-out 80ms forwards;
}

.site-footer {
  position: fixed;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: calc(var(--rail-width) + clamp(1.25rem, 4vw, 3rem));
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  color: var(--cold-grey);
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}

.site-footer span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-right: 0.85rem;
  vertical-align: -0.08em;
  background: rgba(197, 203, 211, 0.36);
}

@keyframes settle-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .site-rail {
    padding-block: 1.35rem;
  }

  .rail-links {
    margin-top: 2.2rem;
    gap: 0.72rem;
  }

  .splash {
    padding-block: 1.5rem 2.5rem;
  }

  .brand-artwork {
    width: min(58vw, 760px);
    max-height: 68svh;
  }
}

@media (max-width: 820px) {
  :root {
    --rail-width: 0px;
  }

  body {
    display: block;
    background:
      radial-gradient(ellipse 125vw 78vh at 50% 45%, #010408 0%, #010408 50%, #02070d 64%, var(--void-black) 78%, var(--axis-navy) 94%, var(--deep-orbit) 100%),
      var(--void-black);
  }

  .site-rail {
    position: fixed;
    inset: 0 0 auto;
    min-height: 0;
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(5, 16, 30, 0.86), rgba(5, 16, 30, 0.54));
    border-right: 0;
    border-bottom: 1px solid rgba(35, 58, 87, 0.36);
  }

  .rail-brand {
    flex: 0 0 auto;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .rail-links {
    display: flex;
    justify-content: flex-end;
    gap: clamp(0.7rem, 3vw, 1.1rem);
    margin-top: 0;
  }

  .rail-link {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .rail-group {
    gap: 0.22rem;
  }

  .rail-sublink {
    margin-left: 0.5rem;
    font-size: 0.54rem;
    letter-spacing: 0.08em;
  }

  .rail-sublink::before {
    left: -0.5rem;
    width: 0.25rem;
  }

  .rail-link.is-active::before {
    top: auto;
    right: 0;
    bottom: -0.24rem;
    left: 0;
    width: auto;
    height: 1px;
  }

  .splash {
    padding: 5rem 1.25rem 4.5rem;
  }

  .brand-artwork {
    width: min(92vw, 520px);
    max-height: 62svh;
  }

  .site-footer {
    left: clamp(1.25rem, 4vw, 3rem);
    flex-direction: column;
    gap: 0.1rem;
  }

  .site-footer span + span::before {
    display: none;
  }
}

@media (max-width: 430px) {
  .site-rail {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .rail-links {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }

  .splash {
    padding-top: 6.4rem;
  }
}

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

  .brand-artwork {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
