/* ============================================
   IMPORTS & VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&family=Karla:wght@300;400;500;600&display=swap');

:root {
  --bg-primary:       #080b14;
  --bg-surface:       #0d1117;
  --bg-card:          #111827;
  --bg-card-hover:    #151f30;
  --border:           #1e2535;
  --border-light:     #2a3347;

  --accent-r:         #818cf8;   /* research — indigo */
  --accent-t:         #34d399;   /* travel   — emerald */
  --accent-a:         #f472b6;   /* about    — pink */
  --dim-r:            rgba(129,140,248,0.10);
  --dim-t:            rgba(52,211,153,0.10);
  --dim-a:            rgba(244,114,182,0.10);

  --text-primary:     #f1f5f9;
  --text-secondary:   #94a3b8;
  --text-muted:       #475569;

  --font-display:     'Crimson Pro', Georgia, serif;
  --font-body:        'Karla', sans-serif;
  --font-mono:        'Space Mono', monospace;

  --nav-h:            64px;
  --max-w:            1180px;
  --ease:             cubic-bezier(0.16,1,0.3,1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Structural grid motif — references engineering grids */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(129,140,248,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,11,20,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.nav-logo span { color: var(--accent-r); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-r); background: var(--dim-r); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 6px;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 2px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 14px; }
}

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

/* ============================================
   HOME HERO
   ============================================ */
.home-hero {
  padding: 6rem 0 3.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-r);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-r);
  flex-shrink: 0;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 680px;
  margin-bottom: 1.5rem;
}
.home-hero h1 em { font-style: italic; color: var(--accent-r); }

.home-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 4.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-surface);
}

/* ============================================
   BRANCH CARDS
   ============================================ */
.branches { padding-bottom: 5rem; }

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}

.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease), border-color .2s, background .2s;
}
.branch-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
}
.branch-card.r::after { background: var(--accent-r); }
.branch-card.t::after { background: var(--accent-t); }
.branch-card.a::after { background: var(--accent-a); }

.branch-card:hover { transform: translateY(-3px); background: var(--bg-card-hover); }
.branch-card.r:hover { border-color: rgba(129,140,248,.3); }
.branch-card.t:hover { border-color: rgba(52,211,153,.3); }
.branch-card.a:hover { border-color: rgba(244,114,182,.3); }

.branch-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.branch-card.r .branch-icon { background: var(--dim-r); }
.branch-card.t .branch-icon { background: var(--dim-t); }
.branch-card.a .branch-icon { background: var(--dim-a); }

.branch-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.branch-card.r .branch-num { color: var(--accent-r); }
.branch-card.t .branch-num { color: var(--accent-t); }
.branch-card.a .branch-num { color: var(--accent-a); }

.branch-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.branch-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.branch-list {
  list-style: none;
  margin-bottom: 1.75rem;
}
.branch-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: .3rem 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.branch-list li::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  flex-shrink: 0;
}
.branch-card.r .branch-list li::before { background: var(--accent-r); }
.branch-card.t .branch-list li::before { background: var(--accent-t); }
.branch-card.a .branch-list li::before { background: var(--accent-a); }

.branch-cta {
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
  transition: gap .2s;
}
.branch-card:hover .branch-cta { gap: .8rem; }
.branch-card.r .branch-cta { color: var(--accent-r); }
.branch-card.t .branch-cta { color: var(--accent-t); }
.branch-card.a .branch-cta { color: var(--accent-a); }

/* ============================================
   SECTION HEADER
   ============================================ */
.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.sec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: .6rem;
}
.sec-label::before { content:''; width:16px; height:1px; background:var(--text-muted); }
.sec-more {
  font-size: 13px;
  color: var(--accent-r);
  font-weight: 500;
}
.sec-more:hover { text-decoration: underline; }

/* ============================================
   POST CARDS (home + archive)
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
  margin-bottom: 5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color .2s, background .2s;
  display: block;
}
.post-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.post-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: .75rem;
  display: inline-block;
}
.post-badge.research { background: var(--dim-r); color: var(--accent-r); }
.post-badge.travel   { background: var(--dim-t); color: var(--accent-t); }

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: .4rem;
}
.post-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}
.page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.page-label::before { content:''; width:24px; height:1px; flex-shrink:0; }
.page-label.r { color: var(--accent-r); }
.page-label.r::before { background: var(--accent-r); }
.page-label.t { color: var(--accent-t); }
.page-label.t::before { background: var(--accent-t); }
.page-label.a { color: var(--accent-a); }
.page-label.a::before { background: var(--accent-a); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 660px;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
}

/* ============================================
   RESEARCH AREAS
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}
.area-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.area-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-r);
  margin-bottom: .75rem;
}
.area-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.area-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.pub-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color .2s;
}
.pub-item:hover { border-color: rgba(129,140,248,.3); }

.pub-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.pub-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-r);
}
.pub-journal {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.pub-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: .4rem;
}
.pub-authors {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: .75rem;
}
.pub-abstract {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.pub-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--dim-r);
  color: var(--accent-r);
}
.pub-doi {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(129,140,248,.25);
  color: var(--accent-r);
}

/* ============================================
   TRAVEL
   ============================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-t);
  color: var(--accent-t);
  background: var(--dim-t);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.travel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  transition: border-color .2s, transform .35s var(--ease);
}
.travel-card:hover {
  border-color: rgba(52,211,153,.3);
  transform: translateY(-3px);
}
.travel-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: rgba(255,255,255,.14);
  /* Background set inline via posts.js */
}
.travel-body { padding: 1.4rem; }
.travel-loc {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent-t);
  margin-bottom: .5rem;
}
.travel-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: .45rem;
  line-height: 1.3;
}
.travel-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: .9rem;
}
.travel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   ABOUT
   ============================================ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  margin-bottom: 5rem;
  align-items: start;
}
.about-intro {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.about-intro em { font-style: italic; color: var(--accent-a); }
.about-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.about-body:last-of-type { margin-bottom: 2.5rem; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.1rem;
}
.s-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--dim-a);
  border: 2px solid rgba(244,114,182,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-a);
  margin: 0 auto .9rem;
}
.s-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: .25rem;
}
.s-role {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}
.s-list { list-style: none; }
.s-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: .5rem;
}
.s-list li:last-child { border-bottom: none; }
.s-list li strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  min-width: 55px;
  padding-top: 2px;
}
.s-link {
  font-size: 13px;
  color: var(--accent-r);
  transition: opacity .2s;
  display: block;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.s-link:last-child { border-bottom: none; padding-bottom: 0; }
.s-link:hover { opacity: .75; }
.s-link.pink { color: var(--accent-a); }

/* Timeline */
.timeline { margin-bottom: 1rem; }
.t-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.t-item::before {
  content: '';
  position: absolute;
  left: 55px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.t-item:last-child::before { display: none; }
.t-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-a);
  min-width: 46px;
  padding-top: 2px;
}
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent-a);
  background: var(--bg-primary);
  margin-top: 4px;
  flex-shrink: 0;
}
.t-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .2rem;
}
.t-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 5rem;
}
.contact-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: .4rem;
}
.contact-box > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .7rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent-a); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.btn-send { background: var(--accent-a); color: #0d0d0d; }
.btn-send:hover { background: #f9a8d4; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-logo span { color: var(--accent-r); }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .65s var(--ease) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .38s; }
.d5 { animation-delay: .48s; }
.d6 { animation-delay: .58s; }

/* Scroll-triggered */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .branches-grid  { grid-template-columns: 1fr; }
  .posts-grid     { grid-template-columns: 1fr; }
  .areas-grid     { grid-template-columns: 1fr; }
  .travel-grid    { grid-template-columns: 1fr; }
  .about-wrap     { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; }
  .about-sidebar  { order: -1; }
}
@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .home-hero { padding: 4rem 0 2rem; }
  .footer-inner { justify-content: center; text-align: center; }
}
/* --- Fullscreen Home Layout --- */
.home-fullscreen {
  height: 100vh;
  position: relative;
  overflow: hidden; /* Prevents scrolling */
  display: flex;
  align-items: center;
}

/* One big image zooming on loop */
.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.zoom-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.30); /* Darkens image so text is readable */
  animation: slowZoom 15s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* Content over the image */
.hero-content {
  width: 100%;
}

.hero-text-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 4rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Light shadow for readability */
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  max-width: 700px;
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* Profile Image on the Right */
.profile-frame {
  width: 220px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.profile-img {
  width: 100%;
  height: 104%;
  object-fit: cover;
}

/* Button styles for hero */
.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn-research { background: var(--accent-r); color: #fff; }
.btn-travel { background: transparent; border: 1px solid #fff; color: #fff; }

/* Hide footer only on homepage to maintain fullscreen look */
body:has(.home-fullscreen) .footer {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .hero-text-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left { order: 2; }
  .hero-right { order: 1; display: flex; justify-content: center; }
  .profile-frame { width: 150px; height: 150px; border-radius: 50%; }
  .hero-btns { justify-content: center; }
  .hero-desc { margin-inline: auto; }
}

/* --- Research Hero Split Layout --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 250px; /* Text takes most space, animation fixed on right */
  align-items: center;
  gap: 4rem;
}

.hero-left h1 {
  max-width: none; /* Removes old restriction so it fills the grid column */
}

/* --- Structural Animation --- */
.structure-anim {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  color: var(--text-secondary); /* Keeps it monochrome / muted */
}

.building-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The skewing animation simulates inter-storey drift */
.sway-group {
  transform-origin: 50px 90px; /* Anchors the animation to the ground line */
  animation: seismicDrift 4s ease-in-out infinite;
}

@keyframes seismicDrift {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(-4deg); }
  75% { transform: skewX(4deg); }
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-right {
    display: none; /* Hides the animation on mobile to save vertical space */
  }
}
/* --- Travel Animation --- */
.travel-anim {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  color: var(--text-secondary); /* Base monochrome color */
}

.mountain-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Clouds drift slowly back and forth */
.anim-clouds {
  animation: driftClouds 8s ease-in-out infinite alternate;
}

@keyframes driftClouds {
  0% { transform: translateX(0); }
  100% { transform: translateX(-8px); }
}

/* Sun arcs over the mountains */
.sun-orbit {
  transform-origin: 50px 90px; /* Anchors rotation below the ground line */
  animation: orbitSun 15s linear infinite;
}

@keyframes orbitSun {
  0% { transform: rotate(-30deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: rotate(70deg); opacity: 0; }
}
