@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,700;1,6..72,400&family=Lora:ital,wght@1,400&family=Plus+Jakarta+Sans:wght@600&display=swap');

:root {
  /* Color Palette */
  --bg-color: #FAF9F6;
  --text-main: #2D2D2D;
  --text-muted: #5A5A5A;
  --accent-color: #8C7B6C;
  --accent-hover: #6D5E50;
  --border-color: #E2DFD8;
  --timeline-color: #C4B8AB;
  --card-bg: #FFFFFF;
  
  /* Typography */
  --font-serif: 'Newsreader', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-accent: 'Lora', serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

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

body {
  font-family: var(--font-serif);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1.1rem; /* User's body text choice */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

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

/* Header & Nav */
header {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-xl);
}

.site-title a {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 3rem); /* Responsive name sizing to prevent wrapping */
}
.site-title a:hover {
  text-decoration: none;
}

.subtitle {
  color: #666; /* User's Subtext color */
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.9rem, 4vw, 1.2rem); /* Responsive subtext sizing */
  margin-top: 0.5rem;
  line-height: 1.4;
}

nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.7rem; /* User's Nav choice */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px; /* User's Nav choice */
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid #2D2D2D; /* User's border color choice */
}

main {
  min-height: 50vh;
}

footer {
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Lists & Sections */
.content-section {
  margin-bottom: var(--spacing-xl);
}

.item-list {
  list-style: none;
}

.item-list li {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.item-list li:last-child {
  border-bottom: none;
}

.item-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
}

.item-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.item-desc {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.44rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 2px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--timeline-color);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-details {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  list-style: disc;
}

.timeline-details li {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  background: var(--card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-card .timeline-date {
  margin-bottom: 0.5rem;
}

.project-card .timeline-role {
  margin-bottom: 0.25rem;
}

.project-card .timeline-org {
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.4rem 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.project-link:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

/* Article */
.article-header {
  margin-bottom: var(--spacing-xl);
}

.article-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content h2 {
  margin-top: var(--spacing-xl);
  font-size: 1.4rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-item {
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-list li {
  display: flex;
  align-items: center;
}

.social-list a {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-list a svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.social-list a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Honours — Accent Cards */
.honour-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.honour-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.honour-card.fellowship {
  border-left-color: #5B8C6F;
}

.honour-card.award {
  border-left-color: #C4973B;
}

.honour-card.judging {
  border-left-color: #6B7FA3;
}

.honour-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.honour-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.honour-year {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: 1rem;
}

.honour-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.honour-category {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Numbered engagement list */
.numbered-list {
  list-style: none;
  counter-reset: engagement;
}

.numbered-list li {
  counter-increment: engagement;
  position: relative;
  padding-left: 2.5rem;
}

.numbered-list li::before {
  content: counter(engagement, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* Home Hero */
.hero-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: var(--spacing-lg);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Education */
.edu-card {
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  margin-bottom: var(--spacing-lg);
}

.edu-degree {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.edu-institution {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.edu-details {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* --- VISUAL OVERHAUL STYLES --- */

/* Overlapping Hero */
.overlapping-hero {
  position: relative;
  display: flex;
  min-height: 400px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, black 20%, transparent 100%);
  mask-image: linear-gradient(to right, black 20%, transparent 100%);
}

.abstract-graphic {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--border-color) 0%, #EFEBE4 100%);
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 5%;
  margin-top: 10%;
  background: transparent;
  padding: 0;
  max-width: 80%;
}

.hero-hook {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 25px rgba(250, 249, 246, 1), 0 0 10px rgba(250, 249, 246, 0.8);
}

.read-more-toggle {
  margin-top: var(--spacing-md);
  cursor: pointer;
}

.read-more-toggle summary {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  list-style: none;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.read-more-toggle summary::-webkit-details-marker {
  display: none;
}

.read-more-toggle summary:hover {
  border-bottom: 1px solid var(--accent-color);
}

.read-more-content {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  animation: fadein 0.4s ease-in-out;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee-section {
  margin: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  background: #F4F2EC;
  overflow: hidden;
  position: relative; /* Break out of container if within */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.marquee-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 0 var(--spacing-lg);
  white-space: nowrap;
  border-right: 1px solid var(--border-color);
  z-index: 2;
  background: #F4F2EC;
}

.marquee-container {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content .logo-obj {
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 3rem;
  display: inline-block;
  opacity: 0.85;
  vertical-align: middle;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-content .logo-obj:hover {
  opacity: 1;
  transform: scale(1.05);
}

.marquee-content .logo-large {
  max-height: 55px;
  max-width: 200px;
}

.marquee-content .logo-xl {
  max-height: 75px;
  max-width: 220px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Stats Update */
.stat-icon {
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
  display: flex;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

/* Bento Grid */
.bento-section {
  margin-top: var(--spacing-xl);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.focus-card {
  grid-column: 1 / -1;
}

.bento-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.bento-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.bento-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: 0.2s ease;
}

.bento-link:hover {
  border-bottom: 1px solid var(--accent-color);
  text-decoration: none;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.focus-pill {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  background: #F4F2EC;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.focus-pill:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  nav {
    gap: 0.75rem;
  }
  nav a {
    font-size: 0.75rem;
  }
  .stat-grid {
    grid-template-columns: 1fr; /* Stack stats on small screens for better readability */
    gap: var(--spacing-sm);
  }
}
/* Featured Project */
.featured-project {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--card-bg);
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
}

.featured-content {
  flex: 1;
}

.featured-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.featured-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.featured-subtitle {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.featured-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.featured-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.4rem 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.featured-link:hover {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

.featured-image {
  flex: 1;
  max-width: 400px;
  border: 1px solid var(--border-color);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .featured-project {
    flex-direction: column;
    padding: var(--spacing-lg);
  }
  .featured-title {
    font-size: 1.5rem;
  }
  .featured-image {
    max-width: 100%;
  }
}
