:root {
  color-scheme: dark;
  --bg: #07060f;
  --bg-raised: #0c0e16;
  --bg-panel: #10131b;
  --ink: #f2f7f5;
  --ink-soft: #c9d4d8;
  --muted: #96a8b0;
  --line: #29313d;
  --line-hot: #4b5c67;
  --green: #00ff88;
  --green-dim: #5edfa0;
  --cyan: #22d3ee;
  --magenta: #f43f8e;
  --danger: #ff6b7e;
  --shadow-green: 0 0 28px rgb(0 255 136 / 0.16);
  --display: "Arial Narrow", "Bahnschrift SemiCondensed", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --gutter: clamp(1.125rem, 4vw, 4rem);
  --section-gap: clamp(5rem, 10vw, 9rem);
  --radius: 0.125rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgb(34 211 238 / 0.055), transparent 26rem),
    radial-gradient(circle at 10% 72%, rgb(244 63 142 / 0.035), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--body);
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.38;
  background-image:
    linear-gradient(rgb(34 211 238 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(34 211 238 / 0.035) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, black 0, transparent 86%);
}

body::after {
  opacity: 0.11;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(255 255 255 / 0.16) 4px
  );
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.02;
}

::selection {
  background: var(--green);
  color: #041009;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--green);
  color: #041009;
  font-weight: 800;
  text-decoration: none;
}

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

.site-shell {
  width: min(100%, 100rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.25rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgb(7 6 15 / 0.9);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__signal {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--green);
  box-shadow: var(--shadow-green);
  color: var(--green);
  font: 800 0.72rem/1 var(--mono);
  clip-path: polygon(0.45rem 0, 100% 0, 100% calc(100% - 0.45rem), calc(100% - 0.45rem) 100%, 0 100%, 0 0.45rem);
}

.wordmark__text {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.07em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink-soft);
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.demo-chip,
.static-label {
  border: 1px solid rgb(244 63 142 / 0.55);
  color: #ff83b4;
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-chip {
  padding: 0.62rem 0.72rem;
}

.motion-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-hot);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motion-toggle:hover,
.motion-toggle[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--ink);
}

.motion-toggle__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--green);
  box-shadow: 0 0 12px rgb(0 255 136 / 0.7);
}

.motion-toggle[aria-pressed="true"] .motion-toggle__dot {
  background: var(--muted);
  box-shadow: none;
}

.section-pad {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  min-height: calc(100svh - 5.25rem);
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.hero__copy,
.section-intro,
.profile__intro,
.phase-copy {
  min-width: 0;
}

.signal-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--green-dim);
  font: 800 0.72rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-label span {
  color: var(--green);
}

.hero h1 {
  margin-bottom: 2rem;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

.hero__name {
  display: block;
  width: min-content;
  color: var(--ink);
  font-size: clamp(4.4rem, 9.4vw, 8.8rem);
  letter-spacing: -0.055em;
  line-height: 0.77;
  text-shadow: 2px 0 0 rgb(34 211 238 / 0.45), -2px 0 0 rgb(244 63 142 / 0.35);
}

.hero__name em {
  display: block;
  margin-top: 0.18em;
  color: var(--green);
  font-style: normal;
  text-shadow: 0 0 30px rgb(0 255 136 / 0.24);
}

.hero__promise {
  display: block;
  max-width: 11ch;
  margin-top: 1.55rem;
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: none;
}

.hero__lead {
  max-width: 39rem;
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

.role-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
  color: var(--ink-soft);
  font: 800 0.72rem/1.4 var(--mono);
  letter-spacing: 0.05em;
}

.role-rail span {
  color: var(--cyan);
}

.role-rail li:nth-child(2) span {
  color: var(--magenta);
}

.role-rail li:nth-child(3) span {
  color: var(--green);
}

.primary-action {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--green);
  background: var(--green);
  box-shadow: 0.35rem 0.35rem 0 rgb(34 211 238 / 0.24);
  color: #031209;
  cursor: pointer;
  font: 900 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  clip-path: polygon(0 0, calc(100% - 0.75rem) 0, 100% 0.75rem, 100% 100%, 0.75rem 100%, 0 calc(100% - 0.75rem));
}

.primary-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0.55rem 0.55rem 0 rgb(34 211 238 / 0.3);
  background: #52ffad;
}

.primary-action:active {
  transform: translate(0, 0);
  box-shadow: 0.18rem 0.18rem 0 rgb(34 211 238 / 0.22);
}

.demo-note {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--magenta);
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-note strong {
  color: var(--ink-soft);
}

.signal-frame {
  position: relative;
  border: 1px solid var(--line-hot);
  background: linear-gradient(145deg, rgb(16 19 27 / 0.92), rgb(8 9 15 / 0.98));
  clip-path: polygon(1.25rem 0, 100% 0, 100% calc(100% - 1.25rem), calc(100% - 1.25rem) 100%, 0 100%, 0 1.25rem);
}

.signal-frame::before,
.signal-frame::after {
  position: absolute;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  pointer-events: none;
  content: "";
}

.signal-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.signal-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

.hero-art {
  margin: 0;
  box-shadow: 0 2.5rem 7rem rgb(0 0 0 / 0.42);
}

.hero-art__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #101720;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  filter: saturate(0.86) contrast(1.06) brightness(0.8);
}

.hero-art__image-wrap::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(7 6 15 / 0.68), transparent 37%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 5px, rgb(0 0 0 / 0.16) 6px);
  pointer-events: none;
  content: "";
}

.hero-art__reticle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1;
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid rgb(34 211 238 / 0.8);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.55rem rgb(7 6 15 / 0.65);
}

.hero-art__reticle::before,
.hero-art__reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cyan);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-art__reticle::before {
  width: 5rem;
  height: 1px;
}

.hero-art__reticle::after {
  width: 1px;
  height: 5rem;
}

.hero-art__readout {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--green);
  background: rgb(7 6 15 / 0.82);
  color: var(--green-dim);
  font: 800 0.68rem/1.25 var(--mono);
  letter-spacing: 0.06em;
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font: 700 0.63rem/1.3 var(--mono);
  letter-spacing: 0.04em;
}

.brief {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgb(34 211 238 / 0.035) 1px, transparent 1px),
    linear-gradient(rgb(34 211 238 / 0.035) 1px, transparent 1px),
    #0a0d14;
  background-size: 4rem 4rem;
}

.section-intro h2 {
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.8vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-intro > p:last-child {
  max-width: 45rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  margin: 0;
  background: var(--line);
  list-style: none;
}

.brief-grid li {
  min-height: 15rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: rgb(7 9 15 / 0.95);
}

.brief-grid li:nth-child(2) {
  background: rgb(12 13 22 / 0.96);
}

.brief-grid li:nth-child(3) {
  background: rgb(12 13 22 / 0.96);
}

.brief-grid__index {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--cyan);
  font: 800 0.68rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.brief-grid li:nth-child(2) .brief-grid__index {
  color: #ff83b4;
}

.brief-grid li:nth-child(3) .brief-grid__index {
  color: var(--green-dim);
}

.brief-grid h3 {
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
}

.brief-grid p {
  max-width: 29rem;
  margin-bottom: 0;
  color: var(--muted);
}

.team-finder,
.progress,
.profile {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.section-heading-row,
.progress__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.section-intro--compact h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
}

.dataset-stamp {
  display: grid;
  min-width: 11.5rem;
  gap: 0.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line-hot);
  font-family: var(--mono);
  clip-path: polygon(0.7rem 0, 100% 0, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0 100%, 0 0.7rem);
}

.dataset-stamp span,
.dataset-stamp small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.dataset-stamp strong {
  color: #ff83b4;
  font-size: 1.05rem;
}

.finder-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.45fr);
  gap: 1.5rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgb(11 13 20 / 0.72);
}

.filter-set {
  padding: 0;
  border: 0;
}

.filter-set legend,
.search-field > span:first-child,
.profile-form > label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font: 800 0.68rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-set__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-set button,
.phase-tabs button,
.empty-state button {
  min-height: 2.75rem;
  border: 1px solid var(--line-hot);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 800 0.72rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-set button {
  padding: 0.75rem 0.9rem;
}

.filter-set button:hover,
.filter-set button[aria-pressed="true"] {
  border-color: var(--green);
  background: rgb(0 255 136 / 0.08);
  color: var(--green);
}

.search-field {
  min-width: 0;
}

.search-field__input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line-hot);
}

.search-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.search-field input::placeholder {
  color: #74858e;
}

.search-field__input-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 2px 0 var(--cyan);
}

.search-field__input-wrap > span {
  color: var(--cyan);
  font-size: 1.5rem;
}

.result-count {
  min-height: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font: 700 0.72rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 21rem;
  flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  overflow: visible;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgb(34 211 238 / 0.035), transparent 42%),
    var(--bg-panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
  clip-path: polygon(0.85rem 0, 100% 0, 100% calc(100% - 0.85rem), calc(100% - 0.85rem) 100%, 0 100%, 0 0.85rem);
}

.team-card::before {
  position: absolute;
  top: 0;
  left: 0.85rem;
  width: 3.2rem;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.team-card:hover {
  z-index: 1;
  border-color: var(--line-hot);
  background:
    linear-gradient(150deg, rgb(0 255 136 / 0.055), transparent 45%),
    #121620;
  transform: translateY(-3px);
}

.team-card.is-selected {
  border-color: rgb(0 255 136 / 0.72);
  box-shadow: inset 0 0 0 1px rgb(0 255 136 / 0.18), 0 0 2.5rem rgb(0 255 136 / 0.06);
}

.team-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.1rem;
  color: var(--muted);
  font: 700 0.62rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card__demo-label {
  color: #ff83b4;
}

.team-card__signal {
  color: var(--green-dim);
}

.team-card__title {
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.team-card__idea {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.team-card__needs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: auto 0 1.5rem;
  list-style: none;
}

.role-tag {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-hot);
  color: var(--ink-soft);
  font: 800 0.61rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-tag[data-role="code"] {
  border-color: rgb(34 211 238 / 0.55);
  color: #83e9f7;
}

.role-tag[data-role="art"] {
  border-color: rgb(244 63 142 / 0.55);
  color: #ff9bc2;
}

.role-tag[data-role="sound"] {
  border-color: rgb(0 255 136 / 0.48);
  color: #75ffbc;
}

.team-card__open {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 900 0.72rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.team-card__open:hover {
  border-color: var(--green);
  color: var(--green);
}

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line-hot);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 1rem;
  color: var(--magenta);
  font: 900 1.25rem/1 var(--mono);
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 2rem;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  padding: 0.75rem 1rem;
}

.progress {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090b11;
}

.static-label {
  max-width: 12rem;
  padding: 0.8rem 0.9rem;
  line-height: 1.45;
}

.phase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1px;
  background: var(--line);
}

.phase-tabs button {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 0;
  background: var(--bg-panel);
  text-align: left;
}

.phase-tabs button span {
  color: var(--cyan);
}

.phase-tabs button:hover,
.phase-tabs button[aria-pressed="true"] {
  background: rgb(0 255 136 / 0.08);
  color: var(--green);
}

.phase-tabs button[aria-pressed="true"] span {
  color: var(--green);
}

.phase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  min-height: 31rem;
  border: 1px solid var(--line);
  border-top: 0;
}

.phase-visual {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgb(0 255 136 / 0.08), transparent 17rem),
    linear-gradient(rgb(34 211 238 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(34 211 238 / 0.05) 1px, transparent 1px),
    #080b11;
  background-size: auto, 2rem 2rem, 2rem 2rem, auto;
}

.phase-visual__map {
  position: relative;
  width: min(100%, 37rem);
  aspect-ratio: 16 / 9;
  margin: auto;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: clamp(2.5rem, 6vw, 4.5rem);
  aspect-ratio: 1;
  border: 1px solid var(--green);
  background: rgb(7 6 15 / 0.82);
  box-shadow: 0 0 2.5rem rgb(0 255 136 / 0.13), inset 0 0 0 0.5rem rgb(0 255 136 / 0.05);
  transform: rotate(45deg);
}

.map-node::after {
  position: absolute;
  inset: 35%;
  background: var(--green);
  box-shadow: 0 0 1rem var(--green);
  content: "";
}

.map-node--a {
  bottom: 11%;
  left: 5%;
}

.map-node--b {
  top: 12%;
  left: 43%;
}

.map-node--c {
  right: 4%;
  bottom: 18%;
}

.map-path {
  position: absolute;
  z-index: 1;
  height: 2px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 0.75rem, transparent 0.75rem 1.25rem);
  transform-origin: left center;
}

.map-path::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  content: "";
  animation: signal-run 4s linear infinite;
}

.map-path--a {
  bottom: 28%;
  left: 13%;
  width: 42%;
  transform: rotate(-26deg);
}

.map-path--b {
  top: 39%;
  left: 51%;
  width: 38%;
  transform: rotate(24deg);
}

.phase-visual[data-phase-art="prototype"] .map-node,
.phase-visual[data-phase="prototype"] .map-node {
  border-color: var(--cyan);
}

.phase-visual[data-phase-art="showcase"] .map-node,
.phase-visual[data-phase="showcase"] .map-node {
  border-color: var(--magenta);
}

.phase-visual__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font: 700 0.63rem/1.3 var(--mono);
  letter-spacing: 0.06em;
}

.phase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.phase-copy__kicker {
  color: var(--magenta);
  font: 800 0.68rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-copy h3 {
  margin-bottom: 1.2rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.phase-copy > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.profile {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 9vw, 9rem);
}

.safety-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.safety-list li::before {
  margin-right: 0.7rem;
  color: var(--green);
  content: "✓";
}

.profile-form {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--green-dim);
  font: 700 0.62rem/1.3 var(--mono);
  letter-spacing: 0.06em;
}

.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 3.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line-hot);
  border-radius: 0;
  background: #080a10;
  color: var(--ink);
}

.profile-form select {
  padding: 0.65rem 0.85rem;
}

.profile-form textarea {
  min-height: 9rem;
  padding: 0.9rem;
  resize: vertical;
}

.profile-form select:focus-visible,
.profile-form textarea:focus-visible {
  border-color: var(--cyan);
}

.field-hint,
.form-error {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.875rem;
}

.field-hint {
  color: var(--muted);
}

.form-error {
  padding: 0.7rem 0.8rem;
  border-left: 3px solid var(--danger);
  background: rgb(255 107 126 / 0.08);
  color: #ffafba;
}

.primary-action--button {
  width: 100%;
  margin-top: 0.35rem;
}

.profile-preview {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid rgb(34 211 238 / 0.45);
  background: rgb(34 211 238 / 0.055);
}

.profile-preview__label {
  display: block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font: 800 0.65rem/1.3 var(--mono);
  letter-spacing: 0.07em;
}

.profile-preview__note {
  margin: 0 0 1rem;
  color: var(--green-dim);
  font: 700 0.68rem/1.45 var(--mono);
}

.profile-preview p {
  margin-bottom: 0.5rem;
}

.profile-preview small {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem var(--gutter) 3.5rem;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
}

.site-footer p {
  max-width: 50rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.team-dialog {
  width: min(calc(100% - 2rem), 44rem);
  max-height: min(44rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--green);
  background: #090b12;
  box-shadow: 0 1.5rem 8rem rgb(0 0 0 / 0.78), 0 0 3rem rgb(0 255 136 / 0.12);
  color: var(--ink);
}

.team-dialog:not([open]):not(.is-open) {
  display: none;
}

.team-dialog::backdrop {
  background: rgb(3 4 8 / 0.82);
  backdrop-filter: blur(6px);
}

.team-dialog.is-open {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 50;
  display: block;
  transform: translate(-50%, -50%);
}

.team-dialog__frame {
  padding: clamp(1.35rem, 4vw, 3rem);
}

.team-dialog__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: #ff83b4;
  font: 800 0.63rem/1.3 var(--mono);
  letter-spacing: 0.07em;
}

.team-dialog__topline button {
  min-width: 4.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line-hot);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.7rem/1 var(--mono);
  text-transform: uppercase;
}

.team-dialog__topline button:hover {
  border-color: var(--magenta);
}

.team-dialog h2 {
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
}

#dialog-idea {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.dialog-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 2rem 0;
  padding: 1px;
  background: var(--line);
}

.dialog-details div {
  padding: 1.25rem;
  background: #0e1119;
}

.dialog-details dt {
  margin-bottom: 0.55rem;
  color: var(--cyan);
  font: 800 0.65rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dialog-details dd {
  margin: 0;
  color: var(--ink-soft);
}

.dialog-disclaimer {
  margin: 0;
  padding: 1rem;
  border-left: 3px solid var(--magenta);
  background: rgb(244 63 142 / 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.has-open-dialog {
  overflow: hidden;
}

@keyframes signal-run {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes wordmark-pulse {
  0%, 92%, 100% { text-shadow: 2px 0 0 rgb(34 211 238 / 0.45), -2px 0 0 rgb(244 63 142 / 0.35); }
  94% { text-shadow: 5px 0 0 rgb(34 211 238 / 0.65), -4px 0 0 rgb(244 63 142 / 0.55); }
  96% { text-shadow: 1px 0 0 rgb(34 211 238 / 0.35), -1px 0 0 rgb(244 63 142 / 0.25); }
}

html[data-motion="running"] .hero__name {
  animation: wordmark-pulse 9s steps(1, end) infinite;
}

html[data-motion="paused"] *,
html.motion-paused *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
}

@media (max-width: 72rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.8fr);
    gap: 3rem;
  }

  .hero__name {
    font-size: clamp(4rem, 9vw, 7rem);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 58.01rem) and (max-height: 48rem) {
  .hero {
    min-height: calc(100svh - 5.25rem);
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    margin-bottom: 1.25rem;
  }

  .hero__name {
    font-size: clamp(4.8rem, 8vw, 6.5rem);
  }

  .hero__promise {
    margin-top: 1rem;
    font-size: clamp(2rem, 2.8vw, 2.7rem);
  }

  .hero__lead {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .role-rail {
    margin-bottom: 1.25rem;
  }

  .demo-note {
    margin-top: 1rem;
  }

  .hero-art__image-wrap {
    height: calc(100svh - 11rem);
    min-height: 29rem;
    aspect-ratio: auto;
  }
}

@media (max-width: 58rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__copy {
    max-width: 45rem;
  }

  .hero-art {
    width: min(100%, 42rem);
  }

  .hero-art__image-wrap {
    aspect-ratio: 5 / 4;
  }

  .hero-art img {
    object-position: 62% center;
  }

  .brief,
  .profile {
    grid-template-columns: 1fr;
  }

  .brief {
    gap: 3rem;
  }

  .profile__intro {
    max-width: 46rem;
  }

  .phase-panel {
    grid-template-columns: 1fr;
  }

  .phase-visual {
    min-height: 27rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 47.99rem) {
  :root {
    --gutter: clamp(1.125rem, 5vw, 2rem);
    --section-gap: clamp(4.75rem, 14vw, 7rem);
  }

  html {
    scroll-padding-top: 10.5rem;
  }

  .site-header {
    gap: 0.55rem 1rem;
  }

  .demo-chip {
    display: none;
  }

  .section-heading-row,
  .progress__header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dataset-stamp,
  .static-label {
    justify-self: start;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .brief-grid li {
    min-height: 12rem;
  }

  .brief-grid li:nth-child(3) {
    background: rgb(7 9 15 / 0.95);
  }

  .finder-controls {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 18rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 35rem) {
  .site-header {
    grid-template-columns: 1fr;
    padding-top: 0.65rem;
  }

  .wordmark {
    justify-self: start;
  }

  .header-actions {
    position: absolute;
    top: 0.75rem;
    right: var(--gutter);
  }

  .motion-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .motion-toggle {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.4rem;
  }

  .site-nav a {
    flex: 1 0 auto;
    justify-content: center;
    font-size: 0.65rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero__name {
    font-size: clamp(4rem, 23vw, 6rem);
  }

  .hero__promise {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .role-rail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action {
    width: 100%;
  }

  .hero-art__image-wrap {
    aspect-ratio: 4 / 5;
  }

  .hero-art figcaption {
    display: grid;
  }

  .hero-art__reticle {
    top: 1.5rem;
    right: 1.5rem;
  }

  .phase-tabs {
    grid-template-columns: 1fr;
  }

  .phase-panel {
    border-top: 1px solid var(--line);
  }

  .phase-visual {
    min-height: 21rem;
  }

  .dialog-details {
    grid-template-columns: 1fr;
  }

  .team-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .primary-action,
  .team-card,
  .signal-frame,
  .dataset-stamp {
    clip-path: none;
  }

  .role-tag,
  .demo-chip,
  .static-label {
    border-color: CanvasText;
  }
}
