html {
  font-size: 16px;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 59, 96, 0.72) rgba(4, 59, 96, 0.12);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal-dialog::-webkit-scrollbar,
.lead-qualifier-panel::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.modal-dialog::-webkit-scrollbar-track,
.lead-qualifier-panel::-webkit-scrollbar-track {
  background: rgba(4, 59, 96, 0.08);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.modal-dialog::-webkit-scrollbar-thumb,
.lead-qualifier-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(4, 59, 96, 0.88), rgba(85, 183, 216, 0.88));
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.modal-dialog::-webkit-scrollbar-thumb:hover,
.lead-qualifier-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(4, 59, 96, 0.96), rgba(85, 183, 216, 0.96));
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: clip;
  background: #fafcfd;
  color: var(--ak-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.44;
  background-image: url("../img/static/noise-dark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  mix-blend-mode: multiply;
}

body.nav-open {
  overflow: hidden;
}

main {
  position: relative;
  z-index: 1;
  overflow: visible;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}

p {
  margin: 0;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--ak-radius-sm);
  background: var(--ak-white);
  color: var(--ak-navy);
  padding: 10px 14px;
  box-shadow: var(--ak-shadow);
  transition: transform 180ms var(--ease-out);
}

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

.section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--header-height) + 56px) 24px 72px;
}

.section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: none;
  mix-blend-mode: normal;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--ak-section-max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--ak-muted);
  font-size: 1.08rem;
}

.split-heading {
  max-width: none;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: space-between;
}

.eyebrow {
  color: var(--ak-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fine-print {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

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

.document-page {
  background:
    linear-gradient(180deg, #f4f6f8 0, #ffffff 180px),
    linear-gradient(90deg, rgba(1, 26, 51, 0.03) 0, rgba(1, 26, 51, 0.03) 1px, transparent 1px, transparent 100%);
  background-size: auto, 100% 1px;
}

.article-shell {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 140px 0 80px;
}

.article-shell-news {
  width: min(100% - 40px, 1160px);
}

.article-header {
  width: min(100%, 820px);
  margin: 0 auto 30px;
}

.article-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ak-muted);
  font-size: 0.9rem;
}

.article-breadcrumb a {
  color: var(--ak-muted);
  text-decoration: none;
}

.article-kicker {
  margin-top: 18px;
}

.article-shell h1 {
  margin: 10px 0 20px;
  color: var(--ak-navy);
  max-width: 16ch;
  font-size: clamp(2.45rem, 4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.article-shell h2 {
  margin: 48px 0 14px;
  color: var(--ak-navy);
  font-size: clamp(1.45rem, 1.8vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-shell h3 {
  margin: 32px 0 10px;
  color: var(--ak-navy);
  font-size: 1.25rem;
}

.article-shell p,
.article-shell li {
  color: #31414d;
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-shell ul,
.article-shell ol {
  padding-left: 24px;
}

.article-lead {
  color: #31414d;
  max-width: 64ch;
  font-size: clamp(1.16rem, 1.35vw, 1.34rem);
  line-height: 1.58;
}

.article-meta {
  color: var(--ak-muted);
  font-size: 0.98rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(1, 26, 51, 0.12);
}

.article-byline {
  color: var(--ak-navy);
  font-size: 0.98rem;
}

.article-figure {
  width: min(100%, 980px);
  margin: 0 auto 34px;
}

.article-cover {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(1, 26, 51, 0.12);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--ak-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-story-layout {
  display: grid;
  gap: 44px;
  grid-template-columns: 250px minmax(0, 720px);
  align-items: start;
  justify-content: center;
}

.article-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.article-sidebar-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(1, 26, 51, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
  box-shadow: 0 18px 36px rgba(1, 26, 51, 0.06);
}

.article-sidebar-label {
  color: var(--ak-navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc {
  display: grid;
  gap: 12px;
}

.article-toc a,
.article-toc span {
  color: #31414d;
  font-size: 0.97rem;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--ak-blue);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(4, 59, 96, 0.08);
  color: var(--ak-blue);
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-story {
  min-width: 0;
}

.article-story > p:first-of-type {
  color: var(--ak-navy);
  font-size: 1.22rem;
  line-height: 1.75;
}

.article-story > p:first-of-type::first-letter {
  float: left;
  margin: 0 8px 0 0;
  color: var(--ak-navy);
  font-size: 4.2rem;
  line-height: 0.88;
  font-weight: 800;
}

.article-story a {
  color: var(--ak-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.article-story ul {
  margin: 16px 0 8px;
  border-left: 3px solid rgba(4, 59, 96, 0.14);
  padding-left: 20px;
}

.article-cta {
  display: grid;
  gap: 16px;
  width: min(100%, 980px);
  margin: 56px auto 0;
  border-radius: var(--ak-radius-sm);
  background: var(--ak-navy);
  color: var(--ak-white);
  padding: 28px;
}

.article-cta h2 {
  margin: 0;
  color: var(--ak-white);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.76);
}

.article-next {
  width: min(100%, 980px);
  margin: 42px auto 0;
}

.article-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(1, 26, 51, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 48px rgba(1, 26, 51, 0.08);
  overflow: hidden;
  text-decoration: none;
}

.article-next-copy {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
}

.article-next-copy strong {
  color: var(--ak-navy);
  font-size: 1.26rem;
  line-height: 1.2;
}

.article-next-copy span:last-child {
  color: #31414d;
  line-height: 1.55;
}

.article-next-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.blog-filter {
  width: 100%;
  min-height: 52px;
  margin: 34px 0 12px;
  border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius-sm);
  background: var(--ak-white);
  color: var(--ak-ink);
  padding: 0 16px;
  box-shadow: 0 12px 34px rgba(1, 26, 51, 0.08);
}

.blog-editorial-tools {
  position: relative;
}

.blog-search-suggestions {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(4, 59, 96, 0.1);
  border-radius: 18px;
  background: rgba(248, 251, 253, 0.96);
  box-shadow: 0 20px 42px rgba(1, 26, 51, 0.14);
  backdrop-filter: blur(12px);
}

.blog-search-suggestion {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(4, 59, 96, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(1, 26, 51, 0.06);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.blog-search-suggestion-empty {
  cursor: default;
}

.blog-search-suggestion span {
  color: var(--ak-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-search-suggestion strong {
  color: var(--ak-navy);
  font-size: 0.95rem;
  line-height: 1.4;
}

.blog-search-suggestion:hover,
.blog-search-suggestion:focus-visible {
  border-color: rgba(85, 183, 216, 0.32);
  box-shadow: 0 14px 28px rgba(1, 26, 51, 0.1);
  transform: translateY(-1px);
}

.blog-search-suggestion-empty:hover,
.blog-search-suggestion-empty:focus-visible {
  transform: none;
  border-color: rgba(4, 59, 96, 0.12);
  box-shadow: 0 10px 26px rgba(1, 26, 51, 0.06);
}

.blog-search-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px dashed rgba(4, 59, 96, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 24px;
}

.blog-search-empty p {
  color: var(--ak-navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.blog-search-empty span {
  color: var(--ak-muted);
  line-height: 1.6;
}

.blog-index-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-editorial-shell {
  width: min(100% - 40px, 1240px);
  display: grid;
  gap: 28px;
}

.blog-editorial-hero {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: end;
}

.blog-editorial-tools {
  display: grid;
  align-content: end;
}

.blog-editorial-top {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.blog-editorial-side,
.blog-editorial-stream {
  display: grid;
  gap: 18px;
}

.blog-stream-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card-feature {
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border-radius: 28px;
}

.blog-card-feature img {
  aspect-ratio: 16 / 9;
}

.blog-card-feature .blog-card-content {
  gap: 14px;
  padding: 26px;
}

.blog-card-feature h2 {
  margin: 0;
  color: var(--ak-navy);
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1.04;
}

.blog-card-side {
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 100%;
}

.blog-card-side img {
  height: 100%;
  aspect-ratio: auto;
}

.blog-card-side .blog-card-content,
.blog-card-stream .blog-card-content {
  align-content: start;
}

.blog-card-side h3,
.blog-card-stream h3 {
  margin: 0;
  color: var(--ak-navy);
  font-size: 1.12rem;
  line-height: 1.2;
}

.blog-editorial-stream-heading {
  display: grid;
  gap: 8px;
}

.blog-editorial-stream-heading h2 {
  margin: 0;
}

@media (max-width: 980px) {
  .article-story-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .article-next-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-next-card img {
    min-height: 0;
    max-height: 220px;
  }
}

@media (min-width: 921px) {
  html {
    font-size: clamp(14px, 0.34vw + 10px, 16px);
  }

  .section {
    display: grid;
    min-height: 100svh;
    height: 100svh;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--header-height) + clamp(18px, 1.8vw, 24px)) 24px clamp(24px, 2.1vw, 28px);
  }

  .cases-section,
  .team-section,
  .blog-preview-section {
    overflow: visible;
  }

  .section-inner,
  .hero-grid {
    max-height: calc(100svh - var(--header-height) - clamp(44px, 3.2vw, 52px));
  }

  .cases-section .section-inner,
  .team-section .section-inner,
  .blog-preview-section .section-inner {
    max-height: none;
    overflow: visible;
  }

  .section-heading {
    gap: clamp(10px, 0.8vw, 14px);
    margin-bottom: clamp(22px, 1.8vw, 28px);
  }

  .section-heading > p:not(.eyebrow) {
    font-size: clamp(0.94rem, 0.88rem + 0.12vw, 0.98rem);
    line-height: 1.45;
  }
}

@media (max-width: 920px) {
  .blog-editorial-shell {
    width: min(100% - 32px, 1240px);
    gap: 22px;
    padding-top: 120px;
  }

  .blog-editorial-hero,
  .blog-editorial-top,
  .blog-stream-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-side {
    grid-template-columns: 1fr;
  }

  .blog-card-side img {
    aspect-ratio: 16 / 9;
  }
}
