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

/* ── Design Tokens ── */
:root {
  --bg: #F9F8F5;
  --bg-card: #ffffff;
  --text: #313131;
  --text-muted: #A4A4A4;
  --accent: #D73301;
  --tan: #f6decd;
  --tan-deep: #dbab88;
  --border: rgba(49, 49, 49, 0.08);
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
  --radius: 2rem;
  --radius-sm: 1.25rem;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Grain Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  z-index: 9999;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.scrolled {
  background: rgba(249, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 210;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(49, 49, 49, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nav-overlay.visible { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ── Container ── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 3rem;
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); }

footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }
  .contact-page-bg .nav-logo { color: var(--text); }
  .nav-toggle { display: block; }
  .nav-overlay { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px;
    max-width: 80vw;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 0;
    background: #ffffff;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { bottom: -1px; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  footer .container { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════════
   SHARED PAGE STYLES
   ═══════════════════════════════════════════ */

section { padding: 8rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.section-label::before { content: ''; width: 1.5rem; height: 1.5px; background: var(--text-muted); }
.section-label-center { justify-content: center; }

.section-heading {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }

/* Page hero — shared base */
.page-hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2rem;
}
.page-hero-label::before { content: ''; width: 2rem; height: 1.5px; background: var(--accent); }
.page-hero h1,
.about-page-hero h1,
.exp-page-hero h1,
.portfolio-page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 2rem;
}
.page-hero h1 em,
.about-page-hero h1 em,
.exp-page-hero h1 em,
.portfolio-page-hero h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--accent); }

/* Shared buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.25rem; background: var(--accent); color: var(--bg);
  font-family: inherit; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: none; border-radius: 100px; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(215, 51, 1, 0.35); }
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.25rem; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Shared CTA paragraph and button row */
.cta-desc { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 2.5rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   HOME PAGE (index.html)
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 3rem;
  padding-right: 3rem;
}
.hero-content { max-width: 640px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2rem;
}
.hero-label::before { content: ''; width: 2rem; height: 1.5px; background: var(--accent); }
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 2rem;
}
.hero h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.hero-description { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); max-width: 420px; margin-bottom: 3rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.25rem; background: var(--accent); color: var(--bg);
  font-family: inherit; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: none; border-radius: 100px; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(215, 51, 1, 0.35); }
.hero-cta:active { transform: translateY(0) scale(0.98); }
.hero-cta svg { transition: transform 0.3s ease; }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-cta-secondary {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); transition: color 0.3s ease; position: relative;
}
.hero-cta-secondary::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--text); transition: width 0.3s ease;
}
.hero-cta-secondary:hover { color: var(--text); }
.hero-cta-secondary:hover::after { width: 100%; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-solids { display: flex; align-items: center; justify-content: center; }
.hero-solids canvas { display: block; }

/* ── Marquee Strip ── */
.marquee-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden; padding: 1rem 0;
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0 2.5rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.marquee-item::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0.5; flex-shrink: 0;
}

/* ── Services Section ── */
#services { background: var(--bg); padding: 6rem 0; }
.services-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem;
}
.services-header p { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-icon {
  width: 2.75rem; height: 2.75rem; background: var(--tan); border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.service-icon svg { color: var(--accent); }
.service-title { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.875rem; }
.service-desc { font-size: 0.9375rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.service-tag {
  padding: 0.2rem 0.625rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.02em;
}

/* ── Featured Work (homepage) ── */
#work { background: var(--bg); padding-top: 0; padding-bottom: 8rem; }
.featured-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; gap: 2rem;
}
.view-all-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); transition: gap 0.3s ease; white-space: nowrap;
}
.view-all-link:hover { gap: 0.875rem; }
.view-all-link svg { transition: transform 0.3s ease; }
.view-all-link:hover svg { transform: translateX(2px); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.featured-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.featured-card-img {
  width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--tan), var(--tan-deep)); position: relative;
}
.featured-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.featured-card:hover .featured-card-img img { transform: scale(1.04); }
.featured-card-body { padding: 2rem; }
.featured-card-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 0.875rem; }
.featured-card-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.75rem; }
.featured-card-desc { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 1.5rem; }
.featured-card-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.5rem; }
.featured-card-tag {
  padding: 0.25rem 0.75rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
}
.featured-card:hover .featured-card-tag { border-color: rgba(215, 51, 1, 0.15); }
.featured-card-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); transition: gap 0.3s ease;
}
.featured-card-link:hover { gap: 0.75rem; }
.featured-card-link svg { transition: transform 0.3s ease; }
.featured-card-link:hover svg { transform: translateX(2px); }
.featured-cta-row { text-align: center; margin-top: 3rem; }
.btn-outline-accent {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.25rem; border: 1.5px solid var(--accent); border-radius: 100px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-outline-accent:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn-outline-accent svg { transition: transform 0.3s ease; }
.btn-outline-accent:hover svg { transform: translateX(4px); }

/* ── About Section (homepage teaser) ── */
#about { background: var(--text); color: var(--bg); }
#about .section-label { color: var(--tan-deep); }
#about .section-label::before { background: var(--tan-deep); }
#about .section-heading { color: var(--bg); }
#about .section-heading em { color: var(--tan-deep); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: center; }
.about-text { font-size: 1.125rem; line-height: 1.8; color: rgba(249, 248, 245, 0.7); margin-bottom: 2rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.stat { padding: 2rem; border: 1px solid rgba(249, 248, 245, 0.08); border-radius: var(--radius-sm); transition: border-color 0.3s ease; }
.stat:hover { border-color: rgba(249, 248, 245, 0.2); }
.stat-number { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(249, 248, 245, 0.4); }

/* ── Contact Section (homepage) ── */
#contact { text-align: center; }
#contact .section-label { justify-content: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.03em;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.contact-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(215, 51, 1, 0.15); }

/* ── Home Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 10rem 2rem 5rem; gap: 3rem; }
  .hero-visual { order: -1; }
  section { padding: 5rem 0; }
  .services-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.75rem; }
  section { padding: 4rem 0; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-description { font-size: 1rem; }
  .project-preview { min-height: 220px; }
  .section-heading { font-size: 1.75rem; }
  .stat-number { font-size: 2rem; }
}

/* ═══════════════════════════════════════════
   ABOUT PAGE (about.html)
   ═══════════════════════════════════════════ */

.about-page-hero {
  min-height: 60dvh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem;
  padding-top: 10rem; padding-bottom: 5rem;
  max-width: 1440px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem;
}
.about-page-hero .page-hero-desc { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); max-width: 440px; }

.portrait-wrap { display: flex; justify-content: center; align-items: center; }
.portrait-frame {
  width: 420px; height: 500px;
  background: linear-gradient(145deg, var(--tan), var(--tan-deep));
  border-radius: var(--radius); position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.portrait-frame::before {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 160px; height: 160px; background: var(--accent); opacity: 0.08; border-radius: 50%;
}
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.portrait-monogram {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.portrait-monogram-text { font-size: 6rem; font-weight: 800; letter-spacing: -0.05em; color: rgba(49, 49, 49, 0.12); line-height: 1; }
.portrait-monogram-sub { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(49, 49, 49, 0.25); }

.stats-bar { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 2.5rem 2rem; border-right: 1px solid var(--border); transition: background 0.3s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg); }
.stat-item .stat-number { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 0.375rem; }
.stat-item .stat-label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

#bio { background: var(--text); color: var(--bg); }
#bio .section-label { color: var(--tan-deep); }
#bio .section-label::before { background: var(--tan-deep); }
#bio .section-heading { color: var(--bg); }
#bio .section-heading em { color: var(--tan-deep); }
.bio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: start; }
.bio-text { font-size: 1.125rem; line-height: 1.8; color: rgba(249, 248, 245, 0.7); margin-bottom: 1.5rem; }
.bio-text strong { color: var(--bg); font-weight: 700; }
.bio-aside { padding-top: 1rem; }
.bio-pull-quote {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic; line-height: 1.4; color: var(--tan-deep);
  margin-bottom: 2.5rem; padding-left: 1.5rem; border-left: 2px solid var(--accent);
}
.bio-detail-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.bio-detail-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.5rem; border: 1px solid rgba(249, 248, 245, 0.08);
  border-radius: var(--radius-sm); transition: border-color 0.3s ease;
}
.bio-detail-item:hover { border-color: rgba(249, 248, 245, 0.2); }
.bio-detail-icon {
  width: 2rem; height: 2rem; flex-shrink: 0; background: rgba(215, 51, 1, 0.15);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.bio-detail-icon svg { color: var(--accent); }
.bio-detail-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(249, 248, 245, 0.35); margin-bottom: 0.25rem; }
.bio-detail-value { font-size: 0.9375rem; font-weight: 500; color: var(--bg); }

#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.skill-card-icon {
  width: 2.5rem; height: 2.5rem; background: var(--tan); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.skill-card-icon svg { color: var(--accent); }
.skill-card-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.skill-tag {
  padding: 0.25rem 0.75rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
}

#personal { background: var(--tan); }
#personal .section-label { color: rgba(49, 49, 49, 0.4); }
.personal-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: center; }
.personal-heading {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 1.5rem;
}
.personal-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }
.personal-text { font-size: 1.0625rem; line-height: 1.8; color: rgba(49, 49, 49, 0.7); margin-bottom: 1.25rem; }
.personal-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.personal-fact {
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(49, 49, 49, 0.06);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
}
.personal-fact-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.375rem; }
.personal-fact-value { font-size: 0.9375rem; font-weight: 600; }

.about-cta-section { text-align: center; }
.about-cta-inner { max-width: 560px; margin: 0 auto; }
.about-cta-section .section-label { justify-content: center; }

/* ── About Responsive ── */
@media (max-width: 1024px) {
  .about-page-hero { grid-template-columns: 1fr; min-height: auto; padding: 9rem 2rem 4rem; gap: 3rem; }
  .portrait-wrap { order: -1; }
  .portrait-frame { width: 100%; max-width: 360px; height: 340px; }
  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .personal-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 768px) {
  .about-page-hero { padding: 8rem 1.5rem 3rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .personal-facts { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE (contact.html)
   ═══════════════════════════════════════════ */

.contact-page-bg { background: linear-gradient(to right, var(--text) 50%, var(--bg) 50%); }

.contact-page-bg .nav-logo { color: #fff; }
nav.scrolled .nav-logo { color: var(--text); }

.contact-page {
  min-height: 100dvh;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1400px; margin: 0 auto; padding-top: 0;
}
.contact-left {
  background: var(--text); color: var(--bg);
  padding: 10rem 4rem 5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: sticky; top: 0; height: 100dvh;
}
.contact-left-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--tan-deep); margin-bottom: 2.5rem;
}
.contact-label::before { content: ''; width: 2rem; height: 1.5px; background: var(--tan-deep); }
.contact-heading {
  font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 2rem; color: var(--bg);
}
.contact-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--tan-deep); }
.contact-intro { font-size: 1.0625rem; line-height: 1.7; color: rgba(249, 248, 245, 0.6); max-width: 380px; margin-bottom: 3rem; }
.contact-direct { display: flex; flex-direction: column; gap: 1rem; }
.contact-direct-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.125rem 1.5rem; border: 1px solid rgba(249, 248, 245, 0.1);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-direct-item:hover { border-color: rgba(249, 248, 245, 0.25); background: rgba(249, 248, 245, 0.04); }
.contact-direct-item--static { cursor: default; }
.contact-direct-icon {
  width: 2rem; height: 2rem; flex-shrink: 0;
  background: rgba(215, 51, 1, 0.15); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-direct-icon svg { color: var(--accent); }
.contact-direct-label { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(249, 248, 245, 0.35); margin-bottom: 0.2rem; }
.contact-direct-value { font-size: 0.9rem; font-weight: 500; color: var(--bg); }
.contact-footer-note { font-size: 0.8rem; color: rgba(249, 248, 245, 0.3); }

.contact-right { background: var(--bg); padding: 10rem 4rem 5rem; overflow-y: auto; }
.form-heading { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.form-subheading { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.875rem 1.125rem;
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 0.875rem;
  font-family: inherit; font-size: 0.9375rem; color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215, 51, 1, 0.08);
}
.form-textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A4A4A4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.125rem center; padding-right: 2.5rem;
}
.form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem 2.25rem; background: var(--accent); color: var(--bg);
  font-family: inherit; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: none; border-radius: 100px; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  width: 100%;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(215, 51, 1, 0.35); }
.form-submit:active { transform: translateY(0) scale(0.98); }
.form-submit svg { transition: transform 0.3s ease; }
.form-submit:hover svg { transform: translateX(4px); }

.form-error {
  padding: 0.875rem 1rem; background: rgba(215, 51, 1, 0.08); border: 1px solid rgba(215, 51, 1, 0.2);
  border-radius: 6px; color: var(--accent); font-size: 0.875rem; margin-bottom: 1rem;
}
.form-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.5rem; padding: 4rem 2rem;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 4rem; height: 4rem; background: rgba(215, 51, 1, 0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { color: var(--accent); }
.form-success h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.form-success p { font-size: 1rem; color: var(--text-muted); max-width: 300px; line-height: 1.6; }

/* ── Contact Responsive ── */
@media (max-width: 1024px) {
  .contact-page { grid-template-columns: 1fr; }
  .contact-left { position: static; height: auto; padding: 9rem 3rem 4rem; }
  .contact-right { padding: 4rem 3rem; }
}
@media (max-width: 768px) {
  .contact-left { padding: 8rem 1.5rem 3rem; }
  .contact-right { padding: 3rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   EXPERIENCE PAGE (experience.html)
   ═══════════════════════════════════════════ */

.exp-page-hero {
  padding-top: 12rem; padding-bottom: 5rem;
  max-width: 1440px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem;
}
.exp-page-hero .page-hero-desc { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); max-width: 560px; }

#timeline { background: var(--bg); }
.timeline-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 0 4rem; position: relative;
}
.timeline-layout::before {
  content: ''; position: absolute; left: 200px; top: 0; bottom: 0;
  width: 1px; background: var(--border); margin-left: -2rem;
}
.timeline-sidebar { padding-top: 0.5rem; position: sticky; top: 8rem; height: fit-content; }
.timeline-year-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.timeline-year { font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }
.timeline-entries { display: flex; flex-direction: column; gap: 2rem; }
.job-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
}
.job-card::before {
  content: ''; position: absolute; left: -2rem; top: 2.5rem;
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  transform: translateX(-3px); box-shadow: 0 0 0 3px var(--bg);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.job-company { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem; }
.job-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.375rem; flex-shrink: 0; }
.job-date {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  background: var(--bg); padding: 0.375rem 0.875rem; border: 1px solid var(--border); border-radius: 100px; white-space: nowrap;
}
.job-location { font-size: 0.75rem; color: var(--text-muted); }
.job-desc { font-size: 1rem; line-height: 1.7; color: rgba(49, 49, 49, 0.65); margin-bottom: 1.5rem; }
.job-highlights { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.75rem; }
.job-highlight { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.5; }
.job-highlight::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: 0.5rem; flex-shrink: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.job-tag { padding: 0.25rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; }
.current-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: rgba(215, 51, 1, 0.08); border: 1px solid rgba(215, 51, 1, 0.2);
  border-radius: 100px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.current-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

#opensource { background: var(--text); color: var(--bg); }
#opensource .section-label { color: var(--tan-deep); }
#opensource .section-label::before { background: var(--tan-deep); }
#opensource .section-heading { color: var(--bg); }
#opensource .section-heading em { color: var(--tan-deep); }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.os-card {
  padding: 2rem; border: 1px solid rgba(249, 248, 245, 0.08); border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.os-card:hover { border-color: rgba(249, 248, 245, 0.2); transform: translateY(-3px); }
.os-card-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; color: var(--bg); }
.os-card-desc { font-size: 0.9rem; line-height: 1.6; color: rgba(249, 248, 245, 0.55); margin-bottom: 1.25rem; }
.os-card-links { display: flex; gap: 0.75rem; }
.os-link {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tan-deep); display: inline-flex; align-items: center; gap: 0.375rem; transition: color 0.3s ease;
}
.os-link:hover { color: var(--accent); }

.exp-cta { text-align: center; }
.exp-cta-inner { max-width: 560px; margin: 0 auto; }
.exp-cta .section-label { justify-content: center; }

/* ── Experience Responsive ── */
@media (max-width: 1024px) {
  .exp-page-hero { padding: 10rem 2rem 4rem; }
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-layout::before { display: none; }
  .timeline-sidebar { position: static; padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
  .job-card::before { display: none; }
  .os-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .exp-page-hero { padding: 8rem 1.5rem 3rem; }
  .os-grid { grid-template-columns: 1fr; }
  .job-header { flex-direction: column; gap: 1rem; }
  .job-meta { align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   PORTFOLIO PAGE (portfolio.html)
   ═══════════════════════════════════════════ */

.portfolio-page-hero {
  padding-top: 12rem; padding-bottom: 3rem;
  max-width: 1440px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end;
}
.page-hero-right { padding-bottom: 0.5rem; }
.page-hero-desc { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2rem; }
.page-hero-meta { display: flex; gap: 2.5rem; }
.hero-meta-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.hero-meta-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

.section-divider { width: 100%; height: 1px; background: var(--border); }

#work.portfolio-work { padding-top: 5rem; padding-bottom: 8rem; }
.work-intro {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4rem; gap: 2rem; flex-wrap: wrap;
}
.work-intro-desc { font-size: 0.9375rem; color: var(--text-muted); max-width: 360px; line-height: 1.6; }

.project-grid { display: grid; gap: 2rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
  display: grid; grid-template-columns: 1fr 1fr;
}
.project-card--no-image { grid-template-columns: 1fr; }
.project-card--no-image:nth-child(even) { direction: ltr; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-card:nth-child(even) { direction: rtl; }
.project-card:nth-child(even) > * { direction: ltr; }
.project-preview {
  position: relative; overflow: hidden; min-height: 400px;
  background: linear-gradient(135deg, var(--tan), var(--tan-deep));
}
.project-preview-inner {
  position: absolute; inset: 2rem; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-card:hover .project-preview-inner { transform: scale(1.03); }
.project-preview-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.project-number { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1.5rem; }
.project-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.project-description { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tech-tag {
  padding: 0.375rem 0.875rem; background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.project-card:hover .tech-tag { border-color: rgba(215, 51, 1, 0.15); }
.project-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); transition: gap 0.3s ease;
}
.project-link:hover { gap: 0.875rem; }
.project-link svg { transition: transform 0.3s ease; }
.project-link:hover svg { transform: translateX(2px); }
.project-link--version { color: var(--text-muted); font-size: 0.75rem; }

.project-versions { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.version-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tan-deep); transition: background 0.3s ease; }
.version-dot.active { background: var(--accent); }
.version-label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.project-link-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.upcoming-card {
  background: var(--bg-card); border: 1px dashed rgba(49, 49, 49, 0.15);
  border-radius: var(--radius); padding: 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.upcoming-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.upcoming-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.875rem; }
.upcoming-desc { font-size: 0.9375rem; line-height: 1.7; color: var(--text-muted); max-width: 480px; }
.upcoming-right { flex-shrink: 0; }
.upcoming-dots { display: flex; gap: 0.625rem; }
.upcoming-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.upcoming-dot.accent { background: rgba(215, 51, 1, 0.25); }

#approach { background: var(--text); color: var(--bg); padding: 6rem 0; }
.approach-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.approach-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--tan-deep); margin-bottom: 1.5rem;
}
.approach-label::before { content: ''; width: 1.5rem; height: 1.5px; background: var(--tan-deep); }
.approach-heading { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; color: var(--bg); }
.approach-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--tan-deep); }
.approach-steps { display: flex; flex-direction: column; gap: 0; }
.approach-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid rgba(249, 248, 245, 0.08); transition: border-color 0.3s ease;
}
.approach-step:last-child { border-bottom: none; }
.approach-step:hover { border-color: rgba(249, 248, 245, 0.2); }
.approach-step-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); padding-top: 0.2rem; }
.approach-step-title { font-size: 1rem; font-weight: 700; color: var(--bg); margin-bottom: 0.5rem; }
.approach-step-desc { font-size: 0.9rem; line-height: 1.6; color: rgba(249, 248, 245, 0.5); }

/* ── Portfolio Responsive ── */
@media (max-width: 1024px) {
  .portfolio-page-hero { grid-template-columns: 1fr; padding: 10rem 2rem 3rem; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { direction: ltr; }
  .project-preview { min-height: 280px; }
  .approach-inner { grid-template-columns: 1fr; gap: 3rem; }
  .upcoming-card { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .portfolio-page-hero { padding: 8rem 1.5rem 3rem; }
  .project-info { padding: 2rem; }
  .page-hero-meta { gap: 1.5rem; }
  .upcoming-card { padding: 2rem; }
}

/* ═══════════════════════════════════════════
   BLOG INDEX (blog/index.html)
   ═══════════════════════════════════════════ */

.blog-hero {
  padding-top: 12rem; padding-bottom: 5rem;
  max-width: 1440px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end;
}
.blog-hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2rem;
}
.blog-hero-label::before { content: ''; width: 2rem; height: 1.5px; background: var(--accent); }
.blog-hero h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.blog-hero h1 em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.blog-hero-desc { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2rem; }
.blog-stats { display: flex; gap: 2rem; }
.blog-stat-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.blog-stat-label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

.featured-post {
  background: var(--text); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.featured-post-link { display: block; text-decoration: none; }
.featured-post-visual {
  background: linear-gradient(135deg, var(--tan), var(--tan-deep));
  min-height: 380px; position: relative; overflow: hidden;
}
.featured-post-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.featured-post-visual-inner {
  position: absolute; inset: 2rem; background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.featured-post-visual-text {
  font-family: 'Cabinet Grotesk', sans-serif; font-size: 3rem; font-weight: 700; font-style: normal;
  color: rgba(49, 49, 49, 0.18); line-height: 1.1; text-align: center; padding: 1.5rem;
}
.featured-post-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; color: var(--bg); }
.featured-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tan-deep); margin-bottom: 1.5rem;
}
.featured-badge::before { content: ''; width: 1.25rem; height: 1.5px; background: var(--tan-deep); }
.post-category {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: rgba(215, 51, 1, 0.15); color: var(--accent);
  border-radius: 100px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.featured-post-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1rem; color: var(--bg);
}
.featured-post-excerpt { font-size: 1rem; line-height: 1.7; color: rgba(249, 248, 245, 0.6); margin-bottom: 2rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.post-date, .post-read-time {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(249, 248, 245, 0.4);
}
.post-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(249, 248, 245, 0.25); }
.post-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tan-deep); transition: gap 0.3s ease, color 0.3s ease;
}
.post-link:hover { gap: 0.875rem; color: var(--accent); }
.post-link svg { transition: transform 0.3s ease; }
.post-link:hover svg { transform: translateX(2px); }

.category-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.category-btn {
  padding: 0.375rem 1rem; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 100px;
  font-family: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.category-btn:hover, .category-btn.active {
  border-color: var(--accent); color: var(--accent); background: rgba(215, 51, 1, 0.04);
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-visual {
  height: 180px; background: linear-gradient(135deg, var(--tan), var(--tan-deep));
  position: relative; overflow: hidden; flex-shrink: 0;
}
.post-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Per-post visual backgrounds */
.post-grid .post-card:nth-child(1) .post-card-visual { background: linear-gradient(135deg, #e8f4f0, #b8ddd6); }
.post-grid .post-card:nth-child(2) .post-card-visual { background: linear-gradient(135deg, #f0e8f4, #d6b8dd); }
.post-grid .post-card:nth-child(3) .post-card-visual { background: linear-gradient(135deg, #f4f0e8, #ddd6b8); }
.post-grid .post-card:nth-child(4) .post-card-visual { background: linear-gradient(135deg, var(--tan), var(--tan-deep)); }
.post-grid .post-card:nth-child(5) .post-card-visual { background: linear-gradient(135deg, #e8eef4, #b8c8dd); }
.post-grid .post-card:nth-child(6) .post-card-visual { background: linear-gradient(135deg, #f4e8e8, #ddb8b8); }
.post-grid .post-card:nth-child(7) .post-card-visual { background: linear-gradient(135deg, #e8f4e8, #b8ddb8); }
.post-grid .post-card:nth-child(8) .post-card-visual { background: linear-gradient(135deg, #f0f4e8, #d6ddb8); }
.post-grid .post-card:nth-child(9) .post-card-visual { background: linear-gradient(135deg, #f4eee8, #ddceb8); }
.post-card-visual-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cabinet Grotesk', sans-serif; font-size: 1.5rem; font-style: normal;
  color: rgba(49, 49, 49, 0.18); font-weight: 700; line-height: 1.1; text-align: center; padding: 1rem;
}
.post-card-content { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-card-category { margin-bottom: 0.875rem; }
.post-card-category span {
  display: inline-block; padding: 0.2rem 0.625rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.post-card-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.75rem; flex: 1; }
.post-card-excerpt { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1.5rem; }
.post-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto;
}
.post-card-date { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.post-card-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); transition: gap 0.3s ease;
}
.post-card-link:hover { gap: 0.625rem; }
.post-card-link svg { transition: transform 0.3s ease; }
.post-card-link:hover svg { transform: translateX(2px); }

/* ── Blog Index Responsive ── */
@media (max-width: 1024px) {
  .blog-hero { grid-template-columns: 1fr; padding: 10rem 2rem 4rem; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-visual { min-height: 240px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-hero { padding: 8rem 1.5rem 3rem; }
  .post-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   BLOG ARTICLE (blog/elementor-vs-bricks.html)
   ═══════════════════════════════════════════ */

.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; background: var(--accent); width: 0%; transition: width 0.1s linear;
}
.article-hero {
  padding-top: 10rem; padding-bottom: 4rem;
  max-width: 1440px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2.5rem; transition: color 0.3s ease, gap 0.3s ease;
}
.back-link:hover { color: var(--accent); gap: 0.75rem; }
.back-link svg { transition: transform 0.3s ease; }
.back-link:hover svg { transform: translateX(-3px); }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.article-category {
  display: inline-block; padding: 0.25rem 0.875rem;
  background: rgba(215, 51, 1, 0.08); color: var(--accent);
  border: 1px solid rgba(215, 51, 1, 0.2);
  border-radius: 100px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.article-date, .article-read-time { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.article-title {
  font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.5rem; max-width: 900px;
}
.article-title em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; color: var(--accent); }
.article-lede { font-size: 1.25rem; line-height: 1.7; color: var(--text-muted); max-width: 680px; }

.article-layout {
  display: grid; grid-template-columns: 1fr 260px; gap: 5rem;
  max-width: 1440px; margin: 0 auto; padding: 0 3rem 8rem; align-items: start;
}
.article-body { max-width: 680px; }
.article-divider { width: 3rem; height: 2px; background: var(--accent); margin: 3rem 0; }
.article-body h2 {
  font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.2; margin-top: 3rem; margin-bottom: 1.25rem;
}
.article-body h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; margin-top: 2rem; margin-bottom: 0.875rem;
}
.article-body p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.375rem; }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.375rem; }
.article-body li { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 0.5rem; }
.article-body blockquote { border-left: 2px solid var(--accent); padding-left: 1.5rem; margin: 2.5rem 0; }
.article-body blockquote p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.375rem;
  font-style: italic; line-height: 1.5; color: var(--text); margin-bottom: 0;
}
.article-body code {
  font-family: 'Courier New', monospace; font-size: 0.875em;
  background: rgba(49, 49, 49, 0.05); padding: 0.15em 0.4em;
  border-radius: 0.25rem; border: 1px solid var(--border);
}

.article-callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 1.5rem; margin: 2.5rem 0;
}
.article-callout-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.article-callout p { font-size: 0.9375rem; color: rgba(49, 49, 49, 0.8); margin-bottom: 0; }

.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.9375rem; }
.comparison-table th {
  padding: 0.875rem 1rem; text-align: left;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.comparison-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .feature { font-weight: 600; }
.comparison-table .win { color: #2d7a4f; font-weight: 600; }
.comparison-table .neutral { color: var(--text-muted); }

.article-sidebar { position: sticky; top: 7rem; }
.sidebar-toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-toc-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}
.sidebar-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-toc a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted); display: block;
  padding: 0.25rem 0; border-left: 2px solid transparent; padding-left: 0.75rem;
  transition: all 0.3s ease;
}
.sidebar-toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.sidebar-about { background: var(--text); border-radius: var(--radius-sm); padding: 1.5rem; color: var(--bg); }
.sidebar-about-name { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; }
.sidebar-about-bio { font-size: 0.8125rem; line-height: 1.6; color: rgba(249, 248, 245, 0.55); margin-bottom: 1.25rem; }
.sidebar-about-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tan-deep); transition: color 0.3s ease;
}
.sidebar-about-link:hover { color: var(--accent); }

.author-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  display: flex; gap: 2rem; align-items: flex-start; margin-top: 5rem;
}
.author-avatar {
  width: 4rem; height: 4rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tan), var(--tan-deep));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; color: rgba(49, 49, 49, 0.4);
}
.author-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.author-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.author-bio { font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); }

.related-section { padding: 5rem 0; }
.related-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.related-label::before { content: ''; width: 1.5rem; height: 1.5px; background: var(--text-muted); }
.related-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1;
}
.related-heading em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.related-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.75rem; display: flex; flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-cat { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.related-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; flex: 1; }
.related-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-top: 1.25rem; transition: gap 0.3s ease; }
.related-link:hover { gap: 0.625rem; }

/* ── Article Responsive ── */
@media (max-width: 1024px) {
  .article-hero { padding: 9rem 2rem 3rem; }
  .article-layout { grid-template-columns: 1fr; gap: 0; padding: 0 2rem 5rem; }
  .article-sidebar { position: static; margin-top: 3rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-hero { padding: 8rem 1.5rem 3rem; }
  .article-layout { padding: 0 1.5rem 4rem; }
  .author-block { flex-direction: column; gap: 1.25rem; padding: 1.75rem; }
  .related-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8125rem; }
}
