/* Silicon Hills — palette + primitives, tuned to logo */

:root {
  /* Silicon Hills brand palette — exact hexes sampled from the official logo (source of truth).
     Navy #002162 · Powder #A1CCFF · Hill-light #B8DBFF · Mist #E9F2FF · Charcoal #374151 · White #FFFFFF */
  --bg:   #ffffff;
  --bg-2: #f4f8fd;
  --bg-3: #ecf3fc;  /* mist — logo back-hill family, softened */

  --ink:      #002162;  /* navy — logo wave + wordmark */
  --ink-2:    #374151;  /* charcoal */
  --ink-soft: #7c8a99;

  --rule:        #d7e6fa;
  --rule-strong: #002162;

  /* Brand blue ramp — anchored on the named brand colors, deepest = navy */
  --blue-1: #ecf3fc;  /* mist — faintest wash */
  --blue-2: #a1ccff;  /* powder — logo front hill */
  --blue-3: #6fa3ec;  /* deeper powder — borders / front accents */
  --blue-4: #2b57a0;  /* interactive blue / CTA (derived, calmed toward navy) */
  --blue-5: #002162;  /* navy — logo wave, titles, emphasis */

  --accent: var(--blue-4);
  --accent-strong: var(--blue-5);

  /* No warm in the brand — neutralized onto the blue ramp */
  --warm-1: #ecf3fc;
  --warm-2: #a1ccff;
  --warm-3: #6fa3ec;
  --warm-4: #2b57a0;

  --hatch: rgba(0, 33, 98, 0.05);
  --shadow: 0 1px 0 0 var(--rule);
  --shadow-card: 0 1px 2px rgba(0, 33, 98, 0.05), 0 6px 18px rgba(0, 33, 98, 0.07);
}

[data-theme="dark"] {
  --bg:   #081026;
  --bg-2: #002162;  /* navy panel — logo navy */
  --bg-3: #0b2a5e;
  --ink:      #e9f2ff;  /* mist */
  --ink-2:    #a1ccff;  /* powder — logo front hill */
  --ink-soft: #8197ad;
  --rule:        #1c3a66;
  --rule-strong: #e9f2ff;

  --blue-1: #0e2c64;
  --blue-2: #21509a;
  --blue-3: #5f93dd;
  --blue-4: #a1ccff;
  --blue-5: #cfe3ff;

  --accent: var(--blue-3);
  --accent-strong: var(--blue-4);
  --hatch: rgba(233, 242, 255, 0.05);

  --warm-1: #0e2c64;
  --warm-2: #21509a;
  --warm-3: #5f93dd;
  --warm-4: #a1ccff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 10px 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.toolbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.005em; color: var(--ink-2);
}
.toolbar .brand .toolbar-mark { width: 56px; height: auto; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 6px 12px; border-radius: 999px;
  cursor: pointer; transition: all 0.12s;
  letter-spacing: -0.005em;
}
.tab:hover { background: var(--bg-2); color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.toolbar .spacer { flex: 1; }
.tweak-note {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--ink-soft); letter-spacing: 0;
}

/* ---------- Stage ---------- */
.stage { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }

.wire-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px; margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
  gap: 16px; flex-wrap: wrap;
}
.wire-meta .title-big {
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 600; color: var(--ink);
  text-transform: none; letter-spacing: -0.015em;
}

.browser-chrome {
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.browser-chrome .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-soft);
}
.browser-chrome .bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.browser-chrome .bar .url {
  flex: 1; text-align: center; padding: 3px 10px;
  border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink-soft); background: var(--bg);
}

/* ---------- Top banner (above nav, like live site) ---------- */
.top-banner {
  background: var(--blue-5);
  color: #fff;
  font-size: 13px;
  padding: 9px 28px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  letter-spacing: -0.005em;
}
.top-banner .banner-cta {
  text-decoration: underline; text-underline-offset: 3px;
  font-weight: 500; cursor: default;
  color: inherit;  /* banner text is #fff on navy — keep an <a> off UA link blue */
}
.top-banner .banner-x { margin-left: 8px; opacity: .65; cursor: default; }

/* ---------- Primitives ---------- */
.box {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px;
  background: var(--bg);
}
.box.dashed { border-style: dashed; }
.box.filled { background: var(--bg-2); }
.box.ink    { background: var(--ink); color: var(--bg); }
.box.tinted { background: var(--blue-1); border-color: color-mix(in oklab, var(--blue-3) 35%, transparent); }
.box.deep   { background: var(--blue-5); color: #fff; border-color: var(--blue-5); }

.ph {
  border: 1px dashed var(--rule);
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--hatch) 10px 11px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-soft);
  text-align: center; padding: 10px; letter-spacing: 0.02em;
}

.label-mono {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px; color: var(--blue-4);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 5px 10px; border: 1px solid color-mix(in oklab, var(--blue-3) 50%, transparent);
  border-radius: 999px; background: color-mix(in oklab, var(--blue-1) 60%, transparent);
}

.h1 { font-size: clamp(34px, 7.5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0; color: var(--ink); }
.h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; margin: 0; }
.h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0; }
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; }
.micro { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }

.hl { color: var(--blue-4); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule);
  background: var(--bg); color: var(--ink);
  padding: 11px 20px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em; cursor: default;
  text-decoration: none;
}
.btn.primary { background: var(--blue-4); color: #fff; border-color: var(--blue-4); }
.btn.accent  { background: var(--blue-5); color: #fff; border-color: var(--blue-5); }
.btn.ghost   { background: transparent; border-color: transparent; color: var(--ink-2); padding-left: 4px; padding-right: 4px; }
.btn.lg      { padding: 14px 26px; font-size: 15px; }

/* Booking CTAs ship as real <a> links. The .btn/.banner-cta classes already win over
   the UA link color, so only the cursor and underline need neutralizing — scoped to
   anchors so the genuinely-inert .btn spans keep cursor: default. */
a.btn, a.banner-cta { cursor: pointer; }

.annot {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px; color: var(--blue-4);
  position: relative; padding-left: 16px; line-height: 1.4; letter-spacing: 0.02em;
}
.annot::before { content: '↳'; position: absolute; left: 0; top: 0; }

.rule { border: none; border-top: 1px solid var(--rule); margin: 20px 0; }
.rule.dashed { border-top-style: dashed; }

.row { display: flex; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.hidden { display: none !important; }

.mark-inline { display:inline-block; vertical-align: middle; }
/* Theme-aware logo mark: show full-color on light, recolored white on dark */
.sh-mark--dark { display: none; }
[data-theme="dark"] .sh-mark--light { display: none; }
[data-theme="dark"] .sh-mark--dark { display: block; }
.horizon { display: block; width: 100%; height: auto; }

/* Founder card — centered layout, uniform photo treatment */
.founder-card {
  padding: 28px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.founder-card .ph-text { text-align: left; }
.founder-bio {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 14px 0 0;
  text-align: left;
}

/* Founder portrait — uniform 112px circle, soft logo-blue ring, face-anchored crop */
.founder-photo {
  width: 112px; height: 112px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--blue-3) 45%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue-1) 70%, transparent);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  margin: 0 auto;
  flex-shrink: 0;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%; /* face-anchored — keeps eyes near upper third */
  display: block;
}
.ph-text {
  display: inline-block;
  background: repeating-linear-gradient(135deg, transparent 0 8px, var(--hatch) 8px 9px);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink-soft);
}

/* The difference — generic vs tailored comparison */
.diff { display: flex; flex-direction: column; gap: 14px; }
.diff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diff-head { gap: 14px; }
.diff-label {
  display: inline-block;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 5px 10px; border-radius: 999px;
}
.diff-label.generic {
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--bg-2) 70%, transparent);
}
.diff-label.sh {
  color: var(--blue-4);
  border: 1px solid color-mix(in oklab, var(--blue-3) 50%, transparent);
  background: color-mix(in oklab, var(--blue-1) 60%, transparent);
}
.diff-side {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.diff-side.generic {
  background: var(--bg-2);
  color: var(--ink-soft);
  font-style: italic;
}
.diff-side.sh {
  background: color-mix(in oklab, var(--blue-1) 45%, var(--bg));
  border-color: color-mix(in oklab, var(--blue-3) 38%, transparent);
  color: var(--ink);
  font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
}
.diff-check {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-4); color: #fff;
  display: inline-grid; place-content: center;
  font-size: 11px; margin-top: 1px;
}
.diff-row.diff-intro { margin-bottom: 4px; }
.diff-intro .diff-side { font-style: normal; font-weight: 400; font-size: 14px; line-height: 1.6; }
.diff-intro .diff-side.generic { color: var(--ink-2); }
@media (max-width: 720px) {
  .diff-row { grid-template-columns: 1fr; }
  .diff-head { display: none; }
  .diff-side.generic::before { content: 'The typical model'; display:block; font-style: normal;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.12em; margin-bottom: 6px; color: var(--ink-soft); }
  .diff-side.sh::before { content: 'The Silicon Hills way'; display:block;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.12em; margin-bottom: 6px; color: var(--blue-4); width:100%; }
  .diff-side.sh { flex-wrap: wrap; }
}

/* Card polish — soft hover lift on interactive cards (matches dashboard) */
.stat-card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-3), var(--blue-4));
  opacity: 0; transition: opacity 0.16s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in oklab, var(--blue-3) 35%, var(--rule));
}
.stat-card:hover::before { opacity: 1; }
.example-chip {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.example-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* Services grid — 5 chips, packs to 5 on wide, then 3, then 2, then 1 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Examples chip card — denser than .box */
.example-chip {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
  transition: border-color 0.15s;
}
.example-chip:hover { border-color: var(--blue-3); }

/* Phone-call demo card (hero illustration on direction 1) */
.call-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.call-card .agent-row { display:flex; align-items:center; gap:12px; }
.call-card .agent {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-4); color: #fff;
  display:grid; place-content:center;
  font-weight: 600; font-size: 18px;
}
.call-card .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bc28a; box-shadow: 0 0 0 6px rgba(43, 194, 138, 0.18);
}
.call-card .field-row {
  display:flex; justify-content:space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--rule); font-size: 14px;
}
.call-card .field-row:last-of-type { border-bottom: none; }
.call-card .label { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.call-card .val { color: var(--ink); font-weight: 500; }
.call-card .sms-row {
  margin-top: 14px; padding: 10px 12px;
  background: var(--blue-1); border-radius: 10px;
  font-size: 13px; color: var(--blue-5);
  display:flex; align-items:center; gap:8px;
}

/* Marquee strip (proof bar, like live site) */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 14px 0;
  overflow: hidden;
  font-size: 13px; color: var(--ink-2);
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: scroll-x 40s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 6px; }
.marquee-track span::before { content: '✓'; color: var(--blue-4); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Step number badge */
.step-num {
  display: inline-grid; place-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-1); color: var(--blue-5);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 28px;
  background: var(--bg-2);
  padding: 0;
}
.site-footer-inner { padding: 28px; }
.site-footer a { color: inherit; text-decoration: none; transition: color 0.12s; }
.site-footer a:hover { color: var(--blue-4); }
.footer-fine {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em;
}

/* ---------- Tweaks panel (unchanged surface) ---------- */
.tweaks-panel {
  position: fixed; right: 18px; bottom: 18px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 14px; z-index: 100; display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  margin: 0 0 10px;
  font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.01em;
}
.tweaks-panel .close-x {
  border: 1px solid var(--rule); border-radius: 6px;
  width: 22px; height: 22px;
  display: inline-grid; place-content: center;
  font-size: 12px; cursor: pointer; background: transparent; color: var(--ink); font-family: inherit;
}
.tweaks-panel .group { border-top: 1px solid var(--rule); padding: 10px 0 6px; }
.tweaks-panel .group:first-of-type { border-top: none; padding-top: 0; }
.tweaks-panel .group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.tweaks-panel label { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.tweaks-panel input[type="checkbox"] {
  appearance: none; width: 15px; height: 15px;
  border: 1px solid var(--rule); border-radius: 4px;
  background: transparent;
  display: inline-grid; place-content: center; cursor: pointer;
}
.tweaks-panel input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.tweaks-panel input[type="checkbox"]:checked::after {
  content: ''; width: 7px; height: 4px;
  border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  background: var(--bg-2); padding: 2px; gap: 2px;
}
.seg button {
  border: none; background: transparent;
  padding: 5px 10px;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; border-radius: 6px;
}
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.tweaks-fab {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: grid; place-content: center;
  font-size: 16px; cursor: pointer;
  z-index: 99; color: var(--ink); font-family: inherit;
}
.tweaks-fab.hidden { display: none; }

/* ---------- Nav (shared) ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.nav .links { display: flex; gap: 22px; font-size: 14px; }
.nav .links a { color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color 0.12s; }
.nav .links a:hover { color: var(--ink); }
.browser-chrome section[id] { scroll-margin-top: 84px; }
.nav .cta-row { display: flex; gap: 10px; align-items: center; }

/* Hamburger control — hidden on desktop, shown on mobile */
.nav .nav-toggle, .nav .nav-burger { display: none; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 10px 9px; margin-left: auto;
    border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); cursor: pointer;
  }
  .nav .nav-burger span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav .links, .nav .cta-row { display: none; width: 100%; }
  .nav .nav-toggle:checked ~ .links {
    display: flex; flex-direction: column; gap: 2px;
    width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  }
  .nav .nav-toggle:checked ~ .links a { padding: 11px 2px; font-size: 15px; }
  .nav .nav-toggle:checked ~ .cta-row {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    width: 100%; margin-top: 12px;
  }
  .nav .nav-toggle:checked ~ .cta-row .btn { justify-content: center; }
  .nav .nav-toggle:checked ~ .cta-row .btn.ghost { padding: 11px 20px; }
  /* burger morphs to an X when open */
  .nav .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Founders (grid-3) + About (grid-2) stack down on smaller screens */
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stage { padding-left: 0; padding-right: 0; }
}

/* ---------- Direction 01R — refined Calm Hero ---------- */

.eyebrow.warm {
  color: var(--warm-4);
  border-color: color-mix(in oklab, var(--warm-3) 45%, transparent);
  background: color-mix(in oklab, var(--warm-1) 60%, transparent);
}

.tx-star { color: var(--warm-3); font-size: 0.9em; }

.d1r-hero {
  background:
    radial-gradient(900px 420px at 50% -80px, color-mix(in oklab, var(--warm-1) 55%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in oklab, var(--blue-1) 26%, var(--bg)) 100%);
}

/* Process rail — five phases on a dashed line */
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 18px; left: 40px; right: 40px;
  border-top: 1px dashed var(--rule);
}
.phase-card { position: relative; }
.phase-card .step-num {
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.phase-card .step-num.warm {
  background: var(--warm-1);
  color: var(--warm-4);
}
.phase-week {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 14px;
}
.phase-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 5px; color: var(--ink); }
.phase-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 0; }
@media (max-width: 1000px) {
  .process-rail { grid-template-columns: 1fr 1fr; }
  .process-rail::before { display: none; }
}
@media (max-width: 560px) {
  .process-rail { grid-template-columns: 1fr; }
}

/* Contact / intake */
.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
.contact-card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
}
.contact-card .frow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 640px) {
  .contact-card .frow { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field:first-child { margin-top: 0; }
.frow .field { margin-top: 14px; }
.field label {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.field input, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field input:focus, .field textarea:focus {
  border-color: var(--blue-3);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue-2) 35%, transparent);
}
.next-step {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 18px;
}
.next-step .step-num { width: 28px; height: 28px; font-size: 13px; flex-shrink: 0; }
.next-step p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.contact-meta {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px dashed var(--rule);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}

/* Contact form wiring (CONTACT-FORM-1) — new surface, scoped to the form.
   Nothing here affects any other page. */

/* The submit control is now a real <button>; .btn spans stay inert (cursor:default),
   so re-enable the pointer only for this interactive button, mirroring the a.btn rule. */
#contact-form button[type="submit"] { cursor: pointer; }
#contact-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

/* Honeypot — visually-hidden (NOT display:none, which some screen readers still skip
   inconsistently); paired with aria-hidden + tabindex=-1 on the field so humans and AT
   never reach it, while the input stays in the DOM for bots to fill. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* Error state — restrained red wash (brand has no red token; scoped here only). */
.form-status {
  margin-top: 16px; padding: 12px 14px;
  border-radius: 10px;
  background: #fdecec; border: 1px solid #f1b7b7;
  color: #8a1f1f; font-size: 13.5px; line-height: 1.5;
}
.form-status a { color: #8a1f1f; font-weight: 600; text-decoration: underline; }

/* Success state — replaces the form, inherits .contact-card. */
.contact-success { text-align: left; }
.contact-success .success-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--blue-4); color: #fff;
  font-size: 20px; font-weight: 600; line-height: 1;
}
