@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --red: #e8001f;
  --red-deep: #b5001a;
  --red-light: #ff2640;
  --red-pale: #fff0f2;
  --red-mid: #ffd6da;
  --cream: #faf8f5;
  --white: #ffffff;
  --ink: #1a1008;
  --ink-mid: #4a3828;
  --ink-light: #8a7868;
  --ink-faint: #c8bbb0;
  --gold: #c8922a;
  --gold-light: #f5c96a;
  --line: rgba(232, 0, 31, 0.12);
  --line-soft: rgba(26, 16, 8, 0.08);
  --ok-bg: #ecfdf5;
  --ok-ink: #065f46;
  --warn-bg: #fff7ed;
  --warn-ink: #9a3412;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(26, 16, 8, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 16, 8, 0.1);
  --max-width: 1200px;
  --main-width: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-y: scroll;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.64rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 4px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 2px;
}

.brand-mark::before {
  width: 14px;
  height: 4px;
  top: 12px;
  left: 7px;
}

.brand-mark::after {
  width: 4px;
  height: 14px;
  top: 7px;
  left: 12px;
}

.brand-text {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  max-width: 100%;
  overflow: visible;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-link {
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-mid);
  padding: 0.46rem 0.62rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.16s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--red);
  background: var(--red-pale);
  outline: none;
}

.nav-link.active {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(232, 0, 31, 0.26);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.46rem 0.9rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  border-radius: 0;
  padding: 0.82rem 1.1rem;
  border-bottom: 1px solid rgba(26, 16, 8, 0.06);
}

.main {
  width: min(var(--main-width), calc(100% - 3rem));
  margin: 2.5rem auto 2rem;
  flex: 1 0 auto;
}

.page-home {
  width: min(var(--max-width), calc(100% - 3rem));
}

.page-home .hero {
  padding: 0;
  /* Removed overflow: hidden to allow full image visibility */
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
  align-items: center; /* Changed from stretch to allow height growth */
}

.page-home .hero-copy {
  padding: clamp(1.9rem, 3.1vw, 3.1rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.page-home .hero-copy h1 {
  margin: 0.56rem 0 0.76rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.03;
  max-width: 9.4ch;
}

.page-home .hero-copy > p:not(.kicker):not(.hero-partners) {
  max-width: 34ch;
}

.page-home .hero-copy .kicker {
  align-self: flex-start;
  width: fit-content;
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.page-home .hero-partners {
  align-self: flex-start;
  margin: 0 0 0.35rem;
  color: var(--ink-light);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.page-home .hero-actions {
  margin-top: 1.3rem;
}

.page-home .hero-showcase {
  position: relative;
  /* Removed overflow: hidden to prevent clipping of the dashboard preview */
  background: linear-gradient(160deg, #e43b3d 0%, #cd2731 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 2rem 1.5rem; /* Increased padding for more breathing room */
  min-height: 100%;
}

.page-home .hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.12) 0%, transparent 52%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

.page-home .hero-watermark {
  position: absolute;
  right: -74px;
  bottom: -82px;
  width: 300px;
  height: 300px;
  opacity: 0.07;
  z-index: 0;
}

.page-home .hero-watermark-h,
.page-home .hero-watermark-v {
  position: absolute;
  background: #ffffff;
  border-radius: 6px;
}

.page-home .hero-watermark-h {
  width: 100%;
  height: 28%;
  top: 36%;
  left: 0;
}

.page-home .hero-watermark-v {
  width: 28%;
  height: 100%;
  left: 36%;
  top: 0;
}

.page-home .video-placeholder {
  position: relative;
  width: 98%;
  max-width: 950px;
  margin-inline: auto;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(20, 6, 8, 0.28);
  z-index: 1;
}

.page-home .video-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 62%);
}



.page-home .video-label-text {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.page-home .video-duration {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.22rem 0.56rem;
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.8vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.45rem;
}

.hero-showcase {
  display: grid;
  gap: 0.64rem;
  align-content: start;
}

.partner-strip {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.18rem 0.64rem;
  background: var(--white);
  color: var(--ink-mid);
  font-size: 0.82rem;
  font-weight: 700;
}

.partner-logo img {
  display: block;
  height: 26px;
  width: auto;
}

.hero-panel {
  background: var(--red);
  color: #ffffff;
  border-radius: 14px;
  padding: 1rem;
}

.hero-panel h3 {
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-panel li {
  margin-bottom: 0.35rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.72rem;
}

.hero-metric {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
  padding: 0.58rem;
}

.hero-metric strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.1rem;
}

.kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-pale);
  border: 1px solid var(--red-mid);
  color: var(--red);
  padding: 0.34rem 0.74rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.71rem;
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

h1,
h2,
h3,
h4 {
  font-family: "DM Serif Display", Georgia, serif;
  margin-top: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  margin: 0.7rem 0 0.72rem;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 1.22rem;
}

p {
  margin-top: 0;
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  gap: 0.74rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.78rem 1.36rem;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

.button.primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 5px 16px rgba(232, 0, 31, 0.25);
}

.button.primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: transparent;
}

.button.secondary:hover {
  color: var(--red);
  border-color: var(--red);
}

.section {
  margin-top: 2.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.7rem, 2.9vw, 2.6rem);
  box-shadow: none;
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-note {
  margin: 0;
  color: var(--ink-light);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.7rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.card:hover {
  border-color: var(--line);
}
.card h3 {
  margin: -1.5rem -1.5rem 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--red);
  color: #ffffff;
  line-height: 1.2;
}

/* Compact card variant for small inline components (Quick Start Link) */
.card.compact {
  padding: 0.8rem;
  max-width: 480px;
}
.card.compact h3 {
  margin: 0 0 0.6rem 0;
  padding: 0.48rem 0.8rem;
  border-radius: 6px;
  background: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--red-mid);
  background: var(--red-pale);
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.64rem;
}

.media-frame {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hero-showcase .media-frame {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.media-frame img,
.media-frame iframe {
  width: 100%;
  height: auto;
  display: block;
}

.media-frame iframe {
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-caption {
  margin-top: 0.55rem;
  color: var(--ink-light);
  font-size: 0.86rem;
}

/* Reusable figure + figcaption styles */
figure.media-figure {
  margin: 0;
  background: var(--white);
}

figure.media-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

figure.media-figure figcaption {
  margin-top: 0.5rem;
  color: var(--ink-light);
  font-size: 0.86rem;
  text-align: center;
}

/* Overlay caption variant (for use when caption should sit on the image) */
.figure-overlay {
  position: relative;
  overflow: hidden;
}

.figure-overlay figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #ffffff;
  font-size: 0.86rem;
  text-align: center;
}

/* Small caption helper (subtle, smaller text) */
.figcaption-small {
  font-size: 0.78rem;
  color: var(--ink-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.team-photo {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.team-photo-bg {
  position: absolute;
  inset: 0;
  background: var(--cream);
}

.team-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Use one consistent portrait crop so every contributor image reads as a matched set. */
.team-photo .team-photo-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin: 0;
}

.team-photo-raahym .team-photo-bg img {
  transform: scale(1.10) translateY(-3%);
  transform-origin: center center;
  object-position: center center;
}

/* optional: fixed circular avatar size */
.team-photo.small .team-photo-bg img {
  width: 104px;
  height: 104px;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
}

.team-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid rgba(232, 0, 31, 0.15);
  box-shadow: 0 10px 24px rgba(232, 0, 31, 0.26);
}

.team-photo-label {
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.team-overlay-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--red);
}

.team-info {
  padding: 1.3rem 1.25rem 1.35rem;
}

.team-name {
  margin: 0 0 0.4rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.68rem;
  line-height: 1.08;
  color: var(--ink);
}

.team-role {
  margin: 0 0 0.86rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--red-pale);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.84rem;
  letter-spacing: 0.03em;
}

.team-desc {
  margin: 0;
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.team-links {
  display: flex;
  gap: 0.56rem;
  margin-top: 1rem;
}

.team-link {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--red-mid);
  color: var(--ink-mid);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: lowercase;
  transition: all 0.2s ease;
}

.team-link:hover,
.team-link:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  outline: none;
}

.callout {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 1.15rem;
}

.callout.warn {
  background: #f7f2ec;
  border-color: rgba(74, 56, 40, 0.16);
  color: var(--ink);
}

.callout.ok {
  background: #eef3f1;
  border-color: rgba(74, 56, 40, 0.15);
  color: var(--ink);
}

.callout strong {
  display: block;
  margin-bottom: 0.36rem;
  font-family: "DM Serif Display", Georgia, serif;
}

.list-clean {
  margin: 0;
  padding-left: 1.2rem;
}

.list-clean li {
  margin-bottom: 0.55rem;
  color: var(--ink-mid);
  line-height: 1.68;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(26, 16, 8, 0.07);
  text-align: left;
  vertical-align: top;
  padding: 1rem;
  line-height: 1.62;
}

.data-table th {
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
}

.data-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.6);
}

.small {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.jump-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(232, 0, 31, 0.18);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.jump-link:hover,
.jump-link:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #ffffff;
}

.page-requirements .grid.two {
  grid-template-columns: 1fr;
}

.diagram {
  display: grid;
  gap: 0.62rem;
}

.diagram-row {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.node {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 0.66rem;
  text-align: center;
  background: var(--white);
  color: var(--ink-mid);
  font-weight: 700;
}

.node.emphasis {
  background: var(--red-pale);
  border-color: var(--red-mid);
  color: var(--red-deep);
}

.arrow {
  text-align: center;
  color: var(--ink-light);
  font-size: 1.18rem;
}

.code-block {
  margin: 0;
  background: #22170f;
  color: #f7eee6;
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 0.84rem;
  overflow-x: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 0.72rem;
}

.stat strong {
  display: block;
  margin-bottom: 0.16rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.26rem;
  color: var(--red-deep);
}

.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 2.1rem 0 1.05rem;
  align-self: stretch;
}

.footer-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.25rem;
  width: min(var(--max-width), calc(100% - 2.4rem));
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-grid > div {
  min-width: 0;
  flex: 1 1 0;
  max-width: 220px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .footer-grid {
    flex-wrap: wrap;
    gap: 1.2rem;
  }
  .footer-grid > div {
    flex: 1 1 45%;
    max-width: 100%;
    margin-bottom: 1.2rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    gap: 0.8rem;
  }
  .footer-grid > div {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 0.8rem;
  }
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  margin-bottom: 0.62rem;
}

.footer-brand-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1;
  color: #ffffff;
}

.footer-cross {
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.footer-cross::before,
.footer-cross::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 2px;
}

.footer-cross::before {
  width: 11px;
  height: 3px;
  top: 9px;
  left: 5.5px;
}

.footer-cross::after {
  width: 3px;
  height: 11px;
  top: 5.5px;
  left: 9px;
}

.footer-sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.62);
  max-width: 370px;
}

.footer-col-title {
  margin: 0 0 0.86rem;
  color: rgba(255, 255, 255, 0.52);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffffff;
  outline: none;
}

.footer-bottom {
  margin: 1.35rem auto 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-start;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.46);
  width: min(var(--max-width), calc(100% - 2.4rem));
}

.muted {
  color: var(--ink-light);
}

.reveal {
  opacity: 0.01;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .nav-links.desktop {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .grid.four,
  .team-grid,
  .diagram-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .page-home .hero-grid {
    grid-template-columns: 1fr;
  }

  .page-home .hero-copy {
    padding: 1.5rem;
  }

  .page-home .hero-copy h1 {
    max-width: none;
  }

  .page-home .hero-showcase {
    min-height: 340px;
  }

  .page-home .hero-copy .kicker,
  .page-home .hero-partners {
    white-space: normal;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav-wrap,
  .main {
    width: min(var(--main-width), calc(100% - 1.15rem));
  }

  .page-home {
    width: min(var(--main-width), calc(100% - 1.15rem));
  }

  .brand-text {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(1.6rem, 8.3vw, 2.25rem);
  }

  .hero,
  .section {
    padding: 1.2rem;
  }

  .page-home .hero {
    padding: 0;
  }

  .page-home .hero-copy,
  .page-home .hero-showcase {
    padding: 1.2rem;
  }

  .page-home .hero-showcase {
    min-height: 270px;
  }

  .page-home .hero-actions {
    width: 100%;
  }

  .page-home .hero-actions .button {
    flex: 1 1 100%;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .jump-links {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 1.2rem 0 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: min(var(--max-width), calc(100% - 1.15rem));
  }

  .footer-bottom {
    width: min(var(--max-width), calc(100% - 1.15rem));
  }
}
