/* ==========================================================================
   Business consulting website — stylesheet
   Palette: deep navy, electric blue, mist grey, white
   Type: Instrument Sans (display) / Inter (body) / JetBrains Mono (data)
   ========================================================================== */

:root {
  --navy: #0a1b4d;
  --navy-deep: #071238;
  --blue: #2f6bf6;
  --blue-bright: #6aa4ff;
  --blue-ink: #142a86;
  --ink: #0d1526;
  --muted: #626c82;
  --ghost: #c3cad9;
  --line: #e3e7ef;
  --mist: #f4f6fa;
  --white: #ffffff;

  --shell: 1200px;
  --gutter: 28px;
  --radius: 14px;
  --radius-lg: 22px;

  --display: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*,
*::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;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }
img { max-width: 100%; display: block; }

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow.on-dark { color: rgba(255, 255, 255, 0.72); }

/* Large "ghost" headline used in reference-style intro blocks */
.statement {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--ghost);
  max-width: 20ch;
  font-weight: 500;
}
.statement em {
  font-style: normal;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 12px 12px 12px 26px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn__dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__dot { transform: rotate(45deg); }

.btn--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(5, 15, 50, 0.25);
}
.btn--light .btn__dot { background: var(--blue); color: var(--white); }

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark .btn__dot { background: var(--blue); color: var(--white); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}
.link-more:hover { gap: 14px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.is-stuck {
  background: rgba(7, 18, 56, 0.9);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header--solid {
  position: sticky;
  background: var(--navy-deep);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--white);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.logo__mark {
  font-size: 13px;
  color: var(--blue-bright);
}
.logo--ink { color: var(--ink); }
.logo--ink .logo__mark { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 168px 0 96px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 8% 10%, rgba(47, 107, 246, 0.55) 0%, rgba(47, 107, 246, 0) 55%),
    linear-gradient(100deg, rgba(7, 18, 56, 0.97) 0%, rgba(10, 27, 77, 0.92) 38%, rgba(10, 27, 77, 0.62) 68%, rgba(10, 27, 77, 0.32) 100%);
}
.hero[data-hero="none"]::after {
  background:
    radial-gradient(120% 90% at 8% 10%, rgba(47, 107, 246, 0.6) 0%, rgba(47, 107, 246, 0) 58%),
    linear-gradient(105deg, #071238 0%, #0f2470 45%, #21489f 78%, #4d7fd6 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  max-width: 15ch;
  margin-bottom: 26px;
  font-weight: 500;
}
.hero h1 span { color: var(--blue-bright); }

.hero__lede {
  max-width: 46ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 34px;
}

.hero__trust {
  margin-top: 56px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.hero__trust strong { color: var(--white); font-weight: 600; }

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.sectors li {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

.hero__cards {
  display: grid;
  gap: 14px;
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.metric-card__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: var(--white);
}
.metric-card > span:last-child { display: block; }
.metric-card__label,
.metric-card__value,
.metric-card__note { display: block; }

.metric-card__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.metric-card__value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric-card__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- sections ---------- */

.section { padding: 108px 0; }
.section--tight { padding: 88px 0; }
.section--mist { background: var(--mist); }

.section--dark {
  background: linear-gradient(160deg, #0d2280 0%, #1a3fc0 55%, #2f6bf6 100%);
  color: var(--white);
  border-radius: 0;
}

/* impact + stats */

.impact__head { max-width: 62ch; }
.impact .statement { max-width: 32ch; }

.wordmark-band {
  position: relative;
  margin-top: 64px;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(120px, 21vw, 300px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.78;
  color: #e9edf5;
  text-align: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-transform: lowercase;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: -34px;
}
.stat__value {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* about + method */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.method {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 10px 32px;
}
.method__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.method__item:last-child { border-bottom: 0; }
.method__step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 4px;
}
.method__title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.method__text {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.about__body {
  font-size: 15px;
  color: var(--muted);
  max-width: 58ch;
  margin: 32px 0 30px;
}
.about .statement { max-width: 24ch; }

/* services */

.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}
.services__head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  max-width: 20ch;
}
.services__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(6, 18, 60, 0.28);
}
.card__icon { color: var(--blue); margin-bottom: 18px; }
.card h3 {
  font-size: 18px;
  font-weight: 600;
  max-width: 12ch;
}
.card p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 26px;
}
.card .link-more { margin-top: 16px; align-self: flex-start; }

.banner {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
}

/* closing CTA */

.closing {
  position: relative;
  background: linear-gradient(150deg, #0d2280 0%, #1e46c8 60%, #3f76f4 100%);
  color: var(--white);
  padding: 104px 0 0;
  overflow: hidden;
  text-align: center;
}
.closing h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  max-width: 18ch;
  margin-inline: auto;
}
.closing__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.closing__wordmark {
  font-family: var(--display);
  font-size: clamp(110px, 22vw, 300px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.72;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 34px;
  text-transform: lowercase;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(24%);
}

/* footer */

.footer { background: var(--white); padding: 72px 0 28px; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer__blurb {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 18px;
}
.footer h4 {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a, .footer li span {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer li a:hover { color: var(--blue-ink); }

.legal-block {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 32px;
}
.legal-block dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-block dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  word-break: break-word;
}

.footer__base {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer__base a { border-bottom: 1px solid var(--line); }
.footer__base a:hover { color: var(--blue-ink); }
.footer__links { display: flex; gap: 22px; }

/* ---------- legal page ---------- */

.page-head {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 20ch;
}
.page-head p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 56px;
  padding: 72px 0 96px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: 13.5px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--blue-ink); }
.toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  margin-right: 8px;
}

.legal__body { max-width: 68ch; }
.legal__body h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  scroll-margin-top: 100px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal__body p, .legal__body li {
  font-size: 15px;
  color: #39415a;
}
.legal__body p { margin-bottom: 14px; }
.legal__body ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}
.legal__body th, .legal__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal__body th {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: var(--mist);
  padding: 18px 20px;
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero__cards { grid-template-columns: repeat(2, 1fr); display: grid; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .services__head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 780px) {
  :root { --gutter: 20px; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: rgba(7, 18, 56, 0.97);
    backdrop-filter: blur(12px);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 8px 0; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .header--solid .nav { background: var(--navy-deep); }

  .section { padding: 72px 0; }
  .hero { padding: 130px 0 72px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; margin-top: -12px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card p { padding-top: 18px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .closing { padding-top: 80px; }
  .method { padding: 4px 22px; }
}

@media (max-width: 520px) {
  .hero__cards { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .footer__links { gap: 16px; }
}
