/* Harrington Data Co — shared stylesheet
   Design tokens and components derived from the Claude Design canvas
   ("Harrington Data Co website design"). */

:root {
  --color-bg: #F7F4EF;
  --color-bg-soft: #FBFAF7;
  --color-surface: #FFFFFF;
  --color-navy: #1B2A41;
  --color-navy-muted: #C9D2DE;
  --color-text: #2B2B2B;
  --color-muted: #5A5E60;
  --color-accent: #1F6F5C;
  --color-accent-hover: #1A5C4C;
  --color-accent-hover-on-dark: #248069;
  --color-accent-tint: rgba(31, 111, 92, 0.1);
  --color-accent-tint-soft: rgba(31, 111, 92, 0.06);
  --color-accent-tint-border: rgba(31, 111, 92, 0.16);

  --line-1: rgba(27, 42, 65, 0.07);
  --line-2: rgba(27, 42, 65, 0.08);
  --line-3: rgba(27, 42, 65, 0.1);
  --line-4: rgba(27, 42, 65, 0.12);
  --line-6: rgba(27, 42, 65, 0.16);

  --shadow-xs: 0 1px 2px rgba(27, 42, 65, 0.04);
  --shadow-sm: 0 10px 28px rgba(27, 42, 65, 0.06);
  --shadow-md: 0 14px 36px rgba(27, 42, 65, 0.07);
  --shadow-btn: 0 1px 2px rgba(27, 42, 65, 0.12);
  --shadow-btn-glow: 0 1px 2px rgba(27, 42, 65, 0.12), 0 6px 18px rgba(31, 111, 92, 0.18);

  --radius: 6px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-wide: 1180px;
  --container-narrow: 880px;

  --color-bg-nav-scrolled: #DDE4DD;
}

* { box-sizing: border-box; }

/* Author styles like `.field { display: flex }` otherwise beat the browser's
   default [hidden] { display: none }, since origin outranks specificity in
   the cascade — so any element toggled via the hidden property needs this. */
[hidden] { display: none !important; }

html { color-scheme: light; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-hover); }

::selection { background: rgba(31, 111, 92, 0.18); }

img { max-width: 100%; }

button { font-family: inherit; }

input, select, textarea { font-family: inherit; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

/* Layout */

.wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.wrap-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* Section spacing */

.section-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.section-hero-tight { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.section-hero-narrow { padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.section { padding: 0 0 clamp(48px, 6vw, 88px); }
.section-tight { padding: 0 0 clamp(40px, 5vw, 72px); }
.section-loose { padding: 0 0 clamp(32px, 4vw, 56px); }
.section-loose-tight { padding: 0 0 clamp(32px, 4vw, 48px); }
.section-cta { padding: 0 0 clamp(56px, 7vw, 96px); }

.section-divider {
  padding-top: clamp(44px, 5.5vw, 76px);
  border-top: 1px solid var(--line-4);
}

/* Eyebrow / labels */

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.eyebrow-icon {
  display: flex;
  align-items: center;
  gap: 9px;
}

.badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-tint);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}

.badge-pill-sm {
  font-size: 11.5px;
  padding: 6px 11px;
}

/* Headings */

h1.display {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--color-navy);
}

h1.display-md {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

h1.display-sm {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

h2.headline {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--color-navy);
}

h2.headline-sm {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: var(--color-navy);
}

.lede {
  font-size: 18px;
  line-height: 1.62;
  color: var(--color-text);
}

.sub {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Buttons */

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  color: #FFFFFF;
  background: var(--color-accent);
  box-shadow: var(--shadow-btn-glow);
}
.btn-primary:hover { background: var(--color-accent-hover); color: #FFFFFF; }

.btn-secondary {
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--line-4);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--line-4);
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
}
.btn-outline-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }

.cta-banner .btn-primary:hover { background: var(--color-accent-hover-on-dark); }

/* Cards */

.card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}

.card-elevated {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs), var(--shadow-md);
}

/* Grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid-3.tight { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3.wide { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* CTA banner */

.cta-banner {
  background: var(--color-navy);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  justify-items: start;
}

.cta-banner.centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(32px, 4vw, 48px);
}

.cta-banner h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.cta-banner.centered h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.024em;
  margin: 0 0 10px;
}

.cta-banner p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-navy-muted);
  margin: 0;
}

.cta-banner.centered p { margin: 0 auto 26px; }

@media (max-width: 860px) {
  .cta-banner { grid-template-columns: 1fr; }
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-bg);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
body.is-scrolled .site-nav {
  background: var(--color-bg-nav-scrolled);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 64px);
}

.site-nav .brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.site-nav .brand:hover { color: var(--color-navy); }
.site-nav .brand span { color: var(--color-accent); }

.nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--color-navy);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--color-accent); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.site-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a.nav-link:hover { color: var(--color-accent); }
.site-nav a.nav-link.current { color: var(--color-accent); }

/* Services dropdown */

.nav-dropdown {
  position: relative;
  z-index: 40;
}

.site-nav .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav .nav-trigger:hover,
.site-nav .nav-trigger.current { color: var(--color-accent); }
.site-nav .nav-trigger svg { transition: transform 160ms ease; }
.site-nav .nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  width: 268px;
  max-width: calc(100vw - 32px);
  background: var(--color-surface);
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(27, 42, 65, 0.06), 0 18px 44px rgba(27, 42, 65, 0.14);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
/* Bridges the 14px gap above the menu so moving the pointer from the
   trigger down into the menu doesn't count as leaving the dropdown. */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15px;
  height: 15px;
}

/* Below the breakpoint, the nav links collapse behind a hamburger toggle
   into a full-width panel; the Services dropdown becomes a static, always-
   inline accordion within that panel instead of a floating card. */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--color-surface);
    border-top: 1px solid var(--line-3);
    box-shadow: 0 18px 44px rgba(27, 42, 65, 0.14);
    padding: 10px clamp(20px, 5vw, 64px) 22px;
    z-index: 45;
  }
  .nav-panel.is-open { display: flex; }

  .site-nav a.nav-link,
  .site-nav .nav-trigger { padding: 13px 2px; }

  .nav-dropdown { position: static; }
  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 4px 4px;
  }
  .nav-menu::before { display: none; }

  .site-nav .nav-cta { display: block; text-align: center; margin-top: 8px; }
}

.nav-menu a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 4px;
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: rgba(31, 111, 92, 0.07); }
.nav-menu svg { flex-shrink: 0; margin-top: 2px; }
.nav-menu .item-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}
.nav-menu .item-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-muted);
  margin-top: 2px;
}

.site-nav .nav-cta {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--color-accent);
  padding: 11px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}
.site-nav .nav-cta:hover { background: var(--color-accent-hover); color: #FFFFFF; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-3);
  margin-top: 16px;
}

.site-footer .wrap {
  padding: 40px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}
.site-footer .brand span { color: var(--color-accent); }

.site-footer .links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .links a {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
}
.site-footer .links a:hover { color: var(--color-accent); }

.site-footer .copyright {
  font-size: 13px;
  color: var(--color-muted);
}

/* Home: how-it-starts card */

.start-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs), var(--shadow-md);
}

.start-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.start-row .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 2px;
  min-width: 22px;
}
.start-row .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}
.start-row .desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Home hero grid */

.hero-tagline {
  font-size: clamp(21px, 2.9vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
  color: var(--color-accent);
  max-width: 26ch;
  margin: 0 0 44px;
}

/* Home: numbers-flow diagram */

.flow-card {
  background-color: var(--color-surface);
  background-image: radial-gradient(rgba(27, 42, 65, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.flow-connector { display: block; }
.flow-connector-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  color: var(--color-accent);
}
@media (max-width: 860px) {
  .flow-row { grid-template-columns: 1fr; gap: 12px; }
  .flow-connector { display: none; }
  .flow-connector-mobile { display: flex; }
}

.flow-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-radius: 4px;
  padding: 14px;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.flow-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.flow-btn.is-active { background: var(--color-accent-tint-soft); box-shadow: inset 0 0 0 1px var(--color-accent-tint-border); }

.flow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B4B0A8;
  transition: color 200ms ease;
}
.flow-btn.is-active .flow-label { color: var(--color-accent); }

.flow-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6E7378;
}
.flow-source.muted { color: var(--color-muted); }
.flow-source .dot {
  display: block;
  width: 7px;
  height: 7px;
  border: 1.4px solid rgba(27, 42, 65, 0.35);
  border-radius: 50%;
  background: #FFFFFF;
  flex: none;
}
.flow-source .dot.dashed { border-style: dashed; }

.flow-hub {
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--line-4);
  border-radius: var(--radius);
}
.flow-hub .title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; color: #3C4A5C; }
.flow-hub .desc { font-size: 13.5px; line-height: 1.55; color: var(--color-muted); }

.flow-outcome {
  display: flex;
  align-items: center;
  gap: 11px;
}
.flow-outcome .sq { display: block; width: 9px; height: 9px; background: var(--color-accent); flex: none; }
.flow-outcome .text { font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: #17594A; }

svg.flow path { animation: flow 1.8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  svg.flow path { animation: none; }
}
@keyframes flow { to { stroke-dashoffset: -32; } }

.flow-detail {
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(22px, 2.6vw, 28px);
  border-top: 1px dashed var(--line-6);
}
.flow-detail .stage { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #B4B0A8; margin-bottom: 10px; }
.flow-detail h3 { font-size: clamp(19px, 2.1vw, 23px); font-weight: 800; letter-spacing: -0.022em; line-height: 1.2; color: var(--color-navy); margin: 0 0 10px; }
.flow-detail p { font-size: 16px; line-height: 1.65; color: var(--color-text); margin: 0; max-width: 74ch; }

/* Home: two practices */

.practices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 860px) { .practices-grid { grid-template-columns: 1fr; } }

.practice-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.practice-card h3 {
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--color-navy);
  line-height: 1.18;
  margin: 0 0 12px;
}
.practice-card > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 24px;
}
.practice-card > a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}
.practice-card > a:hover { color: var(--color-accent-hover); }

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.dash-list .item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dash-list .item .icon { display: flex; flex: none; color: var(--color-accent); }
.dash-list .item .text { font-size: 15.5px; line-height: 1.5; color: var(--color-text); }

/* Home: interactive process rail */

.rail-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}
.rail-inner { padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3vw, 40px) clamp(26px, 3vw, 36px); }
.rail-track-wrap { position: relative; }
.rail-track {
  position: absolute;
  left: 10%;
  width: 80%;
  top: 19px;
  height: 2px;
  background: var(--line-4);
}
.rail-track .fill {
  height: 2px;
  background: var(--color-accent);
  transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 12px;
}
.rail-stage {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.rail-stage:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; border-radius: 4px; }
.rail-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #FFFFFF;
  color: var(--color-muted);
  border: 2px solid var(--line-4);
  box-shadow: 0 0 0 6px #FFFFFF;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.rail-stage.is-done .rail-dot,
.rail-stage.is-active .rail-dot {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}
.rail-stage.is-active .rail-dot { box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 10px rgba(31, 111, 92, 0.16); }
.rail-name {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--color-muted);
  transition: color 200ms ease;
}
.rail-stage.is-active .rail-name { color: var(--color-navy); }
.rail-duration { display: block; font-size: 14px; line-height: 1.4; color: var(--color-muted); margin-top: 4px; }
.rail-detail {
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: clamp(24px, 2.6vw, 30px);
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 767px) { .rail-detail { grid-template-columns: 1fr; } }
.rail-detail .stage-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.rail-detail h3 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 10px;
}
.rail-detail .summary { font-size: 16px; line-height: 1.65; color: var(--color-text); margin: 0; }
.rail-output {
  background: var(--color-bg-soft);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  padding: 22px;
}
.rail-output .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.rail-output .value { font-size: 15.5px; line-height: 1.6; color: var(--color-navy); font-weight: 600; margin: 0 0 18px; }
.rail-next {
  display: inline-block;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
}
.rail-next:hover { color: var(--color-accent-hover); }
.rail-next:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.rail-footnote {
  margin: 0;
  padding: 18px clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line-1);
  background: var(--color-bg-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}
.rail-mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.rail-mobile-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rail-mobile-nav .rail-dot {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 10px rgba(31, 111, 92, 0.16);
}
.rail-mobile-nav .step {
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.rail-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-4);
  background: var(--color-surface);
  color: var(--color-navy);
  cursor: pointer;
}
.rail-mobile-btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.rail-mobile-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.rail-mobile-btn:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 767px) {
  .rail-track-wrap { display: none; }
  .rail-mobile-nav { display: flex; }
}

/* Way-we-work / service cards */

.work-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.work-card h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
.work-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 22px;
  flex: 1;
}
.work-card a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  align-self: flex-start;
}
.work-card a:hover { color: var(--color-accent-hover); }

/* Process table */

.process-table {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}
.process-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: 16px;
  align-items: baseline;
  padding: 22px 28px;
  border-top: 1px solid var(--line-1);
}
.process-row .num { font-size: 13px; font-weight: 700; color: var(--color-accent); }
.process-row .stage { font-size: 17px; font-weight: 700; color: var(--color-navy); letter-spacing: -0.018em; }
.process-row .duration { font-size: 15px; color: var(--color-muted); }
.process-row .output { font-size: 15.5px; line-height: 1.55; color: var(--color-text); }
.process-note {
  margin: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--line-1);
  background: var(--color-bg-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}
@media (max-width: 767px) {
  .process-row {
    grid-template-columns: 32px 1fr;
    row-gap: 4px;
  }
  .process-row .duration, .process-row .output { grid-column: 2; }
}

/* Differentiator cards */

.diff-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}
.diff-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 10px;
}
.diff-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
}

/* Services: jump links + service cards */

.jump-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-card .question {
  background: rgba(31, 111, 92, 0.08);
  padding: 22px 28px;
  border-bottom: 1px solid rgba(31, 111, 92, 0.14);
}
.service-card .question p {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--color-accent);
  margin: 0;
}
.service-card .body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 10px;
}
.service-card p.desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 22px;
  flex: 1;
}
.service-card .basis-block {
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.service-card .basis {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.service-card .cta {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}
.service-card .cta:hover { color: var(--color-accent); }

.cross-link {
  font-size: 15px;
  color: var(--color-muted);
}
.cross-link a { font-weight: 600; text-decoration: none; }

/* FAQ */

.faq-box {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}
.faq-box details { border-top: 1px solid var(--line-1); }
.faq-box summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::marker { content: ""; }
.faq-box .num { font-size: 13px; font-weight: 700; color: var(--color-accent); min-width: 24px; }
.faq-box .q {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.018em;
  line-height: 1.4;
  flex: 1;
}
.faq-box .mark {
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.faq-box details[open] .mark { transform: rotate(45deg); }
.faq-box details[open] .q { color: var(--color-accent); }
.faq-box .answer {
  padding: 0 28px 24px 68px;
}
.faq-box .answer p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--color-text);
  max-width: 62ch;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side h1 { max-width: 14ch; }
.contact-side p.lede { max-width: 44ch; margin-bottom: 32px; }

.direct-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.direct-card .label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.direct-card a {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
}
.direct-card a:hover { color: var(--color-accent); }

.confirm-card {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-xs), var(--shadow-md);
}
.confirm-card h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
.confirm-card p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--color-text);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-xs), var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* .field (and .span-all, its full-width sibling shape) are always a
   label followed by one input/content block. Inside a grid parent
   (.field-grid or .conditional-panel) they subgrid into the parent's row
   tracks, so every label in a visual row shares one row height and every
   input lines up underneath it — regardless of how many lines any one
   label wraps to. Outside a grid parent (the standalone message field,
   a flex child of .contact-form) grid-row/subgrid are simply inert and
   this collapses to a plain 2-row auto grid, matching the old layout. */
.field, .conditional-panel .span-all {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 7px;
  min-width: 0;
  align-items: start;
}
/* A .field with no row-mates to align with (e.g. a full-width textarea
   standing alone) opts out of the grid/subgrid mechanism entirely via this
   modifier — CSS Grid's implicit "auto" row sizing collapses a tall
   textarea's track to its min-content (one line) when the item would
   otherwise stretch, so a plain flex column is both simpler and correct
   here since there's nothing to keep it aligned with anyway. */
.field-solo {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.field input, .field select, .field textarea {
  font-size: 15.5px;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--line-6);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; }

.interest-block {
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
}
.interest-block > .label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.interest-block > .hint {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0 0 12px;
}
.interest-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.interest-btn {
  font-size: 15px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 120ms ease;
  background: var(--color-bg-soft);
  color: var(--color-navy);
  border: 1px solid var(--line-6);
}
.interest-btn.active {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.conditional-panel {
  background: var(--color-accent-tint-soft);
  border: 1px solid var(--color-accent-tint-border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.conditional-panel .panel-title {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}
.conditional-panel .field select,
.conditional-panel .field input {
  background: var(--color-surface);
}
.conditional-panel .span-all { grid-column: 1 / -1; }

.checkbox-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--line-6);
  border-radius: var(--radius);
  padding: 9px 13px;
  cursor: pointer;
}
.checkbox-pill input { accent-color: var(--color-accent); width: 15px; height: 15px; margin: 0; }

.submit-btn {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius);
  padding: 15px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-btn-glow);
}
.submit-btn:hover { background: var(--color-accent-hover); }

/* About: founder profile */

.underline-swipe { animation: swipe 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 260ms both; }
@media (prefers-reduced-motion: reduce) {
  .underline-swipe { animation: none; }
}
@keyframes swipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-portrait { aspect-ratio: 4 / 5 !important; max-width: 360px; }
}

.founder-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-xs), var(--shadow-sm);
}
.founder-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.founder-meta { margin-top: 16px; }
.founder-meta .name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-navy); }
.founder-meta .role { font-size: 14.5px; color: var(--color-muted); margin-top: 3px; }
.founder-meta .email { display: inline-block; font-size: 14.5px; font-weight: 600; text-decoration: none; margin-top: 6px; word-break: break-word; }

.founder-bio { max-width: 64ch; }
.founder-bio p { font-size: 17.5px; line-height: 1.68; color: var(--color-text); margin: 0 0 20px; }
.founder-bio p.emphasis { font-weight: 600; color: var(--color-navy); }
.founder-bio p:last-of-type { margin-bottom: 0; }
