/* ─── Theme Variables ──────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-translucent: rgba(255,255,255,0.6);
  --text: #0B002B;
  --text-muted: #8A8A8A;
  --text-faint: #999;
  --border: #e8e8e8;
  --card-bg: #ffffff;
  --card-border: #ebebeb;
  --section-bg: #f5f3ef;
  --hero-sub: #8A8A8A;
  --toc-link: #bbb;
  --toc-active: #1a1a1a;
  --placeholder-bg: #f0eeea;
}

[data-theme="dark"] {
  --bg: #111111;
  --bg-translucent: rgba(17,17,17,0.7);
  --text: #f0eeea;
  --text-muted: #888;
  --text-faint: #666;
  --border: #2a2a2a;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --section-bg: #161616;
  --hero-sub: #888;
  --toc-link: #555;
  --toc-active: #e0ddd8;
  --placeholder-bg: #1e1e1e;
}

/* ─── Custom Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Softcore TRIAL Thin';
  src: local('Softcore TRIAL Thin'),
       url('fonts/SoftcoreTRIAL-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Softcore TRIAL Thin Italic';
  src: local('Softcore TRIAL Thin Italic'),
       url('fonts/SoftcoreTRIAL-ThinItalic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'PrettyTRIAL Regular';
  src: local('PrettyTRIAL Regular'),
       local('Pretty TRIAL Regular'),
       url('fonts/PrettyTRIAL-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.5;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

/* ─── Custom Cursor ────────────────────────────────────── */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #1a1a1a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.15s ease, transform 0.1s ease;
}

#cursor.hovered {
  background: #ff6ef3;
  transform: translate(-50%, -50%) scale(1.3);
}


/* ─── Header ───────────────────────────────────────────── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 80px;
  background: #ffffff;
  z-index: 100;
}

.header-name {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #8A8A8A;
  transition: color 0.2s ease;
}

.header-name:hover {
  color: #ff6ef3;
}

.header-back {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-translucent {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #8A8A8A;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ff6ef3;
}

/* ─── Flower SVG (inline/img) ──────────────────────────── */
.flower-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin: 0 4px;
  animation: spin-cw 6s linear infinite;
  position: relative;
  top: -2px;
}

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Page Entrance Animation ──────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered delays for each homepage element */
.fade-in-1 { animation-delay: 0.08s; }
.fade-in-2 { animation-delay: 0.24s; }
.fade-in-3 { animation-delay: 0.42s; }
.fade-in-4 { animation-delay: 0.60s; }
.fade-in-5 { animation-delay: 0.78s; }
.fade-in-6 { animation-delay: 0.94s; }

/* "Senior Product Designer" — left-to-right fade, driven by JS */
.hero-text em {
  display: inline-block;
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.5s;
}

/* Individual carousel cards stagger in slightly */
.projects-carousel .project-card {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.projects-carousel .project-card:nth-child(1) { animation-delay: 0.82s; }
.projects-carousel .project-card:nth-child(2) { animation-delay: 0.93s; }
.projects-carousel .project-card:nth-child(3) { animation-delay: 1.04s; }
.projects-carousel .project-card:nth-child(4) { animation-delay: 1.15s; }
.projects-carousel .project-card:nth-child(5) { animation-delay: 1.26s; }
.projects-carousel .project-card:nth-child(6) { animation-delay: 1.37s; }

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
  padding: 64px 80px 72px;
  box-sizing: border-box;
  width: 100%;
}

.hero-text {
  font-family: "Softcore TRIAL Thin", sans-serif;
  font-size: 28px;
  font-weight: 100;
  line-height: 1.3em;
  letter-spacing: 0px;
  color: #0B002B;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-sub {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 480px;
  -webkit-font-smoothing: antialiased;
}

.hero-text em {
  font-family: "Softcore TRIAL Thin Italic", sans-serif;
  font-weight: 100;
  font-style: normal;
}

/* ─── Projects Carousel ─────────────────────────────────── */
#projects {
  padding: 60px 0 120px;
  box-sizing: border-box;
  width: 100%;
}

.projects-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0B002B;
  padding: 0 80px;
  margin-bottom: 28px;
}

.projects-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 80px 0 80px;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: clamp(300px, 42vw, 560px);
  margin-right: 12px;
  scroll-snap-align: start;
  text-decoration: none;
  cursor: none;
}

.project-card:last-child {
  margin-right: 0;
}

.project-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0eeea;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.02);
}

/* Placeholder tints */
.project-card.c1 .project-card-img { background: #dde5f0; }
.project-card.c2 .project-card-img { background: #f0ece6; }
.project-card.c3 .project-card-img { background: #e4ede4; }
.project-card.c4 .project-card-img { background: #ede4ed; }
.project-card.c5 .project-card-img { background: #edeae0; }
.project-card.c6 .project-card-img { background: #dde4ed; }

/* Hover footer — title + CTA */
.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.project-card:hover .project-card-footer {
  opacity: 1;
  transform: translateY(0);
}

.project-card-title {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.project-card-cta {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  color: #888;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.project-card:hover .project-card-cta {
  color: #1a1a1a;
}

/* ─── Footer ───────────────────────────────────────────── */
footer {
  padding: 20px 80px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  font-size: 13px;
  color: #555;
}

footer a:hover {
  color: #ff6ef3;
}

/* ─── About Overlay ────────────────────────────────────── */
.about-overlay {
  position: fixed;
  inset: 0;
  background: #0B002B;
  color: #ffffff;
  z-index: 500;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.about-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.about-overlay .about-bio,
.about-overlay .about-block p,
.about-overlay .about-block li,
.about-overlay .about-block a,
.about-overlay .exp-item .role,
.about-overlay .exp-item .org,
.about-overlay footer span {
  color: #ffffff;
}

.about-overlay .label {
  color: #8A8A8A;
}

.about-overlay .header-name {
  color: #8A8A8A;
}

.about-overlay .dot {
  background: #ffffff;
}

.about-overlay footer {
  border-top-color: rgba(255,255,255,0.15);
  color: #8A8A8A;
}

.about-overlay footer a {
  color: #8A8A8A;
}

.about-overlay footer a:hover {
  color: #ff6ef3;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  position: sticky;
  top: 0;
  background: #0B002B;
  z-index: 10;
}

.overlay-close {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  background: none;
  border: none;
  cursor: none;
  letter-spacing: 0.01em;
  color: #8A8A8A;
  transition: color 0.2s ease;
  padding: 0;
}

.overlay-close:hover {
  color: #ff6ef3;
}

/* ─── About Page ───────────────────────────────────────── */
.about-layout {
  padding: 64px 40px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-bio {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
  font-weight: 400;
}

.about-bio p + p {
  margin-top: 24px;
}

.about-bio em {
  font-style: italic;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-block .label {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.about-block p,
.about-block li {
  font-size: 14px;
  line-height: 1.75;
  list-style: none;
}

.about-block a {
  transition: color 0.2s ease;
}

.about-block a:hover {
  color: #ff6ef3;
}

.about-block .role {
  font-style: italic;
  font-weight: 500;
}

.about-block .org {
  font-size: 14px;
}

.exp-item {
  margin-bottom: 14px;
}

/* ─── Dot decoration ───────────────────────────────────── */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
  margin: 48px 0;
}

/* ─── Responsive ───────────────────────────────────────── */
/* ─── Hamburger button ───────────────────────────────────────── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #8A8A8A;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

[data-theme="dark"] .menu-btn span {
  background: #9a9a9a;
}

/* Open state — X */
.menu-btn.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── Mobile menu overlay ────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .mobile-menu {
  background: rgba(17, 17, 17, 0.96);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 0 32px;
  gap: 8px;
}

.mobile-nav-link {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: clamp(28px, 8vw, 48px);
  color: #8A8A8A;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}

[data-theme="dark"] .mobile-nav-link {
  color: #9a9a9a;
}

.mobile-nav-link:hover {
  color: #ff6ef3;
}

.mobile-menu.open .mobile-nav-link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.20s; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide custom cursor on mobile */
  #cursor {
    display: none !important;
  }

  /* Always show project card footer on mobile */
  .project-card-footer {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  header {
    padding: 18px 24px;
  }

  nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 40px 24px 48px;
  }

  #projects {
    padding: 0 24px 60px;
  }

  .projects-carousel {
    padding: 0 24px;
  }

  .projects-label {
    padding: 0 24px;
  }

  .project-card {
    width: clamp(260px, 78vw, 380px);
  }

  .about-layout {
    padding: 40px 24px 60px;
    grid-template-columns: 1fr;
  }

  footer {
    padding: 20px 24px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
}

/* ─── About Page (standalone) ──────────────────────────── */

.ap-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  padding: 56px 80px 72px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.ap-hero-image {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.ap-heading {
  font-family: "Softcore TRIAL Thin", sans-serif;
  font-size: 26px;
  font-weight: 100;
  line-height: 1.25em;
  color: #0B002B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-bottom: 28px;
}

.ap-body p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 14px;
  -webkit-font-smoothing: antialiased;
}

.ap-body p:last-child {
  margin-bottom: 0;
}

.ap-edu-sublabel {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  color: #ccc;
  margin: 4px 0;
}

[data-theme="dark"] .ap-edu-sublabel {
  color: #444;
}

.ap-how-body p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 14px;
  -webkit-font-smoothing: antialiased;
  max-width: 640px;
}

.ap-how-body p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .ap-how-body p {
  color: #b0ada8;
}

.ap-body-heading {
  font-family: 'Roboto Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #43423d !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}

[data-theme="dark"] .ap-body-heading {
  color: #9a9a9a !important;
}

.ap-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  background: #d8d0c8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  font-family: 'PrettyTRIAL Regular', sans-serif;
  overflow: hidden;
}

.ap-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Section wrapper */
.ap-section {
  padding: 0 80px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.ap-section-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0 0 40px 0;
}

.ap-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #43423d
  ;
  margin-bottom: 24px;
}

/* Photo grid */
.ap-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.ap-photo-item {
  display: flex;
  flex-direction: column;
}

.ap-photo-wrap {
  width: 100%;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.ap-photo-item:hover .ap-photo-wrap {
  transform: translateY(-8px);
}

.ap-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #d8d0c4;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.ap-caption {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12.5px;
  color: #888;
  margin-top: 12px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* What I Bring / Expertise */
.ap-section-label--accent {
  color: #43423d;
}

.ap-expertise-heading {
  font-family: "Softcore TRIAL Thin", sans-serif;
  font-size: 52px;
  font-weight: 100;
  line-height: 1.1em;
  color: #0B002B;
  margin-bottom: 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ap-expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ap-expertise-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-expertise-card .ap-expertise-icon {
  align-self: flex-start;
}

.ap-expertise-card p {
  margin-top: 0;
}

.ap-expertise-icon {
  width: 36px;
  height: 36px;
  background: #ffe8fc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6ef3;
  flex-shrink: 0;
}

.ap-expertise-icon svg {
  width: 18px;
  height: 18px;
}

.ap-expertise-card h3 {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.ap-expertise-card p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #777;
  -webkit-font-smoothing: antialiased;
}

/* Toolkit */
.ap-toolkit {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.ap-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ap-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-tool-icon img,
.ap-tool-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-tool span {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12px;
  color: #43423d;
  -webkit-font-smoothing: antialiased;
}

/* Table (experience / education / volunteering) */
.ap-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e8e8e8;
}

.ap-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
  align-items: start;
}

.ap-table-type {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  color: #555;
  -webkit-font-smoothing: antialiased;
}

.ap-table-org {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.ap-table-desc {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Volunteering list */
.ap-vol-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ap-vol-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ap-vol-role {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

.ap-vol-desc {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: #777;
  margin-top: 3px;
  -webkit-font-smoothing: antialiased;
}

.ap-vol-year {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  color: #999;
  -webkit-font-smoothing: antialiased;
}

/* About footer */
.ap-footer {
  padding: 20px 80px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  color: #999;
  max-width: 100%;
}


@media (max-width: 900px) {
  .ap-hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 48px;
    gap: 32px;
  }

  .ap-section {
    padding: 0 24px 48px;
    padding-top: 32px;
  }

  .ap-photo-grid {
    grid-template-columns: 1fr;
  }

  .ap-expertise-grid {
    grid-template-columns: 1fr;
  }

  .ap-expertise-heading {
    font-size: 36px;
  }

  .ap-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ap-footer {
    padding: 20px 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ─── Project Case Study Pages ─────────────────────────── */
.project-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  align-items: start;
}

/* Sidebar ToC */
.project-toc {
  position: sticky;
  top: 60px;
  padding: 20px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-toc a {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12.5px;
  color: #bbb;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-font-smoothing: antialiased;
}

.project-toc a:hover {
  color: #ff6ef3;
}

.project-toc a.active {
  color: #1a1a1a;
  font-weight: 500;
}

.project-toc a.active::before {
  content: '→';
  font-size: 11px;
  color: #1a1a1a;
}

/* Main content */
.project-content {
  padding: 20px 0 80px 64px;
}

.project-breadcrumb {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12px;
  color: #aaa;
  margin-bottom: 20px;
  -webkit-font-smoothing: antialiased;
}

.project-title {
  font-family: "Softcore TRIAL Thin", sans-serif;
  font-size: 48px;
  font-weight: 100;
  line-height: 1.15em;
  color: #0B002B;
  margin-bottom: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project-intro {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 40px;
  max-width: 640px;
  -webkit-font-smoothing: antialiased;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}
.project-meta-block {
  flex: 0 0 auto;
}

.project-meta-block .meta-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 6px;
}

.project-meta-block p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* Sections */
.project-section {
  margin-bottom: 72px;
  scroll-margin-top: 80px;
}

.project-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6ef3;
  margin-bottom: 16px;
}

.project-section h2 {
  font-family: "Softcore TRIAL Thin", sans-serif;
  font-size: 28px;
  font-weight: 100;
  color: #0B002B;
  line-height: 1.3em;
  margin-bottom: 16px;
  -webkit-font-smoothing: antialiased;
}

.project-section p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
  max-width: 640px;
  -webkit-font-smoothing: antialiased;
}

/* Project callout strips (square corners; colour variants) */
.project-callout {
  padding: 22px 24px 22px 22px;
  margin-bottom: 16px;
  max-width: 640px;
  border-radius: 0;
}
.project-callout:last-child {
  margin-bottom: 0;
}
.project-callout--insight {
  background: #fef9c3;
  border-left: 4px solid #ca8a04;
}
.project-callout--insight .project-callout-label {
  color: #854d0e;
}
.project-callout--decision {
  background: #f0faf4;
  border-left: 4px solid #22c55a;
}
.project-callout--decision .project-callout-label {
  color: #166534;
}
.project-callout-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6560;
  margin: 0 0 14px 0;
}
.project-callout p {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #43423d;
  margin-bottom: 12px;
  max-width: none;
}
.project-callout p:last-child {
  margin-bottom: 0;
}
.project-callout ul {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #43423d;
  padding-left: 18px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.project-callout li {
  margin-bottom: 10px;
}
.project-callout li:last-child {
  margin-bottom: 0;
}

#insight .project-callout:first-of-type {
  margin-top: 28px;
}

.project-section blockquote.project-pullquote {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: #43423d;
  line-height: 1.65;
  border-left: 3px solid #ff6ef3;
  padding: 0 0 0 20px;
  margin: 24px 0 28px;
  max-width: 640px;
  -webkit-font-smoothing: antialiased;
}

.project-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0eeea;
  border-radius: 8px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  color: #bbb;
}

.project-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ─── Outcome Stat Cards ─────────────────────────────────── */
.outcome-grid {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 28px;
  max-width: 640px;
}
.outcome-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 10px;
  background: #f0faf4;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.outcome-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.outcome-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outcome-icon svg {
  width: 16px;
  height: 16px;
  stroke: #166534;
}
.outcome-card-num {
  font-family: 'Roboto Mono', monospace !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #166534 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.outcome-card-label {
  font-family: 'PrettyTRIAL Regular', sans-serif !important;
  font-size: 13px !important;
  color: #4a7c59 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}
[data-theme="dark"] .outcome-card {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
}
[data-theme="dark"] .outcome-icon {
  background: rgba(34, 197, 94, 0.15);
}
[data-theme="dark"] .outcome-icon svg {
  stroke: #86efac;
}
[data-theme="dark"] .outcome-card-num {
  color: #86efac !important;
}
[data-theme="dark"] .outcome-card-label {
  color: #6db882 !important;
}
.outcome-grid--stacked {
  flex-direction: column;
}
.outcome-grid--stacked .outcome-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 600px) {
  .outcome-grid {
    flex-direction: column;
  }
}

/* ─── Challenge Cards (orange) ──────────────────────────── */
.challenge-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

.challenge-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.challenge-icon {
  width: 36px;
  height: 36px;
  background: #fff1ec;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.challenge-icon svg {
  width: 16px;
  height: 16px;
  stroke: #f97316;
}

.challenge-title {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 !important;
  max-width: none !important;
}

.challenge-desc {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin: 0 !important;
  padding-top: 4px;
  max-width: none !important;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .challenge-card {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .challenge-title {
  color: #f0eeea;
}

[data-theme="dark"] .challenge-desc {
  color: #9a9a9a;
}

[data-theme="dark"] .challenge-icon {
  background: rgba(249, 115, 22, 0.15);
}

/* ─── AI Principle Cards ─────────────────────────────────── */
.principle-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

.principle-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.principle-card-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle-icon {
  width: 36px;
  height: 36px;
  background: #fce9fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-icon svg {
  width: 16px;
  height: 16px;
  stroke: #d946ef;
}

.principle-title {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 !important;
  max-width: none !important;
  -webkit-font-smoothing: antialiased;
}

.principle-desc {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin: 0 !important;
  padding-top: 4px;
  max-width: none !important;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .principle-card {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .principle-title {
  color: #f0eeea;
}

[data-theme="dark"] .principle-desc {
  color: #9a9a9a;
}

[data-theme="dark"] .principle-icon {
  background: rgba(217, 70, 239, 0.15);
}

.project-img-caption {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12px;
  color: #aaa;
  margin-top: -18px;
  margin-bottom: 28px;
  -webkit-font-smoothing: antialiased;
}

/* Prev / Next nav */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 0;
  border-top: 1px solid #e8e8e8;
  margin-top: 40px;
}

.project-nav a {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 14px;
  color: #888;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.project-nav a:hover {
  color: #ff6ef3;
}

/* ─── Project stat cards ────────────────────────────────── */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 28px;
  border-radius: 8px;
  overflow: hidden;
}

.project-stat {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-stat p {
  margin-bottom: 0 !important;
  max-width: none !important;
}

.project-stat.green {
  background: #e8f2ee;
}

.project-stat.green + .project-stat.green {
  border-left: 1px solid #c8e0d6;
}

.project-stat.red {
  background: #f7ece8;
  border-left: 1px solid #e8d4cc;
}

.project-stat .project-stat-number {
  font-family: "Softcore TRIAL Thin", sans-serif !important;
  font-size: 44px !important;
  font-weight: 100 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px;
  max-width: none !important;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.project-stat.green .project-stat-number {
  color: #1e6e50;
}

.project-stat.red .project-stat-number {
  color: #b84a2e;
}

.project-stat-label {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

.project-stat-sub {
  font-family: 'PrettyTRIAL Regular', sans-serif;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .project-toc {
    display: none;
  }

  .project-content {
    padding: 40px 0 60px;
    border-left: none;
  }

  .project-title {
    font-size: 32px;
  }
}

/* ─── Theme Toggle Widget ───────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

[data-theme="dark"] .theme-toggle {
  background: none;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: none;
  color: #999;
  transition: background 0.18s ease, color 0.18s ease;
  padding: 0;
}

.theme-btn:hover {
  color: #555;
}

.theme-btn.active {
  background: none;
  color: #1a1a1a;
}

[data-theme="dark"] .theme-btn.active {
  background: none;
  color: #f0eeea;
  box-shadow: none;
}

[data-theme="dark"] .theme-btn {
  color: #808080;  /* 4.9:1 ✓ — inactive icon, UI component threshold */
}

[data-theme="dark"] .theme-btn:hover {
  color: #b0ada8;  /* 8:1 ✓ */
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ─── Dark Mode Overrides ───────────────────────────────── */
/*
  Contrast ratios on #111111 background (WCAG AA requires 4.5:1 normal, 3:1 large/bold)
  #f0eeea → ~17:1   #c0bdb8 → ~9:1   #b0ada8 → ~8:1   #9a9a9a → ~6.3:1
  #909090 → ~5.7:1  #888888 → ~5.3:1  #808080 → ~4.9:1  #666 → ~3.0:1 ✗  #555 → ~2.2:1 ✗
  Minimum safe muted color: #888 (5.3:1). Use #9a9a9a for better breathing room.
*/
[data-theme="dark"] body {
  background: #111111;
  color: #f0eeea;
}

[data-theme="dark"] #cursor {
  background: #e8e5e0;
}

[data-theme="dark"] #cursor.hovered {
  background: #ff6ef3;
}

[data-theme="dark"] header,
[data-theme="dark"] .header-translucent {
  background: rgba(17,17,17,0.7) !important;
}

[data-theme="dark"] .header-name,
[data-theme="dark"] nav a {
  color: #9a9a9a;  /* 6.3:1 ✓ */
}

[data-theme="dark"] .header-name:hover,
[data-theme="dark"] nav a:hover {
  color: #ff6ef3;
}

[data-theme="dark"] .hero-text {
  color: #f0eeea;
}

[data-theme="dark"] .hero-sub {
  color: #9a9a9a;  /* 6.3:1 ✓ */
}

[data-theme="dark"] .projects-label {
  color: #f0eeea;
}

[data-theme="dark"] .project-card-img {
  background: #1e1e1e;
}

[data-theme="dark"] .project-card.c1 .project-card-img { background: #1a2030; }
[data-theme="dark"] .project-card.c2 .project-card-img { background: #2a2420; }
[data-theme="dark"] .project-card.c3 .project-card-img { background: #1a2420; }
[data-theme="dark"] .project-card.c4 .project-card-img { background: #24202a; }
[data-theme="dark"] .project-card.c5 .project-card-img { background: #24231a; }
[data-theme="dark"] .project-card.c6 .project-card-img { background: #1a2030; }

[data-theme="dark"] .project-card-title {
  color: #f0eeea;
}

[data-theme="dark"] .project-card-cta {
  color: #9a9a9a;  /* 6.3:1 ✓ */
}

[data-theme="dark"] .project-card:hover .project-card-cta {
  color: #e0ddd8;
}

[data-theme="dark"] .ap-footer,
[data-theme="dark"] footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9a9a9a;  /* 6.3:1 ✓ */
}


/* About page dark mode */
[data-theme="dark"] .ap-heading {
  color: #f0eeea;                /* was #0B002B — near-invisible on dark ✗ */
}

[data-theme="dark"] .ap-expertise-heading {
  color: #f0eeea;                /* was #0B002B ✗ */
}

[data-theme="dark"] .ap-body p {
  color: #b0ada8;                /* was #444 — 2.1:1 ✗ → 8:1 ✓ */
}

[data-theme="dark"] .ap-section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .ap-section-label {
  color: #9a9a9a;                /* was #43423d — 1.5:1 ✗ → 6.3:1 ✓ */
}

[data-theme="dark"] .ap-img-placeholder {
  background: #1e1e1e;
}

[data-theme="dark"] .ap-expertise-card {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .ap-expertise-card h3 {
  color: #f0eeea;                /* was #1a1a1a ✗ */
}

[data-theme="dark"] .ap-expertise-card p {
  color: #b0ada8;                /* was #777 — 4.4:1 borderline ✗ → 8:1 ✓ */
}

[data-theme="dark"] .ap-expertise-icon {
  background: #2d1a2d;
  color: #ff6ef3;
}

[data-theme="dark"] .ap-tool span {
  color: #9a9a9a;                /* was #43423d — 1.5:1 ✗ → 6.3:1 ✓ */
}

[data-theme="dark"] .ap-caption {
  color: #9a9a9a;                /* was #888 — 5.3:1 ✓ (minor bump for clarity) */
}

[data-theme="dark"] .ap-photo-placeholder {
  filter: brightness(0.5);
}

[data-theme="dark"] .ap-table {
  border-top: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .ap-table-row {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .ap-table-type {
  color: #9a9a9a;                /* was #555 — 2.2:1 ✗ → 6.3:1 ✓ */
}

[data-theme="dark"] .ap-table-org {
  color: #f0eeea;                /* was #1a1a1a ✗ */
}

[data-theme="dark"] .ap-table-desc {
  color: #b0ada8;                /* was #777 — borderline ✗ → 8:1 ✓ */
}

[data-theme="dark"] .ap-vol-role {
  color: #f0eeea;                /* was #1a1a1a ✗ */
}

[data-theme="dark"] .ap-vol-year {
  color: #9a9a9a;                /* was #999 — 6.3:1 ✓ (explicit) */
}

[data-theme="dark"] .ap-vol-desc {
  color: #b0ada8;                /* was #777 — borderline ✗ → 8:1 ✓ */
}

/* ─── Override inline-style colors in dark mode ──────────── */
/* Inline styles beat CSS classes, so we target by style attribute value */
[data-theme="dark"] [style*="color:#0B002B"] {
  color: #c0bdb8 !important;   /* #0B002B near-invisible on dark → 9:1 ✓ */
}
[data-theme="dark"] [style*="color:#1a1a1a"] {
  color: #f0eeea !important;   /* #1a1a1a near-invisible on dark → 17:1 ✓ */
}
[data-theme="dark"] [style*="color:#555"] {
  color: #9a9a9a !important;   /* #555 = 2.2:1 ✗ → 6.3:1 ✓ */
}
[data-theme="dark"] [style*="color:#444"] {
  color: #b0ada8 !important;   /* #444 = 2.1:1 ✗ → 8:1 ✓ */
}
[data-theme="dark"] [style*="background:#f5f5f5"] {
  background: #252525 !important;
  color: #9a9a9a !important;
}
[data-theme="dark"] [style*="border-left:2px solid #e8e8e8"] {
  border-left-color: rgba(255,255,255,0.15) !important;
}

/* Project pages dark mode */
[data-theme="dark"] .project-toc a {
  color: #666;
}

[data-theme="dark"] .project-toc a:hover {
  color: #ff6ef3;
}

[data-theme="dark"] .project-toc a.active {
  color: #f0eeea;
  font-weight: 500;
}

[data-theme="dark"] .project-toc a.active::before {
  color: #f0eeea;
}

[data-theme="dark"] .project-breadcrumb {
  color: #9a9a9a;  /* 6.3:1 ✓ (was #666 = 3:1 ✗) */
}

[data-theme="dark"] .project-title {
  color: #f0eeea;
}

[data-theme="dark"] .project-intro {
  color: #c0bdb8;  /* 9:1 ✓ */
}

[data-theme="dark"] .project-meta-block .meta-label {
  color: #9a9a9a;  /* 6.3:1 ✓ */
}

[data-theme="dark"] .project-meta-block p {
  color: #c0bdb8;  /* 9:1 ✓ (was #1a1a1a — near-invisible on dark ✗) */
}

[data-theme="dark"] .project-meta {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .project-section h2 {
  color: #f0eeea;
}

[data-theme="dark"] .project-section p,
[data-theme="dark"] .project-section li {
  color: #b0ada8;  /* 8:1 ✓ */
}

[data-theme="dark"] .project-callout--insight {
  background: rgba(234, 179, 8, 0.12);
  border-left: 4px solid #eab308;
}
[data-theme="dark"] .project-callout--insight .project-callout-label {
  color: #fcd34d;
}
[data-theme="dark"] .project-callout--decision {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid #22c55a;
}
[data-theme="dark"] .project-callout--decision .project-callout-label {
  color: #86efac;
}
[data-theme="dark"] .project-callout-label {
  color: #9a9a9a;
}
[data-theme="dark"] .project-callout p,
[data-theme="dark"] .project-callout li {
  color: #c0bdb8;
}

[data-theme="dark"] .project-section blockquote {
  border-left: 3px solid #ff6ef3;
  color: #c0bdb8;
}

[data-theme="dark"] .project-section blockquote.project-pullquote {
  color: #c0bdb8;
  border-left-color: #ff6ef3;
}

[data-theme="dark"] .project-img-placeholder {
  background: #1e1e1e;
  color: #9a9a9a;  /* 6.3:1 ✓ (was #555 = 2.2:1 ✗) */
}

[data-theme="dark"] .project-stat.green {
  background: #0d1f16;
  border-left-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .project-stat.green + .project-stat.green {
  border-left: 1px solid rgba(78,160,120,0.25);
}

[data-theme="dark"] .project-stat.red {
  background: #1e100d;
  border-left: 1px solid rgba(200,100,80,0.25);
}

[data-theme="dark"] .project-stat.green .project-stat-number {
  color: #5cc494 !important;  /* lighter green — legible on dark green bg */
}

[data-theme="dark"] .project-stat.red .project-stat-number {
  color: #e07055 !important;  /* lighter terracotta — legible on dark warm bg */
}

[data-theme="dark"] .project-stat.green .project-stat-label {
  color: #a8d8bc;
}

[data-theme="dark"] .project-stat.green .project-stat-sub {
  color: #6aaa8c;
}

[data-theme="dark"] .project-stat.red .project-stat-label {
  color: #ddb0a0;
}

[data-theme="dark"] .project-stat.red .project-stat-sub {
  color: #aa7060;
}

[data-theme="dark"] .project-nav {
  border-top: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .project-nav a {
  color: #9a9a9a;  /* 6.3:1 ✓ */
}

[data-theme="dark"] .project-nav a:hover {
  color: #ff6ef3;
}
