/* ============================================================
   ASHOK GHIMIRE — style.css
   Shared across all pages
   ============================================================ */

/* --- Variables ------------------------------------------- */
:root {
  --cream:  #faf7f2;
  --white:  #ffffff;
  --ink:    #1a1c1a;
  --muted:  #6e7068;
  --sage:   #4a7c59;
  --sage-dark: #3a6447;
  --sky:    #2e6fa3;
  --amber:  #c07834;
  --rule:   rgba(26,28,26,0.10);
  --shadow: 0 4px 24px rgba(26,28,26,0.07);
  --shadow-lg: 0 12px 40px rgba(26,28,26,0.12);
  --radius: 6px;
  --nav-h:  80px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Typography ------------------------------------------ */
h1,h2,h3,h4 { font-family: 'Fraunces', serif; line-height: 1.1; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--sage); }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-label--light { color: rgba(255,255,255,0.5); }
.section-label--light::after { background: rgba(255,255,255,0.12); }

/* --- Navigation ------------------------------------------ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--sage);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }

.nav-brand {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img { height: 52px; width: auto; }
.nav-site-name {
  font-family: 'DM Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; }
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: var(--sage-dark);
  padding: 2rem 3rem;
  flex-direction: column; gap: 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-drawer.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-drawer a {
  font-size: 1.2rem; font-weight: 500;
  color: rgba(255,255,255,0.85); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}
.nav-drawer a.active,
.nav-drawer a:hover { color: var(--white); }

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--sage); color: white; }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,124,89,0.3); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--sage); border-color: white; }
.btn-white:hover { background: var(--ink); color: white; border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: white; border-color: white; }

/* --- Scroll Animations ---------------------------------- */
/* Only animate when JS has confirmed it's running (js-ready on <html>).
   Without JS, all .reveal elements are fully visible — no blank pages. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .reveal-delay-1 { transition-delay: 0.1s; }
.js-ready .reveal-delay-2 { transition-delay: 0.2s; }
.js-ready .reveal-delay-3 { transition-delay: 0.3s; }
.js-ready .reveal-delay-4 { transition-delay: 0.4s; }
.js-ready .reveal-delay-5 { transition-delay: 0.5s; }

/* --- Page Transition ------------------------------------- */
.js-ready .page-wrap {
  animation: pageFadeIn 0.5s ease both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Footer --------------------------------------------- */
footer {
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule);
  background: var(--white);
}
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.4rem; list-style: none; }
.footer-links a { color: var(--muted); font-size: 1.25rem; transition: all var(--transition); }
.footer-links a:hover { color: var(--sage); transform: translateY(-3px); }

/* --- Marquee -------------------------------------------- */
.marquee-wrap {
  background: var(--sage); overflow: hidden;
  white-space: nowrap; padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: inline-flex; gap: 3rem;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.marquee-item strong { color: white; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* --- Utility -------------------------------------------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 3rem; }
.text-sage { color: var(--sage); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--muted); }
.mono { font-family: 'DM Mono', monospace; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; padding-top: var(--nav-h);
  align-items: center;
}
.hero-left {
  padding: 5rem 4rem 5rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 1.8rem; font-weight: 500;
}
.hero-tag::before { content: ''; width: 28px; height: 2px; background: var(--sage); border-radius: 2px; }

.hero-h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 1.8rem;
}
.hero-desc {
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.85; max-width: 46ch; margin-bottom: 2.8rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2rem; border-top: 1px solid var(--rule); flex-wrap: wrap;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--sky); line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.78rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-right {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 3rem 3rem 0;
}
.image-frame {
  position: relative; width: 100%; max-width: 520px;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.image-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.6s ease; }
.image-frame:hover img { transform: scale(1.04); }
.photo-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 0.7rem 1.1rem;
  display: flex; align-items: center; gap: 0.65rem;
  box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 500;
}
.badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* About section (home) */
.about-section { padding: 7rem 0; border-bottom: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow-lg);
}
.photo-tag {
  position: absolute; bottom: -1.2rem; right: -1.2rem;
  background: var(--sky); color: white;
  padding: 0.85rem 1.4rem;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(46,111,163,0.3); z-index: 2;
}
.about-text h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1.5rem; }
.about-text p { font-size: 1.05rem; color: var(--muted); line-height: 1.9; margin-bottom: 1.2rem; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.quick-item { padding: 1.2rem 1.4rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--rule); }
.quick-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.quick-value { font-size: 0.95rem; font-weight: 500; }

/* Research cards */
.cards-section { padding: 7rem 0; background: var(--white); }
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.card {
  background: var(--cream); border-radius: 8px; overflow: hidden;
  border: 1.5px solid var(--rule); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sage); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-img-wrap { overflow: hidden; background: var(--white); }
.card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 3px; margin-bottom: 0.9rem; font-weight: 500;
}
.tag-green { background: rgba(74,124,89,0.1); color: var(--sage); }
.tag-blue  { background: rgba(46,111,163,0.1); color: var(--sky); }
.tag-amber { background: rgba(192,120,52,0.1); color: var(--amber); }
.card h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; line-height: 1.35; margin-bottom: 0.7rem; }
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.72; flex: 1; }
.card-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.2rem; font-size: 0.85rem; font-weight: 500; color: var(--sage);
  transition: gap var(--transition);
}
.card:hover .card-arrow { gap: 0.7rem; }

/* Tools section */
/* tools section moved to index inline styles */

/* CTA section */
.cta-section {
  padding: 7rem 3rem; background: var(--sage);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 580px; margin: 0 auto; }
.cta-inner h2 { color: white; font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1.2rem; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2.5rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-header {
  padding: 10rem 3rem 5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.page-intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.page-intro-text { font-size: 1.1rem; color: var(--muted); line-height: 1.85; }
.page-h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; margin-bottom: 2rem; }

/* Profile Card */
.profile-card {
  background: var(--cream); border: 1px solid var(--rule);
  border-left: 4px solid var(--sage);
  padding: 2.5rem; border-radius: var(--radius);
}
.profile-name { font-family: 'Fraunces', serif; font-size: 1.8rem; margin-bottom: 0.3rem; }
.profile-role { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--sage); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.8rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem; }
.social-card-links { display: flex; gap: 1.2rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.social-card-links a { font-size: 1.35rem; color: var(--sage); transition: all var(--transition); }
.social-card-links a:hover { color: var(--amber); transform: translateY(-3px); }

/* Experience Timeline */
.exp-section { padding: 6rem 3rem; border-bottom: 1px solid var(--rule); }
.timeline { position: relative; padding-left: 2.5rem; border-left: 2px solid var(--rule); margin-left: 1.5rem; }
.tl-item { position: relative; margin-bottom: 3.5rem; }
.tl-dot {
  position: absolute; left: -3.2rem; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--sage);
  transition: background var(--transition);
}
.tl-dot.active { background: var(--sage); box-shadow: 0 0 0 5px rgba(74,124,89,0.15); }
.tl-period {
  font-family: 'DM Mono', monospace; font-size: 0.73rem;
  color: var(--sky); font-weight: 500; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.period-badge {
  background: var(--amber); color: white;
  padding: 2px 7px; font-size: 0.6rem; border-radius: 3px;
}
.exp-card {
  background: var(--white); padding: 2rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.exp-title { font-family: 'Fraunces', serif; font-size: 1.5rem; margin-bottom: 0.2rem; }
.exp-org {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--sage); text-transform: uppercase; margin-bottom: 1.5rem; display: block;
}
.exp-sub { font-weight: 600; font-size: 0.88rem; color: var(--ink); margin: 1.5rem 0 0.6rem; display: block; }
.exp-bullets { list-style: none; }
.exp-bullets li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.93rem; line-height: 1.8; margin-bottom: 0.5rem; }
.exp-bullets li::before { content: "—"; position: absolute; left: 0; color: var(--amber); font-weight: bold; }

/* Volunteering */
.vol-section { padding: 6rem 3rem; background: var(--white); border-bottom: 1px solid var(--rule); }
.vol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.vol-card {
  padding: 1.8rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--cream); transition: border-color var(--transition), transform var(--transition);
}
.vol-card:hover { border-color: var(--sage); transform: translateY(-3px); }
.vol-org { font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--amber); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.vol-title { font-family: 'Fraunces', serif; font-size: 1.1rem; margin-bottom: 0.6rem; }
.vol-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* Education */
.edu-section { padding: 6rem 3rem; border-bottom: 1px solid var(--rule); }
.edu-item { display: grid; grid-template-columns: 130px 1fr; gap: 2rem; margin-bottom: 3rem; align-items: start; }
.edu-date { font-family: 'DM Mono', monospace; font-size: 0.85rem; color: var(--sky); padding-top: 4px; }
.edu-content h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: 0.4rem; }
.edu-school { color: var(--sage); font-weight: 500; font-size: 0.95rem; }

/* ============================================================
   RESEARCH PAGE
   ============================================================ */
.research-hero {
  padding: 11rem 3rem 6rem;
  background: var(--white); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end;
}
.research-h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; }

.pub-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
}
.stat-box { background: var(--cream); padding: 2rem; text-align: center; }
.stat-box .stat-num { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--sage); line-height: 1; margin-bottom: 0.5rem; }
.stat-box .stat-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.1em; }

/* Featured */
.featured-section {
  padding: 6rem 3rem; background: var(--ink); color: var(--white);
}
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5rem; margin-top: 2rem; }
.featured-content h2 { font-family: 'Fraunces', serif; font-size: 2.2rem; margin-bottom: 1.5rem; color: white; }
.tag-cloud { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.feature-tag { padding: 0.3rem 0.8rem; font-family: 'DM Mono', monospace; font-size: 0.63rem; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); border-radius: 4px; }
.featured-meta { border-left: 2px solid var(--amber); padding-left: 2rem; }
.meta-item { margin-bottom: 1.8rem; }
.meta-label { font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.meta-value { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* Portfolio */
.portfolio-section { padding: 6rem 3rem; background: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; margin-top: 2rem; }
.project-card {
  background: var(--white); padding: 2.5rem; border: 1px solid var(--rule);
  border-radius: var(--radius); position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-5px); border-color: var(--sage); box-shadow: var(--shadow-lg); }
.proj-num { position: absolute; top: 1.5rem; right: 2rem; font-family: 'Fraunces', serif; font-size: 3.5rem; color: rgba(0,0,0,0.04); line-height: 1; }
.proj-cat {
  font-family: 'DM Mono', monospace; font-size: 0.63rem;
  padding: 0.2rem 0.75rem; border-radius: 20px; display: inline-block; margin-bottom: 1rem;
}
.cat-hydro { background: rgba(46,111,163,0.1); color: var(--sky); }
.cat-cryo  { background: rgba(192,120,52,0.1); color: var(--amber); }
.cat-climate { background: rgba(74,124,89,0.1); color: var(--sage); }
.project-card h3 { font-family: 'Fraunces', serif; font-size: 1.35rem; margin-bottom: 1rem; line-height: 1.3; }
.project-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.tool-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tool-tag { font-family: 'DM Mono', monospace; font-size: 0.6rem; background: var(--cream); padding: 0.2rem 0.6rem; color: var(--muted); border-radius: 3px; }

/* Publications */
.pubs-section { padding: 6rem 3rem; background: var(--white); border-top: 1px solid var(--rule); }
.paper-card {
  border: 1px solid var(--rule); padding: 2.5rem; margin-bottom: 2rem;
  border-left: 5px solid var(--sage); border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.paper-card:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }
.paper-year { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--amber); margin-bottom: 0.6rem; }
.paper-title { font-family: 'Fraunces', serif; font-size: 1.45rem; margin-bottom: 1rem; line-height: 1.3; }
.paper-authors { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.8rem; }
.paper-authors strong { color: var(--ink); font-weight: 500; }
.paper-journal { font-style: italic; color: var(--sage); margin-bottom: 1.5rem; display: block; font-size: 0.93rem; }
.doi-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--sky); text-decoration: none;
  text-transform: uppercase; border-bottom: 1px solid var(--sky);
  padding-bottom: 1px; transition: color var(--transition);
}
.doi-link:hover { color: var(--sage); border-color: var(--sage); }

.conf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.conf-card {
  padding: 2rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--cream); transition: border-color var(--transition);
}
.conf-card:hover { border-color: var(--sage); }
.conf-date { font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--muted); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.conf-type { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: white; background: var(--sage); padding: 0.1rem 0.6rem; display: inline-block; margin-bottom: 0.9rem; border-radius: 3px; }
.conf-type.poster { background: var(--amber); }
.conf-card h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; margin-bottom: 0.6rem; line-height: 1.3; }
.conf-card p { font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}
.contact-panel-left {
  background: var(--ink); color: var(--white);
  padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center;
}
.contact-h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 2rem; }
.contact-h1 em { color: var(--amber); }
.contact-intro { color: rgba(255,255,255,0.65); line-height: 1.85; margin-bottom: 3.5rem; font-size: 1rem; }
.contact-list { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.4rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--amber); font-size: 1.1rem; flex-shrink: 0;
  transition: background var(--transition);
}
.contact-item:hover .contact-icon { background: rgba(255,255,255,0.06); }
.contact-text h4 { font-family: 'DM Mono', monospace; font-size: 0.65rem; text-transform: uppercase; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.contact-text p { color: var(--white); font-size: 0.97rem; }
.contact-text a { color: var(--white); text-decoration: none; transition: color var(--transition); }
.contact-text a:hover { color: var(--amber); }

/* Form panel */
.contact-panel-right { padding: 6rem 4rem; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.form-title { font-family: 'Fraunces', serif; font-size: 2.2rem; margin-bottom: 0.4rem; }
.form-sub { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 0.1em; }

.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label { display: block; font-family: 'DM Mono', monospace; font-size: 0.68rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
input, textarea, select {
  width: 100%; padding: 0.95rem 1rem;
  background: var(--white); border: 1.5px solid var(--rule);
  font-family: 'DM Sans', sans-serif; font-size: 0.97rem;
  color: var(--ink); border-radius: var(--radius); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}
textarea { resize: vertical; min-height: 130px; }
select { cursor: pointer; }

.submit-btn {
  width: 100%; padding: 1.1rem; background: var(--sage); color: var(--white);
  border: none; font-family: 'DM Mono', monospace; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer;
  transition: all var(--transition); margin-top: 0.5rem; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover:not(:disabled) { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74,124,89,0.3); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Status messages */
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: rgba(74,124,89,0.1); border: 1px solid rgba(74,124,89,0.3); color: var(--sage); }
.form-status.error { display: block; background: rgba(180,60,60,0.08); border: 1px solid rgba(180,60,60,0.25); color: #b43c3c; }

/* Pillars */
.pillars-section { padding: 6rem 3rem; background: var(--white); border-top: 1px solid var(--rule); }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.pillar-card {
  padding: 2rem; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--cream); transition: all var(--transition);
}
.pillar-card:hover { border-color: var(--sage); transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-card i { font-size: 1.6rem; color: var(--sage); margin-bottom: 1.2rem; display: block; }
.pillar-card h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin-bottom: 0.8rem; }
.pillar-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* responsive rules consolidated at bottom of file */

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-hero { padding: 9rem 3rem 3rem; background: var(--white); border-bottom: 1px solid var(--rule); }
.gallery-hero h1 { font-size: clamp(2.5rem,5vw,4rem); margin-bottom: 0.5rem; }

.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; padding: 2rem 3rem; border-bottom: 1px solid var(--rule); background: var(--white); position: sticky; top: var(--nav-h); z-index: 50; }
.filter-btn {
  padding: 0.5rem 1.2rem; font-family: 'DM Mono', monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1.5px solid var(--rule); background: transparent; color: var(--muted);
  border-radius: 30px; cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--sage); color: var(--sage); }
.filter-btn.active { background: var(--sage); border-color: var(--sage); color: white; }

.gallery-grid {
  columns: 4 250px; gap: 1rem;
  padding: 2rem 3rem;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem;
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--rule);
}
.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,28,26,0.85));
  color: white; padding: 2rem 0.9rem 0.8rem;
  font-size: 0.78rem; line-height: 1.4;
  transform: translateY(100%); transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption strong { display: block; font-weight: 500; margin-bottom: 0.2rem; }
.gallery-caption span { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: rgba(255,255,255,0.65); }

.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,28,26,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: 1.5px solid rgba(255,255,255,0.3);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); border-color: white; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1.5px solid rgba(255,255,255,0.3);
  color: white; width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.12); border-color: white; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-info {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  text-align: center; color: rgba(255,255,255,0.75);
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
}
.lightbox-info strong { display: block; color: white; margin-bottom: 0.2rem; }
.lightbox-counter { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: rgba(255,255,255,0.45); margin-top: 0.3rem; }

/* ============================================================
   ICE 2 WATER PAGE
   ============================================================ */
.ice-hero {
  padding: 9rem 3rem 5rem; background: var(--ink); color: white;
  position: relative; overflow: hidden;
}
.ice-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(46,111,163,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(74,124,89,0.15) 0%, transparent 50%);
}
.ice-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.ice-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(46,111,163,0.25); border: 1px solid rgba(46,111,163,0.4);
  padding: 0.35rem 0.9rem; border-radius: 30px; margin-bottom: 1.5rem;
  font-family: 'DM Mono', monospace; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.8);
}
.ice-hero h1 { font-size: clamp(2.8rem,5vw,5rem); color: white; margin-bottom: 1.5rem; }
.ice-hero h1 em { color: var(--sky); }
.ice-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.72); line-height: 1.85; max-width: 62ch; margin-bottom: 2.5rem; }
.ice-ext-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--sky); color: white; padding: 0.9rem 2rem;
  border-radius: var(--radius); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: all var(--transition);
}
.ice-ext-btn:hover { background: #2560a0; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,111,163,0.4); }

.ice-section { padding: 5rem 3rem; border-bottom: 1px solid var(--rule); }
.ice-lakes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; margin-top: 2rem; }
.lake-card {
  padding: 1.8rem; background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); border-top: 3px solid var(--sky);
  transition: transform var(--transition), box-shadow var(--transition);
}
.lake-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lake-name { font-family: 'Fraunces', serif; font-size: 1.1rem; margin-bottom: 0.4rem; }
.lake-region { font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
.lake-stat { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.lake-stat strong { color: var(--sky); }

.timeline-range {
  display: flex; align-items: center; gap: 0; margin-top: 2rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.range-item { flex: 1; padding: 1.2rem 1.5rem; text-align: center; border-right: 1px solid var(--rule); }
.range-item:last-child { border-right: none; }
.range-year { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--sky); line-height: 1; }
.range-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; margin-top: 0.3rem; }
.range-arrow { padding: 0 0.5rem; color: var(--muted); font-size: 1.2rem; }

/* ============================================================
   CONTEXT SECTION (homepage)
   ============================================================ */
.context-section { padding: 6rem 0; background: var(--ink); color: white; }
.context-section .section-label { color: rgba(255,255,255,0.4); }
.context-section .section-label::after { background: rgba(255,255,255,0.1); }
.context-heading { font-size: clamp(2rem,3vw,3rem); color: white; margin-bottom: 3rem; }
.context-heading em { color: var(--amber); }
.context-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.fact-card {
  padding: 2rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  transition: background var(--transition);
}
.fact-card:hover { background: rgba(255,255,255,0.08); }
.fact-number { font-family: 'Fraunces', serif; font-size: 2.8rem; color: var(--amber); line-height: 1; margin-bottom: 0.5rem; }
.fact-text { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.fact-text strong { color: rgba(255,255,255,0.9); }
.context-note { font-size: 0.82rem; color: rgba(255,255,255,0.35); font-family: 'DM Mono', monospace; }

/* ============================================================
   CURRENTLY STRIP (homepage)
   ============================================================ */
.currently-strip {
  background: var(--amber); padding: 0;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.currently-inner {
  display: flex; align-items: stretch;
  max-width: 100%;
}
.currently-item {
  flex: 1; padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.25);
  display: flex; gap: 0.8rem; align-items: center;
}
.currently-item:last-child { border-right: none; }
.currently-label {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7); white-space: nowrap;
}
.currently-value { font-size: 0.88rem; font-weight: 500; color: white; }
.currently-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); flex-shrink: 0; }

/* ============================================================
   ACHIEVEMENTS SECTION (research page)
   ============================================================ */
.achievements-section { padding: 6rem 3rem; background: var(--cream); border-top: 1px solid var(--rule); }
.achievement-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.achievement-card {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--rule); border-left: 4px solid var(--amber);
  transition: transform var(--transition), box-shadow var(--transition);
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ach-type {
  font-family: 'DM Mono', monospace; font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: white; background: var(--sage);
  padding: 0.2rem 0.6rem; border-radius: 3px; display: inline-block; margin-bottom: 0.8rem;
}
.ach-type.conference { background: var(--sky); }
.ach-type.publication { background: var(--sage); }
.ach-type.exhibition { background: var(--amber); }
.ach-title { font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.6rem; }
.ach-meta { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   UNIFIED TIMELINE (about page)
   ============================================================ */
.unified-timeline { position: relative; padding-left: 3rem; margin: 2rem 0 0 0.5rem; }
.unified-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--rule);
}
.utl-item { position: relative; margin-bottom: 3rem; }
.utl-dot {
  position: absolute; left: -3.35rem; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700;
  border: 2px solid var(--sage); background: var(--cream); color: var(--sage);
  transition: all var(--transition);
}
.utl-dot.work { background: var(--sage); color: white; border-color: var(--sage); }
.utl-dot.edu  { background: var(--sky);  color: white; border-color: var(--sky); }
.utl-dot.event{ background: var(--amber);color: white; border-color: var(--amber); }
.utl-year {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--muted); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem;
}
.utl-current { background: var(--sage); color: white; font-size: 0.58rem; padding: 1px 6px; border-radius: 3px; }
.utl-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.utl-role { font-family: 'Fraunces', serif; font-size: 1.25rem; margin-bottom: 0.2rem; }
.utl-org { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--sage); text-transform: uppercase; margin-bottom: 0.8rem; display: block; }
.utl-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   CV DOWNLOAD BUTTON
   ============================================================ */
.cv-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: white;
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; transition: all var(--transition);
  border: 2px solid var(--ink);
}
.cv-btn:hover { background: transparent; color: var(--ink); }

/* ============================================================
   CONTACT THANK YOU MODAL
   ============================================================ */
.ty-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,28,26,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.ty-modal.open { opacity: 1; pointer-events: all; }
.ty-box {
  background: white; border-radius: 12px; padding: 3rem;
  max-width: 440px; width: 90%; text-align: center;
  transform: scale(0.92); transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.ty-modal.open .ty-box { transform: scale(1); }
.ty-icon { font-size: 3rem; color: var(--sage); margin-bottom: 1rem; }
.ty-box h3 { font-family: 'Fraunces', serif; font-size: 1.8rem; margin-bottom: 0.75rem; }
.ty-box p { color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.ty-close { background: var(--sage); color: white; border: none; padding: 0.8rem 2rem; border-radius: var(--radius); cursor: pointer; font-family: 'DM Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; transition: background var(--transition); }
.ty-close:hover { background: var(--sage-dark); }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 900px) {
  .gallery-grid { columns: 2 150px; padding: 1.5rem; }
  .filter-bar { padding: 1rem 1.5rem; }
  .gallery-hero { padding: 7rem 1.5rem 2rem; }
  .ice-hero { padding: 7rem 1.5rem 4rem; }
  .ice-section { padding: 3rem 1.5rem; }
  .context-section .container { padding: 0 1.5rem; }
  .currently-inner { flex-direction: column; }
  .currently-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .currently-item:last-child { border-bottom: none; }
  .achievements-section { padding: 4rem 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
}

/* Gallery items use their own animation — NOT the .reveal system */
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery-item {
  opacity: 0;
  animation: galleryFadeIn 0.45s ease forwards;
}
/* Override any inherited .js-ready .reveal opacity */
.js-ready .gallery-item { opacity: 0; transform: none; transition: none; }
.js-ready .gallery-item.in-view { opacity: 1; transform: none; }

/* ============================================================
   TOOLS SECTION — Dark flip-card grid
   ============================================================ */
.tools-section {
  padding: 7rem 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Subtle animated grid background */
.tools-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}
/* Radial glow overlay */
.tools-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(74,124,89,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.tools-section .section-label { color: rgba(255,255,255,0.4); }
.tools-section .section-label::after { background: rgba(255,255,255,0.08); }
.tools-section h2 { color: white; position: relative; z-index: 1; }
.tools-section h2 em { color: var(--amber); }

.tools-intro {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem; line-height: 1.7;
  max-width: 52ch; margin-bottom: 3rem;
  position: relative; z-index: 1;
}

/* Flip grid */
.tools-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  position: relative; z-index: 1;
}

/* Perspective wrapper */
.tool-flip-wrap {
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

/* The flipping card */
.tool-flip-card {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}
.tool-flip-wrap:hover .tool-flip-card,
.tool-flip-wrap.flipped .tool-flip-card {
  transform: rotateY(180deg);
}

/* Both faces */
.tool-face, .tool-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front face */
.tool-face {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.tool-flip-wrap:hover .tool-face {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.tool-icon-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tool-flip-wrap:hover .tool-icon-ring {
  transform: scale(1.1);
}

/* Unique accent colours per tool */
.tool-icon-ring.c-python   { background:rgba(74,124,89,0.25); color:#6abf8a; box-shadow:0 0 0 2px rgba(74,124,89,0.3); }
.tool-icon-ring.c-gee      { background:rgba(46,111,163,0.25); color:#6aa8d9; box-shadow:0 0 0 2px rgba(46,111,163,0.3); }
.tool-icon-ring.c-qgis     { background:rgba(192,120,52,0.25); color:#e0a060; box-shadow:0 0 0 2px rgba(192,120,52,0.3); }
.tool-icon-ring.c-era5     { background:rgba(130,80,170,0.25); color:#b88ee0; box-shadow:0 0 0 2px rgba(130,80,170,0.3); }
.tool-icon-ring.c-adcp     { background:rgba(46,163,163,0.25); color:#60d9d9; box-shadow:0 0 0 2px rgba(46,163,163,0.3); }
.tool-icon-ring.c-hecras   { background:rgba(200,70,70,0.25); color:#e08080; box-shadow:0 0 0 2px rgba(200,70,70,0.3); }
.tool-icon-ring.c-swat     { background:rgba(80,140,90,0.25); color:#88cc99; box-shadow:0 0 0 2px rgba(80,140,90,0.3); }
.tool-icon-ring.c-remote   { background:rgba(60,100,180,0.25); color:#80a8f0; box-shadow:0 0 0 2px rgba(60,100,180,0.3); }
.tool-icon-ring.c-latex    { background:rgba(160,130,60,0.25); color:#d8b870; box-shadow:0 0 0 2px rgba(160,130,60,0.3); }

.tool-flip-wrap:hover .tool-icon-ring.c-python { box-shadow:0 0 20px rgba(74,124,89,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-gee    { box-shadow:0 0 20px rgba(46,111,163,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-qgis   { box-shadow:0 0 20px rgba(192,120,52,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-era5   { box-shadow:0 0 20px rgba(130,80,170,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-adcp   { box-shadow:0 0 20px rgba(46,163,163,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-hecras { box-shadow:0 0 20px rgba(200,70,70,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-swat   { box-shadow:0 0 20px rgba(80,140,90,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-remote { box-shadow:0 0 20px rgba(60,100,180,0.5); }
.tool-flip-wrap:hover .tool-icon-ring.c-latex  { box-shadow:0 0 20px rgba(160,130,60,0.5); }

.tool-face-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  text-align: center; line-height: 1.4;
}
.tool-face-hint {
  font-size: 0.62rem; color: rgba(255,255,255,0.3);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
}

/* Back face */
.tool-back {
  transform: rotateY(180deg);
  padding: 1.4rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.15);
}
.tool-back.c-python { background: linear-gradient(135deg, rgba(74,124,89,0.9), rgba(40,80,55,0.95)); }
.tool-back.c-gee    { background: linear-gradient(135deg, rgba(46,111,163,0.9), rgba(25,70,110,0.95)); }
.tool-back.c-qgis   { background: linear-gradient(135deg, rgba(192,120,52,0.9), rgba(130,75,25,0.95)); }
.tool-back.c-era5   { background: linear-gradient(135deg, rgba(130,80,170,0.9), rgba(85,45,120,0.95)); }
.tool-back.c-adcp   { background: linear-gradient(135deg, rgba(46,163,163,0.9), rgba(25,110,110,0.95)); }
.tool-back.c-hecras { background: linear-gradient(135deg, rgba(200,70,70,0.9), rgba(140,40,40,0.95)); }
.tool-back.c-swat   { background: linear-gradient(135deg, rgba(80,140,90,0.9), rgba(45,95,55,0.95)); }
.tool-back.c-remote { background: linear-gradient(135deg, rgba(60,100,180,0.9), rgba(30,65,130,0.95)); }
.tool-back.c-latex  { background: linear-gradient(135deg, rgba(160,130,60,0.9), rgba(110,85,30,0.95)); }

.tool-back-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem; color: white; font-weight: 600;
  line-height: 1.3; margin-bottom: 0.5rem;
}
.tool-back-desc {
  font-size: 0.8rem; color: rgba(255,255,255,0.8);
  line-height: 1.65; flex: 1;
}
.tool-back-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.1em;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.6rem; margin-top: 0.6rem;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE OVERHAUL
   ============================================================ */

/* Ultra-wide (1600px+) — cap content, center it */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
  .hero-left { padding-left: max(3rem, calc((100vw - 1400px)/2)); }
  .hero-right { padding-right: max(3rem, calc((100vw - 1400px)/2)); }
}

/* Large desktop (1200px–1599px) — no changes needed */

/* Small laptop / large tablet landscape (1024px–1199px) */
@media (max-width: 1199px) {
  .hero-h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
  .about-grid { gap: 3.5rem; }
  .cards-grid { grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
  .tools-flip-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
}

/* Tablet portrait (768px–1023px) */
@media (max-width: 1023px) {
  :root { --nav-h: 70px; }
  nav { padding: 0 1.8rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: flex; pointer-events: none; }
  .search-trigger { margin-left: auto; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding-top: var(--nav-h); }
  .hero-left { padding: 3.5rem 2rem 2rem; align-items: center; text-align: center; }
  .hero-h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
  .hero-desc { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; gap: 2rem; }
  .hero-right { padding: 0 2rem 3rem; height: 380px; justify-content: center; }
  .image-frame { max-width: 380px; }

  /* Context */
  .context-facts { grid-template-columns: 1fr 1fr; }

  /* About */
  .about-section { padding: 5rem 0; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo-wrap { max-width: 360px; margin: 0 auto; }
  .photo-tag { display: none; }
  .quick-grid { max-width: 380px; margin: 2rem auto; }

  /* Cards */
  .cards-section { padding: 5rem 0; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }

  /* Tools */
  .tools-section { padding: 5rem 0; }
  .tools-flip-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .tool-flip-wrap { height: 185px; }

  /* Research */
  .research-hero { grid-template-columns: 1fr; padding: 8rem 2rem 4rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .conf-grid { grid-template-columns: 1fr 1fr; }
  .achievement-cards { grid-template-columns: 1fr 1fr; }

  /* About page */
  .page-header { padding: 8rem 2rem 4rem; }
  .page-intro-grid { grid-template-columns: 1fr; }
  .exp-section, .vol-section, .edu-section { padding: 4rem 2rem; }
  .unified-timeline { padding-left: 2.5rem; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-panel-left, .contact-panel-right { padding: 4rem 2rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Gallery */
  .gal-hero { padding: 7rem 2rem 3rem; }
  .cat-section { padding: 3rem 2rem; }

  /* CTA */
  .cta-section { padding: 5rem 2rem; }

  /* Footer */
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem; }
  .footer-copy { font-size: 0.8rem; }
}

/* Mobile landscape / large phone (600px–767px) */
@media (max-width: 767px) {
  .hero-left { padding: 3rem 1.5rem 1.5rem; }
  .hero-right { height: 320px; padding: 0 1.5rem 2.5rem; }
  .hero-h1 { font-size: clamp(2.2rem,8vw,3rem); }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 2rem; }

  .context-facts { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fact-number { font-size: 2.2rem; }

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

  .tools-flip-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .tool-flip-wrap { height: 160px; }
  .tool-icon-ring { width: 52px; height: 52px; font-size: 1.3rem; }
  .tool-face-name { font-size: 0.62rem; }
  .tool-back-title { font-size: 0.88rem; }
  .tool-back-desc { font-size: 0.72rem; line-height: 1.5; }
  .tool-back-tag { font-size: 0.55rem; }

  .achievement-cards { grid-template-columns: 1fr; }
  .pubs-section { padding: 3rem 1.5rem; }
  .portfolio-section { padding: 3rem 1.5rem; }
  .featured-section { padding: 3rem 1.5rem; }

  .ice-section { padding: 3rem 1.5rem; }
  .ice-lakes-grid { grid-template-columns: 1fr; }
  .timeline-range { flex-direction: column; }
  .range-arrow { transform: rotate(90deg); padding: 0; align-self: center; }

  .album-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .viewer-grid { grid-template-columns: repeat(3,1fr); }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  :root { --nav-h: 65px; }
  .nav-logo-img { height: 42px; }
  .nav-site-name { font-size: 1.1rem; letter-spacing: 0.08em; }
  nav { padding: 0 1.2rem; }

  .hero-left { padding: 2.5rem 1.2rem 1.5rem; }
  .hero-right { height: 260px; padding: 0 1.2rem 2rem; }
  .hero-h1 { font-size: clamp(2rem,9vw,2.6rem); letter-spacing: -0.02em; }
  .hero-desc { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; padding: 1rem; }
  .hero-stats { gap: 1.2rem; }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.7rem; }

  .marquee-item { font-size: 0.68rem; }

  .context-facts { grid-template-columns: 1fr; }
  .fact-card { padding: 1.4rem; }
  .fact-number { font-size: 2rem; }

  .container { padding: 0 1.2rem; }
  .about-section { padding: 4rem 0; }

  .section-label { font-size: 0.6rem; }

  /* Tools — 2 columns on small mobile */
  .tools-flip-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .tool-flip-wrap { height: 155px; }
  .tool-icon-ring { width: 46px; height: 46px; font-size: 1.15rem; }
  .tool-face-name { font-size: 0.58rem; letter-spacing: 0.06em; }
  .tool-face-hint { display: none; }
  .tool-back { padding: 1rem; }
  .tool-back-title { font-size: 0.82rem; margin-bottom: 0.3rem; }
  .tool-back-desc { font-size: 0.68rem; }
  .tool-back-tag { font-size: 0.52rem; padding-top: 0.4rem; margin-top: 0.4rem; }

  .profile-card { padding: 1.8rem; }
  .page-h1 { font-size: 2.2rem; }
  .page-intro-text { font-size: 0.97rem; }
  .unified-timeline { padding-left: 2rem; margin-left: 0; }
  .utl-dot { left: -2.65rem; }
  .utl-card { padding: 1.2rem; }

  .exp-section, .vol-section, .edu-section { padding: 3rem 1.2rem; }
  .vol-grid { grid-template-columns: 1fr; }

  .research-hero { padding: 7rem 1.2rem 3rem; }
  .pub-stats { grid-template-columns: repeat(3,1fr); }
  .stat-box .stat-num { font-size: 1.8rem; }

  .contact-panel-left, .contact-panel-right { padding: 3rem 1.2rem; }
  .contact-h1 { font-size: 2.2rem; }

  .gal-hero { padding: 6rem 1.2rem 2.5rem; }
  .cat-section { padding: 2.5rem 1.2rem; }
  .cat-title { font-size: 1.4rem; }
  .album-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .viewer-grid { grid-template-columns: repeat(3,1fr); gap: 2px; }

  .ice-hero { padding: 6rem 1.2rem 3rem; }
  .ice-hero h1 { font-size: 2.8rem; }

  .cta-section { padding: 4rem 1.2rem; }
  .cta-inner h2 { font-size: 1.8rem; }

  footer { padding: 1.8rem 1.2rem; }

  .currently-inner { flex-direction: column; }
  .currently-item { padding: 0.75rem 1.2rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .currently-item:last-child { border-bottom: none; }
  .currently-value { font-size: 0.8rem; }
}

/* Very small (320px) */
@media (max-width: 350px) {
  .nav-site-name { display: none; }
  .tools-flip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; align-items: center; gap: 1rem; }
}

/* ============================================================
   HERO PILLARS (replaces hero-stats on homepage)
   ============================================================ */
.hero-pillars {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.pillar-item {
  display: flex; align-items: center; gap: 1rem;
  transition: transform var(--transition);
}
.pillar-item:hover { transform: translateX(4px); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(74,124,89,0.12); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pillar-name {
  font-family: 'Fraunces', serif; font-size: 1.05rem;
  font-weight: 600; line-height: 1.1;
}
.pillar-meta {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 0.2rem;
}

/* ============================================================
   RESEARCH DOMAIN CARDS (replaces pub-stats on research.html)
   ============================================================ */
.research-domains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; margin-top: 1rem;
}
.domain-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.domain-card:hover { transform: translateY(-4px); border-color: var(--sage); box-shadow: var(--shadow); }
.domain-card i {
  font-size: 1.6rem; color: var(--sage);
  margin-bottom: 0.7rem; display: block;
}
.domain-card:nth-child(2) i { color: var(--sky); }
.domain-card:nth-child(3) i { color: var(--amber); }
.domain-name {
  font-family: 'Fraunces', serif; font-size: 1.05rem;
  font-weight: 600; margin-bottom: 0.2rem;
}
.domain-desc {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1.4;
}

/* ============================================================
   FIX: TOOLS SECTION spacing — gap so flipped backs don't touch
   ============================================================ */
.tools-flip-grid {
  gap: 1.5rem !important;
  padding: 0.5rem;
}
/* Add z-index to lift flipping card above neighbours during flip */
.tool-flip-wrap { z-index: 1; }
.tool-flip-wrap:hover, .tool-flip-wrap.flipped { z-index: 5; }

/* ============================================================
   SEARCH MODAL & TRIGGER
   ============================================================ */
.search-trigger {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: white; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-left: 1.5rem; margin-right: 0;
  transition: all var(--transition);
  font-size: 0.85rem;
}
.search-trigger:hover { background: rgba(255,255,255,0.2); }

.search-modal {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(14,16,14,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-modal.open { opacity: 1; pointer-events: all; }

.search-box {
  width: 90%; max-width: 720px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.25s ease;
}
.search-modal.open .search-box { transform: translateY(0); }

.search-input-wrap {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.search-input-wrap i { color: var(--muted); font-size: 1rem; }
#searchInput {
  flex: 1; border: none; outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem; color: var(--ink);
  background: transparent; padding: 0;
}
.search-close-btn {
  background: var(--cream); border: 1px solid var(--rule);
  color: var(--muted); width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.search-close-btn:hover { background: var(--rule); }

.search-results {
  max-height: 60vh; overflow-y: auto;
}
.search-result {
  display: block; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: background var(--transition);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--cream); }
.search-result-page {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: var(--amber); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.3rem;
}
.search-result-title {
  font-family: 'Fraunces', serif; font-size: 1rem;
  font-weight: 600; margin-bottom: 0.25rem; color: var(--ink);
}
.search-result-snippet {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.5;
}
.search-result-snippet mark {
  background: rgba(192,120,52,0.2); color: var(--ink);
  padding: 0 2px; border-radius: 2px;
}
.search-empty {
  padding: 2.5rem 1.4rem; text-align: center;
  color: var(--muted); font-size: 0.92rem;
}
.search-empty i { font-size: 1.8rem; opacity: 0.4; margin-bottom: 0.8rem; display: block; }
.search-hint {
  padding: 0.7rem 1.4rem;
  background: var(--cream);
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.search-hint kbd {
  background: white; border: 1px solid var(--rule);
  padding: 1px 5px; border-radius: 3px;
  font-family: inherit; font-size: 0.6rem;
}

/* ============================================================
   FIX: LIGHTBOX — proper full-screen overlay
   ============================================================ */
.lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2000 !important;
}
.lightbox.open {
  display: flex !important;
}
.lb-img-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 4rem;
}
.lb-img {
  max-width: calc(100vw - 8rem);
  max-height: calc(100vh - 12rem);
  width: auto; height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .lb-img-wrap { padding: 4rem 1rem 6rem; }
  .lb-img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 14rem); }
}

/* ============================================================
   GALLERY: tighter, more systematic layout
   ============================================================ */
.album-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 1.25rem !important;
}
.album-card { transition: all 0.3s ease; }
.album-cover { aspect-ratio: 16/10 !important; }

.cat-section { padding: 4rem 3rem 3rem !important; }
.cat-section + .cat-section { padding-top: 3rem !important; }

/* Hero pillars + research domains responsive */
@media (max-width: 1023px) {
  .hero-pillars { align-items: center; }
  .pillar-item { width: 100%; max-width: 320px; }
}
@media (max-width: 600px) {
  .research-domains { grid-template-columns: 1fr; }
  .domain-card { padding: 1.2rem; text-align: left; display: flex; align-items: center; gap: 1rem; }
  .domain-card i { margin-bottom: 0; }
}
