/* ==========================================================================
   Ottotell — styles.css
   Business & technology consulting website
   --------------------------------------------------------------------------
   Contents
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Header / navigation
   7.  Hero
   8.  Sections & shared blocks
   9.  Cards & grids
   10. Process / steps
   11. Engagement models
   12. Stats & credentials
   13. Accordion (FAQ)
   14. Forms
   15. CTA band
   16. Footer
   17. Legal / prose pages
   18. Utilities
   19. Motion & accessibility
   20. Print
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* --- Brand palette ------------------------------------------------- */
  --c-navy-900: #071624;
  --c-navy-800: #0c1b2a;
  --c-navy-700: #13293d;
  --c-navy-600: #1d3a52;

  --c-blue-700: #0f3a94;
  --c-blue-600: #1a55c8;
  --c-blue-500: #2f6fe4;
  --c-blue-100: #dfe9fc;
  --c-blue-50:  #eef3fe;

  --c-teal-600: #0e8c86;
  --c-teal-50:  #e6f5f4;

  --c-slate-700: #33475e;
  --c-slate-600: #40536b;
  --c-slate-500: #6b7c93;
  --c-slate-400: #94a3b5;
  --c-slate-300: #cbd5e1;
  --c-slate-200: #e2e8f0;
  --c-slate-100: #eef2f7;
  --c-slate-50:  #f5f7fa;
  --c-white: #ffffff;

  --c-amber-600: #b45309;
  --c-amber-50:  #fef6e7;

  /* --- Semantic ------------------------------------------------------- */
  --ground: var(--c-white);
  --ground-alt: var(--c-slate-50);
  --ground-tint: var(--c-blue-50);
  --ground-deep: var(--c-navy-800);

  --ink: var(--c-navy-800);
  --ink-soft: var(--c-slate-600);
  --ink-muted: var(--c-slate-500);
  --ink-invert: var(--c-white);
  --ink-invert-soft: #b9c7d6;

  --accent: var(--c-blue-600);
  --accent-deep: var(--c-blue-700);
  --accent-bright: var(--c-blue-500);
  --accent-wash: var(--c-blue-50);

  --line: var(--c-slate-200);
  --line-strong: var(--c-slate-300);
  --line-invert: rgba(255, 255, 255, 0.14);

  /* --- Typography ----------------------------------------------------- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas,
    monospace;

  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.8125rem; /* 13 */
  --fs-base: 0.9375rem; /* 15 */
  --fs-md:   1.0625rem; /* 17 */
  --fs-lg:   1.1875rem; /* 19 */
  --fs-xl:   1.375rem;  /* 22 */
  --fs-2xl:  1.75rem;   /* 28 */
  --fs-3xl:  2.125rem;  /* 34 */
  --fs-4xl:  2.75rem;   /* 44 */
  --fs-5xl:  3.5rem;    /* 56 */

  /* --- Space ---------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;
  --sp-11: 6.5rem;
  --sp-12: 8rem;

  /* --- Shape & depth --------------------------------------------------- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(12, 27, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(12, 27, 42, 0.07), 0 1px 2px rgba(12, 27, 42, 0.04);
  --shadow-md: 0 6px 20px -6px rgba(12, 27, 42, 0.13), 0 2px 6px rgba(12, 27, 42, 0.05);
  --shadow-lg: 0 22px 48px -18px rgba(12, 27, 42, 0.24), 0 6px 16px rgba(12, 27, 42, 0.06);

  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 74px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-8) 0;
}

::selection {
  background: var(--c-blue-100);
  color: var(--c-navy-900);
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--ink-invert);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  font-size: var(--fs-base);
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.15; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 650; color: var(--ink); }

small { font-size: var(--fs-sm); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.on-dark .eyebrow { color: #8fb6f5; }
.on-dark .eyebrow::before { background: #8fb6f5; }

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

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

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

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(3.25rem, 2rem + 5vw, 6.5rem);
}
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--alt { background: var(--ground-alt); }
.section--tint { background: var(--ground-tint); }

.section--deep {
  background:
    radial-gradient(1100px 460px at 82% -10%, rgba(47, 111, 228, 0.32), transparent 62%),
    radial-gradient(760px 420px at 4% 108%, rgba(14, 140, 134, 0.22), transparent 60%),
    var(--ground-deep);
  color: var(--ink-invert);
}

.on-dark,
.section--deep h1,
.section--deep h2,
.section--deep h3,
.section--deep h4 { color: var(--ink-invert); }
.section--deep p { color: var(--ink-invert-soft); }
.section--deep .lede { color: #cfdcea; }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-8);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--sticky-left > :first-child {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .split--40-60 { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .split--60-40 { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* ==========================================================================
   5. Buttons & links
   ========================================================================== */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-deep); }

.prose a,
.link-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-blue-100);
}
.prose a:hover,
.link-underline:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8125rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--c-white);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--quiet {
  background: transparent;
  color: var(--accent);
  padding-inline: 0;
}
.btn--quiet:hover { color: var(--accent-deep); }

.btn--invert {
  background: #fff;
  color: var(--c-navy-800);
}
.btn--invert:hover { background: #e9eff8; color: var(--c-navy-900); }

.btn--outline-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline-invert:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn--lg { padding: 0.9375rem 1.875rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* On narrow screens stacked buttons look better at equal width. */
@media (max-width: 560px) {
  .btn-row > .btn { width: 100%; }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-base);
}
.arrow-link::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   6. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { line-height: 1; }
.brand__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--sp-5); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.375rem 0;
  color: var(--ink-soft);
  font-size: var(--fs-base);
  font-weight: 550;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 650; }

.nav__cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -6px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: block;
    padding: var(--sp-6) var(--sp-5) var(--sp-9);
    background: var(--c-white);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
      visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 0.9375rem 0;
    font-size: var(--fs-lg);
    color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav__cta { display: block; margin-top: var(--sp-6); }
  .nav__cta .btn { width: 100%; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  background:
    radial-gradient(900px 480px at 88% -18%, var(--c-blue-50), transparent 68%),
    radial-gradient(620px 380px at -8% 4%, var(--c-teal-50), transparent 62%),
    var(--ground);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede { margin-bottom: var(--sp-6); max-width: 34em; }

.hero__actions { margin-bottom: var(--sp-6); }

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-base);
  color: var(--ink-muted);
}
.hero__note svg { flex: none; color: var(--c-teal-600); }

/* Hero side panel — "what a first conversation covers" */
.hero__panel {
  position: relative;
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--c-teal-600));
}
.hero__panel h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.hero__panel > p { font-size: var(--fs-base); color: var(--ink-soft); }

.checklist {
  list-style: none;
  margin: var(--sp-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--r-pill);
  background: var(--c-blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a55c8'%3E%3Cpath d='M8.05 13.6 4.9 10.45l1.06-1.06 2.09 2.08 5.99-5.99 1.06 1.06z'/%3E%3C/svg%3E")
    center / 1.05rem no-repeat;
}
.checklist--tight li { padding-left: 1.65rem; }

/* Trust bar */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--ground-alt);
  padding-block: var(--sp-5);
}
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
  text-align: center;
}
.trustbar__label {
  width: 100%;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-1);
}
.trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.trustbar__item svg { flex: none; color: var(--accent); }

/* ==========================================================================
   8. Sections & shared blocks
   ========================================================================== */

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.rule-list > li {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.rule-list h3 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.rule-list p { color: var(--ink-soft); font-size: var(--fs-base); margin: 0; }

.quote {
  margin: 0;
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.45;
  color: var(--ink);
}
.quote footer {
  margin-top: var(--sp-4);
  font-size: var(--fs-base);
  color: var(--ink-muted);
}

.callout {
  padding: var(--sp-5);
  background: var(--accent-wash);
  border: 1px solid var(--c-blue-100);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
}
.callout h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.callout p { color: var(--ink-soft); }

.callout--warn {
  background: var(--c-amber-50);
  border-color: #f4ddb4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3125rem 0.75rem;
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   9. Cards & grids
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.card p { color: var(--ink-soft); font-size: var(--fs-base); }
.card h3 { font-size: var(--fs-lg); }

.card--link:hover {
  border-color: var(--c-blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-4);
  background: var(--accent-wash);
  border-radius: var(--r-md);
  color: var(--accent);
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; }

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
}

.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-invert);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--ink-invert-soft); }
.card--dark .card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #9dc0f7;
}

/* Numbered feature card */
.numcard { position: relative; padding-top: var(--sp-7); }
.numcard__num {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-slate-400);
  letter-spacing: 0.04em;
}

/* Service detail block (services page) */
.service {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding-block: var(--sp-8);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__head { margin-bottom: var(--sp-5); }
.service__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.service__title { margin: var(--sp-2) 0 var(--sp-3); }

.service__body {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 880px) {
  .service__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.deliverables {
  padding: var(--sp-5);
  background: var(--ground-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.deliverables h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
}
.deliverables ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: var(--fs-base);
}
.deliverables li { margin-bottom: var(--sp-2); }
.deliverables li:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Process / steps
   ========================================================================== */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 760px) {
  .steps--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--sp-6);
  border-top: 2px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--sp-3);
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.steps p { font-size: var(--fs-base); color: var(--ink-soft); margin: 0; }

.section--deep .steps li { border-top-color: var(--line-invert); }
.section--deep .steps li::before { color: #8fb6f5; }

/* ==========================================================================
   11. Engagement models
   ========================================================================== */

.models {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.model {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.model--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.model__flag {
  align-self: flex-start;
  margin-bottom: var(--sp-3);
  padding: 0.25rem 0.625rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.model h3 { font-family: var(--font-sans); font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.model__meta {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.model p { font-size: var(--fs-base); color: var(--ink-soft); }
.model ul {
  margin: var(--sp-4) 0 0;
  padding-left: 1.15rem;
  font-size: var(--fs-base);
  color: var(--ink-soft);
}
.model li { margin-bottom: var(--sp-2); }
.model .card__foot { padding-top: var(--sp-5); }

/* ==========================================================================
   12. Stats & credentials
   ========================================================================== */

.stats {
  display: grid;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.section--deep .stat__value { color: #fff; }
.stat__label {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.45;
}
.section--deep .stat__label { color: var(--ink-invert-soft); }

.creds {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 620px) { .creds { grid-template-columns: repeat(2, 1fr); } }
.creds li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--ink-soft);
}
.creds svg { flex: none; margin-top: 0.15rem; color: var(--c-teal-600); }

/* ==========================================================================
   13. Accordion (FAQ)
   ========================================================================== */

.accordion {
  border-top: 1px solid var(--line);
}
.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.accordion__trigger:hover { color: var(--accent); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  max-width: 65ch;
  padding-bottom: var(--sp-5);
  color: var(--ink-soft);
  font-size: var(--fs-base);
}
.accordion__panel p:last-child { margin-bottom: 0; }

/* ==========================================================================
   14. Forms
   ========================================================================== */

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--c-white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 620px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 0.375rem; }

.field label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--accent); }
.field__hint { font-size: var(--fs-sm); color: var(--ink-muted); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  background: var(--c-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.input::placeholder,
.textarea::placeholder { color: var(--c-slate-400); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--c-blue-100);
}

.textarea { min-height: 140px; resize: vertical; }

.select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7c93'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  cursor: pointer;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px #fee5d9;
}
.field__error {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #c2410c;
}
.field.has-error .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.16rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Honeypot — must stay visually hidden but not display:none */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  line-height: 1.55;
}
.form-status[data-state="success"] {
  display: block;
  background: var(--c-teal-50);
  border: 1px solid #a8ddd9;
  color: #0a5f5b;
}
.form-status[data-state="error"] {
  display: block;
  background: #fdeee7;
  border: 1px solid #f6c6ae;
  color: #9a3412;
}
.form-status[data-state="pending"] {
  display: block;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn { position: relative; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Contact details sidebar */
.contact-detail {
  display: flex;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-of-type { border-bottom: 0; }
.contact-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--accent-wash);
  border-radius: var(--r-md);
  color: var(--accent);
}
.contact-detail h3 { font-size: var(--fs-base); margin-bottom: 0.125rem; }
.contact-detail p { font-size: var(--fs-base); color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   15. CTA band
   ========================================================================== */

.cta {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(900px 420px at 78% -30%, rgba(47, 111, 228, 0.38), transparent 62%),
    radial-gradient(620px 380px at 6% 118%, rgba(14, 140, 134, 0.24), transparent 60%),
    var(--ground-deep);
  color: var(--ink-invert);
}
.cta__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .cta__actions { justify-self: end; }
}
.cta h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta p { color: #cfdcea; margin-bottom: 0; max-width: 46ch; }

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--sp-9) var(--sp-6);
  background: var(--c-navy-900);
  color: var(--ink-invert-soft);
  font-size: var(--fs-base);
}
.site-footer a { color: var(--ink-invert-soft); }
.site-footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line-invert);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
}

.footer__brand .brand { color: #fff; margin-bottom: var(--sp-4); }
.footer__brand .brand:hover { color: #fff; }
.footer__blurb { max-width: 34ch; color: var(--ink-invert-soft); }

.footer__col h3 {
  margin-bottom: var(--sp-4);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--sp-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-slate-400);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ==========================================================================
   17. Legal / prose pages
   ========================================================================== */

.page-head {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background:
    radial-gradient(760px 340px at 88% -30%, var(--c-blue-50), transparent 66%),
    var(--ground);
  border-bottom: 1px solid var(--line);
}
.page-head .lede { max-width: 56ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--c-slate-400); }

.prose { max-width: 68ch; }
.prose h2 {
  margin-top: var(--sp-8);
  font-size: var(--fs-2xl);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-6); font-size: var(--fs-lg); }
.prose ul,
.prose ol { padding-left: 1.35rem; color: var(--ink-soft); margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose p { color: var(--ink-soft); }
.prose > p:first-of-type { color: var(--ink-soft); }

.toc {
  padding: var(--sp-5);
  background: var(--ground-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-7);
}
.toc h2 {
  margin: 0 0 var(--sp-3) !important;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--fs-base); }
.toc li { margin-bottom: var(--sp-1); }

.updated {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--ground-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* Error page */
.error-page {
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding-block: var(--sp-9);
  text-align: center;
}
.error-page__code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mw-60 { max-width: 60ch; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   19. Motion & accessibility
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .card,
  .model,
  .form-card { border: 1px solid CanvasText; }
}

/* ==========================================================================
   20. Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .cta,
  .nav-toggle,
  .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section, .hero { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
