:root {
  --dot-x: 0px;
  --bg: #000;
  --ink: #f1eadf;
  --muted: rgba(241, 234, 223, 0.62);
  --faint: rgba(241, 234, 223, 0.18);
  --hairline: rgba(241, 234, 223, 0.28);
  --shadow: rgba(255, 246, 229, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Times New Roman", Georgia, serif;
  overflow-x: hidden;
}

.edge-orbit {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.edge-orbit::before,
.edge-orbit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.58);
  opacity: 0.34;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
  animation: edgeBandPulse 4.8s ease-in-out infinite;
}

.edge-orbit::before {
  left: 0;
}

.edge-orbit::after {
  right: 0;
  animation-delay: 1.2s;
}

button,
input {
  font: inherit;
}

.cursor-shell {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cursor-cross,
.cursor-puck,
.cursor-core {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(-50% + var(--cursor-jiggle-x, 0px)), calc(-50% + var(--cursor-jiggle-y, 0px))) rotate(var(--cursor-jiggle-rotate, 0deg));
}

.cursor-square {
  position: fixed;
  top: var(--cursor-box-y, 0px);
  left: var(--cursor-box-x, 0px);
  transform: translate(-50%, -50%) scale(0.72);
}

.cursor-cross {
  width: 22px;
  height: 22px;
  opacity: 0.92;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.cursor-puck {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 234, 223, 0.22);
  opacity: 0.4;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.cursor-line {
  position: absolute;
  background: rgba(241, 234, 223, 0.9);
  box-shadow: 0 0 8px rgba(241, 234, 223, 0.14);
}

.cursor-line-x {
  top: 50%;
  left: 0;
  width: 22px;
  height: 1px;
  transform: translateY(-50%);
}

.cursor-line-y {
  top: 0;
  left: 50%;
  width: 1px;
  height: 22px;
  transform: translateX(-50%);
}

.cursor-core {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 10px rgba(241, 234, 223, 0.16);
}

.cursor-square {
  pointer-events: none;
  width: var(--cursor-box-width, 26px);
  height: var(--cursor-box-height, 26px);
  background:
    linear-gradient(var(--ink), var(--ink)) top left / 10px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 10px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 10px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 1px 10px no-repeat;
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    width 180ms ease,
    height 180ms ease;
}

@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor label {
    cursor: none;
  }

  body.has-custom-cursor .cursor-shell {
    opacity: 1;
  }

  body.has-custom-cursor.is-cursor-hidden .cursor-shell {
    opacity: 0;
  }

  body.has-custom-cursor.is-cursor-target .cursor-square {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  body.has-custom-cursor.is-cursor-target .cursor-cross {
    opacity: 0.3;
    transform: translate(calc(-50% + var(--cursor-jiggle-x, 0px)), calc(-50% + var(--cursor-jiggle-y, 0px))) rotate(var(--cursor-jiggle-rotate, 0deg)) scale(0.82);
  }

  body.has-custom-cursor.is-cursor-target .cursor-puck {
    opacity: 0.22;
    transform: translate(calc(-50% + var(--cursor-jiggle-x, 0px)), calc(-50% + var(--cursor-jiggle-y, 0px))) rotate(var(--cursor-jiggle-rotate, 0deg)) scale(1.55);
  }
}

.shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.site-header {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3vw, 48px);
  border-bottom: 1px solid var(--hairline);
}

.brand,
.nav-item,
.access-form label,
.field input {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 28px 0;
}

.nav {
  position: relative;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 110px));
  align-items: center;
  justify-items: end;
  gap: clamp(10px, 2.5vw, 32px);
}

.rail {
  position: fixed;
  top: 71px;
  left: 0;
  width: 100vw;
  height: 1px;
  pointer-events: none;
}

.active-dot {
  position: fixed;
  z-index: 25;
  left: var(--dot-x);
  top: 69px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 14px var(--shadow);
  transform: translateX(-50%);
  transition: left 280ms ease;
}

.nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 28px 0;
  transition: color 180ms ease;
}

.nav-item:hover,
.nav-item.is-active,
.brand:hover,
.brand.is-active {
  color: var(--ink);
}

.access-panel {
  --panel-scale: 0.77;
  position: relative;
  width: min(420px, calc(100vw - 48px));
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  transform: translateY(-1.5vh) scale(var(--panel-scale));
  transform-origin: center;
}

.bird-mark {
  display: block;
  width: clamp(132px, 13.5vw, 204px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 16px rgba(255, 248, 232, 0.05));
  animation:
    birdPulse 4.8s ease-in-out infinite,
    birdGlitch 7.2s steps(1, end) infinite;
}

.access-panel:not(.landing-panel, .status-panel)::before,
.access-panel:not(.landing-panel, .status-panel)::after {
  position: absolute;
  top: calc(50% - 190px);
  left: 50%;
  width: clamp(132px, 13.5vw, 204px);
  aspect-ratio: 120 / 125;
  pointer-events: none;
  content: "";
  background: url("bitmap.svg") center / contain no-repeat;
  opacity: 0;
}

.access-panel:not(.landing-panel, .status-panel)::before {
  filter: blur(0.35px);
  transform: translateX(-50%);
  animation: birdStaticA 5.6s steps(1, end) infinite;
}

.access-panel:not(.landing-panel, .status-panel)::after {
  filter: blur(0.2px);
  transform: translateX(-50%);
  animation: birdStaticB 6.4s steps(1, end) infinite;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-shadow: 0 0 24px rgba(255, 248, 232, 0.08);
}

.divider {
  display: grid;
  grid-template-columns: 34px 5px 34px;
  align-items: center;
  gap: 11px;
  margin: 34px 0 46px;
}

.divider span {
  height: 1px;
  background: var(--hairline);
}

.divider i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
}

.access-form {
  width: min(330px, 100%);
  display: grid;
  gap: 28px;
}

.access-form label {
  justify-self: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.status-kicker,
.status-copy,
.status-contact {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.status-panel {
  width: min(620px, calc(100vw - 48px));
}

.status-mark {
  display: block;
  width: clamp(86px, 8vw, 128px);
  height: auto;
  margin-bottom: 26px;
  opacity: 0.86;
}

.status-kicker {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
}

.status-title {
  margin-top: 26px;
  font-size: clamp(34px, 3.4vw, 48px);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  white-space: nowrap;
}

.status-copy,
.status-contact {
  max-width: 460px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 2;
}

.status-contact {
  margin-top: 18px;
}

.status-contact a {
  color: var(--ink);
  text-decoration: none;
}

.landing-panel {
  position: relative;
  width: min(760px, calc(100vw - 64px));
  text-align: center;
}

.landing-panel > :not(.landing-watermark) {
  position: relative;
  z-index: 1;
}

.landing-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(56vw, 620px);
  max-width: none;
  opacity: 0.055;
  pointer-events: none;
  transform: translate(-50%, -53%);
}

.landing-title {
  font-size: clamp(34px, 3.6vw, 52px);
}

.landing-copy {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 2;
  text-transform: uppercase;
}

.landing-copy p {
  margin: 0;
}

.environments {
  width: min(460px, 100%);
  margin-top: 56px;
}

.environments h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.environment-list {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.environment-item {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.environment-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
}

.environment-logo span {
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  animation: rhombusLoad 2.4s ease-in-out infinite;
}

.environment-item a {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes rhombusLoad {
  0% {
    opacity: 0.45;
    transform: rotate(45deg) scale(0.72);
  }

  32% {
    opacity: 1;
    transform: rotate(180deg) scale(1.08);
  }

  54% {
    opacity: 0.64;
    transform: rotate(270deg) scale(0.78);
  }

  78% {
    opacity: 0.95;
    transform: rotate(360deg) scale(1.12);
  }

  100% {
    opacity: 0.45;
    transform: rotate(405deg) scale(0.72);
  }
}

@keyframes birdPulse {
  0%,
  100% {
    opacity: 0.88;
    filter: drop-shadow(0 0 12px rgba(255, 248, 232, 0.035));
    transform: scale(1);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(255, 248, 232, 0.1));
    transform: scale(1.018);
  }
}

@keyframes birdGlitch {
  0%,
  91%,
  94%,
  100% {
    clip-path: inset(0);
    transform: translate(0, 0) scale(1);
  }

  92% {
    clip-path: inset(16% 0 58% 0);
    transform: translate(1.5px, -0.5px) skewX(-1.2deg) scale(1.01);
  }

  93% {
    clip-path: inset(52% 0 18% 0);
    transform: translate(-1px, 0.5px) skewX(1deg) scale(0.996);
  }
}

@keyframes birdStaticA {
  0%,
  88%,
  92%,
  100% {
    opacity: 0;
    clip-path: inset(0);
  }

  89% {
    opacity: 0.26;
    clip-path: inset(24% 0 62% 0);
    transform: translate(calc(-50% - 2px), -1px);
  }

  90% {
    opacity: 0.18;
    clip-path: inset(64% 0 18% 0);
    transform: translate(calc(-50% + 1px), 1px);
  }
}

@keyframes birdStaticB {
  0%,
  72%,
  76%,
  100% {
    opacity: 0;
    clip-path: inset(0);
  }

  73% {
    opacity: 0.18;
    clip-path: inset(38% 0 46% 0);
    transform: translate(calc(-50% + 2px), 0);
  }

  74% {
    opacity: 0.12;
    clip-path: inset(8% 0 78% 0);
    transform: translate(calc(-50% - 1px), -1px);
  }
}

@keyframes edgeBandPulse {
  0%,
  100% {
    opacity: 0.24;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
  }
}

.logout-button {
  appearance: none;
  margin-top: 34px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  padding: 0 0 10px;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.logout-button:hover,
.logout-button:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  outline: 0;
}

.logout-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}

.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 13px 0 12px;
  user-select: none;
}

.field input::placeholder {
  color: rgba(241, 234, 223, 0.48);
}

.field input::-ms-clear,
.field input::-ms-reveal {
  display: none;
}

.field button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
  padding: 9px 0 12px;
  transition: transform 180ms ease;
}

.field button:hover {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    height: 100px;
    padding: 0 18px;
    padding-top: 18px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.32em;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 0;
    width: 100%;
    height: 46px;
  }

  .rail {
    top: 99px;
  }

  .active-dot {
    top: 97px;
  }

  .nav-item {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .access-panel {
    --panel-scale: 1;
    transform: translateY(-3vh) scale(var(--panel-scale));
  }

  h1 {
    font-size: 32px;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }
}

@media (max-width: 440px) {
  .access-panel {
    width: calc(100vw - 36px);
  }

  .access-form {
    width: calc(100vw - 72px);
  }
}
