/* ═══════════════════════════════════════════════
   JOEB ENGLATERA · PM + WEB DEVELOPER PORTFOLIO
   Primary: #8A9A5B  |  Accent: Lemon Faint Palette
═══════════════════════════════════════════════ */

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

:root {
  --sage:        #8A9A5B;
  --sage-dark:   #6b7a45;
  --sage-deep:   #4f5c33;
  --sage-light:  #b0c070;
  --sage-glow:   rgba(138,154,91,0.18);
  --lemon:       #f5f7e0;
  --lemon-soft:  #eef1c8;
  --lemon-mid:   #dde398;
  --lemon-gold:  #c9c478;
  --cream:       #fafaf5;
  --warm:        #f4f3ec;
  --parchment:   #e8e5d5;
  --charcoal:    #181a14;
  --deep:        #21231b;
  --coal:        #0f1009;
  --muted:       #6b6f5e;
  --mid:         #9a9e8c;
  --offwhite:    #f0eeea;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  cursor: default;
}

/* ─── NAV ──────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5rem;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(24, 26, 20, 0.96);
  backdrop-filter: blur(20px);
  padding: 0.9rem 5rem;
  border-bottom: 1px solid rgba(138,154,91,0.2);
}
.nav-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--lemon);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.8rem; list-style: none; }
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--lemon-mid); }
.nav-resume {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--sage);
  color: var(--sage-light);
  text-decoration: none;
  transition: all 0.3s;
}
.nav-resume:hover { background: var(--sage); color: var(--charcoal); }

/* ─── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--coal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-left {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 9rem 4.5rem 5.5rem;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.eyebrow-text {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 500;
}

.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 8vw, 8rem);
  letter-spacing: 0.05em;
  color: var(--offwhite);
  line-height: 0.92;
  margin-bottom: 0.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name .accent-name {
  color: var(--lemon-mid);
  display: block;
}

.hero-roles {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.role-chip {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
}
.role-chip.pm   { background: var(--sage); color: var(--charcoal); }
.role-chip.dev  { background: transparent; border: 1px solid rgba(221,227,152,0.4); color: var(--lemon-mid); }
.role-chip.think { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--mid); }

.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: rgba(240,238,234,0.55);
  line-height: 1.5;
  max-width: 460px;
  margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-tagline strong { color: var(--lemon-mid); font-style: normal; }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 1s forwards;
}
.btn-primary {
  padding: 0.85rem 2.2rem;
  background: var(--sage);
  color: var(--charcoal);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--sage-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(138,154,91,0.35); }
.btn-ghost {
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(240,238,234,0.2);
  color: rgba(240,238,234,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--lemon-mid); color: var(--lemon-mid); }
.btn-csv {
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.hero-right {
  position: relative; z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 2.5rem 2.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(138,154,91,0.14), transparent 45%),
    linear-gradient(180deg, rgba(15,16,9,0.65) 0%, rgba(15,16,9,0.2) 45%, rgba(15,16,9,0.7) 100%);
}
.hero-right::before {
  content: '';
  position: absolute;
  width: min(74vw, 470px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px dashed rgba(221,227,152,0.22);
  box-shadow: inset 0 0 0 1px rgba(138,154,91,0.12);
}
.hero-right img {
  width: min(66vw, 380px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
  border: 3px solid rgba(221,227,152,0.5);
  box-shadow: 0 24px 45px rgba(0,0,0,0.45), 0 0 0 14px rgba(138,154,91,0.12);
  background: #11140d;
  filter: grayscale(30%) contrast(1.08);
  position: relative;
  z-index: 1;
  opacity: 0; animation: fadeIn 1.4s 0.3s forwards;
}
.hero-img-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(15,16,9,0.6) 0%, rgba(15,16,9,0.1) 40%),
    linear-gradient(to top, rgba(138,154,91,0.12) 0%, transparent 50%);
}

.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(138,154,91,0.08);
  border-top: 1px solid rgba(138,154,91,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  opacity: 0; animation: fadeIn 1s 1.4s forwards;
}
.stat-pill {
  flex: 1;
  padding: 1.4rem 2rem;
  border-right: 1px solid rgba(138,154,91,0.15);
  text-align: center;
}
.stat-pill:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: var(--lemon-mid);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.2rem;
}

/* ─── SECTION BASE ──────────────────────────── */
.section { padding: 7rem 5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.s-tag {
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.s-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.08;
}
.s-title em { font-style: italic; color: var(--sage-dark); }
.s-title .block { display: block; }
.rule {
  width: 52px; height: 3px;
  background: var(--lemon-mid);
  margin: 1.4rem 0 2.2rem;
}

/* ─── ABOUT ─────────────────────────────────── */
#about { background: var(--warm); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: start;
  margin-top: 3rem;
}
.about-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.about-body p strong { color: var(--charcoal); font-weight: 600; }

.about-manifesto {
  margin: 2rem 0;
  padding: 1.6rem 2rem;
  border-left: 4px solid var(--sage);
  background: var(--lemon);
}
.about-manifesto p {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sage-deep);
  line-height: 1.6;
  margin: 0;
}

.creds-list { display: grid; gap: 0; }
.cred-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--parchment);
}
.cred-row:first-child { border-top: 1px solid var(--parchment); }
.cred-key {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}
.cred-val {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  text-align: right;
}

/* ─── PILLARS (Critical Thinking) ──────────── */
#pillars { background: var(--charcoal); }
#pillars .s-tag  { color: var(--lemon-mid); }
#pillars .s-title { color: var(--offwhite); }
#pillars .s-title em { color: var(--lemon-mid); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border: 1px solid rgba(138,154,91,0.15);
}
.pillar-card {
  padding: 2.8rem 2rem;
  border-right: 1px solid rgba(138,154,91,0.15);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.pillar-card:last-child { border-right: none; }
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lemon-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-card:hover { background: rgba(138,154,91,0.06); }
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}
.pillar-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(138,154,91,0.4);
  margin-bottom: 0.6rem;
}
.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--offwhite);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.pillar-desc {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(240,238,234,0.45);
  font-weight: 300;
}

/* ─── EXPERTISE ─────────────────────────────── */
#expertise { background: var(--lemon); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--parchment);
  margin-top: 3.5rem;
}
.exp-card {
  background: var(--lemon);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.3s;
}
.exp-card:hover { background: var(--lemon-soft); transform: translateY(-4px); }
.exp-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.03em;
  color: rgba(138,154,91,0.12);
  line-height: 1;
  position: absolute;
  top: 0.5rem; right: 1.2rem;
}
.exp-card-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.exp-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 0.9rem;
  line-height: 1.2;
}
.exp-card-desc {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

/* ─── PROJECTS ──────────────────────────────── */
#projects { background: var(--deep); }
#projects .s-tag { color: var(--lemon-mid); }
#projects .s-title { color: var(--offwhite); }
#projects .s-title em { color: var(--lemon-mid); }

.projects-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  margin-top: 3.5rem;
  background: rgba(138,154,91,0.1);
}
.proj-card {
  background: var(--deep);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}
.proj-card:hover { background: rgba(138,154,91,0.05); }
.proj-card.featured { grid-row: span 2; border-left: 4px solid var(--sage); }
.proj-chip {
  display: inline-block;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  margin-bottom: 1.4rem;
}
.proj-chip.cap  { background: var(--sage); color: var(--charcoal); }
.proj-chip.web  { border: 1px solid rgba(221,227,152,0.3); color: var(--lemon-mid); }
.proj-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--offwhite);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.proj-card:not(.featured) .proj-name { font-size: 1.2rem; }
.proj-desc {
  font-size: 0.86rem;
  line-height: 1.9;
  color: rgba(240,238,234,0.5);
  font-weight: 300;
  margin-bottom: 1.8rem;
}
.proj-role {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 700;
}
.proj-arrow {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 34px; height: 34px;
  border: 1px solid rgba(138,154,91,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  font-size: 0.9rem;
  transition: all 0.3s;
}
.proj-card:hover .proj-arrow { background: var(--sage); color: var(--charcoal); border-color: var(--sage); }

/* ─── SKILLS ─────────────────────────────────── */
#skills { background: var(--warm); }
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3rem;
}

.skill-category { margin-bottom: 2.5rem; }
.skill-cat-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--parchment);
}
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
}
.skill-dots {
  display: flex;
  gap: 5px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--parchment);
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
}
.dot.filled { background: var(--sage); border-color: var(--sage); }
.dot.half   { background: var(--lemon-mid); border-color: var(--lemon-mid); }

/* Pie chart area */
.chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.pie-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pie-svg-wrap { flex-shrink: 0; }
.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pie-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pie-leg-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.pie-leg-pct {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-left: auto;
  padding-left: 0.5rem;
}

/* ─── EXPERIENCE ─────────────────────────────── */
#experience { background: var(--cream); }
.timeline {
  margin-top: 3.5rem;
  display: grid;
  gap: 0;
}
.tl-item {
  display: grid;
  grid-template-columns: 100px 28px 1fr;
  gap: 0 1.5rem;
  padding-bottom: 3rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--sage);
  padding-top: 0.15rem;
  text-align: right;
}
.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-dot-outer {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tl-dot-inner {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.tl-line {
  flex: 1;
  width: 1px;
  background: var(--parchment);
  margin-top: 4px;
}
.tl-item:last-child .tl-line { display: none; }
.tl-content {}
.tl-role {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.tl-org {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.tl-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
}

/* ─── GOALS ──────────────────────────────────── */
#goals {
  background: var(--sage-deep);
  padding: 6rem 5rem;
  text-align: center;
}
#goals .s-tag { color: var(--lemon-mid); }
#goals .s-title { color: var(--offwhite); }
#goals .s-title em { color: var(--lemon-mid); }
#goals .rule { margin: 1.4rem auto 2.5rem; }

.goals-statement {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-style: italic;
  color: rgba(240,238,234,0.7);
  max-width: 750px;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.goals-statement strong { color: var(--lemon-mid); font-style: normal; }

.goals-pillars {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.goal-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.goal-pill-icon { font-size: 1.6rem; }
.goal-pill-text {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,238,234,0.5);
  font-weight: 600;
}

/* ─── EDUCATION ──────────────────────────────── */
#education { background: var(--lemon-soft); }
.edu-block {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0 2.5rem;
}
.edu-bar { background: var(--sage); border-radius: 2px; }
.edu-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.edu-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 1rem;
}
.edu-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
  max-width: 620px;
}

/* ─── CONTACT ─────────────────────────────────── */
#contact { background: var(--charcoal); }
#contact .s-tag { color: var(--lemon-mid); }
#contact .s-title { color: var(--offwhite); }
#contact .s-title em { color: var(--lemon-mid); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 3.5rem;
  align-items: start;
}
.contact-intro p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(240,238,234,0.5);
  font-weight: 300;
  margin-top: 1.5rem;
}
.contact-rows { margin-top: 2.5rem; display: grid; gap: 0; }
.c-row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(138,154,91,0.12);
}
.c-row:first-child { border-top: 1px solid rgba(138,154,91,0.12); }
.c-key {
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  min-width: 65px;
}
.c-val {
  font-size: 0.9rem;
  color: rgba(240,238,234,0.7);
}
.c-val a { color: inherit; text-decoration: none; transition: color 0.25s; }
.c-val a:hover { color: var(--lemon-mid); }

.contact-cta {
  background: rgba(138,154,91,0.06);
  border: 1px solid rgba(138,154,91,0.18);
  padding: 3rem;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--offwhite);
  margin-bottom: 0.8rem;
}
.cta-desc {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(240,238,234,0.45);
  font-weight: 300;
  margin-bottom: 2rem;
}
.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--sage);
  color: var(--charcoal);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-cta:hover { background: var(--sage-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(138,154,91,0.3); }

/* ─── CHAT ────────────────────────────────────── */
.chat-toggle {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 300;
  width: 52px; height: 52px;
  background: var(--sage);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(138,154,91,0.4);
  transition: background 0.3s, transform 0.3s;
}
.chat-toggle:hover { background: var(--sage-dark); transform: scale(1.05); }
.chat-toggle svg { width: 20px; height: 20px; stroke: var(--charcoal); }

.chat-panel {
  position: fixed; right: 2rem; bottom: 7rem; z-index: 299;
  width: 340px;
  background: var(--charcoal);
  border: 1px solid rgba(138,154,91,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.chat-panel.hidden { display: none; }

.chat-header {
  background: var(--deep);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(138,154,91,0.15);
}
.chat-header-info {}
.chat-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--offwhite);
}
.chat-header-sub {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lemon-mid);
  margin-top: 0.1rem;
}
.chat-close {
  background: none; border: none;
  color: rgba(240,238,234,0.4);
  font-size: 1rem; cursor: pointer;
  transition: color 0.2s;
}
.chat-close:hover { color: var(--offwhite); }

.chat-messages {
  height: 260px; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.message {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
}
.bot-message {
  background: rgba(138,154,91,0.12);
  border-left: 2px solid var(--sage);
  color: rgba(240,238,234,0.8);
}
.user-message {
  background: var(--sage);
  color: var(--charcoal);
  margin-left: auto;
  font-weight: 500;
}
.chat-form {
  padding: 0.7rem;
  border-top: 1px solid rgba(138,154,91,0.12);
}
.chat-send-row { display: flex; gap: 0.5rem; }
.chat-form input {
  flex: 1;
  background: rgba(240,238,234,0.06);
  border: 1px solid rgba(138,154,91,0.2);
  color: var(--offwhite);
  padding: 0.6rem 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}
.chat-form input::placeholder { color: rgba(240,238,234,0.25); }
.chat-form input:focus { border-color: var(--sage); }
.chat-form button {
  background: var(--sage);
  border: none;
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s;
}
.chat-form button:hover { background: var(--sage-light); }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--coal);
  padding: 2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(138,154,91,0.1);
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: rgba(240,238,234,0.25);
}
.footer-copy {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(240,238,234,0.2);
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 0.9rem 2rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 50vh; padding: 2.5rem 1.5rem 0; }
  .hero-right::before { width: min(78vw, 360px); }
  .hero-right img {
    width: min(72vw, 320px);
  }
  .hero-left { padding: 8rem 2rem 5rem; }
  .stat-pill { padding: 1rem; }
  .section { padding: 5rem 2rem; }
  .about-grid,
  .skills-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-row: auto; }
  .tl-item { grid-template-columns: 60px 22px 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  #goals { padding: 5rem 2rem; }
}
@media (max-width: 500px) {
  .hero-name { font-size: 4.2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
}
