:root {
  --bg: #eef3f8;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: #ffffff;
  --text: #0d1b2a;
  --muted: #5a697c;
  --line: rgba(14, 35, 58, 0.12);
  --accent: #0a66c2;
  --accent-deep: #003b75;
  --glow: rgba(10, 102, 194, 0.12);
  --gold: #d4b06a;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-lg: 0 30px 80px rgba(15, 35, 58, 0.16);
  --shadow-md: 0 18px 40px rgba(15, 35, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 176, 106, 0.2), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(10, 102, 194, 0.16), transparent 18%),
    linear-gradient(180deg, #f7fafd 0%, #edf2f7 42%, #f7f9fc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: -12rem;
  right: -10rem;
  background: rgba(10, 102, 194, 0.12);
}

.ambient-two {
  bottom: -18rem;
  left: -12rem;
  background: rgba(212, 176, 106, 0.18);
}

.hero,
.roles-section,
.detail-section {
  position: relative;
  z-index: 1;
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
}

.hero {
  padding: 12px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  min-width: 42px;
  padding: 9px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(10, 102, 194, 0.08);
  color: var(--accent-deep);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(14, 35, 58, 0.06);
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar h1,
.section-heading h3,
.detail-title h3 {
  margin: 0;
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-deep);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(10, 102, 194, 0.08);
}

.hero-copy {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    linear-gradient(120deg, rgba(10, 102, 194, 0.12), transparent 45%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-lg);
  min-height: min(78vh, 860px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: end;
  gap: clamp(28px, 4vw, 56px);
  min-height: inherit;
}

.hero-content {
  max-width: 820px;
  padding-top: clamp(24px, 5vw, 72px);
}

.hero-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-text,
.section-heading p,
.role-card p,
.poster-section p,
.poster-list li,
.meta-chip,
.detail-intro p,
.footer-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 52ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.85;
  padding-left: 2px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-self: stretch;
  min-height: 100%;
}

.hero-panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-panel-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(7, 26, 47, 0.95), rgba(10, 59, 117, 0.88)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
  color: #f4f8fc;
  box-shadow: 0 30px 60px rgba(6, 24, 42, 0.22);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(68, 154, 255, 0.14), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(212, 176, 106, 0.12), transparent 18%),
    linear-gradient(155deg, rgba(3, 17, 32, 0.98), rgba(7, 39, 73, 0.96) 54%, rgba(14, 71, 126, 0.92));
  box-shadow: 0 30px 60px rgba(6, 24, 42, 0.26);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  opacity: 0.7;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(114, 190, 255, 0.32);
  border-radius: 50%;
}

.hero-orbit-one {
  width: 360px;
  height: 360px;
  top: 8%;
  right: 8%;
  opacity: 0.34;
}

.hero-orbit-two {
  width: 250px;
  height: 250px;
  top: 20%;
  right: 19%;
  opacity: 0.28;
}

.hero-orbit-three {
  width: 142px;
  height: 142px;
  top: 31%;
  right: 30%;
  opacity: 0.25;
}

.hero-beam {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(118, 196, 255, 0.85), rgba(118, 196, 255, 0));
}

.hero-beam-one {
  top: 28%;
  left: 14%;
  width: 48%;
  transform: rotate(16deg);
}

.hero-beam-two {
  top: 63%;
  left: 18%;
  width: 36%;
  transform: rotate(-10deg);
  opacity: 0.82;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
}

.hero-dot-one {
  top: 23%;
  left: 16%;
  width: 10px;
  height: 10px;
  background: #7fd9ff;
  box-shadow: 0 0 26px rgba(127, 217, 255, 0.9);
}

.hero-dot-two {
  top: 67%;
  left: 24%;
  width: 8px;
  height: 8px;
  background: #d4b06a;
  box-shadow: 0 0 18px rgba(212, 176, 106, 0.8);
}

.hero-dot-three {
  top: 18%;
  right: 15%;
  width: 14px;
  height: 14px;
  background: rgba(180, 231, 255, 0.95);
  box-shadow: 0 0 28px rgba(180, 231, 255, 0.9);
}

.hero-shield-frame {
  position: absolute;
  inset: 16% auto auto 12%;
  width: 292px;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 30% 22%, rgba(145, 211, 255, 0.18), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 60px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(77, 165, 255, 0.14);
}

.hero-shield-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-shield-frame::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0.58;
  filter: blur(3px);
  pointer-events: none;
}

.hero-shield-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 120px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 252, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 34px rgba(0, 0, 0, 0.16),
    0 0 26px rgba(155, 215, 255, 0.14);
}

.hero-shield-core img {
  width: 78%;
  height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(18, 67, 136, 0.14));
}

.hero-core {
  position: relative;
  z-index: 1;
  display: block;
  padding: 22px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(14px);
}

.hero-core-copy {
  display: grid;
  gap: 12px;
}

.hero-core-copy strong {
  font-size: 1.56rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #f3f7fc;
}

.hero-core-copy p {
  max-width: 30ch;
  margin: 0;
  color: rgba(228, 238, 248, 0.76);
  line-height: 1.72;
}

.hero-stat-card strong {
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero-stat-card p {
  margin-top: 10px;
}

.hero-panel-card::before {
  content: "";
  position: absolute;
  inset: auto -15% -20% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 176, 106, 0.22), transparent 70%);
}

.hero-panel-large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}

.hero-kicker,
.hero-panel-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel-card p,
.hero-panel-card strong {
  position: relative;
  z-index: 1;
}

.hero-panel-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.hero-panel-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-metrics article,
.role-card,
.poster-shell,
.section-panel {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.hero-metrics article {
  padding: 20px 22px;
  border-radius: 22px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  color: var(--accent-deep);
}

.roles-section {
  padding: 0 0 36px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.section-heading p {
  max-width: 70ch;
  margin: 14px 0 0;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.role-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.role-card:hover,
.role-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 35, 58, 0.16);
  border-color: rgba(10, 102, 194, 0.2);
}

.role-card h4 {
  margin: 12px 0 8px;
  font-size: 1.42rem;
}

.meta-row,
.detail-meta,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.role-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.role-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.role-link:hover,
.role-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 59, 117, 0.24);
}

.detail-section {
  padding: 8px 0 40px;
}

.detail-section.hidden {
  display: none;
}

.poster-shell {
  border-radius: 38px;
  overflow: hidden;
  width: 100%;
}

.detail-header {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  padding: clamp(24px, 5vw, 44px);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    linear-gradient(160deg, rgba(10, 102, 194, 0.12), rgba(212, 176, 106, 0.14));
}

.detail-title h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.detail-title p {
  max-width: 50ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-side {
  display: grid;
  gap: 16px;
}

.section-panel {
  padding: 20px 22px;
  border-radius: 24px;
}

.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-panel strong {
  display: block;
  font-size: 1.16rem;
}

.poster-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 24px 24px;
}

.poster-section {
  min-height: 100%;
  padding: 26px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(14, 35, 58, 0.08);
}

.poster-section h4 {
  margin: 0 0 16px;
  font-size: 1.18rem;
}

.poster-list {
  padding-left: 18px;
  margin: 0;
}

.poster-list li + li {
  margin-top: 10px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-weight: 700;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .role-grid,
  .detail-header,
  .poster-body,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-layout,
  .hero-panel-row {
    grid-template-columns: 1fr;
  }

  .detail-header {
    gap: 20px;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-copy h2 {
    max-width: 12ch;
    font-size: clamp(3.4rem, 10vw, 5.2rem);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-panel-large {
    min-height: 220px;
  }

  .hero-orbit-one {
    width: 250px;
    height: 250px;
  }

  .hero-orbit-two {
    width: 180px;
    height: 180px;
  }

  .hero-orbit-three {
    width: 110px;
    height: 110px;
  }

  .hero-shield-frame {
    inset: 12% auto auto 10%;
    width: 236px;
    height: 152px;
  }

  .hero-shield-core {
    width: 180px;
    height: 96px;
  }
}

@media (max-width: 640px) {
  .hero,
  .roles-section,
  .detail-section {
    width: min(100% - 12px, 1600px);
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    justify-content: space-between;
  }

  .hero-copy {
    padding: 26px;
    min-height: auto;
  }

  .hero-copy h2 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    line-height: 0.94;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-panel-card,
  .hero-panel-large {
    min-height: auto;
  }

  .hero-visual {
    padding: 22px;
  }

  .hero-shield-frame {
    width: 176px;
    height: 116px;
    border-radius: 28px;
  }

  .hero-shield-core {
    width: 132px;
    height: 74px;
    border-radius: 22px;
  }

  .hero-core-copy strong {
    font-size: 1.28rem;
  }

  .hero-core-copy p {
    max-width: 100%;
  }

  .role-card,
  .poster-section,
  .section-panel {
    padding: 22px;
  }

  .poster-shell {
    border-radius: 28px;
  }

  .poster-body {
    padding: 0 16px 16px;
  }

  .detail-header {
    padding: 20px 16px;
  }
}
