:root {
  color-scheme: light;
  --ink: #071422;
  --muted: #61717b;
  --paper: #f4f7f8;
  --line: #cfdbdf;
  --white: #ffffff;
  --cyan: #00b9cf;
  --coral: #ff6648;
  --yellow: #f5bd2e;
  --blue: #3478f6;
  --green: #55a85a;
  --magenta: #d3448e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 20, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 20, 34, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

.intro {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 24px auto 14px;
  text-align: center;
}

.language-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, 46px);
  height: 30px;
  padding: 2px;
  border: 1px solid rgba(7, 20, 34, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.language-option {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.language-option.is-active {
  background: var(--ink);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 5px;
  color: #087c8b;
  font-size: 10px;
  font-weight: 900;
}

.intro h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.16;
}

.intro > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stage-shell {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-top: 1px solid rgba(7, 20, 34, 0.1);
  border-bottom: 1px solid rgba(7, 20, 34, 0.1);
  background: #e9eff1;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.team-stage {
  position: relative;
  display: grid;
  grid-template-columns: 190px 212px 212px 190px 190px 212px;
  align-items: end;
  gap: 5px;
  width: max-content;
  min-width: 1280px;
  min-height: 506px;
  margin: 0 auto;
  padding: 40px 10px 60px;
  background-color: #eef3f4;
  background-image:
    linear-gradient(
      to bottom,
      rgba(244, 247, 248, 0.18) 0%,
      rgba(244, 247, 248, 0.04) 40%,
      rgba(244, 247, 248, 0.62) 78%,
      rgba(244, 247, 248, 0.94) 100%
    ),
    url("./assets/generated/ai-global-studio-stage.webp");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.stage-brand {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: -1;
  width: 320px;
  max-height: 96px;
  opacity: 0.42;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translateX(-50%);
  filter: saturate(0.88) contrast(1.06);
}

.team-stage::before {
  position: absolute;
  right: 0;
  bottom: 54px;
  left: 0;
  z-index: -2;
  height: 118px;
  border-top: 1px solid rgba(7, 20, 34, 0.2);
  border-bottom: 7px solid var(--ink);
  background: rgba(255, 255, 255, 0.66);
  content: "";
  transform: perspective(440px) rotateX(17deg);
  transform-origin: bottom;
}

.stage-lines {
  position: absolute;
  right: 22px;
  bottom: 71px;
  left: 22px;
  z-index: -1;
  height: 54px;
  opacity: 0.45;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 78px,
    rgba(7, 20, 34, 0.25) 79px,
    rgba(7, 20, 34, 0.25) 80px
  );
}

.team-group {
  --team: var(--cyan);
  position: relative;
  min-width: 0;
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.team-group[data-team="operations"] {
  --team: var(--coral);
}

.team-group[data-team="technology"] {
  --team: var(--cyan);
}

.team-group[data-team="founders"] {
  --team: var(--yellow);
}

.team-group[data-team="product"] {
  --team: var(--blue);
}

.team-group[data-team="admin"] {
  --team: var(--green);
}

.team-group[data-team="global"] {
  --team: var(--magenta);
}

.roster {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-auto-rows: 172px;
  justify-content: center;
  align-content: end;
  align-items: end;
  min-height: 344px;
}

.team-group[data-team="technology"] .roster {
  grid-template-columns: repeat(3, 70px);
}

.team-group[data-team="founders"] .roster,
.team-group[data-team="global"] .roster {
  grid-template-columns: repeat(3, 70px);
}

.member {
  --idle-turn: -0.7deg;
  --idle-delay: -0.4s;
  --action-duration: 1.85s;
  --action-x: 0px;
  --action-y: -2px;
  --action-rotate: 0deg;
  --action-scale: 1.01;
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-self: end;
  width: 64px;
  min-height: 172px;
  margin: 0;
  padding: 0 2px 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 180ms ease, filter 180ms ease;
}

.member:nth-child(even) {
  --idle-turn: 0.7deg;
  --idle-delay: -1.8s;
}

.member:nth-child(3n) {
  --idle-delay: -2.7s;
}

.action-swing {
  --action-duration: 1.45s;
  --action-x: 3px;
  --action-y: -5px;
  --action-rotate: -3deg;
  --action-scale: 1.04;
}

.action-check,
.action-progress,
.action-read,
.action-sip {
  --action-duration: 2.2s;
}

.action-concert,
.action-celebrate {
  --action-duration: 1.6s;
  --action-y: -7px;
  --action-scale: 1.04;
}

.action-tokens {
  --action-duration: 1.8s;
  --action-rotate: -2deg;
  --action-scale: 1.03;
}

.action-coins,
.action-connect,
.action-nodes,
.action-reveal {
  --action-duration: 1.65s;
  --action-y: -7px;
  --action-scale: 1.04;
}

.action-call,
.action-solve,
.action-global-handshake {
  --action-y: -4px;
  --action-scale: 1.03;
}

.action-handshake,
.action-offer,
.action-present {
  --action-y: -4px;
  --action-scale: 1.03;
}

.team-group[data-team="technology"] .member,
.team-group[data-team="founders"] .member,
.team-group[data-team="global"] .member {
  width: 70px;
}

.team-group[data-team="founders"] .member {
  transform: translateY(-8px) scale(1.03);
}

.team-group[data-team="founders"] .member:nth-child(2) {
  z-index: 2;
  transform: translateY(-24px) scale(1.1);
}

.avatar {
  position: relative;
  display: block;
  width: 76px;
  height: 142px;
  filter: drop-shadow(0 10px 7px rgba(7, 20, 34, 0.2));
  transform-origin: 50% 90%;
  transition: transform 260ms cubic-bezier(0.2, 0.85, 0.25, 1.25), filter 220ms ease;
}

.avatar::after {
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  z-index: -1;
  height: 8px;
  border-radius: 50%;
  background: rgba(7, 20, 34, 0.24);
  content: "";
  filter: blur(3px);
  transform-origin: center;
  transition: opacity 220ms ease, transform 280ms ease;
}

.character-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.03) contrast(1.02);
  opacity: 1;
  transform-origin: 50% 90%;
  transition:
    opacity 180ms ease,
    filter 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.85, 0.25, 1.18);
}

.character-base {
  animation: character-idle 3.8s ease-in-out infinite;
  animation-delay: var(--idle-delay);
}

.character-action {
  z-index: 1;
  opacity: 0;
  transform: translateY(3px) scale(0.985);
}

.member-name {
  position: relative;
  z-index: 6;
  display: block;
  max-width: 72px;
  min-height: 23px;
  margin-top: -4px;
  padding: 4px 7px 3px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--team);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.member:hover,
.member:focus-visible,
.member.is-active {
  z-index: 20;
}

.member:is(:hover, :focus-visible, .is-active) .avatar {
  filter: drop-shadow(0 24px 14px rgba(7, 20, 34, 0.3));
  transform: translateY(-13px) scale(1.13);
}

.member:is(:hover, :focus-visible, .is-active) .character-image {
  filter: brightness(1.06) saturate(1.1) contrast(1.03);
}

.member.action-hold:is(:hover, :focus-visible, .is-active) .character-base {
  animation: none;
  opacity: 0;
  transform: translateY(2px) scale(0.99);
}

.member.action-hold:is(:hover, :focus-visible, .is-active) .character-action {
  opacity: 1;
  transform:
    translate(var(--action-x), var(--action-y))
    rotate(var(--action-rotate))
    scale(var(--action-scale));
}

.member.action-once:is(:hover, :focus-visible, .is-active) .character-base {
  animation: character-base-once var(--action-duration) ease both;
}

.member.action-once:is(:hover, :focus-visible, .is-active) .character-action {
  animation: character-action-once var(--action-duration) cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.member:is(:hover, :focus-visible, .is-active) .avatar::after {
  opacity: 0.68;
  transform: translateY(4px) scaleX(0.72);
}

.member:is(:hover, :focus-visible, .is-active) .member-name {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-7px) scale(1.05);
}

.team-stage.has-profile .member:not(.is-active) {
  opacity: 0.7;
  filter: grayscale(0.22) saturate(0.86);
}

.team-stage.has-profile .member.is-active {
  z-index: 30;
}

.team-label {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-top: 9px;
  padding: 8px 10px;
  border-top: 4px solid var(--team);
  background: rgba(255, 255, 255, 0.84);
}

.team-label strong {
  display: block;
  font-size: 12px;
}

.team-label small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.team-count {
  color: var(--team);
  font-size: 23px;
  font-weight: 950;
}

.profile-popover {
  --popover-team: var(--cyan);
  position: fixed;
  top: 112px;
  right: clamp(18px, 3vw, 48px);
  z-index: 100;
  width: min(370px, calc(100vw - 36px));
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 8px solid var(--popover-team);
  border-radius: 7px;
  background: rgba(7, 20, 34, 0.97);
  color: var(--white);
  box-shadow:
    0 24px 60px rgba(7, 20, 34, 0.3),
    8px 8px 0 color-mix(in srgb, var(--popover-team) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px) scale(0.96);
  transform-origin: right top;
  transition: opacity 150ms ease, transform 220ms cubic-bezier(0.2, 0.85, 0.25, 1.1);
}

.profile-popover.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.profile-popover.is-left {
  right: auto;
  left: clamp(18px, 3vw, 48px);
  transform: translateX(-24px) scale(0.96);
  transform-origin: left top;
}

.profile-popover.is-left.is-visible {
  transform: translateX(0) scale(1);
}

.popover-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #aebdc5;
  font-size: 9px;
  font-weight: 900;
}

.popover-team {
  color: var(--popover-team);
}

.popover-name {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}

.popover-role {
  margin: 4px 0 13px;
  color: #c9d5da;
  font-size: 13px;
  font-weight: 800;
}

.popover-quote {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 clamp(18px, 3vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.footer-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

@keyframes character-idle {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-3px) rotate(var(--idle-turn));
  }
}

@keyframes character-base-once {
  0%,
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  18%,
  68% {
    opacity: 0;
    transform: translateY(2px) scale(0.99);
  }

  82%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes character-action-once {
  0%,
  6% {
    opacity: 0;
    transform: translateY(4px) rotate(1deg) scale(0.97);
  }

  20% {
    opacity: 1;
    transform:
      translate(var(--action-x), var(--action-y))
      rotate(var(--action-rotate))
      scale(var(--action-scale));
  }

  58% {
    opacity: 1;
    transform:
      translate(var(--action-x), calc(var(--action-y) - 2px))
      rotate(-1deg)
      scale(var(--action-scale));
  }

  80%,
  100% {
    opacity: 0;
    transform: translateY(1px) rotate(0) scale(1);
  }
}

@media (hover: hover) and (min-width: 721px) {
  .member {
    --focus-shift-x: 0px;
    --focus-shift-y: -34px;
    --focus-name-y: -9px;
  }

  .team-group[data-team="technology"] .member:nth-child(-n + 3) {
    --focus-shift-y: 140px;
    --focus-name-y: 151px;
  }

  .team-group[data-team="global"] .member:nth-child(-n + 3) {
    --focus-shift-y: 140px;
    --focus-name-y: 151px;
  }

  .team-group[data-team="operations"] .member:nth-child(1) {
    --focus-shift-x: 48px;
  }

  .team-group[data-team="operations"] .member:nth-child(2) {
    --focus-shift-x: 24px;
  }

  .team-group[data-team="global"] .member:nth-child(2),
  .team-group[data-team="global"] .member:nth-child(5) {
    --focus-shift-x: -24px;
  }

  .team-group[data-team="global"] .member:nth-child(3) {
    --focus-shift-x: -48px;
  }

  .member .avatar {
    transition:
      transform 430ms cubic-bezier(0.16, 1, 0.3, 1),
      filter 300ms ease;
  }

  .member:is(:hover, :focus-visible, .is-active) .avatar {
    filter: drop-shadow(0 32px 24px rgba(7, 20, 34, 0.38));
    transform: translate(var(--focus-shift-x), var(--focus-shift-y)) scale(2.45);
  }

  .member:is(:hover, :focus-visible, .is-active) .member-name {
    transform: translateY(var(--focus-name-y)) scale(1.12);
  }

  .team-stage.has-profile .team-group:has(.member.is-active) {
    z-index: 40;
  }

  .team-stage.has-profile .member:not(.is-active) {
    opacity: 0.34;
    filter: grayscale(0.42) saturate(0.7);
  }
}

@media (max-width: 720px) {
  .intro {
    width: calc(100% - 28px);
    margin-top: 16px;
    padding-top: 38px;
  }

  .language-switch {
    top: 0;
    right: 0;
  }

  .intro h1 {
    font-size: 26px;
  }

  .intro > p:last-child {
    font-size: 12px;
  }

  .team-stage {
    margin-inline: 0;
    padding-inline: 16px;
  }

  .stage-brand {
    left: 640px;
  }

  .stage-shell {
    scroll-snap-type: x proximity;
  }

  .team-group {
    scroll-snap-align: center;
  }

  .profile-popover {
    position: fixed;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: auto;
    max-height: 42vh;
    overflow-y: auto;
    transform: translateY(24px);
    transform-origin: center bottom;
  }

  .profile-popover.is-visible {
    transform: translateY(0);
  }

  .site-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
