:root {
  --ink: #111817;
  --muted: #5a6462;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --mist: #e8efed;
  --teal: #0f6b68;
  --teal-dark: #064845;
  --copper: #c7663d;
  --amber: #e7b85a;
  --line: rgba(17, 24, 23, 0.14);
  --shadow: 0 24px 70px rgba(17, 24, 23, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(251, 251, 248, 0.94);
  box-shadow: 0 8px 30px rgba(17, 24, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a {
  color: inherit;
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 94svh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/brand/hero-intelligence-room.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 16, 0.88) 0%, rgba(8, 17, 16, 0.64) 42%, rgba(8, 17, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 17, 16, 0.62) 0%, rgba(8, 17, 16, 0.08) 56%);
}

.hero-content {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 138px 0 44px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c78b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 730;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 2.3vw, 1.48rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  text-align: center;
}

.button-primary {
  color: #fff;
  background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin-top: 56px;
}

.hero-metrics div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.section-pad {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0;
}

.intro-grid,
.method,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro h2 {
  margin-bottom: 0;
  max-width: 830px;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading p,
.method-copy p,
.contact p,
.proof > p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.team-card,
.insight-card,
.proof-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 300px;
  padding: 24px;
}

.service-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
}

.service-card p,
.team-card span,
.insight-card p,
.proof-list p {
  color: var(--muted);
}

.method {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: #101817;
}

.method .section-label {
  color: var(--amber);
}

.method-copy {
  align-self: center;
}

.method-copy p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
}

.method-steps {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.method-step {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  min-height: 112px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.method-step span {
  color: #f1c47a;
  font-weight: 780;
}

.method-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.team {
  border-bottom: 1px solid var(--line);
}

.ceo-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ceo-feature img {
  width: 100%;
  height: min(64vw, 620px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
}

.ceo-feature h3 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  letter-spacing: 0;
}

.ceo-feature p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-facts {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.profile-facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.team-card div {
  padding: 18px;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card p {
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 700;
}

.team-card span {
  display: block;
  font-size: 0.94rem;
}

.proof {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  background: var(--mist);
}

.proof h2 {
  max-width: 880px;
  margin-bottom: 34px;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-list article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insight-card {
  min-height: 260px;
  padding: 24px;
}

.insight-card span {
  display: inline-block;
  margin-bottom: 62px;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 780;
  text-transform: uppercase;
}

.contact {
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--max)) / 2));
  padding-left: max(18px, calc((100vw - var(--max)) / 2));
  background: #fff;
}

.contact h2 {
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 107, 104, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note a {
  color: var(--teal);
  font-weight: 760;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 36px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  justify-content: flex-end;
  align-items: start;
  font-weight: 680;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 74px 18px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header.nav-active .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--mist);
  }

  .nav-cta {
    border-color: var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: 90svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 17, 16, 0.9) 0%, rgba(8, 17, 16, 0.68) 62%, rgba(8, 17, 16, 0.22) 100%),
      linear-gradient(0deg, rgba(8, 17, 16, 0.72) 0%, rgba(8, 17, 16, 0.08) 58%);
  }

  .hero-metrics,
  .service-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .section-heading,
  .method,
  .ceo-feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .ceo-feature img {
    height: min(96vw, 620px);
  }

  .proof-list,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-name {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    background-position: 56% center;
  }

  .hero-content {
    padding-bottom: 24px;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-metrics,
  .service-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 8px;
    margin-top: 34px;
  }

  .hero-metrics div {
    min-height: 84px;
  }

  .method-step {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
