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

:root {
  --gray-95: #0a0a0a;
  --gray-70: #404040;
  --gray-60: #525252;
  --gray-30: #d4d4d4;
  --gray-20: #e5e5e5;
  --blue-70: #055880;
  --carot-50: #ff5224;
  --violet-50: #3345c9;
  --yellow-30: #ffda79;
  --blue-40: #449fcb;
  --blue-60: #077bb3;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background-color: #fff;
  background-image: radial-gradient(ellipse at 50% 10%, rgba(251,244,224,0.4) 9%, rgba(235,236,250,0.4) 40%, rgba(255,255,255,0) 70%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--gray-95);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Nav ───────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-20);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
}

.nav-inner {
  width: 100%;
  max-width: 1220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-headshot {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-95);
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links {
  display: flex;
  gap: 42px;
  align-items: center;
  font-size: 14px;
  color: var(--gray-95);
  list-style: none;
}

.nav-links a {
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-70); }
.nav-links a.active { font-weight: 700; }

/* ─── Toggle Mode Button ─────────────────────────────────────────────── */
.toggle-mode {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 4px;
}

/* hover bg circle — hidden by default, expands on hover */
.toggle-mode__bg {
  position: absolute;
  inset: -10px;
  border-radius: 48px;
  background: #cde9f7;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.toggle-mode:hover .toggle-mode__bg { opacity: 1; }

/* focus ring */
.toggle-mode:focus-visible {
  outline: 2px solid var(--gray-95);
  outline-offset: 2px;
  border-radius: 4px;
}

.toggle-mode__icon {
  position: relative;
  width: 21px;
  height: 21px;
  z-index: 1;
}

/* light mode overrides */
body.light-mode .toggle-mode__bg { background: #6db6da; }
body.light-mode .toggle-mode:hover .toggle-mode__bg { opacity: 1; }

/* ─── Shared page wrapper — all sections constrain to 1220px ────────── */
.page-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

/* ─── Hero Section ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
}

.hero-inner {
  text-align: center;
  position: relative;
}

.hero-name {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-70);
  margin-bottom: 0;

  /* load animation */
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.3s;
}

.hero-title {
  font-size: 120px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-95);
  line-height: 1;
  margin-top: 8px;

  /* load animation */
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

.hero-line {
  width: 3px;
  height: 102px;
  background: linear-gradient(to bottom, rgba(205,205,205,1), rgba(205,205,205,0));
  margin: 48px auto 0;

  /* load animation */
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

/* ─── Crafting Section ──────────────────────────────────────────────── */
#crafting {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
}

.crafting-inner {
  width: 100%;
  max-width: 1220px;
}

/* Absolutely-positioned word cluster matching Figma node 23:119 */
/* Positions are % of 1440px Figma frame width, tops are px offsets from first word */
.crafting-cluster {
  position: relative;
  height: 310px; /* fits Experiences (top 212px) + ~100px line height */
}

.crafting-word-1 {
  position: absolute;
  left: 34.5%;
  top: 0;
  font-size: 58px;
  font-weight: 300;
  color: var(--gray-95);
  line-height: 1;
  white-space: nowrap;
}

.crafting-word-2 {
  position: absolute;
  left: 46.1%;
  top: 93px;
  font-size: 96px;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  color: var(--carot-50);
  line-height: 1;
  white-space: nowrap;
}

.crafting-word-3 {
  position: absolute;
  left: 25%;
  top: 212px;
  font-size: 68px;
  font-weight: 400;
  color: var(--gray-95);
  line-height: 1;
  white-space: nowrap;
}

.crafting-desc {
  margin-top: 64px;
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray-70);
  text-align: center;
  max-width: 742px;
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}

/* ─── Stats Section ─────────────────────────────────────────────────── */
#stats {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 281px);
  gap: 54px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 32px 32px 40px;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.2);
  opacity: 0.8;
}

.stat-card-1 {
  background: linear-gradient(142.03deg, rgb(228,231,252) 6.85%, rgb(255,255,255) 76.46%);
}
.stat-card-2 {
  background: linear-gradient(163.88deg, rgb(252,245,226) 2.85%, rgb(255,255,255) 73.76%);
  padding-top: 28px;
}

.stat-card-2__pic {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 19px 13px 8px;
  width: 100%;
}

.stat-card-2__icon {
  width: 60px;
  height: 66.667px;
  display: block;
  flex-shrink: 0;
}

.stat-card-3 {
  background: linear-gradient(142.03deg, rgb(228,231,252) 6.85%, rgb(255,255,255) 76.46%);
}

.stat-number {
  font-size: 74px;
  font-weight: 500;
  color: var(--violet-50);
  line-height: 1;
}

.stat-label {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-70);
}


/* ─── Work Section ──────────────────────────────────────────────────── */
#work {
  padding: 80px 32px;
}

.work-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.work-title {
  font-size: 74px;
  font-weight: 400;
  color: var(--gray-95);
  margin-bottom: 80px;
  overflow: hidden;
  white-space: nowrap;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.project-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border: 1px solid var(--gray-30);
  border-radius: 36px;
  padding: 32px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, border-width 0.1s ease;
  outline: none;
  text-decoration: none;
}
.project-card:hover {
  border-color: var(--blue-40);
  box-shadow: 4px 4px 24px 0px rgba(35, 140, 191, 0.24);
}
.project-card:active {
  border-color: var(--blue-60);
  box-shadow: 4px 4px 32px 0px rgba(35, 140, 191, 0.48);
}
.project-card:focus-visible {
  border: 2px solid black;
  box-shadow: none;
}

/* staggered offsets — even cards pushed right */
.project-card:nth-child(2),
.project-card:nth-child(4) {
  margin-left: auto;
  width: 90%;
}

.project-card:nth-child(1),
.project-card:nth-child(3) {
  width: 90%;
}

.project-thumb {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 32px;
  overflow: hidden;
  object-fit: cover;
}

.project-thumb-pulse { background: var(--yellow-30); }

.project-info { flex: 1; }

.project-category {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-60);
  line-height: 24px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--gray-95);
  line-height: 1.2;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--gray-70);
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-70);
  text-transform: capitalize;
}

.project-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.project-link:hover img { transform: translateX(4px); }

/* View all button */
.view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  overflow: hidden;
  transform-origin: center;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--blue-70);
  color: var(--blue-70);
  background: #fff;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Manrope', sans-serif;
}
.btn-view-all:hover {
  background: var(--blue-70);
  color: #fff;
}

/* ─── Philosophy Section ────────────────────────────────────────────── */
#philosophy {
  padding: 128px 32px;
}

.philosophy-inner {
  max-width: 1220px;
  margin: 0 auto;
  text-align: center;
}

/* Word cluster — absolutely positioned to match Figma node 51:376 */
/* Positions are % of 1440px frame; top offsets are px from first line */
.philosophy-cluster {
  position: relative;
  height: 345px;
  margin-bottom: 64px;
  text-align: left;
}

.phil-taste {
  position: absolute;
  left: 27.5%;
  top: 0;
  font-size: 40px;
  font-weight: 500;
  color: var(--gray-95);
  line-height: 1;
  white-space: nowrap;
}

.phil-human {
  position: absolute;
  left: 49.5%;
  top: 45px;
  font-size: 78px;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  color: var(--carot-50);
  line-height: 1;
  white-space: nowrap;
}

.phil-row3 {
  position: absolute;
  left: 24.6%;
  top: 189px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}

.phil-system {
  font-size: 60px;
  font-family: 'Inria Serif', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--carot-50);
  line-height: 1;
}

.phil-turns {
  font-size: 40px;
  font-weight: 500;
  color: var(--gray-95);
  line-height: 1;
}

.phil-into {
  position: absolute;
  left: 31.3%;
  top: 281px;
  font-size: 40px;
  font-weight: 500;
  color: var(--gray-95);
  line-height: 1;
  white-space: nowrap;
}

.philosophy-body {
  max-width: 742px;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-70);
}

.philosophy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-70);
  text-transform: capitalize;
}

.philosophy-link img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.philosophy-link:hover img { transform: translateX(4px); }

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--gray-20);
  padding: 8px 32px 24px;
  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;
  max-width: 1220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: #525252;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-family: 'Inter', 'Manrope', sans-serif;
}

.footer-connect {
  color: var(--gray-70);
  white-space: pre;
}

.footer-linkedin {
  border: 1px solid var(--gray-20);
  border-radius: 4px;
  overflow: hidden;
  width: 37px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-linkedin img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Animation: initial hidden states ─────────────────────────────── */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInScale {
  to { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered animation classes */
/* Elements start hidden (set via JS), then get .is-visible */

.anim-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-from-bottom {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-scale-center {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-unfold-x {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.anim-clip-reveal {
  clip-path: inset(0 50% 0 50%);
  opacity: 0;
  transition: clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease;
}
.anim-card-left {
  opacity: 0;
  transform: translateX(-200px) rotate(-10deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-card-right {
  opacity: 0;
  transform: translateX(200px) rotate(10deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-card-up {
  opacity: 0;
  transform: translateY(200px) scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-title-expand {
  opacity: 0;
  max-width: 100px;
  overflow: hidden;
  transition: opacity 1s ease, max-width 1s ease;
}

/* Is-visible states */
.is-visible.anim-from-left,
.is-visible.anim-from-right,
.is-visible.anim-from-bottom,
.is-visible.anim-card-left,
.is-visible.anim-card-right {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0deg);
}
.is-visible.anim-scale-center,
.is-visible.anim-card-up {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.is-visible.anim-unfold-x {
  opacity: 1;
  transform: scaleX(1);
}
.is-visible.anim-clip-reveal {
  clip-path: inset(0 0% 0 0%);
  opacity: 1;
}
.is-visible.anim-title-expand {
  opacity: 1;
  max-width: 1000px;
}

/* Transition delays for staggered children */
.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }
.delay-4 { transition-delay: 0.8s !important; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — hamburger + mobile menu
   ═══════════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger img { width: 24px; height: 24px; display: block; }

/* Mobile menu — scrim (outer) + right panel (inner) */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  background: transparent;
  pointer-events: none;
  transition: background 0.35s ease;
}
.mobile-menu.is-open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

/* Right-side panel */
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

/* Panel header row — close button right-aligned */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px 12px 24px;
  flex-shrink: 0;
}

.mobile-close {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-close img { width: 24px; height: 24px; display: block; }

/* Nav items */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-nav-links li a {
  display: flex;
  align-items: center;
  height: 48px;
  padding-left: 32px;
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-95);
  transition: color 0.2s;
}
.mobile-nav-links li a:hover { color: var(--blue-70); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — 768px breakpoint (tablet + mobile)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  nav { padding: 12px 16px; }
  .mobile-menu { display: block; }

  .nav-links { display: none; }

  .hamburger { display: flex; }

  .nav-right { gap: 12px; }

  .nav-name { font-size: 16px; }

  /* ── Hero ── */
  .hero-title { font-size: clamp(64px, 22vw, 120px); }
  .hero-name  { font-size: 18px; letter-spacing: 0.15em; }

  /* ── Crafting cluster ── */
  /* Scale positions from 1440px → 375px frame */
  .crafting-cluster { height: 265px; }

  .crafting-word-1 {
    font-size: 48px;
    left: 12%;
    top: 0;
  }
  .crafting-word-2 {
    font-size: 72px;
    left: 26.1%;
    top: 83px;
  }
  .crafting-word-3 {
    font-size: 56px;
    left: 4.85%;
    top: 188px;
  }

  .crafting-desc { font-size: 18px; max-width: 320px; }

  /* ── Stats — stack vertically ── */
  #stats { min-height: auto; padding: 60px 16px; }
  .stats-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }

  /* ── Work section ── */
  #work { padding: 60px 16px; }
  .work-title { font-size: 48px; margin-bottom: 40px; }

  /* Cards: full width, no stagger, no thumbnail */
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    width: 100%;
    margin-left: 0;
  }
  .project-thumb { display: none; }
  .project-title { font-size: 24px; }
  .project-desc  { font-size: 14px; }

  /* ── Philosophy cluster ── */
  #philosophy { padding: 80px 16px; }
  .philosophy-cluster { height: 360px; }

  .phil-taste {
    font-size: 32px;
    left: 4.4%;
    top: 0;
  }
  .phil-human {
    font-size: 72px;
    left: 10.5%;
    top: 37px;
  }
  /* Break system+turns row into column */
  .phil-row3 {
    flex-direction: column;
    align-items: flex-start;
    left: 4.3%;
    top: 145px;
    gap: 0;
  }
  .phil-system { font-size: 42px; }
  .phil-turns  { font-size: 32px; margin-top: 39px; margin-left: 30px; }

  .phil-into {
    font-size: 32px;
    left: 12.4%;
    top: 273px;
    white-space: normal;
    width: 280px;
  }

  .philosophy-body { font-size: 18px; max-width: 343px; }

  /* ── Footer ── */
  footer { padding: 16px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer-copy { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — 480px (small phones)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav-avatar { width: 52px; height: 52px; }
  .hero-title { font-size: clamp(56px, 24vw, 100px); }
  .crafting-word-2 { font-size: clamp(52px, 18vw, 72px); }
  .phil-human      { font-size: clamp(52px, 18vw, 72px); }
  .stats-grid      { width: 100%; }
  .stat-card       { width: 100%; max-width: 320px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════════════════ */

body.dark-mode {
  /* ── Override color tokens ── */
  --gray-95:  #f0f0f0;
  --gray-70:  #aaaaaa;
  --gray-60:  #888888;
  --gray-30:  #2e2e2e;
  --gray-20:  #222222;
  --blue-70:  #6db6da;
  --blue-40:  #449fcb;
  --blue-60:  #3a9ac4;
  --violet-50: #8b9ef5;

  /* ── Page background ── */
  background-color: #111111;
  background-image: radial-gradient(ellipse at 50% 10%,
    rgba(40,35,20,0.45) 9%,
    rgba(20,22,45,0.4) 40%,
    rgba(15,15,15,0) 70%);
  color: var(--gray-95);
}

/* Nav */
body.dark-mode nav {
  background: #111111;
  border-bottom-color: var(--gray-20);
}
body.dark-mode .nav-name,
body.dark-mode .nav-links a { color: var(--gray-95); }
body.dark-mode .hamburger img { filter: invert(1); }

/* Mobile menu */
body.dark-mode .mobile-menu__panel { background: #1a1a1a; }
body.dark-mode .mobile-close img { filter: invert(1); }
body.dark-mode .mobile-nav-links li a { color: var(--gray-95); }
body.dark-mode .mobile-nav-links li a:hover { color: var(--blue-70); }

/* Toggle hover bg */
body.dark-mode .toggle-mode__bg { background: rgba(109,182,218,0.25); }

/* Stat cards */
body.dark-mode .stat-card {
  box-shadow: 8px 8px 24px rgba(0,0,0,0.5);
}
body.dark-mode .stat-card-1,
body.dark-mode .stat-card-3 {
  background: linear-gradient(142.03deg, rgb(28,32,70) 7%, rgb(18,18,30) 76%);
}
body.dark-mode .stat-card-2 {
  background: linear-gradient(163.88deg, rgb(48,36,18) 3%, rgb(20,18,14) 74%);
}

/* Project cards */
body.dark-mode .project-card {
  background: #1a1a1a !important;
  border-color: var(--gray-30);
}
body.dark-mode .project-card:hover {
  border-color: var(--blue-40);
}
body.dark-mode .project-card:active {
  border-color: var(--blue-60);
}
body.dark-mode .project-card:focus-visible {
  border-color: var(--gray-95);
}

/* View all button */
body.dark-mode .btn-view-all {
  background: transparent;
  color: var(--blue-70);
  border-color: var(--blue-70);
}
body.dark-mode .btn-view-all:hover {
  background: var(--blue-70);
  color: #111;
}

/* Philosophy section */
body.dark-mode #philosophy {
  background: transparent;
}

/* Link arrows — recolor to match dark-mode --blue-70 (#6db6da) */
body.dark-mode .project-link img,
body.dark-mode .philosophy-link img {
  filter: brightness(0) saturate(100%) invert(69%) sepia(27%) saturate(617%) hue-rotate(161deg) brightness(101%) contrast(89%);
}

/* Footer */
body.dark-mode footer {
  border-top-color: var(--gray-20);
}

/* Smooth transition on mode switch */
body, nav, .mobile-menu, footer, #philosophy {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
