@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #F5F3EE;
  --bg-card: #FDFCFA;
  --text: #1A1916;
  --text-muted: #6B6860;
  --text-light: #9B9890;
  --accent: #2A4D8F;
  --accent-light: #E8EDF7;
  --accent-mid: #5B7EC4;
  --border: rgba(26,25,22,0.1);
  --border-strong: rgba(26,25,22,0.2);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,243,238,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  justify-content: space-between;
  gap: 1rem;
}
.nav-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch button {
  all: unset;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.lang-switch button:hover { background: var(--accent-light); color: var(--accent); }
.lang-switch button.active { background: var(--accent); color: white; }
.lang-switch .sep { width: 0.5px; background: var(--border-strong); height: 18px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* ── PAGE WRAPPER ── */
.page-body { padding-top: var(--nav-h); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 8vw, 8rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: center;
  width: 100%;
}
.hero-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero-name { font-family: 'DM Serif Display', serif; font-size: clamp(3.2rem, 7vw, 5.8rem); line-height: 1.03; margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); font-weight: 300; max-width: 500px; line-height: 1.65; margin-bottom: 2rem; }
.hero-affil { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.affil-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em; padding: 0.3rem 0.85rem; border-radius: 2px; border: 0.5px solid var(--border-strong); color: var(--text-muted); background: var(--bg-card); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Portrait */
.portrait-wrap { display: flex; justify-content: center; }
.portrait-box { width: 270px; height: 330px; background: var(--accent-light); border: 1.5px solid rgba(42,77,143,0.2); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.portrait-initial { font-family: 'DM Serif Display', serif; font-size: 5rem; color: var(--accent-mid); line-height: 1; }
.portrait-hint { font-size: 0.72rem; color: var(--accent-mid); text-align: center; }

/* ── OVERVIEW CARDS ── */
.overview { padding: 6rem clamp(1.5rem, 8vw, 8rem); background: var(--bg-card); border-top: 0.5px solid var(--border); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.ov-card {
  background: var(--bg); border: 0.5px solid var(--border); border-radius: 4px;
  padding: 1.6rem; text-decoration: none; display: flex; flex-direction: column;
  gap: 0.6rem; transition: all 0.2s; position: relative; overflow: hidden;
}
.ov-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.ov-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.ov-card:hover::after { transform: scaleX(1); }
.ov-num { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; color: var(--accent-mid); }
.ov-title { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--text); }
.ov-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.ov-arrow { font-size: 0.85rem; color: var(--accent); margin-top: auto; padding-top: 0.75rem; font-weight: 500; }

/* ── INTERACTIVE TIMELINE ── */
.itl-section { padding: 6rem clamp(1.5rem, 8vw, 8rem); background: var(--bg); border-top: 0.5px solid var(--border); }
.itl-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.itl-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; color: var(--text); }
.itl-layout { display: grid; grid-template-columns: 280px 1fr; border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; min-height: 380px; }
.itl-list { background: var(--bg-card); border-right: 0.5px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; }
.itl-btn { all: unset; cursor: pointer; display: block; padding: 1rem 1.25rem; border-left: 3px solid transparent; border-bottom: 0.5px solid var(--border); transition: background 0.15s, border-left-color 0.15s; }
.itl-btn:last-child { border-bottom: none; }
.itl-btn:hover { background: var(--accent-light); }
.itl-btn.active { border-left-color: var(--accent); background: var(--accent-light); }
.itl-btn-date { font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.1em; color: var(--accent-mid); margin-bottom: 0.2rem; }
.itl-btn-title { font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 0.15rem; }
.itl-btn-type { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.05em; }
.itl-detail { background: var(--bg); padding: 2.2rem 2.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.itl-detail-type { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mid); }
.itl-detail-title { font-family: 'DM Serif Display', serif; font-size: 1.5rem; line-height: 1.2; color: var(--text); }
.itl-detail-org { font-size: 0.95rem; color: var(--accent); font-weight: 500; }
.itl-detail-date { display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-muted); background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 2px; padding: 0.2rem 0.6rem; margin-top: 0.1rem; width: fit-content; }
.itl-detail-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-top: 0.25rem; }
.itl-detail-desc ul { padding-left: 1.2rem; }
.itl-detail-desc li { margin-bottom: 0.3rem; }
.itl-detail-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* ── PAGE HEADER (inner pages) ── */
.page-header { padding: 5rem clamp(1.5rem, 8vw, 8rem) 4rem; border-bottom: 0.5px solid var(--border); }
.page-header-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--accent-mid); margin-bottom: 0.75rem; }
.page-header h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; margin-bottom: 1rem; }
.page-header p { font-size: 1rem; color: var(--text-muted); max-width: 580px; line-height: 1.65; }
.header-line { width: 44px; height: 2px; background: var(--accent); margin-top: 1.25rem; }

/* ── CONTENT ── */
.content { padding: 4rem clamp(1.5rem, 8vw, 8rem) 6rem; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1.4rem; border-radius: 3px; font-size: 0.875rem; font-weight: 500; font-family: 'Outfit', sans-serif; text-decoration: none; transition: all 0.2s; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: #1e3a6e; border-color: #1e3a6e; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

/* ── TIMELINE (experience page) ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2rem; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); transform: translateX(-4px); }
.timeline-period { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.35rem; }
.timeline-role { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.timeline-org { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.timeline-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.85rem; }

/* ── TAGS ── */
.tag { font-size: 0.68rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 2px; background: var(--accent-light); color: var(--accent); letter-spacing: 0.03em; }

/* ── PUBLICATIONS ── */
.pub-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-card { background: var(--bg-card); border: 0.5px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; padding: 1.5rem 1.8rem; transition: border-left-color 0.2s, transform 0.15s; }
.pub-card:hover { border-left-color: var(--accent-mid); transform: translateX(3px); }
.pub-year { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.pub-title { font-size: 0.975rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; line-height: 1.45; }
.pub-authors { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pub-journal { font-size: 0.8rem; color: var(--text-light); font-style: italic; margin-bottom: 0.75rem; }
.pub-link { font-size: 0.8rem; color: var(--accent); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.pub-link:hover { border-color: var(--accent); }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.skill-block { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; padding: 1.25rem 1.4rem; }
.skill-block-title { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.skill-list { list-style: none; }
.skill-list li { font-size: 0.875rem; color: var(--text-muted); padding: 0.22rem 0; display: flex; align-items: center; gap: 0.5rem; }
.skill-list li::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-mid); flex-shrink: 0; }

/* ── LANGUAGE PIPS ── */
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.lang-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1rem; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 3px; font-size: 0.875rem; }
.lang-name { color: var(--text); font-weight: 500; }
.lang-pips { display: flex; gap: 5px; align-items: center; }
.pip { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.pip.filled { background: var(--accent); }

/* mini-lang row variant (index page) */
.mini-langs { display: flex; flex-direction: column; }
.mini-lang { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 0.5px solid var(--border); font-size: 0.875rem; color: var(--text); }
.mini-lang:last-child { border-bottom: none; }

/* ── CONNECT CARDS ── */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: 860px; }
.connect-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; padding: 1.4rem 1.6rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem; transition: all 0.2s; }
.connect-card:hover { border-color: var(--accent); background: var(--accent-light); transform: translateY(-2px); }
.connect-icon { font-size: 1.3rem; margin-bottom: 0.3rem; }
.connect-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
.connect-value { font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.connect-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ── DARK BLOCK ── */
.dark-block { background: #1A1916; color: #F5F3EE; border-radius: 4px; padding: 2rem 2.4rem; margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.dark-block-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: #9B9890; margin-bottom: 0.4rem; }
.dark-block h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: #F5F3EE; margin-bottom: 0.3rem; }
.dark-block p { font-size: 0.875rem; color: #9B9890; max-width: 380px; }
.btn-dark { background: transparent; color: #F5F3EE; border: 1.5px solid rgba(245,243,238,0.3); padding: 0.65rem 1.4rem; border-radius: 3px; text-decoration: none; font-size: 0.875rem; font-weight: 500; font-family: 'Outfit', sans-serif; transition: all 0.2s; white-space: nowrap; }
.btn-dark:hover { border-color: #F5F3EE; background: rgba(245,243,238,0.08); }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: var(--accent-light); border: 1px solid rgba(42,77,143,0.2); border-radius: 4px; padding: 1.5rem 1.8rem; margin-top: 2rem; }
.highlight-box-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.highlight-box-title { font-size: 0.975rem; font-weight: 500; color: var(--text); margin-bottom: 0.5rem; }
.highlight-box-meta a { color: var(--accent); text-decoration: none; margin-right: 1.5rem; font-size: 0.85rem; }
.highlight-box-meta a:hover { text-decoration: underline; }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); margin: 3rem 0; }

/* ── SECTION LABEL ── */
.section-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--text-light); text-transform: uppercase; margin-bottom: 1.5rem; display: block; }

/* ── FOOTER ── */
footer { text-align: center; padding: 2.5rem; font-size: 0.78rem; color: var(--text-light); border-top: 0.5px solid var(--border); letter-spacing: 0.03em; line-height: 1.9; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeUp 0.55s ease both 0.1s; }
.anim-2 { animation: fadeUp 0.55s ease both 0.2s; }
.anim-3 { animation: fadeUp 0.55s ease both 0.3s; }
.anim-4 { animation: fadeUp 0.55s ease both 0.4s; }
.anim-5 { animation: fadeUp 0.55s ease both 0.5s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .portrait-wrap { display: none; }
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); padding: 1.5rem; border-bottom: 0.5px solid var(--border); gap: 1.2rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .content { padding: 2.5rem 1.5rem 4rem; }
  .page-header { padding: 3.5rem 1.5rem 2.5rem; }
  .hero { padding: 0 1.5rem; }
  .overview { padding: 4rem 1.5rem; }
  .itl-section { padding: 4rem 1.5rem; }
  .itl-layout { grid-template-columns: 1fr; min-height: auto; }
  .itl-list { border-right: none; border-bottom: 0.5px solid var(--border); max-height: 260px; overflow-y: auto; }
  .itl-detail { padding: 1.5rem; }
  .lang-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr !important; }
  .exp-layout { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .connect-layout { grid-template-columns: 1fr !important; gap: 3rem !important; }
}

/* ── CONTACT STRIP (shown in footer on all pages) ── */
.contact-strip {
  background: var(--accent);
  padding: 2.5rem clamp(1.5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-strip-text .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.3rem;
}
.contact-strip-text p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: white;
  line-height: 1.2;
}
.contact-strip-text p span {
  opacity: 0.7;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  display: block;
  margin-top: 0.2rem;
}
.btn-strip {
  background: white;
  color: var(--accent);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-strip:hover { opacity: 0.88; }

/* ══════════════════════════════════════════
   PAGE-SPECIFIC STYLES (moved from inline)
══════════════════════════════════════════ */

/* ── index.html - Interactive timeline ── */
.itl-section { padding: 6rem clamp(1.5rem, 8vw, 8rem); background: var(--bg-card); border-top: 0.5px solid var(--border); }
.itl-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.itl-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; color: var(--text); }
.itl-layout { display: grid; grid-template-columns: 260px 1fr; border: 0.5px solid var(--border); border-radius: 6px; overflow: hidden; min-height: 400px; }
.itl-list { background: var(--bg); border-right: 0.5px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; }
.itl-btn { all: unset; cursor: pointer; display: block; padding: 0.9rem 1.2rem; border-left: 3px solid transparent; border-bottom: 0.5px solid var(--border); transition: background 0.15s, border-left-color 0.15s; }
.itl-btn:last-child { border-bottom: none; }
.itl-btn:hover { background: var(--accent-light); }
.itl-btn.active { border-left-color: var(--accent); background: var(--accent-light); }
.itl-btn-date { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--accent-mid); margin-bottom: 0.2rem; }
.itl-btn-title { font-size: 0.84rem; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 0.12rem; }
.itl-btn-type { font-size: 0.68rem; color: var(--text-light); letter-spacing: 0.04em; }
.itl-detail { background: var(--bg-card); padding: 2rem 2.4rem; display: flex; flex-direction: column; gap: 0.6rem; overflow-y: auto; }
.itl-detail-type { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mid); }
.itl-detail-title { font-family: 'DM Serif Display', serif; font-size: 1.45rem; line-height: 1.2; color: var(--text); }
.itl-detail-org { font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.itl-detail-date { display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; color: var(--text-muted); background: var(--bg); border: 0.5px solid var(--border); border-radius: 2px; padding: 0.18rem 0.55rem; width: fit-content; }
.itl-detail-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin-top: 0.2rem; }
.itl-detail-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.2rem; }

/* ── about.html ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.975rem; line-height: 1.75; }
.motivation-block { margin-top: 3rem; padding-top: 3rem; border-top: 0.5px solid var(--border); }

/* ── research.html ── */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.topic-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; padding: 1.4rem 1.6rem; }
.topic-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.topic-title { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.topic-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── experience.html ── */
.exp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.edu-dot { background: var(--accent-mid) !important; }
.cv-bar { background: var(--bg-card); border: 0.5px solid var(--border-strong); border-radius: 4px; padding: 1.25rem 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 4rem; flex-wrap: wrap; }
.cv-bar-text { font-size: 0.9rem; color: var(--text-muted); }
.cv-bar-text strong { color: var(--text); }
.affil-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.affil-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--accent); text-decoration: none; }
.affil-row:hover { text-decoration: underline; }
.affil-key { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--text-light); width: 120px; flex-shrink: 0; }
.interests-block { margin-top: 4rem; padding-top: 3rem; border-top: 0.5px solid var(--border); }
.interests-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.interest-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; padding: 1.2rem 1.4rem; }
.interest-icon { font-size: 1.3rem; margin-bottom: 0.5rem; }
.interest-title { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.interest-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.skills-langs-grid { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.soft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.soft-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.soft-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.soft-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.soft-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── connect.html ── */
.connect-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.email-large { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--accent); text-decoration: none; display: inline-block; border-bottom: 1.5px solid var(--accent-mid); padding-bottom: 2px; margin-bottom: 2rem; transition: opacity 0.2s; }
.email-large:hover { opacity: 0.7; }
.addr-block { padding: 1.4rem 1.6rem; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 4px; }
.addr-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; }
.addr-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* ── Responsive additions ── */
@media (max-width: 900px) {
  .skills-langs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .exp-layout { grid-template-columns: 1fr; gap: 3rem; }
  .connect-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .itl-layout { grid-template-columns: 1fr; min-height: auto; }
  .itl-list { border-right: none; border-bottom: 0.5px solid var(--border); max-height: 240px; overflow-y: auto; }
  .itl-section { padding: 4rem 1.5rem; }
  .itl-detail { padding: 1.5rem; }
}
