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

/* ─── DESIGN TOKENS ─── */
:root {
  --bg-primary:   #FFFFFF;
  --bg-surface:   #F5F9F2;
  --bg-card:      #FFFFFF;
  --bg-dark:      #1A1F2E;

  --accent-lime:  #a7e662;
  --accent-blue:  #7dafe0;
  --accent-mint:  #81e293;

  --lime-tint:    rgba(167, 230, 98,  0.12);
  --blue-tint:    rgba(125, 175, 224, 0.12);
  --mint-tint:    rgba(129, 226, 147, 0.12);
  --lime-border:  rgba(167, 230, 98,  0.35);
  --blue-border:  rgba(125, 175, 224, 0.35);

  --text-primary: #1A1F2E;
  --text-muted:   #5A6478;
  --text-dim:     #B0BAC8;

  --border:       #E8EDF2;
  --border-dark:  #D0D9E4;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  --bp-sm:  480px;
  --bp-md:  768px;
  --bp-lg:  1024px;
  --bp-xl:  1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── CUSTOM CURSOR ─── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent-lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 200ms ease, height 200ms ease;
}
.cursor--hover {
  width: 20px;
  height: 20px;
}

/* ─── FOCUS STYLES ─── */
:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 3px;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ─── REVEAL ANIMATION ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .reveal[data-delay="100"] { transition-delay: 100ms; }
  .reveal[data-delay="150"] { transition-delay: 150ms; }
  .reveal[data-delay="200"] { transition-delay: 200ms; }
  .reveal[data-delay="250"] { transition-delay: 250ms; }
  .reveal[data-delay="300"] { transition-delay: 300ms; }
  .reveal[data-delay="350"] { transition-delay: 350ms; }
  .reveal[data-delay="400"] { transition-delay: 400ms; }
  .reveal[data-delay="450"] { transition-delay: 450ms; }
  .reveal[data-delay="500"] { transition-delay: 500ms; }
}

/* ─── BLOB MORPH ─── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes blob-morph {
    0%   { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; transform: scale(1); }
    100% { border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%; transform: scale(1.05); }
  }
  @keyframes spin-cw  { to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes spin-ccw { to { transform: translate(-50%, -50%) rotate(-360deg); } }
}


/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  box-shadow: 0 1px 0 var(--border);
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 300ms ease;
}
.nav--hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 200ms ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-lime);
  transition: width 200ms ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent-lime);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  cursor: pointer;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--lime-border);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
  padding: var(--space-xl) 3rem;
  padding-top: calc(var(--space-xl) + 80px);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* Dot grid texture */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-blob--lime {
    width: 500px; height: 500px;
    background: var(--lime-tint);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    filter: blur(60px);
    top: -100px; right: -80px;
    animation: blob-morph 10s ease-in-out infinite alternate;
  }
  .hero-blob--blue {
    width: 400px; height: 400px;
    background: var(--blue-tint);
    border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
    filter: blur(50px);
    top: 20%; left: -60px;
    animation: blob-morph 12s ease-in-out infinite alternate-reverse;
  }
  .hero-blob--mint {
    width: 300px; height: 300px;
    background: var(--mint-tint);
    border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%;
    filter: blur(40px);
    bottom: 0; left: 40%;
    animation: blob-morph 9s ease-in-out infinite alternate;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
}
.hero-headline .period { color: var(--accent-lime); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-top: 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-lime);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--lime-border);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--accent-blue);
  border-radius: 100px;
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn-secondary:hover {
  border-color: var(--accent-mint);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.stat-pill {
  background: white;
  border: 1.5px solid var(--border-dark);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.stat-pill .arrow-down { color: var(--accent-lime); }
.stat-pill .arrow-up   { color: var(--accent-mint); }

/* ── Hero Phone Mockup ── */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: rotate(3deg);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes phone-float {
    0%, 100% { transform: rotate(3deg) translateY(0px); }
    50%       { transform: rotate(3deg) translateY(-12px); }
  }
  .hero-phone {
    animation: phone-float 4s ease-in-out infinite;
  }
}

.phone-frame {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  background: var(--text-primary);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ════════════════════════════════════════
   TICKER
════════════════════════════════════════ */
.ticker-wrapper {
  overflow: hidden;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  will-change: transform;
}

.ticker-content {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding-right: 3rem;
  flex-shrink: 0;
}

.ticker-content .star {
  color: var(--accent-lime);
}

/* ════════════════════════════════════════
   PROBLEM
════════════════════════════════════════ */
#problem {
  background: var(--bg-primary);
  padding: var(--space-xl) 3rem;
}

.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.problem-headline em {
  font-style: italic;
  color: var(--accent-lime);
}

.problem-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
}
.problem-body p + p { margin-top: 1.25rem; }

/* Campaign Results Dashboard */
.results-dashboard {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 480px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dashboard-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--lime-tint);
  color: var(--accent-lime);
  border: 1px solid var(--lime-border);
  padding: 3px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.dashboard-rows {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.d-metric-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.d-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.d-bar {
  height: 6px;
  border-radius: 100px;
  width: 0;
  transition: width 1s ease;
}

.results-dashboard.is-visible .d-bar {
  width: var(--w);
}

.d-bar--before {
  background: var(--border-dark);
  opacity: 0.6;
}

.d-bar--after {
  background: var(--accent-lime);
}

.d-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.d-before {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.d-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.d-delta--up   { color: var(--accent-lime); }
.d-delta--down { color: var(--accent-blue); }

.dashboard-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  bottom: -20px;
  opacity: 0;
}

/* Hero particles — solid colors, visible sizes */
#hero .particle:nth-child(1)  { width:10px; height:10px; left:5%;   background: var(--accent-lime); }
#hero .particle:nth-child(2)  { width:7px;  height:7px;  left:15%;  background: var(--accent-blue); }
#hero .particle:nth-child(3)  { width:12px; height:12px; left:25%;  background: var(--accent-mint); }
#hero .particle:nth-child(4)  { width:8px;  height:8px;  left:35%;  background: var(--accent-lime); }
#hero .particle:nth-child(5)  { width:6px;  height:6px;  left:45%;  background: var(--accent-blue); }
#hero .particle:nth-child(6)  { width:10px; height:10px; left:55%;  background: var(--accent-mint); }
#hero .particle:nth-child(7)  { width:7px;  height:7px;  left:65%;  background: var(--accent-lime); }
#hero .particle:nth-child(8)  { width:9px;  height:9px;  left:72%;  background: var(--accent-blue); }
#hero .particle:nth-child(9)  { width:6px;  height:6px;  left:80%;  background: var(--accent-mint); }
#hero .particle:nth-child(10) { width:8px;  height:8px;  left:88%;  background: var(--accent-lime); }
#hero .particle:nth-child(11) { width:11px; height:11px; left:20%;  background: var(--accent-blue); }
#hero .particle:nth-child(12) { width:7px;  height:7px;  left:60%;  background: var(--accent-mint); }

/* CTA particles — white/translucent against dark bg */
#cta .particle { background: rgba(255,255,255,0.25); }
#cta .particle:nth-child(1) { width:10px; height:10px; left:10%;  }
#cta .particle:nth-child(2) { width:7px;  height:7px;  left:22%;  }
#cta .particle:nth-child(3) { width:9px;  height:9px;  left:38%;  }
#cta .particle:nth-child(4) { width:6px;  height:6px;  left:50%;  }
#cta .particle:nth-child(5) { width:11px; height:11px; left:62%;  }
#cta .particle:nth-child(6) { width:8px;  height:8px;  left:74%;  }
#cta .particle:nth-child(7) { width:7px;  height:7px;  left:83%;  }
#cta .particle:nth-child(8) { width:9px;  height:9px;  left:92%;  }

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
#about {
  background: var(--bg-surface);
  padding: var(--space-xl) 3rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-body p + p { margin-top: 1.25rem; }

.photo-frame {
  width: 300px;
  height: 300px;
  border: 3px solid var(--accent-lime);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  border-left: 1.5px dashed var(--border-dark);
}

.timeline-entry {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-surface);
  transform: translateX(-0.5px);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  margin-bottom: 0.25rem;
}
.timeline-company {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.timeline-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ════════════════════════════════════════
   RESULTS
════════════════════════════════════════ */
#results {
  background: var(--bg-primary);
  padding: var(--space-xl) 3rem;
}

.results-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.results-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.results-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent-lime);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}
.metric-card:hover {
  border-color: var(--accent-lime);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--lime-tint);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  color: var(--accent-lime);
  line-height: 1;
}
.metric-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.5rem;
}
.metric-context {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.4rem;
}

/* ── SELECTED WORK ─────────────────────────────────── */

#work {
  background: var(--bg-surface);
  padding: var(--space-xl) var(--space-md);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Card */
.work-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-lime);
  box-shadow: 0 16px 40px var(--lime-tint);
}

a.work-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.work-card .work-card-body::after {
  content: 'View Post ↗';
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  opacity: 0.6;
  transition: opacity 200ms ease;
}

a.work-card:hover .work-card-body::after {
  opacity: 1;
}

/* Image area */
.work-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.03);
}

/* Placeholder shown when image is missing or errors */
.work-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lime-tint) 0%, var(--blue-tint) 100%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
  /* Hidden by default — shown only when img errors via onerror */
  pointer-events: none;
}

/* When img loads successfully, hide placeholder */
.work-card-image img[src]:not([src=""]) + .work-card-placeholder {
  display: none;
}

/* Card body */
.work-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Tags row */
.work-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.work-tag--category {
  background: var(--blue-tint);
  color: var(--accent-blue);
  border: 1px solid var(--blue-border);
}

.work-tag--client {
  background: var(--lime-tint);
  color: var(--text-primary);
  border: 1px solid var(--lime-border);
  font-weight: 500;
}

.work-tag--confidential {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Title */
.work-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

/* Description */
.work-card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Result pills */
.work-card-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.work-result {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 500;
}

.work-result--up {
  background: var(--lime-tint);
  color: var(--text-primary);
  border: 1px solid var(--lime-border);
}

.work-result--down {
  background: var(--blue-tint);
  color: var(--accent-blue);
  border: 1px solid var(--blue-border);
}

/* Responsive */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card-title {
    font-size: 18px;
  }
}

/* ── END SELECTED WORK ─────────────────────────────── */

/* ════════════════════════════════════════
   PROCESS
════════════════════════════════════════ */
#process {
  background: var(--bg-surface);
  padding: var(--space-xl) 3rem;
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 3rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  border-top: 3px solid transparent;
  transition: border-top-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.step-card--lime:hover  { border-top-color: var(--accent-lime); }
.step-card--blue:hover  { border-top-color: var(--accent-blue); }
.step-card--mint:hover  { border-top-color: var(--accent-mint); }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.step-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.step-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   SKILLS
════════════════════════════════════════ */
#skills {
  background: var(--bg-primary);
  padding: var(--space-xl) 3rem;
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.skills-table { width: 100%; }

.skill-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-row:last-child { border-bottom: none; }

.skill-category {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  min-width: 160px;
  flex-shrink: 0;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: default;
}
.pill:hover {
  background: var(--lime-tint);
  border-color: var(--accent-lime);
  color: var(--text-primary);
}

/* ════════════════════════════════════════
   EXPERIENCE
════════════════════════════════════════ */
#experience {
  background: var(--bg-surface);
  padding: var(--space-xl) 3rem;
}

.experience-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.experience-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 3rem;
}

.exp-timeline {
  position: relative;
  padding-left: 2rem;
}
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.exp-entry {
  position: relative;
  margin-bottom: 3rem;
}
.exp-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-surface);
  transform: translateX(1px);
}

.exp-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--blue-tint);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}
.exp-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.exp-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.exp-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent-mint);
  line-height: 1.7;
}

/* Certifications */
.certs-section { margin-top: 4rem; }
.certs-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.cert-card {
  display: block;
  text-decoration: none;
  background: white;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  transition: all 250ms ease;
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--accent-lime);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--lime-tint);
}

.cert-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: var(--lime-tint);
  border: 1.5px solid var(--lime-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-lime);
  flex-shrink: 0;
}

.cert-arrow {
  font-size: 20px;
  color: var(--accent-blue);
  opacity: 0.5;
  transition: opacity 200ms ease, transform 200ms ease;
  line-height: 1;
}

.cert-card:hover .cert-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.cert-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.cert-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   CTA (DARK ISLAND)
════════════════════════════════════════ */
#cta {
  background: var(--bg-dark);
  padding: var(--space-xl) 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CTA gradient mesh blobs */
@media (prefers-reduced-motion: no-preference) {
  .cta-blob {
    position: absolute;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
  }
  .cta-blob--lime {
    width: 400px; height: 400px;
    background: rgba(167, 230, 98, 0.08);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    top: -50px; left: -80px;
    animation: blob-morph 12s ease-in-out infinite alternate;
  }
  .cta-blob--blue {
    width: 350px; height: 350px;
    background: rgba(125, 175, 224, 0.08);
    border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%;
    top: -30px; right: -60px;
    animation: blob-morph 10s ease-in-out infinite alternate-reverse;
  }
  .cta-blob--mint {
    width: 300px; height: 300px;
    background: rgba(129, 226, 147, 0.08);
    border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%;
    bottom: -40px; left: 50%;
    transform: translateX(-50%);
    animation: blob-morph 9s ease-in-out infinite alternate;
  }
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-mint);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-body {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--accent-lime);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-cta-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(167, 230, 98, 0.4);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 16px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-cta-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}
.trust-signals .check { color: var(--accent-mint); }
.trust-sep { opacity: 0.3; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 900;
  color: white;
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 200ms ease;
}
.footer-link:hover { color: var(--accent-lime); }

.footer-contact {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.9;
  text-align: right;
}
.footer-contact a { transition: color 200ms ease; }
.footer-contact a:hover { color: var(--accent-lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════
   HERO LOAD ANIMATIONS
════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  .hero-anim { animation: hero-slide-up 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-anim--0   { animation-delay: 0ms; }
  .hero-anim--150 { animation-delay: 150ms; }
  .hero-anim--300 { animation-delay: 300ms; }
  .hero-anim--450 { animation-delay: 450ms; }
}

/* ════════════════════════════════════════
   RESPONSIVE — TABLET (768px)
════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }

  #hero { padding: 6rem 1.5rem var(--space-lg); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-phone { display: none; }
  .hero-headline { font-size: clamp(44px, 10vw, 64px); }

  .problem-inner  { grid-template-columns: 1fr; gap: 3rem; }
  .about-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .metrics-grid   { grid-template-columns: repeat(2, 1fr); }
  .process-grid   { grid-template-columns: repeat(2, 1fr); }

  #problem, #about, #results, #work, #process, #skills, #experience, #cta {
    padding: var(--space-lg) 1.5rem;
  }

  .skill-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .skill-category { min-width: auto; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { text-align: left; }
  .footer-links { align-items: flex-start; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (480px)
════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav-links { display: none; }

  .metrics-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }

  .trust-signals {
    flex-direction: column;
    gap: 0.5rem;
  }
  .trust-sep { display: none; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-cta-primary, .btn-cta-secondary { width: 100%; justify-content: center; }

  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .stat-pill { font-size: 11px; }

  .photo-frame { width: 100%; max-width: 300px; }

  .exp-timeline { padding-left: 1.5rem; }

  .certs-grid { grid-template-columns: 1fr; }
}

/* Section containers common max-width */
.section-header { margin-bottom: 2rem; }
