/* echocco.com v2 — Linear-inspired enterprise layout
   Tokens / utilities / components. System fonts only — no Google Fonts.
   Last redesign: 2026-09-01 */

/* ---------------- Design tokens (Linear-flavored) ---------------- */
:root {
  /* Color — zinc + indigo system */
  --bg:           #ffffff;
  --bg-alt:       #fafafa;   /* zinc-50 */
  --bg-elevated:  #f4f4f5;   /* zinc-100 — section header backgrounds */
  --bg-dark:      #09090b;   /* zinc-950 — hero & dark sections */
  --bg-darker:    #000000;   /* pure black for very deep sections */

  --ink:          #09090b;   /* zinc-950 — main text */
  --ink-2:        #52525b;   /* zinc-600 — secondary text */
  --ink-3:        #71717a;   /* zinc-500 — muted */
  --ink-4:        #a1a1aa;   /* zinc-400 — placeholder */
  --line:         #e4e4e7;   /* zinc-200 — borders */
  --line-2:       #d4d4d8;   /* zinc-300 — stronger borders */
  --line-dark:    #27272a;   /* zinc-800 — dark section borders */

  --accent:       #5e6ad2;   /* Linear indigo (CTAs, links, focus) */
  --accent-2:     #8b5cf6;   /* violet */
  --accent-3:     #06b6d4;   /* cyan accent for charts/data */
  --success:      #10b981;
  --danger:       #ef4444;

  /* Typography */
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text",
                   "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo,
                   Consolas, monospace;

  /* Sizing */
  --max-w:        1200px;
  --max-w-narrow: 800px;
  --radius:       6px;
  --radius-lg:    10px;
  --radius-pill:  999px;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
}

/* ---------------- Reset + base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #ffffff; }

/* ---------------- Layout shell ---------------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 768px) {
  .shell { padding: 0 var(--s-6); }
}

/* ---------------- Top nav (Linear sticky glass) ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: var(--s-4);
}
.nav-brand {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav-menu {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
@media (min-width: 768px) {
  .nav-menu { display: flex; }
}
.nav-link {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.12s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all 0.12s;
  background: var(--bg);
}
.nav-cta:hover { color: var(--ink); border-color: var(--line-2); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

/* Language toggle (Linear-style segmented control) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
}
.lang-toggle a {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  transition: all 0.12s;
}
.lang-toggle a.active {
  background: var(--ink);
  color: var(--bg);
}

/* ---------------- Hero (Linear dark hero with grid) ---------------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(94, 106, 210, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94, 106, 210, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 50%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(94, 106, 210, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: var(--s-6);
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--s-5);
  max-width: 820px;
}
.hero-title .accent {
  background: linear-gradient(110deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-tagline {
  font-size: clamp(17px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  max-width: 660px;
  margin-bottom: var(--s-7);
  line-height: 1.55;
}
.hero-tagline strong { color: #ffffff; font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

/* Linear-style buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.08s;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--bg-elevated); }
.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--line-2);
}
.btn-link {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 6px 8px;
}
.btn-link:hover { color: var(--accent); }
.btn .arrow { transition: transform 0.12s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------------- Section shell ---------------- */
.section {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: var(--bg-dark);
  color: #ffffff;
  border-top-color: var(--line-dark);
}
.section-head {
  margin-bottom: var(--s-7);
  max-width: 720px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.section.dark .section-eyebrow { color: rgba(255, 255, 255, 0.5); }
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.section.dark .section-title { color: #ffffff; }
.section-desc {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.55;
}
.section.dark .section-desc { color: rgba(255, 255, 255, 0.7); }

/* ---------------- Metrics row (Linear dashboard style) ---------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.metric {
  padding: var(--s-5) var(--s-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric:nth-child(2n) { border-right: none; }
.metric:last-child,
.metric:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.metric-value {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric-label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
@media (min-width: 720px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric { border-right: 1px solid var(--line); border-bottom: none; }
  .metric:last-child { border-right: none; }
}

/* ---------------- Project grid (Linear card) ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  position: relative;
  min-height: 280px;
}
.project-card:hover {
  background: var(--bg-alt);
}
.project-card:hover .project-link .arrow { transform: translateX(3px); }

.project-cover {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.18));
  pointer-events: none;
}
.project-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-3);
  font-size: 12px;
  color: var(--ink-3);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--ink-2);
}
.project-tag-row .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}
.project-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.project-tagline {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: var(--s-3);
  line-height: 1.4;
}
.project-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  line-height: 1.5;
  flex: 1;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.project-link .arrow { transition: transform 0.12s; }

/* ---------------- Stack pills (Linear inline tag) ---------------- */
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg);
  font-family: var(--font-mono);
  transition: border-color 0.12s;
}
.pill:hover {
  border-color: var(--line-2);
  color: var(--ink);
}
.pill.dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}
.pill.dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-6);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink-2);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-weight: 600;
  color: var(--ink);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-meta a:hover { color: var(--ink); }

/* ---------------- Project detail (Linear sub-page) ---------------- */
.proj-hero {
  padding: var(--s-8) 0 var(--s-7);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.proj-back {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}
.proj-back:hover { color: var(--ink); }

.proj-cover {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--s-4);
}

.proj-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.proj-title {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.proj-tagline {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: var(--s-5);
  line-height: 1.5;
}
.proj-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  align-items: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: var(--s-5);
}
.proj-meta-bar a {
  color: var(--ink);
  font-weight: 500;
}
.proj-meta-bar .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
}
.proj-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.proj-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding: var(--s-7) 0;
}
@media (min-width: 900px) {
  .proj-body { grid-template-columns: 2fr 1fr; gap: var(--s-8); }
}
.proj-desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.proj-features {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.proj-feat {
  background: var(--bg);
  padding: var(--s-4) var(--s-5);
}
.proj-feat-title {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.proj-feat-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Side tables */
.proj-side dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px var(--s-4);
  font-size: 13.5px;
  margin-bottom: var(--s-4);
}
.proj-side dt {
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: start;
  padding-top: 2px;
}
.proj-side dd { color: var(--ink); font-weight: 500; }
.side-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  background: var(--bg);
  margin-bottom: var(--s-4);
}
.side-title {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.side-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.side-list .pill {
  font-size: 12px;
  padding: 3px 8px;
}

/* ---------------- Projects list page ---------------- */
.proj-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  align-items: center;
}
.search-input {
  flex: 1;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.search-input:focus {
  outline: none;
  border-color: var(--ink);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 10px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}

/* ---------------- About page (Linear minimal hero) ---------------- */
.about-hero {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
}
.about-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.about-focus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) {
  .about-focus { grid-template-columns: repeat(3, 1fr); }
}
.focus-item {
  padding: var(--s-5);
  background: var(--bg);
}
.focus-icon { font-size: 28px; margin-bottom: var(--s-3); }
.focus-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
.focus-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Avatar placeholder / fallback */
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: var(--font-mono);
}
.hero-avatar-img,
.about-card-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.about-card-avatar-img { width: 64px; height: 64px; }

/* ---------------- Mobile ---------------- */
@media (max-width: 767px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}

/* Architecture sections on project detail pages */


/* === Architecture section (project detail pages, Archify iframe) === */
.arch-section {
  max-width: 1280px;
  margin: 32px auto 48px;
  padding: 0 24px;
}
.arch-section-head { margin-bottom: 16px; }
.arch-h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  color: var(--ink, #f1f5f9);
}
.arch-sub {
  font-size: 15px;
  color: var(--muted, #94a3b8);
  margin: 0;
  max-width: 720px;
  line-height: 1.6;
}
.archify-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #ffffff;
  margin-top: 16px;
}


/* === Architecture embed (between Overview and Capabilities) === */
.arch-embed {
  margin: 32px 0 40px;
  padding: 0;
}
.arch-embed-head {
  margin-bottom: 16px;
}
.arch-embed-sub {
  font-size: 15px;
  color: var(--muted, #94a3b8);
  margin: 4px 0 0 0;
  line-height: 1.6;
}
.arch-embed-frame-wrap {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  /* Aspect ratio keeps the iframe proportional regardless of width */
  aspect-ratio: 16 / 9;
  max-height: 540px;
}
.archify-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}


/* === Pain → Solution → Value section (8-point grid, Stripe type scale) === */
/* Design tokens follow Stripe / Linear convention:
   - 8px spacing grid (4, 8, 12, 16, 24, 32, 48, 64)
   - Type scale (13, 14, 16, 20, 28) with tight line-heights (1.4-1.55)
   - Single accent per column (Stripe principle), low-opacity tints
     so they read on both light and dark backgrounds                    */

:root {
  /* Accent colors — slightly lighter shades for dark-theme contrast */
  --impact-pain:         #f87171;   /* red-400  */
  --impact-pain-soft:    rgba(248, 113, 113, 0.10);
  --impact-pain-line:    rgba(248, 113, 113, 0.25);

  --impact-solution:      #a78bfa;   /* violet-400 */
  --impact-solution-soft: rgba(167, 139, 250, 0.10);
  --impact-solution-line: rgba(167, 139, 250, 0.25);

  --impact-value:         #34d399;   /* emerald-400 */
  --impact-value-soft:    rgba(52, 211, 153, 0.10);
  --impact-value-line:    rgba(52, 211, 153, 0.25);
}

/* ---------------- Section heading ---------------- */
.impact-head {
  margin: 0 0 24px;     /* 8px grid */
  max-width: 640px;
}
.impact-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #94a3b8);
  margin-bottom: 8px;
}
.impact-head h2 {
  font-size: 28px;       /* Display */
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink, #f1f5f9);
  margin: 0 0 12px 0;
}
.impact-head p {
  font-size: 16px;       /* Subhead */
  line-height: 1.55;
  color: var(--ink-2, #cbd5e1);
  margin: 0;
  max-width: 640px;
}

/* ---------------- A. Impact Rows (compact horizontal flow) ---------------- */
.impact-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg, #0b1020);
}
.impact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  align-items: center;
  transition: background 160ms ease;
}
.impact-row:last-child {
  border-bottom: 0;
}
@media (min-width: 900px) {
  .impact-row {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 220px);
    gap: 24px;
    padding: 16px 24px;
  }
}
.impact-row:hover { background: var(--bg-alt, #0f172a); }

/* Row cells */
.impact-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.impact-cell-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.impact-cell-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.impact-cell--pain      .impact-cell-icon { background: var(--impact-pain-soft);     border-color: var(--impact-pain-line); }
.impact-cell--pain      .impact-cell-icon svg { stroke: var(--impact-pain); }
.impact-cell--solution  .impact-cell-icon { background: var(--impact-solution-soft); border-color: var(--impact-solution-line); }
.impact-cell--solution  .impact-cell-icon svg { stroke: var(--impact-solution); }
.impact-cell--value     .impact-cell-icon { background: var(--impact-value-soft);    border-color: var(--impact-value-line); }
.impact-cell--value     .impact-cell-icon svg { stroke: var(--impact-value); }

.impact-cell-body { min-width: 0; flex: 1; }
.impact-cell-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3, #94a3b8);
  margin-bottom: 4px;
}
.impact-cell--pain     .impact-cell-label { color: var(--impact-pain); }
.impact-cell--solution .impact-cell-label { color: var(--impact-solution); }
.impact-cell--value    .impact-cell-label { color: var(--impact-value); }
.impact-cell-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink, #f1f5f9);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.impact-cell-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2, #cbd5e1);
  margin-top: 2px;
}

/* Arrow between row cells */
.impact-row-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink-4, #64748b);
  user-select: none;
}
.impact-row-arrow svg { width: 16px; height: 16px; stroke-width: 1.5; }
@media (min-width: 900px) {
  .impact-row-arrow { display: flex; }
}

/* Big-number metric chip on the right of each row */
.impact-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 0;
  border-left: none;
  margin-top: 4px;
}
@media (min-width: 900px) {
  .impact-metric {
    padding-left: 20px;
    border-left: 1px solid var(--line, rgba(255, 255, 255, 0.06));
    margin-top: 0;
  }
}
.impact-metric-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink, #f1f5f9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.impact-metric-value .arrow-down,
.impact-metric-value .arrow-up {
  margin-right: 2px;
  font-weight: 700;
}
.impact-metric-value .arrow-down { color: var(--impact-value); }
.impact-metric-value .arrow-up   { color: var(--impact-value); }
.impact-metric-label {
  font-size: 12px;
  color: var(--ink-2, #cbd5e1);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* ---------------- B. Impact Columns (large visual cards) ---------------- */
.impact-columns-head {
  margin: 48px 0 16px;   /* 8px grid */
  max-width: 640px;
}
.impact-columns-head h3 {
  font-size: 20px;        /* Headline */
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink, #f1f5f9);
  margin: 0 0 8px 0;
}
.impact-columns-head p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #cbd5e1);
  margin: 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 720px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.impact-card {
  background: var(--bg, #0b1020);
  border-radius: 0;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 0;
  transition: background 160ms ease;
}
.impact-card:hover {
  background: var(--bg-alt, #0f172a);
  transform: none;
}

/* Large line-art SVG icon at top of each card */
.impact-card-art {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.impact-card-art svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.impact-card--pain     .impact-card-art { background: var(--impact-pain-soft);     border-color: var(--impact-pain-line); }
.impact-card--pain     .impact-card-art svg { stroke: var(--impact-pain); }
.impact-card--solution .impact-card-art { background: var(--impact-solution-soft); border-color: var(--impact-solution-line); }
.impact-card--solution .impact-card-art svg { stroke: var(--impact-solution); }
.impact-card--value    .impact-card-art { background: var(--impact-value-soft);    border-color: var(--impact-value-line); }
.impact-card--value    .impact-card-art svg { stroke: var(--impact-value); }

/* Card body */
.impact-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink, #f1f5f9);
  margin: 0;
}
.impact-card-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2, #cbd5e1);
  margin: 0;
}
.impact-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2, #cbd5e1);
}
.impact-card-list li {
  position: relative;
  padding-left: 16px;
}
.impact-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4, #64748b);
}
.impact-card--pain     .impact-card-list li::before { background: var(--impact-pain); }
.impact-card--solution .impact-card-list li::before { background: var(--impact-solution); }
.impact-card--value    .impact-card-list li::before { background: var(--impact-value); }

/* Metric chip at bottom of each card */
.impact-card-metric {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.06));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.impact-card-metric-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink, #f1f5f9);
  font-variant-numeric: tabular-nums;
}
.impact-card-metric-label {
  font-size: 11px;
  color: var(--ink-3, #94a3b8);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* === How it works (4-stage flow) === */
.how-section {
  margin: 48px 0 56px;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
  }
}
.how-stage {
  background: var(--bg, #0b1020);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
@media (min-width: 900px) {
  .how-stage {
    border-radius: 16px 0 0 16px;
    border-right: 0;
  }
  .how-stage:last-child {
    border-radius: 0 16px 16px 0;
    border-right: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  }
  .how-arrow {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--line, rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3, #94a3b8);
    font-size: 12px;
    z-index: 2;
  }
}
.how-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(94, 106, 210, 0.18);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.how-stage-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink, #f1f5f9);
}
.how-stage-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2, #cbd5e1);
  margin: 0;
}

/* When the section uses a 5-stage flow (opencut002) — stack horizontally
   with the arrow indicators. The grid still uses repeat(N, 1fr) but N = 5. */
@media (max-width: 899px) {
  .how-section .how-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Unified impact / how section styles
   Covers class-name variants across all 7 project HTML files:
     - impact-card-list, impact-text  (replaces impact-card-body in some)
     - impact-card-pain / -solution / -impact
     - impact-tag-pain / -solution / -impact
     - how-num, how-title, how-desc   (shorter aliases used by 4 files)
     - how-stage-desc, how-stage-name (secopentagent + secsight)
     - how-footnote (secsight)
     - how-stage-act/-reason/-remember/-sense (secopentagent)
   ============================================================ */

/* ---- Impact body variants ---- */
.impact-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2, #cbd5e1);
}
.impact-card-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2, #cbd5e1);
}
.impact-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(94, 106, 210, 0.6);
}
.impact-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2, #cbd5e1);
}

/* ---- Impact card color modifiers (left accent bar) ---- */
.impact-card-pain,
.impact-card-solution,
.impact-card-impact {
  position: relative;
  overflow: hidden;
}
.impact-card-pain::before,
.impact-card-solution::before,
.impact-card-impact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.impact-card-pain::before { background: rgba(239, 68, 68, 0.7); }
.impact-card-solution::before { background: rgba(94, 106, 210, 0.7); }
.impact-card-impact::before { background: rgba(34, 197, 94, 0.7); }

/* ---- Impact tag color modifiers (in case data-i18n is absent) ---- */
.impact-tag-pain {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.impact-tag-solution {
  background: rgba(94, 106, 210, 0.15);
  color: #c7d2fe;
}
.impact-tag-impact {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

/* ---- How-section class-name variants ---- */
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(94, 106, 210, 0.18);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
  align-self: flex-start;
}
.how-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink, #f1f5f9);
  line-height: 1.3;
}
.how-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2, #cbd5e1);
}
.how-stage-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2, #cbd5e1);
}
.how-stage-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.how-footnote {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3, #94a3b8);
  text-align: center;
}

/* How-stage topical modifiers — subtle accent tweaks per stage */
.how-stage-sense    { border-top: 2px solid rgba(94, 106, 210, 0.45); }
.how-stage-remember { border-top: 2px solid rgba(168, 85, 247, 0.45); }
.how-stage-reason   { border-top: 2px solid rgba(236, 72, 153, 0.45); }
.how-stage-act      { border-top: 2px solid rgba(34, 197, 94, 0.45); }

/* When a how-grid contains short-named children (how-num / how-title /
   how-desc) instead of the long-named ones, behave the same way. */
.how-grid > .how-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive arrow: hide on narrow viewports where stages stack */
@media (max-width: 899px) {
  .how-arrow { display: none; }
}


