:root {
  color-scheme: dark;
  --background: #050811;
  --white: #f5f0e8;
  --muted: #a7a39c;
  --cyan: #81ecff;
  --amber: #ffae71;
  --gutter: clamp(2.5rem, 7.4vw, 9rem);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: var(--background); }

.hero {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: max(100svh, 34rem);
  padding: 0 var(--gutter);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: var(--gutter);
  bottom: clamp(1rem, 3vh, 2rem);
  height: 0.55rem;
  pointer-events: none;
  background:
    linear-gradient(#8ba2bc59, #8ba2bc59) left bottom / 0.85rem 1px no-repeat,
    linear-gradient(#8ba2bc59, #8ba2bc59) left bottom / 1px 100% no-repeat,
    linear-gradient(#8ba2bc59, #8ba2bc59) right bottom / 0.85rem 1px no-repeat,
    linear-gradient(#8ba2bc59, #8ba2bc59) right bottom / 1px 100% no-repeat;
}

.scene {
  --field-x: 69%;
  --field-y: 51%;
  --field-size: min(max(80vw, 100svh), 106rem);
  --disk-tilt: -0.46rad;
  --disk-compression: 0.55;
  position: absolute;
  z-index: -1;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at var(--field-x) var(--field-y), rgba(23, 86, 123, 0.27), transparent 43%),
    radial-gradient(ellipse at 85% 46%, rgba(35, 39, 110, 0.25), transparent 63%),
    radial-gradient(ellipse at 14% 97%, rgba(15, 34, 69, 0.32), transparent 54%),
    var(--background);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #708aa322 1px, transparent 1px), linear-gradient(#708aa322 1px, transparent 1px);
  background-position: center;
  background-size: clamp(2rem, 4vw, 4.25rem) clamp(2rem, 4vw, 4.25rem);
  mask-image: radial-gradient(ellipse at var(--field-x) var(--field-y), transparent 3%, #000 33%, transparent 72%);
}

.scene::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 17, 0.72), rgba(5, 8, 17, 0.3) 39%, transparent 62%),
    linear-gradient(0deg, rgba(5, 8, 17, 0.86), transparent 24%, transparent 91%, rgba(5, 8, 17, 0.3));
}

.field-layout {
  position: absolute;
  z-index: 0;
  inset-block-start: var(--field-y);
  inset-inline-start: var(--field-x);
  width: var(--field-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.field-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.masthead {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 0;
  padding-top: clamp(1.2rem, 4.6vh, 3.4rem);
}

.masthead-rail {
  position: relative;
  flex: 1;
  height: 0.72rem;
  min-width: 0;
  margin-left: clamp(1.5rem, 3vw, 3.25rem);
  background:
    linear-gradient(90deg, #99e9ff60, #bdd8fd26 35%, #a2c4ff19) left center / calc(100% - 1.35rem) 1px no-repeat,
    linear-gradient(#b3d2e35e, #b3d2e35e) calc(100% - 0.5rem) center / 1px 0.23rem no-repeat,
    linear-gradient(#b3d2e38a, #b3d2e38a) calc(100% - 0.25rem) center / 1px 0.36rem no-repeat,
    linear-gradient(#ffae71b3, #ffae71b3) right center / 1px 0.53rem no-repeat;
}

.masthead-rail::after {
  content: "";
  position: absolute;
  inset: 0 1.35rem 0 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #81ecffad 58%, #ffae71d4 82%, transparent)
    0% center / min(32%, 8rem) 1px no-repeat;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 2.75rem;
  font: 600 0.95rem/1 var(--mono);
  letter-spacing: 0.075em;
}

.wordmark-suffix { color: var(--muted); }

.brand-icon {
  width: 1.38rem;
  height: 1.38rem;
  position: relative;
  color: var(--cyan);
  border: 1px solid #81ecff86;
  border-radius: 50%;
}

.brand-icon::before {
  content: "";
  position: absolute;
  inset: 30% -16%;
  transform: rotate(-34deg);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-icon::after {
  content: "";
  position: absolute;
  inset: 42%;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0.72rem #ffae71bd;
}

.intro {
  position: relative;
  align-self: center;
  justify-self: start;
  max-width: 100%;
  margin-block: -4vh clamp(1rem, 6vh, 4.5rem);
}

.intro h1 {
  margin: 0;
  font-size: clamp(5.2rem, 10.6vw, 12rem);
  line-height: 0.85;
  font-weight: 620;
  letter-spacing: -0.061em;
}

.title-line { display: block; white-space: nowrap; }
.title-line + .title-line { color: #c2bdb3; }
.period { color: var(--amber); }

.intro p {
  display: flex;
  align-items: baseline;
  gap: 0.69rem;
  margin: clamp(1.35rem, 3.4vh, 2.35rem) 0 0 0.14em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  letter-spacing: 0.012em;
}

.intro p::before {
  content: "";
  flex: none;
  width: 0.29rem;
  height: 0.29rem;
  background: var(--amber);
  transform: translateY(-0.19em) rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .masthead, .title-line, .intro p {
    animation: reveal 1s cubic-bezier(0.21, 0.62, 0.28, 1) both;
  }
  .title-line { animation-delay: 80ms; }
  .title-line + .title-line { animation-delay: 170ms; }
  .intro p { animation-delay: 310ms; }
  .masthead-rail::after { animation: rail-scan 13s 0.6s ease-in-out infinite; }

  @keyframes reveal {
    from { opacity: 0; translate: 0 1.15rem; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes rail-scan {
    0% { background-position: 0% center; opacity: 0; }
    8%, 33% { opacity: 0.9; }
    42%, 100% { background-position: 100% center; opacity: 0; }
  }
}

@media (max-width: 58rem) and (orientation: portrait), (max-width: 42rem) {
  :root { --gutter: clamp(1.4rem, 6.5vw, 4rem); }
  .hero { min-height: max(100svh, 34rem); }
  .masthead { padding-top: clamp(1rem, 4vh, 2.6rem); }
  .scene { --field-x: 51%; --field-y: 63%; --field-size: clamp(22rem, 117vw, 70rem); }
  .scene::after {
    background: linear-gradient(0deg, rgba(5, 8, 17, 0.91), transparent 20%, transparent 60%, rgba(5, 8, 17, 0.49) 83%, rgba(5, 8, 17, 0.35));
  }
  .intro {
    align-self: start;
    margin-block: clamp(2.35rem, 8svh, 6rem) 0;
  }
  .intro h1 { font-size: clamp(3.2rem, 17.2vw, 8.1rem); }
  .intro p {
    margin-top: clamp(1.1rem, 2.5vh, 1.7rem);
    font-family: var(--sans);
  }
}

@media (max-width: 26rem) and (max-height: 44rem) {
  .scene { --field-y: 68%; }
  .intro { margin-block-start: clamp(1.6rem, 6vh, 2.55rem); }
}

@media (min-width: 42.01rem) and (orientation: landscape) and (max-height: 32rem) {
  .hero { min-height: max(100svh, 20rem); }
  .scene { --field-size: min(80vw, 47rem); }
  .masthead { padding-top: 0.8rem; }
  .intro { margin-block: 0 0.75rem; }
  .intro h1 { font-size: clamp(3.6rem, 10vw, 7rem); }
  .intro p { margin-top: 0.9rem; }
}
