:root {
  --profile-grad: linear-gradient(120deg, #22d3ee, #818cf8);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--series-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(140deg, rgba(7, 11, 22, 0.98), rgba(10, 18, 35, 0.98) 46%, rgba(7, 11, 22, 0.99)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 92px);
  color: var(--series-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(34, 211, 238, 0.075) 18% 18.4%, transparent 18.4% 62%, rgba(129, 140, 248, 0.075) 62% 62.4%, transparent 62.4%),
    linear-gradient(90deg, rgba(34, 211, 238, 0.07), transparent 34%, rgba(129, 140, 248, 0.08) 78%, transparent);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

#net {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

#bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--profile-grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.profile-wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.profile-hero {
  min-height: calc(84vh - 66px);
  padding: 58px 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 56px;
}

.profile-kicker {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--series-cyan);
  font-size: 13px;
  letter-spacing: 3px;
}

.profile-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--profile-grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.profile-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.profile-hero h1 em,
.profile-section-no {
  background: var(--profile-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-hero h1 em {
  display: block;
  font-style: normal;
}

.profile-facts {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-metric {
  padding-top: 14px;
  border-top: 1px solid var(--series-border);
}

.profile-metric b,
.profile-metric span {
  display: block;
}

.profile-metric b {
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.profile-metric span {
  margin-top: 7px;
  color: var(--series-muted);
  font-size: 13px;
}

.portrait-block {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.portrait-block::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 0;
  height: 82%;
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.08) 54%, rgba(247, 170, 25, 0.04));
  transform: skewY(-3deg);
}

.portrait-block::after {
  content: "FACTS";
  position: absolute;
  z-index: 2;
  top: 108px;
  right: 2%;
  color: rgba(232, 238, 248, 0.12);
  font-size: 78px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.portrait {
  position: relative;
  z-index: 1;
  width: min(386px, 86%);
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.profile-section {
  padding: 60px 0 86px;
}

.profile-section-head {
  margin-bottom: 34px;
  padding-top: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--series-border);
}

.profile-section-no {
  font-size: 60px;
  line-height: 1;
  font-weight: 900;
}

.profile-section-head h2 {
  margin: 8px 0 0;
  font-size: 31px;
  line-height: 1.25;
}

.profile-section-head > p {
  max-width: 500px;
  margin: 0;
  color: var(--series-muted);
  font-size: 15px;
}

.evidence-list {
  display: grid;
  gap: 18px;
}

.evidence-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  overflow: hidden;
  border: 1px solid var(--series-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.evidence-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.evidence-copy {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evidence-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--profile-grad);
  opacity: 0.9;
}

.evidence-time {
  margin: 0 0 12px;
  color: var(--series-cyan) !important;
  font-size: 12px !important;
  letter-spacing: 2px;
}

.evidence-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.34;
  text-wrap: balance;
}

.evidence-copy p {
  margin: 0;
  color: var(--series-muted);
  font-size: 15px;
  text-wrap: pretty;
}

.evidence-media {
  min-height: 310px;
  border-left: 1px solid var(--series-border);
  background: #09111f;
}

.evidence-media button {
  width: 100%;
  height: 100%;
  min-height: 310px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.evidence-media button:focus-visible,
.profile-button:focus-visible,
.profile-footer a:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid var(--series-amber);
  outline-offset: -4px;
}

.evidence-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.profile-cta {
  margin: 12px 0 72px;
  padding: 34px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--series-border);
}

.profile-cta p {
  margin: 0 0 5px;
  color: var(--series-cyan);
  font-size: 12px;
  font-weight: 800;
}

.profile-cta h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}

.profile-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.profile-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(34, 211, 238, 0.72);
  border-radius: 7px;
  background: var(--series-cyan);
  color: #061017;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.profile-button:hover {
  transform: translateY(-2px);
  background: #67e8f9;
}

.profile-button--quiet {
  border-color: var(--series-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--series-text);
}

.profile-button--quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-footer {
  position: relative;
  z-index: 2;
  padding: 28px 22px 44px;
  border-top: 1px solid var(--series-border);
  color: var(--series-muted);
  font-size: 12px;
  text-align: center;
}

.profile-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration-color: rgba(34, 211, 238, 0.4);
  text-underline-offset: 4px;
}

.rv.is-pending {
  opacity: 0;
  transform: translateY(24px);
}

.rv {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 30px 30px;
  background: rgba(5, 8, 16, 0.94);
}

#lightbox.show {
  display: flex;
}

#lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.68);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  .profile-wrap {
    width: min(100% - 34px, 720px);
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
  }

  .portrait-block {
    min-height: 330px;
  }

  .portrait {
    width: min(330px, 82%);
    max-height: 320px;
  }

  .portrait-block::after {
    top: 54px;
    font-size: 60px;
  }

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

  .evidence-card {
    grid-template-columns: 1fr;
  }

  .evidence-media {
    border-top: 1px solid var(--series-border);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .profile-wrap {
    width: min(100% - 28px, 560px);
  }

  .profile-hero {
    min-height: auto;
    padding: 22px 0 24px;
    gap: 16px;
  }

  .profile-kicker {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .profile-hero h1 {
    font-size: 36px;
  }

  .portrait-block {
    min-height: 190px;
  }

  .portrait-block::before {
    left: 14%;
    right: 14%;
    height: 78%;
  }

  .portrait-block::after {
    top: 34px;
    right: 8%;
    font-size: 42px;
  }

  .portrait {
    width: min(260px, 76%);
    height: 184px;
    object-fit: cover;
    object-position: center 12%;
  }

  .profile-facts {
    margin-top: 16px;
    gap: 8px 14px;
  }

  .profile-metric {
    padding-top: 9px;
  }

  .profile-metric b {
    font-size: 18px;
  }

  .profile-metric span {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.45;
  }

  .profile-section {
    padding: 38px 0 60px;
  }

  .profile-section-head {
    margin-bottom: 24px;
    padding-top: 28px;
    display: block;
  }

  .profile-section-no {
    font-size: 48px;
  }

  .profile-section-head h2 {
    font-size: 25px;
  }

  .profile-section-head > p {
    margin-top: 12px;
    font-size: 14px;
  }

  .evidence-card {
    min-height: 0;
  }

  .evidence-copy {
    padding: 22px;
  }

  .evidence-copy h3 {
    font-size: 19px;
  }

  .evidence-media,
  .evidence-media button {
    min-height: 245px;
  }

  .profile-cta {
    margin-bottom: 48px;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .profile-cta h2 {
    font-size: 22px;
  }

  .profile-cta__actions {
    display: grid;
    justify-content: stretch;
  }

  .profile-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .profile-hero {
    padding-top: 14px;
    gap: 10px;
  }

  .profile-hero h1 {
    font-size: 32px;
  }

  .portrait-block {
    min-height: 142px;
  }

  .portrait {
    width: min(210px, 72%);
    height: 136px;
  }

  .portrait-block::after {
    top: 22px;
    font-size: 34px;
  }

  .profile-facts {
    margin-top: 10px;
  }

  .profile-metric b {
    font-size: 15px;
  }

  .profile-metric span {
    font-size: 10px;
  }
}

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

  .rv,
  .rv.is-pending,
  .evidence-card,
  .profile-button {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
