.lineup-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2.1;
  border: 1px solid #30546b;
  border-radius: .45rem;
  background:
    radial-gradient(ellipse at 48% 55%, #21394b, transparent 68%),
    radial-gradient(ellipse at 54% 105%, #10759748, transparent 47%),
    #050d17;
}
.lineup-person {
  position: absolute;
  left: var(--position);
  bottom: var(--ground, 6%);
  height: var(--figure-height);
  transform: translateX(-50%);
  z-index: var(--depth, 1);
  outline-offset: 2px;
}
.lineup-person img {
  display: block;
  width: auto;
  height: 100%;
  transition: filter 150ms ease;
}
.lineup-person:is(:hover, :focus-visible, :active) img {
  filter: drop-shadow(1px 0 var(--operator-accent))
    drop-shadow(-1px 0 var(--operator-accent))
    drop-shadow(0 1px var(--operator-accent))
    drop-shadow(0 -1px var(--operator-accent));
}
.lineup-danny { --position: 27%; --ground: 4%; --figure-height: 62%; --depth: 3; }
.lineup-marcus { --position: 38%; --ground: 8%; --figure-height: 91%; }
.lineup-evan { --position: 49%; --figure-height: 91%; --depth: 2; }
.lineup-maya { --position: 60.7%; --ground: 8%; --figure-height: 89%; --depth: 1; }
.lineup-ben { --position: 69.5%; --ground: 4%; --figure-height: 59%; --depth: 4; }
.lineup-instruction { color: var(--muted); margin: .8rem 0 .35rem; }
.operator:target { border-color: var(--operator-accent); }
@media (max-width: 540px) {
  .lineup-stage { aspect-ratio: 1.9; }
  .lineup-maya { --position: 61.7%; }
}
@media (prefers-reduced-motion: reduce) {
  .lineup-person img { transition: none; }
}

.cryptoflame-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15em .24em;
}
.cryptoflame-title img {
  flex: none;
  width: clamp(2.5rem, 1.28em, 6rem);
  height: auto;
}

.metal-title {
  color: #d9e4ec;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}
@supports (background-clip: text) {
  .metal-title {
    background: linear-gradient(#fcfdff 12%, #a9bccb 47%, #6a8294 49%, #e8f2f7 60%, #a8bed0 93%);
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 1px #03070c);
  }
}
.cryptoflame-title { font-size: clamp(1.45rem, 5.5vw, 4.65rem); }
.operator-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 3vw, 1.5rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0 1.25rem;
}
.operator-team-emblem {
  display: block;
  width: clamp(3.4rem, 12vw, 6.5rem);
  height: auto;
}
.operator-heading h1 {
  font-size: clamp(1.65rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-block: .65rem .3rem;
  overflow-wrap: anywhere;
}
.operator-heading .page-label { color: var(--operator-accent); }
.operator-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.profile-roster { display: grid; gap: .35rem; position: sticky; top: 1rem; }
.profile-roster a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .55rem;
  min-height: 44px;
  border: 1px solid #30546b;
  border-radius: .25rem;
  background: #07111c;
  color: #e2edf3;
  font: .8rem var(--mono);
  text-decoration: none;
}
.profile-roster img { width: 2rem; height: 2rem; object-fit: contain; }
.profile-roster a:is([aria-current], :hover, :focus-visible) { color: var(--operator-accent); border-color: var(--operator-accent); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.profile-portrait { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--operator-accent); border-radius: .45rem; }
.profile-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.profile-crest { width: clamp(4rem, 10vw, 7rem); height: auto; margin-bottom: .65rem; }
@media (prefers-reduced-motion: no-preference) {
  .profile-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 48%, var(--operator-accent) 50%, transparent 52%); opacity: .24; animation: profile-scan .7s ease-out both; }
  @keyframes profile-scan { from { transform: translateY(-55%); } to { transform: translateY(55%); opacity: 0; } }
}
@media (max-width: 740px) {
  .operator-layout { grid-template-columns: 1fr; }
  .profile-roster { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 510px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 26rem; }
}

.lineup-stage {
  background: linear-gradient(0deg, #040a14ba, #08112145 33%, #07111b62),
    #08111c url("arc-workshop.webp") center 56% / cover no-repeat;
}

.team-motto { margin: .8rem 0 .5rem; }
.page-intro .team-motto ~ p { max-width: 45rem; color: #d3e6ee; }
.page-intro .team-motto ~ p + p { margin-top: .45rem; }
.lineup-heading { margin-bottom: .65rem; }
.operator-page {
  background: radial-gradient(ellipse at 55% 35%, rgb(var(--operator-light) / .13), transparent 70%);
}
.operator-page .profile-info {
  border-top-color: var(--operator-trim);
  background: linear-gradient(135deg, rgb(var(--operator-light) / .10), transparent 65%), #07111c;
}
.operator-page .profile-info h2 { color: var(--operator-accent); }
.operator-page .profile-roster a[aria-current] { border-color: var(--operator-accent); }

/* Follow the artwork so transparent corners do not intercept neighboring profiles. */
.lineup-danny { clip-path: polygon(34% 0%, 27% 5%, 24% 10%, 26% 15%, 29% 20%, 17% 25%, 9% 30%, 6% 35%, 3% 40%, 0% 45%, 1% 50%, 0% 55%, 0% 60%, 1% 65%, 0% 70%, 0% 75%, 4% 80%, 10% 85%, 18% 90%, 16% 95%, 16% 100%, 95% 100%, 95% 95%, 90% 90%, 85% 85%, 89% 80%, 89% 75%, 94% 70%, 98% 65%, 100% 60%, 100% 55%, 100% 50%, 100% 45%, 100% 40%, 100% 35%, 97% 30%, 82% 25%, 66% 20%, 67% 15%, 67% 10%, 65% 5%, 57% 0%); }
.lineup-marcus { clip-path: polygon(41% 0%, 34% 5%, 34% 10%, 23% 15%, 14% 20%, 7% 25%, 1% 30%, 0% 35%, 0% 40%, 2% 45%, 9% 50%, 22% 55%, 20% 60%, 20% 65%, 17% 70%, 13% 75%, 13% 80%, 11% 85%, 9% 90%, 9% 95%, 9% 100%, 94% 100%, 100% 95%, 86% 90%, 80% 85%, 78% 80%, 81% 75%, 85% 70%, 91% 65%, 92% 60%, 92% 55%, 95% 50%, 95% 45%, 93% 40%, 93% 35%, 91% 30%, 87% 25%, 82% 20%, 73% 15%, 81% 10%, 81% 5%, 75% 0%); }
.lineup-evan { clip-path: polygon(28% 0%, 20% 5%, 21% 10%, 18% 15%, 6% 20%, 2% 25%, 2% 30%, 2% 35%, 0% 40%, 0% 45%, 3% 50%, 11% 55%, 8% 60%, 8% 65%, 9% 70%, 5% 75%, 4% 80%, 2% 85%, 1% 90%, 1% 95%, 0% 100%, 97% 100%, 97% 95%, 83% 90%, 83% 85%, 81% 80%, 82% 75%, 82% 70%, 86% 65%, 88% 60%, 87% 55%, 87% 50%, 89% 45%, 88% 40%, 99% 35%, 100% 30%, 95% 25%, 89% 20%, 75% 15%, 68% 10%, 69% 5%, 61% 0%); }
.lineup-maya { clip-path: polygon(31% 0%, 24% 5%, 22% 10%, 21% 15%, 16% 20%, 8% 25%, 2% 30%, 2% 35%, 5% 40%, 6% 45%, 10% 50%, 11% 55%, 19% 60%, 17% 65%, 11% 70%, 8% 75%, 7% 80%, 3% 85%, 1% 90%, 0% 95%, 0% 100%, 63% 100%, 70% 95%, 65% 90%, 65% 85%, 67% 80%, 69% 75%, 70% 70%, 73% 65%, 77% 60%, 90% 55%, 89% 50%, 87% 45%, 99% 40%, 100% 35%, 100% 30%, 94% 25%, 91% 20%, 84% 15%, 80% 10%, 72% 5%, 61% 0%); }
.lineup-ben { clip-path: polygon(35% 0%, 30% 5%, 28% 10%, 24% 15%, 20% 20%, 11% 25%, 6% 30%, 4% 35%, 0% 40%, 0% 45%, 0% 50%, 0% 55%, 0% 60%, 0% 65%, 4% 70%, 4% 75%, 5% 80%, 3% 85%, 2% 90%, 2% 95%, 15% 100%, 85% 100%, 100% 95%, 100% 90%, 100% 85%, 99% 80%, 97% 75%, 95% 70%, 74% 65%, 78% 60%, 78% 55%, 82% 50%, 82% 45%, 82% 40%, 78% 35%, 73% 30%, 68% 25%, 62% 20%, 60% 15%, 60% 10%, 59% 5%, 54% 0%); }

.profile-art { min-width: 0; }
.profile-view { display: flex; gap: .35rem; margin-bottom: .55rem; }
.profile-view button { padding: .5rem .85rem; min-height: 44px; border: 1px solid #30546b; border-radius: .25rem; background: #07111c; color: #e2edf3; }
.profile-view button[aria-pressed="true"] { color: var(--operator-accent); border-color: currentColor; }
.profile-art [hidden] { display: none; }

.profile-portrait:has(.frame-bay:not([hidden])) {
  background: radial-gradient(ellipse, rgb(var(--operator-light) / .23), transparent 72%), #061019;
}
.profile-portrait:has(.frame-bay:not([hidden]))::after { display: none; }
.frame-bay {
  position: relative;
  width: min(92%, 22rem);
  margin: .45rem auto;
}
/* Light coordinates use the same full image bounds at every display size. */
.profile-portrait .frame-art { aspect-ratio: 2 / 3; object-fit: contain; }
.frame-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--operator-accent), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.frame-visor { left: var(--visor-x); top: var(--visor-y); width: 14%; height: 6%; opacity: .48; }
.frame-chest { left: var(--chest-x); top: var(--chest-y); width: 22%; height: 13%; opacity: .32; }
@media (prefers-reduced-motion: no-preference) {
  .frame-bay:not([hidden]) .frame-art { animation: frame-materialize .42s ease-out both; }
  .frame-bay:not([hidden]) .frame-visor { animation: frame-power-on .48s .16s ease-out both; }
  .frame-bay:not([hidden]) .frame-chest { animation: frame-power-on .52s .38s ease-out both; }
}
@keyframes frame-materialize { from { opacity: .2; } }
@keyframes frame-power-on { from { opacity: 0; } 55% { opacity: .83; } }

@media (min-width: 511px) {
  .profile-body {
    grid-template-rows: auto 1fr;
    column-gap: 1rem;
    row-gap: 0;
    align-items: stretch;
  }
  .profile-art {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
  }
  .profile-view { grid-row: 1; align-self: start; }
  .profile-portrait {
    grid-row: 2;
    display: grid;
    align-content: stretch;
    background-color: #061019;
  }
  .profile-portrait > img:not([hidden]) {
    height: 100%;
    min-height: 0;
  }
  .profile-body .profile-portrait:has(.frame-bay:not([hidden])) {
    align-content: center;
    min-height: 0;
  }
  .profile-info { grid-column: 2; grid-row: 2; }
}

.operator-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.35rem, 1vw, .7rem);
}
.operator-index a {
  --button-border: color-mix(in srgb, var(--operator-accent, var(--cyan)) 45%, #213344);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  min-height: 66px;
  padding: .45rem .2rem;
  border: 1px solid #36566a;
  border-color: var(--button-border);
  border-radius: .4rem .4rem .85rem .4rem;
  background: #101c29;
  background: linear-gradient(155deg, color-mix(in srgb, var(--operator-accent, var(--cyan)) 15%, #101c29), #09121c 72%);
  color: var(--operator-accent, var(--cyan));
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(.72rem, 1.45vw, .94rem);
}
.operator-index a img { width: 1.8rem; height: 1.8rem; object-fit: contain; }
.operator-index a:is(:hover, :focus-visible, [aria-current]) {
  border-color: currentColor;
  background: linear-gradient(155deg, color-mix(in srgb, var(--operator-accent, var(--cyan)) 30%, #101c29), #0b1621 75%);
  box-shadow: inset 0 -2px currentColor;
}
.operator-index a:focus-visible { outline-offset: 2px; }
@media (max-width: 540px) {
  .operator-index { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .operator-index a { grid-column: span 2; }
  .operator-index a:nth-child(4) { grid-column: 2 / span 2; }
}
