/* =====================================================
   maryliareiter.com — Main Stylesheet
   Design: Refined editorial, Playfair Display + DM Sans
   Accent: Deep Teal #0D1F1C | BG: #0D1F1C | Text: #F0EDE8
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
  /* Backgrounds */
  --bg-primary: #0D1F1C;        /* deep charcoal — main background */
  --bg-secondary: #253532;      /* slightly lighter — cards, nav */
  --bg-tertiary: #3d4b49;       /* hover states, subtle panels */

  /* Text */
  --text-primary: #F0EDE8;      /* warm off-white — main text */
  --text-secondary: #cfd2d2;    /* muted warm gray — metadata, captions */

  /* Accent */
  --accent: #E8A020;            /* amber gold — links, highlights, borders */
  --accent-hover: #F5B942;      /* brighter gold on hover */
  --accent-muted: rgba(232, 160, 32, 0.15); /* subtle accent for backgrounds */

  /* Structural */
  --border: rgba(240, 237, 232, 0.08); /* very subtle light border */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}


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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.25;
  margin: 4rem 0;
}
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn--primary {
 background: var(--accent);
  color: var(--bg-primary); 
  border-color: var(--border);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
  color: var(--bg-primary);
}
.btn--outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-hover);
}
.btn--download {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ── Status Badge ── */
.badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--bt-secondary);
  color: var(--text-primary);
  border: 1px solid var(--accent);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
  padding: 0;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================
   PAGE HEADER (inner pages)
   ===================================================== */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(11, 110, 110, 0.15);
}
.page-header h1 { margin-top: 0.3rem; }

/* Breadcrumb */
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--text-primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.35rem; }

/* =====================================================
   HERO — index.html
   ===================================================== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}
.hero-text { }
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-titles {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.hero-titles strong { color: var(--text-primary); font-weight: 500; }
.hero-bio {
  font-size: 1.15rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-photo-wrap {
  display: flex;
  justify-content: flex-end;
}
.hero-photo {
  width: 300px;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(157, 181, 176, 0.1);
  filter: grayscale(8%);
}

/* Feature cards row */
.feature-cards {
  padding: 4rem 0 5rem;
  background-color: var(--bg-primary);
}
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(11, 110, 110, 0.15);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(11, 110, 110, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  line-height: 1;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}
.feature-card .card-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}
.feature-card .card-link:hover { gap: 0.5rem; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar { }
.about-sidebar-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}
.about-sidebar-links { }
.about-sidebar-links a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
  transition: padding-left 0.2s ease;
}
.about-sidebar-links a:hover { padding-left: 0.35rem; }
.about-sidebar-links a:first-child { border-top: 1px solid rgba(11, 110, 110, 0.15); }

.about-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--text-primary); }

/* Education/Work list */
.cv-list { margin-bottom: 2rem; }
.cv-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(11, 110, 110, 0.12);
}
.cv-item:last-child { border-bottom: none; }
.cv-item h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 0.2rem; }
.cv-item .cv-degree {
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.cv-item .cv-years {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
}
.cv-item .cv-years em { font-style: normal; }

/* =====================================================
   AI PAGE
   ===================================================== */
.ai-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}
.ai-intro p { font-size: 1.05rem; color: var(--text-primary); }

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 4px 20px rgba(11, 110, 110, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.project-card--featured {
  border-top: 3px solid #E8A020;
}
.project-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.project-card p {
  font-size: 0.9rem;
  color: var(--text-primary);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.project-card .badge { margin-bottom: 1rem; }
.project-card .btn { align-self: flex-start; font-size: 0.875rem; padding: 0.55rem 1.1rem; }

.ai-crosslink {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(11, 110, 110, 0.2);
  border-left: 4px solid #E8A020;
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-top: 3.5rem;
}
.ai-crosslink h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.ai-crosslink p { color: var(--text-primary); margin-bottom: 1rem; }

/* =====================================================
   COURSES PAGE
   ===================================================== */
.courses-intro {
  max-width: 660px;
  margin-bottom: 3rem;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.course-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.course-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.course-card-institution {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.course-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.course-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.course-card .course-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: gap 0.2s ease;
}
.course-card .course-link:hover { gap: 0.4rem; }
.course-card--inactive .course-card-img { filter: grayscale(50%); }
.course-card--inactive .course-card-institution { color: var(--accent); }

.courses-additional {
  margin-top: 3.5rem;
  padding: 2rem 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.courses-additional h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 0.75rem; }
.courses-additional p { font-size: 0.9rem; color: var(--text-primary); }

/* =====================================================
   CV PAGE
   ===================================================== */
.cv-download-section {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(240, 237, 232, 0.08);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.cv-download-section p { color: var(--text-secondary); margin-bottom: 0; max-width: 480px; }
.cv-section { margin-bottom: 3rem; }
.cv-section h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
}
.cv-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
}
.cv-entry:last-child { border-bottom: none; }
.cv-entry h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.cv-entry .cv-meta {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0.2rem;
}
.cv-entry .cv-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cv-entry .cv-detail a { font-style: italic; }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.skill-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(240, 237, 232, 0.08);
  border-radius: 4px;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

/* =====================================================
   TESTIMONIALS PAGE
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.testimonial-block {
  background-color: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid rgba(240, 237, 232, 0.08);
  overflow: hidden;
}
.testimonial-quote {
  border-left: 4px solid #E8A020;
  padding: 1.75rem 2rem;
}
.testimonial-quote p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-cite {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 500;
  font-style: normal;
  color: var(--text-secondary);
  padding: 0.75rem 2rem;
  background-color: rgba(11, 110, 110, 0.04);
  border-top: 1px solid rgba(11, 110, 110, 0.1);
}
.testimonial-cite::before { content: '— '; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-primary h2 { font-size: 1.3rem; margin-bottom: 1rem; margin-top: 2rem; }
.contact-primary h2:first-child { margin-top: 0; }
.contact-primary p { color: var(--text-primary); }
.contact-link-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(240, 237, 232, 0.08);
  border-radius: 4px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-link-block:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  color: inherit;
}
.contact-link-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.contact-link-block strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.contact-link-block span {
  font-size: 0.825rem;
  color: var(--text-secondary);
}
.contact-sidebar h3 { font-size: 1rem; color: var(--accent); margin-bottom: 0.75rem; }
.contact-sidebar p { font-size: 0.875rem; color: var(--text-primary); }
.contact-note {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.contact-note p { font-size: 0.875rem; color: var(--text-primary); margin-bottom: 0; }

/* =====================================================
   CRIME GRAPHS PAGE
   ===================================================== */
.crimegraphs-intro {
  max-width: 700px;
  margin-bottom: 3rem;
}
.crimegraphs-intro p { color: var(--text-primary); }

.chart-section {
  margin-bottom: 4.5rem;
}
.chart-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
  margin-bottom: 1.5rem;
}
.chart-section-intro {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

/* Image grid */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.chart-item {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chart-item:hover {
  box-shadow: 0 4px 16px rgba(11, 110, 110, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chart-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.chart-item-caption {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  border-top: 1px solid rgba(11, 110, 110, 0.08);
}

/* Tableau embed */
.tableau-embed-wrap {
  margin-bottom: 2.5rem;
}
.tableau-embed-meta {
  margin-bottom: 1rem;
}
.tableau-embed-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.tableau-embed-meta p {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0;
}
.tableau-embed-meta .source {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Interactive chart card */
.interactive-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-hover);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}
.interactive-card-text h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 0.4rem; }
.interactive-card-text p { font-size: 0.875rem; color: var(--text-primary); margin-bottom: 0; }
.interactive-card .btn { flex-shrink: 0; }

/* Permissions section */
.permissions-section {
  padding: 2rem 2.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 2rem;
}
.permissions-section p { font-size: 0.875rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.permissions-section p:last-child { margin-bottom: 0; }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 20, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-caption {
  color: rgba(248, 247, 244, 0.8);
  font-size: 0.875rem;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #0D1F1C;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.lightbox-close:hover { opacity: 1; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 2.5rem 0;
  margin-top: 5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.825rem;
}
.footer-copy a {
  color: rgba(248, 247, 244, 0.55);
  transition: color 0.2s ease;
}
.footer-copy a:hover { color: var(--accent-hover); }
.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-links a {
  font-size: 0.825rem;
  color: var(--accent);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent-hover); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  transform: translateY(20px);
}
.animate.visible {
  animation: fadeUp 0.55s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Hero immediate animation (no scroll trigger) */
.hero-anim-1 { animation: fadeUp 0.6s ease 0.1s both; }
.hero-anim-2 { animation: fadeUp 0.6s ease 0.2s both; }
.hero-anim-3 { animation: fadeUp 0.6s ease 0.3s both; }
.hero-anim-4 { animation: fadeUp 0.6s ease 0.4s both; }
.hero-anim-5 { animation: fadeUp 0.6s ease 0.5s both; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(11, 110, 110, 0.15);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .site-header { position: sticky; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-photo-wrap { justify-content: center; }
  .hero-photo { width: 240px; height: 290px; }
  .hero { padding: 3rem 0; min-height: auto; }

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

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-sidebar { display: flex; gap: 2rem; align-items: flex-start; }
  .about-sidebar-photo { max-width: 180px; margin-bottom: 0; }

  .project-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-download-section { flex-direction: column; align-items: flex-start; }

  .interactive-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .chart-grid { grid-template-columns: 1fr; }
  .about-sidebar { flex-direction: column; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
  .cv-download-section { padding: 1.75rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .feature-cards-grid { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .feature-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
