:root {
  --bg: #e8e7e2;
  --bg-alt: #dcdbd5;
  --card-bg: #e1e0da;
  --surface: #f1f0eb;
  --accent: #111110;
  --accent-soft: rgba(17, 17, 16, 0.07);
  --accent-strong: rgba(17, 17, 16, 0.14);
  --text: #141413;
  --text-soft: #4a4945;
  --border-subtle: rgba(20, 20, 18, 0.14);
  --header-bg: rgba(222, 221, 216, 0.92);
  --radius-lg: 0;
  --radius-full: 0;
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 28px rgba(0, 0, 0, 0.05);
  --btn-radius: 0;
  --font-sans: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Homepage: fixed hero photos stay visible behind translucent panels */
.page-home {
  --bg: rgba(232, 231, 226, 0.8);
  --bg-alt: rgba(220, 219, 213, 0.8);
  --card-bg: rgba(225, 224, 218, 0.9);
  --surface: rgba(241, 240, 235, 0.94);
  --header-bg: rgba(222, 221, 216, 0.84);
}

html {
  min-height: 100%;
  background-color: #1e1d1b;
  background-image:
    radial-gradient(ellipse 85% 55% at 50% -15%, #35342f 0%, transparent 58%),
    linear-gradient(180deg, #22211e 0%, #181714 100%);
}

body.page-home {
  background: transparent;
  min-height: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body:not(.page-home) {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
    linear-gradient(180deg, #ecebe6 0%, #e4e3de 48%, #d9d8d2 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}

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

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

main {
  position: relative;
  z-index: 0;
}

/* Space between sticky nav and page content (homepage hero handles its own) */
body:not(.page-home) main {
  padding-top: 1.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: #111110;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(20, 20, 18, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111111;
  border-radius: 0;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: min(85vh, 720px);
  padding-block: 5.5rem 4.5rem;
  display: flex;
  align-items: center;
  background: transparent;
}

/* Full-viewport backdrop: stays visible while scrolling (homepage only — markup) */
.hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.62) 100%),
    rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.85s ease-in-out;
}

.hero-bg-layer--1 {
  background-image: url('pic.jpg');
  opacity: 1;
  z-index: 1;
}

.hero-bg-layer--2 {
  background-image: url('pic2.jpg');
  z-index: 2;
}

.hero-bg-layer--3 {
  background-image: url('pic3.jpg');
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: block;
}

.hero-text {
  animation: hero-rise 0.9s var(--ease-out) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .hero-actions,
  .hero-proof-chips {
    animation: none;
  }
}

.hero-text h1 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.2vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: #ffffff;
  font-weight: 600;
  max-width: 15ch;
  margin-inline: auto;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-text p {
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 38rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.35rem;
  animation: hero-rise 0.9s var(--ease-out) 0.12s both;
}

.hero-proof-chips {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  animation: hero-rise 0.9s var(--ease-out) 0.22s both;
}

.hero-proof-chips span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.45rem 0.95rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.78rem 1.55rem;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.btn.primary {
  background: #111110;
  border-color: #111110;
  color: #ffffff;
}

.btn.primary:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(20, 20, 18, 0.32);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: #111110;
  color: #000000;
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.hero .btn.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111110;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn.primary:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.94);
  color: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hero .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.88);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  color: #ffffff;
}

.btn.full-width {
  width: 100%;
}

.hero-card {
  background: var(--card-bg);
  border-radius: 0;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.hero-card h2 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.9rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}

.hero-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #111111;
  flex-shrink: 0;
}

.section {
  padding-block: 3.4rem;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.4rem;
}

.section-header h2,
.section-header h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.section-claim {
  max-width: 40rem;
  margin: 0 auto;
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.section-cta {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.strategies-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.45rem 1.35rem 1.35rem;
  box-shadow: none;
  transition: border-color 0.22s var(--ease-out), background 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.card:hover {
  border-color: rgba(20, 20, 18, 0.28);
  background: var(--surface);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Media flip cards — front flips to reveal sample links (thumbnail + title) */
.media-cards-grid {
  perspective: 1400px;
}

.media-flip-card {
  min-height: 260px;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  position: relative;
}

.media-flip-card:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

.media-flip-inner {
  position: relative;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.media-flip-card.is-flipped .media-flip-inner {
  transform: rotateY(180deg);
}

.media-flip-card.is-flipped {
  z-index: 25;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.18));
}

.media-flip-face {
  position: absolute;
  inset: 0;
  padding: 1.3rem 1.25rem 1.25rem;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.media-flip-front h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.media-flip-front p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.media-flip-front {
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
}

.media-flip-front p {
  max-width: 26ch;
}

.media-flip-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  cursor: default;
}

.media-flip-back-heading {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.media-flip-back-intro {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.media-flip-close-icon {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.media-flip-close-icon:hover {
  background: rgba(0, 0, 0, 0.12);
}

.media-sample-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}

.media-sample-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem;
  margin: 0 -0.45rem;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.media-sample-link:hover {
  border-color: var(--border-subtle);
  background: rgba(0, 0, 0, 0.04);
}

.media-sample-thumb {
  width: 88px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.media-sample-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .media-flip-inner {
    transition-duration: 0.01ms;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.split h2 {
  color: var(--text);
}

.key-stats {
  display: grid;
  gap: 1rem;
}

.stat {
  background: var(--card-bg);
  border-radius: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
}

.stat-value {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-soft);
}

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

.team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.team-card .role {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.team-card p:last-child {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.sector-chips span {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
}

.section-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0.3rem 0 0;
}

.module-heading {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--text-soft);
}

.chart-card {
  background: var(--card-bg);
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.55rem 1.3rem;
  box-shadow: var(--shadow-panel);
}

.chart-card canvas {
  width: 100%;
  max-height: 360px;
}

.contact-split {
  align-items: flex-start;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-panel);
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--text-soft);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(74, 73, 69, 0.6);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #111110;
  box-shadow: none;
  background: #f7f6f2;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.form-status {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #166534;
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.contact-modal-dialog {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 1.5rem;
  background: var(--surface);
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.contact-modal-dialog h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.methodology-dialog {
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
}

.methodology-content h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 0.95rem;
}
.methodology-content h3:first-child { margin-top: 0; }
.methodology-content p { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-soft); }

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.markets-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.markets-hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.range-btn {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.range-btn:hover { border-color: #111110; color: var(--text); }
.range-btn.active {
  border-color: #111110;
  color: #ffffff;
  background: #111110;
  font-weight: 600;
}

.markets-stats .stat-box .stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.markets-stats .stat-box .stat-value {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.markets-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.control-select {
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.18s var(--ease-out);
}

.control-select:focus {
  outline: none;
  border-color: #111110;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.markets-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.markets-stats .stat-box {
  min-width: 5rem;
}

.markets-download {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.methodology-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.methodology-panel h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.methodology-panel p { margin: 0; }
.methodology-panel .js-methodology-open {
  align-self: center;
  margin-top: 1rem;
}

.legal-content {
  max-width: 42rem;
}
.legal-content h1 { margin: 0 0 1rem; font-size: 1.5rem; }
.legal-content p { margin: 0 0 1rem; color: var(--text-soft); line-height: 1.6; }
.legal-content a { color: #111111; text-decoration: underline; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 1.5rem;
  display: none;
}
.cookie-banner.show {
  display: block;
}
.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  justify-content: space-between;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.cookie-banner a {
  color: #111111;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.contact-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 1.1rem;
  cursor: pointer;
}

.site-footer {
  padding-block: 1.6rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.95;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.footer-nav a:hover {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.35);
}

.footer-boilerplate {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  max-width: 40rem;
  text-align: center;
}

/* Large screens: content column ~80%, flush section panels, side gutters visible */
@media (min-width: 721px) {
  body {
    background: transparent;
  }

  body:not(.page-home) {
    background:
      radial-gradient(ellipse 75% 42% at 50% 0%, #35342f 0%, transparent 52%),
      linear-gradient(180deg, #22211e 0%, #181714 100%);
    background-attachment: fixed;
  }

  .container {
    width: min(80vw, 1200px);
  }

  .section {
    background: transparent;
    padding-block: 0;
  }

  .section + .section {
    margin-top: 0.7rem;
  }

  .section-alt {
    background: transparent;
    border-block: none;
  }

  .section > .container {
    background: var(--bg);
    padding: 2.75rem 2rem;
    box-shadow: var(--shadow-panel);
  }

  .section-alt > .container {
    background: var(--bg-alt);
  }

  .site-footer {
    background: transparent;
    border-top: none;
    padding-block: 0;
    margin-top: 0.7rem;
  }

  .footer-inner {
    width: min(80vw, 1200px);
    margin-inline: auto;
    background: var(--bg-alt);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-panel);
  }

  .site-header {
    background: rgba(222, 221, 216, 0.86);
  }
}

/* Ultrawide: content column ~85% */
@media (min-width: 1920px) {
  .container {
    width: min(85vw, 1600px);
  }

  .footer-inner {
    width: min(85vw, 1600px);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr);
  }

  .hero-card {
    order: -1;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    padding-block: 0.7rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 0.75rem 1.3rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-block: 3.4rem 2.8rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-card {
    margin-top: 0.4rem;
  }

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

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

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.8rem, 480px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-proof-chips {
    gap: 0.4rem;
  }
}

