:root {
  /* Surfaces — clean, white-dominant */
  --canvas: #fbfcfe;
  --surface: #ffffff;
  --surface-tint: #f3f6fb;
  --rule: #e0e7f0;
  --rule-soft: #eef2f8;
  --dot: #d8e0ec;

  /* Ink — sampled from the logo wordmark */
  --ink: #1c3a6e;
  --ink-deep: #122a52;
  --ink-soft: #4a5a76;
  --ink-mute: #7888a3;

  /* Blue family — refined navy/leaf blues, lifted from the canopy */
  --action: #2557a8;
  --action-hover: #1c4080;
  --action-soft: #4f7fbf;
  --action-pale: #8fb6e6;
  --action-leaf: #c8dcef;
  --action-tint: rgba(37, 87, 168, 0.08);
  --action-glow: rgba(37, 87, 168, 0.18);

  /* Type scale — slightly larger for older readers */
  --body-size: 1.0625rem;
  --body-line: 1.65;
}

html, body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-line);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

/* Section backgrounds — separate by tone, never by line */
.bg-canvas  { background: var(--canvas); }
.bg-surface { background: var(--surface); }
.bg-tint    { background: var(--surface-tint); }

.text-ink       { color: var(--ink); }
.text-ink-soft  { color: var(--ink-soft); }
.text-ink-mute  { color: var(--ink-mute); }
.text-action    { color: var(--action); }

.tabular { font-variant-numeric: tabular-nums; }

/* ============== Navigation ============== */
.nav-shell {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-shell.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 10px 30px -22px rgba(28, 58, 110, 0.18);
}

.nav-logo {
  display: block;
  height: 72px;
  width: auto;
}
@media (max-width: 767px) {
  .nav-logo { height: 56px; }
}

/* ============== Mobile menu ============== */
.nav-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-menu-toggle:hover { border-color: var(--ink-soft); }
.nav-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 767px) {
  .nav-menu-toggle { display: inline-flex; }
}

.nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.75rem 1.25rem 1.75rem;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px -20px rgba(28, 58, 110, 0.22);
}
.nav-mobile-panel.is-open {
  display: flex;
  animation: nav-slide 0.22s ease-out;
}
@keyframes nav-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-link {
  display: block;
  padding: 1.05rem 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  letter-spacing: 0.01em;
}
.nav-mobile-link.is-active { color: var(--action); font-weight: 600; }
.nav-mobile-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.1rem;
  background: var(--action-tint);
  border-radius: 12px;
  margin-top: 1rem;
  text-decoration: none;
}
.nav-mobile-phone svg {
  width: 28px; height: 28px;
  color: var(--action);
  flex-shrink: 0;
}
.nav-mobile-phone-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 600;
}
.nav-mobile-phone-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  line-height: 1.1;
}
.nav-mobile-cta {
  width: 100%;
  margin-top: 0.85rem;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  font-size: 0.95rem;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
  color: var(--ink);
  position: relative;
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--action);
  border-radius: 2px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  transition: color 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.nav-phone:hover { color: var(--action); }
.nav-phone .phone-icon-sm {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--action-tint);
  color: var(--action);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-phone:hover .phone-icon-sm { background: var(--action); color: #fff; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.95rem 1.7rem;
  border-radius: 10px;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  text-decoration: none;
}
.btn-primary {
  background: var(--action);
  color: #ffffff;
  box-shadow: 0 14px 30px -14px rgba(37, 87, 168, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--action-hover);
  box-shadow: 0 22px 44px -16px rgba(37, 87, 168, 0.7), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--surface); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; border-radius: 8px; }

/* ============== Eyebrow ============== */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--action);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 1.5px;
  background: var(--action);
  display: inline-block;
}

/* ============== Brand tagline strip ============== */
.brand-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ============== Cards ============== */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--rule-soft);
  transition: border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  height: 100%;
}
.card:hover {
  border-color: var(--rule);
  box-shadow: 0 28px 50px -28px var(--action-glow);
  transform: translateY(-3px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--action-tint);
  color: var(--action);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.22s ease;
}
.card:hover .card-icon {
  background: var(--action);
  color: #ffffff;
  transform: scale(1.03);
}
.card-icon svg { width: 28px; height: 28px; }

/* ============== Hero canopy (organic, lifted from the logo) ============== */
.hero-canopy {
  position: relative;
  overflow: hidden;
}
.hero-canopy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 460px at 50% 25%, rgba(143, 182, 230, 0.38), transparent 65%),
    radial-gradient(circle 260px at 28% 18%, rgba(79, 127, 191, 0.22), transparent 65%),
    radial-gradient(circle 280px at 74% 22%, rgba(143, 182, 230, 0.30), transparent 65%),
    radial-gradient(circle 220px at 88% 10%, rgba(200, 220, 239, 0.45), transparent 70%),
    radial-gradient(circle 240px at 8% 8%,  rgba(200, 220, 239, 0.34), transparent 70%),
    radial-gradient(circle 320px at 50% 60%, rgba(37, 87, 168, 0.08), transparent 75%);
  pointer-events: none;
}
.hero-canopy::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 35%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-canopy > * { position: relative; z-index: 1; }

/* ============== Carrier marquee ============== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 55s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--action);
  opacity: 0.45;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============== Steps with connector ============== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, var(--action), var(--action-pale));
  opacity: 0.3;
  z-index: 0;
}
.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--action);
  color: var(--action);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 1.35rem;
  box-shadow: 0 0 0 6px var(--canvas);
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
}

/* ============== Stats ============== */
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  color: var(--action);
  margin-left: 2px;
}
.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin-top: 0.85rem;
}

/* ============== Reveal on scroll ============== */
.reveal {
  transition: opacity 0.75s ease, transform 0.75s ease;
}
/* Content is visible by default; only hidden once JS can animate it back in.
   If JS fails to load, everything still renders (and stays crawlable). */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ============== Form ============== */
.field-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.55rem;
}
.field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 1.0625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 4px rgba(37, 87, 168, 0.12);
}
textarea.field { min-height: 170px; resize: vertical; }
select.field {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ============== Big phone block (contact page) ============== */
.phone-block {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem 2.5rem;
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px -40px var(--action-glow);
}
.phone-block .phone-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--action-tint);
  color: var(--action);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phone-block .phone-icon svg { width: 36px; height: 36px; }
.phone-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.phone-number:hover { color: var(--action); }

/* ============== Footer ============== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--rule-soft);
}
.footer-logo { height: 44px; width: auto; display: block; }

/* ============== Section divider ============== */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 87, 168, 0.35), transparent);
  border: 0;
}

/* ============== Pill / chip ============== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--action);
  display: inline-block;
}

/* ============== Founder photo placeholder ============== */
.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(143, 182, 230, 0.30), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(200, 220, 239, 0.40), transparent 60%),
    linear-gradient(135deg, var(--surface-tint), var(--surface));
  border: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  overflow: hidden;
}

/* ============== Portrait card (real photo) ============== */
.portrait-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 50px 90px -42px rgba(28, 58, 110, 0.32), 0 0 0 1px var(--rule-soft);
  aspect-ratio: 4 / 5;
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, transparent 65%, rgba(18, 42, 82, 0.18) 100%);
  pointer-events: none;
}

.portrait-nameplate {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.portrait-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.portrait-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 2px;
}
.portrait-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--action);
  font-weight: 600;
  flex-shrink: 0;
}

/* Decorative ring behind the portrait — soft brand halo */
.portrait-wrap { position: relative; }
.portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 20%, rgba(143, 182, 230, 0.40), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(79, 127, 191, 0.18), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.portrait-wrap > * { position: relative; z-index: 1; }

/* ============== Pull quote ============== */
.pullquote {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.pullquote::before {
  content: '\201C';
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 9rem;
  color: var(--action);
  opacity: 0.18;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}
.pullquote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.pullquote-rule {
  width: 48px;
  height: 2px;
  background: var(--action);
  margin: 2.25rem auto 1.25rem;
  border-radius: 2px;
}
.pullquote-attribution {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  font-weight: 600;
}

/* ============== Hero logo (about page) ============== */
.hero-brand-mark {
  width: 360px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 26px 36px rgba(28, 58, 110, 0.16));
}

/* ============== Hero mark (centered home-page hero) ============== */
.hero-mark {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 34px 48px rgba(28, 58, 110, 0.18));
}
@media (max-width: 768px) {
  .hero-mark { max-width: 300px; }
}
