*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #16181d;
  --bg-main: #1f2329;
  --bg-card: #262b33;
  --bg-alt: #2a2f37;
  --border: #3a404a;
  --text: #f2f2f2;
  --text-secondary: #c8ccd2;
  --text-muted: #9fa6b2;
  --orange: #d88a5b;
  --orange-deep: #c97a4a;
  --orange-hover: #f0a66f;
  --teal: #2d7f7a;
  --teal-hover: #3a9e97;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --radius: 10px;
  --max-width: 1100px;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover, a:focus { color: var(--orange-hover); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }
li { margin-bottom: 0.3em; }

::selection { background: var(--orange); color: var(--bg-deep); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 4rem 0; }

.section-light { background: var(--bg-alt); }
.section-dark { background: var(--bg-deep); }
.section-alt { background: var(--bg-alt); }

/* Header */
.site-header {
  background: rgba(22, 24, 29, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
}
.site-logo { height: 48px; width: auto; }

/* Navigation */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  display: block;
  padding: 24px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
  text-decoration: none;
}
.nav-menu .current a {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--text);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,24,29,0.88) 0%, rgba(22,24,29,0.5) 40%, rgba(31,35,41,0.2) 70%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.hero-content-inner {
  max-width: 700px;
  margin-left: 5%;
}
.hero h1 {
  font-size: 4.2rem;
  color: var(--text);
  margin-bottom: 0.3em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}
.hero .subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero watermark */
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  max-width: 500px;
  aspect-ratio: 1/1;
  background: url('../images/logo.png') center / contain no-repeat;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

/* Overlapping mission card */
.mission-card {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: -3.5rem auto 0;
  padding: 2rem 2.5rem;
  background: rgba(38, 43, 51, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.mission-card p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

/* Full-bleed feature section */
.full-bleed {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  display: flex;
  align-items: center;
}
.full-bleed-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,24,29,0.85) 0%, rgba(22,24,29,0.5) 50%, rgba(31,35,41,0.3) 100%);
  z-index: 1;
}
.full-bleed-overlay.right {
  background: linear-gradient(285deg, rgba(22,24,29,0.85) 0%, rgba(22,24,29,0.5) 50%, rgba(31,35,41,0.3) 100%);
}
.full-bleed-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.full-bleed-content h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5em;
}
.full-bleed-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* Platform cards (SciComm) */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding: 2rem 1.5rem;
}
.platform-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.platform-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-icon img { width: 100%; height: 100%; object-fit: contain; }
.platform-card h3 { color: var(--text); margin-bottom: 0.25rem; font-size: 1.2rem; }
.platform-handle { color: var(--orange); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.platform-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.5; }
.platform-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--orange);
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}
.platform-btn:hover { background: var(--orange-hover); transform: scale(1.05); color: #fff; }
.platform-btn.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.platform-btn.ig:hover { filter: brightness(1.15); }
.platform-btn.tt { background: #000; color: #fff; border: 1px solid #333; }
.platform-btn.tt:hover { background: #1a1a1a; }
.platform-btn.yt { background: #ff0000; }
.platform-btn.yt:hover { background: #cc0000; }

/* Cards with image */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--orange-deep);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(216,138,91,0.08); }
.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card h3 { margin-top: 0; color: var(--text); }
.card p:last-child { margin-bottom: 0; color: var(--text-secondary); }

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.3em;
  font-size: 2.4rem;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Featured pubs heading */
.featured-pubs .section-title h2 {
  font-size: 2.6rem;
}

/* Mission */
.mission {
  background: var(--bg-alt);
  text-align: center;
  padding: 3rem 0;
}
.mission p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #0f1115 100%);
  color: var(--text);
  text-align: center;
  padding: 4rem 0;
}
.cta h2 { color: var(--text); }
.cta p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5em; font-size: 1.1rem; color: var(--text-secondary); }
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--orange);
  color: var(--bg-deep);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--orange-hover);
  color: var(--bg-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--bg-deep);
  text-decoration: none;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-img {
  min-height: 400px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.split-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
}
.split-body h2 { color: var(--text); }
.split-body p { color: var(--text-secondary); }
.split-body p:last-child { margin-bottom: 0; }

/* Publications list */
.pub-list { list-style: none; padding: 0; }
.pub-list li {
  margin-bottom: 1.2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange-deep);
  box-shadow: var(--shadow);
}
.pub-list .pub-title { font-weight: 600; color: var(--text); }
.pub-list .pub-authors { font-size: 0.9rem; color: var(--text-secondary); }
.pub-list .pub-journal { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.pub-list .pub-doi { font-size: 0.85rem; margin-top: 0.3rem; }

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.person-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.person-card:hover { transform: translateY(-2px); }
.person-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
}
.person-card .person-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; color: var(--text); }
.person-card .person-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.person-card .person-detail { font-size: 0.82rem; color: var(--text-muted); }
.person-card .person-detail a { color: var(--orange); }

/* News list */
.news-list { list-style: none; padding: 0; }
.news-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:first-child { padding-top: 0; }
.news-list .news-date { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.news-list .news-title { font-size: 1.05rem; color: var(--text-secondary); }

/* Video card */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card video, .video-card img {
  width: 100%;
  display: block;
}
.video-card-body {
  padding: 1.25rem;
}
.video-card-body h3 { color: var(--text); margin-bottom: 0.3rem; }
.video-card-body p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); }

/* SciComm visual */
.scicomm-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: #0c0d11;
  color: var(--text-secondary);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 40%;
  max-width: 400px;
  aspect-ratio: 1/1;
  background: url('../images/logo.png') center / contain no-repeat;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

/* Footer brand band */
.footer-brand-band {
  border-top: 2px solid var(--orange-deep);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-brand-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 20px 1.5rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.site-footer h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.8rem; }
.site-footer a { color: var(--orange); }
.site-footer a:hover { color: var(--orange-hover); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.4rem; color: var(--text-muted); }
.footer-base {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Page header */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-main) 100%);
  color: var(--text);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(22,24,29,0.82) 0%, rgba(22,24,29,0.55) 100%);
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 { color: var(--text); font-size: 2.6rem; }
.page-header p { color: var(--text-secondary); margin-bottom: 0; font-size: 1.15rem; }

/* Content area */
.content-area {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 20px;
}
.content-area.wide { max-width: var(--max-width); }
.content-area p { color: var(--text-secondary); }
.content-area h2 { color: var(--text); }

/* Article card (SciComm) */
.article-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  align-items: center;
  margin-bottom: 1.5rem;
}
.article-card img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.article-card-body h3 { color: var(--text); margin-bottom: 0.3rem; font-size: 1.1rem; }
.article-card-body p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-muted); }
.article-date { font-size: 0.8rem; color: var(--accent); margin-bottom: 0.25rem; font-weight: 600; letter-spacing: 0.02em; }

/* Background texture */
.has-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/suckers_smaller.jpeg') center / cover no-repeat;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}
.has-texture {
  position: relative;
}
.has-texture > *:not(.full-bleed-bg):not(.full-bleed-overlay) {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero { min-height: 60vh; padding: 3rem 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1.1rem; }
  .hero-content-inner { margin-left: 0; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .full-bleed { min-height: 50vh; }
  .full-bleed-content h2 { font-size: 1.8rem; }
  .mission-card { margin: -2rem 10px 0; padding: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-logo { max-width: 320px; }
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 250px; }
  .split-body { padding: 2rem 1.5rem; }
  .article-card { flex-direction: column; }
  .article-card img { width: 100%; height: 200px; }
  .platform-grid { grid-template-columns: 1fr; }
  .page-header { padding: 3rem 0; }
  .page-header h1 { font-size: 2rem; }
  section { padding: 2.5rem 0; }

  .nav-toggle { display: flex; }
  .nav-menu ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
  }
  .nav-menu ul.open { display: flex; }
  .nav-menu a { padding: 14px 20px; border-bottom: none; }
  .nav-menu .current a { border-bottom: none; border-left: 3px solid var(--orange); }
}

@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-logo { max-width: 260px; }
  section { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
