/* TekConnected — Construction × monday.com landing page */
/* Tokens */
:root {
  --paper: #faf9f4;
  --paper-2: #f1efe7;
  --paper-3: #e7e3d6;
  --ink: #0e1822;
  --ink-2: #2a3441;
  --ink-3: #5a6473;
  --ink-mute: #8b94a3;
  --rule: #1d2733;
  --line: rgba(14, 24, 34, 0.10);
  --line-2: rgba(14, 24, 34, 0.18);
  --line-3: rgba(14, 24, 34, 0.32);
  --safety: #ff6a13;     /* safety orange — primary brand */
  --safety-deep: #d4540b;
  --caution: #ffcb00;    /* hard-hat yellow */
  --monday: #0073ea;     /* monday.com brand blue */
  --monday-deep: #005bb5;
  --green: #00c875;      /* monday status green */
  --red: #e2445c;        /* monday status red */
  --concrete: #cfcabb;
  --steel: #364757;
  --hi: #fffae6;
  --shadow-sm: 0 1px 0 rgba(14,24,34,0.04), 0 2px 8px rgba(14,24,34,0.06);
  --shadow-md: 0 1px 0 rgba(14,24,34,0.06), 0 8px 24px rgba(14,24,34,0.08);
  --shadow-lg: 0 24px 60px rgba(14,24,34,0.18), 0 1px 0 rgba(14,24,34,0.05);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Type scale */
.eyebrow {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--safety);
  display: inline-block;
}
.eyebrow.num::before { content: none; }
.eyebrow .n {
  font-weight: 700; color: var(--ink); letter-spacing: 0.06em;
}
.eyebrow .dash { color: var(--ink-mute); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 16px; line-height: 1.3; letter-spacing: -0.005em; font-weight: 600; }

p { margin: 0; color: var(--ink-2); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace; }
.serif { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; }

/* Layout */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 4px;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(14,24,34,0.1), 0 1px 3px rgba(14,24,34,0.08);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary .arr { transition: transform 0.2s var(--ease); }
.btn--primary:hover .arr { transform: translateX(3px); }

.btn--cta {
  background: var(--safety);
  color: white;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18), 0 1px 0 rgba(0,0,0,0.05), 0 6px 16px rgba(255,106,19,0.32);
}
.btn--cta:hover { background: var(--safety-deep); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--lg { padding: 18px 28px; font-size: 15px; }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14,24,34,0.04);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,200,117,0.5);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,200,117,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(0,200,117,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,200,117,0); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,244,0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  position: relative;
  border-radius: 3px;
}
.brand .mark::after {
  content: ""; position: absolute; right: -2px; bottom: -2px;
  width: 8px; height: 8px; background: var(--safety);
  border-radius: 1px;
}
.brand .name { color: var(--ink); }
.brand .name .dot { color: var(--safety); }

.nav-links {
  display: flex; gap: 22px; align-items: center;
  font-size: 13px; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 1100px) { .nav-links { display: none; } }
.nav-meta {
  display: inline-flex; align-items: center; gap: 16px;
}

/* HERO — tighter v3 */
.hero {
  position: relative;
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 8px 0 18px;
  max-width: 14ch;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
}
.hero h1 .acc { color: var(--safety); }
.hero h1 .underlined {
  position: relative;
  background-image: linear-gradient(transparent 78%, rgba(255,203,0,0.55) 78%);
  background-repeat: no-repeat;
  padding: 0 2px;
}
.hero-sub {
  font-size: 17px; color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.5;
  margin-bottom: 22px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.avatars { display: inline-flex; }
.avatars .a {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--paper-3); border: 2px solid var(--paper);
  margin-left: -7px; position: relative;
  background-size: cover; background-position: center;
}
.avatars .a:first-child { margin-left: 0; }
.stars { color: var(--caution); letter-spacing: 1px; font-size: 13px; }

/* Hero RIGHT — monday board mockup card */
.board-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.bc-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fbfbfa;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}
.bc-dots { display: inline-flex; gap: 6px; margin-right: 8px; }
.bc-dots span { width: 10px; height: 10px; border-radius: 999px; background: #e3e3df; }
.bc-dots span:nth-child(1) { background: #ff5f57; }
.bc-dots span:nth-child(2) { background: #febc2e; }
.bc-dots span:nth-child(3) { background: #28c840; }
.bc-url { flex: 1; padding: 4px 10px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.bc-url .lock { opacity: 0.5; margin-right: 6px; }

.bc-tabs {
  display: flex; gap: 2px;
  padding: 0 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.bc-tab {
  padding: 10px 14px;
  font-size: 12px; color: var(--ink-3);
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.bc-tab.active { color: var(--monday); border-bottom-color: var(--monday); font-weight: 600; }
.bc-tab .ic { width: 12px; height: 12px; border-radius: 2px; background: var(--monday); opacity: 0.7; display: inline-block; }

.bc-board { padding: 14px 14px 16px; }
.bc-group {
  margin-bottom: 14px;
}
.bc-group-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; color: var(--ink);
  margin-bottom: 8px;
}
.bc-group-title .chev { font-size: 10px; color: var(--ink-3); }
.bc-group-title .dot { width: 8px; height: 8px; border-radius: 2px; }
.bc-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 2.2fr) 130px 70px 130px 90px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: -1px;
  font-size: 12px;
  align-items: stretch;
}
.bc-row > * {
  background: white;
  padding: 8px 10px;
  display: flex; align-items: center;
  min-height: 34px;
  font-size: 12px;
  color: var(--ink-2);
}
.bc-row.head > * {
  background: #f7f7f4;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bc-cell-name { color: var(--ink); font-weight: 500; }
.bc-status {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px; border-radius: 3px; font-size: 11px;
  font-weight: 600; color: white;
  width: 100%;
}
.bc-status.ok { background: var(--green); }
.bc-status.work { background: var(--monday); }
.bc-status.stuck { background: var(--red); }
.bc-status.queue { background: #c4c4c4; color: white; }
.bc-status.warn { background: #fdab3d; }
.bc-status.done { background: var(--green); }

.bc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-2);
}
.bc-tag .av {
  width: 18px; height: 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--monday); color: white; font-size: 9px; font-weight: 700;
}
.bc-tag .av.b { background: #b34e96; }
.bc-tag .av.c { background: var(--safety); }
.bc-tag .av.d { background: var(--steel); }

.bc-bar {
  height: 6px; background: var(--paper-2); border-radius: 999px;
  position: relative; flex: 1;
}
.bc-bar > i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--monday); border-radius: 999px;
  display: block;
}

/* Hero floating chip */
.float-chip {
  position: absolute;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  animation: float 6s var(--ease) infinite alternate;
}
.float-chip .ic {
  width: 28px; height: 28px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 11px;
}
.float-chip .ic.s { background: var(--safety); }
.float-chip .ic.m { background: var(--monday); }
.float-chip .ic.g { background: var(--green); }
.float-chip strong { color: var(--ink); display: block; font-size: 13px; }
.float-chip span { color: var(--ink-3); font-size: 11px; }

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Stat strip */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  padding-top: 4px;
}
.stat-strip .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 720px) {
  .stat-strip .row { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell {
  padding: 28px 0;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
  padding-left: 24px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-cell .l {
  font-size: 12px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Generic section */
.section { padding: 88px 0; }
.section-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 48px;
}
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 42ch; color: var(--ink-3); }

/* Logos */
.logos {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.logos .label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 860px) {
  .logo-row { grid-template-columns: repeat(3, 1fr); }
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  height: 64px;
  filter: grayscale(1);
  opacity: 0.78;
  transition: all 0.2s var(--ease);
}
.logo-cell:hover { filter: none; opacity: 1; }
.logo-cell img { max-height: 46px; max-width: 100%; object-fit: contain; }
.logo-cell.tall img { max-height: 56px; }
.logos { padding: 44px 0; }

/* Pain points */
.pains {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }
.pain {
  background: white;
  padding: 32px;
  position: relative;
}
.pain .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.16em;
  margin-bottom: 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.pain .num .tag {
  background: rgba(226,68,92,0.10); color: var(--red);
  padding: 3px 8px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.06em;
}
.pain .quote {
  font-size: 22px; line-height: 1.3; color: var(--ink); font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
}
.pain .quote s { color: var(--ink-mute); text-decoration-color: var(--ink-mute); }
.pain .desc {
  font-size: 14px; color: var(--ink-3); line-height: 1.55;
}
.pain::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--red); opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.pain:hover::after { opacity: 1; }

/* Solutions / "What an expert can do" */
.soln {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.soln::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}
.soln-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 860px) { .soln-grid { grid-template-columns: 1fr; } }
.svc {
  background: white;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s var(--ease);
}
.svc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.svc .head {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 24px;
}
.svc .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.16em;
}
.svc .tag {
  background: var(--paper-2); color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px;
}
.svc h3 { margin-bottom: 14px; max-width: 22ch; }
.svc p { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.svc ul {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.svc li {
  font-size: 13px; color: var(--ink-2);
  display: flex; align-items: start; gap: 10px;
}
.svc li::before {
  content: "→"; color: var(--safety); font-weight: 700;
  font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}
.svc-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  display: flex; justify-content: space-between; align-items: center;
}
.svc-foot .stat {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--ink); font-size: 14px;
  letter-spacing: -0.015em;
}
.svc-foot .stat span { color: var(--ink-3); font-weight: 400; font-size: 11px; display: block; letter-spacing: 0.04em; text-transform: uppercase; }

/* How it works / process */
.how {
  background: white;
  border-bottom: 1px solid var(--line);
}
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: white;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 220px;
}
.how-step .top {
  display: flex; justify-content: space-between; align-items: start;
  margin-bottom: 32px;
}
.how-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 28px; color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.how-step .step-num span { color: var(--safety); }
.how-step .step-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3);
  background: var(--paper-2);
  padding: 4px 8px; border-radius: 3px;
  letter-spacing: 0.06em;
}
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { color: var(--ink-3); font-size: 14px; }

/* Case study cards (legacy dark theme — REMOVED in V5; new rules at bottom) */

.case-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--ink);
  padding: 28px;
  position: relative;
}
.case .case-logo {
  height: 36px; margin-bottom: 22px;
  display: flex; align-items: center;
}
.case .case-logo img {
  max-height: 32px; max-width: 70%;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.case .case-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; gap: 14px;
}
.case h4 {
  color: var(--paper); font-size: 18px;
  font-weight: 500; line-height: 1.3;
  margin-bottom: 18px; max-width: 24ch;
}
.case .case-stat {
  display: flex; gap: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: auto;
}
.case .case-stat .s {
  display: flex; flex-direction: column; gap: 4px;
}
.case .case-stat .v {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; color: var(--paper);
  font-size: 22px; letter-spacing: -0.04em;
}
.case .case-stat .v.up { color: var(--caution); }
.case .case-stat .l {
  font-size: 10px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.10em;
}
.case.feat {
  background: linear-gradient(180deg, var(--ink) 0%, #1a2433 100%);
  padding: 32px;
}
.case.feat::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.6;
}

/* FAQ */
.faq {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.faq-list {
  border-top: 1px solid var(--line-2);
}
.faq-item {
  border-bottom: 1px solid var(--line-2);
  padding: 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 19px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  width: 100%;
  text-align: left;
}
.faq-q:hover { color: var(--safety); }
.faq-q .ic {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .ic { transform: rotate(45deg); color: var(--safety); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.2s var(--ease);
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 360px; opacity: 1; }
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--ink-3); font-size: 16px; line-height: 1.6;
  max-width: 70ch;
}

/* Final CTA */
.final {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.final-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; align-items: center;
  position: relative;
}
@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; } }
.final h2 { color: var(--paper); }
.final h2 .acc { color: var(--caution); }
.final p { color: var(--paper-3); font-size: 17px; max-width: 50ch; }
.final-card {
  background: white; color: var(--ink);
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.final-card h4 { font-size: 18px; margin-bottom: 4px; }
.final-card p { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.final-form { display: flex; flex-direction: column; gap: 12px; }
.final-form input, .final-form select {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
}
.final-form input:focus, .final-form select:focus {
  outline: none; border-color: var(--ink); background: white;
}
.final-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.final-form .agree {
  font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: start;
}

/* Footer */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot .row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .foot .row { grid-template-columns: 1fr 1fr; } }
.foot h5 {
  color: var(--paper); margin: 0 0 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: rgba(255,255,255,0.6); font-size: 14px; }
.foot a:hover { color: var(--paper); }
.foot .copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}
.foot .brand .name { color: white; }

/* Stat strip foot */
.stat-foot {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--paper-2);
}
.stat-foot strong { color: var(--ink); font-weight: 600; }

/* Board chrome additions */
.bc-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--green); letter-spacing: 0.06em;
}
.bc-tab { cursor: pointer; transition: color 0.15s var(--ease); }
.bc-tab:hover:not(.active) { color: var(--ink); }

/* PROOF — Beachley case study */
.proof {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.proof-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.proof-head {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  background: linear-gradient(180deg, #fcfbf7 0%, white 100%);
}
.proof-logo img { max-height: 38px; max-width: 200px; }
.proof-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.proof-body {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .proof-body { grid-template-columns: 1fr; } }
.proof-copy { padding: 32px; border-right: 1px solid var(--line); }
@media (max-width: 980px) {
  .proof-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}
.proof-copy h3 { margin-bottom: 14px; max-width: 18ch; font-weight: 600; }
.proof-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.bridge {
  font-size: 14px; color: var(--ink-3); line-height: 1.55;
  padding-top: 18px; border-top: 1px dashed var(--line-2);
  display: flex; gap: 12px; align-items: start;
}
.bridge-mark {
  font-family: 'JetBrains Mono', monospace;
  color: var(--safety); font-weight: 700; font-size: 18px; line-height: 1;
}
.bridge strong { color: var(--ink); font-weight: 600; }

.diagram { padding: 32px; background: var(--paper-2); position: relative; }
.diagram::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.diag-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 24px; position: relative;
}
.diag-flow {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: center; gap: 8px;
  position: relative;
}
.diag-col { display: flex; flex-direction: column; gap: 14px; }
.diag-col.diag-mid { align-items: center; }
.diag-arrows { height: 200px; position: relative; }
.diag-arrows svg { width: 100%; height: 100%; }
.diag-node {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.diag-node-name {
  font-weight: 600; color: var(--ink); font-size: 14px;
  letter-spacing: -0.01em;
}
.diag-node-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.04em; margin-top: 3px;
}
.diag-node--pipe {
  background: var(--ink); color: white;
  border-color: var(--ink);
}
.diag-node--pipe .diag-node-name { color: white; }
.diag-node--pipe .diag-node-sub { color: rgba(255,255,255,0.6); }
.diag-node--out {
  background: white;
  border: 2px solid var(--safety);
  box-shadow: 0 8px 24px rgba(255,106,19,0.18), var(--shadow-sm);
}
.diag-node--out .diag-node-name { color: var(--safety); }

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 1px;
  background: var(--line);
}
@media (max-width: 980px) {
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-stats .wide { grid-column: span 2; }
}
.ps {
  background: white;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.ps.wide { background: #fcfbf7; }
.psv {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700; color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.psv-sm { font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.psv-sm .arr { color: var(--safety); font-weight: 700; }
.psl {
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* TEMPLATES — comparison */
.tpl {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.tpl::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  opacity: 0.5; pointer-events: none;
}
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}
@media (max-width: 860px) {
  .tpl-grid { grid-template-columns: 1fr; gap: 16px; }
}
.tpl-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tpl-card--bad { background: #faf7f5; border-color: rgba(226,68,92,0.18); }
.tpl-card--good { background: white; border-color: rgba(255,106,19,0.28); box-shadow: 0 12px 32px rgba(255,106,19,0.10), var(--shadow-sm); }
.tpl-card-head {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-2);
}
.tpl-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 3px;
  align-self: flex-start;
}
.tpl-tag--bad { background: rgba(226,68,92,0.10); color: var(--red); }
.tpl-tag--good { background: var(--safety); color: white; }
.tpl-sub { font-size: 13px; color: var(--ink-3); }
.tpl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl-list li {
  font-size: 15px; line-height: 1.4;
  display: flex; gap: 12px; align-items: start;
}
.tpl-list--bad li { color: var(--ink-3); }
.tpl-list--good li { color: var(--ink); font-weight: 500; }
.tpl-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
}
.tpl-mark--bad { background: rgba(226,68,92,0.10); color: var(--red); }
.tpl-mark--good { background: var(--safety); color: white; }
.tpl-divider {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
@media (max-width: 860px) {
  .tpl-divider { padding: 8px 0; }
}
.tpl-vs {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--ink); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 6px var(--paper-2), 0 12px 24px rgba(14,24,34,0.18);
}

/* Construction tape divider */
.tape {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--caution) 0 18px,
    #1a1a1a 18px 36px
  );
}

/* Hard hat measurement ruler */
.ruler {
  height: 24px;
  background:
    linear-gradient(to bottom, transparent 0, transparent 12px, var(--ink-3) 12px, var(--ink-3) 13px, transparent 13px),
    repeating-linear-gradient(to right,
      transparent 0, transparent 19px,
      var(--ink-3) 19px, var(--ink-3) 20px
    );
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-3);
}

/* Anim */
.fade-in { opacity: 0; transform: translateY(16px); transition: all 0.7s var(--ease); }
.fade-in.in { opacity: 1; transform: translateY(0); }

/* Badge / sticker */
.cert-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}
.cert-badge .blue {
  width: 8px; height: 8px; background: var(--monday); border-radius: 2px;
}
.cert-badge strong { color: var(--ink); font-weight: 600; }


/* ============================================================
   V3 ADDITIONS
   ============================================================ */

/* Four-systems card — UI snippet visualizations */
.svc { display: flex; flex-direction: column; min-height: 460px; padding: 28px 28px 0; }
.svc h3 { margin-bottom: 10px; }
.svc > p { font-size: 14px; }
.svc ul { margin: 14px 0 18px; }
.svc-snippet {
  margin: 18px -28px 0;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--paper) 0%, #f5f3ec 100%);
  border-top: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.svc-snippet-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em;
  color: var(--ink-mute); text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.svc-snippet-label .live {
  color: var(--green); display: inline-flex; align-items: center; gap: 4px;
}
.svc-snippet-label .live::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--green); display: inline-block;
}

/* CRM card — mini pipeline */
.mini-pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.mp-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 8px;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 88px;
}
.mp-col-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.06em;
  color: var(--ink-3); text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
.mp-col-h .d { width: 6px; height: 6px; border-radius: 1px; display: inline-block; }
.mp-card {
  background: var(--paper);
  border-radius: 3px;
  padding: 5px 6px;
  font-size: 9.5px; color: var(--ink); font-weight: 500;
  border-left: 2px solid var(--monday);
  line-height: 1.25;
}
.mp-card.s { border-left-color: var(--safety); }
.mp-card.g { border-left-color: var(--green); }
.mp-card .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; color: var(--ink-3); display: block; margin-top: 2px;
}

/* Handoff card — sales → ops flow */
.mini-handoff {
  display: grid; grid-template-columns: 1fr 28px 1fr;
  gap: 0; align-items: center;
}
.mh-side {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 96px;
}
.mh-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-3); text-transform: uppercase;
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 5px;
}
.mh-h .d { width: 6px; height: 6px; border-radius: 1px; display: inline-block; }
.mh-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ink-2);
}
.mh-row .ck {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--green); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
  flex-shrink: 0;
}
.mh-row .ck.empty { background: var(--paper-3); color: transparent; }
.mh-arrow {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.mh-arrow svg { width: 100%; height: 32px; }
.mh-pulse {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--safety); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 11px;
  box-shadow: 0 0 0 4px rgba(255,106,19,0.15);
}

/* Automation card — trigger → action */
.mini-auto {
  display: flex; flex-direction: column; gap: 6px;
}
.ma-row {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center;
}
.ma-row .step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  background: var(--ink); color: white;
  width: 22px; height: 22px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ma-row .step.t { background: var(--monday); }
.ma-row .step.a { background: var(--safety); }
.ma-row .step.f { background: var(--green); }
.ma-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 11px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.ma-card .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em;
}
.ma-card strong { font-weight: 600; }
.ma-line {
  width: 1px; height: 8px; background: var(--line-2); margin-left: 11px;
  border-left: 1px dashed var(--line-3); border-radius: 0;
}

/* Dashboard card — KPI tiles */
.mini-dash {
  display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 6px;
}
.md-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 60px; justify-content: center;
}
.md-tile .v {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 16px;
  color: var(--ink); letter-spacing: -0.03em;
  line-height: 1;
}
.md-tile .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.md-tile.up .v { color: var(--green); }
.md-tile.warn .v { color: var(--red); font-size: 16px; }
.md-tile.chart {
  padding: 8px 10px;
  align-items: stretch; justify-content: space-between;
}
.md-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 24px; margin-top: auto;
}
.md-bars i {
  flex: 1; background: var(--monday);
  border-radius: 1px;
  display: block;
}
.md-bars i:nth-child(1) { height: 35%; opacity: 0.5; }
.md-bars i:nth-child(2) { height: 55%; opacity: 0.6; }
.md-bars i:nth-child(3) { height: 45%; opacity: 0.55; }
.md-bars i:nth-child(4) { height: 75%; opacity: 0.7; }
.md-bars i:nth-child(5) { height: 90%; background: var(--safety); opacity: 1; }
.md-bars i:nth-child(6) { height: 100%; background: var(--safety); opacity: 1; }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.team-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 48px;
}
@media (max-width: 860px) { .team-head { grid-template-columns: 1fr; } }
.team-head h2 { max-width: 22ch; margin-top: 18px; }
.team-head p { color: var(--ink-3); max-width: 44ch; }
.team-head p strong { color: var(--ink); font-weight: 600; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
.team-card {
  background: white;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background 0.2s var(--ease);
}
.team-card:hover { background: var(--paper); }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter 0.3s var(--ease);
}
.team-card:hover .team-photo img { filter: grayscale(0) contrast(1.05); }
.team-photo::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(14,24,34,0.08);
  border-radius: 6px;
  pointer-events: none;
}
.team-info { display: flex; flex-direction: column; gap: 4px; }
.team-name {
  font-weight: 600; color: var(--ink);
  font-size: 15px; letter-spacing: -0.01em;
}
.team-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.team-foot {
  margin-top: 36px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.08em;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.team-foot strong { color: var(--ink); font-weight: 600; }

/* Subtle improvement: pain card better hierarchy */
.pain .quote { font-weight: 500; }
.pain .quote .accent { color: var(--ink); font-weight: 600; }

/* Process step badge */
.how-step .step-num em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em;
  display: block; margin-top: 4px; text-transform: uppercase;
}

/* Final form — text input variant */
.final-form textarea {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  resize: vertical; min-height: 64px;
}
.final-form textarea:focus { outline: none; border-color: var(--ink); background: white; }


/* ============================================================
   V4 — Premium polish + motion layer
   ============================================================ */

/* Scroll reveal primitive — opt-in via .reveal class */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }
.reveal.d5 { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .pill .dot { animation: none; }
}

/* Hero — even tighter v4 */
.hero { padding: 28px 0 44px; }
.hero h1 { font-size: clamp(34px, 4.8vw, 60px); margin: 6px 0 16px; }
.hero-sub { font-size: 16.5px; margin-bottom: 20px; }
.hero-meta { margin-bottom: 14px; }
.hero-trust { margin-top: 18px; }
.hero-cta-row { gap: 14px; }

@media (max-width: 980px) {
  .hero { padding: 22px 0 36px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero-sub { font-size: 16px; }
}
@media (max-width: 600px) {
  .hero-meta { gap: 10px; }
  .hero-meta .pill { font-size: 10.5px; padding: 5px 10px; }
  .hero-cta-row .btn--lg { padding: 14px 20px; font-size: 14px; }
  .hero-cta-row { width: 100%; }
  .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* Hero board — premium float + soft drop */
.board-card {
  transform: translateZ(0);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.hero-grid:hover .board-card {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(14,24,34,0.22), 0 1px 0 rgba(14,24,34,0.06);
}

/* Hero floating chips — sequenced entrance */
.float-chip {
  opacity: 0;
  animation: chip-in 0.7s var(--ease) forwards, float 6s var(--ease) infinite alternate 0.7s;
}
.float-chip[data-chip="1"] { animation-delay: 0.4s, 1.1s; }
.float-chip[data-chip="2"] { animation-delay: 0.8s, 1.5s; }
.float-chip[data-chip="3"] { animation-delay: 1.2s, 1.9s; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stat strip — reveal stagger */
.stat-cell { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stat-strip.in .stat-cell { opacity: 1; transform: translateY(0); }
.stat-strip.in .stat-cell:nth-child(1) { transition-delay: 0.05s; }
.stat-strip.in .stat-cell:nth-child(2) { transition-delay: 0.15s; }
.stat-strip.in .stat-cell:nth-child(3) { transition-delay: 0.25s; }
.stat-strip.in .stat-cell:nth-child(4) { transition-delay: 0.35s; }

/* Logos — stronger contrast */
.logo-cell {
  filter: grayscale(1) contrast(1.05);
  opacity: 0.92;
}
.logo-cell:hover { filter: none; opacity: 1; }
.logo-cell img { max-height: 50px; }
.logo-cell.tall img { max-height: 60px; }

/* Pain cards — premium hover */
.pain {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.pain:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,24,34,0.10);
  z-index: 2;
}
.pain .num .tag { transition: transform 0.2s var(--ease); }
.pain:hover .num .tag { transform: translateX(-2px); }
.pain .icon-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(226,68,92,0.08);
  color: var(--red);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
}

/* Four-system cards — UI snippet motion */
.svc {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc:hover { border-color: var(--ink-mute); }

.mini-pipeline .mp-card {
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.svc:hover .mini-pipeline .mp-card.s {
  background: white;
  transform: translateX(2px);
}

.md-bars i {
  transition: height 0.6s var(--ease);
  transform-origin: bottom;
}
.svc:hover .md-bars i:nth-child(5) { height: 95%; }
.svc:hover .md-bars i:nth-child(6) { height: 100%; }

/* Automation card — flowing pulse on hover */
.ma-row .step {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc:hover .ma-row .step.t { box-shadow: 0 0 0 3px rgba(0,115,234,0.15); }
.svc:hover .ma-row .step.a { box-shadow: 0 0 0 3px rgba(255,106,19,0.18); transition-delay: 0.1s; }
.svc:hover .ma-row .step.f { box-shadow: 0 0 0 3px rgba(0,200,117,0.18); transition-delay: 0.2s; }

/* Handoff card — arrow pulse */
.mh-pulse {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc:hover .mh-pulse {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 6px rgba(255,106,19,0.20);
}

/* Beachley proof — flagship treatment */
.proof-card {
  box-shadow: 0 1px 0 rgba(14,24,34,0.06), 0 24px 80px rgba(14,24,34,0.10);
  border-color: rgba(14,24,34,0.14);
}
.proof-head {
  padding: 32px 36px 24px;
}
.proof-logo img { max-height: 44px; }
.proof-meta .verified-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,200,117,0.10);
  color: #00875a;
  padding: 5px 11px; border-radius: 3px;
  letter-spacing: 0.10em; font-weight: 700;
}
.proof-meta .verified-chip::before {
  content: ""; width: 8px; height: 8px;
  background: var(--green); border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(0,200,117,0.5);
  animation: pulse 2s var(--ease) infinite;
}

/* Beachley diagram — animated data flow */
.diagram { padding: 36px 32px; }
.diag-flow { min-height: 220px; }
.diag-node {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.diag-node--out {
  position: relative;
}
.diag-node--out::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 6px;
  border: 2px solid var(--safety);
  opacity: 0;
  animation: out-glow 3s var(--ease) infinite;
  pointer-events: none;
}
.proof.in .diag-node--out::after { opacity: 1; }
@keyframes out-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,19,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,106,19,0); }
}

/* Animated dashed flow lines */
.diag-arrows svg path {
  stroke-dasharray: 4 4;
  animation: flow 1.6s linear infinite;
}
.diag-arrows svg path[stroke="#ff6a13"] {
  stroke-dasharray: 8 6;
  animation-duration: 1.2s;
}
@keyframes flow {
  to { stroke-dashoffset: -16; }
}

/* Data-particle dots traveling along the path (visual touch) */
.diag-particle {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--safety);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,106,19,0.6);
  pointer-events: none;
  opacity: 0;
}
.proof.in .diag-particle {
  animation: particle-travel 2.4s var(--ease) infinite;
}
.proof.in .diag-particle.p2 { animation-delay: 0.8s; }
.proof.in .diag-particle.p3 { animation-delay: 1.6s; }
@keyframes particle-travel {
  0%   { left: 38%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 78%; opacity: 0; }
}

/* Proof stats — counter rendering */
.psv.counting { font-variant-numeric: tabular-nums; }

/* Templates — VS reveal */
.tpl-card {
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tpl.in .tpl-card--bad { transform: translateX(0); }
.tpl.in .tpl-card--good { transform: translateX(0); }
.tpl-card--bad { transform: translateX(-12px); }
.tpl-card--good { transform: translateX(12px); }
.tpl-list li {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tpl.in .tpl-list li { opacity: 1; transform: translateY(0); }
.tpl.in .tpl-list--bad li:nth-child(1) { transition-delay: 0.20s; }
.tpl.in .tpl-list--bad li:nth-child(2) { transition-delay: 0.27s; }
.tpl.in .tpl-list--bad li:nth-child(3) { transition-delay: 0.34s; }
.tpl.in .tpl-list--bad li:nth-child(4) { transition-delay: 0.41s; }
.tpl.in .tpl-list--bad li:nth-child(5) { transition-delay: 0.48s; }
.tpl.in .tpl-list--bad li:nth-child(6) { transition-delay: 0.55s; }
.tpl.in .tpl-list--good li:nth-child(1) { transition-delay: 0.30s; }
.tpl.in .tpl-list--good li:nth-child(2) { transition-delay: 0.37s; }
.tpl.in .tpl-list--good li:nth-child(3) { transition-delay: 0.44s; }
.tpl.in .tpl-list--good li:nth-child(4) { transition-delay: 0.51s; }
.tpl.in .tpl-list--good li:nth-child(5) { transition-delay: 0.58s; }
.tpl.in .tpl-list--good li:nth-child(6) { transition-delay: 0.65s; }
.tpl-vs { transition: transform 0.6s var(--ease) 0.3s, box-shadow 0.4s var(--ease); }
.tpl-vs:hover { transform: scale(1.05); }

/* Process — stronger step numbers, bigger week labels */
.how-step .step-num {
  font-size: 36px;
  letter-spacing: -0.05em;
}
.how-step .step-time {
  font-size: 12px;
  padding: 5px 10px;
  background: var(--ink);
  color: white;
  letter-spacing: 0.08em;
}
.how-step h3 { font-size: 20px; margin-top: 4px; }
.how-step {
  transition: background 0.3s var(--ease);
}
.how-step:hover { background: var(--paper); }
.how-step:hover .step-num span { color: var(--safety-deep); }

/* Process: timeline progress line through the row (desktop) */
.how-grid { position: relative; }
.how-grid::after {
  content: ""; position: absolute;
  top: 70px; left: 8%; right: 8%;
  height: 2px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}
.how-grid::before {
  content: ""; position: absolute;
  top: 70px; left: 8%;
  height: 2px; width: 0;
  background: var(--safety);
  z-index: 1;
  pointer-events: none;
  transition: width 1.6s var(--ease);
}
.how.in .how-grid::before { width: 84%; }
@media (max-width: 860px) {
  .how-grid::after, .how-grid::before { display: none; }
}

/* Team — premium grid + reveal */
.team-card {
  cursor: default;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-2px); }
.team-photo img { transition: transform 0.5s var(--ease), filter 0.3s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }

/* Final CTA — elevated card */
.final-card {
  box-shadow: 0 1px 0 rgba(14,24,34,0.05), 0 32px 80px rgba(0,0,0,0.40);
  transition: transform 0.5s var(--ease);
}
.final-card:hover { transform: translateY(-2px); }
.final-form input, .final-form select, .final-form textarea {
  padding: 13px 14px;
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.final-form input::placeholder, .final-form textarea::placeholder { color: var(--ink-mute); }
.btn--cta {
  position: relative;
  overflow: hidden;
}
.btn--cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn--cta:hover::after { transform: translateX(120%); }

/* Reassurance line near form */
.reassure-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); margin-top: 12px; text-transform: uppercase;
}
.reassure-line::before {
  content: ""; width: 6px; height: 6px;
  background: var(--green); border-radius: 999px;
}

/* Subtle hero grid parallax-ish */
.hero-bg {
  transition: transform 0.4s var(--ease);
}

/* Mobile pass — extra polish */
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { gap: 18px; margin-bottom: 32px; }
  h2 { font-size: clamp(26px, 7vw, 34px); }
  .stat-cell { padding: 22px 0 22px 18px; }
  .stat-cell .v { font-size: 26px; }
  .pain { padding: 24px; }
  .pain .quote { font-size: 19px; }
  .svc { padding: 24px 24px 0; min-height: 0; }
  .svc-snippet { margin: 16px -24px 0; padding: 16px 18px; }
  .proof-head { padding: 22px 22px 18px; }
  .proof-copy, .diagram { padding: 22px; }
  .diag-flow { grid-template-columns: 1fr; gap: 12px; }
  .diag-arrows { display: none; }
  .tpl-card { padding: 22px; }
  .tpl-vs { width: 44px; height: 44px; font-size: 12px; }
  .how-step { padding: 22px; min-height: 0; }
  .how-step .step-num { font-size: 28px; }
  .team { padding: 64px 0; }
  .team-card { padding: 16px 16px 18px; }
  .team-name { font-size: 14px; }
  .team-role { font-size: 9.5px; }
  .final { padding: 64px 0; }
  .final-card { padding: 22px; }
  .final-grid { gap: 32px; }
  .nav .row { padding: 11px 0; }
  .nav-meta .cert-badge { display: none; }
  .float-chip { display: none; }
}

/* Hide the tape if not toggled (V4 default off) */

/* Hero sub-strong: the "Not templates" line, given its own line */
.hero-sub-strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  background: rgba(253, 224, 71, 0.35);
  border-radius: 3px;
}

/* Team grid: respect 5 cards (only 5 photos provided) */
.team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Logo strip — bumped contrast */
.logo-row { gap: 56px; }
.logo-cell { padding: 10px 14px; }

/* Make the verified-chip a flex container for the dot */
.proof-meta .verified-chip { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 10.5px; }


/* ============================================================
   V4.1 — Founder feature card (Michael) + compact supporting grid
   ============================================================ */

.team-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 1px 0 rgba(14,24,34,0.04), 0 16px 48px rgba(14,24,34,0.06);
  position: relative;
  overflow: hidden;
}
.team-featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--safety);
}

.tf-photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 1 / 1;
  width: 100%;
}
.tf-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
  transition: transform 0.6s var(--ease);
}
.team-featured:hover .tf-photo img { transform: scale(1.03); }

.tf-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 2px;
}

.tf-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 8px 6px 0;
}

.tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.tf-dot {
  width: 7px; height: 7px;
  background: var(--safety);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255,106,19,0.5);
  animation: pulse 2.4s var(--ease) infinite;
}

.tf-name {
  font-family: 'Geist', sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.1;
}

.tf-bio {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 22px;
}
.tf-bio strong { color: var(--ink); font-weight: 600; }

.tf-cred {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.tf-cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.tf-cred-item:last-child { border-right: none; padding-right: 0; }
.tf-cred-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tf-cred-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Supporting grid: 4 across, slightly smaller cards */
.team-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.team-grid--compact .team-card { padding: 14px 14px 16px; }
.team-grid--compact .team-photo {
  aspect-ratio: 1 / 1;
}
.team-grid--compact .team-name { font-size: 14px; }
.team-grid--compact .team-role { font-size: 10px; }

@media (max-width: 880px) {
  .team-featured {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
  .tf-photo { max-width: 220px; aspect-ratio: 1 / 1; }
  .tf-name { font-size: 24px; }
  .tf-bio { font-size: 14.5px; }
  .tf-cred { grid-template-columns: repeat(3, 1fr); }
  .tf-cred-item { padding-right: 10px; }
  .tf-cred-v { font-size: 15px; }
  .tf-cred-l { font-size: 9.5px; }
  .team-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============================================================
   V5 — Case studies section (operational proof cards)
   ============================================================ */

.cases { padding: 88px 0 64px; background: var(--paper); }

.cs-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 36px 0 22px;
}

.cs-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 3px;
  padding: 14px 14px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}
.cs-tab:hover {
  border-color: var(--ink-mute);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,24,34,0.06);
}
.cs-tab.active {
  border-color: var(--line-strong);
  border-left-color: var(--safety);
  background: white;
  box-shadow: 0 12px 32px rgba(14,24,34,0.10);
}
.cs-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  animation: cs-underline 0.4s var(--ease) forwards;
}
@keyframes cs-underline { to { transform: scaleX(1); } }

.cs-tab-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  font-weight: 700;
}
.cs-tab.active .cs-tab-tag { color: var(--safety-deep); }
.cs-tab-client {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

@media (max-width: 1080px) {
  .cs-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cs-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cs-tab { padding: 11px 12px 13px; }
  .cs-tab-client { font-size: 13px; }
}

/* Case-study display card */
.cs-card {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(14,24,34,0.04), 0 24px 60px rgba(14,24,34,0.08);
  overflow: hidden;
  position: relative;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.cs-card-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  align-items: stretch;
}
.cs-card-info {
  padding: 28px 32px;
}
.cs-card-preview {
  background: linear-gradient(180deg, #fafaf6 0%, #f4f3ec 100%);
  border-left: 1px solid var(--line);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.cs-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.cs-meta-tag {
  background: rgba(255,106,19,0.10);
  color: var(--safety-deep);
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.cs-title {
  font-family: 'Geist', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 18px;
}

.cs-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.cs-line p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cs-line-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 0;
  text-align: left;
}
.cs-line-mark--problem { color: var(--red); }
.cs-line-mark--solution { color: var(--mday); }

.cs-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cs-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-stack-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 2px;
}

.cs-stat {
  text-align: right;
  flex-shrink: 0;
  max-width: 220px;
}
.cs-stat-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cs-stat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.4;
}

/* preview side */
.cs-preview-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.cs-mini {
  width: 100%;
  height: auto;
  max-height: 100px;
  display: block;
}
.cs-preview-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.cs-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.cs-foot-arr { color: var(--safety); font-weight: 700; }

@media (max-width: 880px) {
  .cs-card-grid { grid-template-columns: 1fr; }
  .cs-card-preview { border-left: none; border-top: 1px solid var(--line); padding: 22px; }
  .cs-card-info { padding: 22px; }
  .cs-title { font-size: 20px; }
  .cs-line { grid-template-columns: 60px 1fr; gap: 10px; }
  .cs-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cs-stat { text-align: left; max-width: none; }
  .cases { padding: 64px 0 48px; }
}

/* When user clicks a tab, fade-swap the card content */
.cs-card { animation: cs-card-in 0.4s var(--ease); }
@keyframes cs-card-in {
  from { opacity: 0.4; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* V5.1 — Patch: tpl-grid overflow at 860-924px viewport */
@media (max-width: 940px) and (min-width: 861px) {
  .tpl-grid { grid-template-columns: 1fr; gap: 18px; }
  .tpl-divider { display: flex; justify-content: center; padding: 4px 0; }
}

/* V5.2 — Visually unify Cases (carousel) + Proof (Beachley deep-dive)
   Both now read as ONE case-studies block with a shared backdrop tint */

.cases { padding-bottom: 36px !important; }
.proof.section { padding-top: 36px; }

/* Subtle continuation rule between the two */
.cases + .proof {
  position: relative;
}
.cases + .proof::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Tighten the deep-dive eyebrow to feel like a sub-section */
.proof .eyebrow .n { color: var(--safety-deep); }


/* ============================================================
   V6 — Polish pass: orange-forward palette, mid-tone slate breaks,
   micro-anim, sticky case nav, mobile CTA, reduced-motion safety
   ============================================================ */

/* --- 1. Yellow → orange site-wide where it appears as headline accent --- */
.final h2 .acc { color: var(--safety); }     /* was caution */
.proof .acc, .cases h2 .acc { color: var(--safety); }
.case .case-stat .v.up { color: var(--safety); }   /* (legacy block, still defensive) */

/* --- 2. Pain section closing line --- */
.pain-close {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 22px 26px;
  border-left: 3px solid var(--safety);
  background: rgba(255, 106, 19, 0.05);
  border-radius: 0 4px 4px 0;
  max-width: 760px;
}
.pain-close-mark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--safety);
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.pain-close p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pain-close strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- 3. Mid-tone slate band behind Solutions/"What we build" header --- */
/* Subtle layering — not as dark as final CTA, just adds depth */
.soln {
  position: relative;
  background: linear-gradient(
    180deg,
    #ecebe2 0%,
    #f1efe7 100%
  );
}
.soln::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,24,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,24,34,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}
.soln > .wrap { position: relative; z-index: 1; }

/* Add a small orange flag to the section eyebrow for rhythm */
.soln .eyebrow.num,
.cases .eyebrow.num,
.tpl .eyebrow.num {
  position: relative;
}
.soln .eyebrow.num::before,
.cases .eyebrow.num::before,
.tpl .eyebrow.num::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--safety);
  border-radius: 1px;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* --- 4. Logo strip contrast bump --- */
.logos .logo-cell img {
  opacity: 0.85;
  filter: grayscale(0.15) contrast(1.05);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.logos .logo-cell:hover img {
  opacity: 1;
  filter: grayscale(0) contrast(1);
}

/* Logo strip subtle marquee-pulse on the divider lines */
@keyframes logo-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.logos .label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--safety);
  border-radius: 999px;
  margin-right: 10px;
  animation: logo-pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* --- 5. Section heading underline accents (subtle orange undercut) --- */
.section-head h2 {
  position: relative;
}
.section-head h2 .acc::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--safety) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease) 0.2s;
}
.section-head h2 .acc {
  position: relative;
  display: inline-block;
}
.reveal.in .section-head h2 .acc::after,
.section-head .reveal.in h2 .acc::after {
  transform: scaleX(1);
}

/* --- 6. Sticky case-study tabs while in section --- */
.cs-tabs {
  position: sticky;
  top: 64px; /* below nav */
  z-index: 8;
  background: var(--paper);
  padding: 14px 0;
  margin: 22px -8px 22px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom: 1px solid var(--line);
}

/* Mobile: horizontal scroll instead of grid */
@media (max-width: 720px) {
  .cs-tabs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 14px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .cs-tab {
    min-width: 180px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* --- 7. CTA button slightly larger on mobile + spacing --- */
@media (max-width: 720px) {
  .btn--cta {
    padding: 16px 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  .nav .btn--cta { width: auto; padding: 11px 16px; font-size: 12px; }
  .final-card .btn--cta { padding: 18px 24px; font-size: 15px; }

  .hero-cta-row { gap: 14px; }
  .pain-grid { gap: 16px; }
  .pain-close { padding: 18px 20px; margin-top: 24px; }
}

/* --- 8. Reduced-motion safety net --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .logos .label::before { animation: none; }
  .cs-card { animation: none; }
}

/* --- 9. Solution cards: small orange corner accent for visual rhythm --- */
.svc {
  position: relative;
}
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.svc.in::before,
.svc:hover::before { transform: scaleX(1); }

/* --- 10. Icon-tag (pain points) — orange ring for consistency --- */
.icon-tag {
  position: relative;
}
.icon-tag::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 106, 19, 0.25);
  pointer-events: none;
}

/* --- 11. Underline-on-bullet for tpl-list (visual rhythm) --- */
.tpl-list li {
  position: relative;
}
.tpl-card--good .tpl-list li::after {
  content: "";
  position: absolute;
  left: 36px; right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, var(--safety) 0%, transparent 100%);
  opacity: 0.25;
}
.tpl-card--good .tpl-list li:last-child::after { display: none; }


/* ============================================================
   V6.1 — New tekconnected. wordmark + slim footer
   ============================================================ */

/* Brand SVG logo (replaces .mark + .name pair) */
.brand--svg {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}
@media (max-width: 720px) {
  .brand-logo { height: 38px; }
}
/* Slightly different sizing on dark footer */
.brand-logo--dark { height: 32px; }

/* Slim footer — replaces the prior 4-column row */
.foot--slim {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
}
.foot--slim .wrap { padding: 0 24px; }
.foot--slim .foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot--slim .foot-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
.foot--slim .foot-rights {
  white-space: nowrap;
}
.foot--slim .foot-sep {
  color: rgba(255,255,255,0.30);
  font-weight: 700;
}
.foot--slim a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.foot--slim a:hover {
  color: var(--safety);
}
@media (max-width: 640px) {
  .foot--slim { padding: 22px 0; }
  .foot--slim .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .foot--slim .foot-links {
    font-size: 11.5px;
    gap: 10px;
  }
}
