/* ---------- Темы ---------- */
:root {
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --ink: #18202f;
  --muted: #5c6578;
  --faint: #8a93a6;
  --line: #d9dde6;
  --accent: #2f5bd3;
  --accent-soft: rgba(47, 91, 211, 0.09);
  --star: #2f5bd3;
  --sky-star: rgba(24, 32, 47, 0.28);
  --glow: rgba(47, 91, 211, 0.18);
  --shadow: 0 1px 2px rgba(24, 32, 47, 0.04), 0 8px 24px rgba(24, 32, 47, 0.05);
  --radius: 14px;
  --maxw: 880px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-elev: #121a2e;
  --ink: #e7eaf3;
  --muted: #a3acc2;
  --faint: #6f7a93;
  --line: #24304b;
  --accent: #8fb0ff;
  --accent-soft: rgba(143, 176, 255, 0.1);
  --star: #f3f5ff;
  --sky-star: rgba(231, 236, 255, 0.55);
  --glow: rgba(143, 176, 255, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--bg-elev); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Звездное небо на фоне */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky svg { width: 100%; height: 100%; display: block; }
.sky circle { fill: var(--sky-star); }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); }
.controls { margin-left: auto; display: flex; gap: 8px; }
.ctl {
  font: inherit; font-size: 14px; font-weight: 600;
  min-width: 40px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .2s ease;
}
.ctl:hover { border-color: var(--accent); }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }

/* ---------- Мини-карта разделов ---------- */
.mapnav {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%); z-index: 10;
  display: none;
}
.mapnav ol { list-style: none; margin: 0; padding: 0; position: relative; }
.mapnav ol::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line);
}
.mapnav li { position: relative; }
.mapnav a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0; color: var(--faint); font-size: 13px; font-weight: 600;
}
.mapnav a:hover { text-decoration: none; color: var(--ink); }
.mapnav .dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: var(--bg); border: 1.5px solid var(--faint);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.mapnav .lbl { opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.mapnav:hover .lbl, .mapnav a.active .lbl { opacity: 1; transform: none; }
.mapnav a.active { color: var(--ink); }
.mapnav a.active .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
@media (min-width: 1180px) { .mapnav { display: block; } }

.mapnav-mobile { display: none; }
@media (max-width: 1179px) {
  .mapnav-mobile {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .mapnav-mobile::-webkit-scrollbar { display: none; }
  .mapnav-mobile a {
    flex: none; font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 6px 10px; border-radius: 999px;
  }
  .mapnav-mobile a.active { color: var(--accent); background: var(--accent-soft); }
  .mapnav-mobile a:hover { text-decoration: none; }
  .brand-name { display: none; }
}

/* ---------- Разделы ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 72px 0 24px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow);
}
.sec h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 24px; }
.sec h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 12px; }

/* ---------- Центр карты (первый экран) ---------- */
.sec-center { padding-top: 56px; }
.hero { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.photo-wrap { position: relative; width: 200px; aspect-ratio: 4 / 5; }
.photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block;
  box-shadow: var(--shadow);
}
.photo-wrap::after {
  content: ""; position: absolute; inset: -10px; border-radius: 28px;
  border: 1px solid var(--line); pointer-events: none;
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 6px 0 8px; }
.hero .role { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--ink); background: var(--bg-elev);
  transition: transform .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0b1020; }
.about { margin-top: 44px; font-size: 17px; color: var(--ink); }
.about p { margin-bottom: 14px; }
.about p:first-child { font-size: 19px; font-weight: 600; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .photo-wrap { width: 150px; margin-left: 8px; }
  .photo-wrap::after { inset: -7px; border-radius: 26px; }
}

/* ---------- Цифры ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
}
.metric .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.metric .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Навыки ---------- */
.skill-group + .skill-group { margin-top: 24px; }
.skill-group h3 { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.skill-group .chip { color: var(--ink); font-size: 14px; }

/* ---------- Опыт ---------- */
.company-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.period { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.track { position: relative; padding-left: 30px; margin-top: 20px; }
.track::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.role-card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.role-card + .role-card { margin-top: 20px; }
.role-card::before {
  content: ""; position: absolute; left: -30px; top: 30px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.role-card.current::before { background: var(--accent); box-shadow: 0 0 0 6px var(--glow); }
.role-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.role-top .dates { color: var(--muted); font-size: 14px; font-weight: 600; }
.role-card p { color: var(--ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0; }
.meta-row .k { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.meta-row .chip { font-size: 13px; padding: 3px 9px; }
.key {
  margin: 16px 0; padding: 12px 14px; border-radius: 10px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.key .k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.block { margin-top: 20px; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.block-head h4 { margin: 0; font-size: 16px; }
.toggle-all {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--accent);
  background: none; border: 0; cursor: pointer; padding: 4px 0;
}
.items { list-style: none; margin: 0; padding: 0; }
.items > li { border-top: 1px solid var(--line); }
.items > li:last-child { border-bottom: 1px solid var(--line); }
.items .plain { padding: 10px 0 10px 22px; position: relative; }
.items .plain::before, .items summary::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.items details > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 11px 32px 11px 22px; font-weight: 700;
}
.items details > summary::-webkit-details-marker { display: none; }
.items details > summary::after {
  content: ""; position: absolute; right: 6px; top: 17px; width: 8px; height: 8px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg);
  transition: transform .2s ease;
}
.items details[open] > summary::after { transform: rotate(-135deg); top: 21px; }
.items details > summary:hover { color: var(--accent); }
.items .body { padding: 0 0 14px 22px; color: var(--ink); }
.items .body ul { margin: 8px 0 0; padding-left: 18px; }
.items .body li { margin: 6px 0; }

/* Ранний опыт */
.early-list { display: grid; gap: 12px; }
.early-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.early-card .company { font-size: 14px; color: var(--muted); font-weight: 600; }
.early-card .role-top { margin-bottom: 4px; }
.early-card h3 { font-size: 17px; }
.early-card details { margin-top: 8px; }
.early-card summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent); }
.early-card .body { margin-top: 10px; }
.early-card ul { padding-left: 18px; margin: 8px 0; }

/* Обучение */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.learn-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.learn-card.wide { grid-column: 1 / -1; }
.learn-card h3 { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.courses { list-style: none; padding: 0; margin: 0; }
.courses li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 5px 0; }
.courses .y { color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .learn-grid { grid-template-columns: 1fr; } }

/* Подкаст и контакты */
.panel {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.panel p { font-size: 17px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.contacts a {
  display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s ease, transform .2s ease;
}
.contacts a:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.contacts .k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contacts .v { font-weight: 700; word-break: break-word; }

.foot { max-width: var(--maxw); margin: 40px auto 0; padding: 28px 24px 48px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

@media (max-width: 640px) {
  main { padding: 0 16px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .sec { padding-top: 56px; }
  .role-card { padding: 18px; }
  .track { padding-left: 22px; }
  .track::before { left: 4px; }
  .role-card::before { left: -24px; }
  .panel { padding: 20px; }
}

@media print {
  .topbar, .mapnav, .sky { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Звездное небо на первом экране ---------- */
.skypanel {
  --s-ink: #eef1fa; --s-muted: #9ea9c4; --s-accent: #9db9ff; --s-line: rgba(157, 185, 255, 0.22);
  position: relative; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100vw - 48px));
  margin-top: 8px; padding: 28px 28px 20px;
  border-radius: 26px; overflow: hidden;
  color: var(--s-ink);
  background:
    radial-gradient(1200px 520px at 70% 10%, rgba(76, 104, 190, 0.35), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(120, 80, 170, 0.18), transparent 60%),
    linear-gradient(180deg, #0d1430 0%, #070b18 100%);
  border: 1px solid rgba(157, 185, 255, 0.16);
  box-shadow: 0 20px 60px rgba(7, 11, 24, 0.35);
}
.sec-center { padding-top: 24px; }
.sky-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sky-name { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.sky-role { font-size: clamp(16px, 2vw, 20px); font-weight: 600; color: var(--s-accent); margin-top: 6px; }
.skypanel .actions { margin-top: 0; }
.skypanel .btn { background: transparent; color: var(--s-ink); border-color: rgba(238, 241, 250, 0.25); }
.skypanel .btn:hover { border-color: var(--s-accent); }
.skypanel .btn.primary { background: var(--s-accent); border-color: var(--s-accent); color: #0b1020; }

.sky-body { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: center; margin-top: 8px; }
.sky-map { position: relative; }
.sky-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sky-hint { position: absolute; left: 4px; bottom: 2px; font-size: 13px; color: var(--s-muted); }

.sky-svg .dust { fill: rgba(230, 236, 255, 0.55); animation: twinkle 5s ease-in-out var(--d) infinite alternate; }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.9; } }

.sky-svg .edge {
  stroke: var(--s-line); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.4s ease forwards; animation-delay: calc(0.6s + var(--i) * 0.08s);
  transition: stroke .25s ease, stroke-width .25s ease;
}
.sky-svg .edge.on { stroke: rgba(157, 185, 255, 0.75); stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.sky-svg .star { cursor: pointer; outline: none; opacity: 0; animation: appear .6s ease forwards; animation-delay: calc(var(--i) * 0.07s); }
@keyframes appear { to { opacity: 1; } }
.sky-svg .hit { fill: transparent; }
.sky-svg .halo { fill: rgba(157, 185, 255, 0); transition: fill .25s ease; }
.sky-svg .core { fill: #f3f5ff; filter: drop-shadow(0 0 6px rgba(190, 210, 255, 0.9)); transition: fill .25s ease; transform-box: fill-box; transform-origin: center; }
.sky-svg .ring { fill: none; stroke: rgba(238, 241, 250, 0.5); stroke-width: 2; transition: stroke .25s ease; }
.sky-svg .lbl { fill: var(--s-muted); font-size: 17px; font-weight: 700; font-family: inherit; transition: fill .25s ease; pointer-events: none; }
.sky-svg .star:hover .lbl, .sky-svg .star.on .lbl { fill: var(--s-ink); }
.sky-svg .star.on .halo { fill: rgba(157, 185, 255, 0.16); }
.sky-svg .star.on .core { fill: var(--s-accent); transform: scale(1.35); }
.sky-svg .star.on .ring { stroke: var(--s-accent); }
.sky-svg .star:focus-visible .halo { fill: rgba(157, 185, 255, 0.28); }

.sky-card {
  align-self: stretch; min-height: 300px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(157, 185, 255, 0.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sky-card.swap > * { animation: cardIn .35s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sky-card h3 { font-size: 22px; letter-spacing: -0.01em; margin: 0; color: var(--s-ink); }
.sky-card p { margin: 0; color: var(--s-ink); font-size: 15px; line-height: 1.55; }
.sc-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s-accent); }
.sc-role { color: var(--s-accent); font-weight: 600; margin-top: -4px; }
.sky-card .chips { gap: 6px; }
.sky-card .chip { background: transparent; color: var(--s-ink); border-color: rgba(238, 241, 250, 0.2); font-size: 13px; padding: 3px 9px; }
.sc-metrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-metrics b { display: block; font-size: 19px; }
.sc-metrics span, .sc-list span { font-size: 13px; color: var(--s-muted); }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-list li { display: flex; flex-direction: column; }
.sc-link { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--s-accent); }

.about { margin-top: 40px; }

@media (max-width: 1000px) {
  .sky-body { grid-template-columns: 1fr; }
  .sky-card { min-height: 0; }
}
@media (max-width: 699px) {
  .skypanel { width: calc(100vw - 32px); padding: 20px 16px 16px; border-radius: 20px; }
  .sky-svg .lbl { font-size: 15px; }
  .sky-hint { position: static; margin-top: 4px; }
  .skypanel .actions { gap: 8px; }
  .skypanel .btn { padding: 9px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-svg .dust, .sky-svg .edge, .sky-svg .star { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .sky-card.swap > * { animation: none; }
}

/* ---------- Одна карта на странице ---------- */
.topbar { border-bottom: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; }
main { max-width: none; padding: 0; }
.sec-center { padding: 0 0 28px; }
.skypanel { margin-top: 0; min-height: calc(100vh - 92px); min-height: calc(100dvh - 92px); display: flex; flex-direction: column; }
.sky-body { flex: 1; }
.sc-link { font: inherit; font-weight: 700; color: var(--s-accent); background: none; border: 0; padding: 6px 0 0; text-align: left; cursor: pointer; align-self: flex-start; }
.sc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Попап раздела ---------- */
.modal {
  width: min(860px, calc(100vw - 32px)); max-height: min(88vh, 960px); max-height: min(88dvh, 960px);
  padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(7, 11, 24, 0.45);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .22s ease; }
.modal.closing { animation: modalOut .18s ease forwards; }
.modal::backdrop { background: rgba(5, 8, 18, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open]::backdrop { animation: fadeIn .22s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-body { overflow-y: auto; padding: 36px 36px 32px; overscroll-behavior: contain; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--bg-elev); border: 1px solid var(--line);
}
.modal-close:hover { border-color: var(--accent); }
.modal-body .sec h2, .modal-body h2 { padding-right: 48px; }
.modal-body .about { margin-top: 20px; font-size: 16.5px; }
.modal-body .sc-role { color: var(--accent); font-weight: 600; margin: 2px 0 10px; }
.about-head { display: flex; gap: 20px; align-items: center; }
.about-head img { width: 96px; height: 120px; object-fit: cover; border-radius: 16px; flex: none; }
.about-head h3 { font-size: 22px; margin: 0; }
.modal-body .track { margin-top: 12px; }
@media (max-width: 640px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .modal-body { padding: 28px 16px 24px; }
  .about-head img { width: 76px; height: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal[open], .modal.closing, .modal[open]::backdrop { animation: none; }
}
.modal-body h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 20px; }
.modal-body h3 { margin: 0; }
