:root {
  color-scheme: dark;
  --night: #02070c;
  --cyan: #a5f3ff;
  --muted: #bbced7;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  color: #eefbff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
a { color: var(--cyan); }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  display: grid;
  align-content: center;
  max-width: 115rem;
  margin: auto;
  padding: clamp(1rem, 3vh, 2rem) max(2rem, 6vw);
  background:
    radial-gradient(ellipse at 23% 63%, #072a4070, transparent 49%),
    radial-gradient(ellipse at 90% 86%, #340b4d50, transparent 40%),
    #02070c;
}
.stage::before, .stage::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: -1;
  width: min(15vw, 13rem);
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}
.stage::before {
  left: 0;
  background-image: url("edge-left.jpg");
  mask-image: linear-gradient(90deg, #000, transparent);
}
.stage::after {
  right: 0;
  background-image: url("edge-right.jpg");
  mask-image: linear-gradient(270deg, #000, transparent);
}

.masthead { position: relative; text-align: center; }
.wordmark {
  width: min(45vw, 43rem);
  margin: 0 auto;
  filter: drop-shadow(0 1px 8px #c5c5c540);
}
.wordmark img { display: block; width: 100%; height: auto; }
.wordmark > img { width: 57%; margin: 0 auto .55rem; }
.dawn-title { position: relative; display: block; }
.dawn-title > img { filter: grayscale(1); }
.dawn-title > .title-shadow-lift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: grayscale(1) brightness(1.42) contrast(.95);
  mask-image:
    linear-gradient(90deg, #000 3%, transparent 7% 93%, #000 98%),
    linear-gradient(180deg, #0002, #000 76%);
  mask-composite: intersect;
}
@media (prefers-reduced-motion: no-preference) {
  .dawn-title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    mask: var(--title-reflection-mask) center / 100% 100% no-repeat;
    background: linear-gradient(
      108deg,
      transparent 44%,
      #bcbcbc50 47%,
      #f4f4f4f0 49.5%,
      #fff 50%,
      #d6d6d690 52%,
      transparent 56%
    ) 100% center / 260% 100% no-repeat;
    animation: title-reflection 1.85s ease-in-out .75s 1 both;
  }
  @keyframes title-reflection {
    from { background-position: 100% center; }
    to { background-position: 0% center; }
  }
  .dawn-title[data-repeat-reflection]::before {
    animation-name: title-reflection-repeat;
    animation-delay: 0s;
  }
  @keyframes title-reflection-repeat {
    from { background-position: 100% center; }
    to { background-position: 0% center; }
  }
}
.dawn-title::after {
  content: "";
  position: absolute;
  top: calc(100% * 75 / 129);
  left: calc(100% * 15 / 908);
  width: calc(100% * 23 / 908);
  aspect-ratio: 23 / 81;
  background: url("f-stem.png") center / 100% 100% no-repeat;
  filter: grayscale(1) brightness(1.25) contrast(.82);
  clip-path: polygon(8% 0, 90% 0, 89% 46%, 5% 99%);
  mask-image: linear-gradient(transparent, #000 12%);
  pointer-events: none;
}
.tagline { width: min(46vw, 44rem); margin: .12rem auto 0; }
.tagline p {
  margin-top: .63rem;
  text-transform: uppercase;
  font: 500 clamp(.63rem, 1.4vw, 1.35rem) var(--mono);
  letter-spacing: .36em;
  color: #e4edf0;
}
.tagline p span { margin-inline-start: 1.75em; }

.nav {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: start;
}
.nav button, .nav a {
  appearance: none;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid #31778c8c;
  color: #d8f5fa;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(.65rem, 1.08vw, .99rem);
  padding: .5rem clamp(.4rem, 1vw, 1.25rem) .8rem;
  min-height: 44px;
  white-space: nowrap;
}
.nav a[href="/updates/"] { margin-inline-start: auto; }
.nav :is(:hover, :focus-visible, [aria-current]) {
  color: white;
  text-shadow: 0 0 10px #08d7ff;
  border-bottom-color: #43deff;
  box-shadow: 0 4px 8px -6px #38e9ff;
}

.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  margin-top: clamp(.4rem, 1.2vh, .9rem);
}
.mechanism {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(18rem, 65svh, 43rem);
  --light: 0;
  --wake: 0ms;
  --pulse: none;
}
.mechanism:has(.lock[aria-pressed="true"]) {
  --light: 1;
  --wake: 1ms;
  --pulse: light-pulse 3.3s ease-in-out 1.25s 1;
}
@media (prefers-reduced-motion: no-preference) {
  .mechanism:has(.lock[aria-pressed="true"]) .ring-circuit {
    animation: circuit-ambient 4.8s ease-in-out 4.55s infinite;
  }
}
@keyframes circuit-ambient {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}
.ring {
  position: absolute;
  inset: -6% -5%;
  z-index: -1;
  isolation: isolate;
  background: url("ring-states.jpg") left center / 200% auto no-repeat;
  mask-image: radial-gradient(ellipse 50% 50%, #000 62%, transparent 100%);
  pointer-events: none;
}
.ring-circuit {
  position: absolute;
  width: 100%;
  height: auto;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  mix-blend-mode: screen;
}
.ring-circuit path {
  --travel-delay: 520;
  --travel-time: 420ms;
  --circuit-core: #9af5ff;
  --circuit-glow: #08cfff;
  fill: none;
  stroke: var(--circuit-core);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--light));
  opacity: var(--light);
  filter: drop-shadow(0 0 3px var(--circuit-glow)) drop-shadow(0 0 8px var(--circuit-glow));
  transition:
    stroke-dashoffset var(--travel-time) cubic-bezier(.25,.5,.35,1) calc(var(--wake) * var(--travel-delay)),
    opacity 180ms ease calc(var(--wake) * var(--travel-delay));
}
.ring-circuit .circuit-return { --travel-delay: 650; }
.ring-circuit .circuit-branch {
  --travel-delay: 700;
  --travel-time: 580ms;
  stroke-width: 2;
}
.ring-circuit .circuit-violet {
  --circuit-core: #c3a3ff;
  --circuit-glow: #963bff;
}
.lock {
  position: relative;
  left: -.07%;
  translate: .6% 0;
  width: min(83%, 32rem, 72svh);
  aspect-ratio: 608 / 483;
  border: 0;
  background: url("key-states.jpg") 8.94% 52.5% / 252.63% 212% no-repeat;
  padding: 0;
  touch-action: manipulation;
  clip-path: polygon(0 0, 100% 0, 49.4% 100%);
}
.lock span {
  position: absolute;
  inset: 0;
  background: url("key-states.jpg") 91.59% 52.5% / 252.63% 212% no-repeat;
  opacity: var(--light);
  pointer-events: none;
  animation: var(--pulse);
}
.keyhole {
  mask-image: radial-gradient(ellipse 13% 18% at 50% 35%, #000 68%, transparent 100%);
  transition: opacity 180ms ease;
}
.key-channels {
  mask-image:
    radial-gradient(ellipse 13% 15% at 67% 12%, #000 48%, transparent 100%),
    radial-gradient(ellipse 10% 17% at 32% 32%, #000 53%, transparent 100%),
    radial-gradient(ellipse 12% 15% at 51% 60%, #000 55%, transparent 100%),
    radial-gradient(ellipse 9% 17% at 50% 89%, #000 52%, transparent 100%),
    linear-gradient(122deg, transparent 52%, #000 54% 56%, transparent 58%);
  transition: opacity 400ms ease calc(var(--wake) * 170);
}
.mechanism:has(.lock:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}
@keyframes light-pulse {
  0%, 100% { filter: brightness(1); }
  30% { filter: brightness(1.13); }
  69% { filter: brightness(.93); }
}
.lock-display { display: grid; min-width: 0; }
.lock-feedback {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 4.25rem;
  text-align: center;
}
.lock-invitation, .lock-status {
  color: var(--cyan);
  text-transform: uppercase;
  font: 600 .76rem var(--mono);
  letter-spacing: .16em;
}
.lock-display:has(.lock[aria-pressed="true"]) .lock-invitation { display: none; }
.lock-reading-link:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding-inline: .4rem;
  font-size: .92rem;
  text-underline-offset: .2em;
}
.lock-reading-link span {
  width: .42em;
  height: .42em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero-copy { display: grid; gap: clamp(.7rem, 2.4vh, 1.45rem); text-align: center; }
.intro h2, .signup h2 {
  text-transform: uppercase;
  color: #ddfaff;
  font-size: clamp(.94rem, 1.52vw, 1.4rem);
  letter-spacing: .22em;
  font-weight: 650;
}
.intro p, .signup > p {
  margin-top: .48rem;
  color: #deedf4;
  font-size: clamp(.92rem, 1.42vw, 1.28rem);
  letter-spacing: .03em;
  line-height: 1.4;
}
.beam {
  position: relative;
  display: block;
  height: 1px;
  width: 91%;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, #31d6f8 49%, #31d6f8 51%, transparent);
  box-shadow: 0 0 13px #26c9ef60;
}
.beam::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: .53rem;
  height: .53rem;
  border: solid #9af7ff;
  border-width: 0 2px 2px 0;
  background: #04131e;
  box-shadow: 2px 2px 9px #00c6ff;
  transform: translate(-50%, -42%) rotate(45deg);
}
.tagline .beam::after { width: 1.05rem; height: 1.05rem; }

.teaser h2 {
  font: 700 clamp(1.1rem, 2.9vw, 2.8rem) var(--mono);
  letter-spacing: .21em;
  text-transform: uppercase;
  text-shadow: -2px 0 #8d327e, 2px 0 #1382a5, 0 0 .7em #1b97cc;
}
.date {
  margin: .3rem 0 .65rem;
  font: 700 clamp(1.9rem, 4.2vw, 4.15rem) / 1.17 var(--mono);
  letter-spacing: .08em;
  color: #defffc;
  text-shadow: -2px 0 12px #00d5ff, 3px 0 11px #bb40fc;
}
.date span {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.date span::before, .date span::after {
  content: attr(data-signal);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  text-shadow: none;
}
.date span::before { color: #3de9ff; clip-path: polygon(0 20%, 100% 20%, 100% 39%, 0 39%); }
.date span::after { color: #e671ff; clip-path: polygon(0 58%, 100% 58%, 100% 79%, 0 79%); }
.date[data-playing] span {
  background: repeating-linear-gradient(transparent 0 3px, #51ddff17 4px, transparent 5px);
  animation: signal-tear 3.6s steps(1, end);
}
.date[data-playing] span::before { animation: signal-split 3.6s steps(1, end); --shift: -8px; }
.date[data-playing] span::after { animation: signal-split 3.6s steps(1, end); --shift: 9px; }
@keyframes signal-tear {
  12%, 36%, 67% { transform: skewX(-10deg); }
  17%, 42%, 73%, 100% { transform: none; }
}
@keyframes signal-split {
  12%, 36%, 67% { opacity: .88; transform: translateX(var(--shift)); }
  17%, 42%, 73%, 100% { opacity: 0; transform: none; }
}
.signup {
  position: relative;
  background: linear-gradient(145deg, #071525e8, #02070e 70%);
  border: 1px solid #548ca1;
  border-radius: 1rem .48rem;
  box-shadow: 0 0 0 3px #1e394d4f, inset 0 0 22px #0591ac14, 0 0 29px #0cc9f229;
  padding: clamp(.8rem, 1.65vw, 1.45rem);
}
.signup::before, .signup::after {
  content: "";
  position: absolute;
  inset-inline: 25%;
  height: 2px;
  background: radial-gradient(ellipse, #f0ffff 0%, #29dffc 20%, transparent 70%);
  filter: drop-shadow(0 0 5px #00cbff);
  pointer-events: none;
}
.signup::before { top: -1px; }
.signup::after { bottom: -1px; }
.signup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid #8ceaff;
  border-radius: .4rem;
  background: #051722;
  color: #c0f6ff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 0 12px #19c9ff60;
}
.signup-link:hover, .signup-link:focus-visible { text-decoration: underline; }
.signup:target { border-color: #b1f8ff; }

dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 1.65rem;
  border: 1px solid #65bbd0;
  border-radius: .65rem;
  color: #eefbff;
  background: #07111c;
  box-shadow: 0 0 40px #17b5dc39;
}
dialog::backdrop { background: #01050ce0; }
dialog h2 { padding-inline-end: 2rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .1em; }
dialog h3 { margin-bottom: .55rem; color: var(--cyan); }
dialog p { color: #d3e6ee; margin-bottom: .75rem; line-height: 1.55; }
dialog .close {
  position: absolute;
  inset: .6rem .6rem auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid #4f8395;
  border-radius: .3rem;
  color: var(--cyan);
  background: #0d1c2b;
  font-size: 1.4rem;
}
dialog details { border-top: 1px solid #30546b; padding: .35rem 0; }
dialog summary { cursor: pointer; min-height: 44px; padding: .2rem; }
dialog summary img { width: 2rem; height: 2rem; object-fit: contain; vertical-align: middle; margin: 0 .65rem; }
dialog details p { margin: .4rem 0 .45rem 2.8rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .stage { padding-inline: max(1rem, 3vw); }
}
@media (max-width: 850px), (max-height: 540px) and (pointer: coarse) {
  .stage {
    padding:
      max(1rem, env(safe-area-inset-top))
      max(1rem, 5vw, env(safe-area-inset-right))
      max(2rem, env(safe-area-inset-bottom))
      max(1rem, 5vw, env(safe-area-inset-left));
  }
  .masthead { display: grid; }
  .nav { position: static; order: -1; justify-content: center; flex-wrap: wrap; margin-bottom: 1.3rem; }
  .nav a[href="/updates/"] { margin-inline-start: 0; }
  .nav button, .nav a { padding: .55rem clamp(.3rem, 1.5vw, .75rem); }
  .wordmark, .tagline { width: min(88vw, 36rem); }
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .mechanism { min-height: min(75vw, 28rem); width: min(100%, 36rem); justify-self: center; }
  .lock { width: min(79%, 25rem); }
  .hero-copy { width: min(100%, 34rem); justify-self: center; }
}
@media (max-width: 540px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: .9rem;
  }
  .nav button, .nav a {
    display: grid;
    place-items: center;
    padding: .35rem .12rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    letter-spacing: .07em;
  }
  .hero-copy { gap: 1rem; }
  .signup-link { min-height: 48px; }
  .email-field input { font-size: 1rem; }
  .desktop-break { display: none; }
  dialog { padding: 1.2rem; }
}
@media (max-width: 380px) {
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.scroll-cue { display: none; }
@media (max-width: 850px), (max-height: 540px) and (pointer: coarse) {
  .scroll-cue {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    gap: .65em;
    min-height: 44px;
    padding-inline: .75rem;
    color: var(--cyan);
    font: 600 .72rem var(--mono);
    letter-spacing: .14em;
    text-decoration: none;
    text-shadow: 0 0 10px #08cfff70;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .scroll-cue[data-dismissed] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .scroll-chevron {
    width: .6em;
    height: .6em;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-.13em) rotate(45deg);
    animation: scroll-chevron 1.8s ease-in-out infinite;
  }
  .scroll-cue[data-dismissed] .scroll-chevron { animation: none; }
  #explore { scroll-margin-block-start: max(1rem, env(safe-area-inset-top)); }
}
@media (max-width: 850px) and (max-height: 520px),
       (max-height: 540px) and (pointer: coarse) and (orientation: landscape) {
  .scroll-cue { grid-row: 1; }
}
@keyframes scroll-chevron {
  50% { transform: translateY(.15em) rotate(45deg); }
}

dialog .detail-meta {
  color: var(--cyan);
  font: 600 .78rem/1.5 var(--mono);
  letter-spacing: .07em;
}
#team details[open] summary img { width: 4.5rem; height: 4.5rem; object-fit: cover; }
#team .operative-copy { padding: .2rem 0 .5rem; }
#team .operative-copy p { margin-inline-start: .65rem; }
.chapter-preview { margin-top: 1.1rem; }
.chapter-preview summary { color: var(--cyan); padding-block: .65rem; }
.chapter-copy { padding: .5rem .15rem; }
dialog .chapter-copy p { margin: 0 0 .85rem; }
.update-block { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #30546b; }
.dialog-action {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #4f8395;
  border-radius: .3rem;
  color: var(--cyan);
  background: #0d1c2b;
}
