@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/*
  Lowercase only: this face maps a–z. Use text-transform: lowercase on --font-display text; use Inter for
  digits/symbols ($, +, etc.). If this file is actually an icon kit, swap in a real text cut for headings.

  Single file serves display weights used in the theme (400 body cues / 700 headings).
*/
@font-face {
  font-family: funder-games;
  src:
    url("assets/funder-games-Regular.otf") format("opentype"),
    url("assets/funder-games.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;

  /* Avoid fallback-to-custom swap flash on the brand; preload in HTML makes the face available early. */
  font-display: optional;
}

:root {
  /* Brand palette */
  --bg: #222426;
  --bg-2: #2a2c30;
  --surface: #2e3136;
  --surface-2: #35383e;
  --text: #ffffff;
  --muted: #bfbcbc;
  --primary: #407674;
  --primary-hover: #355f5e;
  --accent: #407674;
  --gold: #9b8b70;
  --silver-top: #f2f1f0;
  --silver-mid: #bfbcbc;
  --silver-bottom: #8e8b8b;
  --border: rgba(191, 188, 188, 0.18);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --max-width: 1160px;

  /* Header mark: up to 3× the old 2.25rem cap; scales down on narrow viewports. */
  --brand-mark-size: clamp(3.25rem, 18vw, 6.75rem);
  --site-nav-min-height: calc(var(--brand-mark-size) + 2rem);

  /* funder-games display face (Regular.otf, ttf fallback): lowercase a–z only; never use uppercase with this stack. */
  --font-display: "funder-games", georgia, "Times New Roman", serif;

  /* Tighter tracking for the display font (reduce if letters feel too spaced). */
  --display-letter-spacing: 0em;

  /* Vertical band between stacked sections (matches home page rhythm) */
  --section-y-gap: clamp(3.25rem, 7vw, 5rem);

  /* Celtic trim (html::before / ::after): scales with viewport, ~120px at 1920px wide, capped; see assets/celtic-edge-strip.svg */
  --celtic-edge-w: clamp(2.75rem, 6.25vw, 7.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);

  /* Soft depth + brand tie-in (teal + charcoal lift + faint gold at sides echoing knot trim); under strips & grain. */
  background-image:
    radial-gradient(
      ellipse 125% 52% at 50% -14%,
      color-mix(in srgb, var(--primary) 17%, transparent) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 92% 46% at 50% 108%,
      color-mix(in srgb, var(--primary) 9%, transparent) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 72% 88% at 50% 42%,
      color-mix(in srgb, var(--bg-2) 48%, transparent) 0%,
      transparent 64%
    ),
    radial-gradient(
      ellipse 40% 82% at 0% 50%,
      color-mix(in srgb, var(--gold) 5.5%, transparent) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 40% 82% at 100% 50%,
      color-mix(in srgb, var(--gold) 5.5%, transparent) 0%,
      transparent 58%
    );
  background-repeat: no-repeat;

  /* Reserve scrollbar width so pages with/without vertical scroll don’t shift the centered header. */
  scrollbar-gutter: stable;
}

body {
  background: transparent;
}

/* ~120px Celtic trim; body stays transparent so these show over html background. */
html::before,
html::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--celtic-edge-w);
  pointer-events: none;
  background-image: url("assets/celtic-edge-strip.svg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: var(--celtic-edge-w) auto;
  z-index: 0;
}

html::before {
  left: 0;
}

html::after {
  right: 0;
  transform: scaleX(-1);
}

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

/*
 * Cross-document view transitions are off: with MPAs they can reuse a snapshot of the *previous* page’s
 * header during the transition, so visitors briefly (or confusingly) saw stale nav labels after clicking
 * footer links (e.g. Team / Newsletter) even though the new HTML was correct.
 */
@view-transition {
  navigation: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 1;
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 26rem) {
  html::before,
  html::after {
    display: none;
  }
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 45%, transparent),
    transparent
  );
}

.site-nav {
  min-height: var(--site-nav-min-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}

.brand {
  text-transform: lowercase;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--display-letter-spacing);
  display: flex;
  align-items: center;
  gap: 0.19rem;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--brand-mark-size) * 0.055);
  box-sizing: content-box;
  line-height: 0;
}

.brand-mark {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  display: block;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: linear-gradient(180deg, var(--silver-top) 0%, var(--silver-mid) 45%, var(--silver-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
}

.nav-links .btn-nav-contact {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.nav-links .btn-nav-contact[aria-current="page"] {
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  background: rgba(255, 255, 255, 0.07);
}

.nav-link {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

/* Company / Games: disclosure dropdowns in primary nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  padding: 0;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-trigger::after {
  content: "▾";
  font-size: 0.65em;
  opacity: 0.65;
  line-height: 1;
}

.nav-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: color-mix(in srgb, var(--bg) 94%, #000);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.nav-dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.nav-dropdown-link.active {
  color: var(--text);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible {
  color: var(--text);
}

.nav-dropdown[open] .nav-dropdown-trigger,
.nav-dropdown:has(.nav-dropdown-link.active) .nav-dropdown-trigger {
  color: var(--text);
}

.menu-button {
  display: none;
}

.hero {
  padding: 5rem 0 calc(var(--section-y-gap) / 2);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-tagline {
  margin: -0.35rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.15;
  font-family: var(--font-display);
  font-style: normal;
  text-transform: lowercase;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  letter-spacing: var(--display-letter-spacing);
  font-weight: 700;
  line-height: 1.08;
  background: linear-gradient(180deg, var(--silver-top) 0%, var(--silver-mid) 45%, var(--silver-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  letter-spacing: var(--display-letter-spacing);
  font-weight: 700;
  background: linear-gradient(180deg, var(--silver-top) 0%, var(--silver-mid) 45%, var(--silver-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

h3 {
  font-size: 1.2rem;
  letter-spacing: var(--display-letter-spacing);
  font-weight: 700;
  background: linear-gradient(180deg, var(--silver-top) 0%, var(--silver-mid) 45%, var(--silver-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  clip-path: none;
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.8125rem;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  position: relative;
  overflow: visible;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero-card {
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::after {
  display: none;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.metric {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric .value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.section {
  padding: calc(var(--section-y-gap) / 2) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.1rem;
  box-shadow: none;
  clip-path: none;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 28%, transparent),
    transparent
  );
}

.label {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  margin-bottom: 0.7rem;
}

/* Games /all-games: flagship row + image that never distorts in grid/flex */
.games-spotlight-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

@media (min-width: 720px) {
  .games-spotlight-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  }
}

.games-spotlight-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 0.5rem;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg) 78%, var(--primary)) 0%,
    var(--bg) 50%,
    color-mix(in srgb, var(--primary) 14%, transparent) 100%
  );
  padding: clamp(0.2rem, 0.75vw, 0.45rem);
  box-sizing: border-box;
}

.games-spotlight-visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 22rem);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* Games /all-games: title sits tight under global h2 reset; give it air above */
.games-spotlight-visual + div > h2 {
  margin-top: clamp(0.65rem, 1.8vw, 1.1rem);
}

/* Gold-accent pill (nav “Flagship”, body “Geis of Anam”, footer link) */
.flagship-badge {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 0.3rem;
  padding: 0.35em 0.65em;
  border: 1px solid color-mix(in srgb, var(--gold) 52%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--gold) 30%, var(--surface-2)) 0%,
    color-mix(in srgb, var(--gold) 14%, var(--surface)) 100%
  );
  color: color-mix(in srgb, var(--gold) 22%, #f4f0e8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.flagship-badge-solo {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(0.65rem, 1.35vw, 0.78rem);
}

a.flagship-badge {
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

a.flagship-badge:hover {
  border-color: color-mix(in srgb, var(--gold) 75%, transparent);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--gold) 42%, var(--surface-2)) 0%,
    color-mix(in srgb, var(--gold) 22%, var(--surface)) 100%
  );
  transform: translateY(-1px);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.logo-pill {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  min-height: 54px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  font-family: Inter, sans-serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.8rem;
}

.project-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 18%, transparent), var(--surface));
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  display: none;
}

.post-list {
  display: grid;
  gap: 0.9rem;
}

.post-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 0.95rem;
  background: var(--surface);
  clip-path: none;
}

/* News cards (home + /news/) */
.news-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-cards--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.news-card {
  display: block;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.news-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.news-card-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg) 85%, var(--primary)) 0%,
    var(--bg) 55%,
    color-mix(in srgb, var(--primary) 12%, transparent) 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.2rem, 1vw, 0.45rem) clamp(0.35rem, 1.5vw, 0.65rem);
  box-sizing: border-box;
}

.news-card-visual-img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.45));
}

.news-card-kicker {
  margin: 0;
  padding: 0.65rem 1rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-weight: 600;
}

.news-card-kicker + .news-card-title {
  padding-top: 0.25rem;
}

.news-card-title {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  letter-spacing: var(--display-letter-spacing);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: lowercase;
  background: linear-gradient(180deg, var(--silver-top) 0%, var(--silver-mid) 45%, var(--silver-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Pill next to title must not inherit clipped transparent fill from the display line */
.news-card-title .flagship-badge {
  -webkit-text-fill-color: unset;
}

.news-card-deck {
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.date {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.cta {
  margin-top: 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 12%, transparent), var(--surface));
  padding: 1.35rem;
  box-shadow: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.support-channel-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.support-channel-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.support-channel-list a:hover {
  color: var(--primary);
}

.support-closing {
  max-width: 36rem;
  margin-inline: auto;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, #000);
}

.footer-inner {
  padding: 1.2rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 741px) {
  .footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: clamp(0.65rem, 2vw, 1.25rem);
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer small {
    white-space: nowrap;
    justify-self: end;
  }
}

.site-footer small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-social-row {
  justify-content: flex-end;
}

/* Social icon row (shared with home “Support us”; defined here for pages that only load styles.css) */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--primary);
  transition:
    background 0.2s,
    transform 0.15s;
}

.social-link:hover {
  background: color-mix(in srgb, var(--primary) 38%, transparent);
  transform: translateY(-2px);
}

.social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  z-index: 20;
  padding: 0.3rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--bg);
  background: color-mix(in srgb, var(--primary) 88%, #fff);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}

.social-link:hover::after,
.social-link:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Footer: open tooltips below icons (avoids clipping above the viewport) */
.site-footer .social-link::after {
  bottom: auto;
  top: calc(100% + 0.4rem);
  transform: translateX(-50%) translateY(-4px);
}

.site-footer .social-link:hover::after,
.site-footer .social-link:focus-visible::after {
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .social-link::after {
    transition: none;
  }
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

/* Newsletter: marketing permissions + GDPR (avoids global display h3 treatment) */
.newsletter-form .newsletter-permissions-title {
  margin: 0.35rem 0 0.45rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  filter: none;
}

.newsletter-form .newsletter-permissions-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.newsletter-form .newsletter-checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.newsletter-form .newsletter-checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 0.28rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.newsletter-form .newsletter-checkbox-row label {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.newsletter-form .newsletter-checkbox-label-strong {
  font-weight: 600;
  color: var(--text);
}

.newsletter-form .newsletter-legal-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.newsletter-form .newsletter-legal-stack p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.newsletter-form .newsletter-gdpr-heading {
  margin: 0 0 0.35rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Newsletter: global `a` is no-underline + inherit; show real links clearly */
.page-newsletter .hero p a,
.newsletter-intro-note a,
.newsletter-form a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.page-newsletter .hero p a:hover,
.newsletter-intro-note a:hover,
.newsletter-form a:hover {
  text-decoration-color: color-mix(in srgb, var(--primary) 88%, transparent);
}

.form-status {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 0.45rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 22%, transparent), var(--surface));
  border: 1px solid var(--border);
}

/* Team page: leadership cards (headshot slot, name, role, bio) */
.page-team .team-member-photo {
  margin: 0 auto 1rem;
  aspect-ratio: 1;
  max-height: 14rem;
  width: 100%;
  max-width: 14rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.page-team .team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Proper names in Inter (global h3 is display + lowercase) */
.page-team .team-member-card > h3 {
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: unset;
  filter: none;
}

.page-team .team-member-role {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.page-team .team-member-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Roster: not public yet — remove .team-member-card--roster-paused from the card in team/index.html to show again. */
.page-team .team-member-card.team-member-card--roster-paused {
  display: none;
}

/* Team page: prior employers / partners (uses .logo-wall + .logo-pill) */
.page-team .team-experience-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 56rem;
  margin-inline: auto;
}

.page-team .team-experience-wall .logo-pill {
  min-width: 0;
  min-height: 3.35rem;
  padding: 0.55rem 0.75rem;
  font-size: clamp(0.65rem, 1.35vw, 0.78rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.page-team .team-experience-wall .logo-pill .partner-logo {
  display: block;
  height: clamp(1.55rem, 4vw, 2.15rem);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .two-col,
  .logo-wall {
    grid-template-columns: 1fr 1fr;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 740px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: var(--surface);
    color: var(--text);
    padding: 0.55rem 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
  }

  .nav-links {
    position: absolute;
    top: var(--site-nav-min-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem 1rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn-nav-contact {
    margin-top: 0.5rem;
    margin-left: 0;
    align-self: flex-start;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.15rem 0;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
    box-shadow: none;
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .two-col,
  .logo-wall,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .footer-social-row {
    justify-content: flex-start;
  }
}
