/* =========================================================
   Processes by Design — Design Tokens & Base
   ========================================================= */

:root {
  /* Brand colors (from logo assets) */
  --navy: #14364d;
  --navy-deep: #0e2839;
  --navy-ink: #0a1e2a;
  --teal: #13a6af;
  --teal-dark: #0e7a81;   /* accessible teal for text/links on light bg */
  --teal-tint: #e3f4f5;
  --teal-tint-2: #d3edef;
  --paper: #f6faf9;
  --slate: #4a5d68;
  --slate-soft: #6b7d87;
  --white: #ffffff;
  --border: #dbe6e6;

  /* Semantic */
  --bg-body: var(--paper);
  --text-body: var(--slate);
  --text-heading: var(--navy);
  --focus-ring: #0e7a81;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale */
  --step--1: clamp(0.833rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.4rem, 1.9rem + 2vw, 3.4rem);
  --step-5: clamp(3rem, 2.2rem + 3.2vw, 4.6rem);

  /* Spacing (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --space-9: 9rem;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 40, 57, 0.06), 0 1px 1px rgba(14, 40, 57, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(14, 40, 57, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(14, 40, 57, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;
  --dur-slow: 520ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0b2029;
    --text-body: #c3d2d6;
    --text-heading: #f3f8f8;
    --white: #12313f;
    --paper: #0b2029;
    --border: #1d3b48;
    --teal-tint: #123742;
    --teal-tint-2: #143f4a;
  }
}

/* =========================================================
   Reset / Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.12;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-5); }
}

section { position: relative; }

.eyebrow-link,
.cursor-pointer,
button,
a[href] { cursor: pointer; }

/* =========================================================
   Reveal-on-scroll (one orchestrated pattern, used sparingly)
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-height: 44px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-ink); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--teal); background: var(--teal-tint); }

.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

/* =========================================================
   Nav
   ========================================================= */

.nav-wrap {
  position: fixed;
  top: var(--space-3);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--space-4);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 54, 77, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -14px rgba(10, 25, 35, 0.55);
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); }
.nav-brand svg { height: 26px; width: auto; }
.nav-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--white); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  padding: 6.5rem var(--space-5) var(--space-5);
  gap: var(--space-2);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .btn { margin-top: var(--space-4); align-self: flex-start; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 85% -10%, #1c4d6c 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: var(--white);
  padding-top: 9.5rem;
  padding-bottom: var(--space-8);
  overflow: hidden;
}

.hero-graphic {
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(62vw, 760px);
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 780px) {
  .hero-graphic { opacity: 0.28; width: 92vw; right: -30%; top: 24%; }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: var(--space-5);
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  color: var(--white);
  font-size: var(--step-5);
  max-width: 15ch;
}

.hero-sub {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-stats {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 640px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-4);
}
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.hero-stat dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--white);
}
.hero-stat dt {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   Section headers
   ========================================================= */

.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-7); }

.section-head {
  max-width: 620px;
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: var(--step-4);
  color: var(--navy);
}
.section-head p {
  margin-top: var(--space-3);
  font-size: var(--step-1);
  color: var(--slate-soft);
}
.section-head.center { margin-inline: auto; text-align: center; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-tint);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* =========================================================
   Services
   ========================================================= */

.services-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal-tint-2);
}

.icon-plate {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
}
.icon-plate svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: var(--step-1);
  color: var(--navy);
}
.service-card p { color: var(--slate-soft); font-size: 0.95rem; }

/* =========================================================
   Methodology
   ========================================================= */

.methodology { background: var(--teal-tint); }

.method-path {
  position: relative;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 980px) {
  .method-path { grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
  .method-line {
    position: absolute;
    top: 26px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--teal) 0 8px, transparent 8px 14px);
  }
}

.method-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.method-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.method-step h3 { font-size: 1.05rem; color: var(--navy); margin-top: 0.25rem; }
.method-step p { font-size: 0.92rem; color: var(--slate-soft); }

/* =========================================================
   Case studies
   ========================================================= */

.case-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.case-stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
}
.case-card h3 { font-size: 1.05rem; color: var(--navy); }
.case-card p { color: var(--slate-soft); font-size: 0.92rem; }
.case-card .tag { align-self: flex-start; }

/* =========================================================
   Pricing
   ========================================================= */

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.price-card.is-featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card.is-featured::before {
  content: "Recommended";
  position: absolute;
  top: -14px;
  left: var(--space-5);
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.price-card h3 { font-size: 1.15rem; color: var(--navy); }
.price-card .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--navy);
}
.price-card .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--slate-soft); }
.price-card p.desc { color: var(--slate-soft); font-size: 0.92rem; }

.price-features { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; padding-top: var(--space-3); }
.price-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--text-body); }
.price-features svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal-dark); margin-top: 2px; }

.price-card .btn { margin-top: var(--space-3); justify-content: center; }

/* =========================================================
   Team
   ========================================================= */

.team-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.avatar-plate {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.team-card h3 { font-size: 1.05rem; color: var(--navy); }
.team-card .role { font-size: 0.85rem; color: var(--teal-dark); font-weight: 600; margin-top: 0.15rem; }
.team-card p.bio { margin-top: 0.5rem; font-size: 0.9rem; color: var(--slate-soft); }

/* =========================================================
   FAQ
   ========================================================= */

.faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 820px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  min-height: 44px;
}

.faq-q svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal-dark);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}
.faq-a-inner { padding: 0 var(--space-4) var(--space-4); color: var(--slate-soft); font-size: 0.94rem; }
.faq-item.is-open .faq-a { max-height: 320px; }

/* =========================================================
   Contact
   ========================================================= */

.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; padding: var(--space-8); }
}

.contact h2 { color: var(--white); font-size: var(--step-3); max-width: 16ch; }
.contact-lede { margin-top: var(--space-3); color: rgba(255, 255, 255, 0.72); max-width: 42ch; }

.contact-info { margin-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.contact-info a, .contact-info span { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }
.contact-info .row { display: flex; align-items: center; gap: 0.7rem; }
.contact-info svg { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.field input, .field textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--white);
  min-height: 44px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--teal); }

.form-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-6);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 780px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand svg { height: 24px; width: auto; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-nav a { font-size: 0.9rem; transition: color var(--dur-fast); }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.82rem;
}
@media (min-width: 780px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Utilities
   ========================================================= */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }
