/* =========================================================
   Eliya Amro — Portfolio
   Shared stylesheet for all pages
   ========================================================= */

:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  --navy: #0B1628;
  --navy-2: #13233D;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --coral: #FF4757;
  --coral-dark: #E11D48;
  --coral-soft: rgba(255, 71, 87, 0.08);
  --gold: #F59E0B;
  --emerald: #10B981;
  --text-dark: #0F172A;
  --text: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 21px; font-weight: 800;
  color: var(--text-dark); letter-spacing: -0.03em;
}
.brand:hover { color: var(--text-dark); }
.brand span { color: var(--coral); }
.brand img { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 99px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text-dark); background: var(--bg-card-alt); }
.nav-links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.nav-links .nav-cta {
  margin-left: 8px; color: #fff; background: var(--text-dark);
}
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { color: #fff; background: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--bg-card); border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(255, 71, 87, .32);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 71, 87, .45); }
.btn-secondary { background: var(--bg-card); color: var(--text-dark); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--text-dark); border-color: var(--border-hover); transform: translateY(-2px); }
.btn-dark { background: var(--text-dark); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14.5px; color: var(--blue);
}
.text-link::after { content: '→'; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Common labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--coral); border-radius: 2px; }

.status-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-soft); border: 1px solid rgba(37, 99, 235, .2);
  padding: 6px 16px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--blue);
  margin-bottom: 26px;
}
.status-beacon { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- Sections ---------- */
main { padding-top: var(--header-h); }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }
.section-alt { background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-sub { font-size: 16.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Interior page header ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #CBD5E1;
  padding: 88px 0 80px;
  border-top: none;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}
.page-hero::after {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #93C5FD; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 58px); font-weight: 800; margin-bottom: 18px; max-width: 820px; }
.page-hero p { font-size: 18px; max-width: 640px; line-height: 1.7; color: #CBD5E1; }
.page-index {
  position: absolute; right: 24px; bottom: -6px;
  font-family: var(--font-display); font-weight: 800; font-size: 160px; line-height: 1;
  color: rgba(255,255,255,.04); pointer-events: none; user-select: none;
}

/* ---------- Home hero ---------- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; border-top: none; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(37,99,235,.07) 0%, transparent 40%),
    radial-gradient(circle at 92% 30%, rgba(255,71,87,.07) 0%, transparent 42%);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.5vw, 70px); font-weight: 800; line-height: 1.02; margin-bottom: 14px; }
.hero .role { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; color: var(--coral); margin-bottom: 24px; }
.hero .lede { font-size: 17px; line-height: 1.8; margin-bottom: 34px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 620px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-dark); }

.portrait-wrap { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.portrait-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card-alt); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-wrap::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--radius-lg); border: 2px dashed rgba(37,99,235,.25);
}
.portrait-tag {
  position: absolute; left: -28px; bottom: 36px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.portrait-tag .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; font-size: 18px; }
.portrait-tag strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--text-dark); line-height: 1.2; }
.portrait-tag small { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.portrait-tag.top { left: auto; right: -24px; top: 32px; bottom: auto; }

/* ---------- Ticker / highlights strip ---------- */
.strip { background: var(--navy); padding: 22px 0; border-top: none; }
.strip + section { border-top: none; }
.strip-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; list-style: none; }
.strip-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: #CBD5E1; letter-spacing: .02em; }
.strip-list li b { color: #fff; font-weight: 600; }
.strip-list li::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--coral); }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
.card.hoverable:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 14.8px; line-height: 1.72; }
.card .card-foot { margin-top: auto; padding-top: 22px; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.coral { background: var(--coral-soft); color: var(--coral); }
.card-icon.gold { background: rgba(245,158,11,.1); color: #B45309; }
.card-icon.emerald { background: rgba(16,185,129,.1); color: #047857; }

.card-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 14px; }

.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 5px;
  background: var(--bg-card-alt); color: var(--text); border: 1px solid var(--border);
}
.tag.blue { background: var(--blue-soft); color: var(--blue-dark); border-color: rgba(37,99,235,.2); }
.tag.coral { background: var(--coral-soft); color: var(--coral-dark); border-color: rgba(255,71,87,.25); }

/* ---------- Course cards (home) ---------- */
.course-card { border-top: 3px solid var(--blue); }
.course-card.c2 { border-top-color: var(--coral); }
.course-card.c3 { border-top-color: var(--gold); }
.course-card .course-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.prose p { font-size: 16.5px; line-height: 1.85; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-dark); }
.pull-quote {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.45; color: var(--text-dark);
  border-left: 3px solid var(--coral); padding: 4px 0 4px 22px; margin: 30px 0;
}

.fact-list { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.fact {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.fact .label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.fact .val { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.fact.accent { border-left: 3px solid var(--coral); }
.mini-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--bg-card-alt); padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 13.5px; }
.mini-stats b { display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline-col > h2 { font-size: 26px; margin-bottom: 30px; display: flex; align-items: center; gap: 12px; }
.timeline-col > h2 .card-icon { margin: 0; width: 40px; height: 40px; }
.timeline { position: relative; border-left: 2px solid var(--border); padding-left: 30px; margin-left: 8px; }
.t-node { position: relative; margin-bottom: 40px; }
.t-node:last-child { margin-bottom: 0; }
.t-node::before {
  content: ''; position: absolute; left: -37px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.t-node.current::before { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.t-when { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.t-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--text-dark); line-height: 1.3; }
.t-sub { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.t-list { list-style: none; font-size: 14.5px; }
.t-list li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.t-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--coral); }

/* ---------- Skills ---------- */
.skill-card h3 { font-size: 18px; margin-bottom: 6px; }
.skill-card .skill-desc { font-size: 13.8px; color: var(--text-muted); margin-bottom: 18px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--blue-dark); border: 1px solid rgba(37,99,235,.2);
}
.skill-pill.coral { background: var(--coral-soft); color: var(--coral-dark); border-color: rgba(255,71,87,.25); }
.skill-pill.neutral { background: var(--bg-card-alt); color: var(--text); border-color: var(--border); }

/* ---------- Score cards ---------- */
.score-card { text-align: left; }
.score-card .score { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--text-dark); line-height: 1; margin: 6px 0 8px; }
.score-card .score small { font-size: 18px; color: var(--text-light); font-weight: 700; }
.score-bar { height: 6px; background: var(--bg-card-alt); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.score-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #60A5FA); }
.score-card.coral .score-bar span { background: linear-gradient(90deg, var(--coral), #FB7185); }
.score-card.gold .score-bar span { background: linear-gradient(90deg, var(--gold), #FCD34D); }

/* ---------- Project feature ---------- */
.project {
  display: grid; grid-template-columns: 320px 1fr; gap: 0; padding: 0; overflow: hidden;
}
.project + .project { margin-top: 28px; }
.project-visual {
  position: relative; background: var(--navy); min-height: 260px;
  display: grid; place-items: center; overflow: hidden;
}
.project-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.09) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-visual svg { position: relative; width: 62%; height: auto; }
.project-visual .pv-year {
  position: absolute; left: 18px; top: 16px; font-family: var(--font-mono); font-size: 12px; color: #93C5FD; font-weight: 600;
}
.project-body { padding: 34px 36px; display: flex; flex-direction: column; }
.project-body h3 { font-size: 24px; margin-bottom: 6px; }
.project-role { font-family: var(--font-mono); font-size: 12.5px; color: var(--coral); font-weight: 600; margin-bottom: 16px; }
.project-body p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.project-body .t-list { margin-bottom: 20px; }
.project-body .tag-group { margin-top: auto; }

.placeholder-card { border: 2px dashed var(--border-hover); background: transparent; box-shadow: none; text-align: center; align-items: center; justify-content: center; padding: 44px 28px; }
.placeholder-card h3 { font-size: 19px; }
.placeholder-card p { color: var(--text-muted); max-width: 420px; }

/* ---------- Map ---------- */
.map-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.map-frame { position: relative; background: #EEF2F7; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 300px; }
.map-controls { position: absolute; top: 14px; right: 14px; z-index: 10; display: flex; gap: 8px; }
.map-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--text-dark); font-weight: 700; font-size: 16px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: all .2s ease;
}
.map-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.map-svg { width: 100%; }
.map-svg svg { width: 100%; height: auto; display: block; cursor: grab; }
.map-svg svg:active { cursor: grabbing; }
.country-path { fill: #CBD5E1; stroke: #fff; stroke-width: .6; transition: fill .2s ease; }
.country-path.heritage { fill: var(--blue); cursor: pointer; }
.country-path.visited { fill: var(--coral); cursor: pointer; }
.country-path.home { fill: #1E3A8A; cursor: pointer; }
.country-path.hl { fill: var(--gold) !important; }
.map-pop {
  position: absolute; display: none; pointer-events: none; z-index: 20;
  background: var(--text-dark); color: #fff; font-family: var(--font-mono); font-size: 12.5px;
  padding: 6px 12px; border-radius: 6px; box-shadow: var(--shadow-md); white-space: nowrap;
}
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.travel-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.travel-panel h3 { font-size: 20px; margin-bottom: 4px; }
.travel-panel .sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.country-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.country-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card-alt);
  cursor: pointer; transition: all .2s ease; width: 100%; font: inherit; text-align: left;
}
.country-item:hover, .country-item.active { border-color: var(--gold); background: rgba(245,158,11,.08); }
.country-item .ci-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); font-size: 14.5px; }
.country-item .ci-flag { font-size: 19px; }
.country-item .ci-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-muted); }
.country-item.home .ci-badge { color: var(--blue); }

/* ---------- Quote / mission band ---------- */
.band {
  background: var(--navy); color: #CBD5E1; border-radius: var(--radius-lg); padding: 56px;
  position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px;
  background: radial-gradient(circle, rgba(255,71,87,.3) 0%, transparent 65%);
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; max-width: 640px; }
.band p { max-width: 600px; font-size: 16.5px; margin-bottom: 28px; }
.band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 20px 22px; }
.metric b { display: block; font-family: var(--font-display); font-size: 34px; color: #fff; line-height: 1.1; }
.metric span { font-size: 13.5px; color: #94A3B8; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { counter-increment: step; }
.step::before {
  content: '0' counter(step); display: block; font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--coral); margin-bottom: 12px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); color: var(--text-dark); transition: all .2s ease;
}
.contact-item:hover { color: var(--text-dark); border-color: var(--coral); transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-item .card-icon { margin: 0; flex-shrink: 0; }
.contact-item .ci-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.contact-item .ci-value { font-weight: 700; font-size: 15.5px; word-break: break-word; }
.contact-item .arrow { margin-left: auto; color: var(--text-light); font-size: 18px; }

.form-card { padding: 32px; }
.form-card h2 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text-dark);
  background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }

.li-badge-wrap { margin-top: 24px; }

/* ---------- Next-page CTA ---------- */
.next-page {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 34px; border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text-dark);
  transition: all .25s ease;
}
.next-page:hover { color: var(--text-dark); border-color: var(--blue); box-shadow: var(--shadow-md); }
.next-page small { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.next-page strong { font-family: var(--font-display); font-size: 24px; }
.next-page .arrow-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--text-dark); color: #fff; display: grid; place-items: center; font-size: 20px; transition: background .2s ease, transform .2s ease; flex-shrink: 0; }
.next-page:hover .arrow-circle { background: var(--blue); transform: translateX(4px); }
.section-tight { padding: 56px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94A3B8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.site-footer p { font-size: 14px; max-width: 340px; }
.site-footer h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #E2E8F0; margin-bottom: 14px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #94A3B8; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .mono { font-family: var(--font-mono); font-size: 12px; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(100px, 18vw, 180px); line-height: 1; color: var(--text-dark); }
.notfound .code span { color: var(--coral); }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portrait-tag { left: -12px; }
  .portrait-tag.top { right: -12px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15.5px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }

  section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid, .split, .timeline-grid, .map-grid, .contact-grid, .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .portrait-wrap { justify-self: center; max-width: 360px; order: -1; }
  .fact-list { position: static; }
  .project { grid-template-columns: 1fr; }
  .project-visual { min-height: 200px; }
  .project-visual svg { width: 42%; }
  .project-body { padding: 28px 24px; }
  .metric-row { grid-template-columns: 1fr; }
  .band { padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 64px 0 56px; }
  .page-index { font-size: 110px; }
  .strip-list { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat-card:last-child { grid-column: span 2; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portrait-tag { left: 8px; bottom: 16px; padding: 10px 12px; }
  .portrait-tag.top { right: 8px; top: 16px; }
  .portrait-wrap::before { inset: 12px -10px -10px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .next-page { padding: 22px; }
  .next-page strong { font-size: 20px; }
  .card { padding: 24px; }
  .mini-stats { grid-template-columns: 1fr; }
}
