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

:root {
  --accent: #16A34A;
  --accent-light: #22C55E;
  --accent-dark: #15803D;
  --accent-soft-bg: #f0fdf4;
  --accent-soft-border: #bbf7d0;
  --bg: #ffffff;
  --text: #18181b;
  --text-soft: #71717a;
  --text-softer: #a1a1aa;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --border: #f4f4f5;
  --border-strong: #e4e4e7;
  --card-dark-bg: #18181b;
  --font-display: 'PT Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html.dark {
  --bg: #09090b;
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --text-softer: #71717a;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #18181b;
  --border-strong: #27272a;
  --card-dark-bg: #27272a;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
  position: relative;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

/* noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* utility */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* nav underline animation */
.nav-link { position: relative; font-size: 14px; color: var(--text-soft); transition: color .18s; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: currentColor; transition: width .22s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); font-weight: 500; }

/* shimmer button */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: rgba(255,255,255,.18); transform: skewX(-20deg); transition: left .4s cubic-bezier(.4,0,.2,1);
}
.shimmer:hover::after { left: 160%; }

/* photo frames */
.photo-frame { overflow: hidden; background: #d4d4d8; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* card hover */
.card-hover { transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .18s; }
.card-hover:hover { transform: translateY(-4px); }

/* skill tag */
.skill-tag { transition: border-color .18s; }
.skill-tag:hover { border-color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; border-radius: 999px;
  padding: 14px 28px; transition: background-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text-soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text-soft); }
.btn-outline:hover { background: var(--surface); }

.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); color: var(--text); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: all .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
html.dark .site-header.scrolled { background: rgba(9,9,11,.9); }

.nav {
  max-width: 1152px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; position: relative; z-index: 10; }
.logo .accent { color: var(--accent); }

.nav-list { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .nav-list { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border-strong);
  transition: background-color .18s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .icon-sun, .icon-btn .icon-moon { display: none; }
html:not(.dark) .icon-btn .icon-sun { display: block; }
html.dark .icon-btn .icon-moon { display: block; }

.hire-btn { display: none; }
@media (min-width: 768px) { .hire-btn { display: inline-flex; } }

.menu-btn { display: flex; }
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-btn .icon-close { display: none; }
.menu-btn.open .icon-burger { display: none; }
.menu-btn.open .icon-close { display: block; }

/* mobile menu */
.mobile-menu {
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mobile-menu.open { max-height: 400px; }
.mobile-menu-list { display: flex; flex-direction: column; padding: 20px 24px; gap: 16px; font-size: 14px; font-weight: 500; }
.mobile-menu-list a { color: var(--text-soft); transition: color .18s; }
.mobile-menu-list a:hover { color: var(--accent); }
.mobile-menu-list .divider { padding-top: 8px; border-top: 1px solid var(--border); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; overflow: hidden;
}
.hero-blob-1 { position: absolute; top: 25%; right: 0; width: 384px; height: 384px; background: rgba(22,163,74,.12); border-radius: 999px; filter: blur(64px); pointer-events: none; }
.hero-blob-2 { position: absolute; bottom: 25%; left: 0; width: 256px; height: 256px; background: rgba(228,228,231,.5); border-radius: 999px; filter: blur(64px); pointer-events: none; }
html.dark .hero-blob-2 { background: rgba(39,39,42,.3); }

.hero-inner { position: relative; z-index: 10; max-width: 1152px; margin: 0 auto; padding: 96px 24px; width: 100%; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-title { font-weight: 700; font-size: clamp(48px, 7vw, 72px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-title .accent { color: var(--accent); }
.hero-lede { font-size: clamp(18px, 2vw, 20px); font-weight: 300; color: var(--text-soft); line-height: 1.6; max-width: 420px; margin-bottom: 40px; }
.hero-lede strong { font-weight: 500; color: var(--text-soft); }
html.dark .hero-lede strong { color: #d4d4d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats { display: flex; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stats .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.hero-stats .stat-label { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.hero-photo-wrap { display: flex; justify-content: center; }
@media (min-width: 768px) { .hero-photo-wrap { justify-content: flex-end; } }
.hero-photo { position: relative; width: 288px; height: 288px; }
@media (min-width: 768px) { .hero-photo { width: 320px; height: 320px; } }
@media (min-width: 1024px) { .hero-photo { width: 384px; height: 384px; } }
.hero-photo .photo-frame { width: 100%; height: 100%; border-radius: 24px; }
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; padding: 10px 16px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* ============================================
   SECTIONS (generic)
   ============================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
.section-head { margin-bottom: 56px; }
.section-head-row { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; margin-bottom: 56px; }
@media (min-width: 640px) { .section-head-row { flex-direction: row; align-items: flex-end; } }
.section-link { font-size: 14px; font-weight: 500; color: var(--text-soft); align-self: flex-start; }
@media (min-width: 640px) { .section-link { align-self: auto; } }
.section-link:hover { color: var(--accent); }

/* ============================================
   SERVICES
   ============================================ */
.services-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { border-radius: 20px; padding: 32px; border: 1px solid var(--border); background: #fff; }
html.dark .service-card { background: var(--surface); }
.service-card:hover { border-color: var(--accent); }
.service-card.dark-card { background: #18181b; border-color: #27272a; }
html.dark .service-card.dark-card { background: var(--surface-2); }
.service-card.dark-card h3, .service-card.dark-card p { color: #fff; }
.service-card.dark-card p { color: #a1a1aa; }

.service-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft-bg); border-radius: 12px; margin-bottom: 24px; transition: background-color .18s;
}
html.dark .service-icon { background: var(--surface-2); }
.service-icon.on-dark { background: #27272a; }
.service-card:hover .service-icon { background: rgba(22,163,74,.12); }
.service-icon svg { width: 24px; height: 24px; color: var(--accent); }

.service-card h3 { font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ============================================
   WORK / PORTFOLIO
   ============================================ */
.work-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; } }

.work-card { border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.work-card:hover { border-color: var(--accent); }
.work-card.featured { grid-row: span 2; }
.work-card .photo-frame { width: 100%; height: 192px; }
.work-card.featured .photo-frame { height: 256px; }
@media (min-width: 768px) { .work-card.featured .photo-frame { height: 320px; } }
.work-card-body { padding: 24px; }
.work-card.featured .work-card-body { padding: 28px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.work-card.featured .tag-row { margin-bottom: 16px; }
.tag { font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.tag-accent { background: var(--accent-soft-bg); color: var(--accent-dark); border: 1px solid var(--accent-soft-border); }
html.dark .tag-accent { color: var(--accent-light); }
html.dark .tag-accent { background: var(--surface-2); border-color: #3f3f46; }
.tag-neutral { background: #e4e4e7; color: #52525b; }
html.dark .tag-neutral { background: var(--surface-2); color: #a1a1aa; }

.work-card h3 { font-weight: 700; margin-bottom: 6px; }
.work-card:not(.featured) h3 { font-size: 20px; margin-bottom: 6px; }
.work-card.featured h3 { font-size: 24px; margin-bottom: 8px; }
.work-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }
.work-card.featured p { margin-bottom: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.link-arrow svg { width: 14px; height: 14px; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; gap: 64px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-photo { order: 2; }
.about-text { order: 1; }
@media (min-width: 768px) { .about-photo { order: 1; } .about-text { order: 2; } }
.about-photo .photo-frame { width: 100%; max-width: 384px; aspect-ratio: 1/1; margin: 0 auto; border-radius: 24px; }

.about-heading { font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.2; margin-bottom: 24px; }
.about-text p { color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; }

.stack-label { font-size: 12px; font-weight: 500; color: var(--text-soft); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 14px; background: #fff; border: 1px solid var(--border-strong); color: #3f3f46;
  padding: 6px 14px; border-radius: 999px;
}
html.dark .skill-tag { background: var(--surface-2); color: #d4d4d8; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.reviews-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { border-radius: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--border); }
.review-card.dark-card { background: #18181b; border-color: #27272a; }
html.dark .review-card.dark-card { background: var(--surface-2); }
.stars { display: flex; gap: 2px; margin-bottom: 20px; }
.stars svg { width: 16px; height: 16px; color: var(--accent); fill: currentColor; }
.review-quote { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 24px; font-style: italic; }
.review-card.dark-card .review-quote { color: #a1a1aa; }
.review-footer { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0; }
.review-name { font-weight: 500; font-size: 14px; }
.review-card.dark-card .review-name { color: #fff; }
.review-role { font-size: 12px; color: var(--text-softer); }

/* ============================================
   BLOG
   ============================================ */
.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
html.dark .blog-card { background: var(--surface); }
.blog-card:hover { border-color: var(--accent); }
.blog-card .photo-frame { width: 100%; height: 176px; }
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-date { font-size: 12px; color: var(--text-softer); }
.blog-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; transition: color .18s; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }

/* ============================================
   CONTACT
   ============================================ */
.contact-panel {
  background: #18181b; border-radius: 28px; padding: 40px 24px; position: relative; overflow: hidden;
}
html.dark .contact-panel { background: var(--surface-2); }
@media (min-width: 768px) { .contact-panel { padding: 64px; } }
.contact-blob-1 { position: absolute; top: 0; right: 0; width: 256px; height: 256px; background: rgba(22,163,74,.22); border-radius: 999px; filter: blur(64px); pointer-events: none; }
.contact-blob-2 { position: absolute; bottom: 0; left: 0; width: 160px; height: 160px; background: rgba(22,163,74,.12); border-radius: 999px; filter: blur(48px); pointer-events: none; }
.contact-grid { position: relative; z-index: 10; display: grid; gap: 48px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-heading { font-weight: 700; font-size: clamp(32px, 5vw, 48px); color: #fff; line-height: 1.2; margin-bottom: 20px; }
.contact-lede { color: #a1a1aa; line-height: 1.6; margin-bottom: 32px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link { display: flex; align-items: center; gap: 12px; color: #a1a1aa; transition: color .18s; }
.contact-link:hover { color: #fff; }
.contact-link-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: #27272a; border-radius: 8px; flex-shrink: 0; transition: background-color .18s;
}
.contact-link:hover .contact-link-icon { background: rgba(22,163,74,.22); }
.contact-link-icon svg { width: 16px; height: 16px; }
.contact-link span:last-child { font-size: 14px; }

.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: #a1a1aa; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: #27272a; border: 1px solid #3f3f46; color: #fff;
  font-size: 14px; border-radius: 12px; padding: 12px 16px; transition: border-color .18s;
}
.field input::placeholder, .field textarea::placeholder { color: #52525b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: none; }
.submit-btn {
  width: 100%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; padding: 14px; border-radius: 12px; transition: background-color .2s;
}
.submit-btn:hover { background: var(--accent-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1152px; margin: 0 auto; padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-inner p { font-size: 14px; color: var(--text-softer); }
.footer-inner a { font-weight: 700; }
.footer-credits { font-size: 12px; color: var(--text-softer); }
.footer-credits a:hover { color: var(--accent); }

/* ============================================
   WORK EXPERIENCE (timeline)
   ============================================ */
.experience-list {
  position: relative;
  max-width: 800px;
}
.experience-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}
.experience-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}
.experience-item:last-child { padding-bottom: 0; }
.experience-dot {
  position: absolute;
  left: 0; top: 2px;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.experience-dot svg { width: 18px; height: 18px; color: var(--accent); }
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color .18s, transform .2s;
}
.experience-card:hover { border-color: var(--accent); transform: translateX(2px); }
.experience-top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.experience-role { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.experience-period {
  font-size: 12px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft-bg); padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
html.dark .experience-period { background: var(--surface-2); }
.experience-company { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.experience-company strong { color: var(--text); font-weight: 500; }
.experience-list-items { margin: 0; padding-left: 18px; }
.experience-list-items li { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 4px; }

/* ============================================
   SUB-PAGE SHARED HEADER (Projects / Blog hero areas)
   ============================================ */
.page-hero {
  position: relative; padding: 144px 0 48px; overflow: hidden;
}
.page-hero-blob {
  position: absolute; top: 0; right: 0; width: 320px; height: 320px;
  background: rgba(22,163,74,.12); border-radius: 999px; filter: blur(64px); pointer-events: none;
}
.page-title { font-weight: 700; font-size: clamp(40px, 6vw, 60px); line-height: 1.1; margin-bottom: 16px; }
.page-lede { font-size: 18px; color: var(--text-soft); max-width: 620px; line-height: 1.6; margin-bottom: 32px; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft);
  margin-bottom: 32px; transition: color .18s;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

/* ============================================
   PROJECT FILTERS (projects.html)
   ============================================ */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-size: 14px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text-soft); transition: border-color .18s, background-color .18s, color .18s;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.project-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  border-radius: 16px; overflow: hidden; background: var(--bg); border: 1px solid var(--border);
  transition: transform .28s cubic-bezier(.4,0,.2,1), border-color .18s, opacity .2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card .photo-frame { width: 100%; height: 208px; }
.project-card-body { padding: 24px; }
.project-card h3 { font-weight: 700; font-size: 18px; margin-bottom: 8px; transition: color .18s; }
.project-card:hover h3 { color: var(--accent); }
.project-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; }
.project-year { font-size: 12px; color: var(--text-softer); }
.no-results { text-align: center; padding: 80px 0; color: var(--text-softer); font-size: 14px; }

/* ============================================
   CTA PANEL (dark, used on projects/case-study)
   ============================================ */
.cta-panel {
  background: #18181b; border-radius: 24px; padding: 56px 24px; text-align: center; position: relative; overflow: hidden;
}
html.dark .cta-panel { background: var(--surface-2); }
.cta-panel .contact-blob-1, .cta-panel .contact-blob-2 { }
.cta-panel h2 { color: #fff; font-weight: 700; font-size: clamp(28px, 4vw, 36px); margin-bottom: 16px; }
.cta-panel p { color: #a1a1aa; max-width: 440px; margin: 0 auto 32px; line-height: 1.6; }

/* ============================================
   CASE STUDY / ARTICLE PROSE
   ============================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 100;
  width: 0%; transition: width .1s linear;
}

.cs-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.cs-date { font-size: 12px; color: var(--text-softer); margin-left: 4px; }

.cs-meta-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .cs-meta-grid { grid-template-columns: repeat(4, 1fr); } }
.cs-meta-grid p:first-child { font-size: 12px; color: var(--text-softer); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.cs-meta-grid p:last-child { font-weight: 500; font-size: 14px; }

.cs-hero-image .photo-frame { width: 100%; height: 300px; border-radius: 24px; }
@media (min-width: 768px) { .cs-hero-image .photo-frame { height: 480px; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 16px; padding: 20px 24px; }
.stat-card .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.stat-card .stat-num.accent { color: var(--accent); }
.stat-card .stat-desc { font-size: 12px; color: var(--text-soft); margin-top: 4px; line-height: 1.5; }

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 44px 0 16px; line-height: 1.25; }
.prose h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 32px 0 10px; line-height: 1.3; color: var(--accent); }
.prose p { margin: 0 0 22px; line-height: 1.82; color: var(--text-soft); }
.prose ul { margin: 0 0 22px 24px; list-style: disc; }
.prose li { margin-bottom: 7px; line-height: 1.7; color: var(--text-soft); }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px; margin: 0 0 28px;
  background: var(--accent-soft-bg); border-radius: 0 8px 8px 0;
}
html.dark .prose blockquote { background: var(--surface-2); }
.prose blockquote p { color: var(--text-soft); font-style: italic; margin: 0; }
.prose hr { border: none; border-top: 1px solid var(--border-strong); margin: 40px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code:not(pre code) {
  background: var(--surface-2); color: var(--accent-dark); padding: .15em .4em; border-radius: 4px; font-size: .875em;
}
html.dark .prose code:not(pre code) { color: var(--accent-light); }
.prose pre {
  background: #18181b; color: #e4e4e7; border-radius: 12px; padding: 20px 24px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 0 0 26px;
}

.principles-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }
.principle-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.principle-icon {
  width: 40px; height: 40px; background: var(--accent-soft-bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
html.dark .principle-icon { background: var(--surface-2); }
.principle-icon svg { width: 20px; height: 20px; color: var(--accent); }
.principle-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--text); }
.principle-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0; }

.step-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.step-badge {
  width: 32px; height: 32px; min-width: 32px; border-radius: 999px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.step-item p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0; }

.img-full .photo-frame { width: 100%; height: 224px; border-radius: 16px; }
@media (min-width: 768px) { .img-full .photo-frame { height: 320px; } }
.img-caption { font-size: 13px; color: var(--text-softer); text-align: center; margin-top: 10px; }

.before-after { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .before-after { grid-template-columns: 1fr 1fr; } }
.before-after .photo-frame { width: 100%; height: 208px; border-radius: 16px; }

.more-projects-section { background: var(--surface); padding: 64px 0; }
.more-projects-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.more-projects-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.more-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-card { background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: transform .28s, border-color .18s; }
.more-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.more-card .photo-frame { width: 100%; height: 176px; }
.more-card-body { padding: 20px; }
.more-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 8px 0; transition: color .18s; }
.more-card:hover h3 { color: var(--accent); }

/* ============================================
   BLOG PAGE EXTRAS
   ============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 14px; border: 1px solid var(--border-strong); color: var(--text-soft); transition: border-color .18s, color .18s, background-color .18s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-ellipsis { font-size: 14px; color: var(--text-softer); padding: 0 4px; }

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR SUB-PAGES
   ============================================ */
@media (max-width: 640px) {
  .cs-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-top { flex-direction: column; align-items: flex-start; }
}
