/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FEFEFE;
  color: #111111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #FEFEFE;
  --bg-subtle:    #F6F5F2;
  --bg-dark:      #0C0C0C;
  --text:         #111111;
  --text-muted:   #5F5F5F;
  --text-faint:   #999999;
  --accent:       #1A56DB;
  --accent-hover: #1340B0;
  --accent-light: #EEF3FF;
  --border:       #E4E3E0;
  --white:        #FFFFFF;
  --max-w:        1080px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.78; }

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.28);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #c0c0bc;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(254,254,254,0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s;
}
nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  padding: 6px 13px;
  border-radius: 6px;
  transition: all 0.18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
nav.scrolled .nav-links a { color: var(--text-muted); }
nav.scrolled .nav-links a:hover { color: var(--text); background: var(--bg-subtle); }

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px !important;
}
.nav-links .nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}
nav.scrolled .nav-links .nav-cta { color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 21px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.2s;
}
nav.scrolled .hamburger span { background: var(--text); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(254,254,254,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--bg-subtle); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(26,86,219,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,219,0.14);
  border: 1px solid rgba(26,86,219,0.28);
  color: #93B4F8;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: #93B4F8;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: #93B4F8;
}
.hero-bio {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
}

/* Photo frame */
.photo-wrap { display: flex; justify-content: center; }
.photo-frame {
  width: 280px; height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1A3264 0%, #0D1F46 45%, #080E22 100%);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.photo-frame::before {
  content: 'FC';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.04em;
  user-select: none;
}
.photo-frame-caption {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.photo-frame-caption strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.photo-frame-caption span {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
/* Hide initials placeholder when a real photo is present */
.photo-frame:has(img)::before { display: none; }

/* ============================================================
   PROOF SECTION
   ============================================================ */
.proof {
  padding: 52px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.proof-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 30px;
}
.proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.proof-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
  cursor: default;
}
.proof-logo:hover { opacity: 0.85; filter: grayscale(0%); }
.proof-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ============================================================
   EXPERTISE SECTION
   ============================================================ */
.expertise { background: var(--bg); }
.expertise-header { max-width: 540px; margin-bottom: 52px; }
.expertise-header h2 { margin-bottom: 14px; }
.expertise-header p { font-size: 1rem; }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.expertise-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}
.expertise-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(26,86,219,0.08);
  transform: translateY(-2px);
}
.expertise-card:hover .card-arrow { transform: translateX(4px); color: var(--accent); }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; }
.expertise-card h3 { color: var(--text); margin-bottom: 8px; }
.expertise-card p {
  font-size: 0.875rem;
  line-height: 1.58;
  flex: 1;
  margin-bottom: 18px;
}
.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-faint);
  transition: all 0.18s;
  margin-top: auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: var(--bg-subtle); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}
.about-content h2 { margin-bottom: 22px; }
.about-content p {
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 18px;
}
.about-content p:last-of-type { margin-bottom: 30px; }
.about-facts { display: flex; flex-direction: column; gap: 14px; }
.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.fact-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.fact-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.fact-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 185px;
}
.about-photo:first-child {
  grid-column: 1 / -1;
  height: 230px;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact { background: var(--bg-dark); padding: 96px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-headline h2 { color: #fff; margin-bottom: 16px; }
.contact-headline p { color: rgba(255,255,255,0.44); max-width: 380px; }

.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  text-decoration: none;
}
.contact-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.ci-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.ci-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.contact-cv {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 6px;
}
.contact-cv:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.35);
}
.cv-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.cv-icon svg { width: 18px; height: 18px; }
.cv-text strong {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.cv-text span {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Hero & subpage hero: load-time staggered entrance */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag         { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.05s both; }
.hero h1          { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.20s both; }
.hero-bio         { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.hero-actions     { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
.hero-stats       { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.60s both; }
.photo-wrap       { animation: fade-up-in 0.75s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.back-link        { animation: fade-up-in 0.55s ease 0.05s both; }
.subpage-hero h1  { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.subpage-hero .hero-desc { animation: fade-up-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.28s both; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #080808;
  padding: 26px 28px;
  text-align: center;
}
footer p { color: rgba(255,255,255,0.18); font-size: 0.78rem; }

/* ============================================================
   EXPERTISE SUBPAGES
   ============================================================ */
.subpage-hero {
  background: var(--bg-dark);
  padding: 130px 0 76px;
  position: relative;
  overflow: hidden;
}
.subpage-hero::after {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, rgba(26,86,219,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.subpage-hero .container { position: relative; z-index: 1; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.42);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 30px;
  text-decoration: none;
  transition: color 0.18s;
}
.back-link:hover { color: rgba(255,255,255,0.78); }
.back-link svg { width: 16px; height: 16px; }
.subpage-hero h1 { color: #fff; margin-bottom: 18px; max-width: 680px; }
.subpage-hero .hero-desc {
  color: rgba(255,255,255,0.5);
  font-size: 1.0625rem;
  line-height: 1.76;
  max-width: 600px;
}

/* Experience cards */
.experiences { padding: 72px 0 96px; }
.exp-list { display: flex; flex-direction: column; gap: 22px; }
.exp-card {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 26px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.exp-card:hover {
  border-color: #c5d4f5;
  box-shadow: 0 4px 24px rgba(26,86,219,0.06);
}
.exp-thumb {
  width: 118px; height: 118px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-thumb svg { width: 38px; height: 38px; color: rgba(255,255,255,0.82); }
.exp-body { flex: 1; }
.exp-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.exp-body h3 { color: var(--text); margin-bottom: 8px; font-size: 1.075rem; }
.exp-body p { font-size: 0.9375rem; line-height: 1.66; margin-bottom: 14px; }
.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.18s;
}
.exp-link:hover { gap: 9px; }
.exp-link svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .photo-wrap { order: -1; }
  .photo-frame { width: 200px; height: 250px; }

  .expertise-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-photos { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .subpage-hero { padding: 110px 0 60px; }
  .exp-card { flex-direction: column; }
  .exp-thumb { width: 100%; height: 140px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 260px; gap: 44px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr 240px; gap: 48px; }
}
