/* =====================================================
   GITHUB PAGES SITE - MAIN STYLESHEET
   A warm, professional, community-oriented design
   ===================================================== */

/* ----- CSS VARIABLES ----- */
:root {
  /* Color Palette - Warm, earthy, community-focused */
  --color-primary: #2D5A4A;      /* Deep forest green - trust, growth */
  --color-primary-light: #3D7A64;
  --color-primary-dark: #1D3A32;
  
  --color-accent: #C4704B;        /* Terracotta - warmth, earthiness */
  --color-accent-rgb: 196, 112, 75; /* RGB values for terracotta */
  --color-accent-light: #D4906B;
  
  --color-bg: #FDFBF7;            /* Warm off-white */
  --color-bg-alt: #F5F0E8;        /* Slightly darker warm tone */
  --color-bg-card: #FFFFFF;
  
  --color-text: #2C2C2C;          /* Near black for readability */
  --color-text-muted: #5A5A5A;
  --color-text-light: #7A7A7A;
  
  --color-border: #E0D8CC;
  --color-border-dark: #C4B8A8;
  
  /* Typography */
  --font-heading: 'Source Serif 4', 'Georgia', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Layout */
  --max-width: 1100px;
  --nav-height: 70px;
  
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary-dark);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 1.875rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

/* Subtle underline effect for inline links */
.about-content a:not(.btn):not(.btn-small):not(.btn-small-primary):not(.btn-small-secondary),
.project-description a:not(.btn):not(.btn-small):not(.btn-small-primary):not(.btn-small-secondary) {
  background-image: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 100%);
  background-size: 0% 2px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size var(--transition-base), color var(--transition-fast);
}

.about-content a:not(.btn):not(.btn-small):not(.btn-small-primary):not(.btn-small-secondary):hover,
.project-description a:not(.btn):not(.btn-small):not(.btn-small-primary):not(.btn-small-secondary):hover {
  background-size: 100% 2px;
}

strong {
  font-weight: 600;
}

/* ----- LAYOUT ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

main {
  flex: 1;
  padding: var(--space-xl) 0 var(--space-2xl);
}

/* ----- HEADER & NAVIGATION ----- */
.site-header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all var(--transition-base);
}

.site-logo:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* ----- PAGE HEADER ----- */
.page-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* ----- ABOUT PAGE ----- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-image {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image img:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  transform: scale(1.02);
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.about-content {
  max-width: 640px;
}

.about-intro {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.about-bio p {
  margin-bottom: var(--space-md);
}

/* Pullquote styling */
.pullquote {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.5;
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Contact section */
.contact-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: transform var(--transition-base);
}

.contact-item:hover {
  transform: translateX(3px);
}

.contact-item svg,
.contact-item .contact-icon-img {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.contact-item:hover svg,
.contact-item:hover .contact-icon-img {
  transform: scale(1.15);
}

.contact-icon-img {
  display: block;
  /* Filter to convert black SVG to green (#2D5A4A) */
  filter: invert(32%) sepia(18%) saturate(1250%) hue-rotate(115deg) brightness(92%) contrast(89%);
}

.contact-link {
  font-size: 1rem;
  color: var(--color-primary);
}

/* ----- PILLARS/VALUES PAGE ----- */
.pillars-intro {
  max-width: 720px;
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
  line-height: 1.8;
}

.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 900px;
  counter-reset: pillar-counter;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base), transform 0.3s ease;
  counter-increment: pillar-counter;
  position: relative;
  cursor: pointer;
}

.pillar-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pillar-card:active {
  transform: translateY(-1px);
}

.pillar-card.expanded {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pillar-header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.pillar-image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.pillar-card h3 {
  color: var(--color-primary);
  margin-bottom: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}

.pillar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pillar-toggle:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.pillar-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.toggle-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.pillar-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.pillar-description {
  padding-top: var(--space-md);
  padding-left: calc(140px + var(--space-lg));
  animation: slideDown var(--transition-base);
}

.pillar-description[hidden] {
  display: none;
}

.pillar-description p {
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 1rem;
  margin: 0;
}

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

/* Decorative accent line */
.pillar-card::before {
  content: none;
}

/* ----- CV PAGE ----- */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cv-summary {
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.cv-section {
  margin-bottom: var(--space-xl);
}

.cv-section h2 {
  font-size: 1.5rem;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: var(--space-lg);
}

.cv-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.cv-role {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.cv-org {
  color: var(--color-accent);
  font-weight: 500;
}

.cv-period {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  text-align: right;
  white-space: nowrap;
}

.cv-description {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ----- SPEAKING PAGE ----- */
.speaking-intro {
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
}

#booking-note {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.topic-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.topic-card:hover {
  background: var(--color-bg-card);
  border-color: var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.topic-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-base);
}

.topic-card:hover h3 {
  color: var(--color-primary);
}

.topic-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.engagements-section {
  margin-bottom: var(--space-xl);
}

.engagements-section h2 {
  margin-bottom: var(--space-lg);
}

.engagements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.engagement-item {
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.engagement-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateX(3px);
}

.engagement-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.engagement-type {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  width: fit-content;
  margin-top: 0.25rem;
}

.engagement-event {
  font-weight: 500;
  color: var(--color-text);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.engagement-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.booking-note {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-xl);
}

/* ----- PROJECTS PAGE ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.project-card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

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



.project-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.project-card-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.project-card h3 {
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}

.project-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.project-status.active {
  background: #D4EDDA;
  color: #155724;
}

.project-status.completed {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.project-card p {
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-sm);
}

.project-link-text {
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.project-link-text::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-base);
}

.project-card:hover .project-link-text {
  color: var(--color-accent);
}

.project-card:hover .project-link-text::after {
  transform: translateX(4px);
}

/* ----- PROJECT DETAIL PAGE ----- */
.project-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.project-detail-header h1 {
  margin-bottom: var(--space-xs);
}

.project-detail-header .project-status {
  font-size: 0.875rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
}

.gallery-item-large {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

@media (min-width: 700px) {
  .gallery-item-large {
    grid-column: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  min-height: 200px;
}

.project-description {
  max-width: 800px;
  margin-bottom: var(--space-xl);
}

.project-description p {
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
}

/* Related content sections */
.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.related-list li a {
  display: block;
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-list li a:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.related-list li a:active {
  transform: translateX(2px);
}

.related-title {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.back-link::before {
  content: "←";
}

/* ----- PUBLICATIONS PAGE ----- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.filter-btn {
  padding: 0.5em 1.25em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.filter-btn:active {
  transform: translateY(0);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(45, 90, 74, 0.25);
}

.filter-btn.active:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(45, 90, 74, 0.3);
}

.filter-btn .count {
  display: inline-block;
  margin-left: 0.375em;
  padding: 0.1em 0.5em;
  font-size: 0.75rem;
  background: rgba(0,0,0,0.1);
  border-radius: 1rem;
}

.filter-btn.active .count {
  background: rgba(255,255,255,0.25);
}

.filter-count {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.publication-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

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

.publication-item.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.publication-item[data-key-work="true"] {
  background: rgba(var(--color-accent-rgb), 0.15);
  padding: var(--space-md);
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
  padding-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
}

.publication-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 60px;
}

.publication-content h3 {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.publication-content h3 a {
  color: var(--color-primary-dark);
}

.publication-content h3 a:hover {
  color: var(--color-primary);
}

.key-work-badge {
  display: none;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
}

.publication-type {
  color: var(--color-accent);
  font-weight: 500;
}

.publication-publisher {
  color: var(--color-text-muted);
}

.publication-description {
  color: var(--color-text-muted);
}

.publication-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.5em 1em;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-small-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.btn-small:hover .btn-small-icon {
  transform: scale(1.1);
}

.btn-small-primary {
  background: var(--color-primary);
  color: white;
}

.btn-small-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 90, 74, 0.2);
}

.btn-small-primary:active {
  transform: translateY(0);
}

.btn-small-secondary {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-small-secondary:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 90, 74, 0.15);
}

.btn-small-secondary:active {
  transform: translateY(0);
}

/* Highlight animation for hash navigation */
.publication-item.highlight,
.press-item.highlight {
  animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
  0%, 100% {
    background: transparent;
  }
  20%, 80% {
    background: rgba(45, 90, 74, 0.1);
  }
}

/* ----- PRESS PAGE ----- */
.press-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.press-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.press-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.press-item:active {
  transform: translateX(2px);
}

.press-outlet {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.press-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--color-primary-dark);
}

.press-title a {
  color: inherit;
}

.press-title a:hover {
  color: var(--color-primary);
}

.press-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  white-space: nowrap;
}

.press-type {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.press-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ----- TOOLKIT PAGE ----- */
.toolkit-hero {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  color: white;
  margin-bottom: var(--space-xl);
}

.toolkit-hero h1 {
  color: white;
  margin-bottom: var(--space-xs);
}

.toolkit-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
}

.toolkit-description {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0.95;
}

.toolkit-contents {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.toolkit-contents h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.toolkit-contents ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.toolkit-contents li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.toolkit-contents li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: bold;
}

.toolkit-license {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.875em 1.75em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 90, 74, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(45, 90, 74, 0.2);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 90, 74, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(45, 90, 74, 0.15);
}

.btn-light {
  background: white;
  color: var(--color-primary-dark);
}

.btn-light:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.btn-light:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ----- FOOTER ----- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-lg) 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-message {
  font-size: 0.9375rem;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  :root {
    --nav-height: 60px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    position: static;
    max-width: 240px;
  }
  
  /* Pillar cards stack vertically on tablet/mobile */
  .pillar-header {
    grid-template-columns: 100px 1fr;
    gap: var(--space-md);
  }

  .pillar-card {
    padding: var(--space-md);
  }

  .pillar-image {
    width: 100px;
    height: 100px;
  }

  .pillar-card h3 {
    font-size: 1.25rem;
  }

  .pillar-description {
    padding-left: calc(100px + var(--space-md));
  }
  
  .cv-item {
    grid-template-columns: 1fr;
  }
  
  .cv-period {
    text-align: left;
  }
  
  .engagement-title {
    font-size: 1.125rem;
  }
  
  .publication-item {
    grid-template-columns: 1fr;
  }
  
  .publication-year {
    font-size: 1.125rem;
  }
  
  .press-item {
    grid-template-columns: 1fr;
  }
  
  .press-meta {
    text-align: left;
    flex-direction: row;
    gap: var(--space-sm);
  }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-sm);
    text-align: center;
  }
  
  main {
    padding: var(--space-lg) 0 var(--space-xl);
  }
  
  .page-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
  }
  
  /* Pillar cards on small screens */
  .pillar-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pillar-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
  }

  .pillar-title-wrapper {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .pillar-description {
    padding-left: 0;
    text-align: left;
  }
  
  .cv-header {
    flex-direction: column;
  }
  
  .toolkit-hero {
    padding: var(--space-lg) var(--space-md);
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- UTILITY CLASSES ----- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ----- PRINT STYLES ----- */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
  
  main {
    padding: 0;
  }
  
  body {
    background: white;
    color: black;
  }
}


/* =====================================================
   IMAGE GRAYSCALE FILTER
   
   Professional grayscale with warm sepia tint.
   Headshot/profile photo stays in full color.
   NO hover reveal - images stay grayscale.
   ===================================================== */

/* ----- BASE IMAGE FILTER ----- */
/* All images get grayscale with a warm sepia tint */
img {
  filter: grayscale(100%) sepia(15%) contrast(1.05);
}

/* ----- EXCLUDE HEADSHOT/PROFILE PHOTO ----- */
/* These selectors ensure your profile photo stays in full color */

/* By class name */
.profile-photo,
.profile-image,
.headshot,
.about-photo,
.bio-photo,
.hero-photo {
  filter: none !important;
}

/* By parent container - About page profile section */
.about-image img,
.about-photo img,
.profile-section img,
.bio-section img,
.hero-content img,
.intro-section img {
  filter: none !important;
}

/* By alt text (catches images with these words in alt) */
img[alt*="profile" i],
img[alt*="headshot" i],
img[alt*="Sara" i],
img[alt*="Suzuki" i],
img[alt*="portrait" i],
img[alt*="photo of me" i] {
  filter: none !important;
}

/* By src path (if your headshot is in a specific location) */
img[src*="profile"],
img[src*="headshot"],
img[src*="portrait"],
img[src*="sara"],
img[src*="about"] {
  filter: none !important;
}

/* ----- PROJECT IMAGES ----- */
.project-card img,
.project-cover img,
.project-image img,
.project-thumbnail img {
  filter: grayscale(100%) sepia(15%) contrast(1.05);
}

/* ----- PROJECT GALLERY (Detail Pages) ----- */
.project-gallery img,
.gallery-grid img,
.image-gallery img,
.gallery-item img {
  filter: grayscale(100%) sepia(15%) contrast(1.05);
  border-radius: var(--radius-md, 8px);
}

/* ----- PRESS & MEDIA LOGOS ----- */
.press-item img,
.press-logo,
.media-logo,
.logo-grid img {
  filter: grayscale(100%) opacity(0.75);
}

/* ----- SPEAKING & ENGAGEMENT IMAGES ----- */
.engagement-image img,
.speaking-image img,
.event-image img {
  filter: grayscale(100%) sepia(15%) contrast(1.05);
}

/* ----- PUBLICATION THUMBNAILS ----- */
.publication-item img,
.pub-thumbnail img {
  filter: grayscale(100%) sepia(15%) contrast(1.05);
}

/* ----- UTILITY CLASSES ----- */
/* Force an image to stay colorful */
.no-filter,
.color-image,
.keep-color {
  filter: none !important;
}

/* Force grayscale (redundant now but useful for specificity) */
.always-grayscale {
  filter: grayscale(100%) sepia(15%) contrast(1.05) !important;
}
