/* ═══════════════════════════════════════════════════════════
   CodeStacker — Editorial Light Theme
   Inspired by: Linear, Stripe, Vercel, Mercury, Pitch
═══════════════════════════════════════════════════════════ */

:root {
  /* ─── Color System ─── */
  --bg: #fafaf7;
  --bg-elev: #ffffff;
  --bg-soft: #f4f1ec;
  --bg-tinted: #f7f4ee;

  --ink: #14110f;
  --ink-2: #2d2823;
  --ink-3: #4b4640;
  --ink-4: #6b6660;
  --ink-5: #8b8680;
  --ink-6: #a8a39c;

  --border: #ebe8e2;
  --border-soft: #f0ede7;
  --border-strong: #d8d4cc;

  --accent: #c8552c;
  --accent-2: #a04722;
  --accent-soft: #fcf4ef;

  --success: #4a7c4e;
  --success-bg: #eef5ee;
  --warn: #b8862e;
  --warn-bg: #fdf6e3;
  --danger: #b8492c;
  --danger-bg: #fdf0ec;
  --info: #2d6cb0;
  --info-bg: #eef4fb;

  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.04);
  --shadow: 0 2px 8px rgba(20, 17, 15, 0.06);
  --shadow-lg: 0 12px 36px rgba(20, 17, 15, 0.08);
  --shadow-xl: 0 30px 80px rgba(20, 17, 15, 0.12);

  /* ─── Type ─── */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* ─── Radius ─── */
  --r-sm: 6px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* ─── Layout ─── */
  --max: 1200px;
  --gutter: clamp(1.2rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--bg); }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01", "cv11";
  letter-spacing: -0.005em;
}

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

/* ─── Type Scale ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.02em; }

em { font-style: italic; color: var(--accent); font-weight: 500; }
strong { font-weight: 600; color: var(--ink); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: -0.02em; }

/* ─── Layout Helpers ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.container-wide { max-width: 1320px; }
.container-narrow { max-width: 880px; }

section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header p { color: var(--ink-4); font-size: 1.1rem; margin-top: 1rem; line-height: 1.55; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,17,15,0.18); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-soft { background: var(--bg-soft); color: var(--ink); }
.btn-soft:hover { background: var(--bg-tinted); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 247, 0.96);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-link {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 8px;
  transition: all 0.15s;
  position: relative;
  cursor: pointer;
}
.nav-link:hover { color: var(--ink); background: rgba(20,17,15,0.04); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-cta { display: flex; gap: 0.5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--border);
    align-items: stretch;
    gap: 0;
  }
  .nav.menu-open .nav-links .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1.05rem;
    text-align: left;
    border-radius: 0;
  }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 85, 44, 0.06) 0%, transparent 60%);
  filter: blur(60px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,17,15,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,17,15,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--success);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 124, 78, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(74, 124, 78, 0); }
}

.hero h1 { margin-bottom: 1.8rem; max-width: 14ch; }
.hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-3);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.hero-stat { padding: 0 1.5rem; border-left: 1px solid var(--border); }
.hero-stat:first-child { border-left: none; padding-left: 0; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--ink-4);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .hero-stat { padding: 0 1rem; }
  .hero-stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ═══════════════════════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════════════════════ */
.clients-section { padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-5);
  margin-bottom: 2.5rem;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 3rem;
  align-items: center;
  justify-items: center;
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink-5);
  opacity: 0.7;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.client-logo:hover { opacity: 1; color: var(--ink); }
.client-logo img { max-height: 32px; max-width: 130px; filter: grayscale(1); opacity: 0.55; transition: all 0.2s; }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-elev);
  padding: 2.2rem;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.service-card:hover { background: var(--bg-tinted); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}
.service-card:hover .service-icon { background: var(--ink); color: var(--bg); }
.service-card h4 { margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-4); font-size: 0.95rem; line-height: 1.6; }
.service-features {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-grow: 1;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--ink-3);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-features li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS / WORK
═══════════════════════════════════════════════════════════ */
.work-grid {
  display: grid;
  gap: 4rem;
}
.work-item {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-item:hover { transform: translateY(-6px); }
.work-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
}
.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-item:hover .work-image img { transform: scale(1.04); }
.work-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,17,15,0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.work-item:hover .work-image::after { opacity: 1; }

.work-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-5);
  margin-bottom: 0.8rem;
}
.work-meta-dot { width: 3px; height: 3px; background: var(--ink-5); border-radius: 50%; }
.work-item h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  transition: color 0.2s;
}
.work-item:hover h3 { color: var(--accent); }
.work-item p { color: var(--ink-4); font-size: 1rem; max-width: 60ch; line-height: 1.6; }

/* ─── Featured / 2-col layout ─── */
.work-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 760px) { .work-featured { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
  position: relative;
}
.process-step { position: relative; }
.process-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}
.process-step h4 { margin-bottom: 0.6rem; }
.process-step p { color: var(--ink-4); font-size: 0.95rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials-section { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.testimonial-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testimonial-rating { color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; letter-spacing: 0.1em; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 1.8rem;
  flex-grow: 1;
  font-weight: 400;
}
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.15rem; }
.testimonial-meta { font-size: 0.82rem; color: var(--ink-4); }

/* ═══════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}
.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.pricing-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricing-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; }
.pricing-tagline { color: var(--ink-4); font-size: 0.9rem; margin-bottom: 1.8rem; }
.pricing-card.featured .pricing-tagline { color: rgba(250,250,247,0.65); }
.pricing-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; margin-bottom: 0.3rem; letter-spacing: -0.03em; }
.pricing-period { font-size: 0.85rem; color: var(--ink-4); margin-bottom: 2rem; }
.pricing-card.featured .pricing-period { color: rgba(250,250,247,0.55); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; flex-grow: 1; }
.pricing-features li { padding: 0.55rem 0; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; }
.pricing-features i { color: var(--accent); margin-top: 0.25rem; font-size: 0.7rem; }
.pricing-card.featured .pricing-features i { color: var(--accent); }
.pricing-card .btn { width: 100%; margin-top: auto; }
.pricing-card.featured .btn-primary { background: var(--bg); color: var(--ink); }
.pricing-card.featured .btn-primary:hover { background: var(--bg-soft); }

/* ═══════════════════════════════════════════════════════════
   FAQs
═══════════════════════════════════════════════════════════ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  padding: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  background: none;
  border: none;
  line-height: 1.4;
}
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--ink-3);
  transition: all 0.2s;
  margin-top: 2px;
}
.faq-item.open .faq-toggle { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}
.faq-item.open .faq-a { max-height: 600px; margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   TEAM
═══════════════════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}
.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 1.2rem;
  filter: grayscale(0.2);
  transition: filter 0.3s;
}
.team-card:hover .team-photo { filter: grayscale(0); }
.team-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.2rem; }
.team-role { color: var(--accent); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.7rem; }
.team-bio { color: var(--ink-4); font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.9rem; }
.team-social { display: flex; gap: 0.5rem; }
.team-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-size: 0.78rem;
  transition: all 0.15s;
}
.team-social a:hover { background: var(--ink); color: var(--bg); }

/* ═══════════════════════════════════════════════════════════
   VALUES
═══════════════════════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
}
.value-item .value-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.value-item h4 { margin-bottom: 0.5rem; }
.value-item p { color: var(--ink-4); font-size: 0.95rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 3rem 2.5rem;
}
.blog-card { cursor: pointer; transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-4px); }
.blog-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 1.5rem;
  transition: transform 0.4s;
}
.blog-meta {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-5);
  margin-bottom: 0.7rem;
}
.blog-meta-dot { width: 3px; height: 3px; background: var(--ink-5); border-radius: 50%; }
.blog-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.blog-card:hover h4 { color: var(--accent); }
.blog-card p { color: var(--ink-4); font-size: 0.95rem; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-section { padding: 7rem 0 6rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }
.contact-side h2 { margin-bottom: 1.5rem; }
.contact-side p { color: var(--ink-3); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.5rem; max-width: 40ch; }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 0.92rem;
  flex-shrink: 0;
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-5);
  margin-bottom: 0.2rem;
}
.contact-info-value { color: var(--ink-2); font-weight: 500; font-size: 0.96rem; }
.contact-info-value a { color: inherit; }
.contact-info-value a:hover { color: var(--accent); }

/* ─── Form ─── */
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: span 2; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: span 1; } }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-bottom: 0.5rem;
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.15s;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ink);
  background: var(--bg-elev);
  box-shadow: 0 0 0 3px rgba(20,17,15,0.06);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; font-family: var(--font-body); }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234b4640' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }

.form-feedback {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.7rem;
}
.form-feedback.show { display: flex; }
.form-feedback.success { background: var(--success-bg); color: var(--success); border: 1px solid #d4e6d4; }
.form-feedback.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f4d3cd; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 6rem 0;
  text-align: center;
}
.footer-cta h2 { color: var(--bg); max-width: 14ch; margin: 0 auto 1.5rem; font-style: italic; }
.footer-cta h2 em { color: var(--accent); }
.footer-cta p { color: rgba(250,250,247,0.65); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 2.5rem; }
.footer-cta .btn-primary { background: var(--bg); color: var(--ink); }
.footer-cta .btn-primary:hover { background: var(--bg-soft); }

footer { background: var(--ink); color: rgba(250,250,247,0.7); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--bg); margin-bottom: 1.2rem; }
.footer-brand .brand-mark { background: var(--bg); color: var(--ink); }
.footer-brand p { color: rgba(250,250,247,0.55); font-size: 0.92rem; max-width: 32ch; line-height: 1.55; }
.footer-col h5 { color: var(--bg); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: rgba(250,250,247,0.6); transition: color 0.15s; cursor: pointer; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.82rem; color: rgba(250,250,247,0.4); }
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,247,0.7);
  font-size: 0.85rem;
  transition: all 0.15s;
}
.social-links a:hover { background: var(--bg); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL MODAL/PAGE
═══════════════════════════════════════════════════════════ */
.project-detail { padding: 8rem 0 5rem; }
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-4);
  margin-bottom: 2rem;
  cursor: pointer;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.15s;
}
.project-back:hover { color: var(--accent); }
.project-meta-row { display: flex; gap: 0.8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-detail h1 { margin-bottom: 1.5rem; max-width: 18ch; }
.project-summary { font-size: 1.25rem; color: var(--ink-3); max-width: 60ch; line-height: 1.55; margin-bottom: 3rem; }
.project-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 4rem; box-shadow: var(--shadow-lg); }

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 4rem;
}
.project-info-item .label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-5); margin-bottom: 0.4rem; }
.project-info-item .value { font-weight: 500; font-size: 0.95rem; color: var(--ink); }

.project-content { max-width: 720px; margin: 0 auto; }
.project-content h2 { margin: 3rem 0 1.2rem; font-size: 2rem; }
.project-content h2:first-child { margin-top: 0; }
.project-content p { color: var(--ink-3); font-size: 1.08rem; line-height: 1.75; margin-bottom: 1.3rem; }
.project-content ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.project-content ul li { color: var(--ink-3); font-size: 1.02rem; padding: 0.5rem 0; padding-left: 1.5rem; position: relative; line-height: 1.5; }
.project-content ul li::before { content: ''; width: 8px; height: 1px; background: var(--accent); position: absolute; left: 0; top: 0.95rem; }

.project-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  margin: 3rem 0;
}
.result-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; margin-bottom: 0.5rem; color: var(--bg); letter-spacing: -0.03em; }
.result-label { font-size: 0.85rem; color: rgba(250,250,247,0.6); }

.project-quote {
  border-left: 3px solid var(--accent);
  padding: 1rem 0 1rem 2rem;
  margin: 3rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 400;
}
.project-quote-author { font-style: normal; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-4); margin-top: 1rem; font-weight: 500; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 2rem; }
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-soft);
  border-radius: 6px;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════════
   BLOG POST PAGE
═══════════════════════════════════════════════════════════ */
.post-detail { padding: 8rem 0 5rem; }
.post-detail .post-header { max-width: 760px; margin: 0 auto 3rem; }
.post-detail h1 { margin-bottom: 1.5rem; max-width: 22ch; }
.post-detail .post-cover { width: 100%; max-width: 900px; margin: 0 auto 4rem; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-lg); }
.post-content { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); }
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.9rem; }
.post-content h3 { margin: 2rem 0 0.8rem; font-size: 1.4rem; }
.post-content p { margin-bottom: 1.4rem; color: var(--ink-2); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; font-style: italic; color: var(--ink-3); margin: 2rem 0; }
.post-content code { background: var(--bg-soft); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.92em; }
.post-content pre { background: var(--ink); color: var(--bg); padding: 1.5rem; border-radius: var(--r-md); overflow-x: auto; margin: 1.5rem 0; }
.post-content pre code { background: transparent; padding: 0; }
.post-content ul, .post-content ol { margin: 1.2rem 0; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { border-radius: var(--r-md); margin: 2rem 0; }

/* ═══════════════════════════════════════════════════════════
   PAGE TRANSITIONS / UTILITY
═══════════════════════════════════════════════════════════ */
.page { display: none; animation: fade-in 0.4s ease; }
.page.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-5); }
