/* ============================================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */
:root {
  /* Colours */
  --c-bg:          #faf8f5;
  --c-surface:     #ffffff;
  --c-surface-2:   #f5f2ec;
  --c-border:      #e8e0d4;
  --c-border-soft: #ede8e0;

  --c-gold:        #b89a6a;
  --c-gold-light:  #d4b98a;
  --c-gold-faint:  #f0e8d8;

  --c-text:        #2a2420;
  --c-text-2:      #6b5f54;
  --c-text-3:      #9e9089;

  /* Typography */
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-display: 'Playfair Display', Georgia, serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --max-w: 1200px;
  --header-h: 64px;

  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(60,40,20,0.06), 0 4px 16px rgba(60,40,20,0.04);
  --shadow-hover: 0 2px 8px rgba(60,40,20,0.10), 0 6px 24px rgba(60,40,20,0.07);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  250ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Focus visible ring */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ============================================================
   LAYOUT HELPER
   ============================================================ */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-soft);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  transform: translateY(1px);
}

.logo-text {
  font-family: var(--f-display);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1;
  white-space: nowrap;
}

/* Header nav */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav ul {
  display: flex;
  gap: var(--space-1);
}

.header-nav .nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-text-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.header-nav .nav-link:hover {
  color: var(--c-text);
  background: var(--c-gold-faint);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-btn {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  padding: 3px 6px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--c-gold);
  background: var(--c-gold-faint);
}

.lang-divider {
  color: var(--c-border);
  font-size: var(--text-xs);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-text-2);
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-mid);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-soft);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-nav .nav-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border-soft);
}

.mobile-nav .nav-link:hover { color: var(--c-gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-soft);
  padding: var(--space-16) 0 var(--space-12);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  max-width: 640px;
  position: relative;
  padding: var(--space-8);
  border: 1px solid rgba(184, 154, 106, 0.42);
  border-left: 3px solid rgba(184, 154, 106, 0.58);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-name {
  font-family: var(--f-display);
  font-size: var(--text-4xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: var(--space-5);
}

.hero-name-secondary {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--c-text-2);
  margin-top: var(--space-1);
}

.hero-bio {
  font-size: var(--text-base);
  color: var(--c-text-2);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

/* Social links row */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.social-btn--label {
  width: auto;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.social-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-faint);
}

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem var(--space-6);
  background: var(--c-gold-faint);
  border: 1.5px solid var(--c-gold-light);
  border-radius: var(--r-md);
  color: var(--c-gold);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.cta-btn:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold);
  color: var(--c-surface);
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: flex-start;
  order: -1;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  left: 6%;
  top: 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 189, 140, 0.35) 0%, rgba(219, 189, 140, 0) 72%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: none;
}

.hero-photo-frame {
  position: relative;
  width: clamp(290px, 34vw, 420px);
  height: clamp(410px, 53vw, 560px);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(210, 191, 160, 0.35);
  background: linear-gradient(160deg, rgba(246, 241, 233, 0.92) 0%, rgba(242, 234, 221, 0.66) 100%);
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 18px 34px rgba(101, 80, 52, 0.1);
}

.hero-photo {
  width: 145%;
  height: 145%;
  max-width: none;
  object-fit: cover;
  object-position: 55% 26%;
  transform: translate(-15%, 5%);
  padding: 0;
  filter: drop-shadow(0 20px 28px rgba(71, 56, 36, 0.22));
}

.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--c-text-3);
  font-size: var(--text-sm);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-8) var(--space-16);
}

/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.tab-nav {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-6) 0 var(--space-2);
  border-bottom: 1px solid var(--c-border-soft);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-text-2);
  border: 1px solid transparent;
  border-radius: 100px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--c-text);
  border-color: var(--c-border);
  background: var(--c-surface-2);
}

.tab-btn.active {
  color: var(--c-gold);
  border-color: var(--c-gold-light);
  background: var(--c-gold-faint);
  font-weight: 500;
}

/* ============================================================
   TAB PANELS
   ============================================================ */
.tab-panel {
  padding-top: var(--space-10);
}

.tab-panel[hidden] { display: none; }
.tab-panel.active { display: block; }

.panel-inner {
  max-width: 960px;
}

.panel-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-12);
  align-items: start;
}

/* Section titles */
.section-title {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(184, 154, 106, 0.88) 0%,
    rgba(184, 154, 106, 0.55) 14%,
    rgba(232, 223, 210, 0.9) 42%,
    rgba(232, 223, 210, 0.35) 100%
  );
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 132px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(176, 138, 87, 0.95) 0%,
    rgba(176, 138, 87, 0.72) 46%,
    rgba(176, 138, 87, 0.28) 82%,
    rgba(176, 138, 87, 0) 100%
  );
}

.subsection-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--space-4);
}

.panel-main p {
  color: var(--c-text-2);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* ============================================================
   ABOUT — EDUCATION
   ============================================================ */
.subsection { margin-top: var(--space-8); }

.edu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.edu-item {
  display: grid;
  grid-template-columns: minmax(128px, 150px) 1fr;
  gap: var(--space-5);
  align-items: start;
}

.edu-year {
  font-size: var(--text-xs);
  color: var(--c-gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-top: 3px;
  white-space: normal;
  line-height: 1.35;
}

.edu-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--space-1);
}

.edu-item span {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-text-2);
}

/* ============================================================
   FACT CARDS (About sidebar)
   ============================================================ */
.fact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-text-2);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.fact-card:hover {
  border-color: var(--c-gold-light);
  background: var(--c-gold-faint);
}

.fact-icon {
  flex-shrink: 0;
  color: var(--c-gold);
  margin-top: 2px;
}

/* ============================================================
   CARDS GRID (Experience & Activities)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Experience cards */
.exp-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

.exp-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold-light);
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.exp-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

.exp-org {
  font-size: var(--text-sm);
  color: var(--c-gold);
  margin-top: var(--space-1);
}

.exp-period {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
}

.exp-card p {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  line-height: 1.7;
}

/* Activities cards */
.act-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

.act-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold-light);
}

.act-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

.act-card p {
  font-size: var(--text-sm);
  color: var(--c-text-2);
  line-height: 1.7;
  flex: 1;
}

.act-tag {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: var(--c-gold-faint);
  border: 1px solid var(--c-gold-light);
  border-radius: 100px;
  padding: 2px 10px;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pub-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}

.pub-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--c-gold-light);
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.pub-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 100px;
}

.pub-tag--article {
  color: #6b7c5a;
  background: #eef2e8;
  border: 1px solid #c8d4b6;
}

.pub-tag--paper {
  color: #5a6b7c;
  background: #e8eef2;
  border: 1px solid #b6c4d4;
}

.pub-tag--thesis {
  color: #7c6b5a;
  background: #f2eee8;
  border: 1px solid #d4c4b6;
}

.pub-tag--conference {
  color: #7c5a6b;
  background: #f2e8ee;
  border: 1px solid #d4b6c4;
}

.pub-year {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-3);
}

.pub-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

.pub-journal {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.pub-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pub-link {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}

.pub-link:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: var(--c-gold-faint);
}

.pub-link--doi {
  color: var(--c-gold);
  border-color: var(--c-gold-light);
  background: var(--c-gold-faint);
}

.pub-link--doi:hover {
  background: var(--c-gold-light);
  color: #fff;
  border-color: var(--c-gold);
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
  transition: transform var(--t-mid);
}

.cert-card:hover { transform: translateY(-2px); }

.cert-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  background: var(--c-surface-2);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-mid);
}

.cert-card:hover .cert-thumb img { transform: scale(1.03); }

.cert-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,28,18,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.cert-card:hover .cert-thumb-overlay { opacity: 1; }

/* Placeholder when image fails */
.cert-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-thumb--placeholder img { display: none; }

.cert-thumb--doc {
  background: linear-gradient(155deg, #f8f4ec 0%, #f1e9dc 100%);
}

.cert-thumb--doc::before {
  content: 'PDF';
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--c-gold-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.cert-label {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  text-align: center;
}

.cert-note {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  font-style: italic;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-panel { max-width: 560px; }

.contacts-intro {
  color: var(--c-text-2);
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  line-height: 1.7;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.contact-item:hover {
  border-color: var(--c-gold-light);
  background: var(--c-gold-faint);
  box-shadow: var(--shadow-card);
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
}

.contact-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 2px;
}

.contact-value {
  font-size: var(--text-sm);
  color: var(--c-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--c-border-soft);
  background: var(--c-surface);
  padding: var(--space-8) 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: var(--c-gold); }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--c-text-3);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero {
    padding: var(--space-10) 0 var(--space-10);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-photo-wrap {
    display: flex;
    justify-content: center;
    order: -1;
  }

  .hero-photo-frame {
    width: min(78vw, 340px);
    height: min(105vw, 460px);
  }

  .hero-photo {
    width: 140%;
    height: 140%;
    object-position: 55% 24%;
    transform: translate(-14%, 6%);
  }

  .hero-name { font-size: var(--text-3xl); }

  .panel-inner.two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .panel-side { order: -1; }

  .fact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  :root { --header-h: 56px; }

  .header-inner,
  .hero-inner,
  .content-area,
  .footer-inner { padding-left: var(--space-5); padding-right: var(--space-5); }

  .hero { padding: var(--space-8) 0; }
  .hero-name { font-size: var(--text-2xl); }
  .hero-name-secondary { font-size: var(--text-xl); }

  .hero-photo-frame {
    width: min(86vw, 300px);
    height: min(120vw, 430px);
    border-radius: 24px;
  }

  .hero-photo {
    width: 142%;
    height: 142%;
    object-position: 56% 22%;
    transform: translate(-15%, 7%);
  }

  .social-links { gap: var(--space-2); }
  .social-btn { width: 36px; height: 36px; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-cards {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    padding: var(--space-4) 0 var(--space-2);
  }

  .exp-card-header {
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer-nav {
    gap: var(--space-2) var(--space-4);
  }
}

@media (max-width: 380px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* About intro specific styles */
#panel-about .about-intro {
  width: 100%;
}

#panel-about .about-intro p {
  margin-bottom: var(--space-5);
  line-height: 1.8;
  color: var(--c-text-2);
  text-align: justify;
}

#panel-about .about-intro p:last-child {
  margin-bottom: 0;
}
