:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #09171e;
  color: #f6fbfc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #09171e;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #09171e;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: #d8fff4;
  color: #09171e;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  outline: 3px solid #f6fbfc;
  outline-offset: 3px;
  transform: translateY(0);
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}

.site-header {
  min-height: 4.25rem;
  border-bottom: 1px solid #26404a;
}

.wordmark {
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.domain,
.status,
.index,
footer {
  color: #a9c6cd;
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.075em;
}

main {
  display: grid;
}

.threshold {
  position: relative;
  display: grid;
  min-height: clamp(38rem, calc(100svh - 8.5rem), 62rem);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 35vw);
  overflow: hidden;
}

.threshold::before {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: 35vw;
  bottom: 11%;
  width: 1px;
  background: #26404a;
  content: "";
}

.message {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 clamp(2.5rem, 7vh, 5rem);
  color: #9bddd0;
}

.status-mark {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid #9bddd0;
  background: #9bddd0;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 9.5vw, 6rem);
  font-weight: 840;
  letter-spacing: -0.03em;
  line-height: 0.88;
}

h1 span {
  display: block;
}

h1 .domain-suffix {
  margin-top: 0.14em;
  color: #9bddd0;
  font-weight: 420;
}

.lead {
  max-width: 22ch;
  margin: clamp(2.5rem, 7vh, 5rem) 0 0;
  color: #f6fbfc;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.note {
  max-width: 33rem;
  margin: 1rem 0 0;
  color: #b8d0d5;
  font-size: 1rem;
  line-height: 1.75;
}

.portal {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: #d8fff4;
  color: #09171e;
}

.portal::before {
  position: absolute;
  inset: 0;
  background: #9bddd0;
  clip-path: inset(0 0 100% 0);
  content: "";
  animation: reveal-field 1.4s cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.portal-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 820;
  letter-spacing: -0.02em;
}

.portal-line {
  position: absolute;
  z-index: 1;
  top: clamp(1.5rem, 4vw, 4rem);
  right: clamp(1.5rem, 4vw, 4rem);
  width: 1px;
  height: clamp(6rem, 22vh, 13rem);
  background: #09171e;
}

.index {
  position: absolute;
  z-index: 2;
  right: calc(35vw + clamp(1rem, 2.2vw, 2.25rem));
  bottom: 1.5rem;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

footer {
  min-height: 4.25rem;
  border-top: 1px solid #26404a;
}

@keyframes reveal-field {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  55% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(100% 0 0 0);
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    padding-inline: 1.25rem;
  }

  .threshold {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(31rem, 68svh) minmax(10rem, 22svh);
  }

  .threshold::before,
  .index {
    display: none;
  }

  .message {
    align-self: end;
    padding: 3rem 1.25rem 2.75rem;
  }

  .status {
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }

  .lead {
    margin-top: 2.5rem;
  }

  .portal {
    min-height: 10rem;
    padding: 1.25rem;
  }

  .portal-line {
    top: 1.25rem;
    right: 1.25rem;
    height: 3.5rem;
  }

  footer {
    flex-wrap: wrap;
    align-content: center;
    gap: 0.4rem 1.25rem;
    padding-block: 0.75rem;
  }
}

@media (max-width: 420px) {
  .domain {
    display: none;
  }

  .threshold {
    grid-template-rows: minmax(32rem, 72svh) minmax(8.5rem, 18svh);
  }

  .note {
    font-size: 0.94rem;
  }

  footer span:last-child {
    max-width: 20ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .portal::before {
    clip-path: inset(0 0 0 0);
  }
}
