/* ============================================
   MERIDIAN BRIEF — MASTER STYLESHEET v6
   ============================================ */

:root {
  --cream: #F7F5F0;
  --cream-alt: #F0EDE6;
  --ink: #111111;
  --ink-mid: #3A3A3A;
  --ink-muted: #666666;
  --ink-faint: #999999;
  --navy: #1A3A5C;
  --navy-mid: #244F7A;
  --navy-dark: #0F2238;
  --navy-pale: #E8EFF6;
  --rule: #E2DED7;
  --rule-dark: #D0CBC2;
  --white: #FFFFFF;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --max-w-text: 780px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-tag, .reveal-line, .reveal-lead, .reveal-cta {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--sd, 0s);
}
.reveal-tag.revealed, .reveal-line.revealed, .reveal-lead.revealed,
.reveal-cta.revealed, .reveal-up.revealed { opacity: 1; transform: none; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 2.5rem;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247,245,240,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule);
}
.site-header.interior {
  background: rgba(247,245,240,0.98);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.logo { display: block; line-height: 0; flex-shrink: 0; }
.logo-img {
  height: 36px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease, opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.8; }
.site-header.scrolled .logo-img,
.site-header.interior .logo-img { filter: none; }

.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.78);
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: currentColor; transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.nav-active::after { width: 100%; }
.nav-links a.nav-active { color: var(--white); }
.site-header.scrolled .nav-links a,
.site-header.interior .nav-links a { color: var(--ink-muted); }
.site-header.scrolled .nav-links a:hover,
.site-header.interior .nav-links a:hover,
.site-header.scrolled .nav-links a.nav-active,
.site-header.interior .nav-links a.nav-active { color: var(--navy); }

.nav-links a.nav-cta {
  padding: 0.45em 1.2em;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); color: var(--white); }
.site-header.scrolled .nav-links a.nav-cta,
.site-header.interior .nav-links a.nav-cta { border-color: var(--navy); color: var(--navy); }
.site-header.scrolled .nav-links a.nav-cta:hover,
.site-header.interior .nav-links a.nav-cta:hover { background: var(--navy); color: var(--white); }

/* ============================================
   HERO — taller, more impact
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 960px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  animation: heroZoom 18s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(10,20,42,0.88) 0%,
    rgba(15,32,58,0.72) 50%,
    rgba(6,14,30,0.55) 100%
  );
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(3,8,20,0.5) 100%);
}
/* Subtle bottom fade into statement strip */
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px; z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,18,32,0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: 2rem; padding-bottom: 3rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}
.hero-tag::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: rgba(255,255,255,0.35);
}
.hero-h1 {
  display: flex; flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.04; letter-spacing: -0.028em;
  color: var(--white); margin-bottom: 1.75rem; font-weight: 400;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,0.58); }
.hero-lead {
  font-size: 1.05rem; line-height: 1.72;
  color: rgba(255,255,255,0.6); max-width: 540px;
  font-weight: 300; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.22); margin: 0 auto;
  animation: scrollPulse 2.4s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Buttons */
.btn-ghost {
  display: inline-block; padding: 0.8em 2em;
  border: 1px solid rgba(255,255,255,0.42); color: var(--white);
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.05em;
  transition: background 0.25s, border-color 0.25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.85); }
.btn-text-light {
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.58); transition: color 0.2s;
}
.btn-text-light:hover { color: var(--white); }
.btn-outline {
  display: inline-block; padding: 0.8em 2em;
  border: 1px solid var(--navy); color: var(--navy);
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-sm {
  display: inline-block; margin-top: 1.75rem;
  padding: 0.65em 1.5em;
  border: 1px solid rgba(255,255,255,0.38); color: rgba(255,255,255,0.82);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.25s, border-color 0.25s;
}
.btn-ghost-sm:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75); }

/* ============================================
   STATEMENT STRIP
   ============================================ */
.statement-strip { background: var(--ink); padding: 4rem 0; }
.statement-grid {
  display: grid; grid-template-columns: repeat(3, auto) 1fr;
  gap: 0; align-items: center;
}
.stat-block {
  padding: 0 3rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-block:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3.2rem; color: var(--white);
  line-height: 1; margin-bottom: 0.4rem;
  letter-spacing: -0.035em;
}
.stat-num span { font-size: 1.8rem; color: rgba(255,255,255,0.32); }
.stat-label { font-size: 0.76rem; color: rgba(255,255,255,0.36); line-height: 1.45; max-width: 130px; }
.statement-text { padding-left: 3rem; }
.statement-text p {
  font-size: 0.97rem; color: rgba(255,255,255,0.44);
  line-height: 1.72; font-weight: 300; max-width: 340px;
}

/* ============================================
   SHARED SECTION ELEMENTS
   ============================================ */
.section-eyebrow {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 0.9rem;
}
.section-header { max-width: 620px; margin-bottom: 3.75rem; }
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400; letter-spacing: -0.025em;
  line-height: 1.1; margin-bottom: 1.1rem;
}
.section-lead { font-size: 0.97rem; color: var(--ink-muted); line-height: 1.74; font-weight: 300; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ============================================
   DOMAINS — 5+5 grid
   ============================================ */
.domains-section {
  position: relative; padding: 7rem 0;
  background: var(--cream); overflow: hidden;
}
.domains-texture-wrap { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.domains-texture { width: 100%; height: 100%; object-fit: cover; }
.domains-section .container { position: relative; z-index: 1; }

.domains-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark);
}
.domain-card {
  background: rgba(247,245,240,0.94); padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: background 0.25s, transform 0.25s var(--ease);
  cursor: default;
}
.domain-card:hover { background: var(--white); }
.domain-icon-wrap { width: 46px; height: 46px; margin-bottom: 1.25rem; }
.domain-icon {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(45%) saturate(800%) hue-rotate(185deg) brightness(70%);
  transition: filter 0.25s;
}
.domain-card:hover .domain-icon {
  filter: brightness(0) saturate(100%) invert(18%) sepia(60%) saturate(1000%) hue-rotate(185deg) brightness(75%);
}
.domain-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem;
}
.domain-card h3 {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.75rem;
}
.domain-card p {
  font-size: 0.82rem; color: var(--ink-muted); line-height: 1.62;
  margin-bottom: 1.1rem; flex: 1;
}
.domain-tools { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.domain-tools span {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--navy); background: var(--navy-pale);
  padding: 0.2em 0.55em; border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.domain-card:hover .domain-tools span { background: #d4e4f4; }

/* ============================================
   HOW WE WORK
   ============================================ */
.how-section {
  padding: 7rem 0; background: var(--white);
  border-top: 1px solid var(--rule);
}
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.how-left { display: flex; flex-direction: column; }
.how-left .section-eyebrow { margin-bottom: 0.9rem; }
.how-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; letter-spacing: -0.022em;
  line-height: 1.15; margin-bottom: 1.2rem;
}
.how-left h2 em { font-style: italic; color: var(--navy); }
.how-left > div > p {
  font-size: 0.97rem; color: var(--ink-muted);
  line-height: 1.76; font-weight: 300; margin-bottom: 2.25rem;
}
.how-image {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); flex: 1;
}
.how-img {
  width: 100%; height: 100%; min-height: 260px;
  object-fit: cover; object-position: center;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.4s;
  display: block;
}
.how-image:hover .how-img { transform: scale(1.03); filter: brightness(0.95) contrast(1.05); }
.how-image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.7rem 1.1rem;
  background: rgba(8,16,36,0.72);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.how-principle {
  display: grid; grid-template-columns: 42px 1fr;
  gap: 1.1rem; align-items: start;
  padding: 1.7rem 0; border-bottom: 1px solid var(--rule);
}
.how-principle:first-child { border-top: 1px solid var(--rule); }
.principle-num {
  font-family: var(--font-serif); font-size: 0.8rem;
  color: var(--ink-faint); padding-top: 0.18rem;
}
.principle-body h3 {
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: -0.005em; margin-bottom: 0.4rem; color: var(--ink);
}
.principle-body p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.66; }

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
  padding: 7rem 0; background: var(--navy-dark);
  position: relative; overflow: hidden;
}
.values-img-wrap { display: none; }
.values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.values-left { display: flex; flex-direction: column; }
.values-left .section-eyebrow { color: rgba(255,255,255,0.38); margin-bottom: 0.9rem; }
.values-left h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; letter-spacing: -0.022em;
  line-height: 1.15; color: var(--white); margin-bottom: 1.2rem;
}
.values-left h2 em { font-style: italic; color: rgba(255,255,255,0.52); }
.values-left > p {
  font-size: 0.97rem; color: rgba(255,255,255,0.52);
  line-height: 1.76; font-weight: 300; margin-bottom: 2.25rem;
}
.values-image {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); flex: 1;
}
.values-left-img {
  width: 100%; height: 100%; min-height: 260px;
  object-fit: cover; object-position: center;
  filter: brightness(0.72) saturate(0.75);
  transition: transform 0.7s var(--ease);
  display: block;
}
.values-image:hover .values-left-img { transform: scale(1.03); }
.values-image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.7rem 1.1rem;
  background: rgba(8,16,36,0.75);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}

.values-right { display: flex; flex-direction: column; gap: 0; }
.value-item {
  padding: 1.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: 30px 1fr;
  gap: 1.25rem; align-items: start;
}
.value-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.value-num {
  font-family: var(--font-serif); font-size: 0.78rem;
  color: rgba(255,255,255,0.22); padding-top: 0.18rem;
}
.value-body h3 {
  font-size: 0.92rem; font-weight: 600;
  color: rgba(255,255,255,0.88); margin-bottom: 0.4rem; letter-spacing: -0.005em;
}
.value-body p { font-size: 0.86rem; color: rgba(255,255,255,0.44); line-height: 1.66; }

/* ============================================
   QUOTE SECTION — parallax
   ============================================ */
.quote-section { position: relative; height: 520px; overflow: hidden; }
.quote-section::before {
  content: ''; position: absolute; inset: -40% 0;
  background-image: url('/mer2.webp');
  background-size: cover; background-position: center;
  will-change: transform; z-index: 0;
}
.quote-section::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(6,14,32,0.92) 0%,
    rgba(8,18,40,0.68) 50%,
    rgba(8,18,40,0.28) 100%
  );
  pointer-events: none;
}
.quote-img-wrap { display: none; }
.quote-overlay { display: none; }
.quote-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; align-items: center;
}
.quote-content blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.38;
  max-width: 580px; letter-spacing: -0.012em;
}
.quote-attr {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-top: 1.4rem;
}

/* ============================================
   GUIDES SECTION
   ============================================ */
.guides-section {
  padding: 7rem 0; position: relative;
  border-top: 1px solid var(--rule); overflow: hidden;
  background: var(--cream-alt);
}
.guides-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url('/bgp.webp');
  background-size: cover; background-position: center;
  opacity: 0.7;
}
.guides-section .container { position: relative; z-index: 1; }

.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule-dark);
  border: 1px solid var(--rule-dark); margin-bottom: 3rem;
}
.guide-card {
  background: rgba(240,237,230,0.9); padding: 2.25rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.25s;
}
.guide-card:hover { background: var(--white); }
.guide-domain {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}
.guide-card h3 {
  font-family: var(--font-serif); font-size: 1.08rem;
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.32;
}
.guide-card p { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.66; flex: 1; }
.guide-read {
  font-size: 0.78rem; font-weight: 500; color: var(--navy);
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.3rem; transition: gap 0.25s var(--ease);
}
.guide-card:hover .guide-read { gap: 0.75rem; }

/* ============================================
   RECENT WORK SECTION — parallax aerial bg
   ============================================ */
.work-section {
  padding: 7rem 0;
  background: var(--navy-dark);
  position: relative; overflow: hidden;
}
.work-section::before {
  content: ''; position: absolute; inset: -40% 0;
  background-image: url('/mer1.webp');
  background-size: cover; background-position: center 60%;
  opacity: 0.14; z-index: 0; will-change: transform;
}
.work-section .container { position: relative; z-index: 1; }
.work-section .section-eyebrow { color: rgba(255,255,255,0.38); }
.work-section .section-header h2 { color: var(--white); }
.work-section .section-lead { color: rgba(255,255,255,0.44); }

.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}
.work-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: border-color 0.25s, transform 0.3s var(--ease); }
.work-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-3px); }
.work-card-inner { overflow: hidden; }
.work-screenshot {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; object-position: top center;
  display: block; transition: transform 0.6s var(--ease);
  filter: brightness(0.96);
}
.work-card:hover .work-screenshot { transform: scale(1.04); }

.work-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: rgba(255,255,255,0.03);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.85rem;
}
.work-placeholder-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  position: relative;
}
.work-placeholder-ring::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.work-placeholder-text {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.work-card-meta { padding: 1.25rem 1.4rem; border-top: 1px solid rgba(255,255,255,0.07); }
.work-card-domain {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 0.3rem;
}
.work-card-name {
  font-family: var(--font-serif); font-size: 1.05rem;
  font-weight: 400; color: rgba(255,255,255,0.8); margin-bottom: 0.2rem;
}
.work-card-desc { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.5; }

/* Pipeline / coming soon strip */
.work-pipeline {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap;
}
.pipeline-label {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); flex-shrink: 0;
}
.pipeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pipeline-tags span {
  font-size: 0.72rem; font-weight: 400;
  color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.3em 0.8em; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.pipeline-tags span:last-child {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.14);
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #080E1A; }
.footer-inner { padding: 5rem 0 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 4rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-logo { margin-bottom: 1rem; line-height: 0; }
.footer-logo-img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.55; }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.38); line-height: 1.66; max-width: 240px; margin-bottom: 0.75rem; }
.footer-tagline {
  font-size: 0.72rem; font-style: italic;
  color: rgba(255,255,255,0.22); font-family: var(--font-serif);
}
.footer-nav-group { display: flex; gap: 2.5rem; justify-content: flex-end; }
.footer-nav-label {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-bottom: 1rem;
}
.footer-nav-col ul li { margin-bottom: 0.5rem; }
.footer-nav-col ul li a {
  font-size: 0.84rem; color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-nav-col ul li a:hover { color: rgba(255,255,255,0.85); }
.footer-base { padding-bottom: 2.5rem; }
.footer-base p { font-size: 0.74rem; color: rgba(255,255,255,0.18); margin-bottom: 0.4rem; }
.footer-disclosure { font-size: 0.7rem; color: rgba(255,255,255,0.14); line-height: 1.55; max-width: 580px; }

/* ============================================
   INTERIOR PAGES
   ============================================ */
.page-hero { padding: calc(var(--nav-h) + 3.5rem) 0 3rem; border-bottom: 1px solid var(--rule); margin-bottom: 4rem; background: var(--white); }
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }
.page-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; max-width: 680px; }
.page-hero .page-lead { font-size: 1.05rem; color: var(--ink-muted); line-height: 1.7; max-width: 600px; font-weight: 300; margin-top: 1.25rem; }

/* About */
.about-hero { position: relative; height: 420px; overflow: hidden; margin-top: var(--nav-h); }
.about-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,38,0.4) 0%, rgba(8,18,38,0.8) 100%); }
.about-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.75rem 2.5rem; max-width: var(--max-w); margin: 0 auto; left: 0; right: 0; }
.about-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.7rem; }
.about-hero-h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; letter-spacing: -0.02em; color: var(--white); line-height: 1.15; max-width: 580px; }

/* Prose */
.prose-section { padding: 4.5rem 0 5.5rem; }
.prose-inner { max-width: var(--max-w-text); margin: 0 auto; padding: 0 2.5rem; }
.prose-inner h2 { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 400; letter-spacing: -0.02em; margin: 3rem 0 1rem; line-height: 1.2; }
.prose-inner h2:first-child { margin-top: 0; }
.prose-inner p { color: var(--ink-muted); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.82; }
.prose-inner a { color: var(--navy); border-bottom: 1px solid currentColor; }
.prose-inner ul { list-style: disc; padding-left: 1.5rem; color: var(--ink-muted); margin-bottom: 1.2rem; }
.prose-inner ul li { margin-bottom: 0.4rem; font-size: 1rem; line-height: 1.75; }
.prose-inner strong { color: var(--ink); font-weight: 500; }

/* Article pages */
.article-hero { position: relative; overflow: hidden; }
.article-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,38,0.52) 0%, rgba(8,18,38,0.9) 100%); }
.article-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: calc(var(--nav-h) + 3rem) 2.5rem 2.5rem; }
.article-domain { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.48); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.article-domain::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,255,255,0.32); }
.article-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; max-width: 760px; margin-bottom: 1.25rem; color: var(--white); }
.article-standfirst { font-size: 1.05rem; color: rgba(255,255,255,0.62); line-height: 1.72; max-width: 660px; font-weight: 300; }
.article-meta { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.article-meta-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 0.2rem; }
.article-meta-value { font-size: 0.85rem; color: rgba(255,255,255,0.58); }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 4.5rem; max-width: var(--max-w); margin: 0 auto; padding: 4rem 2.5rem 6rem; align-items: start; }
.article-body h2 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; margin: 2.75rem 0 1rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.article-body p { font-size: 1rem; color: var(--ink-mid); line-height: 1.82; margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; color: var(--ink-mid); margin-bottom: 1.25rem; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { font-size: 1rem; line-height: 1.72; margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-callout { background: var(--navy-pale); border-left: 3px solid var(--navy); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.article-callout p { margin: 0; font-size: 0.9rem; color: var(--navy); line-height: 1.66; }
.article-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--white); border: 1px solid var(--rule); padding: 1.5rem; margin-bottom: 1.25rem; }
.sidebar-card-title { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule); }
.toc-list { list-style: none; padding: 0; }
.toc-list a { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; display: block; padding: 0.28rem 0 0.28rem 0.75rem; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.toc-list a:hover { color: var(--navy); border-left-color: var(--navy); }
.sidebar-related a { display: block; font-size: 0.82rem; color: var(--ink-muted); padding: 0.5rem 0; border-bottom: 1px solid var(--rule); transition: color 0.2s; }
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: var(--navy); }

/* Guides index */
.guides-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin-bottom: 3rem; }
.guide-index-card { background: var(--cream); padding: 2.25rem; display: flex; flex-direction: column; gap: 0.75rem; transition: background 0.2s; }
.guide-index-card:hover { background: var(--white); }
.guide-index-card h2 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.32; }
.guide-index-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; flex: 1; }

/* Media Kit */
.mediakit-section { padding: 5rem 0; background: var(--white); border-top: 1px solid var(--rule); }
.mediakit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin: 3rem 0; }
.mediakit-stat { background: var(--cream); padding: 2rem; transition: background 0.2s; }
.mediakit-stat:hover { background: var(--white); }
.mediakit-stat-num { font-family: var(--font-serif); font-size: 2.4rem; color: var(--navy); line-height: 1; margin-bottom: 0.4rem; letter-spacing: -0.03em; }
.mediakit-stat-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.5rem; }
.mediakit-stat-desc { font-size: 0.84rem; color: var(--ink-faint); line-height: 1.55; }
.mediakit-domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin: 2rem 0; }
.mediakit-domain-row { background: var(--cream); padding: 1.25rem 1.5rem; display: flex; align-items: baseline; gap: 1rem; transition: background 0.2s; }
.mediakit-domain-row:hover { background: var(--white); }
.mediakit-domain-name { font-size: 0.82rem; font-weight: 600; color: var(--navy); min-width: 180px; }
.mediakit-domain-desc { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }
.mediakit-cta-block { background: var(--navy); padding: 3rem; text-align: center; margin: 3rem 0 0; }
.mediakit-cta-block h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400; color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.mediakit-cta-block p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-bottom: 1.75rem; font-weight: 300; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin: 2rem 0; }
.audience-card { background: var(--white); padding: 1.75rem; }
.audience-card h4 { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.75rem; }
.audience-card ul { list-style: none; padding: 0; }
.audience-card ul li { font-size: 0.84rem; color: var(--ink-muted); padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.audience-card ul li:last-child { border-bottom: none; }

/* Partner Terms */
.partner-terms-section { padding: 0 0 6rem; }

/* Contact */
.contact-page { min-height: 100vh; padding-top: var(--nav-h); background: var(--cream); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; min-height: calc(100vh - var(--nav-h)); }
.contact-left { background: var(--ink); padding: 5rem 3.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.contact-left::before { content: ''; position: absolute; inset: 0; background-image: url('/mer4.webp'); background-size: cover; opacity: 0.06; pointer-events: none; }
.contact-left-content { position: relative; z-index: 1; }
.contact-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.contact-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,255,255,0.22); }
.contact-left h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; color: var(--white); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.contact-left h1 em { font-style: italic; color: rgba(255,255,255,0.48); }
.contact-left > .contact-left-content > p { font-size: 0.95rem; color: rgba(255,255,255,0.42); line-height: 1.76; font-weight: 300; max-width: 320px; margin-bottom: 3rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-detail-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 0.25rem; }
.contact-detail-value { font-size: 0.9rem; color: rgba(255,255,255,0.58); font-weight: 300; line-height: 1.55; }
.contact-note { position: relative; z-index: 1; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.76rem; color: rgba(255,255,255,0.18); line-height: 1.6; }
.contact-right { padding: 5rem 4rem; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.form-heading { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.form-subhead { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 2.5rem; line-height: 1.6; font-weight: 300; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.form-input, .form-select, .form-textarea { width: 100%; background: var(--white); border: 1px solid var(--rule-dark); border-radius: 0; padding: 0.85rem 1rem; font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none; outline: none; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-faint); font-weight: 300; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.form-consent { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-consent input[type="checkbox"] { margin-top: 0.2rem; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.form-consent label { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.6; font-weight: 300; }
.form-consent a { color: var(--navy); border-bottom: 1px solid currentColor; }
.form-submit { display: flex; align-items: center; gap: 2rem; margin-top: 0.5rem; }
.btn-submit { display: inline-block; padding: 0.9em 2.4em; background: var(--navy); color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; border: none; cursor: pointer; transition: background 0.25s, transform 0.15s; }
.btn-submit:hover { background: var(--navy-mid); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-privacy-note { font-size: 0.7rem; color: var(--ink-faint); line-height: 1.55; }
.form-success { display: none; padding: 1.5rem; background: #EEF5E8; border: 1px solid #B8D9A0; }
.form-success.visible { display: block; }
.form-success p { font-size: 0.9rem; color: #2D5A1B; line-height: 1.6; }
.form-error { display: none; padding: 1rem 1.25rem; background: #FEF2F2; border: 1px solid #FCA5A5; }
.form-error.visible { display: block; }
.form-error p { font-size: 0.85rem; color: #991B1B; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .domains-grid { grid-template-columns: repeat(4, 1fr); }
  .statement-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .stat-block { border-right: none; padding: 0; }
  .statement-text { padding-left: 0; }
}
@media (max-width: 900px) {
  .domains-grid { grid-template-columns: repeat(3, 1fr); }
  .guides-grid, .guides-index-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .values-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav-group { flex-wrap: wrap; gap: 2rem; justify-content: flex-start; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-right { padding: 3rem 2rem; }
  .contact-left { padding: 3rem 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .mediakit-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-section { height: 420px; }
}
@media (max-width: 680px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid, .guides-index-grid, .work-grid { grid-template-columns: 1fr; }
  .statement-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.25rem; }
  .hero { max-height: none; }
  .work-pipeline { flex-direction: column; gap: 1rem; }
  .mediakit-grid, .mediakit-domains, .audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-h1 { font-size: 2.6rem; }
  .domains-grid { grid-template-columns: 1fr; }
}
