@font-face {
  font-family: DM;
  src: url("/brand/dm-sans-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 1000;
}
:root {
  font-family: DM, system-ui, sans-serif;
  background: var(--wash);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--theme-glow), var(--theme-hero);
}
.shell {
  max-width: 1440px;
  margin: auto;
  min-height: 100svh;
  padding: 0 clamp(22px, 6vw, 96px);
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  border-color: var(--line);
  border-style: solid;
  border-width: 0;
}
header {
  justify-content: space-between;
  min-height: 90px;
  border-bottom-width: 1px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.brand img {
  width: 23px;
  height: 34px;
  filter: brightness(0) invert(95%);
}
button {
  background: transparent;
  color: inherit;
  font: inherit;
  border: 0;
  padding: 0;
  cursor: inherit;
  user-select: none;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.status,
.context,
.console,
.tick {
  font-family: var(--mono);
}
.status {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.status button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 32px;
  flex: none;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
}
main {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(22px, 4vw, 70px);
  padding: clamp(25px, 6vh, 80px) 0;
}
.context {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 21px;
}
.context:before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-size: clamp(62px, 7.6vw, 116px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.078em;
  margin: 0;
}
h1 span {
  color: var(--accent);
}
.console {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-top: clamp(18px, 4vh, 45px);
  font-size: 0.78rem;
  color: var(--muted);
}
.console > span:first-child {
  color: var(--accent);
}
.console i {
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: breathe 2.2s ease-in-out infinite;
}
.feedback {
  min-height: 1.3em;
  margin: 2px 0 0;
  font: 0.73rem/1.3 var(--mono);
  color: var(--muted);
}
.scope {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.43;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--blue) 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--blue) 8%, transparent) 1px,
      transparent 1px
    ),
    radial-gradient(
      ellipse at center,
      color-mix(in srgb, var(--blue) 12%, transparent),
      transparent 70%
    );
  background-size:
    26px 26px,
    26px 26px,
    100% 100%;
}
.reticle {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.reticle:before,
.reticle:after {
  content: "";
  position: absolute;
  top: 50%;
  left: -9%;
  width: 118%;
  border-top: 1px dashed var(--line);
}
.reticle:after {
  transform: rotate(90deg);
}
.lock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: grayscale(1) drop-shadow(0 9px 15px var(--theme-shadow));
  mix-blend-mode: luminosity;
}
.tick {
  position: absolute;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 19px;
  font-weight: 400;
  color: var(--blue);
  user-select: none;
}
.upper-left,
.lower-left {
  left: 3px;
}
.upper-right,
.lower-right {
  right: 3px;
}
.upper-left,
.upper-right {
  top: 3px;
}
.lower-left,
.lower-right {
  bottom: 3px;
}
@keyframes breathe {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .opening .scope {
    transform-origin: 90% 50%;
    animation: terminal-open 540ms cubic-bezier(0.55, 0.02, 0.68, 0.65) both;
  }
  .opening .scope::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      100deg,
      transparent 38%,
      color-mix(in srgb, var(--accent) 30%, transparent) 50%,
      transparent 62%
    );
    background-size: 280% 100%;
    animation: terminal-scan 480ms ease-out both;
  }
  @keyframes terminal-open {
    0% {
      transform: perspective(1000px) rotateY(0);
    }
    36% {
      transform: perspective(1000px) rotateY(-3deg);
    }
    100% {
      transform: perspective(1000px) rotateY(-34deg) scale(0.92);
      opacity: 0.15;
    }
  }
  @keyframes terminal-scan {
    from {
      background-position: 100% 0;
    }
    to {
      background-position: 0 0;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
  }
}
@media (max-width: 700px) {
  header {
    min-height: 64px;
  }
  main {
    align-content: center;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 0;
  }
  .intro {
    position: relative;
  }
  h1 {
    font-size: clamp(42px, 9vw, 65px);
    line-height: 1;
  }
  h1 br {
    display: none;
  }
  h1 span:before {
    content: " ";
  }
  .context {
    margin-bottom: 10px;
    font-size: 0.62rem;
  }
  .console {
    margin-top: 8px;
    min-height: 32px;
  }
  .scope {
    width: 100%;
    height: min(39svh, 355px);
    min-height: 156px;
    aspect-ratio: auto;
  }
  .reticle {
    width: auto;
    height: 81%;
  }
}
@media (max-width: 370px) {
  .shell {
    padding-inline: 16px;
  }
}
header {
  justify-content: flex-start;
  gap: 10px;
}
header .status {
  margin-inline-start: auto;
}
[data-theme="light"] body {
  background: var(--wash);
}
[data-theme="light"] .brand img {
  filter: none;
}
[data-theme="light"] .scope {
  background: var(--paper);
}
[data-theme="light"] .grid {
  opacity: 0.42;
}
[data-theme="light"] .lock {
  filter: grayscale(1) brightness(0.65);
}
[data-theme="light"] .tick {
  color: var(--blue);
}
@media (max-width: 400px) {
  header {
    gap: 6px;
  }
  header .brand {
    font-size: 0.95rem;
    gap: 6px;
  }
}
