/* NuCulture Team character-selection system — shared by every leader page. */

.team-profile-page {
  --profile-accent: var(--brand-blue,#b8efff);
  --profile-accent-rgb: 184, 239, 255;
  --profile-position: center 28%;
  --profile-ink: #f7f8f4;
  --profile-muted: rgba(247,248,244,.72);
  --profile-glass: rgba(8,12,10,.60);
  --profile-glass-strong: rgba(8,12,10,.78);
  --profile-glass-line: rgba(255,255,255,.16);
  --profile-glass-highlight: rgba(255,255,255,.11);
  --profile-glass-shadow: 0 18px 42px rgba(0,0,0,.3);
  min-height: 100vh;
  color: var(--profile-ink);
  background: #080b09;
  font-family: var(--font-brand);
}

.team-profile-page--patrick { --profile-accent: var(--brand-blue,#b8efff); --profile-accent-rgb: 184, 239, 255; }
.team-profile-page--charlie { --profile-accent: #ffad69; --profile-accent-rgb: 255, 173, 105; }
.team-profile-page--daniel { --profile-accent: #86e8ff; --profile-accent-rgb: 134, 232, 255; }
.team-profile-page--robert { --profile-accent: #d8c6ff; --profile-accent-rgb: 216, 198, 255; }
.team-profile-page--joseph { --profile-accent: #a8d8ff; --profile-accent-rgb: 168, 216, 255; }

.team-profile-page main { overflow: hidden; }
.team-profile-page .site-header {
  height: 68px;
  color: #f5f6f2;
  border-color: rgba(255,255,255,.13);
  background: rgba(8,11,9,.86);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
}
.team-profile-page .wordmark-icon { width: 22px; height: 28px; }
.team-profile-page .main-nav { color: rgba(255,255,255,.58); }
.team-profile-page .header-cta { border-color: rgba(var(--profile-accent-rgb),.42); }
.team-profile-page .header-cta:hover,
.team-profile-page .header-cta:focus-visible { color: #050706; background: var(--profile-accent); border-color: var(--profile-accent); }
.team-profile-page :focus-visible { outline-color: var(--profile-accent); }
.team-profile-page ::selection { color: #050706; background: var(--profile-accent); }

.team-lobby {
  position: relative;
  min-height: 100svh;
  padding: 84px clamp(10px,1.7vw,28px) 18px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%,rgba(var(--profile-accent-rgb),.13),transparent 28%),
    radial-gradient(ellipse at 50% 104%,rgba(164,126,79,.16),transparent 42%),
    linear-gradient(145deg,#151a16 0%,#090d0a 58%,#101411 100%);
}
.team-lobby::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .36;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom,black,transparent 92%);
}
.team-lobby::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 4px,rgba(255,255,255,.025) 5px);
  mix-blend-mode: soft-light;
}

.team-select {
  position: relative;
  z-index: 30;
  width: min(100%,1680px);
  min-height: 45px;
  margin: 0 auto 10px;
  padding: 5px;
  display: grid;
  grid-template-columns: minmax(126px,.62fr) repeat(5,minmax(100px,1fr));
  align-items: stretch;
  border: 1px solid var(--profile-glass-line);
  border-radius: 8px;
  background:
    linear-gradient(112deg,rgba(255,255,255,.085),rgba(255,255,255,.018) 48%,rgba(var(--profile-accent-rgb),.04)),
    var(--profile-glass);
  box-shadow: inset 0 1px var(--profile-glass-highlight),var(--profile-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
}
.team-select__label {
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.72);
  border-right: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.team-select__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--profile-accent); box-shadow: 0 0 14px rgba(var(--profile-accent-rgb),.78); }
.team-select a {
  position: relative;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.76);
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform 180ms ease,opacity 180ms ease;
}
.team-select a span { color: rgba(255,255,255,.66); font-size: 10px; }
.team-select a:hover,
.team-select a:focus-visible { color: #fff; background: rgba(255,255,255,.065); transform: translateY(-1px); }
.team-select a[aria-current="page"] { color: #050706; background: var(--profile-accent); box-shadow: 0 0 26px rgba(var(--profile-accent-rgb),.22); }
.team-select a[aria-current="page"] span { color: rgba(5,7,6,.58); }

.team-lobby__shell {
  position: relative;
  z-index: 2;
  width: min(100%,1680px);
  height: clamp(680px,calc(100svh - 158px),900px);
  min-height: 680px;
  margin: 0 auto;
  perspective: 1500px;
  isolation: isolate;
}

.profile-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 70%,rgba(var(--profile-accent-rgb),.13),transparent 26%),
    linear-gradient(180deg,#1b211c 0%,#0c110d 66%,#070a08 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.12),0 30px 90px rgba(0,0,0,.36);
  isolation: isolate;
}
.profile-stage::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,rgba(5,8,6,.38),transparent 24%,transparent 76%,rgba(5,8,6,.38)),
    linear-gradient(0deg,rgba(5,8,6,.56),transparent 42%,rgba(5,8,6,.035));
}
.profile-stage::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background:
    linear-gradient(115deg,transparent 0 34%,rgba(255,255,255,.035) 34.2%,transparent 34.5%),
    repeating-linear-gradient(to bottom,transparent 0,transparent 5px,rgba(255,255,255,.018) 6px);
}
.profile-stage__environment {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(.94) contrast(1.01) brightness(.98);
  transform: scale(1.015);
}
.profile-stage__canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent;
  pointer-events: none;
  transition: opacity 620ms ease;
}
.profile-stage__contact-shadow {
  position: absolute;
  z-index: 1;
  top: calc(var(--scene-ground-position) - .15%);
  left: 50%;
  width: clamp(68px,7.2vw,124px);
  height: clamp(9px,1.05vw,18px);
  pointer-events: none;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  filter: blur(7px);
  opacity: .82;
  transform: translate(-50%,-50%);
}
.profile-stage__portrait {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 52%,rgba(var(--profile-accent-rgb),.12),transparent 34%);
  transition: opacity 620ms ease,filter 620ms ease;
}
.profile-stage__portrait img {
  width: min(62%,800px);
  height: 100%;
  object-fit: cover;
  object-position: var(--profile-position);
  filter: saturate(.9) contrast(1.02) brightness(.92);
  -webkit-mask-image: linear-gradient(to bottom,black 0 80%,transparent 99%);
  mask-image: linear-gradient(to bottom,black 0 80%,transparent 99%);
  transform: scale(1.015);
}
.profile-stage__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,rgba(7,10,8,.48),transparent 30%,transparent 70%,rgba(7,10,8,.48)),
    linear-gradient(0deg,rgba(7,10,8,.68),transparent 48%);
}
.profile-stage.is-scene-ready .profile-stage__canvas { opacity: 1; }
.profile-stage.is-scene-ready .profile-stage__portrait { opacity: 0; filter: blur(10px); }
.profile-stage.is-scene-fallback .profile-stage__canvas { display: none; }

.profile-stage__frame {
  position: absolute;
  z-index: 9;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 8px;
}
.profile-stage__frame::before,
.profile-stage__frame::after { content: ""; position: absolute; width: 42px; height: 42px; color: rgba(var(--profile-accent-rgb),.66); }
.profile-stage__frame::before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid; }
.profile-stage__frame::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.profile-stage__topline {
  position: absolute;
  z-index: 12;
  top: 29px;
  left: clamp(300px,24vw,390px);
  right: clamp(300px,24vw,390px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.profile-stage__topline span:first-child { color: var(--profile-accent); }
.profile-stage__scan {
  position: absolute;
  z-index: 5;
  top: 13%;
  bottom: 16%;
  left: 50%;
  width: min(35vw,470px);
  pointer-events: none;
  border: 1px solid rgba(var(--profile-accent-rgb),.14);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 90px rgba(var(--profile-accent-rgb),.055),inset 0 0 70px rgba(var(--profile-accent-rgb),.035);
}
.profile-stage__scan::before,
.profile-stage__scan::after { content: ""; position: absolute; border: 1px solid rgba(var(--profile-accent-rgb),.12); border-radius: 50%; }
.profile-stage__scan::before { inset: 15%; }
.profile-stage__scan::after { inset: 37%; }
.profile-stage__name {
  position: absolute;
  z-index: 14;
  left: 50%;
  bottom: 18px;
  width: min(48vw,620px);
  min-height: 92px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  color: var(--profile-ink);
  border: 1px solid var(--profile-glass-line);
  border-radius: 8px;
  background:
    linear-gradient(112deg,rgba(255,255,255,.1),rgba(255,255,255,.018) 48%,rgba(var(--profile-accent-rgb),.055)),
    var(--profile-glass-strong);
  box-shadow: inset 0 1px var(--profile-glass-highlight),var(--profile-glass-shadow),0 0 28px rgba(var(--profile-accent-rgb),.045);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
  text-align: left;
  transform: translateX(-50%);
}
.profile-stage__name::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 96px; height: 1px; opacity: .72; background: linear-gradient(90deg,var(--profile-accent),transparent); }
.profile-stage__headshot { width: 72px; height: 72px; display: block; object-fit: cover; object-position: center 24%; border: 1px solid rgba(var(--profile-accent-rgb),.36); border-radius: 7px; background: #111611; box-shadow: inset 0 1px rgba(255,255,255,.12),0 10px 24px rgba(0,0,0,.28); }
.profile-stage__identity-copy { min-width: 0; }
.profile-stage__tagline { display: block; margin-bottom: 5px; color: var(--profile-accent); font-size: 10px; font-weight: 650; line-height: 1.25; letter-spacing: .13em; text-transform: uppercase; }
.profile-stage__identity-copy h1 { margin: 0; font-size: clamp(30px,3vw,46px); font-weight: 760; line-height: .88; letter-spacing: -.035em; text-shadow: 0 8px 25px rgba(0,0,0,.38); }
.profile-stage__identity-copy h1 br { display: none; }
.profile-stage__identity-copy p { margin: 7px 0 0; overflow: hidden; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.3; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.team-lobby__side {
  position: absolute;
  z-index: 25;
  top: 74px;
  bottom: 22px;
  width: clamp(245px,20vw,310px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.team-lobby__side--left { left: clamp(10px,1.5vw,24px); }
.team-lobby__side--right { right: clamp(10px,1.5vw,24px); }
.hud-panel {
  --panel-depth: 6px;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid var(--profile-glass-line);
  border-radius: 8px;
  background:
    linear-gradient(118deg,rgba(255,255,255,.09),rgba(255,255,255,.018) 46%,rgba(var(--profile-accent-rgb),.04)),
    var(--profile-glass);
  box-shadow: inset 0 1px var(--profile-glass-highlight),var(--profile-glass-shadow),0 0 0 1px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
  transition: transform 220ms ease,opacity 220ms ease;
}
.hud-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -42%;
  left: -12%;
  width: 68%;
  height: 72%;
  pointer-events: none;
  opacity: .42;
  background: linear-gradient(132deg,rgba(255,255,255,.11),transparent 64%);
  transform: rotate(-6deg);
}
.hud-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  opacity: .58;
  background: linear-gradient(90deg,transparent,var(--profile-accent),transparent);
}
.team-lobby__side--left .hud-panel {
  transform: perspective(1000px) rotateY(3deg) translateZ(var(--panel-depth));
  transform-origin: left center;
}
.team-lobby__side--right .hud-panel {
  transform: perspective(1000px) rotateY(-3deg) translateZ(var(--panel-depth));
  transform-origin: right center;
}
.team-lobby__side .hud-panel:nth-child(2) { --panel-depth: 10px; }
.team-lobby__side .hud-panel:nth-child(3) { --panel-depth: 8px; }
.team-lobby__side--left .hud-panel:nth-child(2) { margin-left: 12px; }
.team-lobby__side--right .hud-panel:nth-child(2) { margin-right: 12px; }
.hud-panel:hover,
.hud-panel:focus-within { border-color: rgba(var(--profile-accent-rgb),.36); }
.team-lobby__side--left .hud-panel:hover,
.team-lobby__side--left .hud-panel:focus-within { transform: perspective(1000px) rotateY(1deg) translateZ(12px); }
.team-lobby__side--right .hud-panel:hover,
.team-lobby__side--right .hud-panel:focus-within { transform: perspective(1000px) rotateY(-1deg) translateZ(12px); }
.hud-panel__head {
  position: relative;
  z-index: 4;
  min-height: 34px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hud-panel__head strong { color: var(--profile-accent); font-size: 10px; font-weight: 650; }
.hud-panel__body { position: relative; z-index: 4; padding: 12px; font-size: 13px; line-height: 1.5; }

.identity-card__code { display: block; margin-bottom: 11px; color: var(--profile-accent); font-size: 10px; letter-spacing: .17em; }
.identity-card__name { margin: 0; font-size: clamp(24px,1.85vw,31px); font-weight: 720; line-height: .9; letter-spacing: -.025em; }
.identity-card__name span { display: block; margin-top: 8px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .03em; }
.identity-card__status { margin-top: 12px; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .1em; }
.identity-card__status strong { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); font-weight: 600; }
.identity-card__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--profile-accent); box-shadow: 0 0 12px rgba(var(--profile-accent-rgb),.7); }

.trait-list { display: flex; flex-wrap: wrap; gap: 6px; }
.trait-list span { padding: 8px 9px; color: rgba(255,255,255,.78); border: 1px solid rgba(var(--profile-accent-rgb),.2); border-radius: 999px; background: rgba(var(--profile-accent-rgb),.04); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.skill-list { display: grid; gap: 10px; }
.skill-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; align-items: end; color: rgba(255,255,255,.76); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.skill-row strong { color: var(--profile-accent); font-size: 10px; font-weight: 650; }
.skill-row i { grid-column: 1/-1; height: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.skill-row i::after { content: ""; display: block; width: 100%; height: 100%; background: linear-gradient(90deg,var(--profile-accent),rgba(var(--profile-accent-rgb),.2)); box-shadow: 0 0 9px rgba(var(--profile-accent-rgb),.44); }

.profile-brief p { margin: 0; color: rgba(255,255,255,.75); font-size: clamp(13px,1vw,15px); line-height: 1.58; }
.profile-brief p strong { color: #fff; font-weight: 600; }
.profile-brief__quote { margin: 12px 0 0; padding: 10px 0 0 11px; color: rgba(255,255,255,.86); border-left: 2px solid var(--profile-accent); font-size: 13px; line-height: 1.5; }
.social-stack { display: grid; gap: 5px; }
.social-stack a { min-height: 36px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.11); border-radius: 6px; background: rgba(255,255,255,.03); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; transition: transform 160ms ease,opacity 160ms ease; }
.social-stack a span { color: var(--profile-accent); }
.social-stack a:hover,
.social-stack a:focus-visible { color: #050706; background: var(--profile-accent); border-color: var(--profile-accent); transform: translateX(-2px); }
.social-stack a:hover span,
.social-stack a:focus-visible span { color: #050706; }

.message-panel { margin-top: auto; }
.profile-contact { overflow: hidden; }
.profile-contact__summary { min-height: 42px; cursor: pointer; list-style: none; border-bottom: 0; }
.profile-contact__summary::-webkit-details-marker { display: none; }
.profile-contact__summary::after { content: "+"; margin-left: 8px; color: var(--profile-accent); font-size: 16px; line-height: 1; }
.profile-contact[open] .profile-contact__summary::after { content: "−"; }
.profile-contact[open] .profile-contact__summary strong { font-size: 0; }
.profile-contact[open] .profile-contact__summary strong::after { content: "Close"; font-size: 10px; }
details.profile-contact:not([open]) > .hud-panel__body { display: none; }
.profile-contact[open] > .hud-panel__body { position: relative; z-index: 4; width: auto; max-height: none; margin: 8px; overflow: visible; border: 1px solid rgba(var(--profile-accent-rgb),.32); border-radius: 8px; background: linear-gradient(145deg,rgba(20,26,22,.985),rgba(7,11,9,.97)); box-shadow: inset 0 1px var(--profile-glass-highlight),0 16px 34px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(24px) saturate(108%); backdrop-filter: blur(24px) saturate(108%); }
.profile-contact[open] > .hud-panel__body::before { content: "Contact / email handoff"; display: block; margin: 0 0 10px; padding: 0 0 8px; color: var(--profile-accent); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.profile-message { display: grid; gap: 7px; }
.profile-message label { display: grid; gap: 4px; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.profile-message input,
.profile-message textarea { width: 100%; color: #fff; border: 1px solid rgba(255,255,255,.38); border-radius: 6px; outline: 0; background: rgba(255,255,255,.075); box-shadow: inset 0 1px rgba(255,255,255,.04); font-size: 13px; }
.profile-message input { height: 36px; padding: 0 9px; }
.profile-message textarea { min-height: 58px; padding: 8px 9px; resize: none; }
.profile-message input:focus,
.profile-message textarea:focus { border-color: rgba(var(--profile-accent-rgb),.66); background: rgba(var(--profile-accent-rgb),.05); }
.profile-message button { min-height: 38px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #050706; border: 0; border-radius: 6px; background: var(--profile-accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; touch-action: manipulation; transition: transform 160ms ease,opacity 160ms ease; }
.profile-message small { color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; letter-spacing: .02em; }
.profile-message__status { min-height: 15px; margin: 0; color: var(--profile-accent); font-size: 11px; line-height: 1.4; letter-spacing: .03em; }
.profile-contact:not(details) > .hud-panel__body { display:grid; }
.profile-booking { gap:10px; }
.profile-booking p {
  margin:0;
  color:rgba(255,255,255,.67);
  font-size:11px;
  line-height:1.5;
}
.profile-booking a {
  min-height:44px;
  padding:0 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#050706;
  border-radius:6px;
  background:var(--profile-accent);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.profile-booking small { color:rgba(255,255,255,.52); font-size:9px; line-height:1.45; }
.profile-booking a:focus-visible { outline:2px solid #fff; outline-offset:2px; }

.profile-section { position: relative; padding: clamp(64px,6vw,96px) clamp(20px,5vw,80px); }
.profile-section__label { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.profile-section__label::before { content: ""; width: 50px; height: 1px; background: var(--profile-accent); opacity: .74; }
.profile-section__label span:first-child { color: var(--profile-accent); }

.profile-story {
  color: #f5f6f2;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(circle at 84% 18%,rgba(var(--profile-accent-rgb),.085),transparent 31%),
    #080b09;
  background-size: 70px 70px,70px 70px,auto,auto;
}
.profile-story::before { content: attr(data-surname); position: absolute; top: 8%; right: -1vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); font-size: clamp(100px,18vw,300px); font-weight: 800; line-height: .7; pointer-events: none; }
.profile-story__grid {
  position: relative;
  z-index: 2;
  margin-top: clamp(28px,3vw,36px);
  padding: clamp(24px,3vw,44px);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(28px,4vw,64px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 44%,rgba(var(--profile-accent-rgb),.03));
  box-shadow: inset 0 1px rgba(255,255,255,.08),0 30px 80px rgba(0,0,0,.24);
}
.profile-story__intro,
.profile-story__copy { min-width: 0; }
.profile-story__intro { align-self: start; position: sticky; top: 96px; }
.profile-story__intro h2 { max-width: 100%; margin: 0; font-size: clamp(42px,4vw,68px); font-weight: 300; line-height: .9; letter-spacing: -.035em; }
.profile-story__intro h2 strong { display: block; color: var(--profile-accent); font-weight: 790; }
.profile-story__intro blockquote { max-width: 460px; margin: 28px 0 0; padding: 0 0 0 16px; color: rgba(255,255,255,.72); border-left: 2px solid var(--profile-accent); font-size: clamp(15px,1.1vw,19px); line-height: 1.5; }
.profile-story__copy { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.profile-story__copy>p { margin: 0 0 20px; color: rgba(255,255,255,.66); font-size: clamp(15px,1.12vw,18px); line-height: 1.65; }
.profile-story__copy>p:first-child { color: #fff; font-size: clamp(21px,1.7vw,27px); line-height: 1.38; }
.profile-facts { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
.profile-facts div { padding: 13px 0; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 18px; border-bottom: 1px solid rgba(255,255,255,.085); }
.profile-facts dt { color: var(--profile-accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.profile-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: rgba(255,255,255,.76); font-size: 13px; }

.profile-bts { color: #f5f6f2; background: radial-gradient(circle at 18% 4%,rgba(var(--profile-accent-rgb),.055),transparent 32%),#080b09; }
.profile-bts__heading { margin: 32px 0 28px; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px,5vw,70px); align-items: end; }
.profile-bts__heading h2 { max-width: 980px; margin: 0; font-size: clamp(44px,5.8vw,86px); font-weight: 300; line-height: .88; letter-spacing: -.045em; }
.profile-bts__heading h2 strong { color: var(--profile-accent); font-weight: 780; }
.profile-bts__heading p { max-width: 500px; margin: 0; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.7; }
.profile-media-grid--single { width: min(100%,1320px); margin: 0 auto; }
.profile-media-grid--candids {
  width: min(100%,1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
  gap: 12px;
}
.profile-media {
  position: relative;
  min-height: clamp(340px,42vw,620px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #090c0a;
  box-shadow: 0 36px 100px rgba(0,0,0,.36);
}
.profile-media--candid { min-height: clamp(270px,30vw,404px); }
.profile-media--candid-primary {
  --media-position: center 38%;
  grid-row: span 2;
  min-height: clamp(552px,61vw,820px);
}
.profile-media--candid-pinup { --media-position: center 34%; }
.profile-media--candid-layout { --media-position: center 39%; }
.profile-media--candid img {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 700ms cubic-bezier(.2,.75,.2,1),filter 400ms ease;
}
@media (hover: hover) {
  .profile-media--candid:hover img { transform: scale(1.025); filter: saturate(1.03) contrast(1.015); }
}
.profile-media img,
.profile-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--media-position,center); }
.profile-media video { position: absolute; inset: 0; }
.profile-media::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(4,6,5,.88),transparent 46%),linear-gradient(135deg,rgba(var(--profile-accent-rgb),.08),transparent 48%); }
.profile-media figcaption,
.profile-media__meta { position: absolute; z-index: 4; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.profile-media figcaption span:first-child,
.profile-media__meta span:first-child { color: var(--profile-accent); }
.profile-media__play { position: absolute; z-index: 6; top: 50%; left: 50%; width: clamp(104px,10vw,146px); aspect-ratio: 1; display: grid; place-items: center; color: #050706; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(var(--profile-accent-rgb),.94); box-shadow: 0 0 0 12px rgba(var(--profile-accent-rgb),.08),0 18px 55px rgba(0,0,0,.4); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; transform: translate(-50%,-50%); touch-action: manipulation; transition: transform 220ms ease,box-shadow 220ms ease; }
.profile-media__play:hover,
.profile-media__play:focus-visible { transform: translate(-50%,-50%) scale(1.045); box-shadow: 0 0 0 18px rgba(var(--profile-accent-rgb),.1),0 18px 55px rgba(0,0,0,.45); }
.profile-media.is-playing .profile-media__play { opacity: 0; pointer-events: none; }
.profile-media--pending {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px),
    radial-gradient(ellipse at 50% 70%,rgba(var(--profile-accent-rgb),.14),transparent 28%),
    linear-gradient(145deg,#101411,#040605);
  background-size: 56px 56px,56px 56px,auto,auto;
}
.profile-media--pending::before { content: attr(data-initials); color: transparent; -webkit-text-stroke: 1px rgba(var(--profile-accent-rgb),.27); font-size: clamp(130px,22vw,330px); font-weight: 800; letter-spacing: -.08em; }
.profile-media__pending-copy { position: absolute; z-index: 4; top: 50%; left: 50%; width: min(78%,520px); text-align: center; transform: translate(-50%,-50%); }
.profile-media__pending-copy span { color: var(--profile-accent); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.profile-media__pending-copy h3 { margin: 16px 0 10px; font-size: clamp(36px,5vw,72px); line-height: .86; letter-spacing: -.025em; }
.profile-media__pending-copy p { margin: 0; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.65; }

.profile-next { color: #f5f6f2; background: radial-gradient(circle at 50% 0,rgba(var(--profile-accent-rgb),.1),transparent 37%),#0c100d; }
.profile-next__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.profile-next a { min-height: 145px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: rgba(255,255,255,.62); border-right: 1px solid rgba(255,255,255,.1); transition: color 180ms,background 180ms,transform 180ms; }
.profile-next a:last-child { border-right: 0; }
.profile-next a span { color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .13em; }
.profile-next a strong { font-size: clamp(24px,2.6vw,40px); line-height: .86; letter-spacing: -.025em; }
.profile-next a i { color: var(--profile-accent); font-size: 15px; font-style: normal; }
.profile-next a:hover,
.profile-next a:focus-visible { color: #050706; background: var(--profile-accent); transform: translateY(-3px); }
.profile-next a:hover span,
.profile-next a:focus-visible span,
.profile-next a:hover i,
.profile-next a:focus-visible i { color: #050706; }
.profile-next a[aria-current="page"] { color: #050706; background: var(--profile-accent); pointer-events: none; }
.profile-next a[aria-current="page"] span,
.profile-next a[aria-current="page"] i { color: #050706; }
.profile-next__close { margin-top: clamp(48px,6vw,82px); display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px,6vw,82px); align-items: end; }
.profile-next__close h2 { max-width: 1000px; margin: 0; font-size: clamp(46px,6vw,88px); font-weight: 300; line-height: .87; letter-spacing: -.045em; }
.profile-next__close h2 strong { display: block; color: var(--profile-accent); font-weight: 780; }
.profile-next__actions { display: grid; gap: 8px; }
.profile-next__actions a { min-height: 50px; padding: 0 16px; flex-direction: row; align-items: center; color: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.14); border-radius: 7px; }
.profile-next__actions a:first-child { color: #050706; background: var(--profile-accent); border-color: var(--profile-accent); }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .team-profile-page .site-header,
  .team-select,
  .hud-panel,
  .profile-stage__name,
  .profile-contact[open] > .hud-panel__body,
  .profile-story__grid { background: #101511; }
}

/* Safari uses the prefixed glass compositor declared on each surface. */

@media (prefers-reduced-transparency: reduce) {
  .team-profile-page .site-header,
  .team-select,
  .hud-panel,
  .profile-stage__name,
  .profile-contact[open] > .hud-panel__body,
  .profile-story__grid {
    background: #101511;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 1180px) {
  .team-lobby__side { width: 252px; }
  .team-lobby__side--left .hud-panel:nth-child(2) { margin-left: 12px; }
  .team-lobby__side--right .hud-panel:nth-child(2) { margin-right: 12px; }
  .profile-stage__topline { left: 285px; right: 285px; }
  .profile-stage__name { width: min(42vw,470px); }
  .hud-panel__body { padding: 10px; }
  .profile-brief p { font-size: 13px; }
}

@media (max-width: 1020px) {
  .team-profile-page .main-nav { display: none; }
  .team-lobby { padding-top: 82px; }
  .team-lobby__shell { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; perspective: none; }
  .profile-stage { position: relative; grid-column: 1/-1; min-height: clamp(560px,66svh,660px); }
  .profile-stage__topline { left: 24px; right: 24px; }
  .profile-stage__name { width: min(72vw,620px); }
  .profile-stage__scan { width: min(55vw,450px); }
  .team-lobby__side { position: static; width: auto; min-width: 0; display: grid; gap: 10px; pointer-events: auto; }
  .team-lobby__side--left,
  .team-lobby__side--right { left: auto; right: auto; }
  .team-lobby__side .hud-panel,
  .team-lobby__side--left .hud-panel,
  .team-lobby__side--right .hud-panel { margin: 0; transform: none; }
  .message-panel { margin-top: 0; }
  .profile-contact[open] > .hud-panel__body { position: static; width: auto; max-height: none; margin-top: 8px; }
  .profile-story__grid { grid-template-columns: minmax(0,1fr); gap: 38px; }
  .profile-story__intro { position: static; }
  .profile-bts__heading { grid-template-columns: 1fr; gap: 24px; }
  .profile-next__grid { grid-template-columns: 1fr 1fr; }
  .profile-next__grid > a:nth-child(even) { border-right: 0; }
  .profile-next__grid > a:nth-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .profile-next__grid > a:nth-child(5) { grid-column: 1 / -1; border-right: 0; }
  .profile-next__close { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  .profile-stage__canvas { display: none; }
  .profile-stage.is-scene-ready .profile-stage__portrait { opacity: 1; filter: none; }
}

@media (max-width: 700px) {
  .team-profile-page .header-cta { display: none; }
  .team-select { width: calc(100vw - 18px); max-width: calc(100vw - 18px); min-width: 0; overflow-x: auto; grid-template-columns: 116px repeat(5,150px); scroll-snap-type: x proximity; scrollbar-width: none; box-shadow: inset -20px 0 18px -16px rgba(var(--profile-accent-rgb),.9),inset 0 1px var(--profile-glass-highlight),var(--profile-glass-shadow); }
  .team-select a { scroll-snap-align: start; }
  .team-select::-webkit-scrollbar { display: none; }
  .team-lobby { padding: 78px 9px 12px; }
  .team-lobby__shell { display: flex; flex-direction: column; gap: 9px; }
  .profile-stage { order: 1; min-height: clamp(520px,68svh,620px); border-radius: 9px; }
  .profile-stage__canvas { display: none; }
  .profile-stage__portrait img { width: min(78%,360px); filter: saturate(.94) contrast(1.01) brightness(.98); }
  .profile-stage__portrait::after { background: linear-gradient(90deg,rgba(7,10,8,.2),transparent 24%,transparent 76%,rgba(7,10,8,.2)),linear-gradient(0deg,rgba(7,10,8,.3),transparent 48%); }
  .profile-stage__frame { inset: 9px; }
  .profile-stage__topline { top: 20px; left: 20px; right: 20px; }
  .profile-stage__topline span:last-child { display: none; }
  .profile-stage__scan { width: 74vw; top: 16%; bottom: 19%; }
  .profile-stage__name { left: 12px; right: 12px; bottom: 12px; width: auto; min-height: 98px; padding: 8px; grid-template-columns: 56px minmax(0,1fr); gap: 10px; transform: none; }
  .profile-stage__name::after { left: 74px; }
  .profile-stage__headshot { width: 56px; height: 56px; border-radius: 6px; }
  .profile-stage__identity-copy h1 { font-size: clamp(25px,7.5vw,32px); line-height: .92; white-space: normal; }
  .profile-stage__tagline { display: none; }
  .profile-stage__identity-copy p { margin-top: 6px; font-size: 9px; line-height: 1.35; letter-spacing: .02em; overflow: visible; text-overflow: clip; white-space: normal; }
  .profile-stage__identity-copy p .profile-stage__role,
  .profile-stage__identity-copy p .profile-stage__specialty { display: block; }
  .profile-stage__identity-copy p .profile-stage__separator { display: none; }
  .team-lobby__side--left { order: 2; }
  .team-lobby__side--right { order: 3; }
  .hud-panel { border-radius: 8px; }
  .identity-card__name { font-size: 33px; }
  .profile-message input,
  .profile-message textarea { font-size: 16px; }
  .profile-section { padding: 56px 20px; }
  .profile-story__grid { margin-top: 30px; padding: 20px 16px; gap: 32px; }
  .profile-story__intro h2 { font-size: clamp(28px,10vw,50px); }
  .profile-story__copy>p:first-child { font-size: 21px; }
  .profile-facts div { grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
  .profile-bts__heading h2 { font-size: clamp(40px,11vw,48px); }
  .profile-media { min-height: clamp(320px,88vw,380px); }
  .profile-next__grid { grid-template-columns: 1fr; }
  .profile-next__grid > a { min-height: 118px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .profile-next__grid > a:last-child { border-bottom: 0; }
  .profile-next__close h2 { font-size: clamp(42px,11vw,50px); }
}

@media (hover: none),(pointer: coarse) {
  .team-lobby__side .hud-panel,
  .team-lobby__side--left .hud-panel,
  .team-lobby__side--right .hud-panel { transform: none; }
  .team-select a,
  .profile-message button,
  .profile-media__play,
  .profile-next a { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-stage__canvas { display: none !important; }
  .profile-stage.is-scene-ready .profile-stage__portrait { opacity: 1; filter: none; }
  .profile-stage__portrait,
  .hud-panel,
  .profile-media__play,
  .profile-next a { transition: none; transform: none !important; }
}


/* Reference-matched desktop composition - approved Team mockup fidelity pass. */
@media (min-width: 1021px) {
  .team-profile-page .site-header {
    position: absolute;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    height: 102px;
    padding-inline: clamp(30px,2.7vw,46px);
    pointer-events: none;
    border: 0;
    background: linear-gradient(180deg,rgba(5,7,6,.36),transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .team-profile-page .site-header .wordmark { gap: 14px; pointer-events: auto; font-size: 17px; }
  .team-profile-page .site-header .wordmark-icon { width: 34px; height: 42px; }
  .team-profile-page .main-nav,
  .team-profile-page .header-cta { display: none; }

  .team-lobby {
    height: 100svh;
    min-height: 760px;
    padding: 0;
    background: #090b09;
  }
  .team-lobby::before { opacity: .12; }
  .team-lobby::after { opacity: .035; }

  .team-select {
    position: absolute;
    z-index: 40;
    top: 80px;
    left: 52.8%;
    width: min(62.5vw,1045px);
    min-height: 59px;
    margin: 0;
    padding: 4px;
    grid-template-columns: repeat(5,minmax(0,1fr));
    border-color: rgba(255,255,255,.17);
    border-radius: 14px;
    background: linear-gradient(110deg,rgba(26,28,24,.82),rgba(8,10,8,.74));
    box-shadow: inset 0 1px rgba(255,255,255,.12),0 16px 44px rgba(0,0,0,.28);
    transform: translateX(-50%);
  }
  .team-select__label { display: none; }
  .team-select a {
    min-width: 0;
    padding: 7px clamp(12px,1.35vw,22px);
    display: grid;
    align-content: center;
    gap: 3px;
    color: rgba(255,255,255,.52);
    border: 1px solid transparent;
    border-radius: 10px;
    line-height: 1.15;
  }
  .team-select a + a::before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -1px;
    width: 1px;
    background: rgba(255,255,255,.07);
  }
  .team-select a span { display: block; color: rgba(255,255,255,.57); }
  .team-select a[aria-current=page] {
    color: #fff;
    border-color: var(--profile-accent);
    background: linear-gradient(120deg,rgba(18,21,17,.96),rgba(8,10,8,.91));
    box-shadow: inset 0 1px rgba(255,255,255,.08),0 0 25px rgba(var(--profile-accent-rgb),.11);
  }
  .team-select a[aria-current=page] span { color: rgba(255,255,255,.75); }

  .team-lobby__shell {
    width: 100%;
    max-width: none;
    height: 100svh;
    min-height: 760px;
    margin: 0;
  }
  .profile-stage {
    inset: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .profile-stage::before {
    z-index: 4;
    background:
      linear-gradient(90deg,rgba(4,6,5,.48),transparent 25%,transparent 75%,rgba(4,6,5,.48)),
      linear-gradient(0deg,rgba(4,6,5,.36),transparent 38%,rgba(4,6,5,.05));
  }
  .profile-stage::after { opacity: .025; }
  .profile-stage__environment {
    filter: saturate(.97) contrast(1.015) brightness(.98);
    transform: none;
  }
  .profile-stage__canvas { z-index: 3; }
  .profile-stage__frame { inset: 16px; opacity: .42; }
  .profile-stage__topline { display: none; }

  .profile-stage__scan {
    z-index: 2;
    top: auto;
    bottom: 13.7%;
    left: 50%;
    width: min(44vw,740px);
    height: min(15vw,142px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    background:
      radial-gradient(ellipse at 50% 31%,rgba(255,255,255,.1),transparent 44%),
      radial-gradient(ellipse at 50% 47%,rgba(var(--profile-accent-rgb),.08),rgba(20,22,18,.88) 58%,rgba(6,8,6,.96) 76%);
    box-shadow:
      inset 0 1px rgba(255,255,255,.16),
      inset 0 -10px 12px rgba(0,0,0,.7),
      0 18px 32px rgba(0,0,0,.5),
      0 0 52px rgba(var(--profile-accent-rgb),.055);
    transform: translateX(-50%);
  }
  .profile-stage__scan::before {
    inset: 7% 4% 19%;
    border-color: rgba(255,255,255,.065);
  }
  .profile-stage__scan::after {
    inset: auto 7% 9%;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,transparent,var(--profile-accent) 18% 82%,transparent);
    box-shadow: 0 0 15px rgba(var(--profile-accent-rgb),.58);
  }

  .profile-stage__name {
    z-index: 30;
    bottom: 4.8%;
    width: min(37vw,520px);
    min-height: 104px;
    padding: 11px 54px 11px 15px;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 16px;
    border-color: rgba(255,255,255,.22);
    border-radius: 14px;
    background: linear-gradient(110deg,rgba(29,31,27,.91),rgba(9,11,9,.84));
    box-shadow: inset 0 1px rgba(255,255,255,.13),0 20px 48px rgba(0,0,0,.38);
  }
  .profile-stage__name::before {
    content: '›';
    position: absolute;
    top: 50%;
    right: 18px;
    color: rgba(255,255,255,.78);
    font-size: 28px;
    font-weight: 200;
    transform: translateY(-52%);
  }
  .profile-stage__name::after { right: 52px; left: 107px; }
  .profile-stage__headshot {
    width: 76px;
    height: 76px;
    border-radius: 50%;
  }
  .profile-stage__tagline { display: none; }
  .profile-stage__identity-copy h1 {
    font-size: clamp(28px,2.3vw,38px);
    line-height: .94;
    text-wrap: balance;
    white-space: normal;
  }
  .profile-stage__identity-copy p {
    margin-top: 7px;
    overflow: visible;
    color: var(--profile-accent);
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: .045em;
    text-overflow: clip;
    white-space: normal;
  }

  .team-lobby__side {
    top: clamp(158px,19svh,208px);
    bottom: clamp(44px,6svh,72px);
    width: clamp(230px,18vw,292px);
    display: grid;
    grid-template-rows: repeat(3,max-content);
    align-content: start;
    gap: clamp(8px,1svh,12px);
    min-height: 0;
    overflow-y: auto;
  }
  .team-lobby__side--left { left: clamp(28px,8vw,134px); }
  .team-lobby__side--right { right: clamp(28px,8vw,134px); }
  .team-lobby__side .hud-panel,
  .team-lobby__side--left .hud-panel,
  .team-lobby__side--right .hud-panel {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none;
  }
  .team-lobby__side--left .hud-panel:hover,
  .team-lobby__side--left .hud-panel:focus-within,
  .team-lobby__side--right .hud-panel:hover,
  .team-lobby__side--right .hud-panel:focus-within {
    transform: translateY(-2px);
  }
  .hud-panel {
    border-color: rgba(255,255,255,.21);
    border-radius: 14px;
    background: linear-gradient(135deg,rgba(26,28,24,.88),rgba(8,10,8,.81));
    box-shadow: inset 0 1px rgba(255,255,255,.12),0 22px 50px rgba(0,0,0,.32);
    -webkit-backdrop-filter: blur(22px) saturate(104%);
    backdrop-filter: blur(22px) saturate(104%);
  }
  .hud-panel::before { opacity: .24; }
  .hud-panel__head { min-height: 36px; padding-inline: 15px; }
  .hud-panel__body { padding: 12px 14px 14px; }
  .identity-card__name { font-size: 24px; line-height: .94; }
  .identity-card__name span { margin-top: 6px; font-size: 10px; line-height: 1.3; }
  .identity-card__status { margin-top: 8px; padding-top: 8px; }
  .trait-list { flex-wrap: wrap; gap: 4px; }
  .trait-list span { padding: 6px 7px; font-size: 9px; letter-spacing: .05em; }
  .skill-list { gap: 7px; }
  .skill-row { gap-block: 3px; font-size: 10px; }
  .profile-brief p { font-size: 13px; line-height: 1.48; }
  .profile-brief__quote { margin-top: 8px; padding-top: 8px; font-size: 12px; line-height: 1.4; }
  .social-stack { gap: 4px; }
  .social-stack a { min-height: 32px; padding-inline: 8px; font-size: 9px; }
  .message-panel { margin-top: 0; }
}


/* Narrow desktop dock protection. */
@media (min-width: 1021px) and (max-width: 1180px) {
  .team-lobby__side { width: 220px; }
  .team-lobby__side--left { left: 32px; }
  .team-lobby__side--right { right: 32px; }
  .profile-stage__name {
    width: 420px;
    min-height: 96px;
    padding: 10px 44px 10px 12px;
    grid-template-columns: 68px minmax(0,1fr);
    gap: 12px;
  }
  .profile-stage__name::after { right: 44px; left: 92px; }
  .profile-stage__headshot { width: 68px; height: 68px; }
  .profile-stage__identity-copy h1 { font-size: 26px; }
}


/* Unified responsive composition and ground-anchor system. */
.team-profile-page {
  --scene-ground-position: 79.4%;
  --scene-character-foot-offset: -93.06%;
  --scene-character-height: 66.2%;
  --dashboard-roster-width: clamp(640px,62.5vw,1200px);
  --dashboard-side-width: clamp(220px,17.5vw,336px);
  --dashboard-side-gutter: clamp(28px,8vw,154px);
  --dashboard-content-top: clamp(158px,19svh,208px);
  --dashboard-stack-gap: clamp(8px,1svh,12px);
  --dashboard-dock-width: clamp(360px,30vw,520px);
  --dashboard-dock-height: clamp(114px,11svh,124px);
  --dashboard-dock-bottom: clamp(34px,4.8svh,52px);
}
.team-profile-page--patrick {
  --scene-ground-position: 74.4%;
  --scene-character-height: 62.4%;
}
.team-profile-page--charlie { --scene-ground-position: 78.5%; }
.team-profile-page--daniel { --scene-ground-position: 79%; }
.team-profile-page--robert { --scene-ground-position: 78%; }
.team-profile-page--joseph { --scene-ground-position: 79%; }

.profile-stage { width: 100%; }
.profile-stage__environment { object-position: center var(--scene-ground-position); }
.profile-stage__scan { display: none !important; }
.profile-stage__portrait {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: none;
}
.profile-stage__portrait::after { display: none; }
.profile-stage__portrait img {
  position: absolute;
  top: var(--scene-ground-position);
  left: 50%;
  width: auto;
  max-width: none;
  height: var(--scene-character-height);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.24));
  -webkit-mask-image: none;
  mask-image: none;
  transform: translate(-50%,var(--scene-character-foot-offset));
}

.profile-message input:focus-visible,
.profile-message textarea:focus-visible,
.team-select a:focus-visible,
.social-stack a:focus-visible,
.profile-contact__summary:focus-visible,
.profile-message button:focus-visible,
.profile-next a:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

@media (min-width: 1021px) {
  .team-profile-page {
    --dashboard-side-gutter: clamp(28px,calc(14vw - 115.36px),154px);
  }
  .team-lobby { height: 100svh; min-height: 760px; overflow: hidden; }
  .team-lobby__shell { height: 100svh; min-height: 760px; }
  .team-select { width: var(--dashboard-roster-width); }

  .profile-stage__name {
    top: var(--dashboard-content-top);
    right: auto;
    bottom: auto;
    left: var(--dashboard-side-gutter);
    width: var(--dashboard-dock-width);
    min-height: var(--dashboard-dock-height);
    padding: clamp(10px,1.05svh,13px) clamp(48px,3.2vw,62px) clamp(10px,1.05svh,13px) clamp(12px,1vw,18px);
    grid-template-columns: clamp(68px,4.6vw,88px) minmax(0,1fr);
    gap: clamp(12px,1vw,18px);
    transform: none;
  }
  .profile-stage__headshot {
    width: clamp(68px,4.6vw,88px);
    height: clamp(68px,4.6vw,88px);
  }
  .profile-stage__identity-copy h1 {
    font-size: clamp(24px,1.95vw,36px);
    text-wrap: nowrap;
    white-space: nowrap;
  }
  .profile-stage__identity-copy p { font-size: clamp(10px,.62vw,12px); line-height: 1.3; }

  .team-lobby__side {
    top: var(--dashboard-content-top);
    bottom: clamp(44px,6svh,72px);
    width: var(--dashboard-side-width);
    display: grid;
    grid-template-rows: repeat(3,max-content);
    align-content: start;
    gap: var(--dashboard-stack-gap);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .team-lobby__side::-webkit-scrollbar { display: none; }
  .team-lobby__side--left {
    left: var(--dashboard-side-gutter);
    top: calc(var(--dashboard-content-top) + var(--dashboard-dock-height) + var(--dashboard-stack-gap));
  }
  .team-lobby__side--right {
    right: var(--dashboard-side-gutter);
  }
  .team-lobby__side .hud-panel,
  .team-lobby__side--left .hud-panel,
  .team-lobby__side--right .hud-panel {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none;
  }
  .team-lobby__side--left .hud-panel:hover,
  .team-lobby__side--left .hud-panel:focus-within,
  .team-lobby__side--right .hud-panel:hover,
  .team-lobby__side--right .hud-panel:focus-within { transform: translateY(-2px); }
  .trait-list { flex-wrap: wrap; gap: 5px; }
  .trait-list span { padding: 6px 7px; font-size: 10px; }
  .social-stack a { min-height: 36px; font-size: 10px; }
  .hud-panel__head,
  .hud-panel__head strong,
  .identity-card__name span,
  .identity-card__status,
  .skill-row,
  .skill-row strong { font-size: max(10px,.58vw); }
}

@media (max-width: 1020px) {
  .team-lobby { min-height: 100svh; overflow: visible; }
  .team-lobby__shell {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-items: start;
    gap: 10px;
  }
  .profile-stage {
    grid-row: 1;
    grid-column: 1/-1;
    min-height: clamp(560px,66svh,660px);
  }
  .team-lobby__side {
    position: static;
    width: auto;
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 10px;
  }
  .team-lobby__side--left { grid-row: 2; grid-column: 1; }
  .team-lobby__side--right { grid-row: 2; grid-column: 2; }
  .team-lobby__side .hud-panel,
  .team-lobby__side--left .hud-panel,
  .team-lobby__side--right .hud-panel {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none;
  }
  .profile-stage__canvas { display: none !important; }
  .profile-stage.is-scene-ready .profile-stage__portrait { opacity: 1; filter: none; }
  .profile-stage__name { bottom: 18px; }
  .profile-contact[open] > .hud-panel__body { position: static; width: auto; max-height: none; margin-top: 8px; }
}

@media (max-width: 700px) {
  .team-lobby__shell { display: flex; align-items: stretch; }
  .profile-stage { order: 1; min-height: clamp(520px,68svh,620px); }
  .team-lobby__side--left { order: 2; }
  .team-lobby__side--right { order: 3; }
  .profile-stage__name { bottom: 12px; }
  .profile-media-grid--candids {
    width: calc(100% + 20px);
    margin-right: -20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .profile-media-grid--candids::-webkit-scrollbar { display: none; }
  .profile-media--candid,
  .profile-media--candid-primary {
    min-width: min(82vw,390px);
    min-height: min(102.5vw,488px);
    flex: 0 0 min(82vw,390px);
    scroll-snap-align: start;
  }
}

@media (pointer: coarse) {
  .social-stack a,
  .profile-contact__summary,
  .profile-message button { min-height: 44px; }
  .profile-message input,
  .profile-message textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-stage__portrait img { transition: none; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .team-profile-page .site-header,
  .team-select,
  .hud-panel,
  .profile-stage__name,
  .profile-contact[open] > .hud-panel__body,
  .profile-story__grid {
    background: #101511 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .team-profile-page .site-header,
  .team-select,
  .hud-panel,
  .profile-stage__name,
  .profile-contact[open] > .hud-panel__body,
  .profile-story__grid {
    background: #101511 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .team-select,
  .hud-panel,
  .profile-stage__name,
  .profile-contact[open] > .hud-panel__body { border: 1px solid CanvasText; }
  .profile-message input:focus-visible,
  .profile-message textarea:focus-visible,
  .team-select a:focus-visible,
  .social-stack a:focus-visible,
  .profile-contact__summary:focus-visible,
  .profile-message button:focus-visible,
  .profile-next a:focus-visible { outline: 2px solid Highlight; }
}
