/* ================================================================
   styles.css — Shared stylesheet for vanngo.net
   Covers: base, nav, hero, buttons, contact, footer, animations,
           project cards (index), case study layout (case studies)
   ================================================================ */

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

:root {
  --bg: #0c0c0c;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --surface: #151515;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0ece4;
  --text-muted: #9a9389;
  --text-dim: #7a7068;
  --accent: #e8553d;
  --accent-light: rgba(232,85,61,0.12);
  --accent-glow: rgba(232,85,61,0.06);
  --cream: #f0ece4;
  --warm-gray: #2a2622;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 9997;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }

/* ========================
   NAV
   ======================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--cream); }

/* ========================
   MOBILE NAV
   ======================== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid var(--border);
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.nav-mobile-links a {
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 54px);
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  font-family: var(--body);
  transition: color 0.2s;
}
.nav-mobile-close:hover { color: var(--cream); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}

/* ========================
   HERO — shared base
   ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(400px, 45vw, 640px);
  height: auto;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-label::before,
.hero-label::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--text-dim);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-title em { font-style: italic; font-weight: 700; color: var(--accent); }

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-desc strong { color: var(--cream); font-weight: 400; }

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.75s;
}

/* Stats row (index hero) */
.stats-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}
.stat-item {
  padding: 28px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(232,85,61,0.03); }
.stat-number {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-number .accent { color: var(--accent); }
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.04em;
  max-width: 140px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ========================
   BUTTONS
   ======================== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 0;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(232,85,61,0.3); }

.btn-ghost {
  color: var(--text-muted);
  padding: 16px 32px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-2px); }

/* ========================
   SECTION HEADER (shared)
   ======================== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 72px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.section-line { flex: 1; height: 1px; background: var(--border); margin-bottom: 5px; }

/* Tags (shared — used in project cards and case hero-meta) */
.tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-weight: 500;
}
.tag-accent {
  color: var(--accent);
  border-color: rgba(232,85,61,0.3);
  background: var(--accent-light);
}
/* Case-study hero tags (same pill style as .tag) */
.meta-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 14px;
  font-weight: 500;
  font-family: var(--body);
  white-space: nowrap;
}
.meta-tag-accent {
  color: var(--accent);
  border-color: rgba(232,85,61,0.4);
  background: var(--accent-light);
}

/* ========================
   INDEX — Work & Project Cards
   ======================== */
.work-section { padding: 120px 48px; }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.4s;
  position: relative;
}
.project-card:last-child { border-bottom: 1px solid var(--border); }
.project-card::before {
  content: '';
  position: absolute;
  left: -48px; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover::before { transform: scaleY(1); }
.project-info { display: flex; flex-direction: column; }
.project-card:not(.reverse) .project-info { align-items: flex-end; text-align: right; }
.project-card:not(.reverse) .project-tags { justify-content: flex-end; }
.project-card:not(.reverse) .project-metrics { justify-content: flex-end; }
.project-card:not(.reverse) .project-desc { margin-left: auto; margin-right: 0; }
.project-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 16px;
}
.project-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.project-card:hover .project-title { color: var(--accent); }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.project-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; font-weight: 300; margin-bottom: 28px; max-width: 480px; }
.project-metrics { display: flex; gap: 28px; margin-bottom: 28px; }
.metric { padding-left: 16px; border-left: 1px solid var(--border); }
.metric-val { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.metric-label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; font-weight: 300; }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(232,85,61,0.3);
  padding-bottom: 3px;
  width: fit-content;
  transition: gap 0.3s, border-color 0.3s;
}
.project-card:hover .project-link { gap: 16px; border-color: var(--accent); }
.project-preview {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-preview { transform: translateY(-4px); }
.project-mockup-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-mockup-img { transform: scale(1.03); }
.project-card.reverse .project-info { order: 2; }
.project-card.reverse .project-preview { order: 1; }

/* ========================
   INDEX — About section
   ======================== */
.about-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: start;
  position: relative;
}
.about-section::before {
  content: '"';
  position: absolute;
  top: 60px; left: 48px;
  font-family: var(--display);
  font-size: 160px;
  font-weight: 900;
  color: rgba(232,85,61,0.06);
  line-height: 1;
  pointer-events: none;
}
.about-left { position: relative; z-index: 2; }
.about-title { font-family: var(--display); font-size: clamp(30px, 3.2vw, 48px); line-height: 1.15; margin-bottom: 36px; color: var(--cream); font-weight: 400; }
.about-title em { font-style: italic; font-weight: 700; color: var(--accent); }
.about-body { font-size: 15px; color: var(--text-muted); line-height: 1.85; font-weight: 300; margin-bottom: 24px; }
.about-actions { display: flex; gap: 16px; margin-top: 40px; }
.skills-section { position: relative; z-index: 2; }
.skills-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.skills-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.skill-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); transition: all 0.3s ease; cursor: default; }
.skill-item:first-child { border-top: 1px solid var(--border); }
.skill-item:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(232,85,61,0.06) 0%, transparent 100%); }
.skill-name { font-size: 13px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.03em; transition: color 0.3s; }
.skill-item:hover .skill-name { color: var(--cream); }
.skill-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; opacity: 0; transform: scale(0); transition: all 0.3s ease; }
.skill-item:hover .skill-dot { opacity: 1; transform: scale(1); }

/* ========================
   CONTACT
   ======================== */
.contact-section {
  text-align: center;
  padding: 160px 48px 100px;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 100px;
  background: linear-gradient(to bottom, transparent, var(--border));
}
.contact-eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; font-weight: 500; }
.contact-title { font-family: var(--display); font-size: clamp(38px, 5.5vw, 76px); line-height: 1.05; margin-bottom: 24px; color: var(--cream); font-weight: 400; }
.contact-title em { font-style: italic; font-weight: 700; color: var(--accent); }
.contact-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 56px; font-weight: 300; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: border-color 0.3s, color 0.3s;
  margin-bottom: 56px;
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }
.contact-actions { display: flex; gap: 16px; justify-content: center; }

/* ========================
   FOOTER
   ======================== */
.footer { border-top: 1px solid var(--border); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 11px; color: var(--text-dim); font-weight: 300; letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 11px; color: var(--text-dim); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

/* ========================
   ANIMATIONS & REVEAL
   ======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ========================
   CASE STUDY — HERO
   ======================== */
.case-hero {
  padding: 180px 48px 80px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.eyebrow-line { width: 40px; height: 1px; background: var(--text-dim); }
.eyebrow-text { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}
.case-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.case-title em { font-style: italic; font-weight: 700; color: var(--accent); }
.case-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 56px;
}
.case-subtitle strong { color: var(--cream); font-weight: 400; }

/* Stat strip */
.stat-strip { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-strip .stat-item { padding: 28px 36px; text-align: center; border-right: 1px solid var(--border); flex: 1; transition: background 0.3s; }
.stat-strip .stat-item:last-child { border-right: none; }
.stat-strip .stat-item:hover { background: rgba(232,85,61,0.03); }
.stat-val { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 11px; color: var(--text-dim); font-weight: 400; letter-spacing: 0.04em; line-height: 1.4; }

/* ========================
   CASE STUDY — BODY
   ======================== */
.case-body { max-width: 1100px; margin: 0 auto; padding: 0 48px 80px; }

.prose-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.prose h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 400; color: var(--cream); margin-bottom: 28px; line-height: 1.15; }
.prose h2 em { font-style: italic; font-weight: 700; color: var(--accent); }
.prose p { font-size: 15px; color: var(--text-muted); line-height: 1.85; font-weight: 300; margin-bottom: 20px; }
.prose p strong { color: var(--cream); font-weight: 400; }

.sidebar { position: sticky; top: 120px; }
.sidebar-group { margin-bottom: 36px; }
.sidebar-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-item { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; font-weight: 300; }
.sidebar-item strong { display: block; color: var(--cream); font-weight: 500; font-size: 12px; margin-bottom: 2px; }

/* Section labels */
.section-label { display: flex; align-items: center; gap: 16px; padding: 56px 0 36px; }
.section-label-num { font-family: var(--display); font-size: 14px; font-style: italic; color: var(--accent); min-width: 20px; }
.section-label-text { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.section-label-line { flex: 1; height: 1px; background: var(--border); }

/* Goals grid */
.goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 20px; }
.goal-item { padding: 28px; border: 1px solid var(--border); transition: border-color 0.3s, background 0.3s; }
.goal-item:hover { border-color: var(--border-hover); background: var(--accent-glow); }
.goal-item h4 { font-family: var(--display); font-size: 18px; font-weight: 400; color: var(--cream); margin-bottom: 12px; line-height: 1.3; }
.goal-item p { font-size: 13px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }

/* Process steps */
.process-steps { margin-bottom: 20px; }
.step { display: flex; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.step:first-child { border-top: 1px solid var(--border); }
.step-num { font-family: var(--display); font-size: 42px; font-weight: 400; color: var(--accent); line-height: 1; min-width: 48px; opacity: 0.4; }
.step-content h3 { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--cream); margin-bottom: 14px; line-height: 1.2; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.8; font-weight: 300; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.feature-cell { padding: 28px; border: 1px solid var(--border); transition: border-color 0.3s, background 0.3s; }
.feature-cell:hover { border-color: var(--border-hover); background: var(--accent-glow); }
.feature-icon { width: 32px; height: 32px; margin-bottom: 16px; }
.feature-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-cell h4 { font-family: var(--display); font-size: 17px; font-weight: 400; color: var(--cream); margin-bottom: 10px; line-height: 1.3; }
.feature-cell p { font-size: 12px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

/* Screens grid */
.screens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.screen-item { background: var(--bg3); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.3s; }
.screen-item:hover { border-color: var(--border-hover); }
.screen-item.wide { grid-column: 1 / -1; }
.screen-item img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.screen-item:hover img { transform: scale(1.02); }

/* Lessons grid */
.lessons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--border); }
.lesson-item h4 { font-family: var(--display); font-size: 18px; font-weight: 400; color: var(--cream); margin-bottom: 10px; line-height: 1.3; }
.lesson-item p { font-size: 13px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }

/* Case nav */
.case-nav { display: flex; justify-content: space-between; padding: 48px 0; }
.case-nav-item { text-decoration: none; color: inherit; transition: color 0.3s; }
.case-nav-item.next { text-align: right; }
.case-nav-dir { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.case-nav-title { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--cream); transition: color 0.3s; }
.case-nav-item:hover .case-nav-title { color: var(--accent); }

/* ========================
   SECTION PROGRESS NAVIGATOR
   ======================== */
/* Section navigator title */
.sp-title {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--body);
  text-align: center;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sp-section-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--body);
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  transition: color 0.25s ease;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.section-progress.sp-visible .sp-title { opacity: 1; }
.section-progress {
  position: fixed;
  right: 28px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.section-progress.sp-visible {
  opacity: 1;
  pointer-events: auto;
}
.sp-pill {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 11px;
  font-style: italic;
  color: var(--text-dim);
  background: rgba(12,12,12,0.9);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 400;
  line-height: 1;
  padding: 0;
}
.sp-pill:hover { color: var(--cream); border-color: var(--border-hover); background: var(--bg3); }
.sp-pill.sp-active { color: var(--accent); border-color: rgba(232,85,61,0.5); background: var(--accent-light); }
@media (max-width: 1280px) { /* Section navigator title */
.sp-title {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--body);
  text-align: center;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.sp-section-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--body);
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  transition: color 0.25s ease;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.section-progress.sp-visible .sp-title { opacity: 1; }
.section-progress { display: none; } }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-title { font-size: clamp(40px, 10vw, 60px); }
  .stats-row { flex-wrap: wrap; margin-top: 48px; }
  .stat-item { flex: 1 1 auto; min-width: 120px; padding: 20px 24px; }
  .work-section { padding: 80px 24px; }
  .project-card { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .project-card.reverse { direction: ltr; }
  .project-preview { min-height: 220px; }
  .project-metrics { flex-wrap: wrap; gap: 16px; }
  .about-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 56px; }
  .about-section::before { font-size: 100px; top: 30px; left: 24px; }
  .contact-section { padding: 100px 24px 80px; }
  .footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; }
  /* Case study responsive */
  .case-hero { padding: 140px 24px 60px; }
  .case-body { padding: 0 24px 60px; }
  .prose-layout { grid-template-columns: 1fr; gap: 40px; }
  .goals-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .lessons-grid { grid-template-columns: 1fr; }
  .case-nav { flex-direction: column; gap: 32px; }
  .case-nav-item.next { text-align: left; }
  .stat-strip { flex-wrap: wrap; }
  .stat-strip .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
}
