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

:root {
  --cream: #F7F5F0;
  --cream-dark: #EDEAE3;
  --ink: #111111;
  --ink-mid: #3A3A3A;
  --ink-muted: #666666;
  --ink-faint: #999999;
  --navy: #1A3A5C;
  --navy-mid: #244F7A;
  --navy-light: #2E6496;
  --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;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
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 2rem;
}

/* ============================================
   ANIMATIONS / REVEAL
   ============================================ */
.reveal-tag,
.reveal-line,
.reveal-lead,
.reveal-cta {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--d, 0s);
}
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  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 2rem;
  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.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: 68px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.3s;
}
.site-header.scrolled .logo-text { color: var(--navy); }
.logo-line {
  display: block;
  height: 1px;
  background: var(--white);
  width: 0;
  animation: logoLine 0.8s 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: background 0.3s;
}
.site-header.scrolled .logo-line { background: var(--navy); }
@keyframes logoLine { to { width: 100%; } }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.site-header.scrolled .nav-links a { color: var(--ink-muted); }
.site-header.scrolled .nav-links a:hover { color: var(--navy); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  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;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,28,48,0.82) 0%,
    rgba(20,40,65,0.72) 50%,
    rgba(10,22,40,0.60) 100%
  );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5,12,25,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 10rem;
  padding-bottom: 8rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}
.hero-h1 {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero-h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-ghost {
  display: inline-block;
  padding: 0.75em 1.8em;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}
.btn-text-light {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.btn-text-light:hover { color: var(--white); }
.btn-outline {
  display: inline-block;
  padding: 0.75em 1.8em;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.85rem;
  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.5rem;
  padding: 0.65em 1.5em;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
  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.8); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto;
  animation: scrollPulse 2s 1.5s 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; }
}

/* ============================================
   STATEMENT STRIP
   ============================================ */
.statement-strip {
  background: var(--ink);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.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.1);
}
.stat-block:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}
.stat-num span { font-size: 1.8rem; color: rgba(255,255,255,0.4); }
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  line-height: 1.4;
  max-width: 120px;
}
.statement-text {
  padding-left: 3rem;
}
.statement-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  font-weight: 300;
  max-width: 340px;
}

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

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.section-lead {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  font-weight: 300;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.domain-card {
  background: rgba(247,245,240,0.92);
  padding: 2.5rem;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.domain-card:hover { background: var(--white); }
.domain-icon-wrap {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.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%);
}
.domain-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.domain-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}
.domain-card p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}
.domain-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.domain-tools span {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--navy-pale);
  padding: 0.25em 0.65em;
  border-radius: 2px;
}

/* ============================================
   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 h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.how-left h2 em { font-style: italic; color: var(--navy); }
.how-left p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
}
.how-principle {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 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.85rem;
  color: var(--ink-faint);
  padding-top: 0.2rem;
}
.principle-body h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.principle-body p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ============================================
   QUOTE / LIBRARY SECTION
   ============================================ */
.quote-section {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.quote-img-wrap {
  position: absolute;
  inset: 0;
}
.quote-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,22,42,0.88) 0%,
    rgba(10,22,42,0.6) 60%,
    rgba(10,22,42,0.2) 100%
  );
}
.quote-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.quote-content blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  max-width: 560px;
  letter-spacing: -0.01em;
}
.quote-attr {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 1.25rem;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-section {
  padding: 7rem 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
  margin-bottom: 3rem;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--cream);
  transition: background 0.2s;
  cursor: pointer;
}
.portfolio-card:hover { background: var(--white); }
.card-tag {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}
.card-arrow {
  font-size: 1rem;
  color: var(--navy);
  margin-top: 0.5rem;
  transition: transform 0.2s;
}
.portfolio-card:hover .card-arrow { transform: translateX(4px); }
.portfolio-empty {
  padding: 4rem 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.95rem;
  font-style: italic;
}
.section-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 260px;
}
.footer-nav-group {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}
.footer-nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}
.footer-nav-col ul li { margin-bottom: 0.5rem; }
.footer-nav-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-nav-col ul li a:hover { color: rgba(255,255,255,0.9); }
.footer-base {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-top: 68px;
}
.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(10,22,42,0.5) 0%,
    rgba(10,22,42,0.75) 100%
  );
}
.about-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  left: 0; right: 0;
}
.about-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.about-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
  max-width: 600px;
}

.prose-section { padding: 5rem 0 6rem; }
.prose-inner {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 2rem;
}
.prose-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 3rem 0 1.1rem;
  line-height: 1.2;
}
.prose-inner h2:first-child { margin-top: 0; }
.prose-inner p {
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}
.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.25rem; }
.prose-inner ul li { margin-bottom: 0.4rem; }
.prose-inner strong { color: var(--ink); font-weight: 500; }

/* Page hero for non-about interior pages */
.page-hero {
  padding: calc(68px + 4rem) 0 3rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.page-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  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: 600px;
}

/* Contact */
.contact-section { padding: 0 0 6rem; }
.contact-inner { max-width: var(--max-w-text); margin: 0 auto; padding: 0 2rem; }
.contact-inner p { color: var(--ink-muted); margin-bottom: 1.25rem; }
.contact-email-block {
  display: inline-block;
  margin-top: 1rem;
  padding: 1.1rem 2rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.contact-email-block:hover { background: var(--navy); color: white; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .statement-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-block { border-right: none; padding: 0; }
  .statement-text { padding-left: 0; }
}
@media (max-width: 768px) {
  .domains-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav-group { flex-wrap: wrap; gap: 2rem; justify-content: flex-start; }
  .hero-h1 { font-size: 2.8rem; }
  .quote-section { height: 420px; }
  .statement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-content { padding-top: 8rem; }
}
