@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #0e1a33;
  --navy: #14264a;
  --navy-deep: #0b1630;
  --muted: #55627a;
  --rule: #dde3ee;
  --blue: #1f6feb;
  --blue-soft: #e6efff;
  --teal: #12a594;
  --radius: 16px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin-top: 14px; max-width: 18ch; }
.lead { color: var(--muted); max-width: 58ch; margin-top: 18px; font-size: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(244, 246, 250, .78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--rule); box-shadow: 0 6px 24px rgba(14, 26, 51, .06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav ul { margin-left: auto !important; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav ul a:hover { color: var(--ink); background: var(--blue-soft); }
.nav .lang { border: 1px solid var(--rule); color: var(--ink); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); box-shadow: 0 10px 28px rgba(31, 111, 235, .35); transform: translateY(-2px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: 120px 0 64px; display: flex; align-items: center; overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero .b1 { width: 520px; height: 520px; background: #bcd3ff; top: -120px; right: -80px; animation: drift 16s ease-in-out infinite alternate; }
.hero .b2 { width: 420px; height: 420px; background: #bff0e8; bottom: -160px; left: -120px; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .1em;
  background: var(--teal); border-radius: 4px; transform-origin: left; transform: scaleX(0);
  animation: draw .9s .9s var(--ease) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.hero .lead { font-size: 19px; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.portrait { position: relative; justify-self: end; width: min(100%, 440px); }
.portrait .frame {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy);
  box-shadow: 0 30px 70px rgba(20, 38, 74, .28);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.portrait:hover img { transform: scale(1.03); }
.portrait::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--blue);
  border-radius: 32px; opacity: .35; z-index: -1; animation: ring 6s ease-in-out infinite;
}
@keyframes ring { 50% { transform: translate(8px, -8px); opacity: .6; } }
.badge {
  position: absolute; left: -28px; bottom: 36px; background: var(--surface);
  padding: 14px 18px; border-radius: 14px; box-shadow: 0 16px 40px rgba(14, 26, 51, .16);
  display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.3;
  animation: float 5s ease-in-out infinite;
}
.badge b { display: block; font-size: 15px; }
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(18, 165, 148, .6); animation: ping 2s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 12px rgba(18, 165, 148, 0); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* load-in */
.rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--rule); background: var(--surface); overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { padding: 20px 28px; font-weight: 600; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- expertise ---------- */
.expertise { padding: 120px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 32px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 111, 235, .12), transparent 60%);
}
.card:hover { transform: translateY(-3px); border-color: #b8cdf5; box-shadow: 0 18px 40px rgba(14, 26, 51, .1); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.card h3 { font-size: 22px; line-height: 1.25; margin-top: 18px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 16px; margin-top: 12px; }

/* ---------- AI (dark band) ---------- */
.ai { background: var(--navy-deep); color: #fff; padding: 120px 0; overflow: hidden; }
.ai .eyebrow { color: #7fb0ff; }
.ai .lead { color: #b6c3dd; }
.ai .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ai li { display: flex; gap: 14px; color: #dbe5f8; }
.ai li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 11px; border-radius: 50%; background: var(--teal); }
.map { width: 100%; height: auto; }
.map .link { stroke: #3a5489; stroke-width: 1.5; fill: none; }
.map .pulse { stroke: #5fd3c3; stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 10 190; animation: run 3.2s linear infinite; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes run { to { stroke-dashoffset: -200; } }
.map .node rect { fill: #14264a; stroke: #3a5489; stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.map .node:hover rect { fill: #1d3a72; stroke: #7fb0ff; }
.map text { fill: #e8efff; font: 600 15px "Archivo", sans-serif; text-anchor: middle; dominant-baseline: central; }
.map .core rect { fill: var(--blue); stroke: none; }
.map .core { animation: breathe 3.2s ease-in-out infinite; transform-origin: 300px 210px; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.map .ring { fill: none; stroke: #2c4a85; stroke-dasharray: 3 7; transform-origin: 300px 210px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- experience ---------- */
.experience { padding: 120px 0; }
.timeline { position: relative; margin-top: 56px; display: grid; gap: 20px; padding-left: 40px; }
.timeline::before, .timeline::after { z-index: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline::after {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--blue);
  transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .15s linear;
}
.job { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px 32px; transition: transform .25s var(--ease), box-shadow .25s; }
.job:hover { transform: translateX(4px); box-shadow: 0 14px 34px rgba(14, 26, 51, .08); }
.job::before { content: ""; position: absolute; box-sizing: border-box; z-index: 2; left: -38px; top: 34px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); box-shadow: 0 0 0 5px var(--bg); }
.job--now::before { background: var(--teal); border-color: var(--teal); }
.job header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; }
.job h3 { font-size: 22px; letter-spacing: -.01em; }
.job .when { font-size: 14px; font-weight: 600; color: var(--blue); }
.job .org { color: var(--muted); font-size: 15px; margin-top: 4px; }
.job ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.job li { position: relative; padding-left: 20px; color: #2b3858; font-size: 16px; }
.job li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--blue); }
.job .note { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.contact { padding: 0 0 120px; }
.contact .box {
  background: var(--navy); color: #fff; border-radius: 32px; padding: clamp(40px, 7vw, 88px);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.contact .box::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 211, 195, .35), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.contact h2 { color: #fff; max-width: 16ch; position: relative; }
.contact .eyebrow { color: #7fb0ff; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; }
.contact .btn--primary { background: #fff; color: var(--navy); }
.contact .btn--primary:hover { background: var(--teal); color: #fff; box-shadow: 0 10px 28px rgba(18, 165, 148, .4); }
.contact .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.contact .btn--ghost:hover { background: #fff; color: var(--navy); }

footer { border-top: 1px solid var(--rule); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: center; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .ai .wrap { grid-template-columns: 1fr; gap: 48px; }
  .portrait { justify-self: start; width: min(100%, 380px); }
  .badge { left: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .nav ul li:not(:last-child) { display: none; }
  .nav { position: absolute; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent !important; box-shadow: none !important; }
  .grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .timeline { padding-left: 28px; }
  .job { padding: 24px 22px; }
  .job::before { left: -30px; }
  .timeline::before, .timeline::after { left: 7px; }
  .hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .hero h1 em::after { transform: none; }
  html { scroll-behavior: auto; }
}

.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.expertise h2 { max-width: none; }

.contact .box > * { position: relative; z-index: 1; }
.contact h2 { max-width: 14ch; }
.contact .lead { color: #b6c3dd; max-width: 40ch; }
.crows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.crow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px;
  color: #fff; text-decoration: none; background: rgba(255, 255, 255, .04);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
a.crow:hover { transform: translateX(6px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.crow small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7fb0ff; font-weight: 700; }
.crow b { display: block; font-size: clamp(17px, 2vw, 22px); font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.crow svg { flex: none; width: 22px; height: 22px; transition: transform .25s var(--ease); }
a.crow:hover svg { transform: translateX(4px); }
@media (max-width: 980px) { .contact .box { grid-template-columns: 1fr; gap: 32px; } }
