:root {
  --ink: #101b28;
  --ink-deep: #08131f;
  --paper: #f4f5ef;
  --blue: #315cff;
  --blue-dark: #2147db;
  --cyan: #7ee6d8;
  --muted: #b4bfca;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.26);
  --shell: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner,
.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.domain-brand {
  display: inline-flex;
  font: 780 17px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.04em;
}

.site-header .domain-brand::before,
.site-header .domain-brand::after {
  color: var(--cyan);
  font-weight: 400;
  letter-spacing: 0;
}

.site-header .domain-brand::before {
  content: "[";
  margin-right: 9px;
}

.site-header .domain-brand::after {
  content: "]";
  margin-left: 9px;
}

.domain-brand i {
  color: var(--cyan);
  font-style: normal;
}

.domain-brand strong {
  color: #aebbc9;
  font-weight: 620;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  position: relative;
  padding-block: 10px;
  color: #c4cfdb;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.index {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(136px, 18vh, 172px) 0 112px;
  overflow: hidden;
  background: var(--ink);
}

.index::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22vw;
  right: -11vw;
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(127, 157, 189, 0.26);
  border-radius: 50%;
  box-shadow:
    0 0 0 9vw rgba(49, 92, 255, 0.045),
    0 0 0 18vw rgba(49, 92, 255, 0.025);
}

.index-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.index-intro {
  max-width: 900px;
}

.index h1 {
  max-width: 940px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.86;
}

.index h1 em {
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.index-summary {
  max-width: 480px;
  margin: clamp(26px, 4vh, 42px) 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.55;
}

.studio-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #aeb8c3;
  font: 800 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-meta > span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(126, 230, 216, 0.65);
}

.index-stamp {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(128px, 15vw, 200px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(126, 230, 216, 0.7);
  border-radius: 50%;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transform: rotate(-12deg);
  transition:
    border-color 240ms ease,
    box-shadow 380ms var(--ease-out),
    transform 380ms var(--ease-out);
}

.index-stamp::before,
.index-stamp::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(126, 230, 216, 0.38);
  border-radius: 50%;
}

.index-stamp::before {
  inset: 13%;
}

.index-stamp::after {
  inset: 31%;
}

.index-stamp:hover {
  border-color: var(--cyan);
  box-shadow: 0 18px 55px rgba(49, 92, 255, 0.2);
  transform: rotate(-7deg) scale(1.025);
}

.index-stamp span {
  font: 700 clamp(28px, 3.7vw, 54px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.04em;
}

.index-stamp i {
  position: absolute;
  top: 17%;
  right: 14%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue);
}

.index-stamp b {
  position: absolute;
  bottom: 13%;
  left: 14%;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 8vh, 82px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.project {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 15px;
  padding: 21px 23px 18px;
  border-left: 1px solid var(--line);
  color: var(--paper);
}

.project:first-child {
  border-left: 0;
}

.project-link {
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.project-number,
.project small,
.project em {
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.project-number {
  color: var(--cyan);
}

.project small {
  display: block;
  margin-bottom: 10px;
  color: #aeb8c3;
}

.project strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.7vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.project em {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--cyan);
  font-size: 8px;
  font-style: normal;
}

.project-static em {
  color: #8fa0af;
}

.product-preview {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  margin-top: 18px;
  padding: clamp(26px, 4vw, 42px) clamp(20px, 3vw, 38px);
  border: 1px solid rgba(126, 230, 216, 0.35);
  background:
    linear-gradient(115deg, rgba(49, 92, 255, 0.16), transparent 54%),
    rgba(8, 19, 31, 0.62);
  overflow: hidden;
}

.product-preview::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(126, 230, 216, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(126, 230, 216, 0.035), 0 0 0 84px rgba(126, 230, 216, 0.02);
  pointer-events: none;
}

.product-preview-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(78px, 10vw, 116px);
  aspect-ratio: 1;
  border: 1px solid rgba(126, 230, 216, 0.7);
  border-radius: 50%;
  color: var(--cyan);
  transform: rotate(9deg);
}

.product-preview-mark::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(126, 230, 216, 0.34);
  border-radius: 50%;
}

.product-preview-mark span {
  font: 700 clamp(28px, 4vw, 46px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.product-preview-mark i {
  position: absolute;
  top: 17%;
  right: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.product-preview-mark b {
  position: absolute;
  bottom: 18%;
  left: 17%;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.product-preview-copy,
.product-preview-status {
  position: relative;
  z-index: 1;
}

.product-preview-copy .studio-meta {
  margin: 0 0 12px;
}

.product-preview h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.product-preview-summary {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
}

.product-preview-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 22px;
  color: #c7d1db;
  font: 700 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-preview-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-preview-features b {
  color: var(--cyan);
  font-weight: 700;
}

.product-preview-status {
  align-self: end;
  min-width: 92px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: #92a2b0;
  font: 700 8px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-preview-status strong {
  color: var(--cyan);
  font-weight: 700;
}

.project-link:hover .project-number,
.project-link:hover small,
.project-link:hover em,
.project-link:focus-visible .project-number,
.project-link:focus-visible small,
.project-link:focus-visible em {
  color: var(--blue);
}

.site-footer {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 27, 40, 0.92);
  backdrop-filter: blur(12px);
}

.footer-inner {
  min-height: 57px;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: #96a4b3;
  font-size: 10px;
  text-align: right;
}

.signal-game {
  width: min(calc(100% - 32px), 760px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(174, 187, 201, 0.58);
  border-radius: 16px;
  background: var(--ink-deep);
  color: var(--paper);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.signal-game::backdrop {
  background: rgba(2, 8, 17, 0.82);
  backdrop-filter: blur(8px);
}

.signal-game-panel {
  padding: 24px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.signal-game-topline,
.signal-game-heading,
.signal-game-footer,
.signal-game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-game-topline {
  color: #9eacba;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
}

.signal-game-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.signal-game-close::before,
.signal-game-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.signal-game-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.signal-game-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.signal-game-close:hover {
  border-color: rgba(126, 230, 216, 0.7);
  background: rgba(126, 230, 216, 0.08);
}

.signal-game-heading {
  gap: 30px;
  margin-top: 20px;
}

.signal-game-heading .studio-meta {
  margin: 0 0 8px;
}

.signal-game-heading h2 {
  margin: 0;
  font-size: clamp(36px, 7vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.signal-game-hud {
  flex: 0 0 auto;
  gap: 24px;
}

.signal-game-hud p {
  margin: 0;
  color: #9eacba;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}

.signal-game-hud output,
.signal-game-hud time {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.signal-game-instructions {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.signal-arena {
  position: relative;
  overflow: hidden;
  height: 310px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(49, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 255, 0.08) 1px, transparent 1px),
    var(--ink-deep);
  background-size: 42px 42px;
}

.arena-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(49, 92, 255, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(49, 92, 255, 0.08),
    0 0 0 96px rgba(49, 92, 255, 0.05);
  transform: translate(-50%, -50%);
}

.signal-target {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(126, 230, 216, 0.8);
  border-radius: 50%;
  background: rgba(126, 230, 216, 0.08);
  cursor: crosshair;
  transform: translate(-50%, -50%);
}

.signal-target span {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.signal-target[hidden] {
  display: none;
}

.signal-pos-0 { left: 12%; top: 18%; }
.signal-pos-1 { left: 34%; top: 16%; }
.signal-pos-2 { left: 61%; top: 19%; }
.signal-pos-3 { left: 86%; top: 15%; }
.signal-pos-4 { left: 20%; top: 40%; }
.signal-pos-5 { left: 46%; top: 38%; }
.signal-pos-6 { left: 72%; top: 42%; }
.signal-pos-7 { left: 90%; top: 48%; }
.signal-pos-8 { left: 10%; top: 68%; }
.signal-pos-9 { left: 34%; top: 64%; }
.signal-pos-10 { left: 62%; top: 70%; }
.signal-pos-11 { left: 84%; top: 67%; }
.signal-pos-12 { left: 21%; top: 86%; }
.signal-pos-13 { left: 45%; top: 82%; }
.signal-pos-14 { left: 69%; top: 86%; }
.signal-pos-15 { left: 91%; top: 84%; }

.signal-game-footer {
  gap: 24px;
  margin-top: 20px;
}

.signal-game-footer p {
  margin: 0;
  color: var(--muted);
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-inner {
    min-height: 76px;
  }

  .domain-brand {
    font-size: 14px;
  }

  .site-header .domain-brand::before {
    margin-right: 5px;
  }

  .site-header .domain-brand::after {
    margin-left: 5px;
  }

  .nav a:first-child {
    display: none;
  }

  .index {
    min-height: calc(100svh - 73px);
    padding: 126px 0 24px;
    overflow: hidden;
  }

  .index::after {
    top: -10vw;
    right: -26vw;
    width: 75vw;
    height: 75vw;
  }

  .index-layout {
    display: block;
  }

  .index h1 {
    font-size: clamp(54px, 16vw, 72px);
    line-height: 0.9;
  }

  .index-summary {
    max-width: 350px;
    margin-top: 26px;
  }

  .studio-meta {
    max-width: 330px;
    margin-top: 18px;
    font-size: 9px;
    line-height: 1.45;
  }

  .index-stamp {
    width: 74px;
    margin: 26px 2px 0 auto;
  }

  .index-stamp span {
    font-size: 24px;
  }

  .index-stamp i {
    width: 6px;
    height: 6px;
  }

  .index-stamp b {
    font-size: 7px;
  }

  .project-rail {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .product-preview {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: 14px;
    padding: 22px 16px;
  }

  .product-preview-mark {
    width: 62px;
  }

  .product-preview-mark span {
    font-size: 24px;
  }

  .product-preview-copy .studio-meta {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .product-preview h2 {
    font-size: 34px;
  }

  .product-preview-summary {
    margin-top: 11px;
    font-size: 14px;
  }

  .product-preview-features {
    display: grid;
    gap: 7px;
    margin-top: 17px;
    font-size: 8px;
  }

  .product-preview-status {
    grid-column: 2;
    min-width: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project {
    min-height: 72px;
    padding: 14px 3px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .project small {
    margin-bottom: 5px;
  }

  .project em {
    right: 3px;
    bottom: 16px;
  }

  .site-footer {
    position: relative;
  }

  .footer-inner {
    min-height: 72px;
  }

  .brand-footer {
    display: none;
  }

  .footer-inner p {
    width: 100%;
    text-align: left;
  }

  .signal-game-panel {
    padding: 18px;
  }

  .signal-game-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .signal-game-hud {
    width: 100%;
    justify-content: flex-start;
  }

  .signal-arena {
    height: 260px;
  }

  .signal-game-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .index {
    padding-top: 118px;
  }

  .index h1 {
    font-size: 54px;
  }

  .project strong {
    font-size: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
