:root {
  --blue: #0c2e61;
  --blue-2: #164e9a;
  --blue-soft: #eaf2ff;
  --red: #df322f;
  --ink: #10233f;
  --muted: #5e6d82;
  --line: #dfe5ed;
  --soft: #f5f8fc;
  --white: #ffffff;
  --max: 1280px;
  --pad: max(1.25rem, calc((100vw - var(--max)) / 2));
  --sans: Inter, Avenir Next, Avenir, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }
::selection { color: white; background: var(--red); }
:focus-visible { outline: 3px solid #58a6ff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; top: -5rem; left: 1rem; padding: .75rem 1rem; border-radius: .5rem; color: white; background: var(--blue); }
.skip-link:focus { top: 1rem; }
.noscript-note { position: fixed; z-index: 180; right: 1rem; bottom: 1rem; max-width: 420px; margin: 0; padding: 1rem; border: 1px solid var(--line); background: white; box-shadow: 0 16px 50px rgba(12, 46, 97, .18); }
.noscript-note a { text-decoration: underline; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; min-height: 76px; padding: .85rem var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--ink); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,229,237,.85); backdrop-filter: blur(16px); transition: min-height .25s, box-shadow .25s; }
.site-header.is-scrolled { min-height: 64px; box-shadow: 0 10px 35px rgba(12,46,97,.08); }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-mark { display: block; flex: 0 0 auto; width: 2.65rem; height: 2.65rem; overflow: hidden; border: 2px solid var(--red); border-radius: 50%; background: white; box-shadow: 0 0 0 3px var(--blue-soft); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .9rem; font-weight: 680; letter-spacing: -.015em; }
.brand-copy small { margin-top: .18rem; color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; align-items: center; gap: 1.45rem; font-size: .82rem; font-weight: 680; }
.site-nav > a:not(.header-cv) { position: relative; }
.site-nav > a:not(.header-cv)::after { content: ""; position: absolute; right: 0; bottom: -.35rem; left: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.site-nav > a:not(.header-cv):hover::after { transform: scaleX(1); transform-origin: left; }
.header-cv { min-height: 2.7rem; padding: .65rem 1rem; display: inline-flex; align-items: center; gap: .75rem; color: white; background: var(--blue); }
.language-switch { padding: .2rem; display: flex; align-items: center; gap: .35rem; border: 0; color: #66758a; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 750; }
.language-switch span.is-active { color: var(--red); }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .75rem; border: 1px solid var(--line); background: white; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: .3rem 0; background: var(--blue); }

.hero { position: relative; min-height: 100svh; padding: 7.7rem var(--pad) 4.5rem; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .78fr); align-items: stretch; gap: clamp(2rem, 5vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: 0; left: 4vw; top: 20%; width: 34vw; height: 34vw; border: 1px solid #edf1f6; border-radius: 50%; transform: translate(-52%, -20%); }
.hero-copy { position: relative; z-index: 1; min-width: 0; padding: clamp(2rem, 7vh, 6rem) 0 5rem; display: flex; flex-direction: column; justify-content: center; }
.status-line { margin: 0 0 2rem; display: flex; align-items: center; gap: .65rem; color: var(--blue-2); font-size: .78rem; font-weight: 680; letter-spacing: .025em; }
.status-line > span:first-child { width: .65rem; height: .65rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(223,50,47,.09); }
.hero-role { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(.9rem, 1.2vw, 1.05rem); font-weight: 650; letter-spacing: .025em; }
.hero h1 { max-width: 850px; margin: 1.3rem 0 1.5rem; font-size: clamp(4rem, 8vw, 7.6rem); font-weight: 610; line-height: .9; letter-spacing: -.055em; }
.hero h1::first-line { color: var(--blue); }
.hero-intro { max-width: 660px; margin: 0; color: #394b64; font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.5; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 3.35rem; padding: .78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; border: 1px solid transparent; cursor: pointer; font-size: .82rem; font-weight: 800; transition: transform .2s, background .2s, color .2s, border .2s; }
.button:hover { transform: translateY(-2px); }
.button-red { color: white; background: var(--red); }
.button-ghost { border-color: var(--line); background: white; }
.button-blue { color: white; background: var(--blue); }
.button-outline { border-color: rgba(255,255,255,.38); color: white; background: transparent; }
.button-white { color: var(--blue); background: white; }
.hero-facts { margin: 3.6rem 0 0; padding: 1.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; border-top: 1px solid var(--line); list-style: none; }
.hero-facts li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem; }
.hero-facts strong { color: var(--red); font-size: 1.5rem; line-height: 1; letter-spacing: -.05em; }
.hero-facts span { max-width: 10rem; color: var(--muted); font-size: .78rem; font-weight: 650; line-height: 1.3; }
.hero-portrait { position: relative; z-index: 1; min-height: 620px; margin: 0; overflow: hidden; background: var(--blue-soft); }
.hero-portrait::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 10px; background: var(--red); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.88) contrast(1.02); }
.hero-portrait::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(8,30,64,.72)); }
.hero-portrait figcaption { position: absolute; z-index: 3; left: 2rem; bottom: 1.6rem; color: white; font-size: .78rem; font-weight: 680; letter-spacing: .035em; }
.hero-route { position: absolute; z-index: 3; right: var(--pad); bottom: 1.35rem; left: var(--pad); display: flex; align-items: center; gap: .65rem; overflow-x: auto; color: #64748b; font-size: .75rem; font-weight: 680; letter-spacing: .035em; scrollbar-width: none; }
.hero-route span { white-space: nowrap; }
.hero-route i { flex: 1; height: 1px; background: var(--line); }
.hero-route span:last-child { color: var(--red); }

.section { padding: clamp(5rem, 9vw, 9rem) var(--pad); scroll-margin-top: 4rem; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5.2rem); display: grid; grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.section-index, .micro-title { margin: .4rem 0 0; color: var(--red); font-size: .76rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { max-width: 900px; margin: 0; font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.section-head > div > p { max-width: 680px; margin: 1.2rem 0 0; color: var(--muted); font-size: 1.03rem; }

.work-list { border-top: 1px solid var(--line); }
.project { position: relative; padding: 2rem 0; display: grid; grid-template-columns: 80px minmax(300px, .9fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; border-bottom: 1px solid var(--line); }
.project-number { align-self: start; color: var(--red); font-size: 1rem; font-weight: 850; }
.project-media { position: relative; height: clamp(260px, 32vw, 430px); overflow: hidden; background: var(--soft); }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.8,.22,1); }
.project[data-project="astana"] .project-media img { object-position: center 32%; }
.project[data-image-fit="contain"] .project-media { background: white; }
.project[data-image-fit="contain"] .project-media img { object-fit: contain; padding: clamp(.6rem, 2vw, 1.5rem); }
.project:hover .project-media img { transform: scale(1.035); }
.project-media::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--blue-2); }
.project[data-accent="red"] .project-media::after { background: var(--red); }
.project-copy { max-width: 560px; }
.project-eyebrow, .project-place { margin: 0; color: var(--blue-2); font-size: .75rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.project-copy h3 { margin: 1rem 0 .8rem; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.project-place { color: var(--muted); }
.project-summary { margin: 1.2rem 0 1.6rem; color: #4e5f76; }
.project-metrics { margin: 0 0 1.6rem; padding: 1rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-metric { min-width: 0; display: grid; align-content: start; gap: .25rem; }
.project-metric strong { color: var(--red); font-size: 1.15rem; font-weight: 750; line-height: 1.1; letter-spacing: -.025em; }
.project-metric small { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.project-open { padding: .75rem 0; display: inline-flex; align-items: center; gap: 1rem; border: 0; border-bottom: 2px solid var(--ink); background: transparent; cursor: pointer; font-weight: 720; font-size: .85rem; }
.project-open span { transition: transform .2s; }
.project-open:hover span { transform: translate(4px, -4px); }

.section-blue { color: white; background: var(--blue); }
.section-head-light .section-index { color: #ff6b66; }
.section-head-light > div > p { color: rgba(255,255,255,.68); }
.journey-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.journey-rail { position: relative; padding: 1rem 0; display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: .55rem; overflow-x: auto; scrollbar-width: thin; }
.journey-stop { position: relative; min-width: 0; padding: 0 .4rem 1rem; display: grid; grid-template-rows: 4rem auto; justify-items: center; border: 0; color: rgba(255,255,255,.58); background: transparent; cursor: pointer; text-align: center; }
.journey-stop::before { content: ""; z-index: 2; align-self: center; width: .8rem; height: .8rem; border: 2px solid var(--blue); border-radius: 50%; background: rgba(255,255,255,.42); box-shadow: 0 0 0 1px rgba(255,255,255,.35); transition: transform .2s, background .2s; }
.journey-stop[data-kind="education"]::before { border-radius: 3px; }
.journey-stop[data-kind="erasmus"]::before { border-radius: 2px; transform: rotate(45deg); }
.journey-stop::after { content: ""; position: absolute; z-index: 1; top: 2rem; left: 50%; width: calc(100% + .55rem); height: 1px; background: rgba(255,255,255,.3); pointer-events: none; }
.journey-stop:last-child::after { display: none; }
.journey-stop:hover::before, .journey-stop[aria-selected="true"]::before { background: #ff5d57; transform: scale(1.25); }
.journey-stop[data-kind="erasmus"]:hover::before, .journey-stop[data-kind="erasmus"][aria-selected="true"]::before { transform: rotate(45deg) scale(1.25); }
.journey-stop[aria-selected="true"] { color: white; }
.journey-stop strong { display: block; color: currentColor; font-size: 1rem; font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.journey-stop span { display: block; font-size: .75rem; line-height: 1.38; }
.journey-detail { width: 100%; min-height: 0; height: max-content; padding: clamp(2rem, 3vw, 3rem); display: block; align-self: start; overflow: visible; color: var(--ink); background: white; }
.detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; }
.journey-detail .detail-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--red); font-size: .75rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.journey-logo { width: auto; max-width: 150px; height: 54px; object-fit: contain; object-position: right top; }
.journey-detail h3 { margin: 1.6rem 0 .7rem; font-size: clamp(1.9rem, 2.8vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; word-break: normal; overflow-wrap: normal; hyphens: none; }
.journey-detail .detail-place { margin: 0; color: var(--blue-2); font-weight: 800; word-break: normal; overflow-wrap: normal; hyphens: none; }
.journey-detail .detail-copy { margin: 1.2rem 0 0; color: var(--muted); word-break: normal; overflow-wrap: normal; hyphens: none; }
.journey-detail.is-changing { animation: detail-in .35s ease; }

.resume { background: white; }
.resume-layout { display: grid; grid-template-columns: minmax(430px, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(2.5rem, 5vw, 5rem); }
.resume-preview { position: relative; width: 100%; max-width: 580px; margin: 0 auto; padding: 1rem; display: block; align-self: start; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 28px 65px rgba(12,46,97,.13); transform: rotate(-1deg); transition: transform .3s, box-shadow .3s; }
.resume-preview:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 35px 75px rgba(12,46,97,.18); }
.resume-preview img { display: block; width: 100%; height: auto; aspect-ratio: 778 / 1100; object-fit: contain; }
.resume-preview > span { position: absolute; right: .5rem; bottom: .5rem; padding: .65rem .8rem; color: white; background: var(--red); font-size: .72rem; font-weight: 800; }
.resume-content { padding: clamp(1rem, 3vw, 3rem) 0; display: flex; flex-direction: column; justify-content: center; }
.resume-profile p:last-child { max-width: 680px; margin: 1rem 0 0; font-size: clamp(1.3rem, 2.2vw, 2.1rem); font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.resume-downloads { margin: 2rem 0 2.8rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.resume-downloads .button-outline { color: var(--ink); border-color: var(--line); }
.resume-groups { display: grid; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.tag-cloud { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud span { padding: .48rem .7rem; border: 1px solid var(--line); color: #42526a; background: white; font-size: .75rem; }
.tool-row { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--muted); font-size: .78rem; }
.tool-row span:not(:last-child)::after { content: "/"; margin-left: 1rem; color: var(--red); }

.mobility { padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--soft); }
.globe-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 1rem; }
.globe-stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #fff, #edf4ff); border: 1px solid var(--line); cursor: grab; }
.globe-stage:active { cursor: grabbing; }
.globe-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(12,46,97,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(12,46,97,.025), 0 0 0 140px rgba(12,46,97,.015); }
.globe-canvas { position: relative; z-index: 1; width: min(90%, 720px); aspect-ratio: 1; touch-action: none; }
.globe-count { position: absolute; z-index: 2; left: 1.5rem; top: 1.3rem; display: grid; }
.globe-count strong { color: var(--red); font-size: clamp(3rem, 6vw, 5.8rem); line-height: .8; letter-spacing: -.08em; }
.globe-count small { margin-top: .7rem; color: var(--blue); font-size: .75rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.globe-control { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; min-height: 2.7rem; padding: .55rem .75rem; display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); color: var(--blue); background: rgba(255,255,255,.92); cursor: pointer; font-size: .75rem; font-weight: 720; backdrop-filter: blur(10px); }
.region-panel { min-height: 620px; padding: clamp(1.7rem, 3vw, 2.7rem); display: flex; flex-direction: column; justify-content: center; color: white; background: var(--blue); }
.region-panel .micro-title { color: #ff6b66; }
.region-tabs { margin: 1.5rem 0 3rem; display: grid; }
.region-tab { padding: .8rem 0; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); background: transparent; cursor: pointer; font-size: .88rem; text-align: left; }
.region-tab::after { content: "↗"; }
.region-tab:hover, .region-tab[aria-pressed="true"] { color: white; }
.region-tab[aria-pressed="true"] { padding-left: .7rem; border-left: 3px solid #ff625c; }
.region-copy { min-height: 300px; }
.region-copy > p:first-child { margin: 0 0 .7rem; color: #8cc5ff; font-size: .75rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.region-copy h3 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 600; letter-spacing: -.05em; }
.region-copy > p:nth-of-type(2) { color: rgba(255,255,255,.76); }
.region-highlights-label { margin: 1.5rem 0 .6rem; color: #ff8580 !important; font-size: .72rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.region-highlights { margin: 0; padding: 0; list-style: none; }
.region-highlights li { padding: .65rem 0; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.region-highlights span { display: grid; gap: .1rem; }
.region-highlights strong { font-size: .85rem; font-weight: 680; }
.region-highlights small, .region-highlights em { color: rgba(255,255,255,.66); font-size: .75rem; font-style: normal; }
.region-highlights em { flex: 0 0 auto; text-align: right; }

.section-soft { background: white; }
.linkedin-meta { margin: -2rem 0 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .78rem; }
.linkedin-meta a { display: inline-flex; gap: .6rem; color: var(--blue-2); font-weight: 800; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.post-card { min-height: 410px; padding: clamp(1.5rem, 3vw, 2.3rem); display: flex; flex-direction: column; border: 1px solid var(--line); background: white; transition: transform .3s, border-color .3s, box-shadow .3s; }
.post-card:first-child { color: white; border-color: var(--blue); background: var(--blue); }
.post-card:hover { transform: translateY(-6px); border-color: #a9b8cc; box-shadow: 0 22px 50px rgba(12,46,97,.09); }
.post-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.linkedin-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; color: white; background: #0a66c2; font-weight: 900; }
.post-card:first-child .linkedin-icon { color: var(--blue); background: white; }
.post-date { color: var(--muted); font-size: .75rem; font-weight: 680; }
.post-card:first-child .post-date { color: rgba(255,255,255,.62); }
.post-category { margin: auto 0 .9rem; color: var(--red); font-size: .75rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.post-card:first-child .post-category { color: #ff746f; }
.post-card h3 { margin: 0 0 1rem; font-size: clamp(1.45rem, 2.3vw, 2.3rem); line-height: 1.08; letter-spacing: -.04em; }
.post-card p { margin: 0; color: var(--muted); }
.post-card:first-child p { color: rgba(255,255,255,.72); }
.post-link { margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: .8rem; font-weight: 720; }
.post-card:first-child .post-link { border-color: rgba(255,255,255,.2); }

.contact { padding: clamp(4rem, 8vw, 7rem) var(--pad); display: grid; grid-template-columns: .3fr 1.2fr .5fr; gap: 2rem; align-items: start; color: white; background: var(--red); }
.contact .section-index { color: rgba(255,255,255,.65); }
.contact-main h2 { max-width: 820px; margin: 0; font-size: clamp(2.7rem, 5.5vw, 5.5rem); line-height: .95; letter-spacing: -.065em; }
.contact-main p { max-width: 620px; color: rgba(255,255,255,.78); }
.contact-actions { display: grid; gap: .8rem; }
.contact-link { padding: .7rem 0; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: white; background: transparent; cursor: pointer; font-size: .82rem; font-weight: 700; text-align: left; }
.site-footer { padding: 1.3rem var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; color: white; background: #071d3f; font-size: .78rem; }
.site-footer .brand-mark { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.site-footer .brand-copy small { color: rgba(255,255,255,.58); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { justify-self: end; display: inline-flex; gap: .6rem; }

.project-dialog { width: min(980px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; overflow: auto; border: 0; color: var(--ink); background: white; box-shadow: 0 35px 110px rgba(6,27,59,.36); }
.project-dialog::backdrop { background: rgba(5,20,43,.78); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; z-index: 10; float: right; right: 1rem; top: 1rem; width: 2.8rem; height: 2.8rem; margin: 1rem 1rem -3.8rem 0; border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(12,46,97,.75); cursor: pointer; font-size: 1.5rem; backdrop-filter: blur(8px); }
.dialog-hero { position: relative; height: min(46vh, 430px); }
.dialog-hero img { width: 100%; height: 100%; object-fit: cover; }
.dialog-hero::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6,27,59,.84)); }
.dialog-heading { position: absolute; z-index: 2; right: clamp(1.5rem, 4vw, 3.5rem); bottom: 2rem; left: clamp(1.5rem, 4vw, 3.5rem); color: white; }
.dialog-heading p { margin: 0 0 .8rem; font-size: .75rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.dialog-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.8rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.dialog-metrics { padding: 1.25rem clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; color: white; background: var(--blue); }
.dialog-metric { min-width: 0; display: grid; gap: .25rem; }
.dialog-metric strong { color: #ff746f; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1; letter-spacing: -.035em; }
.dialog-metric small { color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.35; }
.dialog-body { padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 5vw, 5rem); }
.dialog-block + .dialog-block { margin-top: 2rem; }
.dialog-label { margin: 0 0 .6rem; color: var(--red); font-size: .75rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
.dialog-block p { margin: 0; color: var(--muted); }
.dialog-block strong { display: block; font-size: 1.15rem; line-height: 1.35; }
.dialog-list { margin: 0; padding: 0; list-style: none; }
.dialog-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); color: #44556c; }
.dialog-outputs { margin-top: 2rem; padding: 1.4rem; background: var(--blue-soft); }
.dialog-outputs ul { margin: .7rem 0 0; padding-left: 1.2rem; }
.dialog-result { padding-top: 2rem; border-top: 1px solid var(--line); }
.dialog-context { margin-top: 2rem; padding: 1.2rem; background: #f6f8fb; border-left: 3px solid var(--blue-2); }
.dialog-context p { margin: 0; color: var(--muted); font-size: .86rem; }
.dialog-context .dialog-label { margin-bottom: .6rem; color: var(--blue-2); }
.dialog-context a { margin-top: .8rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--blue-2); font-size: .8rem; font-weight: 720; }
.dialog-proof-section { padding: 0 clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.dialog-proof-head { padding-top: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; border-top: 1px solid var(--line); }
.dialog-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.dialog-links > span { color: var(--muted); font-size: .75rem; }
.dialog-links a { display: inline-flex; gap: .4rem; color: var(--blue-2); font-size: .78rem; font-weight: 700; }
.proof-grid { margin-top: 1.3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proof-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-card { min-width: 0; margin: 0; border: 1px solid var(--line); background: white; }
.proof-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.proof-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .35s ease; }
.proof-card[data-fit="contain"] .proof-media img { object-fit: contain; object-position: center; padding: .45rem; }
.proof-card:hover .proof-media img { transform: scale(1.025); }
.proof-card figcaption, .proof-card-note { padding: 1.1rem; }
.proof-card h4 { margin: 0 0 .55rem; font-size: 1.02rem; font-weight: 650; line-height: 1.25; }
.proof-card figcaption p, .proof-card-note span { margin: 0; display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.proof-card-note { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; color: white; border: 0; background: linear-gradient(145deg, var(--blue), #184f94); }
.proof-card-note:nth-child(2) { background: linear-gradient(145deg, #9f2428, var(--red)); }
.proof-card-note p { margin: 0 auto auto 0; color: #8cc5ff; font-size: .75rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.proof-card-note:nth-child(2) p { color: #ffd0ce; }
.proof-card-note h4 { font-size: 1.35rem; }
.proof-card-note span { color: rgba(255,255,255,.78); }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 1.5rem; padding: .7rem 1rem; color: white; background: var(--blue); opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity .2s, transform .2s; font-size: .75rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.language-transition main { opacity: .35; transform: translateY(6px); }
main { transition: opacity .18s, transform .18s; }
@keyframes detail-in { from { opacity: .25; transform: translateY(8px); } }

@media (max-width: 1040px) {
  .site-nav { gap: .8rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr); gap: 2rem; }
  .hero h1 { font-size: clamp(3.8rem, 7.9vw, 6.7rem); }
  .project { grid-template-columns: 52px minmax(270px, .85fr) minmax(0, 1fr); gap: 1.5rem; }
  .journey-shell { grid-template-columns: 1fr; }
  .resume-layout { grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); gap: 2.5rem; }
  .globe-stage, .region-panel { min-height: 540px; }
  .contact { grid-template-columns: 130px 1fr; }
  .contact-actions { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { min-height: 66px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + .5rem); right: 1rem; left: 1rem; padding: 1.2rem; display: none; flex-direction: column; align-items: stretch; gap: .15rem; color: white; background: var(--blue); box-shadow: 0 24px 60px rgba(12,46,97,.24); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.header-cv), .language-switch { padding: .75rem; }
  .header-cv { margin-top: .5rem; justify-content: space-between; color: var(--blue); background: white; }
  .language-switch { justify-content: center; color: rgba(255,255,255,.65); }
  .language-switch span.is-active { color: #ff726d; }
  .hero { min-height: auto; padding-top: 7rem; grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 0 1rem; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 6.5rem); }
  .hero-portrait { min-height: 640px; }
  .hero-route { position: static; grid-column: 1; margin-top: 1rem; }
  .section-head { grid-template-columns: 1fr; gap: .7rem; }
  .section-head > .section-index { margin: 0; }
  .project { grid-template-columns: 42px 1fr; }
  .project-media { grid-column: 2; height: min(65vw, 430px); }
  .project-copy { grid-column: 2; }
  .journey-rail { grid-template-columns: repeat(6, 165px); }
  .resume-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .resume-preview { max-width: 540px; }
  .globe-layout { grid-template-columns: 1fr; }
  .region-panel { min-height: 0; }
  .region-tabs { margin-bottom: 2rem; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card:first-child { grid-column: 1 / -1; }
  .post-card { min-height: 350px; }
  .proof-grid, .proof-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { padding-inline: 1rem; }
  .brand-copy strong { font-size: .78rem; }
  .hero { padding: 6rem 1rem 2.5rem; gap: 1rem; }
  .status-line { margin-bottom: 1.4rem; font-size: .72rem; }
  .hero-role { font-size: .8rem; }
  .hero h1 { margin-top: 1rem; font-size: clamp(3.35rem, 17vw, 5.4rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { grid-template-columns: 1fr; gap: .8rem; margin-top: 2rem; }
  .hero-facts li { grid-template-columns: 42px 1fr; }
  .hero-facts strong { font-size: 1.25rem; }
  .hero-portrait { min-height: 480px; }
  .hero-portrait figcaption { left: 1.2rem; }
  .section { padding: 4.5rem 1rem; }
  .section-head { margin-bottom: 2.6rem; }
  .section-head h2 { font-size: clamp(2.05rem, 10vw, 3.25rem); }
  .section-head > div > p { font-size: .93rem; }
  .project { grid-template-columns: 1fr; padding: 1.4rem 0 2.5rem; }
  .project-number { grid-column: 1; }
  .project-media, .project-copy { grid-column: 1; }
  .project-media { height: 280px; }
  .journey-shell { gap: 1.5rem; }
  .journey-rail { margin: 0; padding: 0; grid-template-columns: 1fr; gap: 0; overflow: visible; }
  .journey-stop { min-height: 84px; padding: 0 0 1rem; grid-template-columns: 2.2rem minmax(0, 1fr); grid-template-rows: 1fr; justify-items: start; text-align: left; }
  .journey-stop::before { grid-column: 1; grid-row: 1; align-self: start; justify-self: center; margin-top: .45rem; }
  .journey-stop::after { top: 1.25rem; left: 1.1rem; width: 1px; height: calc(100% - .1rem); }
  .journey-stop > span { grid-column: 2; grid-row: 1; padding: .1rem 0 .8rem; }
  .journey-stop strong { font-size: 1.08rem; }
  .journey-stop span { font-size: .8rem; }
  .journey-detail { min-height: 0; padding: 1.5rem; }
  .detail-header { grid-template-columns: 1fr; gap: 1rem; }
  .journey-logo { grid-row: 1; max-width: 120px; height: 44px; object-position: left top; }
  .journey-detail .detail-top { grid-row: 2; }
  .resume-layout { grid-template-columns: 1fr; }
  .resume-preview { max-width: 500px; }
  .resume-content { padding-top: 1rem; }
  .resume-downloads { flex-direction: column; align-items: stretch; }
  .globe-stage { min-height: 430px; }
  .globe-canvas { width: 98%; }
  .globe-stage::before { width: 82%; }
  .globe-count { left: 1rem; top: 1rem; }
  .globe-count strong { font-size: 3.3rem; }
  .globe-control { right: .7rem; bottom: .7rem; }
  .globe-control span:last-child { display: none; }
  .linkedin-meta { align-items: flex-start; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card:first-child { grid-column: auto; }
  .post-card { min-height: 340px; }
  .dialog-proof-head { align-items: flex-start; flex-direction: column; }
  .dialog-links { justify-content: flex-start; }
  .proof-grid, .proof-grid[data-count="4"] { grid-template-columns: 1fr; }
  .proof-card:last-child:nth-child(odd) { grid-column: auto; }
  .contact { padding: 4rem 1rem; grid-template-columns: 1fr; }
  .contact-actions { grid-column: auto; grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p { display: none; }
  .site-footer > a:last-child { font-size: 0; }
  .site-footer > a:last-child span:last-child { font-size: 1rem; }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-hero { height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-portrait, .hero-route, .project-open, .globe-control, .contact-actions, .site-footer { display: none; }
  .hero { min-height: 0; display: block; padding: 2rem; }
  .section { padding: 2rem; break-inside: avoid; }
  .project { grid-template-columns: 40px 180px 1fr; }
  .project-media { height: 120px; }
  .section-blue { color: var(--ink); background: white; }
}
