/* ==========================================================
   Tokens
   ========================================================== */
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --glass: rgba(255, 255, 255, .72);
  --ink: #0b1626;
  --ink-2: #364559;
  --muted: #6b7a90;
  --line: #e4e9f2;
  --brand: #2346d8;
  --brand-2: #3d63f0;
  --accent: #0fb5a4;
  --accent-soft: #e3f8f5;
  --grad: linear-gradient(135deg, #2346d8 0%, #0fb5a4 100%);
  --grad-soft: linear-gradient(135deg, rgba(35, 70, 216, .08), rgba(15, 181, 164, .1));
  --dark: #0a1322;
  --shadow-sm: 0 1px 2px rgba(11, 22, 38, .05);
  --shadow: 0 2px 4px rgba(11, 22, 38, .04), 0 12px 32px -8px rgba(11, 22, 38, .1);
  --shadow-lg: 0 4px 8px rgba(11, 22, 38, .04), 0 32px 64px -16px rgba(11, 22, 38, .2);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: var(--display);
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d18;
    --surface: #0e1726;
    --surface-2: #142034;
    --glass: rgba(14, 23, 38, .72);
    --ink: #eef2f9;
    --ink-2: #c2cddd;
    --muted: #8b9ab0;
    --line: #1e2b40;
    --brand: #7b97ff;
    --brand-2: #93abff;
    --accent: #2fd4c1;
    --accent-soft: #0f2f30;
    --grad: linear-gradient(135deg, #5b7bff 0%, #2fd4c1 100%);
    --grad-soft: linear-gradient(135deg, rgba(91, 123, 255, .12), rgba(47, 212, 193, .1));
    --dark: #050a13;
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -10px rgba(11, 22, 38, .6); }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ==========================================================
   Header — floating glass pill
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; pointer-events: none; }
.header-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 10px 0 14px;
  max-width: calc(var(--container) - 32px);
  background: var(--glass); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 999px;
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--grad); color: #fff; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font: 700 17px var(--display); letter-spacing: -.01em; }
.brand-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.main-nav { margin-left: auto; }
.nav-list, .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s;
}
.nav-item > a:hover { color: var(--ink); background: var(--surface-2); }
.nav-item.is-active > a { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.sub-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5;
}
.sub-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px) scale(.98); min-width: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--surface-2); color: var(--ink); }
.sub-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad-soft); color: var(--brand); flex: none; }
.sub-ico .icon { width: 18px; height: 18px; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.tool-btn:hover { background: var(--surface-2); color: var(--ink); }
.lang-btn {
  display: grid; place-items: center; height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-decoration: none;
}
.lang-btn:hover { background: var(--brand); color: #fff; }
.menu-btn { display: none; }

.search-panel { pointer-events: auto; max-width: calc(var(--container) - 32px); margin: 10px auto 0; padding: 0 16px; }
.search-form { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); }
.search-form > .icon { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--font); color: var(--ink); outline: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; z-index: 1; overflow: hidden; margin-top: calc(-1 * (var(--header-h) + 6px)); padding: calc(var(--header-h) + 72px) 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #7c95ff; top: -160px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #5ee7d6; top: 180px; right: 28%; animation-delay: -6s; opacity: .4; }
.b3 { width: 360px; height: 360px; background: #c4b5fd; bottom: -160px; left: -100px; animation-delay: -12s; opacity: .45; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title {
  font: 800 clamp(48px, 7.6vw, 96px)/.98 var(--display); letter-spacing: -.045em; margin: 0 0 24px; padding-bottom: .06em;
  background: linear-gradient(120deg, var(--ink) 35%, var(--brand) 70%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; font-weight: 500; color: var(--ink-2); margin: 0 0 36px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-portrait { position: relative; margin: 0; justify-self: center; }
.portrait-ring { position: absolute; inset: -18px; border-radius: 44px; background: var(--grad); opacity: .16; transform: rotate(-4deg); }
.hero-portrait img {
  position: relative; display: block; width: min(360px, 72vw); aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 36px; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); background: var(--surface-2);
}
.float-chip {
  position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: bob 6s ease-in-out infinite;
}
.float-chip strong { font: 800 26px/1 var(--display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-chip small { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.chip-1 { left: -64px; bottom: 56px; }
.chip-2 { right: -44px; top: 40px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Roles – bento */
.role-grid { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.role-card {
  grid-column: span 2; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: 15.5px; font-weight: 500; line-height: 1.45;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.role-card:nth-child(1), .role-card:nth-child(2) { grid-column: span 3; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.role-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; flex: none; }

/* Stats */
.stats-band { position: relative; z-index: 2; margin-top: -40px; }
.stats {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;
  background: var(--dark); border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 20% 0%, rgba(124, 149, 255, .35), transparent), radial-gradient(500px 200px at 90% 100%, rgba(47, 212, 193, .3), transparent); }
.stat { position: relative; padding: 30px 24px; text-align: left; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat dd { margin: 0 0 8px; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.03em; color: #fff; }
.stat dt { color: rgba(255, 255, 255, .65); font-size: 14px; font-weight: 500; }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: 110px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font: 800 clamp(32px, 4.4vw, 54px)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 14px; }
.section-sub { color: var(--muted); margin: 0; font-size: 18.5px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px;
  background: var(--grad-soft); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.title-bar { display: none; }

/* About */
.about-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: start; }
.about-head { position: sticky; top: calc(var(--header-h) + 40px); }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bio-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 44px 24px; }
.bio-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 28px 28px 0 0; background: var(--grad); }
.bio { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; position: relative; max-height: 19em; overflow: hidden; }
.bio::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6em; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.bio.open { max-height: none; }
.bio.open::after { display: none; }
.bio p { text-align: justify; hyphens: auto; margin: 0 0 .9em; }
.bio strong, .bio b, .bio em, .bio i { font-weight: inherit; font-style: inherit; color: inherit; }
.bio-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 18px; border-radius: 999px; background: var(--surface-2); border: 0; font: 600 14.5px var(--font); color: var(--ink); cursor: pointer; transition: background .2s; }
.bio-more:hover { background: var(--line); }
.bio-more .icon { transition: transform .2s; }
.bio-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ==========================================================
   Cards (bento grid)
   ========================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.section-alt .card { background: var(--bg); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); opacity: 0; transition: opacity .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.card:hover::before { opacity: 1; }
.card-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow-sm); transition: background .35s, color .35s, border-color .35s; }
.card:hover .card-ico { background: var(--grad); color: #fff; border-color: transparent; }
.card-ico .icon { width: 26px; height: 26px; }
.card h3 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.card-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.card-go .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-go .icon { transform: translateX(5px); }

/* ==========================================================
   Prose
   ========================================================== */
.prose { color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose img { border-radius: 14px; }
.prose blockquote { margin: 1em 0; padding: 14px 22px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 14px 14px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.prose a { word-break: break-word; }
.notice { display: flex; gap: 10px; align-items: center; padding: 13px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, #f5b84a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #f5b84a 40%, transparent); color: var(--ink); font-size: 15px; }

/* ==========================================================
   Inner pages
   ========================================================== */
.page-hero { position: relative; overflow: hidden; margin-top: calc(-1 * (var(--header-h) + 6px)); padding: calc(var(--header-h) + 48px) 0 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -260px; border-radius: 50%; background: #7c95ff; filter: blur(90px); opacity: .35; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: 26%; top: -220px; border-radius: 50%; background: #5ee7d6; filter: blur(90px); opacity: .28; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 22px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-color: var(--ink-2); }
.page-hero-row { display: flex; gap: 22px; align-items: center; }
.page-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--grad); color: #fff; flex: none; box-shadow: 0 16px 32px -12px rgba(35, 70, 216, .55); }
.page-ico .icon { width: 34px; height: 34px; }
.page-hero h1 { font: 800 clamp(32px, 4.8vw, 58px)/1.04 var(--display); letter-spacing: -.035em; margin: 0; }
.page-hero .lead { color: var(--muted); margin: 10px 0 0; font-size: 18px; max-width: 720px; }

.page-layout { padding-top: 48px; padding-bottom: 96px; }
.page-layout.with-aside { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-h { font: 700 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px 8px; }
.aside-nav { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.aside-nav:last-child { margin-bottom: 0; }
.aside-nav a { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; transition: background .2s; }
.aside-nav a:hover { background: var(--surface-2); color: var(--ink); }
.aside-nav a[aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }

.page-main { min-width: 0; }
.page-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.toolbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { flex: 1 1 340px; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.filter:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.filter .icon { color: var(--muted); width: 18px; height: 18px; }
.filter input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); outline: none; }
.filter output { font-size: 13px; color: var(--muted); white-space: nowrap; }
.is-hidden { display: none !important; }
mark, .hl { background: color-mix(in srgb, #f5b84a 45%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

.accordion { display: grid; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc-item:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.acc-item[open] { box-shadow: var(--shadow); }
.acc-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font: 700 18.5px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-chev { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); transition: transform .3s var(--ease), background .3s, color .3s; }
.acc-item[open] .acc-chev { transform: rotate(180deg); background: var(--ink); color: var(--bg); }
.acc-item[open] summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 24px 26px 10px; }

.empty-state { text-align: center; padding: 72px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); }
.empty-state .icon { width: 48px; height: 48px; color: var(--brand); }
.updated { margin-top: 36px; font-size: 13.5px; color: var(--muted); }
.narrow-prose { max-width: 820px; margin-bottom: 32px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact-strip { padding: 80px 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.info-card { display: flex; gap: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card h3 { font-size: 16.5px; margin: 0 0 4px; }
.info-card p { margin: 0 0 4px; color: var(--ink-2); }
.info-card a { font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.info-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--grad); color: #fff; flex: none; }
.map-wrap { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; }

/* Search */
.search-big { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 26px; }
.search-big > .icon { color: var(--muted); }
.search-big input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--font); color: var(--ink); outline: none; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.results a { display: block; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.results a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.res-title { display: block; font-weight: 700; margin-bottom: 4px; font-family: var(--display); }
.res-snippet { display: block; color: var(--ink-2); font-size: 15px; }
.big-404 { font: 800 140px/1 var(--display); letter-spacing: -.06em; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: rgba(255, 255, 255, .7); padding-top: 80px; font-size: 15px; margin: 0 12px 12px; border-radius: 32px; }
.site-footer::before { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; border-radius: 50%; background: #2346d8; filter: blur(120px); opacity: .35; }
.site-footer > * { position: relative; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-bottom: 56px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer .brand-text strong { font-size: 22px; }
.brand-footer .brand-text small { color: rgba(255, 255, 255, .55); white-space: normal; max-width: none; }
.footer-h { color: #fff; font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.contact-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 28px; font-size: 13.5px; color: rgba(255, 255, 255, .5); }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); transform: translateY(12px); z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: #fff; background: var(--brand); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; background: var(--bg); margin: 0;
    overflow-y: auto; padding: calc(var(--header-h) + 20px) 28px 40px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; max-width: 640px; margin: 0 auto; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 18px 4px; font: 700 22px var(--display); letter-spacing: -.02em; background: none !important; color: var(--ink); }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: block; }
  .has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
  .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 14px; min-width: 0; background: transparent; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { transform: none; }
  .has-sub.open > .sub-menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-portrait { justify-self: start; margin-left: 50px; }
  .role-card, .role-card:nth-child(1), .role-card:nth-child(2) { grid-column: span 3; }
  .page-layout.with-aside { grid-template-columns: 1fr; gap: 0; }
  .page-aside { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-head { position: static; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header { padding: 10px 0; }
  .header-inner { height: 56px; margin: 0 10px; padding: 0 6px 0 10px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .tool-btn { width: 38px; height: 38px; }
  .lang-btn { height: 38px; padding: 0 12px; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; }
  .hero-portrait { margin-left: 0; justify-self: center; }
  .hero-portrait img { width: 230px; }
  .chip-1 { left: -30px; bottom: 30px; }
  .chip-2 { right: -30px; top: 20px; }
  .float-chip { padding: 10px 14px; }
  .float-chip strong { font-size: 20px; }
  .role-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .role-card, .role-card:nth-child(1), .role-card:nth-child(2) { grid-column: auto; flex-direction: row; align-items: center; }
  .section { padding: 72px 0; }
  .bio-card { padding: 28px 22px 18px; border-radius: 22px; }
  .stat { padding: 22px 18px; }
  .stat dd { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { margin: 0 6px 6px; border-radius: 24px; padding-top: 56px; }
  .acc-item summary { padding: 18px; font-size: 16.5px; }
  .acc-body { padding: 18px 18px 6px; }
  .page-hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 40px; }
  .page-hero-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-ico { width: 56px; height: 56px; border-radius: 18px; }
  .page-ico .icon { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Print (CV)
   ========================================================== */
@media print {
  .site-header, .site-footer, .page-aside, .page-toolbar, .to-top, .contact-strip, .notice { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { margin: 0; padding: 0 0 12pt; background: none; border: 0; }
  .page-hero::before, .page-hero::after, .page-ico, .crumbs { display: none; }
  .page-hero h1 { color: #000; }
  .page-layout.with-aside { display: block; padding: 0; }
  .acc-item { box-shadow: none; border: 0; }
  .acc-item summary { padding: 12pt 0 6pt; }
  .acc-item > .acc-body { display: block !important; padding: 0; }
  .prose { color: #000; }
  .reveal { opacity: 1; transform: none; }
  a { color: #000; text-decoration: none; }
}

/* ==========================================================
   Style switcher (preview only)
   ========================================================== */
.style-switcher {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(10, 19, 34, .92); color: #fff; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; max-width: calc(100vw - 24px); overflow-x: auto;
}
.ss-label { padding: 0 10px 0 12px; font-weight: 700; opacity: .6; white-space: nowrap; }
.ss-opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ss-opt:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ss-opt.on { background: #fff; color: #0a1322; }
.ss-dot { width: 12px; height: 12px; border-radius: 50%; }
.ss-modern .ss-dot { background: linear-gradient(135deg, #2346d8, #0fb5a4); }
.ss-editorial .ss-dot { background: linear-gradient(135deg, #7a1f2b, #b8925a); }
.ss-dark .ss-dot { background: linear-gradient(135deg, #0b0f1a, #a78bfa); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }

/* ==========================================================
   Style B — "Classic academic" (editorial, serif, burgundy & gold)
   ========================================================== */
html[data-style="editorial"] {
  --bg: #faf7f1; --surface: #ffffff; --surface-2: #f3eee4; --glass: rgba(250, 247, 241, .9);
  --ink: #1d1a17; --ink-2: #3f3a33; --muted: #7a7166; --line: #e6dfd2;
  --brand: #7a1f2b; --brand-2: #962a38; --accent: #b8925a; --accent-soft: #f5eddf;
  --grad: linear-gradient(135deg, #7a1f2b, #a3423f); --grad-soft: linear-gradient(135deg, rgba(122, 31, 43, .06), rgba(184, 146, 90, .1));
  --dark: #241a17; --radius: 6px; --radius-sm: 4px;
  --display: "Noto Serif", Georgia, serif;
  --shadow: 0 1px 2px rgba(29, 26, 23, .05), 0 8px 24px -10px rgba(29, 26, 23, .12);
  --shadow-lg: 0 20px 40px -18px rgba(29, 26, 23, .25);
  color-scheme: light;
}
html[data-style="editorial"] body { font-size: 17.5px; }
html[data-style="editorial"] h1, html[data-style="editorial"] h2, html[data-style="editorial"] h3 { letter-spacing: -.01em; font-weight: 600; }
/* Full-width classic header */
html[data-style="editorial"] .site-header { padding: 0; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-style="editorial"] .header-inner { height: 84px; max-width: var(--container); background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 28px; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-style="editorial"] .brand-mark { border-radius: 4px; background: var(--brand); }
html[data-style="editorial"] .brand-text strong { font-family: var(--display); font-size: 20px; font-weight: 600; }
html[data-style="editorial"] .nav-item > a { border-radius: 0; padding: 30px 12px; background: none !important; border-bottom: 2px solid transparent; font-size: 15px; }
html[data-style="editorial"] .nav-item > a:hover, html[data-style="editorial"] .nav-item.is-active > a { border-bottom-color: var(--accent); color: var(--brand); }
html[data-style="editorial"] .sub-menu { border-radius: 4px; top: 100%; }
html[data-style="editorial"] .sub-ico { border-radius: 4px; background: var(--accent-soft); color: var(--brand); }
html[data-style="editorial"] .lang-btn { border-radius: 4px; background: transparent; color: var(--brand); border: 1px solid var(--brand); }
html[data-style="editorial"] .lang-btn:hover { background: var(--brand); color: #fff; }
html[data-style="editorial"] .btn { border-radius: 3px; letter-spacing: .02em; }
html[data-style="editorial"] .btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
html[data-style="editorial"] .btn-primary:hover { background: var(--ink); }
/* Hero: calm, no blobs or grid */
html[data-style="editorial"] .hero { margin-top: 0; padding: 88px 0 96px; border-bottom: 1px solid var(--line); }
html[data-style="editorial"] .hero-bg { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
html[data-style="editorial"] .hero-bg::after, html[data-style="editorial"] .blob { display: none; }
html[data-style="editorial"] .eyebrow { background: none; border: 0; border-bottom: 1px solid var(--accent); border-radius: 0; padding: 0 0 6px; box-shadow: none; color: var(--brand); letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; }
html[data-style="editorial"] .pulse { display: none; }
html[data-style="editorial"] .hero-title { font-weight: 600; letter-spacing: -.02em; line-height: 1.05; background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
html[data-style="editorial"] .hero-lead { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--brand); }
html[data-style="editorial"] .portrait-ring { inset: 14px -14px -14px 14px; border-radius: 2px; background: none; border: 1px solid var(--accent); opacity: 1; transform: none; }
html[data-style="editorial"] .hero-portrait img { border-radius: 2px; border: 0; }
html[data-style="editorial"] .float-chip { display: none; }
html[data-style="editorial"] .role-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
html[data-style="editorial"] .role-card { border-radius: 0; background: var(--surface); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
html[data-style="editorial"] .role-card:hover { transform: none; box-shadow: none; background: var(--accent-soft); }
html[data-style="editorial"] .role-ico { border-radius: 50%; background: none; color: var(--brand); border: 1px solid var(--accent); }
html[data-style="editorial"] .stats-band { margin-top: 0; padding: 0; background: var(--brand); }
html[data-style="editorial"] .stats { background: none; border-radius: 0; box-shadow: none; }
html[data-style="editorial"] .stats::before { display: none; }
html[data-style="editorial"] .stat { text-align: center; border-color: rgba(255, 255, 255, .15); }
html[data-style="editorial"] .stat dd { font-weight: 600; letter-spacing: 0; }
html[data-style="editorial"] .stat dt { color: #ecd9b8; }
html[data-style="editorial"] .kicker { background: none; padding: 0; border-radius: 0; color: var(--accent); letter-spacing: .16em; }
html[data-style="editorial"] .title-bar { display: block; width: 48px; height: 2px; background: var(--accent); margin: 2px 0 24px; border-radius: 0; }
html[data-style="editorial"] .center-head .title-bar { margin-left: auto; margin-right: auto; }
html[data-style="editorial"] .section-title { font-weight: 600; letter-spacing: -.01em; }
html[data-style="editorial"] .bio-card { border-radius: 2px; box-shadow: none; }
html[data-style="editorial"] .bio-card::before { border-radius: 0; height: 3px; background: var(--accent); }
html[data-style="editorial"] .bio { font-family: var(--display); font-size: 17.5px; line-height: 1.8; }
html[data-style="editorial"] .bio-more { border-radius: 2px; background: none; border: 1px solid var(--line); color: var(--brand); }
html[data-style="editorial"] .card { border-radius: 2px; }
html[data-style="editorial"] .card::before { background: var(--accent-soft); }
html[data-style="editorial"] .card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: none; }
html[data-style="editorial"] .card-ico { border-radius: 50%; box-shadow: none; border-color: var(--accent); }
html[data-style="editorial"] .card:hover .card-ico { background: var(--brand); }
html[data-style="editorial"] .card-go { color: var(--brand); }
html[data-style="editorial"] .page-hero { margin-top: 0; padding: 56px 0; background: var(--surface); }
html[data-style="editorial"] .page-hero::before, html[data-style="editorial"] .page-hero::after { display: none; }
html[data-style="editorial"] .page-ico { border-radius: 50%; background: none; color: var(--brand); border: 1px solid var(--accent); box-shadow: none; }
html[data-style="editorial"] .page-hero h1 { font-weight: 600; letter-spacing: -.01em; }
html[data-style="editorial"] .crumbs a { border-radius: 0; background: none; border: 0; padding: 0; color: var(--brand); }
html[data-style="editorial"] .aside-sticky, html[data-style="editorial"] .acc-item, html[data-style="editorial"] .info-card,
html[data-style="editorial"] .empty-state, html[data-style="editorial"] .map-wrap, html[data-style="editorial"] .results a { border-radius: 2px; }
html[data-style="editorial"] .aside-nav a { border-radius: 0; border-left: 2px solid transparent; }
html[data-style="editorial"] .aside-nav a[aria-current] { background: var(--accent-soft); color: var(--brand); border-left-color: var(--brand); }
html[data-style="editorial"] .acc-item summary { font-weight: 600; }
html[data-style="editorial"] .acc-item[open] .acc-chev { background: var(--brand); color: #fff; }
html[data-style="editorial"] .filter, html[data-style="editorial"] .search-big, html[data-style="editorial"] .search-form { border-radius: 3px; }
html[data-style="editorial"] .info-ico { border-radius: 50%; background: none; color: var(--brand); border: 1px solid var(--accent); }
html[data-style="editorial"] .site-footer { margin: 0; border-radius: 0; }
html[data-style="editorial"] .site-footer::before { display: none; }
html[data-style="editorial"] .contact-list .icon { color: var(--accent); }
html[data-style="editorial"] .to-top { border-radius: 3px; background: var(--brand); color: #fff; }

/* ==========================================================
   Style C — "Dark premium" (deep navy, violet glow)
   ========================================================== */
html[data-style="dark"] {
  --bg: #070a12; --surface: #0e1220; --surface-2: #161b2d; --glass: rgba(14, 18, 32, .7);
  --ink: #f4f5fb; --ink-2: #c4c8da; --muted: #8a90a8; --line: #1f2538;
  --brand: #a78bfa; --brand-2: #c4b5fd; --accent: #5eead4; --accent-soft: #10272a;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .1));
  --dark: #04060c;
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html[data-style="dark"] .b1 { background: #7c3aed; opacity: .45; }
html[data-style="dark"] .b2 { background: #0891b2; opacity: .35; }
html[data-style="dark"] .b3 { background: #db2777; opacity: .22; }
html[data-style="dark"] .hero-bg::after { opacity: .35; }
html[data-style="dark"] .hero-title { background: linear-gradient(120deg, #fff 30%, #c4b5fd 65%, #5eead4); -webkit-background-clip: text; background-clip: text; }
html[data-style="dark"] .btn-primary { background: #fff; color: #070a12; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 30px -8px rgba(167, 139, 250, .6); }
html[data-style="dark"] .btn-primary:hover { background: var(--brand); color: #070a12; }
html[data-style="dark"] .lang-btn { background: #fff; color: #070a12; }
html[data-style="dark"] .role-card, html[data-style="dark"] .card, html[data-style="dark"] .bio-card, html[data-style="dark"] .acc-item,
html[data-style="dark"] .info-card, html[data-style="dark"] .aside-sticky { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--surface); }
html[data-style="dark"] .card:hover, html[data-style="dark"] .role-card:hover { border-color: rgba(167, 139, 250, .45); box-shadow: 0 0 0 1px rgba(167, 139, 250, .25), 0 24px 60px -20px rgba(139, 92, 246, .45); }
html[data-style="dark"] .card-ico { background: var(--surface-2); color: var(--brand); }
html[data-style="dark"] .stats { background: linear-gradient(135deg, #1a1036, #0b1f2e); border: 1px solid var(--line); }
html[data-style="dark"] .stat dd { background: linear-gradient(120deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-style="dark"] .page-hero::before { background: #7c3aed; opacity: .4; }
html[data-style="dark"] .page-hero::after { background: #0891b2; opacity: .3; }
html[data-style="dark"] .aside-nav a[aria-current] { background: var(--grad); color: #fff; }
html[data-style="dark"] .acc-item[open] .acc-chev { background: var(--grad); color: #fff; }
html[data-style="dark"] .site-footer { background: #04060c; border: 1px solid var(--line); }
html[data-style="dark"] .site-footer::before { background: #7c3aed; opacity: .3; }
html[data-style="dark"] .to-top { background: #fff; color: #070a12; }
html[data-style="dark"] .notice { background: #2a2210; color: var(--ink); }

@media (max-width: 1180px) {
  html[data-style="editorial"] .nav-item > a { padding: 18px 4px; border-bottom: 0; }
  html[data-style="editorial"] .main-nav { padding-top: 104px; }
}
@media (max-width: 640px) {
  html[data-style="editorial"] .header-inner { height: 68px; padding: 0 16px; margin: 0; }
  html[data-style="editorial"] .hero { padding: 48px 0 64px; }
  .style-switcher { bottom: 12px; font-size: 12.5px; }
  .ss-label { display: none; }
  .ss-opt { padding: 8px 11px; }
  .to-top { bottom: 76px; }
}
@media print { .style-switcher { display: none !important; } }
