:root {
  color-scheme: dark;
  --ink: #f1eadb;
  --muted: #b9ae9e;
  --paper: rgba(12, 10, 9, 0.82);
  --line: rgba(241, 234, 219, 0.18);
  --accent: #d9b56f;
  --danger: #b5574f;
  --shadow: rgba(0, 0, 0, 0.58);
}

@font-face {
  font-family: "Ark Pixel";
  src: url("../assets/fonts/0066 方舟像素字体｜Ark Pixel/版本 V2025.08.24/（OTF）12px-proportional-V2025.08.24/ark-pixel-12px-proportional-zh_cn.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #070706;
  color: var(--ink);
  font-family: "Ark Pixel", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

button {
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 320px;
  background:
    radial-gradient(circle at 46% 28%, rgba(150, 139, 116, 0.12), transparent 32%),
    linear-gradient(180deg, #11100e 0%, #060606 100%);
}

.cover,
.intertitle,
.cinematic,
.exploration {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.cover.is-active,
.intertitle.is-active,
.cinematic.is-active,
.exploration.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cinematic.is-hidden,
.cover.is-hidden {
  display: none;
}

.cover {
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(150, 139, 116, 0.16), transparent 42%),
    linear-gradient(180deg, #141210 0%, #070605 100%);
}

.cover-vhs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  mix-blend-mode: overlay;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.cover-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cover-content h1 {
  margin: 0;
  font-size: clamp(64px, 14vw, 160px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: #f1eadb;
  text-shadow:
    0 0 42px rgba(217, 181, 111, 0.28),
    0 6px 24px #000;
}

.cover-content .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
}

.intertitle {
  z-index: 20;
  display: grid;
  place-items: center;
  background: #000;
}

.intertitle p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4.4vw, 46px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

#skip-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  opacity: 0.85;
}

.cinematic {
  z-index: 10;
  display: grid;
  place-items: center;
  background: #030303;
}

.opening-video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.06) saturate(0.76) brightness(0.82);
}

.cinematic-vhs,
.stage-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  mix-blend-mode: overlay;
  opacity: 0.55;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.cinematic-caption {
  position: absolute;
  left: clamp(20px, 7vw, 92px);
  bottom: clamp(22px, 8vh, 88px);
  display: grid;
  gap: 12px;
  width: min(480px, calc(100vw - 40px));
  text-shadow: 0 3px 18px #000;
}

.timecode,
.chapter,
.objective,
.speaker {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
}

.cinematic-caption h1 {
  margin: 0 0 8px;
  font-size: clamp(42px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.primary-action,
.ghost-action,
.close-action,
.secondary-action,
.back-home {
  width: fit-content;
  min-height: 44px;
  padding: 10px 18px;
  border-image: url("../assets/ui/ui/popup.png") 14 fill / 10px / 0 stretch;
  background:
    linear-gradient(rgba(14, 11, 9, 0.88), rgba(14, 11, 9, 0.88)),
    url("../assets/ui/ui/popup.png") center / 100% 100%;
  box-shadow: 0 12px 30px var(--shadow);
  text-shadow: 0 2px 0 #000;
}

.primary-action:hover,
.ghost-action:hover,
.close-action:hover,
.secondary-action:hover,
.back-home:hover {
  border-color: rgba(217, 181, 111, 0.75);
  background: rgba(50, 38, 26, 0.86);
}

.secondary-action,
.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}

.ghost-action {
  color: var(--muted);
}

.exploration {
  z-index: 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: clamp(12px, 2.4vw, 24px);
  background: #090807;
}

.exploration.is-hidden {
  display: none;
}

.hud {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-image: url("../assets/ui/ui/genericpopup.png") 32 fill / 16px / 0 stretch;
  color: #2d221b;
  text-shadow: 0 1px 0 rgba(255, 246, 221, 0.5);
}

.hud h2 {
  margin: 3px 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0;
}

.objective {
  max-width: 40ch;
  color: #2d221b;
  text-align: right;
}

.stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.14);
  background: #0f0d0b;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.75);
}

#scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  image-rendering: pixelated;
}

.transition-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(238, 228, 196, 0.72), transparent);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.transition-flash.is-running {
  animation: mirrorSweep 760ms ease both;
}

.interaction-panel {
  z-index: 4;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-image: url("../assets/ui/ui/buttonpromptwidget.png") 32 fill / 18px / 0 stretch;
  background:
    linear-gradient(rgba(6, 5, 4, 0.76), rgba(6, 5, 4, 0.76)),
    url("../assets/ui/ui/popup.png") center / 100% 100%;
  box-shadow: 0 16px 38px var(--shadow);
  color: #2d221b;
  text-shadow: 0 1px 0 rgba(255, 246, 221, 0.45);
}

.interaction-panel.is-ready {
  border-color: rgba(217, 181, 111, 0.62);
}

.interaction-panel p {
  margin: 0;
}

#interaction-title {
  color: #6c2f22;
  font-weight: 700;
}

#interaction-text {
  margin-top: 5px;
  color: #2d221b;
  font-size: 14px;
}

.dialogue-box {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 24px;
  z-index: 10;
  display: none;
  min-height: 132px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 181, 111, 0.4);
  border-image: url("../assets/ui/ui/prompt_yesno.png") 42 fill / 22px / 0 stretch;
  background:
    linear-gradient(rgba(7, 6, 5, 0.82), rgba(7, 6, 5, 0.82)),
    url("../assets/ui/ui/genericpopup.png") center / 100% 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.dialogue-box.is-active {
  display: block;
}

#dialogue-text {
  min-height: 46px;
  margin: 8px 0 14px;
  color: #261c16;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.dialogue-box .speaker {
  color: #7d3225;
}

.choice-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 3, 0.74);
  backdrop-filter: blur(2px);
}

.choice-overlay.is-active {
  display: flex;
}

.choice-inner {
  display: grid;
  gap: 22px;
  width: min(620px, 86vw);
  text-align: center;
}

.choice-title {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  font-size: 14px;
}

.choice-buttons {
  display: grid;
  gap: 14px;
}

.choice-action {
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid rgba(217, 181, 111, 0.5);
  background: rgba(14, 11, 9, 0.92);
  color: var(--ink);
  font-size: clamp(18px, 2.4vw, 24px);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.choice-action:hover {
  border-color: rgba(217, 181, 111, 0.9);
  background: rgba(50, 38, 26, 0.9);
}

.galgame {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  background: #0b0a09;
}

.galgame.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.galgame.is-black {
  background: #000;
}

.galgame.is-black .galgame-bg,
.galgame.is-black .galgame-bg-img,
.galgame.is-black .galgame-vhs,
.galgame.is-black .galgame-cg,
.galgame.is-black .galgame-portrait,
.galgame.is-black .galgame-stage {
  display: none;
}

.galgame-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 38%, rgba(120, 110, 96, 0.18), transparent 60%),
    linear-gradient(180deg, #151210 0%, #080706 100%);
}

.galgame-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galgame.has-bg .galgame-bg-img {
  display: block;
}

.galgame-stage {
  position: absolute;
  inset: 0 0 172px 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galgame-cg {
  display: none;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  image-rendering: pixelated;
  filter: contrast(1.05) saturate(0.9) brightness(0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.galgame.has-cg .galgame-cg {
  display: block;
}

.galgame-portrait {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: none;
  max-width: 46%;
  max-height: 62vh;
  object-fit: contain;
  image-rendering: pixelated;
  filter: contrast(1.04) saturate(0.94) brightness(0.96);
}

.galgame.has-portrait .galgame-portrait {
  display: block;
}

.galgame-vhs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  mix-blend-mode: overlay;
  opacity: 0.5;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.galgame-dialogue {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 24px;
  min-height: 132px;
  padding: 16px 18px;
  z-index: 4;
  border: 1px solid rgba(217, 181, 111, 0.4);
  border-radius: 6px;
  background: linear-gradient(rgba(9, 8, 7, 0.86), rgba(9, 8, 7, 0.86));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.galgame-speaker {
  margin: 0;
  color: #d9b56f;
  font-weight: 700;
  font-size: 15px;
}

.galgame-text {
  min-height: 46px;
  margin: 10px 0 14px;
  color: #efe6d3;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.6;
}

.galgame-text.is-narration {
  color: #b9ae9e;
  font-style: italic;
}

.galgame-dialogue .close-action {
  margin-top: 4px;
}

/* ===== 变量变化提示（右上角短暂显示后消失）===== */
.var-toast {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 40;
  padding: 10px 16px;
  border: 1px solid rgba(217, 181, 111, 0.5);
  border-radius: 6px;
  background: rgba(8, 7, 6, 0.88);
  color: #ffe9a0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px #000;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.var-toast.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== P3-01 全屏 VHS 录像播放 ===== */
.vhs {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  background: #000;
}

.vhs.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.p3-video {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  filter: contrast(1.08) saturate(0.82) brightness(0.88);
}

.vhs-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  mix-blend-mode: overlay;
  opacity: 0.6;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.vhs-rect {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #ff5a52;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 8px rgba(255, 90, 82, 0.6);
  font-family: "Ark Pixel", monospace;
}

.vhs-rect::before {
  content: "● ";
  animation: blink 1s steps(2, end) infinite;
}

.vhs-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(241, 234, 219, 0.8);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes tapeJitter {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1px, -1px, 0); }
  100% { transform: translate3d(-1px, 1px, 0); }
}

@keyframes mirrorSweep {
  0% { opacity: 0; transform: translateX(-120%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@media (max-width: 760px) {
  .exploration {
    gap: 8px;
    padding: 8px;
  }

  .hud {
    align-items: start;
    flex-direction: column;
  }

  .objective {
    text-align: left;
  }

  .dialogue-box {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ===== 制作小组介绍页 ===== */
.group-root {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.group-root .group-page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.team-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(14px, 3vw, 30px) clamp(14px, 3vw, 30px) clamp(84px, 10vh, 132px);
  overflow: visible;
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 181, 111, 0.11), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(123, 58, 49, 0.18), transparent 30%),
    linear-gradient(180deg, #151210 0%, #070606 72%, #030303 100%);
}

.team-shell::before {
  position: absolute;
  inset: clamp(18px, 3vw, 34px);
  content: "";
  border: 1px solid rgba(241, 234, 219, 0.12);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.team-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  mix-blend-mode: overlay;
  opacity: 0.58;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.team-topbar,
.team-intro,
.team-video-section,
.member-section {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.team-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(24px, 5vw, 58px);
}

.team-label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  min-height: 42vh;
  padding-bottom: clamp(34px, 7vw, 78px);
}

.team-intro-simple {
  grid-template-columns: 1fr;
}

.team-copy h1 {
  margin: 10px 0 20px;
  color: #f1eadb;
  font-size: clamp(54px, 11vw, 124px);
  line-height: 0.98;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-shadow: 0 6px 28px #000, 0 0 34px rgba(217, 181, 111, 0.2);
}

.team-copy p:last-child {
  max-width: 68ch;
  margin: 0;
  color: #d8cebd;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
  text-shadow: 0 2px 12px #000;
}

.team-note {
  padding: 18px 18px 20px;
  border: 1px solid rgba(217, 181, 111, 0.36);
  border-image: url("../assets/ui/ui/genericpopup.png") 32 fill / 16px / 0 stretch;
  background:
    linear-gradient(rgba(8, 7, 6, 0.7), rgba(8, 7, 6, 0.7)),
    url("../assets/ui/ui/genericpopup.png") center / 100% 100%;
  color: #2d221b;
  text-shadow: 0 1px 0 rgba(255, 246, 221, 0.45);
}

.team-note p,
.team-note span {
  display: block;
  margin: 0;
  color: #6c2f22;
  font-size: 13px;
}

.team-note strong {
  display: block;
  margin: 8px 0 12px;
  color: #2d221b;
  font-size: 18px;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: #f1eadb;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
  text-shadow: 0 4px 18px #000;
}

.team-video-section {
  padding-bottom: clamp(34px, 6vw, 68px);
}

.team-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 6px;
  background: #030303;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.58);
}

.team-video-frame::before {
  position: absolute;
  inset: 10px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(241, 234, 219, 0.12);
  pointer-events: none;
}

.team-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 66vh;
  background: #000;
  object-fit: contain;
}

.team-video-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  mix-blend-mode: overlay;
  opacity: 0.45;
  animation: tapeJitter 180ms steps(2, end) infinite;
}

.team-video-caption {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  background: rgba(3, 3, 3, 0.68);
  color: rgba(241, 234, 219, 0.86);
  font-size: 13px;
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: clamp(28px, 5vw, 58px);
}

.member-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 282px;
  align-content: start;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(21, 18, 15, 0.92), rgba(8, 7, 6, 0.96)),
    url("../assets/ui/ui/popup.png") center / 100% 100%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.member-card::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  content: "OPEN";
  color: rgba(217, 181, 111, 0.34);
  font-size: 12px;
}

.member-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(241, 234, 219, 0.16);
  border-radius: 4px;
  background: #070606;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter: saturate(0.82) contrast(1.08) brightness(0.86);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.member-card:hover,
.member-card:focus-visible {
  border-color: rgba(217, 181, 111, 0.82);
  background: rgba(38, 29, 22, 0.94);
  transform: translateY(-3px);
  outline: none;
}

.member-index {
  color: var(--accent);
  font-size: 14px;
}

.member-info {
  display: grid;
  gap: 8px;
  padding-right: 28px;
}

.member-card strong {
  color: #f1eadb;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0;
}

.member-card small {
  color: #b9ae9e;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .team-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-video {
    max-height: 54vh;
  }
}

@media (max-width: 560px) {
  .team-topbar,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .team-copy h1 {
    font-size: clamp(42px, 17vw, 72px);
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .team-video-frame::before {
    inset: 6px;
  }

  .team-video-caption {
    left: 10px;
    right: 10px;
    top: 10px;
    font-size: 12px;
  }

  .member-card {
    grid-template-columns: 84px min-content 1fr;
    grid-template-rows: auto auto;
    min-height: 124px;
    align-items: center;
  }

  .member-photo {
    grid-row: 1 / 3;
  }

  .member-info {
    padding-right: 20px;
  }
}

/* Homepage-aligned author archive */
.group-root .group-page {
  background: #080b0d;
}

.team-shell {
  isolation: isolate;
  padding: 0 clamp(24px, 6vw, 112px) clamp(64px, 9vw, 120px);
  background:
    linear-gradient(90deg, rgba(5, 8, 10, .94) 0%, rgba(5, 8, 10, .76) 42%, rgba(5, 8, 10, .42) 72%, rgba(5, 8, 10, .66) 100%),
    linear-gradient(180deg, rgba(5, 8, 10, .34) 0%, rgba(5, 8, 10, .88) 86%),
    url("../assets/cover/mirror-record-cover-v2.webp") center top / cover fixed no-repeat;
}

.team-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  border: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 5, 7, .78) 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .62);
}

.team-noise {
  position: fixed;
  z-index: 0;
  opacity: .22;
  animation-duration: 420ms;
}

.team-topbar,
.team-intro,
.team-video-section,
.member-section {
  width: min(1180px, 100%);
}

.team-topbar {
  min-height: 82px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(187, 162, 117, .34);
}

.back-home {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #817156;
  border-radius: 2px;
  background: rgba(17, 22, 24, .84);
  color: #eadbc0;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.back-home::before {
  content: "←";
  margin-right: 10px;
  color: #bba275;
}

.back-home:hover,
.back-home:focus-visible {
  border-color: #dbc38c;
  background: #3e3524;
  outline: 2px solid transparent;
}

.team-label {
  color: #bba275;
  font-size: 12px;
  letter-spacing: .18em;
}

.team-intro,
.team-intro-simple {
  display: flex;
  align-items: center;
  min-height: min(610px, calc(100vh - 82px));
  padding: clamp(72px, 11vh, 118px) 0 clamp(78px, 12vh, 132px);
}

.team-copy {
  width: min(700px, 100%);
}

.team-copy h1 {
  margin: 18px 0 24px;
  color: #f0e9db;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 1.08;
  letter-spacing: .04em;
  text-indent: 0;
  text-shadow: 0 6px 24px #000;
}

.team-copy p:last-child {
  max-width: 62ch;
  color: #c9c3b7;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
}

.team-video-section,
.member-section {
  padding: clamp(58px, 8vw, 92px) 0;
  border-top: 1px solid rgba(187, 162, 117, .34);
}

.section-heading {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  color: #f0e9db;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.team-video-frame {
  width: min(940px, 100%);
  margin: 0 auto;
  border-color: #817156;
  border-radius: 2px;
  background: #030506;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .52);
}

.team-video-frame::before {
  inset: 8px;
  border-color: rgba(187, 162, 117, .26);
}

.team-video {
  aspect-ratio: 16 / 9;
  max-height: none;
}

.team-video-caption {
  left: 16px;
  top: 14px;
  padding: 7px 10px;
  border-left: 1px solid #bba275;
  background: rgba(5, 8, 10, .82);
  color: #d7c7a2;
}

.member-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  padding: 0;
}

.member-card {
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  gap: 12px;
  padding: 10px 10px 16px;
  border: 1px solid rgba(129, 113, 86, .72);
  border-radius: 2px;
  background: rgba(9, 13, 15, .82);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: default;
}

.member-card::after {
  display: none;
}

.member-photo {
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 0;
  filter: saturate(.7) contrast(1.08) brightness(.82);
  box-shadow: none;
}

.member-card:hover,
.member-card:focus-visible {
  border-color: rgba(129, 113, 86, .72);
  background: rgba(9, 13, 15, .82);
  transform: none;
  outline: none;
}

.member-card:hover .member-photo,
.member-card:focus-visible .member-photo {
  filter: saturate(.7) contrast(1.08) brightness(.82);
}

.member-index {
  color: #bba275;
  font-size: 12px;
}

.member-info {
  gap: 7px;
  padding: 0 2px;
}

.member-card strong {
  color: #f0e9db;
  font-size: clamp(19px, 2vw, 24px);
}

.member-card small {
  color: #aaa69b;
}

@media (max-width: 960px) {
  .team-shell {
    background-position: 58% top;
    background-attachment: scroll;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
  }
}

@media (max-width: 600px) {
  .team-shell {
    padding-inline: 20px;
    background-position: 64% top;
  }

  .team-topbar {
    min-height: 70px;
    padding: 14px 0;
  }

  .team-intro,
  .team-intro-simple {
    min-height: calc(100svh - 70px);
    padding: 64px 0 76px;
  }

  .team-copy h1 {
    font-size: clamp(46px, 17vw, 70px);
  }

  .section-heading {
    gap: 8px;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card,
  .member-card:last-child {
    grid-template-columns: 88px min-content 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    min-height: 124px;
    align-items: center;
  }

  .member-photo {
    grid-row: 1 / 3;
    aspect-ratio: 4 / 5;
    height: 104px;
  }

  .member-info {
    padding-right: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-noise {
    animation: none;
  }

  .member-card {
    transition: none;
  }
}
