/* ============================================================
   ONE CARBON — Main Stylesheet
   Style: Clean Minimal · DM Sans + Outfit · Stone + Emerald
   ============================================================

   COLOUR VARIABLES — edit these to retheme the whole site:
   --accent      : buttons, highlights, links
   --bg          : warm off-white page background
   --surface     : pure white (cards, nav)
   --text        : near-black body text
   --text-muted  : mid-grey secondary text

   ORIGINAL COLOURS (teal-green theme):
   --accent:       #1a7a6b
   --accent-dark:  #145f54
   footer-logo span (hardcoded): #5ab89e

   ORIGINAL FONTS (Jake + Claude, pre-boss changes):
   Headings: 'Fraunces' (Google Fonts) — elegant italic serif
   Body:     'Figtree' (Google Fonts) — clean geometric sans
   To revert: swap DM Sans → Fraunces and Outfit → Figtree in font-family declarations,
   and update the Google Fonts <link> in each HTML file accordingly.
   ============================================================ */

:root {
  --accent:       #456BB7;
  --accent-dark:  #2f4f8f;
  --bg:           #F7F5F0;
  --surface:      #ffffff;
  --text:         #1a1a18;
  --text-muted:   #555555;
  --text-faint:   #888888;
  --border:       rgba(0, 0, 0, 0.08);
  --shadow-sm:    0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md:    0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.10);
  --radius-sm:    0px;
  --radius-md:    0px;
  --radius-lg:    0px;
  --radius-pill:  100px;
}

/* ── RESET & BASE ── */
/* Self-hosted fonts via Cloudflare R2 — eliminates Google Fonts flash */
@font-face {
  font-family: 'DM Sans';
  src: url('https://pub-cab5eb788883425eb6f15fe9339a2279.r2.dev/fonts/DMSans/dm-sans-v15-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('https://pub-cab5eb788883425eb6f15fe9339a2279.r2.dev/fonts/Outfit/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}


/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
h4 { font-size: 1.2rem; }

h1 em, h2 em { font-style: normal; color: #1a73e8; }

p {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}


/* ── LAYOUT HELPERS ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 560px;
}


/* ════════════════════════════════
   NAVIGATION
════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}


/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
}

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

.btn-secondary {
  padding: 13px 26px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-accent {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-ghost {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text);
}


/* ════════════════════════════════
   HERO — HOME
════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: max(560px, calc(100vh - 175px));
  align-items: stretch;
  width: 100%;
}

/* LEFT — text + photo slot */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* RIGHT — portrait video with overlaid bubbles */
.hero-right {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.hero-video-slot {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.hero-video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 2px dashed var(--border);
}

/* Bubbles overlaid on the video */
.hero-bubble {
  position: absolute;
  z-index: 10;
}

.hero-bubble.card-b {
  top: 40px;
  right: 40px;
  left: auto;
}

.hero-bubble.card-c {
  bottom: 40px;
  left: 40px;
}

/* Bubble stack container — absolutely positioned on the video */
.hero-bubble-stack {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bubble-stack .stat-card {
  position: relative;
  width: 100%;
}

/* "What we do" bubble on the video */
.hero-what-bubble {
  padding: 36px 40px;
}

.hero-what-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
  margin: 8px 0 16px;
  color: var(--text);
}

.hero-what-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Research CTA bubble on the video */
.hero-research-bubble {
  padding: 20px 28px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-research-bubble:hover {
  background: var(--accent);
  color: #fff;
}

/* Product card replacing photo slot */
.hero-product-card {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  background: var(--surface);
  min-height: 120px;
}

.hero-product-card:hover {
  background: #f0f0ec;
}

.hero-product-img-slot {
  width: 110px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.hero-product-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-product-info {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hero-product-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
}

.hero-product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-product-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-text {
  padding: 80px 60px 40px 60px;
}

.hero-text h1 {
  margin-bottom: 28px;
}

.hero-text p {
  max-width: 460px;
  margin-bottom: 36px;
}

/* Photo slot — bottom-right, bleeds to page edge */
.hero-media-slot {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 280px;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  border: none;
  border-top: 1px solid var(--border);
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* hidden until src is set */
}

.hero-media-img[src]:not([src=""]) {
  display: block;
}

.hero-media-img[src]:not([src=""]) + .hero-media-placeholder {
  display: none;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  border: 2px dashed var(--border);
}

/* Stacked stat cards on hero right */
.card-stack {
  position: relative;
  height: 240px;
}

.stat-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.stat-card.card-a {
  top: 0; left: 0; right: 60px;
  background: var(--accent);
  color: #fff;
}

.stat-card.card-b {
  bottom: 40px; right: 0; left: 60px;
}

.stat-card.card-c {
  bottom: 0; left: 0;
  width: 200px;
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.card-a .card-label { color: rgba(255,255,255,0.65); }

.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}

.card-a .stat-num { color: #fff; }
.card-b .stat-num { color: var(--text); }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.card-a .stat-label { color: rgba(255,255,255,0.75); }

.mini-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mini-big {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.mini-sub {
  font-size: 12px;
  color: var(--text-faint);
}


/* ════════════════════════════════
   STATS STRIP
════════════════════════════════ */
.stats-strip {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip-item {
  flex: 1;
  padding: 32px 48px;
  border-right: 1px solid var(--border);
}

.stats-strip-item:last-child {
  border-right: none;
}

.strip-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1;
}

.strip-label {
  font-size: 13px;
  color: var(--text-faint);
}


/* ════════════════════════════════
   PAGE HEADER (subpages)
════════════════════════════════ */
.page-header {
  padding: 80px 60px 60px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-top: 16px;
  margin-bottom: 20px;
}

.page-header p {
  max-width: 560px;
}

.page-header--with-video {
  overflow: hidden;
}

.page-header--with-video .research-video-wrap {
  float: right;
  width: 45%;
  margin: 0 0 24px 40px;
}

.page-header--with-video .page-header-text p {
  max-width: none;
}


/* ════════════════════════════════
   RESEARCH PAGE
════════════════════════════════ */
.research-intro-header {
  padding: 80px 60px 0;
}

.research-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 32px 60px 80px;
}

.research-video-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.research-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.research-cta-bar {
  padding: 0 60px 40px;
}

.research-cta-bar a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Publications table */
.publications-section {
  padding: 0 60px 100px;
}

.publications-section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.publications-section > p {
  margin-bottom: 32px;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pub-table thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 2px solid var(--border);
}

.pub-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.pub-table tbody tr:hover {
  background: var(--surface);
}

.pub-table td {
  padding: 18px 20px;
  vertical-align: middle;
}

.pub-table td a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

.pub-table td a:hover {
  color: var(--accent);
}

.pub-table .pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.pub-table .pdf-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.summary-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: default;
  white-space: nowrap;
}

.summary-trigger i {
  color: var(--accent);
  font-size: 12px;
}

.summary-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 100;
  pointer-events: none;
  white-space: normal;
}

.summary-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}

.summary-trigger:hover .summary-popup {
  display: block;
}

/* Footnote references */
.footnote-ref {
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 600;
  text-decoration: none;
  vertical-align: super;
}

.footnote-ref:hover {
  text-decoration: underline;
}

.footnotes {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  list-style: decimal;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footnotes li {
  margin-bottom: 6px;
}

.footnotes a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footnotes a:hover {
  color: var(--accent);
}


/* ════════════════════════════════
   PRODUCTS PAGE
════════════════════════════════ */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 60px;
}

.product-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.product-details h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 16px;
  margin-bottom: 20px;
}

.product-details p {
  margin-bottom: 16px;
}

.product-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  margin: 24px 0;
}

/* ════════════════════════════════
   PILLS-ONLY PRODUCT
════════════════════════════════ */
.pills-section {
  padding: 80px 60px;
  border-top: 1px solid var(--border);
}

.pills-section h2 {
  margin: 12px 0 8px;
}

.pills-section > p {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.pills-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pills-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}

.pills-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pills-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0;
  white-space: nowrap;
}

.pills-qty {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}

.pills-qty span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.pills-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -6px;
}

.pills-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.pills-per {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pills-card .btn {
  margin-top: auto;
  text-align: center;
}

.how-it-works {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 60px;
}

.how-it-works-inner {
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

.how-it-works-grid img {
  border-radius: var(--radius-md);
  width: 100%;
}

.how-it-works-grid p + p {
  margin-top: 16px;
}


/* ════════════════════════════════
   TEAM PAGE
════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  padding: 80px 60px;
}

.team-member {
  text-align: center;
}

.team-member--spacer {
  visibility: hidden;
  pointer-events: none;
}

.team-photo-wrap {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--border);
  transition: border-color 0.2s;
}

.team-photo-wrap:hover {
  border-color: var(--accent);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-member h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.team-member p {
  font-size: 14px;
  line-height: 1.65;
}


/* ════════════════════════════════
   BLOG
════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 48px 60px 100px;
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
}

.blog-card-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; padding: 32px 20px 60px; }
}

/* ════════════════════════════════
   BLOG POST PAGE
════════════════════════════════ */
.blog-post-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 60px 100px;
}

.blog-post-section h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-top: 16px;
  margin-bottom: 20px;
}

.blog-post-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.blog-post-hero {
  width: 100%;
  border-radius: 0;
  margin-bottom: 40px;
  display: block;
}

.blog-post-section p {
  margin-bottom: 24px;
  line-height: 1.8;
}

.blog-post-section h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
}

/* ════════════════════════════════
   CONTACT PAGE
════════════════════════════════ */
.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 60px 100px;
}

.contact-section h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  margin-top: 16px;
  margin-bottom: 12px;
}

.contact-section > p {
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 122, 107, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 160px;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--accent-dark);
}


/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  color: #fff;
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 40px;
  align-items: start;
}

.footer-company {
  grid-column: 2;
  grid-row: 1 / 3;
  text-align: right;
  font-size: 12px;
  font-style: normal;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

.footer-company p { margin: 0; font-size: 12px; font-style: normal; }

.footer-legal {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-legal a:hover { color: #fff; }

.footer-copy {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}


/* ════════════════════════════════
   PROFILE CTA SECTION (homepage)
════════════════════════════════ */
/* ── Recognised By section (between stats strip and PROFILE CTA) ── */
.recognised-by-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 60px;
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.recognised-by-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.recognised-by-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.recognised-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
}
.recognised-logo:hover {
  opacity: 0.9;
  filter: grayscale(0);
}
.recognised-logo-placeholder {
  height: 60px;
  width: 120px;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 4px;
}

.profile-cta-section {
  background: var(--accent);
  padding: 80px 60px;
}

.profile-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.profile-cta-text .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.profile-cta-text h2 {
  color: #fff;
  margin-top: 12px;
  margin-bottom: 20px;
}

.profile-cta-text h2 em {
  color: #1a73e8;
  font-style: normal;
}

.profile-cta-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 420px;
  margin-bottom: 24px;
}

.profile-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.profile-cta-link:hover {
  opacity: 0.75;
}

.profile-cta-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 44px 48px;
  box-shadow: var(--shadow-lg);
}

.profile-form-intro {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  margin-top: 8px;
}

.profile-form .submit-btn {
  margin-top: 4px;
}


/* ════════════════════════════════
   PROFILE PAGE
════════════════════════════════ */
.profile-header {
  padding: 80px 60px 60px;
}

.profile-header h1 {
  margin-top: 16px;
  margin-bottom: 4px;
}

.profile-details-section {
  padding: 80px 60px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.profile-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(69, 107, 183, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}

.profile-detail-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}

.profile-detail-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.profile-detail-card p a {
  color: #456BB7;
  text-decoration: underline;
}

.profile-eligibility-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 60px;
}

.profile-eligibility-section h2 {
  margin-top: 12px;
  margin-bottom: 20px;
}

.profile-eligibility-section > p {
  max-width: 560px;
  margin-bottom: 20px;
}

.profile-eligibility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 440px;
}

.profile-eligibility-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.profile-eligibility-list li i {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.profile-signup-section {
  padding: 80px 60px 100px;
  max-width: 760px;
  margin: 0 auto;
}

.profile-signup-section h2 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.profile-signup-section > p {
  margin-bottom: 40px;
}


/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .container, .hero, .product-section,
  .research-intro, .publications-section,
  .research-cta-bar, .how-it-works,
  .team-grid, .contact-section, .page-header,
  .stats-strip-item,
  .profile-cta-section, .profile-details-section,
  .profile-eligibility-section, .profile-signup-section {
    padding-left: 40px;
    padding-right: 40px;
  }
  .site-nav { padding: 0 40px; }
  .site-footer { padding: 40px; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 32px;
    gap: 48px;
  }

  .card-stack { height: 240px; }
  .stat-num { font-size: 2.2rem; }

  .page-header--with-video,
  .research-intro,
  .product-section,
  .how-it-works-grid,
  .profile-cta-inner,
  .profile-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 60px 32px;
  }

  .stats-strip {
    flex-wrap: wrap;
  }

  .stats-strip-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .site-nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  .nav-links { gap: 18px; }

  .hero, .page-header, .research-intro,
  .product-section, .publications-section,
  .research-cta-bar, .how-it-works,
  .contact-section,
  .profile-cta-section, .profile-details-section,
  .profile-eligibility-section, .profile-signup-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .form-row { grid-template-columns: 1fr; }

  .profile-cta-form-wrap {
    padding: 32px 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 16px;
  }

  .stats-strip-item {
    flex: 1 1 100%;
  }
}
