/* =============================================================================
   Kalevala Therapeutics: warm greige + blue-steel (slide palette)
   ============================================================================= */

/* SK Concretica: add licensed .woff2 files to /fonts (see fonts/README.txt). */
@font-face {
  font-family: "SK Concretica";
  src:
    url("fonts/SKConcretica-Regular.woff2") format("woff2"),
    url("fonts/SKConcretica-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SK Concretica";
  src:
    url("fonts/SKConcretica-Medium.woff2") format("woff2"),
    url("fonts/SKConcretica-Medium.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Webflow export palette (Kalevala Therapeutics) */
  --color-bg: #faf9f7;
  --color-bg-secondary: #f0eeeb;
  --color-frost: rgba(255, 255, 255, 0.78);
  --color-frost-solid: #f4f2ef;
  --color-ink: #0a0a0a;
  --color-body: rgba(10, 10, 10, 0.58);
  --color-border: rgba(10, 10, 10, 0.12);
  --color-accent: #282d26;
  --color-accent-hover: #454e42;
  /* Legacy steel aliases → forest accent (existing rules) */
  --color-accent-steel: #8a9a8e;
  --color-accent-steel-mid: #6d7f72;
  --color-accent-steel-deep: #282d26;
  --color-surface: #f0eeeb;
  --color-focus: #282d26;
  --color-ink-soft: rgba(10, 10, 10, 0.55);
  --color-muted: rgba(10, 10, 10, 0.55);
  --font-heading: "Onest", system-ui, -apple-system, sans-serif;
  --font-brand: var(--font-heading);
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --max-width: 1280px;
  --max-width-narrow: 720px;
  /* One horizontal rhythm: nav, mega, containers, footers share this */
  --page-gutter: clamp(1rem, 4vw, 1.5rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-btn: 12px;
  --transition: 0.2s ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  /* Full-width fixed panels that use translateX(100%) extend past the viewport and
     create horizontal scroll / “slack” on the right; clip at the root instead. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-slide__headline,
.page-hero .section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

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

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-accent-steel-deep);
  opacity: 1;
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

a[href^="mailto:"] {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Header & navigation
   ----------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
  background: var(--color-frost);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.2s ease, backdrop-filter 0.25s ease;
}

.site-header__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

/* Home: fixed header over hero, transparent until scroll */
.page-home .site-header--home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.page-home .site-header--home.site-header--scrolled {
  background: var(--color-frost);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

/* Legibility over left photo: light chrome until scrolled */
.page-home .site-header--home:not(.site-header--scrolled) .logo a {
  color: #f5f3ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.page-home .site-header--home:not(.site-header--scrolled) .logo-image {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.page-home .site-header--home:not(.site-header--scrolled) .nav-links a {
  color: #1a1a1a;
}

.page-home .site-header--home:not(.site-header--scrolled) .nav-toggle span {
  background: #1a1a1a;
}

.site-header--scrolled {
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

/* Deck-style nav pill (home only) */
.hero-nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 6px;
  background: #1a1a1a;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-home .hero-nav-pill {
  display: flex;
}

.hero-nav-pill__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.hero-nav-pill__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.hero-nav-pill__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hero-nav-pill__btn:focus-visible {
  outline: 2px solid var(--color-accent-steel-mid);
  outline-offset: 2px;
}

.hero-nav-pill__icon {
  display: block;
}

.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.logo__name {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo a {
  color: var(--color-ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a:hover {
  opacity: 0.75;
  text-decoration: none;
}

.logo-image {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--color-body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-links a:hover {
  text-decoration: underline;
  color: var(--color-ink);
  opacity: 1;
}

.nav-links a.nav-current {
  color: var(--color-ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-frost-solid);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
  }
}

/* -----------------------------------------------------------------------------
   Layout & typography
   ----------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Webflow-style section rhythm */
.wf-section {
  padding: var(--section-space) 0;
}

.wf-section--tight {
  padding: calc(var(--section-space) * 0.65) 0;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-body);
  margin: 0 0 0.65rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.0625rem;
  color: var(--color-body);
  margin: 0 0 1.25rem;
  max-width: 52ch;
  font-weight: 400;
}

.content-section {
  padding: calc(var(--section-space) * 0.65) 0;
}

.content-section h2:not(.section-title) {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-ink);
}

.content-section p {
  margin: 0 0 1rem;
  color: var(--color-body);
  max-width: 65ch;
}

.content-section strong {
  color: var(--color-ink);
}

.content-section a {
  font-weight: 500;
}

.content-section code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-frost-solid);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

/* Frosted card (slide: #F0EEEACC) */
.card-frost {
  background: var(--color-frost);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

/* Blue-steel grade on lab photography */
.media-steel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.media-steel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(168, 196, 212, 0.42) 0%,
    rgba(168, 196, 212, 0.18) 45%,
    rgba(232, 228, 220, 0.15) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.media-steel img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

/* -----------------------------------------------------------------------------
   Hero slide (home): 16:9, 45% lab / 55% greige, overlapping frosted card
   ----------------------------------------------------------------------------- */

.hero-slide {
  position: relative;
  width: 100%;
  height: min(56.25vw, 100vh);
  min-height: 420px;
  max-height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
}

.page-home .hero-slide {
  /* Taller floor so the overlapping card (headline + body + CTAs) is not clipped by overflow:hidden */
  height: min(56.25vw, calc(100dvh - var(--header-height)));
  min-height: max(520px, min(56.25vw, calc(100dvh - var(--header-height))));
  max-height: calc(100dvh - var(--header-height));
}

.hero-slide__body {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.hero-slide__photo {
  position: relative;
  flex: 0 0 45%;
  max-width: 45%;
  min-height: 100%;
  overflow: hidden;
}

.hero-slide__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.25) contrast(1.2) brightness(0.98);
  transform: scaleX(-1);
}

.hero-slide__photo-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(40, 45, 38, 0.06) 0%,
    transparent 55%,
    rgba(228, 223, 217, 0.08) 100%
  );
  mix-blend-mode: multiply;
}

.hero-slide__greige {
  flex: 1 1 55%;
  min-width: 0;
  background: var(--color-bg);
}

.hero-slide__card {
  position: absolute;
  left: 38%;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  min-width: 0;
  max-width: 680px;
  margin: 0;
  padding: clamp(28px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 24px rgba(0, 0, 0, 0.06);
}

.hero-slide__label {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-sans);
}

.hero-slide__headline {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.hero-slide__bodycopy {
  margin: 0;
}

.hero-slide__bodycopy p {
  margin: 0 0 0.65em;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 100%;
}

.hero-slide__bodycopy p:last-child {
  margin-bottom: 0;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn--hero-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 1.5em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--hero-fill:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  opacity: 1;
}

.btn--hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em 1.5em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.12);
}

.btn--hero-outline:hover {
  background: rgba(10, 10, 10, 0.04);
  border-color: transparent;
  opacity: 1;
}

a.btn--hero-fill:focus-visible,
a.btn--hero-outline:focus-visible {
  outline: 2px solid var(--color-accent-steel-deep);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .page-home .hero-slide {
    min-height: unset;
    max-height: none;
    height: auto;
  }

  .hero-slide {
    height: auto;
    max-height: none;
    min-height: unset;
    aspect-ratio: unset;
  }

  .hero-slide__body {
    flex-direction: column;
    min-height: auto;
  }

  .hero-slide__photo {
    flex: none;
    max-width: none;
    width: 100%;
    height: min(42vh, 320px);
    min-height: 220px;
  }

  .hero-slide__greige {
    display: none;
  }

  .hero-slide__card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: -2.5rem var(--page-gutter) 0;
    padding: clamp(28px, 6vw, 40px);
  }

  .hero-slide__headline {
    max-width: none;
  }

  .page-home .hero-nav-pill {
    display: none;
  }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: calc(var(--section-space) * 0.35) 0;
}

.page-hero .section-title {
  margin-bottom: 0.5rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Buttons & chips
   ----------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

a.btn:hover {
  opacity: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Primary CTA (Webflow accent) */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  text-decoration: none;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

/* Ghost: #F0EEEA + 1px #C8C4BC */
.btn--secondary,
.btn--ghost {
  background: var(--color-frost-solid);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.btn--secondary:hover,
.btn--ghost:hover {
  background: #e8e4dc;
  opacity: 1;
  text-decoration: none;
}

.btn--solid {
  background: var(--color-ink);
  color: #fff;
  border: 1px solid var(--color-ink);
  text-decoration: none;
}

.btn--solid:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  opacity: 1;
  color: #fff;
  text-decoration: none;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  opacity: 0.65;
}

.inline-links {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.inline-links a {
  font-weight: 500;
  text-decoration: none;
}

.inline-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.inline-links__sep {
  margin: 0 0.5rem;
  color: var(--color-border);
  user-select: none;
}

/* -----------------------------------------------------------------------------
   Principles (no card panels)
   ----------------------------------------------------------------------------- */

.card-frost .principles {
  margin-top: 1.75rem;
}

.principles {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.principles__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.principles__item:last-child {
  border-bottom: none;
}

.principles__item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-ink);
}

.principles__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 52ch;
}

/* -----------------------------------------------------------------------------
   CTA strip (rule only, no color band)
   ----------------------------------------------------------------------------- */

.cta-strip {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.cta-strip__inner {
  margin: 0;
}

.cta-strip__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-body);
  max-width: 52rem;
}

.cta-strip__text strong {
  color: var(--color-ink);
  font-weight: 600;
}

.cta-strip__text a {
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Split section with image
   ----------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.split__figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.split__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--color-border);
}

.site-footer-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  opacity: 0.95;
}

.footer-copyright-row a {
  color: var(--color-ink-soft);
  text-decoration: underline;
}

.footer-copyright-row a:hover {
  color: var(--color-ink);
  opacity: 1;
}

.footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 75ch;
}

/* -----------------------------------------------------------------------------
   Pipeline page
   ----------------------------------------------------------------------------- */

.focus-list {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0 0 1.5rem;
}

.focus-list li {
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--color-ink-soft);
}

.focus-list li strong {
  font-weight: 600;
  color: var(--color-ink);
}

.pipeline-scroll-wrapper {
  overflow: visible;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .pipeline-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem calc(-1 * var(--page-gutter));
    padding: 0 var(--page-gutter);
  }

  .pipeline-chart {
    min-width: 800px;
  }
}

.pipeline-chart {
  background: transparent;
  padding: 0;
  margin: 0;
}

.grid-container {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.header-row {
  display: table-row;
}

.header-cell {
  display: table-cell;
  text-align: center;
  padding: 8px 0 12px;
  border-bottom: 2px solid var(--color-accent-steel-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--color-ink);
  font-family: var(--font-sans);
}

.header-cell:first-child {
  width: 40%;
}

.header-cell.stage {
  width: 15%;
}

.program-row {
  display: table-row;
  height: 56px;
}

.program-row.tall {
  height: 68px;
}

.program-row.phase1-program .stage-cell:first-of-type {
  overflow: visible;
}

.label-cell {
  display: table-cell;
  vertical-align: middle;
  padding-right: 24px;
  width: 40%;
}

.program-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
  margin-bottom: 3px;
  line-height: 1.15;
  font-family: var(--font-sans);
  /* Align stage bars when one program uses two code lines and others use one */
  min-height: 2.3em;
}

.program-name {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.25;
  font-family: var(--font-sans);
}

.stage-cell {
  display: table-cell;
  vertical-align: middle;
  width: 15%;
  padding: 0;
  position: relative;
}

.stage-cell.double-span {
  width: 30%;
}

.bar {
  background: var(--color-ink);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin: 6px 0;
  position: relative;
  font-family: var(--font-sans);
  border-radius: 4px 0 0 4px;
}

.bar.spanning-bar {
  width: 200%;
  position: absolute;
  left: 0;
  top: 6px;
  z-index: 1;
}

.bar.double {
  width: 100%;
}

.bar span {
  position: relative;
  z-index: 10;
  text-align: center;
}

.content-section p.pipeline-footnote {
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.5;
  font-family: var(--font-sans);
  text-align: center;
  max-width: none;
}

.pv-chart {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px);
  margin: 0 0 1.5rem;
  color: var(--color-ink);
  font-family: var(--font-sans);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pv-phases {
  display: flex;
  align-items: flex-end;
  margin-bottom: 6px;
}

.pv-label-spacer {
  width: 200px;
  flex-shrink: 0;
}

.pv-phase {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pv-divider {
  height: 2px;
  background: var(--color-accent-steel);
  margin-bottom: 1.25rem;
}

.pv-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
}

.pv-info {
  width: 200px;
  flex-shrink: 0;
  padding-right: 16px;
}

.pv-code {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
  font-family: var(--font-mono);
}

.pv-name {
  display: block;
  font-size: 0.75rem;
  color: var(--color-body);
  margin-top: 1px;
}

.pv-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pv-track {
  flex: 1;
  position: relative;
  height: 14px;
}

.pv-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  background: var(--color-accent);
  border-radius: 5px;
}

.pv-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.pv-sep {
  height: 1px;
  background: var(--color-border);
  margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .pv-label-spacer,
  .pv-info {
    width: 140px;
  }

  .pv-code {
    font-size: 0.75rem;
  }

  .pv-name {
    font-size: 0.6875rem;
  }

  .pv-phase {
    font-size: 0.6rem;
  }
}

.pipeline-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.pipeline-focus-item {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.pipeline-focus-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.pipeline-focus-item p {
  font-size: 0.9rem;
  color: var(--color-body);
  margin: 0;
  line-height: 1.55;
}

/* -----------------------------------------------------------------------------
   Contact form
   ----------------------------------------------------------------------------- */

.contact-form .hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  max-width: 38rem;
  margin: 2rem auto 3rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.contact-form .required {
  color: var(--color-ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--color-frost-solid);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-steel-mid);
  box-shadow: 0 0 0 3px rgba(168, 196, 212, 0.35);
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--color-ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: #000;
}

.contact-form button:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.form-message {
  max-width: 38rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  text-align: center;
}

.success-message {
  background: var(--color-frost);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.success-message h3 {
  margin: 0 0 0.5rem;
  color: var(--color-ink);
  font-size: 1.2rem;
}

.success-message p {
  margin: 0;
  color: var(--color-ink-soft);
}

/* -----------------------------------------------------------------------------
   Team & advisors
   ----------------------------------------------------------------------------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 2rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.profile-card__photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-card__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(168, 196, 212, 0.35);
  color: var(--color-ink);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.profile-card__body {
  padding: 0;
  min-width: 0;
}

.profile-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--color-ink);
}

.profile-card__role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.profile-card__bio {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}

.profile-card__links {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.875rem;
}

.profile-card__links a {
  margin-right: 1rem;
}

@media (max-width: 520px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .profile-card__photo {
    width: 90px;
    height: 90px;
  }
}

/* -----------------------------------------------------------------------------
   Webflow-style site header, mega menu, home sections, inverse footer
   ----------------------------------------------------------------------------- */

.wf-site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.wf-nav-inner {
  max-width: none;
  margin: 0 auto;
  padding: 0.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.wf-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.wf-logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.wf-logo__mark {
  width: 33px;
  height: 33px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.wf-logo__img {
  height: 34px;
  width: auto;
  display: block;
}

.wf-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}

.wf-nav-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.wf-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.wf-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 0.5rem;
  flex-wrap: wrap;
}

.wf-nav-list > li {
  position: relative;
  margin: 0;
}

.wf-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}

.wf-nav__trigger:hover,
.wf-nav__trigger[aria-expanded="true"] {
  color: var(--color-accent);
}

.wf-nav__trigger:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.wf-nav__caret {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.65;
}

.wf-nav__link {
  display: inline-block;
  padding: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.wf-nav__link:hover,
.wf-nav__link.wf-nav__link--current {
  color: var(--color-accent);
  text-decoration: none;
  opacity: 1;
}

.wf-nav-cta {
  flex-shrink: 0;
}

.wf-btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.25em;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wf-btn-nav:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.wf-mega {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height);
  z-index: 350;
  padding: 1.5rem var(--page-gutter) 2rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.08);
}

.wf-site-header.is-mega-open .wf-mega {
  display: block;
}

.wf-mega__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: stretch;
}

.wf-mega__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.wf-mega__col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.wf-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-mega__list li {
  margin: 0 0 0.35rem;
}

.wf-mega__link {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--color-ink);
}

.wf-mega__link:hover {
  color: var(--color-accent);
  opacity: 1;
  text-decoration: none;
}

.wf-mega__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--color-accent);
}

.wf-mega__link strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: inherit;
}

.wf-mega__link span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.wf-mega-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: min(280px, 100%);
  padding: 1.5rem;
  background: var(--color-ink);
  color: #ece7e0;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wf-mega-card:hover {
  opacity: 0.92;
  text-decoration: none;
  color: #ece7e0;
}

.wf-mega-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: #fff;
}

.wf-mega-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(236, 231, 224, 0.65);
}

.wf-mega-card__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.wf-footer-logo-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: #ece7e0;
}

.wf-footer-logo-link:hover {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.wf-footer-logo-mark {
  color: #ece7e0;
  flex-shrink: 0;
}

.wf-hide-mobile {
  display: inline-flex;
}

.wf-hide-desktop {
  display: none;
}

@media (max-width: 900px) {
  .wf-hide-mobile {
    display: none !important;
  }

  .wf-hide-desktop {
    display: flex !important;
  }

  a.wf-hide-desktop.wf-nav__link {
    display: flex !important;
  }
}

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

.wf-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  padding: 0.5rem 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
  z-index: 10;
}

.wf-dropdown.is-open .wf-dropdown-panel {
  display: block;
}

.wf-dropdown-panel a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
}

.wf-dropdown-panel a:hover {
  background: rgba(10, 10, 10, 0.04);
  opacity: 1;
  text-decoration: none;
}

.wf-section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.wf-section-header .wf-eyebrow {
  margin-bottom: 0.65rem;
}

/* Beat .content-section h2 rules so .wf-heading-xl keeps Webflow sizing everywhere */
.content-section h2.wf-heading-xl {
  font-size: clamp(1.65rem, 3vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--color-ink);
}

.content-section .wf-section-header {
  width: 100%;
}

.content-section .wf-section-header h2.wf-heading-xl {
  margin: 0 0 0.5rem;
  text-align: center;
}

.content-section .wf-section-header .wf-eyebrow {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.content-section .wf-actions {
  max-width: none;
}

.wf-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: var(--color-muted);
  margin: 0;
}

.wf-heading-xl {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3vw, 1.95rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.wf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.wf-feature {
  text-align: center;
}

.wf-feature__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf-feature__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.wf-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-ink);
}

.wf-feature p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-body);
}

/* How we work: horizontal flowchart (stacked on small screens) */
.wf-process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  width: 100%;
  counter-reset: step;
}

.wf-process-step {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.15rem 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--color-frost-solid);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  text-align: center;
  box-sizing: border-box;
}

/* CSS chevron between cards */
.wf-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid rgba(10, 10, 10, 0.25);
  border-right: 2px solid rgba(10, 10, 10, 0.25);
}

.wf-process-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-accent);
  line-height: 1;
}

.content-section .wf-process-step__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  width: 100%;
  text-wrap: balance;
  min-height: 2.55em;
}

.wf-process-step__dek {
  margin: 0;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-body);
  max-width: none;
  text-align: center;
}

@media (max-width: 900px) {
  .wf-process-flow {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .wf-process-step:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: -0.9rem;
    transform: translateX(50%) rotate(135deg);
  }

  .content-section .wf-process-step__title {
    min-height: 0;
  }
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

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

.wf-team-card {
  text-align: center;
}

.wf-avatar {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.wf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wf-team-card__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}

.wf-team-card__role {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.wf-contact-single {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.wf-contact-single .wf-eyebrow {
  margin-bottom: 0.65rem;
}

.wf-contact-single .wf-heading-xl {
  margin-bottom: 0.75rem;
}

.wf-contact-single p {
  margin: 0 0 1rem;
  color: var(--color-body);
}

.wf-contact-meta {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.site-footer--inverse {
  background: #000;
  color: rgba(236, 231, 224, 0.65);
  border-top: none;
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}

.site-footer--inverse a {
  color: rgba(236, 231, 224, 0.85);
  text-decoration: none;
}

.site-footer--inverse a:hover {
  color: #ece7e0;
  opacity: 1;
  text-decoration: underline;
}

.site-footer--inverse .wf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer--inverse .wf-footer-brand {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ece7e0;
  margin: 0 0 0.5rem;
}

.site-footer--inverse .wf-footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 231, 224, 0.45);
  font-family: var(--font-sans);
}

.site-footer--inverse .wf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--inverse .wf-footer-col li {
  margin: 0 0 0.5rem;
}

.site-footer--inverse .wf-footer-divider {
  height: 1px;
  background: rgba(236, 231, 224, 0.12);
  margin: 2rem 0 1.25rem;
}

.site-footer--inverse .wf-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
}

.site-footer--inverse .wf-footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer--inverse .footer-disclaimer {
  color: rgba(236, 231, 224, 0.55);
}

.site-footer--compact {
  padding: 2rem 0 2.5rem;
}

.site-footer--compact .wf-footer-compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-size: 0.8125rem;
}

.site-footer--compact .wf-footer-logo-link img {
  vertical-align: baseline;
  margin-right: 0.25rem;
  position: relative;
  top: 0.7em;
}

.wf-footer-compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer--compact .wf-footer-compact-row a {
  color: rgba(236, 231, 224, 0.85);
  text-decoration: none;
}

.site-footer--compact .wf-footer-compact-row a:hover {
  color: #ece7e0;
  text-decoration: underline;
  opacity: 1;
}

.site-footer--compact .wf-footer-compact-row .wf-footer-copy {
  margin-left: auto;
  color: rgba(236, 231, 224, 0.55);
}

.site-footer--compact .footer-disclaimer {
  max-width: none;
  text-align: left;
  margin-top: 1rem;
  opacity: 0.55;
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .wf-mega__inner {
    grid-template-columns: 1fr;
  }

  .wf-mega-card {
    min-width: 0;
  }

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

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

  .site-footer--inverse .wf-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wf-nav-toggle {
    display: block;
  }

  .wf-nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem var(--page-gutter) 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-out), opacity 0.2s ease, visibility 0.2s;
  }

  .wf-nav-menu.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .wf-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .wf-nav-list > li {
    border-bottom: 1px solid var(--color-border);
  }

  .wf-nav__trigger,
  .wf-nav__link {
    display: flex;
    width: 100%;
    padding: 0.85rem 0;
  }

  .wf-mega {
    position: static;
    top: auto;
    z-index: auto;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0 0 1rem 0.5rem;
  }

  .wf-site-header.is-mega-open .wf-mega {
    display: block;
  }

  .wf-mega__cols {
    grid-template-columns: 1fr;
  }

  .wf-dropdown-panel {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 0.5rem;
  }

  .wf-dropdown.is-open .wf-dropdown-panel {
    display: block;
  }

  .wf-nav-cta {
    margin-top: 1rem;
    width: 100%;
  }

  .wf-btn-nav {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 600px) {
  .wf-feature-grid {
    grid-template-columns: 1fr;
  }

  .wf-team-grid {
    grid-template-columns: 1fr;
  }

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

/* -----------------------------------------------------------------------------
   JS: scroll reveals (html.js set early in page to avoid flash)
   ----------------------------------------------------------------------------- */

html.js .js-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

html.js .js-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html.js .js-reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .site-header {
    transition: none;
  }
}
