/* =========================================================================
   Acellera — site styles (hand-authored, rebuilt from the Webflow export).
   Organised as: tokens → base → layout → typography → buttons → header/nav
   → hero → feature rows → cards → CTA → footer → cookie banner → responsive.
   ========================================================================= */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --brand: #0f52a0; /* dark brand blue — accents, eyebrows, logo */
  --action: #1a78eb; /* action blue — primary buttons/links */
  --ink: #101828; /* headings, near-black */
  --body: #475467; /* body text */
  --muted: #667085; /* secondary text */
  --bg: #ffffff;
  --bg-muted: #f9fafb; /* alternating section background */
  --footer-bg: #283242;
  --line: #eaecf0; /* hairline borders */
  --line-strong: rgba(0, 0, 0, 0.9);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 80rem;
  --pad-x: 2.5rem;
  --section-y: 5rem;
  --gap: 4rem;
  --radius: 5px;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

/* ---- Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
sup {
  font-size: 0.6em;
}

/* ---- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section {
  padding-block: var(--section-y);
}
.section--muted {
  background: var(--bg-muted);
}
.section__head {
  max-width: 40rem;
  margin-bottom: 3rem;
}
.section__cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ---- Typography --------------------------------------------------------- */
.h1,
.h2,
.h3 {
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}
.h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.05;
}
.h2 {
  font-size: 3rem;
  line-height: 1.3;
}
.h3 {
  font-size: 2.25rem;
  line-height: 1.3;
}
.lead {
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
}
.eyebrow {
  color: var(--brand);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.u-accent {
  color: var(--brand);
}

/* Inline "read more" link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--action);
  font-weight: 600;
}
.link-arrow img {
  width: 1.1rem;
  display: inline-block;
}
.link-arrow:hover {
  text-decoration: underline;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.btn img {
  width: 1.1rem;
}
.btn--primary {
  color: #fff;
  background: var(--action);
  border-color: var(--action);
}
.btn--primary:hover {
  background: #1568cf;
}
.btn--secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  text-decoration: underline;
}

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: relative; /* containing block for the full-width mega bar */
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand__logo {
  width: 150px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  font-weight: 500;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.nav__link:hover {
  color: var(--brand);
}
.nav__chevron {
  width: 1rem;
  height: 1rem;
}
.nav__item--has-menu {
  position: static; /* mega bar spans the header, not the item */
}
/* Full-width mega bar dropping from the header (matches the original site). */
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow:
    0 12px 16px -4px #00000014,
    0 4px 6px -2px #10182808;
}
.nav__item--has-menu.is-open .nav__menu {
  display: block;
}
.nav__item--has-menu.is-open .nav__chevron {
  transform: rotate(180deg);
}

/* Mega-menu: centred content inside the full-width bar */
.mega__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2rem var(--pad-x);
}
.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
}
.mega--company .mega__inner {
  display: flex;
  gap: 2rem;
}
.mega__main {
  flex: 1;
}
.mega__link {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 8px;
}
.mega__link:hover {
  background: var(--bg-muted);
}
.mega__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
}
/* Inline-svg icons carry their own (sometimes tall) viewBox — pin them to the
   box so they scale to fit instead of overflowing and clipping. */
.mega__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mega__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mega__title {
  color: var(--ink);
  font-weight: 600;
}
.mega__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
/* Email + socials share one row under the links, split left/right and set off
   by a hairline — matches the original Company menu. */
.mega__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.mega__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--action);
  font-weight: 500;
}
.mega__contact img {
  width: 1.1rem;
}
.mega__socials {
  display: flex;
  gap: 1rem;
}
.mega__socials img {
  width: 1.4rem;
  height: 1.4rem;
}
.mega__feature {
  flex: 1;
  max-width: 30rem;
  background: var(--bg-muted);
  border-radius: 12px;
  padding: 1.5rem;
}
.mega__feature-img {
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.mega__feature-title {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---- Hero --------------------------------------------------------------- */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: var(--gap);
  align-items: center;
}
.hero__lead {
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.5rem 0 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__media video {
  width: 100%;
  border-radius: var(--radius);
}

/* ---- Feature rows ------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.feature-row--reverse .feature-row__media {
  order: 2;
}
.feature-row__media img {
  border-radius: var(--radius);
}
.feature-row__body .h2 {
  margin: 0.5rem 0 1rem;
}
.feature-row__body .lead {
  margin-bottom: 1.5rem;
}

/* ---- Post cards --------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* wide strip: all items in one row (e.g. the 5 case studies on the solutions page) */
.post-grid--wide {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.post-card__media {
  display: block;
  width: 100%;
}
.post-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.post-card__meta {
  color: var(--action);
  background: #eff4fb;
  border-radius: 20px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  align-self: flex-end;
  width: fit-content; /* pill hugs its text (esp. in the block article header) */
  margin: 0;
}
.post-card__title {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
}

/* ---- Closing CTA -------------------------------------------------------- */
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 4rem var(--pad-x) 2rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 0.75fr auto;
  gap: 8vw;
  align-items: start;
}
.site-footer__brand img {
  height: 2rem;
  margin-bottom: 1rem;
}
.site-footer__fineprint {
  color: #98a2b3;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.site-footer__fineprint a {
  color: #fff;
  text-decoration: underline;
}
.site-footer__menus {
  display: flex;
  gap: 4rem;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer__heading {
  color: #98a2b3;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.site-footer__col a {
  color: #eaecf0;
}
.site-footer__col a:hover {
  color: #fff;
}
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.site-footer__social img {
  width: 1.1rem;
  height: 1.1rem;
}
.site-footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff26;
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: #98a2b3;
  font-size: 0.9rem;
}
.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}
.site-footer__funding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}
.site-footer__funding img {
  height: 44px;
  width: auto;
}

/* ---- Cookie banner (Finsweet — attributes/classes kept intact) ---------- */
.fs-cc-banner_component {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 90;
  max-width: 40rem;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.fs-cc-banner_container {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.fs-cc-banner_text {
  flex: 1;
  min-width: 15rem;
  font-size: 0.9rem;
}
.fs-cc-banner_buttons-wrapper {
  display: flex;
  gap: 0.5rem;
}
.fs-cc-banner_button {
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--action);
  color: #fff;
  cursor: pointer;
}
.fs-cc-button-alt {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* ---- Investors "Our Purpose" gradient banner --------------------------- */
.purpose-banner {
  background: linear-gradient(45deg, #52d7dc, #448ae7 56%, #448ae7);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.purpose-banner .h1 {
  color: #fff;
}
.purpose-banner .lead {
  color: #fff;
  max-width: 46rem;
  margin: 1rem auto 0;
}

/* ---- Solution hero (centered, subtle mint gradient band) --------------- */
.solution-hero {
  background: linear-gradient(#fff, #edf7f1);
  text-align: center;
}
.solution-hero__inner {
  max-width: 50rem;
  margin-inline: auto;
}
.solution-hero .lead {
  margin: 1rem 0 2rem;
}
.solution-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ---- Interior page hero (title band) ----------------------------------- */
.page-hero {
  text-align: center;
  padding-bottom: 2rem;
}
.page-hero__inner {
  max-width: 50rem;
  margin-inline: auto;
}
.page-hero .lead {
  margin-top: 1rem;
}
/* Left-aligned hero (blog / case-study listings) */
.page-hero--left {
  text-align: left;
}
.page-hero--left .page-hero__inner {
  max-width: 60rem;
  margin-inline: 0;
}
/* Featured listing item (large row above the grid) */
.listing-featured {
  margin-bottom: var(--gap);
}
/* flex column so the read-time pill can right-align (align-self:flex-end) while
   the title + link stay left, matching the live featured post */
.listing-featured .feature-row__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
/* Document hero (legal pages): left-aligned title in the reading column */
.page-hero--doc {
  text-align: left;
}
.page-hero--doc .page-hero__inner {
  max-width: 48rem;
}

/* ---- Prose (rich-text bodies: legal pages, articles) ------------------- */
.prose {
  max-width: 48rem;
  margin-inline: auto;
  color: var(--body);
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
}
.prose h3 {
  color: var(--ink);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}
.prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.prose a {
  color: var(--action);
  text-decoration: underline;
}
.prose strong {
  color: var(--ink);
}
.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.prose thead th,
.prose tr:first-child {
  background: var(--bg-muted);
  color: var(--ink);
  font-weight: 600;
}
.prose table :is(th, td) {
  vertical-align: top;
}

/* ---- Article (blog post) ----------------------------------------------- */
.article__back {
  margin-bottom: 1.5rem;
}
.article__title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.05;
  margin: 0.5rem 0;
}
.article__date {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.article__date-label {
  display: block;
  color: var(--brand);
  font-weight: 600;
}
.article__hero {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
/* Two-column post/case-study header: text left, hero image right */
.article__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 1rem 0 3rem;
}
.article__header .article__hero {
  margin: 0;
}
.article-band {
  background: var(--bg-muted);
}
.article__header-media--card img {
  border: 1px solid var(--line);
  background: #fff;
}
.prose figure {
  margin: 1.75rem 0;
}
.prose figure img {
  width: 100%;
}
.prose figure figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---- Check lists (feature/capability bullets) -------------------------- */
.check-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}
.text-link {
  color: var(--action);
  text-decoration: underline;
}
.text-link:hover {
  color: var(--brand);
}

/* ---- Interior page hero actions ---------------------------------------- */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---- Card grid (product "access" / engine cards) ----------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
}

/* ---- Video embed (responsive iframe) ----------------------------------- */
.video-embed {
  position: relative;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}
.video-embed iframe,
.video-embed__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

/* ---- History timeline (about) ------------------------------------------ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.timeline__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.timeline__media img {
  max-height: 3rem;
  width: auto;
}
.timeline__date {
  color: var(--brand);
  font-weight: 700;
}
.timeline__event {
  color: var(--body);
  margin: 0;
}

/* ---- Offices (contact) ------------------------------------------------- */
.contact-form {
  max-width: 40rem;
  margin-inline: auto;
}
.contact-form__title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-form__note {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9em;
}
.contact-form__note a {
  color: var(--action);
  text-decoration: underline;
}
.marketplace-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.marketplace-badges img {
  height: 150px; /* explicit size — the SE-Badge SVG has only a viewBox (no
                    intrinsic width) and would otherwise collapse to 0 */
  width: auto;
  max-width: 100%;
}
.support-form {
  max-width: var(--container);
  margin-inline: auto;
}
.offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}
.office {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.office__icon {
  width: 2.5rem;
  height: auto;
}
.office__title {
  color: var(--ink);
  font-size: 1.5rem;
  margin: 0;
}
.office__addr {
  color: var(--body);
  margin: 0;
}

/* ---- Pipeline table ---------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
}
.pipeline-table {
  width: 100%;
  min-width: 60rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.pipeline-table th,
.pipeline-table td {
  padding: 0.75rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.pipeline-table tbody tr {
  border-top: 1px solid var(--line);
}
.pipeline-table thead th {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--line);
}
.pipeline-table__note {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}
.pipeline-table__caption {
  text-align: center;
  color: var(--muted);
  margin: 1.5rem 0;
}

/* ---- Stats (R&D headline figures) -------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 1.5rem 0;
}
.stat__number {
  color: var(--brand);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.stat__label {
  color: var(--muted);
}

/* ---- Publications (R&D) ------------------------------------------------ */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pub-filters__input,
.filter-input {
  min-width: 12rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}
.pub-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pub {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.pub__title {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.pub__authors {
  margin: 0 0 0.25rem;
}
.pub__meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.pub__category {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  background: var(--bg-muted);
  border-radius: 20px;
  font-size: 0.8rem;
}
.pub__category:empty {
  display: none;
}
.pub-pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Funded projects (R&D) --------------------------------------------- */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.funding-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.funding-card__title {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.funding-card__text {
  margin: 0 0 0.75rem;
}
.funding-card__grant {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --section-y: 3.5rem;
    --gap: 2.5rem;
    --pad-x: 1.25rem;
  }
  .h1 {
    font-size: 2.75rem;
  }
  .h2 {
    font-size: 2.25rem;
  }

  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad-x) 1.5rem;
  }
  .site-header {
    position: relative;
  }
  .site-header.is-open .nav {
    display: flex;
  }
  .nav__primary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }
  .nav__item--has-menu {
    position: static;
  }
  .nav__menu {
    position: static;
    display: none;
    box-shadow: none;
    border-top: 0;
  }
  .mega__inner,
  .mega--company .mega__inner {
    display: block;
    padding: 0.25rem 0 0.5rem 1rem;
  }
  .mega__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mega__link {
    padding: 0.6rem 0;
  }
  .mega__feature,
  .mega__socials {
    display: none;
  }
  .nav__cta {
    align-self: flex-start;
  }

  .hero__grid,
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row--reverse .feature-row__media {
    order: 0;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .article__header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .offices {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats {
    gap: 1.5rem;
  }
  .funding-grid {
    grid-template-columns: 1fr;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .site-footer__menus {
    flex-wrap: wrap;
    gap: 2rem;
  }
}
