:root {
  --bench: #14110d;
  --bench-2: #1c1813;
  --slip: #dfe6ec;
  --ink: #14181e;
  --china: #2458f5;
  --china-soft: rgba(36, 88, 245, 0.16);
  --lamp: #f0b35a;
  --tape: #f3d34a;
  --live: #2fbe7a;
  --mute: #66707a;
  --line: rgba(20, 24, 30, 0.12);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 640px at 68% -12%, rgba(240, 179, 90, 0.22), transparent 58%),
    radial-gradient(900px 480px at 18% 8%, rgba(36, 88, 245, 0.07), transparent 52%),
    var(--bench);
  color: #ece6dc;
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.6;
}

::selection {
  background: var(--china);
  color: #fff;
}

a {
  color: inherit;
}

ul[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(236, 230, 220, 0.2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72em;
}

:focus-visible {
  outline: 2px solid var(--china);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 40;
  padding: 0.55rem 0.8rem;
  background: var(--china);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.desk {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.6rem), 72rem);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.topbar {
  display: grid;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2.4rem;
}

.brand {
  margin: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--china);
  color: #fff;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
}

.clocks {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.clocks p {
  margin: 0;
}

.clocks span {
  color: var(--mute);
  margin-right: 0.4rem;
}

.scan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.scan__label,
.scan__go,
.lane__code,
.lane__kind,
.lane__state,
.board-head__hint,
.site-footer,
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scan__label {
  color: var(--mute);
}

.scan input,
.scan input:focus,
#scan-input {
  appearance: none;
  min-height: 2.6rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(236, 230, 220, 0.16);
  border-radius: 2px;
  background: #1a1612;
  color: #f4efe6;
  caret-color: var(--lamp);
  font: inherit;
  outline: none;
}

#scan-input:focus {
  border-color: rgba(36, 88, 245, 0.7);
}

#scan-input::placeholder {
  color: rgba(236, 230, 220, 0.45);
}

#scan-input::-webkit-search-decoration,
#scan-input::-webkit-search-cancel-button {
  appearance: none;
}

.scan__go,
.copy-mail {
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border: 0;
  background: var(--china);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out;
}

.scan__go:hover,
.copy-mail:hover {
  background: #1b48d6;
}

.scan__go:active,
.copy-mail:active,
.lane__hit:active {
  transform: scale(0.96);
}

.hero {
  position: relative;
  margin: 0 0 1.6rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--lamp);
}

.name {
  margin: 0;
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(3.6rem, 12vw, 7.4rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 0 72px rgba(240, 179, 90, 0.2);
}

.name span {
  display: block;
}

.mark {
  display: block;
  width: min(100%, 22rem);
  height: 16px;
  margin: 0.55rem 0 1.3rem;
  color: var(--china);
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.slip {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.3rem 1.3rem;
  background: var(--slip);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.18);
}

.slip h2,
.board-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slip h2 {
  color: var(--china);
}

.slip p {
  margin: 0 0 0.8rem;
  text-wrap: pretty;
}

.slip p:last-child {
  margin-bottom: 0;
}

.board-wrap {
  margin: 2rem 0 1.6rem;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
}

.board-head h2 {
  margin: 0;
  color: var(--lamp);
}

.board-head__hint {
  margin: 0;
  color: var(--mute);
  text-transform: none;
  letter-spacing: 0;
}

.board {
  position: relative;
  overflow: hidden;
  background: var(--bench-2);
  box-shadow: 0 0 0 1px rgba(236, 230, 220, 0.08);
}

.lane {
  border-top: 1px solid rgba(236, 230, 220, 0.08);
}

.lane:first-child {
  border-top: 0;
}

.lane.is-in {
  animation: flap 520ms cubic-bezier(0.2, 0, 0, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

.lane__hit {
  display: grid;
  grid-template-columns: 4.4rem 3.6rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.75rem 0.95rem;
  border: 0;
  background: transparent;
  color: #ece6dc;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}

.lane__hit:hover,
.lane.is-open .lane__hit {
  background: rgba(36, 88, 245, 0.12);
}

.lane__code {
  color: var(--mute);
}

.lane__kind {
  color: var(--lamp);
}

.lane__name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lane__state {
  justify-self: end;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(236, 230, 220, 0.16);
  color: #ece6dc;
}

.lane__state.is-watch {
  border-color: rgba(240, 179, 90, 0.45);
  color: var(--lamp);
}

.lane__state.is-open {
  border-color: rgba(36, 88, 245, 0.5);
  color: #9db4ff;
}

.lane__state.is-live {
  border-color: rgba(243, 211, 74, 0.7);
  background: rgba(243, 211, 74, 0.12);
  color: var(--tape);
}

.lane.is-open .lane__state.is-live,
.lane__state.is-live.is-pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

.lane__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.2, 0, 0, 1);
}

.lane.is-open .lane__panel {
  grid-template-rows: 1fr;
}

.lane__panel-inner {
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
}

.lane__panel-inner p {
  margin: 0;
  padding: 0 0.95rem 1rem 9.4rem;
  max-width: 46rem;
  color: rgba(236, 230, 220, 0.78);
}

.copy-mail {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.social a {
  color: var(--china);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(236, 230, 220, 0.1);
  color: var(--mute);
  text-transform: none;
  letter-spacing: 0;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.75rem 0.9rem;
  background: var(--slip);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.scan.is-busy #scan-input {
  border-color: var(--china);
}

@keyframes flap {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

@media (min-width: 840px) {
  .topbar {
    grid-template-columns: auto auto 1fr;
    gap: 1.4rem;
  }

  .scan {
    justify-self: end;
    width: min(100%, 28rem);
  }
}

@media (max-width: 719px) {
  .lane__hit {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "code state"
      "name name";
    gap: 0.25rem 0.7rem;
  }

  .lane__code {
    grid-area: code;
  }

  .lane__kind {
    display: none;
  }

  .lane__name {
    grid-area: name;
  }

  .lane__state {
    grid-area: state;
  }

  .lane__panel-inner p {
    padding-left: 0.95rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(120% 88% at 62% -8%, #000 0%, rgba(0, 0, 0, 0.85) 34%, rgba(0, 0, 0, 0.35) 58%, transparent 78%);
  mask-image: radial-gradient(120% 88% at 62% -8%, #000 0%, rgba(0, 0, 0, 0.85) 34%, rgba(0, 0, 0, 0.35) 58%, transparent 78%);
}

.atmosphere .stage {
  position: absolute;
  inset: -22%;
  width: auto;
  height: auto;
  filter: blur(48px) sepia(1) saturate(0.62) hue-rotate(-8deg) brightness(0.88);
}

.atmosphere .threeui-background {
  width: 100%;
  height: 100%;
  isolation: auto !important;
  overflow: visible;
  background: transparent !important;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.slip,
.board,
.toast {
  isolation: isolate;
}

@media (max-width: 839px) {
  .atmosphere .stage {
    filter: blur(38px) sepia(1) saturate(0.5) hue-rotate(-8deg) brightness(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lane.is-in,
  .lane__state.is-live {
    animation: none;
  }

  .lane__panel,
  .toast,
  .scan__go,
  .copy-mail,
  .lane__hit {
    transition: none;
  }
}


