:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --paper: #251d31;
  --muted: #514859;
  --soft: #615868;
  --accent: #665087;
  --line: #ded6df;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 1rem/1.6 var(--sans); }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 400 4rem/.97 var(--serif); letter-spacing: -.065em; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
html [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 1rem; left: 1rem; z-index: 10; background: var(--paper); color: var(--bg); padding: .6rem 1rem; }
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(1.4rem,5vw,5rem); height: 76px; border-bottom: 1px solid var(--line);
  position: relative; z-index: 5; background: var(--bg);
}
.wordmark { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; color: var(--paper); font-size: .98rem; font-weight: 650; letter-spacing: -.02em; }
nav { height: 100%; display: flex; gap: clamp(1rem,3.2vw,3.1rem); align-items: stretch; }
nav a { position: relative; display: grid; align-content: center; color: var(--muted); font-size: .92rem; }
nav a:hover, .nav-current { color: var(--paper); }
.nav-current::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.language-switch { display: flex; align-items: center; gap: .25rem; font: 650 .77rem/1 var(--mono); }
.language-switch > * { color: var(--accent); padding: .42rem .35rem; border-radius: 4px; }
.language-switch [aria-current="true"], .language-switch a:hover { background: #eae1ef; }
.header-contact { border: 1px solid #bfb2c9; border-radius: 999px; font-size: .92rem; padding: .42rem 1rem; color: var(--accent); }
.header-contact:hover { background: #ece4f2; border-color: var(--accent); }
.explore-link:hover .down-icon { background: #241e34; border-color: var(--accent); }
.atlas {
  color-scheme: dark;
  --paper: #f1edf6;
  --muted: #b4b4c4;
  --soft: #9397aa;
  --accent: #c7b1fb;
  --line: #252838;
  color: var(--paper);
  border-bottom: 1px solid var(--line); position: relative; background: #080d17; }
.hero-stage {
  min-height: clamp(610px, 78svh, 820px); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 58% 42%,#142238 0%,#0b1322 39%,#080d17 73%);
}
#stars { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; z-index: -1; }
.hero-intro {
  position: absolute; left: max(5%,calc((100% - 1280px)/2)); top: 50%; transform: translateY(-49%);
  width: min(34%, 420px); pointer-events: none; z-index: 2;
}
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--accent); text-transform: uppercase; font: 600 .81rem/1.4 var(--mono); letter-spacing: .13em; }
.eyebrow span:first-child { width: 19px; height: 1px; background: var(--accent); flex: none; }
.hero-intro h1 { font-size: clamp(3.75rem, 6.65vw, 7.2rem); margin: 1.6rem 0 1.4rem; text-shadow: 0 0 35px #070c17, 0 1px 20px #070c17; }
.hero-intro .preferred-name { font-size: .48em; letter-spacing: -.02em; }
.hero-deck { max-width: 260px; color: #c5c4d4; line-height: 1.58; font-size: clamp(1rem,1.45vw,1.17rem); text-shadow: 0 0 9px #080c15; }
.explore-link { pointer-events: auto; display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.28rem; color: var(--paper); font-size: .91rem; width: fit-content; }
.down-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #574962; line-height: 1; color: var(--accent); }
.globe-wrap {
  position: absolute; top: 50%; left: 56%; transform: translate(-50%, -50%); width: min(51vw, 75svh, 755px);
  aspect-ratio: 1; z-index: 1; pointer-events: none;
}
.earth {
  position: absolute; inset: 4.5%; border-radius: 50%; box-shadow: -14px -10px 48px -21px #5283da76, 4px 12px 60px -30px #3f6cca9c;
  background: #0a1425;
}
#globe { width: 100%; height: 100%; display: block; border-radius: 50%; touch-action: pan-y; cursor: grab; pointer-events: auto; opacity: 0; transition: opacity .16s; }
#globe.ready { opacity: 1; }
#globe.grabbing { cursor: grabbing; }
#globe:focus-visible { outline-offset: 6px; }
.orbit { position: absolute; aspect-ratio: 1; border: 1px solid #758bb52c; border-radius: 50%; }
.orbit-inner { inset: -1%; border-color: #849fce35; mask-image: linear-gradient(125deg, black 0%,transparent 37%,transparent 47%,black 70%); }
.orbit-outer { inset: -6.5%; border-style: dashed; border-color: #8ba7d02c; mask-image: linear-gradient(145deg, black 0%,transparent 48%,black 76%); }
.axis { position: absolute; font: .76rem var(--mono); color: #a3b1cc; letter-spacing: .1em; }
.axis-n { left: 50%; top: -5%; transform: translateX(-50%); }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; pointer-events: auto; background: none; border: none; width: 28px; height: 28px; padding: 0; transform: translate(-50%,-50%); display: grid; place-items: center; border-radius: 50%; }
.pin::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5dbff; box-shadow: 0 0 9px #e7d9ff; }
.pin.active { border: 1px solid #dac6ffbb; width: 30px; height: 30px; box-shadow: 0 0 20px #a391ef89, inset 0 0 16px #8759bd63; z-index: 2; }
.pin[data-kind="education"]::after { background: #99efd7; box-shadow: 0 0 9px #55ecc4; }
.pin[data-kind="origin"]::after { background: #fff; }
.pin.active::after { width: 8px; height: 8px; background: #fff5ff; }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#leader-path { stroke: #d6c1ff; stroke-width: 1.15; fill: none; opacity: .9; }
.location-card {
  position: absolute; z-index: 4; right: max(5%,calc((100% - 1280px)/2)); bottom: clamp(18px,3.2svh,34px);
  width: clamp(245px, 22vw, 324px); padding: clamp(16px,1.8vw,25px);
  border: 1px solid #8572b27a; border-radius: 12px;
  background: linear-gradient(132deg,#17192aee,#0c111eed); box-shadow: 0 18px 55px #05081274;
  backdrop-filter: blur(17px);
}
.location-meta, .location-footer { display: flex; justify-content: space-between; gap: .55rem; color: #b5b0c5; font: .76rem/1.5 var(--mono); }
.location-meta { align-items: center; margin-bottom: .65rem; }
.location-tag { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.location-card h2 { font-size: clamp(1.65rem,2.7vw,2.65rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.location-country { color: #c8b8ea; margin-top: .22rem; font-size: .9rem; }
.location-story { color: #d2cfdf; font-size: .94rem; line-height: 1.5; margin: .3rem 0 .5rem; }
.location-role { margin-top: .7rem; font: 650 .92rem/1.35 var(--sans); color: var(--paper); }
.location-date { min-height: .5rem; color: #b5b0c5; font: .76rem/1.4 var(--mono); margin-bottom: .78rem; }
.location-date:empty { display: none; }
#location-details:has(.location-date:empty) { padding-bottom: .45rem; }
.experience-options { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .68rem; }
.experience-options button { border: 1px solid #4f4567; border-radius: 50px; padding: .16rem .5rem; background: #191a2a; color: #d0c5e5; font-size: .77rem; }
.experience-options button[aria-pressed="true"] { background: #34274c; color: #f4eaff; border-color: #a98de1; }
.location-footer { border-top: 1px solid #50456576; padding-top: .7rem; flex-wrap: wrap; }
.atlas-controls { padding: .8rem max(5%,calc((100% - 1280px)/2)) .65rem; border-top: 1px solid var(--line); }
.controls-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; }
#globe-help { font-size: .88rem; color: #b7bacb; }
#globe-help span { color: var(--accent); padding-right: .38rem; }
.location-nav { display: flex; align-items: center; gap: .35rem; }
.location-nav > button { background: #121725; color: var(--accent); border: 1px solid #403951; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; padding: 0 0 3px; }
.location-nav > button:hover { background: #25203a; }
.lighting { justify-self: end; }
.lighting, .city-select { position: relative; }
.lighting::after, .city-select::after { content: ""; position: absolute; top: 40%; right: 13px; border: solid var(--accent); border-width: 0 1px 1px 0; width: 6px; height: 6px; transform: rotate(45deg); pointer-events: none; }
.lighting select, .city-select select { appearance: none; color: #ded4f6; background: #171828; border: 1px solid #3b344c; border-radius: 7px; padding: .46rem 1.8rem .46rem .68rem; font-size: .86rem; }
.city-select select { width: clamp(135px, 17vw, 175px); }
.keyboard-help { color: var(--soft); text-align: center; font-size: .78rem; margin-top: .34rem; }
.content-wrap { width: min(88%, 1120px); margin-inline: auto; }
.about { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(0,1fr); gap: clamp(2.8rem,8vw,8.5rem); align-items: center; padding-block: clamp(5.5rem,10vw,10rem); }
.portrait-frame { position: relative; min-height: 290px; aspect-ratio: 1/1.02; border: 1px solid #d9cddd; background: #e8dfea; border-radius: 5px; box-shadow: 8px 9px 0 #e9e1ec; overflow: hidden; }
.portrait-frame img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 40%; }
.about h2, .section-heading h2, .publications h2, .credentials h2, .contact h2 { margin: 1rem 0 1.4rem; font-size: clamp(3.4rem,6vw,6rem); }
.about-copy > p:not(.eyebrow, .subtle-note), .section-heading > p, .contact div > p:not(.eyebrow) { color: var(--muted); max-width: 48ch; line-height: 1.7; }
.about-copy > p + p { margin-top: .75rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .95rem; }
.actions { margin-top: 1.75rem; display: flex; gap: .65rem; flex-wrap: wrap; }
.button { font-size: .94rem; display: inline-flex; min-height: 45px; align-items: center; justify-content: center; font-weight: 640; border: 1px solid transparent; padding: .62rem 1.16rem; border-radius: 8px; line-height: 1.4; }
.primary { background: #584171; color: #fffbff; }
.primary:hover { background: #47325e; }
.secondary { background: #f9f6f3; border-color: #b7a8c1; color: #514060; }
.secondary:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { cursor: default; opacity: .57; }
.interests { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1.2rem; }
.interests span { font-size: .83rem; color: #5d4773; padding: .28rem .65rem; border: 1px solid #d4c8db; border-radius: 100px; }
.work-section { border-block: 1px solid var(--line); background: #eee8ef; }
.work-inner { padding-block: clamp(4.5rem,8vw,8rem); }
.section-heading { display: flex; justify-content: space-between; gap: 1.4rem; align-items: end; margin-bottom: 2.2rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 34ch; padding-bottom: .28rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.work-card { display: flex; flex-direction: column; border: 1px solid #d9cedd; border-radius: 9px; overflow: hidden; background: #faf7f4; }
.work-art { display: block; aspect-ratio: 1.72; width: 100%; object-fit: cover; background: #332641; border-bottom: 1px solid #d9cedd; }
.work-art.contain { object-fit: contain; object-position: center top; background: #322747; padding: .5rem 0 0; }
.work-art.graduation-photo { object-position: 50% 34%; }
.work-art.flex-preview { object-position: 50% 28%; }
.work-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.work-card h3 { margin: .22rem 0 .5rem; font: 400 1.75rem/1.08 var(--serif); letter-spacing: -.045em; }
.work-card p:not(.work-type) { color: var(--muted); font-size: .94rem; }
.work-type { font: .78rem/1.55 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.work-links { margin-top: auto; padding-top: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.text-link { width: fit-content; color: var(--accent); text-decoration: underline; text-underline-offset: .28em; font-size: .93rem; }
.leadership { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(1.4rem,6vw,6rem); margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid #d9cedd; }
.leadership h3, .publication-list h3 { font: 400 clamp(1.45rem,2.7vw,2.18rem)/1.13 var(--serif); letter-spacing: -.03em; margin: .35rem 0 .45rem; }
.leadership p:not(.detail-kicker), .leadership dd, .publication-list article > p:not(.detail-kicker) { color: var(--muted); }
.leadership .text-link { display: inline-block; margin-top: .75rem; }
.detail-kicker { color: var(--accent); font: 600 .8rem/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.leadership dl { margin: 0; }
.leadership dl div + div { border-top: 1px solid #d9cedd; padding-top: .75rem; margin-top: .75rem; }
.leadership dt { font-weight: 650; }
.leadership dd { margin: .12rem 0 0; }
.publications { padding-block: clamp(4rem,7vw,7rem); border-bottom: 1px solid var(--line); }
.publication-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(1.5rem,5vw,5rem); }
.publication-list li { border-top: 1px solid var(--line); padding: 1.1rem 0 1.25rem; }
.publication-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .7rem; }
.publication-links a { overflow-wrap: anywhere; }
.credentials { padding-block: clamp(4rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); margin-top: 2.2rem; }
.credentials-grid h3 { color: var(--accent); font: 600 .86rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.credentials-grid dl { margin: .75rem 0 0; }
.credentials-grid dl + h3 { margin-top: 1.65rem; }
.credentials-grid dl > div { padding: .65rem 0; border-top: 1px solid var(--line); }
.credentials-grid dt { font-weight: 650; }
.credentials-grid dd { margin: .14rem 0 0; color: var(--muted); font-size: .92rem; }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; align-items: start; gap: clamp(2.5rem,8vw,7.5rem); padding-block: clamp(5rem,9vw,9rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact .text-link { display: inline-block; margin-top: 1.1rem; }
form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
form label { display: grid; gap: .3rem; color: #46394e; font-size: .92rem; }
input,textarea { width: 100%; min-width: 0; color: var(--paper); background: #fdfbf8; border: 1px solid #cbbdd2; border-radius: 7px; padding: .6rem .72rem; }
textarea { resize: vertical; }
form button { justify-self: start; }
.confirmation { padding-block: 14vh; }
.confirmation p { margin-block: 1rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; padding-block: 1.6rem; font-size: .85rem; color: var(--soft); }
@media(max-width: 1050px) and (min-width: 801px) {
  .globe-wrap { width: 58vw; left: 56%; }
  .hero-intro { left: 4%; }
  .location-card { right: 4%; }
}
@media(max-width: 800px) {
  .hero-stage { min-height: 0; display: grid; justify-items: center; padding: 3.3rem 6% 1.35rem; }
  .hero-intro { grid-row: 1; position: relative; top: auto; left: auto; width: 100%; transform: none; align-self: start; }
  .hero-intro h1 { margin: .75rem 0 .6rem; font-size: clamp(2.62rem,8.7vw,5rem); }
  .hero-intro h1 br { display: none; }
  .hero-deck { max-width: 41ch; }
  .explore-link { display: none; }
  .globe-wrap { position: relative; top: auto; left: auto; transform: none; width: min(90vw,510px); margin-top: 1.35rem; }
  .location-card { position: relative; bottom: auto; right: auto; width: min(100%, 510px); margin-top: 1.4rem; }
  .location-card h2 { font-size: 2.2rem; }
  .location-story { margin-top: .5rem; }
  .about { gap: 2.4rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media(max-width: 560px) {
  .site-header { height: auto; min-height: 70px; grid-template-columns: 1fr auto; gap: .05rem .55rem; padding: .48rem 4% 0; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; min-height: 30px; }
  .header-actions { grid-row: 1; grid-column: 2; gap: .34rem; }
  .language-switch > * { padding-inline: .27rem; }
  .wordmark { font-size: .83rem; gap: .3rem; }
  nav { gap: .65rem; }
  nav a, .header-contact { font-size: .82rem; }
  .header-contact { padding: .34rem .58rem; }
  .hero-stage { padding-top: 2.7rem; }
  .hero-intro h1 { max-width: 100%; }
  .controls-main { grid-template-columns: 1fr auto; gap: .4rem; }
  .location-nav { gap: .24rem; }
  .location-nav > button { width: 32px; height: 32px; }
  .city-select select { width: 124px; }
  .lighting select, .city-select select { font-size: .78rem; padding-left: .48rem; padding-right: 1.35rem; }
  .lighting::after, .city-select::after { right: 9px; }
  #globe-help { grid-column: 1 / -1; grid-row: 2; }
  .keyboard-help { text-align: left; }
  .about, .contact, .work-grid, .credentials-grid, .leadership, .publication-list { grid-template-columns: 1fr; }
  .portrait-frame { width: min(100%,360px); min-height: 0; }
  .section-heading { display: grid; }
  .contact { gap: 2rem; }
}
@media(max-width: 370px) {
  .controls-main { grid-template-columns: 1fr; }
  .lighting { grid-row: 2; justify-self: start; }
  #globe-help { grid-row: 3; }
}
html[lang="ru"] .publications h2, html[lang="ru"] .credentials h2 { font-size: clamp(2.35rem,5.5vw,5.8rem); }
@media(max-width: 420px) {
  html[lang="ru"] .controls-main { grid-template-columns: 1fr; }
  html[lang="ru"] .lighting { grid-row: 2; justify-self: start; }
  html[lang="ru"] #globe-help { grid-row: 3; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
