/* ═══════════════════════════════════════════════════════════
   FRANCIS SOGBE — PORTFOLIO  |  Blue Edition
   Mirroring the structure & craft of the Adinkrah Portfolio
═══════════════════════════════════════════════════════════ */
:root {
  --bg:             #EEF4FF;
  --bg-soft:        #E4EDFF;
  --cream:          #F5F9FF;
  --ink:            #0A1628;
  --ink-soft:       #1E2D45;
  --muted:          #4A6080;
  --text-secondary: #5A7090;
  --line:           rgba(21,101,192,0.10);
  --line-strong:    rgba(21,101,192,0.18);
  --blue:           #1565C0;
  --blue-bright:    #1976D2;
  --blue-deep:      #0D47A1;
  --blue-glow:      rgba(21,101,192,0.08);
  --sky:            #2196F3;
  --sky-bright:     #64B5F6;
  --sky-soft:       rgba(33,150,243,0.12);
  --cobalt:         #1A4FBF;
  --gold:           #B45309;
  --gold-bright:    #D97706;
  --gold-soft:      rgba(180,83,9,0.12);
  --surface:        rgba(245,249,255,0.82);
  --surface-strong: rgba(245,249,255,0.96);
  --shadow-sm:      0 4px 12px rgba(10,22,40,0.06), 0 1px 3px rgba(10,22,40,0.04);
  --shadow:         0 24px 60px rgba(10,22,40,0.09), 0 6px 18px rgba(10,22,40,0.05);
  --shadow-lg:      0 40px 100px rgba(10,22,40,0.12), 0 12px 32px rgba(10,22,40,0.07);
  --shadow-blue:    0 30px 80px rgba(21,101,192,0.22), 0 12px 28px rgba(21,101,192,0.12);
  --shadow-portrait:0 50px 120px rgba(0,0,0,0.45), 0 20px 40px rgba(0,0,0,0.25);
  --content-width:  min(1200px, calc(100% - 2rem));
  --content-narrow: min(880px, calc(100% - 2rem));
  --radius:         1.4rem;
  --radius-lg:      2rem;
  --radius-xl:      2.4rem;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 8%  8%,  rgba(33,150,243,0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 96%  4%,  rgba(21,101,192,0.08), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 102%, rgba(29,78,216,0.07),  transparent 60%),
    linear-gradient(180deg, #EEF4FF 0%, #E8F0FE 50%, #EEF4FF 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.page-shell  { width: var(--content-width);  margin: 0 auto; position: relative; z-index: 2; }
.page-narrow { width: var(--content-narrow); margin: 0 auto; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1001;
  background: rgba(5,18,45,0.60);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(100,181,246,0.14);
}
.header-inner {
  width: var(--content-width); min-height: 4.6rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; }
.wordmark-mark {
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--sky-bright), var(--blue));
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-style: italic; font-weight: 700; font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(33,150,243,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.wordmark-text { display: inline-flex; flex-direction: column; gap: 0.1rem; }
.wordmark-kicker { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sky-bright); font-weight: 700; }
.wordmark-name  { font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 500; color: #F5F9FF; letter-spacing: -0.01em; }

.header-links { display: flex; align-items: center; gap: 1.4rem; }
.header-links a { font-size: 0.84rem; font-weight: 600; color: rgba(245,249,255,0.75); transition: color 220ms; position: relative; }
.header-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sky-bright); transform: scaleX(0); transform-origin: left; transition: transform 280ms; }
.header-links a:hover { color: #fff; }
.header-links a:hover::after { transform: scaleX(1); }
.header-cv-btn {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--blue-deep));
  color: #fff !important; font-size: 0.78rem !important; font-weight: 700 !important;
  display: inline-flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(21,101,192,0.45);
  transition: transform 200ms, box-shadow 200ms !important;
}
.header-cv-btn::after { display: none !important; }
.header-cv-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,101,192,0.55) !important; }

/* Mobile menu */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 2.6rem; height: 2.6rem; padding: 0.4rem;
  border-radius: 0.5rem; border: 1px solid rgba(100,181,246,0.2);
}
.mobile-menu-toggle span { display: block; height: 2px; background: rgba(245,249,255,0.8); border-radius: 2px; transition: all 0.3s; }
.header-links.active {
  display: flex !important; flex-direction: column; align-items: flex-start;
  position: fixed; top: 4.6rem; right: 0; width: min(340px, 100vw);
  background: rgba(5,18,45,0.97); backdrop-filter: blur(24px);
  border-left: 1px solid rgba(100,181,246,0.15);
  border-bottom: 1px solid rgba(100,181,246,0.15);
  padding: 1.5rem 2rem 2rem; gap: 0.4rem;
  box-shadow: -8px 12px 40px rgba(0,0,0,0.3);
}
.header-links.active a { padding: 0.6rem 0; font-size: 1rem; border-bottom: 1px solid rgba(100,181,246,0.08); width: 100%; }
.header-links.active a:last-child { border-bottom: none; margin-top: 0.5rem; }
.mobile-nav-close { display: none; }
.header-links.active .mobile-nav-close {
  display: flex; align-items: center; justify-content: center; align-self: flex-end;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: rgba(100,181,246,0.12); border: 1px solid rgba(100,181,246,0.25);
  color: rgba(245,249,255,0.85); font-size: 1rem; cursor: pointer; margin-bottom: 0.5rem;
  transition: background 0.2s, transform 0.2s; flex-shrink: 0;
}
.header-links.active .mobile-nav-close:hover { background: rgba(100,181,246,0.25); transform: rotate(90deg); }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: rgba(225,235,255,0.35); }
.section-dark {
  background: var(--ink);
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(21,101,192,0.25), transparent 60%);
  color: #F5F9FF;
}

.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; margin-bottom: 3.5rem; }
.section-kicker {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--blue); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.section-kicker::before { content: ""; width: 20px; height: 2px; background: var(--blue); flex-shrink: 0; }
.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; line-height: 1.15;
  color: var(--ink); margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.section-title em { color: var(--blue-bright); font-style: italic; }
.section-dark .section-title { color: #F5F9FF; }
.section-dark .section-kicker { color: var(--sky-bright); }
.section-dark .section-kicker::before { background: var(--sky-bright); }
.section-blurb { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 520px; margin: 0; }
.section-dark .section-blurb { color: rgba(245,249,255,0.65); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── HERO ───────────────────────────────────────────────── */
.hero { padding: 0; overflow: hidden; }
.hero-inner {
  width: var(--content-width); margin: 0 auto;
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 4rem;
  padding: 8rem 0 5rem;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sky-soft);
  border: 1px solid rgba(33,150,243,0.25);
  color: var(--blue); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0.45rem 1rem; border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-badge::before { content: "●"; font-size: 0.5rem; color: var(--sky); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-name {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--ink); letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.hero-name em { color: var(--blue-bright); font-style: italic; }
.hero-title {
  font-size: 1.15rem; font-weight: 600; color: var(--blue);
  margin: 0 0 0.35rem;
}
.hero-org {
  font-size: 0.92rem; color: var(--muted);
  margin: 0 0 2.2rem;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.4rem;
}
.hero-tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.32rem 0.85rem; border-radius: 999px;
  border: 1.5px solid rgba(21,101,192,0.25);
  color: var(--blue); background: var(--blue-glow);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
  transition: all 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,101,192,0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--blue);
  border: 1.5px solid rgba(21,101,192,0.35);
  font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 999px;
  transition: all 0.25s;
}
.btn-ghost:hover { background: var(--blue-glow); border-color: var(--blue); }

/* Metrics strip */
.hero-metrics {
  display: flex; gap: 0; border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-metric { flex: 1; padding-right: 2rem; position: relative; }
.hero-metric + .hero-metric { padding-left: 2rem; border-left: 1px solid var(--line); }
.hero-metric-num {
  font-family: "Fraunces", serif;
  font-size: 2.6rem; font-weight: 700; color: var(--blue);
  line-height: 1; margin-bottom: 0.3rem;
}
.hero-metric-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

/* Portrait */
.hero-portrait-col { position: relative; padding-right: 1rem; }
.hero-portrait-frame {
  position: relative;
  width: 380px;
}
.hero-portrait-bg {
  position: absolute; inset: -2rem 0 -2rem -2rem;
  background: radial-gradient(ellipse at 60% 50%, rgba(33,150,243,0.15), transparent 70%);
  border-radius: var(--radius-xl);
}
.hero-portrait-img {
  width: 340px; height: 440px;
  object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-portrait);
  position: relative; z-index: 2;
  display: block;
}
.hero-portrait-badge {
  position: absolute; bottom: 2rem; left: -2.5rem; z-index: 3;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hpb-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--blue); margin-bottom: 0.15rem; }
.hpb-value { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.hero-portrait-dot {
  position: absolute; top: 2rem; right: -1rem; z-index: 3;
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-size: 0.65rem; font-weight: 700;
  color: #fff; text-align: center; line-height: 1.2; letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(21,101,192,0.45);
  padding: 0.5rem;
}

/* ── BIO / ABOUT ────────────────────────────────────────── */
.bio-section {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 5rem; align-items: start;
}
.bio-text { font-size: 1rem; line-height: 1.85; color: var(--ink-soft); }
.bio-text p + p { margin-top: 1.2rem; }
.bio-text strong { color: var(--blue); font-weight: 700; }

.bio-sidebar {}
.bio-details-card {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bio-details-head {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  padding: 1.2rem 1.6rem;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.9);
}
.bio-detail-row {
  display: flex; padding: 0.75rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem; gap: 1rem;
}
.bio-detail-row:last-child { border-bottom: none; }
.bio-detail-label { color: var(--muted); font-weight: 600; flex-shrink: 0; min-width: 110px; }
.bio-detail-value { color: var(--ink-soft); font-weight: 500; }

.bio-photos {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-top: 1.2rem;
}
.bio-photo {
  border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s; }
.bio-photo:hover img { transform: scale(1.04); }

/* ── CAREER TIMELINE ────────────────────────────────────── */
.timeline-wrap { position: relative; }
.timeline-spine {
  position: absolute; left: 160px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(33,150,243,0.12) 100%);
}
.tl-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 0 2.8rem; margin-bottom: 2.2rem;
  position: relative;
}
.tl-item::after {
  content: ''; position: absolute;
  left: 156px; top: 1.35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.25);
  z-index: 1;
}
.tl-item.current::after {
  background: var(--gold-bright); width: 14px; height: 14px; left: 154px;
  box-shadow: 0 0 0 3px rgba(180,83,9,0.2), 0 0 16px rgba(217,119,6,0.5);
}
.tl-date {
  text-align: right; padding-top: 1.15rem;
  padding-right: 1rem;
  font-size: 0.76rem; font-weight: 700; color: var(--blue); line-height: 1.5;
}
.tl-date span { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; margin-top: 0.1rem; }
.tl-card {
  background: #ffffff;
  border: 1px solid rgba(21,101,192,0.18);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  box-shadow: 0 4px 18px rgba(21,101,192,0.10), 0 1px 4px rgba(10,22,40,0.07);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.tl-card:hover {
  box-shadow: 0 12px 36px rgba(21,101,192,0.16), 0 4px 12px rgba(10,22,40,0.08);
  transform: translateX(4px);
  border-color: rgba(21,101,192,0.35);
  border-left-color: var(--sky);
}
.tl-card.current-card {
  border-left-color: var(--gold-bright);
  border-color: rgba(180,83,9,0.25);
  background: linear-gradient(135deg, #ffffff 60%, rgba(255,249,235,0.85));
  box-shadow: 0 4px 18px rgba(180,83,9,0.10), 0 1px 4px rgba(10,22,40,0.07);
}
.tl-card.current-card::before {
  content: 'Current';
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  background: var(--gold-soft); border: 1px solid rgba(180,83,9,0.2);
  padding: 0.2rem 0.65rem; border-radius: 999px;
}
.tl-card { position: relative; }
.tl-org  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 0.2rem; }
.tl-role { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.9rem; font-family: "Fraunces", serif; }
.tl-duties { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.32rem; }
.tl-duties li { font-size: 0.87rem; color: var(--muted); padding-left: 1.1rem; position: relative; line-height: 1.6; }
.tl-duties li::before { content: "›"; position: absolute; left: 0; color: var(--sky); font-weight: 700; }

/* ── ACHIEVEMENTS ───────────────────────────────────────── */
.ach-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
}
.ach-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ach-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}
.ach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ach-icon { font-size: 2rem; margin-bottom: 1rem; }
.ach-pct {
  font-family: "Fraunces", serif;
  font-size: 3rem; font-weight: 700; color: var(--blue);
  line-height: 1; margin-bottom: 0.3rem;
}
.ach-tag { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.8rem; }
.ach-body { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }
.ach-numbers { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--blue); flex-wrap: wrap; }
.ach-arrow { color: var(--sky); }

/* ── EDUCATION ──────────────────────────────────────────── */
.edu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.edu-col-head {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--blue); display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.5rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(21,101,192,0.15);
}
.edu-col-head::before { content: ''; width: 16px; height: 2px; background: var(--blue); }
.edu-item {
  display: flex; gap: 1.2rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.edu-item:last-child { border-bottom: none; }
.edu-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  margin-top: 0.4rem;
}
.edu-dot.academic { background: var(--blue); }
.edu-dot.cert     { background: var(--gold-bright); }
.edu-qual  { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.edu-inst  { font-size: 0.82rem; color: var(--blue-bright); margin-bottom: 0.15rem; }
.edu-year  { font-size: 0.75rem; color: var(--muted); }

/* ── SKILLS ─────────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1.2rem;
}
.skill-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex; align-items: flex-start; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(21,101,192,0.25); }
.skill-icon {
  width: 40px; height: 40px; border-radius: 0.7rem; flex-shrink: 0;
  background: var(--blue-glow); border: 1px solid rgba(21,101,192,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.skill-text { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; line-height: 1.55; }

/* ── SERVICES / TRAINING ────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.service-block {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}
.service-block-head {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--blue); display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.4rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(21,101,192,0.12);
}
.service-block-head::before { content: ''; width: 16px; height: 2px; background: var(--blue); }
.service-item {
  display: flex; gap: 0.8rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); line-height: 1.6;
}
.service-item:last-child { border-bottom: none; }
.service-bullet { color: var(--sky); flex-shrink: 0; margin-top: 0.05rem; font-size: 1.1rem; }
.training-item { display: flex; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.training-item:last-child { border-bottom: none; }
.training-year {
  font-size: 0.7rem; font-weight: 800; color: var(--blue);
  background: var(--blue-glow); border: 1px solid rgba(21,101,192,0.2);
  padding: 0.18rem 0.55rem; border-radius: 0.35rem;
  flex-shrink: 0; margin-top: 0.1rem; font-variant-numeric: tabular-nums;
}
.training-text { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }
.training-text strong { color: var(--ink-soft); font-weight: 600; }
.training-loc { font-size: 0.75rem; color: var(--blue-bright); display: block; margin-top: 0.18rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card-head {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--blue); margin-bottom: 1.4rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(21,101,192,0.12);
  display: flex; align-items: center; gap: 0.55rem;
}
.contact-card-head::before { content: ''; width: 16px; height: 2px; background: var(--blue); }
.contact-row { display: flex; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 38px; height: 38px; border-radius: 0.6rem; flex-shrink: 0;
  background: var(--blue-glow); border: 1px solid rgba(21,101,192,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-val { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.15rem; }
.contact-val a { color: var(--blue); }
.contact-val a:hover { color: var(--gold); }

/* ── Reference Cards ─────────────────────────────────── */
.ref-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid rgba(21,101,192,0.12);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(21,101,192,0.07);
  transition: box-shadow 0.25s, transform 0.25s, border-left-color 0.25s;
  position: relative;
  overflow: hidden;
}
.ref-item::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle at top right, rgba(21,101,192,0.06), transparent 70%);
  pointer-events: none;
}
.ref-item:last-child { margin-bottom: 0; }
.ref-item:hover {
  box-shadow: 0 8px 28px rgba(21,101,192,0.14);
  transform: translateX(3px);
  border-left-color: var(--sky);
}

/* Avatar circle with initials */
.ref-avatar {
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
  letter-spacing: 0.02em;
}

.ref-body { flex: 1; min-width: 0; }
.ref-name {
  font-size: 0.97rem; font-weight: 700;
  color: var(--ink); font-family: "Fraunces", serif;
  margin-bottom: 0.18rem; line-height: 1.3;
}
.ref-role {
  font-size: 0.76rem; font-weight: 700;
  color: var(--blue-bright);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.12rem;
}
.ref-org {
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 0.35rem; line-height: 1.4;
}
.ref-tel {
  font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem;
  flex-wrap: wrap;
}
.ref-tel a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.ref-tel a:hover { color: var(--gold); }

/* CV Download strip */
.cv-strip {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.8rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  box-shadow: var(--shadow-blue);
  margin-top: 2.5rem;
}
.cv-strip-text {}
.cv-strip-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; }
.cv-strip-title { font-family: "Fraunces", serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.cv-strip-sub   { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.cv-dl-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #fff; color: var(--blue-deep);
  font-weight: 800; font-size: 0.92rem;
  padding: 0.85rem 2rem; border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.25s; white-space: nowrap;
}
.cv-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.28); color: var(--blue-deep); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.footer-name { font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600; color: rgba(245,249,255,0.9); margin-bottom: 0.4rem; }
.footer-sub  { font-size: 0.82rem; color: rgba(245,249,255,0.4); }

/* ══════════════════════════════
   MOBILE RESPONSIVENESS
══════════════════════════════ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding: 7rem 0 4rem; gap: 3rem; }
  .hero-portrait-col { order: -1; display: flex; justify-content: center; }
  .hero-portrait-frame { width: auto; }
  .hero-portrait-img { width: 280px; height: 360px; }
  .hero-portrait-badge { left: -1rem; bottom: 1rem; }
  .hero-portrait-dot { right: 0; top: 1rem; }
  .hero-metrics { gap: 0; }
  .bio-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .edu-cols { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex !important; }
  .header-links { display: none; }
  .header-links.active { display: flex; }
  .section-head { flex-direction: column; gap: 1rem; }
  .timeline-spine { left: 0; }
  .tl-item { grid-template-columns: 1fr; padding-left: 1.5rem; }
  .tl-item::after { left: -5px; top: 1rem; }
  .tl-item.current::after { left: -7px; top: 0.9rem; }
  .tl-date { text-align: left; padding-top: 0; margin-bottom: 0.5rem; }
  .tl-card { transform: none !important; }
}
@media (max-width: 600px) {
  :root { --content-width: calc(100% - 1.5rem); }
  body { overflow-x: hidden; }
  .hero-portrait-img { width: 240px; height: 300px; }
  .hero-name { font-size: clamp(2.2rem, 10vw, 3rem); }
  .ach-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .bio-photos { grid-template-columns: 1fr 1fr; }
  .cv-strip { flex-direction: column; text-align: center; padding: 1.8rem; }
  .hero-metrics { flex-direction: column; gap: 1.5rem; }
  .hero-metric + .hero-metric { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; }
  .section { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .hero-portrait-img { width: 200px; height: 260px; }
  .hero-portrait-badge { display: none; }
}

        /* ══ PHOTO GALLERY — Club Style ═════════════════════ */
        .pg-section {
          background: var(--ink);
          background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(21,101,192,0.18), transparent 65%);
          padding: 3.5rem 0 3rem;
        }

        /* Header */
        .pg-header {
          display: flex; align-items: flex-end; justify-content: space-between;
          margin-bottom: 2.2rem; flex-wrap: wrap; gap: 1rem;
        }
        .pg-header-left { display: flex; flex-direction: column; gap: 0.5rem; }
        .pg-tag {
          font-size: 0.68rem; font-weight: 800; letter-spacing: 0.3em;
          text-transform: uppercase; color: var(--sky-bright);
          display: flex; align-items: center; gap: 0.5rem;
        }
        .pg-tag::before { content: ""; width: 20px; height: 2px; background: var(--sky-bright); }
        .pg-title {
          font-family: "Fraunces", serif;
          font-size: clamp(1.6rem, 4vw, 2.6rem);
          font-weight: 700; line-height: 1.1;
          color: #fff; margin: 0;
          letter-spacing: -0.02em;
          text-transform: uppercase;
        }
        .pg-hint {
          font-size: 0.8rem; color: rgba(245,249,255,0.4);
          margin: 0; font-weight: 500; letter-spacing: 0.04em;
          align-self: flex-end;
        }

        /* Strip / scroll wrapper */
        .pg-strip-wrap {
          overflow: hidden;
          padding-bottom: 0.5rem;
          cursor: grab;
        }
        .pg-strip-wrap:active { cursor: grabbing; }

        /* Grid — horizontal row, animates */
        .pg-grid {
          display: flex;
          gap: 0.65rem;
          width: max-content;
          animation: pgScroll 32s linear infinite;
        }
        .pg-grid.paused { animation-play-state: paused; }

        @keyframes pgScroll {
          0%   { transform: translateX(0); }
          100% { transform: translateX(-50%); }
        }

        /* Each photo tile */
        .pg-item {
          position: relative;
          border-radius: 1rem;
          overflow: hidden;
          cursor: pointer;
          width: 170px;
          aspect-ratio: 3 / 4;
          background: var(--ink-soft);
          box-shadow: 0 6px 20px rgba(0,0,0,0.4);
          transition: transform 0.28s ease, box-shadow 0.28s ease;
          flex-shrink: 0;
        }
        .pg-item:hover {
          transform: translateY(-6px) scale(1.02);
          box-shadow: 0 20px 50px rgba(21,101,192,0.45), 0 8px 20px rgba(0,0,0,0.4);
        }
        .pg-item img {
          width: 100%; height: 100%;
          object-fit: cover; object-position: center top;
          display: block; transition: transform 0.4s ease;
        }
        .pg-item:hover img { transform: scale(1.07); }
        .pg-overlay {
          position: absolute; inset: 0;
          background: linear-gradient(to top, rgba(10,22,40,0.6) 0%, transparent 60%);
          display: flex; align-items: flex-end; justify-content: center;
          padding-bottom: 1rem;
          transition: background 0.28s;
        }
        .pg-item:hover .pg-overlay {
          background: linear-gradient(to top, rgba(21,101,192,0.65) 0%, rgba(21,101,192,0.1) 60%);
        }
        .pg-zoom {
          font-size: 1.5rem;
          opacity: 0; transform: translateY(8px);
          transition: opacity 0.25s, transform 0.25s;
          filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
        }
        .pg-item:hover .pg-zoom { opacity: 1; transform: translateY(0); }

        /* ══ LIGHTBOX ═══════════════════════════════════════ */
        .pg-lightbox {
          display: none; position: fixed; inset: 0; z-index: 9999;
          background: rgba(4,8,20,0.97);
          backdrop-filter: blur(16px) saturate(120%);
          flex-direction: column;
          align-items: center; justify-content: center;
        }
        .pg-lightbox.open { display: flex; }
        .pg-lb-img-wrap {
          width: min(94vw, 1000px);
          max-height: 82vh;
          display: flex; align-items: center; justify-content: center;
        }
        .pg-lb-img-wrap img {
          max-width: 100%; max-height: 82vh;
          object-fit: contain; border-radius: 0.7rem;
          box-shadow: 0 40px 100px rgba(0,0,0,0.8);
          display: block; animation: lbFadeIn 0.22s ease;
        }
        @keyframes lbFadeIn { from { opacity:0; transform:scale(0.94); } to { opacity:1; transform:scale(1); } }
        .pg-lb-close {
          position: absolute; top: 1rem; right: 1rem;
          width: 3rem; height: 3rem; border-radius: 50%;
          background: rgba(245,249,255,0.1); border: 1px solid rgba(245,249,255,0.18);
          color: #fff; font-size: 1.1rem; cursor: pointer;
          display: flex; align-items: center; justify-content: center;
          transition: background 0.2s, transform 0.2s; z-index: 2;
          /* Minimum tap target size for mobile */
          min-width: 44px; min-height: 44px;
        }
        .pg-lb-close:hover { background: rgba(33,150,243,0.5); transform: rotate(90deg); }
        .pg-lb-arrow {
          position: absolute; top: 50%; transform: translateY(-50%);
          width: 3.2rem; height: 3.2rem; border-radius: 50%;
          background: rgba(245,249,255,0.1); border: 1px solid rgba(245,249,255,0.18);
          color: #fff; font-size: 1.2rem; cursor: pointer;
          display: flex; align-items: center; justify-content: center;
          transition: background 0.2s, transform 0.2s;
        }
        .pg-lb-arrow:hover { background: rgba(33,150,243,0.5); }
        .pg-lb-prev { left: 1.2rem; }
        .pg-lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
        .pg-lb-next { right: 1.2rem; }
        .pg-lb-next:hover { transform: translateY(-50%) translateX(3px); }
        .pg-lb-footer {
          margin-top: 1rem;
          font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
          color: rgba(245,249,255,0.6);
          background: rgba(10,22,40,0.5); backdrop-filter: blur(6px);
          padding: 0.35rem 1rem; border-radius: 999px;
          border: 1px solid rgba(245,249,255,0.1);
        }
        /* ── Mobile: horizontal scroll strip ─────────────── */
        @media (max-width: 900px) {
          .pg-item { width: 150px; }
          .pg-zoom { opacity: 1; transform: translateY(0); font-size: 1.2rem; }
          .pg-overlay { background: linear-gradient(to top, rgba(10,22,40,0.55) 0%, transparent 55%); }
        }
        @media (max-width: 600px) {
          .pg-item { width: 130px; border-radius: 0.75rem; }
          .pg-grid { gap: 0.45rem; }
          .pg-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
          .pg-hint { display: none; }
          .pg-lb-arrow { width: 2.6rem; height: 2.6rem; font-size: 1rem; }
          .pg-lb-prev { left: 0.4rem; } .pg-lb-next { right: 0.4rem; }
          .pg-lb-footer { font-size: 0.7rem; padding: 0.28rem 0.8rem; }
        }
        @media (max-width: 400px) {
          .pg-item { width: 110px; } .pg-grid { gap: 0.35rem; }
        }
        @media (hover: none) {
          .pg-item:active { transform: scale(0.96); }
        }