/* ============================================================
   ROOT / TOKENS — black + green, dark developer theme
   ============================================================ */
:root {
  --bg: #0A0A0A;
  --bg-alt: #101010;
  --surface: #151513;
  --surface-2: #1C1C19;
  --ink: #F6F4EC;
  --muted: #9C9A90;
  --muted-dim: #6E6C63;
  --line: rgba(246,244,236,0.10);
  --line-strong: rgba(246,244,236,0.18);

  --green: #3ECF8E;
  --green-bright: #7CF2B4;
  --green-dim: #1E7A52;
  --green-soft: rgba(62,207,142,0.13);
  --green-soft-strong: rgba(62,207,142,0.22);
  --on-green: #08140F;

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1240px;
  --edge: clamp(1.25rem, 4vw, 4rem);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 26px 70px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(62,207,142,0.18), 0 20px 50px rgba(62,207,142,0.09);
}

/* ============================================================
   GLOBAL
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
::selection { background: var(--green); color: var(--on-green); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

section { position: relative; padding: clamp(4.5rem, 8vw, 8rem) var(--edge); }
main { display: block; }

.text-green { color: var(--green); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--green); display: inline-block; }

.section-head { max-width: 760px; margin: 0 auto 3.4rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- grain texture overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor glow (desktop only) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,207,142,0.11) 0%, rgba(62,207,142,0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s ease;
}
.cursor-glow.active { opacity: 1; }
@media (max-width: 900px), (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(62,207,142,0.30); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--green-dim), var(--green-bright)); }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,0.2); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--edge);
}
.nav-mark { display: flex; align-items: center; gap: 0.6rem; }
.nav-mark-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--green); color: var(--on-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 800;
}
.nav-mark-text { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }
.nav-links { display: flex; gap: 1.7rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.25s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--green); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: all 0.3s var(--ease);
}
.nav-icon-btn svg { width: 16px; height: 16px; }
.nav-icon-btn:hover { color: var(--on-green); background: var(--green); border-color: var(--green); }
.nav-cta { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: none; border: none; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease); margin: 0 auto; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--green); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--green); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2rem; padding: var(--edge);
  transform: translateY(-100%); opacity: 0;
  transition: all 0.4s var(--ease);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.2rem; }
.mobile-menu nav a { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.8rem; }
.mobile-menu nav a span { font-family: var(--font-mono); font-size: 0.9rem; color: var(--green); font-weight: 500; }
.mobile-menu-cta { align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(62,207,142,0.15) 0%, rgba(62,207,142,0) 65%);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 0.5rem 1.1rem; font-size: 0.8rem; font-weight: 500; color: var(--muted);
  margin-bottom: 1.7rem;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 3px var(--green-soft); } 50% { box-shadow: 0 0 0 7px rgba(62,207,142,0.06); } }
.hero-title { font-size: clamp(2.5rem, 5.2vw, 3.8rem); max-width: 16ch; margin-bottom: 1.5rem; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 46ch; margin-bottom: 2.3rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-stats { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--green); }
.hero-stat-label { font-size: 0.78rem; color: var(--muted); max-width: 16ch; }

.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.hero-card > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); filter: grayscale(15%) contrast(1.05); border: 1px solid var(--line); }
.hero-card-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.6rem 1.1rem 0.6rem 0.6rem;
  box-shadow: var(--shadow-md);
  animation: floatChip 5s ease-in-out infinite;
}
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-card-chip--top { top: 1.4rem; left: -1.6rem; padding-right: 1.3rem; animation-delay: 0s; }
.hero-card-chip--top img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chip-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.chip-sub { display: block; font-size: 0.72rem; color: var(--muted); }
.hero-card-chip--bottom { bottom: 1.6rem; right: -1.4rem; animation-delay: 1.6s; }
.chip-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.68rem;
}

.hero-scroll-cue { position: relative; z-index: 1; max-width: var(--container); margin: clamp(3rem,6vw,5rem) auto 0; display: flex; align-items: center; gap: 0.8rem; }
.hero-scroll-cue span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-dim); letter-spacing: 0.04em; }
.scroll-cue-line { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue-line i { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--green); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ============================================================
   LOGO STRIP / MARQUEE
   ============================================================ */
.logo-strip { max-width: none; padding-top: 3.2rem; padding-bottom: 3.2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip-label { text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 2.2rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(2.2rem, 5vw, 4.5rem); padding-right: clamp(2.2rem, 5vw, 4.5rem); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-group img { height: 30px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(2.2); opacity: 0.55; transition: opacity 0.3s; }
.marquee-group img:hover { opacity: 1; filter: grayscale(0%) brightness(1); }
.logo-strip-text { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted); opacity: 0.7; white-space: nowrap; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { max-width: var(--container); margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-visual { position: relative; }
.about-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; border: 1px solid var(--line); }
.about-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.05); transition: transform 0.6s var(--ease); }
.about-card:hover img { transform: scale(1.04); }
.about-social-chip {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.55rem;
  background: rgba(21,21,19,0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-md);
}
.about-social-chip svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green); color: var(--on-green); }

.about-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); font-weight: 500; margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); font-size: 1.03rem; margin-bottom: 1.1rem; max-width: 52ch; }
.about-check-list { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.6rem 0 1.8rem; }
.about-check-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.about-check-list svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; }
.about-social-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.about-social-btn {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: 0.6rem 1.2rem; border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.about-social-btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ============================================================
   STATS / ACHIEVEMENTS
   ============================================================ */
.stats { background: var(--bg-alt); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { max-width: var(--container); margin: 0 auto; }
.stats-head { max-width: 640px; margin-bottom: 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat-block { background: var(--bg-alt); padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; transition: background 0.35s var(--ease); }
.stat-block:hover { background: var(--surface); }
.stat-num { font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--ink); }
.stat-desc { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { max-width: var(--container); margin: 0 auto; }
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.service-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--green-dim); }
.service-index { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-dim); }
.service-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  background: var(--green-soft); color: var(--green);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   TOOLS / SKILLS
   ============================================================ */
.tools { max-width: var(--container); margin: 0 auto; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.tool-chip {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: 0.65rem 1.2rem; border-radius: 100px;
  transition: all 0.3s var(--ease); cursor: default;
}
.tool-chip:hover { color: var(--on-green); background: var(--green); border-color: var(--green); transform: translateY(-3px); }

/* ============================================================
   SKILLS (CATEGORIZED)
   ============================================================ */
.skills { max-width: var(--container); margin: 0 auto; }
.skills-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.skills-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.8rem; transition: border-color 0.35s var(--ease); }
.skills-group:hover { border-color: var(--green-dim); }
.skills-group-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.skills-group-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.skills-group-icon svg { width: 19px; height: 19px; }
.skills-group h3 { font-size: 1.05rem; }
.skills-chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.skills-chip-row span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 100px; transition: all 0.3s var(--ease); }
.skills-chip-row span:hover { color: var(--on-green); background: var(--green); border-color: var(--green); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-alt); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.projects .section-head, .projects .projects-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--green-dim); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--green); background: var(--green-soft); padding: 0.35rem 0.8rem; border-radius: 100px; }
.project-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-dim); }
.project-card h3 { font-size: 1.25rem; }
.project-card p { color: var(--muted); font-size: 0.94rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.project-stack li { font-size: 0.72rem; font-weight: 500; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 0.28rem 0.7rem; border-radius: 100px; }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy { background: var(--bg-alt); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philosophy-inner { max-width: var(--container); margin: 0 auto; text-align: center; }
.philosophy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 24ch; margin: 0 auto 3.2rem; }
.philosophy-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: left; }
.ph-step { border-top: 2px solid var(--green); padding-top: 1.1rem; }
.ph-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); font-weight: 500; }
.ph-step h4 { font-size: 1.1rem; margin: 0.5rem 0 0.3rem; }
.ph-step p { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   WORK
   ============================================================ */
.work { max-width: var(--container); margin: 0 auto; }
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--green-dim); }
.work-card-media {
  aspect-ratio: 16/11; overflow: hidden;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); filter: grayscale(20%) contrast(1.05); }
.work-card:hover .work-card-media img { transform: scale(1.05); }
.work-card-media--logo { padding: 2.4rem; background: linear-gradient(155deg, var(--green-soft), rgba(62,207,142,0.02)); }
.work-card-media--logo img { width: 100%; height: 100%; object-fit: contain; filter: none; }
.work-card-media--text {
  background: linear-gradient(155deg, var(--green-soft), rgba(62,207,142,0.02));
}
.work-card-media--text span {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  text-align: center; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--green);
}
.work-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.work-card-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); font-weight: 500; }
.work-card-body h3 { font-size: 1.25rem; }
.work-card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.work-card-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 0.6rem; }
.work-card-tags li { font-size: 0.7rem; font-weight: 500; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 0.3rem 0.7rem; border-radius: 100px; }
.work-card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.work-card-link .arrow { transition: transform 0.3s var(--ease); }
.work-card-link:hover { color: var(--green); }
.work-card-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { max-width: var(--container); margin: 0 auto; }
.testi-slider { position: relative; }
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.4rem; scrollbar-width: none; padding-bottom: 0.4rem; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; gap: 1.6rem;
  min-height: 260px; justify-content: space-between;
}
.testi-quote { width: 34px; height: 34px; color: var(--green); opacity: 0.85; }
.testi-card p { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: var(--ink); line-height: 1.45; max-width: 62ch; }
.testi-person { display: flex; align-items: center; gap: 0.9rem; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; flex: none; }
.testi-name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.testi-role { display: block; font-size: 0.8rem; color: var(--muted); }
.testi-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); border: none; cursor: pointer; transition: all 0.3s var(--ease); padding: 0; }
.testi-dot.active { background: var(--green); width: 22px; border-radius: 5px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-alt); max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process .section-head, .process .process-grid { max-width: var(--container); margin-left: auto; margin-right: auto; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.process-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--green-dim); }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green); color: var(--on-green);
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  margin-bottom: 1rem;
}
.process-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-card p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.3s var(--ease); }
.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: var(--green-dim); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--green); transition: transform 0.35s var(--ease); }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 1.6rem 1.5rem; color: var(--muted); font-size: 0.95rem; max-width: 65ch; }

/* ============================================================
   FOUNDER NOTE
   ============================================================ */
.founder-note { max-width: var(--container); margin: 0 auto; }
.founder-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-card-media { aspect-ratio: 4/5; }
.founder-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.05); }
.founder-card-copy { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.founder-card-copy .eyebrow { color: var(--green); }
.founder-card-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ink); margin-bottom: 1.2rem; }
.founder-card-copy p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; max-width: 46ch; }
.founder-final { color: var(--green) !important; font-weight: 600; font-size: 1.05rem !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { max-width: var(--container); margin: 0 auto; }
.contact-card {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(155deg, var(--green-soft-strong), rgba(62,207,142,0.02));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}
.contact-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: 1rem; }
.contact-sub { color: var(--muted); font-size: 1.05rem; max-width: 44ch; margin-bottom: 1.8rem; }
.contact-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.contact-details-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.contact-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.2rem; }
.contact-role { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.contact-details a { font-size: 0.92rem; font-weight: 500; transition: color 0.25s; }
.contact-details a:hover { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-alt); color: rgba(246,244,236,0.7); padding: clamp(3rem, 6vw, 4.5rem) var(--edge) 6rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.footer-mark { display: flex; align-items: center; gap: 0.6rem; }
.footer-mark-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: var(--on-green); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 0.75rem; font-weight: 800; }
.footer-mark-text { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; }
.footer-col-title { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--green); margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-copy { font-size: 0.8rem; color: rgba(246,244,236,0.35); padding-top: 1.6rem; border-top: 1px solid var(--line); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; right: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 2.2rem); z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: var(--on-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--green-bright); }
.back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
  .about-grid, .founder-card { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; margin: 0 auto; }
  .founder-card-media { aspect-ratio: 16/9; }
  .contact-card { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-groups { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 3.6rem var(--edge); }
  .nav-actions { gap: 0.6rem; }
  .nav-icon-btn { display: none; }
  .hero-title { max-width: 100%; }
  .hero-stats { gap: 1.4rem; }
  .hero-card-chip--top { left: 0.7rem; top: 0.9rem; }
  .hero-card-chip--bottom { right: 0.7rem; bottom: 0.9rem; }
  .about-social-chip { left: 0.8rem; bottom: 0.8rem; }
  .service-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .philosophy-steps { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .back-to-top { width: 42px; height: 42px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}
