:root {
  color-scheme: dark;
  --bg: #0a0d19;
  --bg-2: #171326;
  --panel: rgba(24, 27, 43, 0.82);
  --panel-strong: rgba(29, 30, 50, 0.94);
  --panel-soft: rgba(255, 244, 252, 0.074);
  --text: #fffaf7;
  --muted: #d8ccdc;
  --subtle: #a59ab0;
  --line: rgba(246, 171, 205, 0.38);
  --line-soft: rgba(238, 226, 255, 0.155);
  --gold: #efc875;
  --gold-strong: #ffe0a1;
  --green: #8ce9dc;
  --green-deep: #153c48;
  --burgundy: #f07da9;
  --mauve: #bfa2ca;
  --shadow: 0 28px 82px rgba(4, 5, 14, 0.48);
  --radius: 8px;
  --header: rgba(12, 13, 25, 0.76);
  --portrait-bg: #151726;
  --focus: #f8a8c8;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e7e9f0;
  --bg-2: #dcdce7;
  --panel: rgba(247, 248, 252, 0.91);
  --panel-strong: rgba(253, 253, 255, 0.98);
  --panel-soft: rgba(126, 128, 166, 0.105);
  --text: #2d3041;
  --muted: #565c70;
  --subtle: #7f839b;
  --line: rgba(117, 121, 151, 0.36);
  --line-soft: rgba(71, 75, 105, 0.13);
  --gold: #a99169;
  --gold-strong: #776744;
  --green: #6f93ad;
  --green-deep: #dce7ee;
  --burgundy: #9a7a93;
  --mauve: #8582a7;
  --shadow: 0 26px 76px rgba(70, 72, 103, 0.18);
  --header: rgba(242, 243, 249, 0.86);
  --portrait-bg: #f2f1f7;
  --focus: #8078a8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 125, 169, 0.2), transparent 330px),
    radial-gradient(circle at 82% 8%, rgba(140, 233, 220, 0.16), transparent 360px),
    radial-gradient(circle at 56% 0%, rgba(239, 200, 117, 0.12), transparent 420px),
    linear-gradient(180deg, rgba(255, 244, 252, 0.035), transparent 520px),
    var(--bg);
  font-family:
    Inter,
    "SF Pro Display",
    "Segoe UI",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("../assets/dreamy-site-bg-dark.jpg");
  background-size: cover;
  background-position: 48% top;
  opacity: 0.5;
  filter: saturate(0.9) contrast(1.02);
}

:root[data-theme="light"] body::before {
  background-image: url("../assets/dreamy-site-bg-light.jpg");
  background-position: 47% top;
  opacity: 0.64;
  filter: saturate(0.98) contrast(1.08) brightness(0.9);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 72% 16%, rgba(240, 125, 169, 0.19), transparent 330px),
    radial-gradient(circle at 34% 76%, rgba(140, 233, 220, 0.075), transparent 480px),
    linear-gradient(90deg, rgba(10, 13, 25, 0.9) 0%, rgba(10, 13, 25, 0.76) 36%, rgba(10, 13, 25, 0.38) 78%),
    linear-gradient(180deg, rgba(10, 13, 25, 0.18) 0%, rgba(10, 13, 25, 0.62) 760px, rgba(10, 13, 25, 0.86) 100%);
  pointer-events: none;
}

:root[data-theme="light"] body::after {
  background:
    radial-gradient(ellipse at 35% 24%, rgba(220, 224, 237, 0.74), transparent 460px),
    radial-gradient(circle at 74% 18%, rgba(133, 130, 167, 0.2), transparent 330px),
    radial-gradient(circle at 16% 72%, rgba(111, 147, 173, 0.18), transparent 380px),
    radial-gradient(circle at 50% 6%, rgba(169, 145, 105, 0.1), transparent 380px),
    linear-gradient(90deg, rgba(230, 232, 241, 0.82), rgba(220, 221, 234, 0.48) 45%, rgba(226, 228, 238, 0.2)),
    linear-gradient(180deg, rgba(230, 232, 241, 0.18) 0%, rgba(222, 224, 235, 0.44) 760px, rgba(233, 234, 241, 0.82) 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--burgundy));
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 38%, rgba(240, 125, 169, 0.035)),
    var(--header);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 34px rgba(3, 4, 12, 0.28);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1520px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  max-width: 285px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 174, 205, 0.46);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    url("../assets/dreamy-brand-avatar.png") center / cover no-repeat;
  box-shadow: 0 12px 32px rgba(112, 95, 150, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.brand strong {
  display: block;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand > span:not(.brand-mark) {
  display: block;
  min-width: 0;
}

.brand > span:not(.brand-mark) > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2px;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.nav a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a.nav-home {
  color: var(--gold-strong);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--gold);
  background: var(--panel-soft);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.header-time {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel-soft);
}

.header-time > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  line-height: 1;
}

.header-time strong {
  color: var(--text);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 14px;
  font-weight: 600;
}

.header-time em {
  min-width: 22px;
  padding: 1px 5px;
  border: 1px solid rgba(239, 200, 117, 0.26);
  border-radius: 999px;
  color: var(--gold-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.header-time small {
  display: block;
  max-width: 96px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented,
.theme-toggle,
.download-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(238, 226, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.segmented button,
.theme-toggle button,
.download-group a,
.link-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.segmented button[aria-pressed="true"],
.theme-toggle button[aria-pressed="true"],
.download-group a:hover,
.link-button.primary,
.link-button:hover {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(240, 125, 169, 0.16), rgba(239, 200, 117, 0.13)),
    rgba(255, 255, 255, 0.035);
}

.segmented button:hover,
.theme-toggle button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-soft);
  cursor: pointer;
}

.hero {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.portrait-frame {
  position: relative;
  justify-self: center;
  width: min(318px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 55% 18%, rgba(240, 125, 169, 0.23), transparent 40%),
    radial-gradient(circle at 24% 78%, rgba(140, 233, 220, 0.16), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, var(--panel-strong), var(--portrait-bg));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  overflow: hidden;
}

.portrait-frame::before {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 96px;
  height: 96px;
  content: "";
  border: 1px solid rgba(239, 200, 117, 0.26);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(239, 200, 117, 0.22) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(140, 233, 220, 0.18) 50%, transparent 51%);
  opacity: 0.85;
}

.portrait-frame::after {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(239, 200, 117, 0.5), rgba(140, 233, 220, 0.35), transparent);
  filter: blur(0.2px);
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: contain;
  object-position: 50% 50%;
  background: transparent;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.32));
  animation: avatarFloat 6.5s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--gold-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  content: "";
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-title {
  margin-top: 18px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 64px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-title span {
  color: var(--gold-strong);
  font-size: 28px;
  white-space: nowrap;
}

.role-line {
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-statement {
  max-width: 720px;
  margin-top: 24px;
  color: var(--text);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 27px;
  line-height: 1.48;
}

.hero-copy {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

:root[data-theme="light"] .hero-title {
  color: #252839;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 38px rgba(70, 72, 103, 0.16);
}

:root[data-theme="light"] .hero-title span {
  color: #6f6040;
}

:root[data-theme="light"] .role-line {
  color: #527f99;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

:root[data-theme="light"] .hero-statement {
  color: #2c3042;
  font-weight: 560;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 28px rgba(70, 72, 103, 0.1);
}

:root[data-theme="light"] .hero-copy {
  color: #454d60;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.link-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel-soft);
}

.link-button.primary {
  border-color: rgba(201, 161, 95, 0.5);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid rgba(238, 226, 255, 0.17);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(238, 226, 255, 0.13);
  box-shadow: 0 16px 44px rgba(2, 4, 12, 0.18);
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--panel);
  transition: transform 180ms ease, background 180ms ease;
}

.metric:hover {
  background:
    linear-gradient(180deg, rgba(240, 125, 169, 0.13), rgba(140, 233, 220, 0.045)),
    var(--panel);
  transform: translateY(-3px);
}

.metric i {
  color: var(--gold);
}

.metric strong {
  font-size: 16px;
  line-height: 1.25;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.section-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--gold-strong);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 8px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.18;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 18px;
}

.panel-title i {
  color: var(--gold);
}

.panel-hint {
  color: var(--subtle);
  font-size: 12px;
}

.atlas-panel {
  min-height: 650px;
}

.atlas-map {
  position: relative;
  min-height: 470px;
  margin: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 15, 22, 0.38), rgba(6, 10, 20, 0.22)),
    url("../assets/research-atlas-texture-web.jpg") center/cover;
  overflow: hidden;
}

.profile-hex {
  display: grid;
  place-items: center;
}

.profile-hex::before,
.profile-hex::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.profile-hex::before {
  opacity: 0.34;
  background:
    radial-gradient(circle at 22% 18%, rgba(239, 200, 117, 0.14), transparent 190px),
    radial-gradient(circle at 82% 76%, rgba(140, 233, 220, 0.12), transparent 220px),
    linear-gradient(180deg, rgba(3, 8, 15, 0.08), rgba(3, 8, 15, 0.18));
}

.profile-hex::after {
  opacity: 0.28;
  background:
    radial-gradient(circle at 18% 24%, rgba(239, 200, 117, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 68%, rgba(140, 233, 220, 0.1) 0 2px, transparent 3px);
  background-size: 42px 42px, 58px 58px;
  mix-blend-mode: screen;
}

:root[data-theme="light"] .atlas-map {
  background:
    radial-gradient(circle at 20% 18%, rgba(83, 132, 162, 0.055), transparent 220px),
    radial-gradient(circle at 82% 72%, rgba(133, 130, 167, 0.07), transparent 230px),
    url("../assets/research-atlas-texture-light-web.jpg") center/cover;
  box-shadow: inset 0 0 0 1px rgba(253, 253, 255, 0.52), inset 0 -42px 76px rgba(229, 232, 240, 0.1);
}

:root[data-theme="light"] .profile-hex::before {
  opacity: 0.08;
  background:
    radial-gradient(circle at 18% 20%, rgba(111, 147, 173, 0.18), transparent 190px),
    radial-gradient(circle at 84% 76%, rgba(133, 130, 167, 0.16), transparent 240px),
    linear-gradient(180deg, rgba(253, 253, 255, 0.26), rgba(238, 240, 245, 0.16));
}

:root[data-theme="light"] .profile-hex::after {
  opacity: 0.1;
  background:
    radial-gradient(circle at 16% 24%, rgba(111, 147, 173, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 66%, rgba(133, 130, 167, 0.18) 0 2px, transparent 3px);
  background-size: 38px 38px, 52px 52px;
  mix-blend-mode: multiply;
}

.hex-chart {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(52%, 310px);
  max-width: 330px;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.28));
  transform: translate(-50%, -50%);
}

.hex-fill {
  fill: url(#hexGlow);
}

.hex-grid,
.hex-spoke {
  fill: none;
  stroke: rgba(201, 161, 95, 0.42);
  stroke-width: 1.2;
}

.hex-grid.inner {
  stroke: rgba(201, 161, 95, 0.24);
}

.hex-grid.soft {
  stroke: rgba(99, 211, 184, 0.18);
}

.hex-score {
  fill: rgba(99, 211, 184, 0.2);
  stroke: rgba(99, 211, 184, 0.86);
  stroke-width: 2.4;
}

.hex-dot {
  fill: var(--gold);
  stroke: rgba(255, 244, 216, 0.9);
  stroke-width: 1.4;
}

.hex-chart .hex-score,
.hex-chart .hex-dot {
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

:root[data-theme="light"] .hex-chart {
  filter: drop-shadow(0 18px 34px rgba(174, 103, 141, 0.18));
}

:root[data-theme="light"] .hex-fill {
  fill: rgba(226, 229, 239, 0.54);
}

:root[data-theme="light"] .hex-grid,
:root[data-theme="light"] .hex-spoke {
  stroke: rgba(117, 121, 151, 0.36);
}

:root[data-theme="light"] .hex-grid.inner {
  stroke: rgba(133, 130, 167, 0.26);
}

:root[data-theme="light"] .hex-grid.soft {
  stroke: rgba(111, 147, 173, 0.24);
}

:root[data-theme="light"] .hex-score {
  fill: rgba(111, 147, 173, 0.18);
  stroke: rgba(111, 147, 173, 0.82);
}

:root[data-theme="light"] .hex-dot {
  fill: #a98d5d;
  stroke: rgba(255, 253, 248, 0.94);
}

.atlas-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border: 1px solid rgba(201, 161, 95, 0.62);
  border-radius: 50%;
  background: rgba(7, 18, 15, 0.68);
  text-align: center;
  transform: translate(-50%, -50%);
}

.profile-center {
  z-index: 2;
  width: 146px;
  height: 146px;
  background: radial-gradient(circle at 50% 30%, rgba(33, 72, 62, 0.9), rgba(7, 18, 15, 0.78));
  box-shadow: inset 0 0 32px rgba(201, 161, 95, 0.1), 0 22px 52px rgba(0, 0, 0, 0.26);
}

:root[data-theme="light"] .atlas-center {
  background: rgba(250, 249, 243, 0.78);
}

:root[data-theme="light"] .profile-center {
  border-color: rgba(117, 121, 151, 0.48);
  background: radial-gradient(circle at 50% 22%, rgba(253, 253, 255, 0.94), rgba(226, 229, 239, 0.82));
  box-shadow: inset 0 0 24px rgba(111, 147, 173, 0.12), 0 18px 40px rgba(70, 72, 103, 0.15);
}

.atlas-center strong {
  display: block;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 500;
}

.atlas-center span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.atlas-node {
  position: absolute;
  display: grid;
  width: 124px;
  min-height: 108px;
  place-items: center;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(9, 22, 19, 0.74);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.axis-node {
  z-index: 3;
}

:root[data-theme="light"] .atlas-node {
  border-color: rgba(117, 121, 151, 0.25);
  background: rgba(253, 253, 255, 0.78);
  box-shadow: 0 14px 30px rgba(70, 72, 103, 0.13);
}

.atlas-node:hover,
.atlas-node.is-active {
  border-color: var(--gold);
  background: rgba(138, 46, 62, 0.28);
  transform: translateY(-4px);
}

:root[data-theme="light"] .atlas-node:hover,
:root[data-theme="light"] .atlas-node.is-active {
  border-color: rgba(133, 130, 167, 0.64);
  background: rgba(229, 232, 242, 0.86);
}

.atlas-node i {
  margin-bottom: 8px;
  color: var(--gold);
}

.atlas-node strong {
  font-size: 13px;
  line-height: 1.3;
}

.atlas-node span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.node-0 {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.node-1 {
  top: 23%;
  right: 6%;
}

.node-2 {
  right: 8%;
  bottom: 17%;
}

.node-3 {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.node-4 {
  left: 8%;
  bottom: 17%;
}

.node-5 {
  top: 23%;
  left: 6%;
}

.node-0:hover,
.node-0.is-active,
.node-3:hover,
.node-3.is-active {
  transform: translateX(-50%) translateY(-4px);
}

.atlas-detail {
  display: grid;
  gap: 10px;
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.atlas-detail h3 {
  color: var(--gold-strong);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 500;
}

.atlas-detail p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.profile-score {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(201, 161, 95, 0.34);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 161, 95, 0.1);
  font-family: Georgia, "Times New Roman", serif;
}

.profile-score i {
  position: relative;
  top: 3px;
}

.profile-score span {
  font-size: 19px;
}

.profile-score small {
  color: var(--muted);
  font-size: 11px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
}

.accordion {
  display: grid;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--line-soft);
}

.accordion-trigger {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.accordion-title {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.35;
}

.accordion-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.accordion-icon {
  color: var(--gold);
  transition: transform 180ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}

.accordion-panel-inner {
  display: grid;
  gap: 16px;
  padding: 0 20px 22px 77px;
}

.accordion-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.bullet-grid {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-grid li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bullet-grid i {
  margin-top: 2px;
  color: var(--green);
}

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.activity-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel-soft);
  cursor: pointer;
}

.activity-tab[aria-pressed="true"],
.activity-tab:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(201, 161, 95, 0.15);
}

.activity-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.activity-summary {
  padding: 22px;
}

.activity-summary h3 {
  color: var(--gold-strong);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 500;
}

.activity-summary p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

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

.activity-card,
.publication-row,
.honor-row,
.skill-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.activity-card {
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.activity-card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.activity-card .mini {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
}

.activity-card h4 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.35;
}

.activity-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.timeline {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--panel);
}

.timeline-row + .timeline-row {
  border-top: 1px solid var(--line-soft);
}

.timeline-date {
  color: var(--gold);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
}

.timeline-row h3 {
  font-size: 16px;
  line-height: 1.4;
}

.timeline-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.timeline-chip {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-block {
  padding: 20px;
}

.skill-block h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--gold-strong);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 500;
}

.skill-block p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

.honor-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
}

.honor-row i {
  color: var(--gold);
}

.honor-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.honor-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

#contact {
  position: relative;
  z-index: 0;
  isolation: isolate;
  padding-top: 88px;
  padding-bottom: 96px;
}

#contact::before,
#contact::after {
  position: absolute;
  left: 50%;
  width: 100vw;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

#contact::before {
  top: 0;
  bottom: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 28%, rgba(240, 125, 169, 0.22), transparent 330px),
    radial-gradient(circle at 76% 40%, rgba(140, 233, 220, 0.14), transparent 390px),
    linear-gradient(180deg, rgba(10, 13, 25, 0), rgba(10, 13, 25, 0.84) 24%, rgba(10, 13, 25, 0.96)),
    url("../assets/research-atlas-texture-web.jpg") center 58% / cover no-repeat;
  box-shadow: inset 0 72px 88px var(--bg), inset 0 -22px 42px var(--bg);
  opacity: 0.98;
}

#contact::after {
  top: 34px;
  bottom: 24px;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(239, 200, 117, 0.28) 48% 48.08%, transparent 48.08%),
    radial-gradient(circle at 16% 72%, rgba(239, 200, 117, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 34%, rgba(140, 233, 220, 0.25) 0 2px, transparent 3px);
  background-size: auto, 120px 86px, 150px 104px;
  mix-blend-mode: screen;
  opacity: 0.48;
}

:root[data-theme="light"] #contact::before {
  background:
    radial-gradient(circle at 16% 28%, rgba(111, 147, 173, 0.2), transparent 330px),
    radial-gradient(circle at 78% 36%, rgba(133, 130, 167, 0.22), transparent 380px),
    linear-gradient(180deg, rgba(238, 240, 245, 0), rgba(231, 233, 241, 0.8) 22%, rgba(237, 239, 245, 0.96)),
    url("../assets/research-atlas-texture-light-web.jpg") center 52% / cover no-repeat;
  box-shadow: inset 0 76px 88px var(--bg), inset 0 -24px 44px var(--bg);
}

:root[data-theme="light"] #contact::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(169, 145, 105, 0.22) 48% 48.08%, transparent 48.08%),
    radial-gradient(circle at 16% 72%, rgba(169, 145, 105, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 34%, rgba(111, 147, 173, 0.22) 0 2px, transparent 3px);
  background-size: auto, 118px 84px, 148px 102px;
  mix-blend-mode: multiply;
  opacity: 0.38;
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(138, 46, 62, 0.22), rgba(24, 27, 43, 0.9) 44%, rgba(20, 25, 38, 0.88)),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-panel::before {
  position: absolute;
  inset: -18%;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(24, 27, 43, 0.68), rgba(24, 27, 43, 0.82)),
    url("../assets/research-atlas-texture-web.jpg") center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

:root[data-theme="light"] .contact-panel {
  background:
    linear-gradient(135deg, rgba(248, 234, 239, 0.86), rgba(250, 251, 253, 0.91) 42%, rgba(236, 240, 247, 0.88)),
    var(--panel);
}

:root[data-theme="light"] .contact-panel::before {
  background:
    linear-gradient(90deg, rgba(250, 251, 253, 0.72), rgba(250, 251, 253, 0.86)),
    url("../assets/research-atlas-texture-light-web.jpg") center / cover no-repeat;
  opacity: 0.32;
}

.contact-panel h2 {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 500;
}

.contact-panel p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.side-index {
  position: fixed;
  right: 24px;
  top: 50%;
  z-index: 30;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.side-index a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--subtle);
  background: var(--panel);
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.side-index a.is-active,
.side-index a:hover {
  color: var(--gold-strong);
  border-color: var(--gold);
  transform: scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  padding: 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes avatarFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.35deg);
  }
}

@media (max-width: 1320px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .hero-grid,
  .evidence-grid,
  .activity-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    max-width: 420px;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-index {
    display: none;
  }
}

@media (max-width: 760px) {
  body::before {
    background-image: url("../assets/dreamy-site-bg-dark-mobile.jpg");
    background-position: center top;
    opacity: 0.56;
  }

  :root[data-theme="light"] body::before {
    background-image: url("../assets/dreamy-site-bg-light-mobile.jpg");
    background-position: center top;
    opacity: 0.66;
    filter: saturate(0.98) contrast(1.08) brightness(0.9);
  }

  body::after {
    background:
      radial-gradient(circle at 72% 12%, rgba(240, 125, 169, 0.16), transparent 240px),
      linear-gradient(90deg, rgba(10, 13, 25, 0.92), rgba(10, 13, 25, 0.62)),
      linear-gradient(180deg, rgba(10, 13, 25, 0.16) 0%, rgba(10, 13, 25, 0.72) 620px, rgba(10, 13, 25, 0.9) 100%);
  }

  :root[data-theme="light"] body::after {
    background:
      radial-gradient(ellipse at 44% 16%, rgba(220, 224, 237, 0.72), transparent 320px),
      radial-gradient(circle at 74% 14%, rgba(133, 130, 167, 0.18), transparent 240px),
      linear-gradient(90deg, rgba(230, 232, 241, 0.82), rgba(226, 228, 238, 0.5)),
      linear-gradient(180deg, rgba(230, 232, 241, 0.12) 0%, rgba(222, 224, 235, 0.5) 620px, rgba(233, 234, 241, 0.86) 100%);
  }

  .header-inner,
  .hero,
  .section {
    width: min(100% - 24px, 1220px);
  }

  .header-inner {
    gap: 12px;
    min-height: 66px;
  }

  .brand > span:not(.brand-mark) {
    display: block;
  }

  .brand {
    max-width: calc(100vw - 36px);
  }

  .brand strong {
    font-size: 14px;
  }

  .brand > span:not(.brand-mark) > span {
    font-size: 12px;
  }

  .brand-mark {
    display: grid;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .mobile-menu {
    display: inline-grid;
    place-items: center;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .segmented,
  .theme-toggle,
  .download-group {
    max-width: 100%;
    overflow-x: auto;
  }

  .header-time {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-grid {
    display: block;
  }

  .portrait-frame {
    width: min(300px, 100%);
    max-width: 100%;
    margin: 18px auto 36px;
  }

  .hero-title {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .hero-title span {
    display: block;
    margin-top: 8px;
    font-size: 22px;
  }

  .hero-statement {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .role-line,
  .hero-copy {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .link-button {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .portrait-frame img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .activity-list,
  .honors-grid,
  .skill-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .atlas-panel {
    min-height: auto;
  }

  .atlas-map {
    min-height: 640px;
    margin: 14px;
  }

  .hex-chart {
    top: 48%;
    width: min(78%, 300px);
  }

  .atlas-center {
    width: 132px;
    height: 132px;
  }

  .atlas-node {
    width: 112px;
    min-height: 96px;
  }

  .node-0 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
  }

  .node-1 {
    top: 22%;
    right: 3%;
  }

  .node-2 {
    right: 4%;
    bottom: 18%;
  }

  .node-3 {
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
  }

  .node-4 {
    left: 4%;
    bottom: 18%;
  }

  .node-5 {
    top: 22%;
    left: 3%;
  }

  .node-0:hover,
  .node-0.is-active,
  .node-3:hover,
  .node-3.is-active {
    transform: translateX(-50%) translateY(-4px);
  }

  .accordion-trigger {
    grid-template-columns: 32px 1fr auto;
    padding: 17px 14px;
  }

  .accordion-panel-inner {
    padding: 0 14px 18px 54px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
