/* ============================================================
   ALEX · FDE — Design System v0.2
   Modern editorial · Neutral + brand accent · Dual theme
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;
  --brand-800: #9a3412;

  /* Neutrals — light */
  --l-bg:      #fafaf9;   /* stone-50   */
  --l-surface: #ffffff;
  --l-elev:    #f5f5f4;   /* stone-100  */
  --l-line:    #e7e5e4;   /* stone-200  */
  --l-line-2:  #d6d3d1;   /* stone-300  */
  --l-muted:   #78716c;   /* stone-500  */
  --l-fg-2:    #44403c;   /* stone-700  */
  --l-fg:      #1c1917;   /* stone-900  */

  /* Neutrals — dark */
  --d-bg:      #0c0a09;   /* stone-950  */
  --d-surface: #171412;
  --d-elev:    #1c1917;   /* stone-900  */
  --d-line:    #292524;   /* stone-800  */
  --d-line-2:  #44403c;   /* stone-700  */
  --d-muted:   #a8a29e;   /* stone-400  */
  --d-fg-2:    #d6d3d1;   /* stone-300  */
  --d-fg:      #fafaf9;   /* stone-50   */

  /* Semantic (used by both themes via var swap below) */
  --bg: var(--l-bg);
  --surface: var(--l-surface);
  --elev: var(--l-elev);
  --line: var(--l-line);
  --line-2: var(--l-line-2);
  --muted: var(--l-muted);
  --fg-2: var(--l-fg-2);
  --fg: var(--l-fg);

  --accent: var(--brand-700);
  --accent-hover: var(--brand-800);
  --accent-soft: var(--brand-100);
  --accent-soft-fg: var(--brand-800);

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -20px rgba(0, 0, 0, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.08);

  /* Typography — sans-only system (no serifs allowed) */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: var(--font-display);  /* legacy alias — kept for backward compatibility, now maps to sans */
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
}

html[data-theme="dark"] {
  --bg: var(--d-bg);
  --surface: var(--d-surface);
  --elev: var(--d-elev);
  --line: var(--d-line);
  --line-2: var(--d-line-2);
  --muted: var(--d-muted);
  --fg-2: var(--d-fg-2);
  --fg: var(--d-fg);

  --accent: var(--brand-400);
  --accent-hover: var(--brand-500);
  --accent-soft: rgba(251, 146, 60, 0.12);
  --accent-soft-fg: var(--brand-400);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: var(--d-bg);
    --surface: var(--d-surface);
    --elev: var(--d-elev);
    --line: var(--d-line);
    --line-2: var(--d-line-2);
    --muted: var(--d-muted);
    --fg-2: var(--d-fg-2);
    --fg: var(--d-fg);
    --accent: var(--brand-400);
    --accent-hover: var(--brand-500);
    --accent-soft: rgba(251, 146, 60, 0.12);
    --accent-soft-fg: var(--brand-400);
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: white; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography scale ---------- */
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.mono  { font-family: var(--font-mono); }
.h-display { font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 300; }
.h-1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 300; }
.h-2 { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 400; }
.h-3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
/* Display-italic emphasis without a serif — use light weight + accent color */
.h-display em, .h-1 em, .h-2 em { font-style: normal; font-weight: 400; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.lead { font-size: 1.125rem; color: var(--fg-2); line-height: 1.65; }
.small { font-size: 0.875rem; color: var(--muted); }

/* ---------- Layout ---------- */
.container { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section-sm { padding: 2.5rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: white; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--elev); }
.btn-link {
  padding: 0;
  color: var(--accent);
  font-weight: 500;
}
.btn-link:hover { color: var(--accent-hover); gap: 0.75rem; }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(2px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--elev);
  color: var(--fg-2);
  border: 1px solid var(--line);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-soft-fg);
  border-color: transparent;
}
.chip-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card-hover:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .card-hover:hover { border-color: var(--brand-400); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg);
}
.nav-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--fg); background: var(--elev); }
.icon-btn svg { width: 18px; height: 18px; }

/* Language dropdown */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--dur-fast) var(--ease-out);
}
.lang-wrap { position: relative; }
.lang-wrap.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--fg-2);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.lang-item:hover { background: var(--elev); color: var(--fg); }
.lang-item.active { color: var(--accent); }
.lang-item .flag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* Mobile nav */
.nav-toggle { display: none; }
.nav-drawer { display: none; }  /* hidden by default on desktop; only shown on mobile via media query below */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer {
    position: fixed;
    inset: 4rem 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-drawer.open { display: flex; }
  .nav-drawer a {
    padding: 0.75rem 0;
    color: var(--fg-2);
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); position: relative; overflow: hidden; }
.hero-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  letter-spacing: 0.05em;
}
.hero-status .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.hero-meta-num { font-family: var(--font-display); font-size: 2rem; color: var(--fg); line-height: 1; font-weight: 300; letter-spacing: -0.03em; }
.hero-meta-lbl { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 3rem; }
.section-head .eyebrow { display: block; margin-bottom: 0.75rem; }

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project-card {
  display: block;
  padding: 2rem;
  height: 100%;
}
.project-card .p-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--elev);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.project-card .p-mark svg { width: 22px; height: 22px; }
.project-card h3 { margin: 0 0 0.5rem; transition: color var(--dur-fast) var(--ease-out); }
.project-card:hover h3 { color: var(--accent); }
.project-card .p-desc { color: var(--fg-2); font-size: 0.925rem; line-height: 1.6; margin-bottom: 1.25rem; }
.project-card .p-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; }
.project-card .p-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
}
.project-card .p-more { color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- Services / Pricing ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.svc { padding: 2rem; position: relative; height: 100%; }
.svc.featured { border-color: var(--fg); }
html[data-theme="dark"] .svc.featured { border-color: var(--brand-400); }
.svc-badge {
  position: absolute; top: -12px; left: 2rem;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
html[data-theme="dark"] .svc-badge { background: var(--brand-400); color: var(--d-bg); }
.svc-tier { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; }
.svc-name { font-family: var(--font-display); font-size: 1.5rem; margin: 0.5rem 0 0.75rem; font-weight: 500; letter-spacing: -0.02em; }
.svc-price {
  font-family: var(--font-display); font-size: 2.25rem; color: var(--fg); line-height: 1; font-weight: 300; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 0.25rem;
}
.svc-price small { font-size: 0.85rem; color: var(--muted); font-family: var(--font-sans); }
.svc-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.6rem; }
.svc-list li { font-size: 0.9rem; color: var(--fg-2); display: flex; gap: 0.6rem; align-items: flex-start; }
.svc-list li::before {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: currentColor;
  color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.svc-fit { padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.stack-item { padding: 1.5rem; }
.stack-item h4 { margin: 0.5rem 0 1rem; font-size: 1rem; font-weight: 600; }
.stack-item .chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; gap: 1rem; }
.tl-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: start;
}
.tl-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.04em;
}
.tl-body h4 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.tl-body .tl-day { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-left: 0.5rem; letter-spacing: 0.06em; }
.tl-body p { margin: 0; color: var(--fg-2); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.contact-card {
  padding: 1.5rem;
  display: block;
}
.contact-card .c-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; }
.contact-card .c-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.35rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-card:hover .c-value { color: var(--accent); }
.contact-card .c-note { color: var(--muted); font-size: 0.8rem; }
.contact-card .c-value svg { width: 18px; height: 18px; opacity: 0.6; transition: transform var(--dur-fast) var(--ease-out); }
.contact-card:hover .c-value svg { transform: translate(2px, -2px); opacity: 1; }

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer .brand-line { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- Project detail page ---------- */
.detail-hero { padding-top: 3rem; padding-bottom: 3rem; }
.detail-hero .back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono);
  margin-bottom: 2rem;
}
.detail-hero .back:hover { color: var(--fg); }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem;
}
.detail-title { margin: 0.75rem 0 1rem; }
.detail-summary { color: var(--fg-2); font-size: 1.15rem; line-height: 1.65; max-width: 44rem; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 2.5rem 0;
}
.spec-grid > div {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.spec-grid > div:last-child { border-right: 0; }
.spec-grid > div .k { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }
.spec-grid > div .v { font-family: var(--font-display); font-size: 1.4rem; margin-top: 0.3rem; font-weight: 500; letter-spacing: -0.02em; }
@media (max-width: 640px) { .spec-grid > div { border-right: 0; } }

.prose h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 3rem 0 1rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.prose p { color: var(--fg-2); margin: 1rem 0; }
.prose ul { color: var(--fg-2); padding-left: 1.25rem; }
.prose ul li { margin: 0.4rem 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--elev);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--fg-2);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15rem 0.4rem;
  background: var(--elev);
  border-radius: var(--r-sm);
  color: var(--accent-soft-fg);
}
.prose pre {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
.prose pre code { background: transparent; padding: 0; color: var(--fg); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.feature-card { padding: 1.5rem; }
.feature-card .f-icon {
  width: 32px; height: 32px; color: var(--accent);
  margin-bottom: 0.75rem;
}
.feature-card h4 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.feature-card p { margin: 0; color: var(--fg-2); font-size: 0.875rem; line-height: 1.55; }

.next-projects {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  margin-top: 4rem;
}
.next-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-serif { font-family: var(--font-display); }
.text-mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* ============================================================
   v0.3 — Pain Mirror / Trust / Reverse-ICP / FAQ / Commitment
   ============================================================ */

/* ---------- Pain-point mirror (hero) ---------- */
.pain-mirror {
  max-width: 44rem;
  padding: 1.25rem 1.5rem;
  background: var(--elev);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pain-mirror-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pain-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.55rem;
}
.pain-list li {
  color: var(--fg-2); font-size: 0.95rem; line-height: 1.5;
  padding-left: 1.25rem; position: relative;
}
.pain-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

/* ---------- Service trust builders ---------- */
.svc-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
}
.svc-trust-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.svc-trust-item svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--accent); margin-top: 0.15rem;
}
.svc-trust-item strong {
  display: block; font-size: 0.95rem; color: var(--fg); margin-bottom: 0.2rem;
}
.svc-trust-item p {
  margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}

/* ---------- Reverse ICP (not a fit) ---------- */
.not-fit-head { text-align: left; margin-bottom: 1rem; }
.not-fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.not-fit-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.not-fit-item .x {
  color: #dc2626;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
html[data-theme="dark"] .not-fit-item .x { color: #f87171; }
.not-fit-item strong {
  display: block; font-size: 0.95rem; color: var(--fg); margin-bottom: 0.3rem;
}
.not-fit-item p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* ---------- Process : deliverable stripe ---------- */
.tl-deliverable {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--elev);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--fg-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.tl-deliverable .mono {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tl-deliverable em { font-style: normal; color: var(--fg-2); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
  line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--fg-2);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* ---------- 3-step commitment ---------- */
.commit-steps {
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.commit-step {
  flex: 1 1 200px;
  display: flex; gap: 0.75rem; align-items: flex-start;
  text-align: left;
  padding: 0.5rem;
}
.commit-step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.commit-step-title { font-size: 0.95rem; font-weight: 600; color: var(--fg); }
.commit-step-desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.5; }
.commit-arrow {
  align-self: center;
  color: var(--line-2);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
}
@media (max-width: 640px) {
  .commit-arrow { transform: rotate(90deg); }
}

/* ============================================================
   v0.4 — 6-Phase Full-cycle Pipeline
   ============================================================ */

/* Phase rail : horizontal-scrolling on mobile, grid on desktop */
.pipe-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 1100px) {
  .pipe-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .pipe-rail {
    grid-template-columns: 1fr;
  }
}

.pipe-phase {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.pipe-phase:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pipe-phase.featured {
  border-color: var(--fg);
  background: var(--elev);
}
html[data-theme="dark"] .pipe-phase.featured { border-color: var(--brand-400); }

.pipe-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipe-phase.featured .pipe-badge { color: var(--accent); }

.pipe-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pipe-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.pipe-dur {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.pipe-phase p {
  margin: 0.35rem 0 0;
  color: var(--fg-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.pipe-goal {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column;
  gap: 0.2rem;
}
.pipe-goal span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pipe-goal em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--fg);
  font-weight: 500;
}

/* Arrow connectors between phases (desktop only) */
@media (min-width: 1101px) {
  .pipe-rail { position: relative; }
  .pipe-phase:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.75rem;
    width: 0.75rem;
    height: 1px;
    background: var(--line-2);
    z-index: 0;
  }
}

/* ---------- Component moat callout ---------- */
.pipe-moat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
@media (min-width: 900px) {
  .pipe-moat { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.pipe-moat-left h3 { margin: 0.25rem 0 0.75rem; }
.pipe-moat-left p { margin: 0; color: var(--fg-2); font-size: 0.95rem; line-height: 1.7; }
.pipe-moat-left strong { color: var(--fg); font-weight: 600; }

.pipe-moat-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pipe-stat {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.pipe-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.pipe-stat-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ---------- Why paid Discovery callout ---------- */
.pipe-why-paid {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
html[data-theme="dark"] .pipe-why-paid {
  background: rgba(194, 65, 12, 0.08);
}
.pipe-why-paid-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  color: var(--accent);
}
.pipe-why-paid-icon svg { width: 100%; height: 100%; }
.pipe-why-paid strong {
  display: block;
  font-size: 1rem;
  color: var(--accent-soft-fg);
  margin-bottom: 0.4rem;
}
html[data-theme="dark"] .pipe-why-paid strong { color: var(--brand-200); }
.pipe-why-paid p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.9rem;
  line-height: 1.65;
}
