@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.3.0/latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-sans@5.3.0/latin-600-normal.woff2") format("woff2");
}

:root {
  --background: #030304;
  --foreground: #f4f4f1;
  --secondary: rgba(244, 244, 241, 0.70);
  --tertiary: rgba(244, 244, 241, 0.52);
  --hairline: rgba(255, 255, 255, 0.115);
  --content-width: 108rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

::selection {
  background: rgba(255, 255, 255, 0.92);
  color: #050506;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  padding:
    max(2rem, env(safe-area-inset-top))
    clamp(1.4rem, 4.8vw, 5.25rem)
    max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.026), transparent 28%),
    linear-gradient(180deg, #040405 0%, #010102 100%);
}

.star-canvas,
.ambient-light,
.vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.star-canvas {
  z-index: -3;
}

.ambient-light {
  z-index: -2;
  right: clamp(-18rem, -11vw, -7rem);
  left: auto;
  top: 50%;
  width: min(58rem, 72vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.014) 32%,
    transparent 68%
  );
  filter: blur(36px);
  opacity: 0.68;
  transform: translateY(-50%);
}

.vignette {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.1)),
    radial-gradient(circle at 52% 48%, transparent 35%, rgba(0, 0, 0, 0.34) 76%, rgba(0, 0, 0, 0.74) 100%);
}

.site-header,
.hero,
.site-footer {
  width: min(100%, var(--content-width));
  min-width: 0;
  justify-self: center;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 0.9rem;
}

.site-header {
  padding-bottom: clamp(1.25rem, 2vw, 1.8rem);
  border-bottom: 1px solid var(--hairline);
}

.site-footer {
  padding-top: clamp(1.25rem, 2vw, 1.8rem);
  border-top: 1px solid var(--hairline);
}

.wordmark,
.holding-status {
  margin: 0;
}

.wordmark {
  min-width: 0;
  color: var(--foreground);
  font-size: clamp(1.25rem, 2.35vw, 2.48rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(15rem, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8.5rem);
  padding: clamp(4rem, 9vh, 8.5rem) 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 66rem;
}

.hero h1 {
  max-width: 9.5ch;
  margin: 0;
  font-size: clamp(2rem, 8.5vw, 9.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.holding-status {
  width: fit-content;
  max-width: 28rem;
  margin-top: clamp(1.15rem, 2.2vw, 1.75rem);
  color: var(--secondary);
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero-symbol {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 25rem);
  aspect-ratio: 1;
}

.hero-symbol::before {
  content: "";
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.016) 36%,
    transparent 68%
  );
  filter: blur(24px);
  opacity: 0.54;
}

.hero-mark {
  position: relative;
  width: 57%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 0 0.8rem rgba(255, 255, 255, 0.105))
    drop-shadow(0 0 2.8rem rgba(255, 255, 255, 0.05));
}

.email-link {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: rgba(244, 244, 241, 0.82);
  font-size: clamp(0.88rem, 0.98vw, 1rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 180ms ease;
}

.email-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.38rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms cubic-bezier(0.22, 0.75, 0.22, 1);
}

.email-link:hover {
  color: var(--foreground);
}

.email-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.email-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.94);
  outline-offset: 0.45rem;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(11rem, 0.52fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 7rem);
  }
}

@media (max-width: 700px) {
  .site-shell {
    grid-template-rows: auto minmax(min-content, 1fr) auto;
    padding:
      max(1.5rem, env(safe-area-inset-top))
      1.25rem
      max(1.45rem, env(safe-area-inset-bottom));
  }

  .site-header {
    align-items: baseline;
    gap: 0.85rem 1rem;
  }

  .wordmark {
    font-size: clamp(1.2rem, 7vw, 1.76rem);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
    padding: clamp(3rem, 8vh, 5rem) 0;
  }

  .hero-copy {
    max-width: 35rem;
  }

  .hero h1 {
    max-width: 8.8ch;
    font-size: clamp(1.75rem, 15.6vw, 4.25rem);
    line-height: 0.91;
    letter-spacing: -0.042em;
  }

  .holding-status {
    max-width: 24rem;
    margin-top: 1.15rem;
    font-size: clamp(1rem, 4.8vw, 1.18rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .hero-symbol {
    position: absolute;
    right: -3.2rem;
    bottom: 7%;
    width: min(13rem, 44vw);
    opacity: 1;
  }

  .hero-symbol::before {
    opacity: 0.24;
  }

  .ambient-light {
    right: -13rem;
    width: 38rem;
    opacity: 0.5;
  }

  .email-link {
    font-size: clamp(0.8rem, 3.6vw, 0.86rem);
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(1.75rem, 15.2vw, 4.1rem);
  }

  .holding-status {
    max-width: 21rem;
  }

  .hero-symbol {
    right: -10vw;
    bottom: 8%;
    width: min(12rem, 46vw);
  }
}

@media (max-width: 360px) and (max-height: 650px) {
  .hero-symbol {
    right: -8vw;
    bottom: 4%;
    width: min(8.5rem, 42vw);
  }
}

@media (max-height: 500px) and (min-width: 701px) {
  .site-shell {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .site-header {
    padding-bottom: 0.7rem;
  }

  .site-footer {
    padding-top: 0.7rem;
  }

  .hero {
    gap: 1.8rem;
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.4vw, 4.1rem);
  }

  .holding-status {
    margin-top: 0.9rem;
    font-size: clamp(0.95rem, 1.6vw, 1rem);
    line-height: 1.28;
  }

  .hero-symbol {
    width: min(100%, 12.5rem);
  }
}

/* Branded 404 */
.error-page {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  padding:
    max(2rem, env(safe-area-inset-top))
    clamp(1.4rem, 4.8vw, 5.25rem)
    max(2rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 74% 45%, rgba(255, 255, 255, 0.035), transparent 23%),
    linear-gradient(180deg, #040405, #010102);
}

.error-header,
.error-main,
.error-footer {
  width: min(100%, var(--content-width));
  min-width: 0;
  justify-self: center;
}

.error-header,
.error-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 2rem;
  row-gap: 0.9rem;
}

.error-header {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--hairline);
}

.error-header .status {
  margin: 0 0 0 auto;
  color: var(--secondary);
  font-size: clamp(0.86rem, 0.98vw, 1rem);
  line-height: 1;
  letter-spacing: -0.012em;
}

.error-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.35fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(3rem, 7vh, 6rem) 0;
}

.error-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.error-copy h1,
.error-copy p {
  margin: 0;
}

.error-code {
  margin: 0 0 1.3rem;
  color: rgba(244, 244, 241, 0.62);
  font-size: 0.9rem;
}

.error-copy h1 {
  max-width: 9ch;
  font-size: clamp(2rem, 8vw, 8.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.error-copy > p:not(.error-code) {
  max-width: 31rem;
  margin-top: 1.6rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.4vw, 1.32rem);
  line-height: 1.42;
  letter-spacing: -0.022em;
}

.error-symbol {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 15rem);
  aspect-ratio: 1;
}

.error-mark {
  width: 58%;
  height: auto;
  filter: drop-shadow(0 0 2rem rgba(255, 255, 255, 0.08));
}

.error-footer {
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  color: var(--tertiary);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .error-page {
    grid-template-rows: auto minmax(min-content, 1fr) auto;
    padding:
      max(1.5rem, env(safe-area-inset-top))
      1.25rem
      max(1.45rem, env(safe-area-inset-bottom));
  }

  .error-main {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: clamp(3rem, 7vh, 4.5rem) 0;
  }

  .error-copy h1 {
    font-size: clamp(1.75rem, 15.2vw, 4.8rem);
  }

  .error-symbol {
    position: absolute;
    right: -1rem;
    bottom: 19%;
    width: 8.5rem;
    opacity: 1;
  }
}

@media (max-width: 430px) {
  .error-footer {
    align-items: flex-start;
  }
}

@media (forced-colors: active) {

  .email-link::after {
    display: none;
  }
}
