:root {
  --ink: #0d1b2a;
  --ink-soft: #2f4155;
  --paper: #f7f9fb;
  --white: #ffffff;
  --line: #d7e0e9;
  --blue: #245ee7;
  --blue-dark: #1746b8;
  --signal: #8ee7d0;
  --max-width: 1180px;
  --radius: 5px;
  --shadow: 0 22px 56px rgba(13, 27, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(13, 27, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand strong {
  font-weight: 700;
}

.brand-mark {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2.5;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  padding: 9px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: color 150ms ease, background-color 150ms ease;
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding: 168px 0 100px;
  background:
    linear-gradient(rgba(13, 27, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: -14%;
  width: 58%;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 94, 231, 0.05), rgba(142, 231, 208, 0.2));
  content: "";
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: clamp(60px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.1vw, 5.55rem);
}

.hero-lede {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 39px;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(36, 94, 231, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 14px 28px rgba(36, 94, 231, 0.28);
  transform: translateY(-2px);
}

.text-link {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  text-underline-offset: 5px;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
}

.method-map {
  position: relative;
  padding: 24px 24px 22px;
  border: 1px solid rgba(13, 27, 42, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.method-map::before,
.method-map::after {
  position: absolute;
  width: 2px;
  background: var(--blue);
  content: "";
}

.method-map::before {
  top: -34px;
  right: 42px;
  height: 34px;
}

.method-map::after {
  bottom: -34px;
  left: 42px;
  height: 34px;
}

.map-label {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.method-map ol {
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.method-map li {
  position: relative;
  display: grid;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--line);
  gap: 1px;
}

.method-map li:last-child {
  border-bottom: 0;
}

.method-map li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--line);
  content: "";
}

.method-map li span {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 0;
  width: 21px;
  height: 21px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.method-map li strong {
  font-size: 1rem;
}

.method-map li small {
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.principles {
  color: var(--white);
  background: var(--ink);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principles p {
  min-height: 96px;
  margin: 0;
  padding: 25px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
}

.principles p:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.principles span {
  display: block;
  margin-bottom: 4px;
  color: var(--signal);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.section {
  padding: 118px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 70px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -45px;
}

.section h2,
.contact h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
}

.section-heading > p:last-child,
.method-intro > p:last-child,
.contact-grid > div:first-child > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  margin-top: 68px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 470px;
  padding: 30px 30px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  z-index: 1;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-number {
  margin-bottom: 52px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3,
.engagement-card h3,
.method-steps h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-card h3 {
  max-width: 290px;
  font-size: 1.65rem;
}

.service-card p {
  margin: 20px 0 24px;
  color: var(--ink-soft);
}

.service-card ul {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-card li {
  position: relative;
  margin: 8px 0;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--blue);
  content: "";
}

.method {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.method::after {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(142, 231, 208, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(142, 231, 208, 0.035), 0 0 0 108px rgba(142, 231, 208, 0.025);
  content: "";
}

.method-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  gap: 108px;
}

.eyebrow-light {
  color: var(--signal);
}

.method-intro {
  position: sticky;
  top: 124px;
  align-self: start;
}

.method-intro h2 {
  max-width: 500px;
}

.method-intro > p:last-child {
  margin-top: 28px;
  color: #b9c6d3;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  grid-template-columns: 55px 1fr;
  gap: 24px;
}

.method-steps li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.method-steps li > span {
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.method-steps h3 {
  font-size: 1.55rem;
}

.method-steps p {
  margin: 8px 0 0;
  color: #b9c6d3;
}

.engagements {
  background: var(--paper);
}

.engagements .section-heading {
  display: block;
  max-width: 670px;
}

.engagements .section-heading .eyebrow {
  margin-bottom: 22px;
}

.engagement-grid {
  display: grid;
  margin-top: 68px;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.engagement-card {
  min-height: 315px;
  padding: 31px;
  border-top: 3px solid var(--blue);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(13, 27, 42, 0.055);
}

.engagement-card:nth-child(1) {
  grid-column: span 4;
}

.engagement-card:nth-child(2) {
  grid-column: span 5;
}

.engagement-card:nth-child(3) {
  grid-column: span 3;
}

.card-kicker {
  display: block;
  margin-bottom: 38px;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.engagement-card h3 {
  font-size: 1.45rem;
}

.engagement-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact {
  padding: 104px 0;
  color: var(--white);
  background: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 100px;
  align-items: end;
}

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

.contact-grid > div:first-child > p:last-child {
  max-width: 630px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-details {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-details p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-details strong {
  color: var(--white);
  font-size: 1.05rem;
}

.contact-access {
  max-width: 380px;
}

.contact-protection {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 9px;
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 750;
}

.contact-protection span {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 0.7rem;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-shell {
  min-height: 65px;
}

.contact-email-button {
  width: 100%;
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.15);
  cursor: pointer;
}

.contact-email-button:hover:not(:disabled),
.contact-email-button:focus-visible:not(:disabled) {
  background: var(--signal);
  transform: translateY(-2px);
}

.contact-email-button:disabled {
  color: rgba(13, 27, 42, 0.58);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: not-allowed;
}

.contact-status {
  min-height: 1.5em;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-status.is-error {
  color: #fff1b8 !important;
}

.site-footer {
  padding: 52px 0;
  color: #aebbc8;
  background: #08121d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.footer-brand {
  color: var(--white);
}

.footer-grid > p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.6;
}

.copyright {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero-grid,
  .method-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .method-map {
    width: min(100%, 620px);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .method-grid,
  .contact-grid {
    gap: 66px;
  }

  .method-intro {
    position: static;
  }

  .engagement-card:nth-child(1),
  .engagement-card:nth-child(2) {
    grid-column: span 6;
  }

  .engagement-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: auto;
  }

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

  .footer-grid > p:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .menu-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
  }

  .menu-button > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    width: 24px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-lines {
    position: relative;
  }

  .menu-lines::before,
  .menu-lines::after {
    position: absolute;
    left: 0;
  }

  .menu-lines::before {
    top: -7px;
  }

  .menu-lines::after {
    top: 7px;
  }

  .menu-button[aria-expanded="true"] .menu-lines {
    background: transparent;
  }

  .menu-button[aria-expanded="true"] .menu-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 16px 26px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 28px rgba(13, 27, 42, 0.08);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 10px 8px;
    font-size: 1rem;
  }

  .site-nav .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 126px 0 80px;
  }

  .hero::before {
    right: -50%;
    width: 120%;
    opacity: 0.75;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.2rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .button {
    width: 100%;
  }

  .principles-grid,
  .section-heading,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .principles p,
  .principles p:first-child {
    min-height: 0;
    padding: 19px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    margin-bottom: 25px;
  }

  .service-grid {
    margin-top: 46px;
  }

  .service-card,
  .service-card:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .service-number {
    margin-bottom: 34px;
  }

  .method-steps li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .engagement-card:nth-child(1),
  .engagement-card:nth-child(2),
  .engagement-card:nth-child(3) {
    min-height: 0;
    grid-column: auto;
  }

  .contact {
    padding: 86px 0;
  }

  .contact-details {
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 0;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-grid > p:nth-child(2) {
    grid-row: auto;
    grid-column: auto;
  }

  .copyright {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
