:root {
  --beige: #f6f4f0;
  --beige-deep: #ede9e1;
  --beige-soft: #faf8f4;
  --navy: #191970;
  --navy-deep: #12124d;
  --ink: #1B1B27;
  --body: #404155;
  --body-soft: #6b6c7d;
  --rule: rgba(27, 27, 39, 0.12);
  --rule-soft: rgba(27, 27, 39, 0.06);
  --accent: var(--navy);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--body);
  background: var(--beige);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  body { font-size: 16px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(25, 25, 112, 0.5);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--beige);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: gap 0.25s ease;
}
.btn-link:hover { gap: 14px; }

/* Section spacing */
section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--navy);
}

/* Italic display serif */
.serif-it { font-style: italic; font-family: 'Playfair Display', serif; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle paper texture */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.15  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Divider */
.rule { height: 1px; background: var(--rule); width: 100%; }

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 40s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Hero ticker */
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
}

/* Dark / navy block */
.navy-block {
  background: var(--navy);
  color: #e9e8f5;
  position: relative;
  overflow: hidden;
}
.navy-block h1, .navy-block h2, .navy-block h3, .navy-block h4 { color: #fff; }
.navy-block .eyebrow { color: #c7c6ea; }
.navy-block .eyebrow::before { background: #c7c6ea; }

/* Logo */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  flex-shrink: 0;
  padding: 2px 2px 2px 6px;
}
.logo-lockup span { white-space: nowrap; }
/* The italic Playfair 'M' has left bearing that can render past its
   metric box. First-child padding-left ensures the glyph never touches
   the container edge even if the lockup butts up against the viewport. */
.logo-lockup > span:first-child { padding-left: 2px; }
@media (max-width: 480px) {
  .logo-lockup { gap: 10px !important; padding-left: 8px !important; }
  /* Variant A/C mark */
  .logo-lockup > span:first-child { font-size: 24px !important; padding-left: 3px !important; }
  /* Stacked text block */
  .logo-lockup > span:nth-child(2) > span:nth-child(1) { font-size: 11px !important; letter-spacing: 0.08em !important; }
  .logo-lockup > span:nth-child(2) > span:nth-child(2) { font-size: 10px !important; }
}
.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}
.logo-mark .dot { color: var(--navy); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.logo-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: 12px; color: var(--body-soft); letter-spacing: 0.02em; margin-top: 1px; }

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 40px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(27, 27, 39, 0.18);
  border-color: transparent;
}

/* Service card expanded states */
.service-card { cursor: pointer; }
.service-card .svc-meta { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s ease, opacity 0.5s ease, margin-top 0.4s ease; }
.service-card.open .svc-meta { max-height: 600px; opacity: 1; margin-top: 24px; }

/* Stat */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 400;
}

/* Hero */
.hero {
  padding: 48px 0 120px;
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  text-wrap: balance;
}
@media (max-width: 720px) {
  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: pretty;
    margin-bottom: 24px;
  }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
}
.hero h1 em {
  font-style: italic;
  color: var(--navy);
}
.hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .hero-lede { font-size: 17px; }
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--beige-deep);
  border-radius: 2px;
  overflow: hidden;
}
.hero-portrait .placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  background-image:
    repeating-linear-gradient(45deg, rgba(25,25,112,0.04) 0 2px, transparent 2px 14px);
}

.hero-caption {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: 2px;
  font-size: 13px;
}

.hero-ticker {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.hero-ticker-track {
  display: flex;
  gap: 48px;
  animation: ticker 28s linear infinite;
  width: max-content;
  white-space: nowrap;
}

/* Bold statement text */
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.pull-quote em { color: var(--navy); font-style: italic; }

/* Podcast */
.podcast-block {
  background: var(--ink);
  color: #e4e4ef;
  border-radius: 6px;
  padding: 80px 72px;
  position: relative;
  overflow: hidden;
}
.podcast-block h2, .podcast-block h3 { color: #fff; }
.podcast-block .eyebrow { color: #c7c6ea; }
.podcast-block .eyebrow::before { background: #c7c6ea; }

@media (max-width: 720px) {
  .podcast-block { padding: 48px 28px; }
}

.episode-card {
  display: flex; gap: 24px; align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: padding 0.3s ease;
  cursor: pointer;
}
.episode-card:hover { padding-left: 8px; }
.episode-card:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }

.ep-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8d8cb0;
  letter-spacing: 0.1em;
  min-width: 48px;
}
.ep-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 500;
  flex: 1;
  line-height: 1.2;
}
.ep-title em { color: #c7c6ea; }
.ep-dur { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8d8cb0; }
.ep-play {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.episode-card:hover .ep-play {
  background: #fff; color: var(--ink); border-color: #fff;
}

/* Testimonial */
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-weight: 400;
}
.testimonial-quote::before { content: '“'; color: var(--navy); font-size: 1.3em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; }
.testimonial-quote::after { content: '”'; color: var(--navy); font-size: 1.3em; line-height: 0; vertical-align: -0.35em; margin-left: 0.05em; }

.testimonial-meta {
  margin-top: 28px;
  display: flex; gap: 16px; align-items: center;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--beige-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--navy);
  font-weight: 500;
  flex-shrink: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 244, 240, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  overflow: visible;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink); position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-ghost { color: var(--ink); }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(246, 244, 240, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
    padding: 8px 22px 24px;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a {
    padding: 16px 0;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.btn-primary {
    margin-top: 12px;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 14px !important;
    min-height: 48px;
  }
}

/* Section header */
.sec-header {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-header h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sec-header h2 em { color: var(--navy); font-style: italic; }
.sec-header p { max-width: 460px; }
@media (max-width: 820px) {
  .sec-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* Why list */
.why-list { display: flex; flex-direction: column; }
.why-item {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 40px;
  align-items: start;
  transition: padding-left 0.4s ease;
}
.why-item:last-child { border-bottom: 1px solid var(--rule); }
.why-item:hover { padding-left: 12px; }
.why-item .idx { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--navy); letter-spacing: 0.1em; padding-top: 8px; }
.why-item h3 { font-size: 28px; line-height: 1.15; }
.why-item p { color: var(--body); }
@media (max-width: 820px) {
  .why-item { grid-template-columns: 1fr; gap: 12px; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c7c6ea;
  padding: 100px 0 40px;
}
.site-footer h2 {
  color: #fff;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 40px;
  text-wrap: balance;
}
.site-footer h2 em { color: #c7c6ea; font-style: italic; }

.footer-grid {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h5 { color: #fff; font-family: 'Lato', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; margin-bottom: 10px; color: #c7c6ea; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-baseline {
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #8d8cb0;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}

/* Logo bar */
.logo-bar-item {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--body-soft);
  white-space: nowrap;
  display: flex; align-items: center; gap: 16px;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.logo-bar-item:hover { opacity: 1; color: var(--ink); }
.logo-bar-item .dot { width: 6px; height: 6px; background: var(--navy); border-radius: 999px; opacity: 0.6; }
.logo-bar-item-lg { font-size: 32px !important; padding: 0 56px !important; }
.logo-bar-item-lg .dot { width: 8px; height: 8px; }
.marquee-lg .marquee-track { animation-duration: 50s; }
@media (max-width: 720px) {
  .logo-bar-item { font-size: 15px; gap: 10px; }
  .logo-bar-item .dot { width: 5px; height: 5px; }
  .logo-bar-item-lg { font-size: 17px !important; padding: 0 24px !important; }
  .logo-bar-item-lg .dot { width: 5px !important; height: 5px !important; }
}
@media (max-width: 480px) {
  .logo-bar-item { font-size: 13px; }
  .logo-bar-item-lg { font-size: 15px !important; padding: 0 18px !important; }
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 24px 60px -20px rgba(27, 27, 39, 0.25);
  z-index: 100;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 13px;
}
.tweaks-panel h4 {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
}
.tweaks-panel .tw-row { margin-bottom: 20px; }
.tweaks-panel label { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body-soft); font-weight: 600; }
.tweaks-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-opt {
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  color: var(--body);
  transition: all 0.2s;
  cursor: pointer;
  background: #fff;
}
.tweaks-opt.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tweaks-opt:hover:not(.active) { border-color: var(--ink); }

.tweaks-close {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--beige); display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 0;
}

/* Variant-specific heroes */
[data-hero="editorial"] .hero-grid { grid-template-columns: 1.25fr 1fr; }
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; }
[data-hero="centered"] .hero-lede { margin-left: auto; margin-right: auto; }
[data-hero="centered"] .eyebrow { justify-content: center; }
[data-hero="centered"] .hero-cta-row { justify-content: center; }
[data-hero="centered"] .hero-portrait-wrap { display: none; }
[data-hero="split"] .hero-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) {
  [data-hero="editorial"] .hero-grid,
  [data-hero="split"] .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Logo variant B: circle */
.logo-mark.variant-b {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-style: italic;
}
.logo-mark.variant-c {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 32px;
}
.logo-mark.variant-c .dot { font-weight: 400; }

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* small helpers */
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--body-soft); }
.text-sm { font-size: 14px; }

/* Arrow */
.arrow-svg { transition: transform 0.25s ease; }

/* Floating brand mark */
.floating-mark {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(25, 25, 112, 0.06);
  font-size: clamp(200px, 30vw, 440px);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
@media (max-width: 720px) {
  .floating-mark { display: none; }
  .hero { overflow: hidden; }
  .nav-inner { overflow: visible; }
}

/* Testimonial grid responsive */
@media (max-width: 820px) {
  .testimonial-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* Video feature responsive */
@media (max-width: 820px) {
  .video-feature { grid-template-columns: 1fr !important; gap: 32px !important; }
  .industry-grid-new { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
}
@media (max-width: 560px) {
  .industry-grid-new { grid-template-columns: 1fr !important; }
}

/* ========================================
   HUB VIEW
   ======================================== */

.hub {
  min-height: 100vh;
  background: var(--beige);
  position: relative;
  overflow-x: hidden;
}

.hub-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 60px;
}

/* Shared header */
.hub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  font-size: 11px;
  letter-spacing: 0.2em;
  overflow: visible;
}
.hub-head-right { display: flex; align-items: center; gap: 12px; }
.hub-head .mono { white-space: nowrap; }
@media (max-width: 480px) {
  .hub-head .mono { font-size: 9px; letter-spacing: 0.12em; }
}

/* ——— Editorial variant ——— */

.hub-editorial .hub-hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  align-items: center;
  text-align: left;
  margin-bottom: 48px;
}
.hub-editorial .hub-hero-text { display: flex; flex-direction: column; gap: 20px; }
.hub-editorial .hub-hero .hub-name { text-align: left; margin: 0; }
.hub-editorial .hub-hero .hub-bio { margin: 0; max-width: 520px; }
@media (max-width: 600px) {
  .hub-editorial .hub-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    justify-items: center;
  }
  .hub-editorial .hub-hero .hub-name,
  .hub-editorial .hub-hero .hub-bio { text-align: center; }
}
.hub-portrait {
  width: 150px;
  aspect-ratio: 1/1;
  height: auto;
  margin: 0;
  background: var(--beige-deep);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .hub-portrait { width: 130px; }
}
.hub-portrait .placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  background-image: repeating-linear-gradient(45deg, rgba(25,25,112,0.04) 0 2px, transparent 2px 14px);
}
.hub-name {
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hub-name em { color: var(--navy); font-style: italic; }
.hub-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 540px;
  margin: 0 auto;
}
.hub-bio a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
}

.hub-link {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
  color: var(--ink);
}
.hub-link:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px -18px rgba(27, 27, 39, 0.2);
  border-color: transparent;
}
.hub-link.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.hub-link.featured .hub-link-tag { color: rgba(255,255,255,0.5); }
.hub-link.featured:hover { background: var(--navy-deep); }

.hub-link-tag {
  color: var(--body-soft);
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding-top: 2px;
  line-height: 1.6;
  word-spacing: 9999px;
}
.hub-link-label {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.hub-link.featured .hub-link-label { font-style: italic; }
.hub-link-sub {
  font-size: 13px;
  color: var(--body-soft);
  line-height: 1.4;
}
.hub-link.featured .hub-link-sub { color: rgba(255,255,255,0.65); }
.hub-link-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--rule);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.hub-link:hover .hub-link-arrow {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.hub-link.featured .hub-link-arrow {
  border-color: rgba(255,255,255,0.35);
}
.hub-link.featured:hover .hub-link-arrow {
  background: #fff; color: var(--navy); border-color: #fff;
}

@media (max-width: 520px) {
  .hub-link { grid-template-columns: 1fr 36px; padding: 18px 20px; }
  .hub-link .hub-link-tag { display: none; }
}

/* Editorial footer */
.hub-foot {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.hub-trusted {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 600px) {
  .hub-trusted {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
    justify-items: center;
  }
}
.hub-social {
  display: flex;
  gap: 18px;
  color: var(--ink);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  width: 100%;
  justify-content: center;
}
.hub-social a { transition: color 0.2s; }
.hub-social a:hover { color: var(--navy); }

/* ——— Magazine variant ——— */

.hub-magazine .hub-container {
  max-width: 920px;
  padding-top: 32px;
}
.hub-magazine .hub-masthead {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}
.hub-rule { height: 1px; background: var(--ink); opacity: 0.25; margin: 16px 0; }
.hub-rule.thick { height: 4px; background: var(--ink); opacity: 1; margin: 4px 0 0; }

.mag-title {
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: center;
  padding: 36px 0 24px;
  text-wrap: balance;
}
.mag-title .serif-it { color: var(--navy); }

.mag-subtitle {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--body);
  font-weight: 500;
  padding-bottom: 16px;
}

.mag-lede {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
}
.mag-lede p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 680px) {
  .mag-lede { grid-template-columns: 1fr; gap: 16px; }
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 40px 0;
}
.mag-card {
  padding: 32px 24px;
  border-left: 1px solid var(--rule);
  color: var(--ink);
  position: relative;
  transition: background 0.3s ease, padding-left 0.3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.mag-card:first-child { border-left: none; }
.mag-card:hover { background: rgba(25, 25, 112, 0.04); }
.mag-card.featured { background: var(--navy); color: #fff; border: none; }
.mag-card.featured:hover { background: var(--navy-deep); }
.mag-card.featured .mag-num, .mag-card.featured .mag-tag { color: rgba(255,255,255,0.6); }
.mag-card.featured .mag-sub { color: rgba(255,255,255,0.7); }

.mag-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.mag-tag {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--body-soft);
  margin-bottom: 12px;
}
.mag-label {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: currentColor;
  font-weight: 500;
  flex: 1;
}
.mag-card.featured .mag-label { font-style: italic; color: #fff; }
.mag-sub {
  font-size: 13px;
  color: var(--body-soft);
  line-height: 1.5;
  margin-bottom: 28px;
}
.mag-arrow {
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  margin-top: auto;
  transition: all 0.25s;
  align-self: flex-start;
}
.mag-card:hover .mag-arrow { background: var(--navy); color: #fff; border-color: var(--navy); }
.mag-card.featured .mag-arrow { border-color: rgba(255,255,255,0.35); }
.mag-card.featured:hover .mag-arrow { background: #fff; color: var(--navy); border-color: #fff; }

@media (max-width: 820px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .mag-grid { grid-template-columns: 1fr; }
  .mag-card { border-left: none; border-top: 1px solid var(--rule); min-height: auto; }
  .mag-card:first-child { border-top: none; }
}

.mag-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0 16px;
}
.mag-foot > div > div:first-child { margin-bottom: 10px; }
@media (max-width: 680px) { .mag-foot { grid-template-columns: 1fr; gap: 24px; } }

/* ——— Monogram variant ——— */

.hub-monogram {
  background: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  position: relative;
}
.hub-monogram .hub-container {
  max-width: 880px;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.mono-giant {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(340px, 56vw, 780px);
  line-height: 0.78;
  color: rgba(25, 25, 112, 0.06);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.monogram-center {
  text-align: center;
  padding: 80px 0 60px;
}

.monogram-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.monogram-links .hub-link { background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }
.monogram-links .hub-link.featured { grid-column: span 2; }

@media (max-width: 680px) {
  .monogram-links { grid-template-columns: 1fr; }
  .monogram-links .hub-link.featured { grid-column: span 1; }
}

.monogram-foot {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ========================================
   TWEAKS PANEL
   ======================================== */

.tweaks-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 12px 32px -10px rgba(27, 27, 39, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.tweaks-fab:hover { transform: translateY(-2px); }
.tweaks-fab::before {
  content: '';
  width: 8px; height: 8px; border-radius: 999px;
  background: #c7c6ea;
}

/* View toggle floating */
.view-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 2px;
  box-shadow: 0 8px 22px -8px rgba(27, 27, 39, 0.2);
}
.view-toggle button {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  border-radius: 999px;
  transition: all 0.25s;
}
.view-toggle button.active { background: var(--ink); color: #fff; }

/* ========================================
   BELIEF SECTION
   ======================================== */

.belief-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .belief-grid { grid-template-columns: 1fr; gap: 56px; }
}

.belief-lede {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.belief-lede .lede {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 12px;
}
.belief-lede p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  max-width: 640px;
}
.belief-callout {
  padding: 24px 28px;
  border-left: 3px solid var(--navy);
  background: rgba(25, 25, 112, 0.04);
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(22px, 2.6vw, 30px) !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  max-width: none !important;
  margin: 8px 0;
}

.belief-pillars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
}
.belief-pillar {
  padding: 28px 32px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.belief-pillar:last-child { border-bottom: none; }
.belief-pillar:hover { background: var(--beige-soft); padding-left: 40px; }
.belief-pillar .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  font-weight: 500;
}
.belief-pillar h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.belief-pillar p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.55;
}

/* Services CTA */
.services-cta {
  margin-top: 64px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) {
  .services-cta { grid-template-columns: 1fr; gap: 24px; }
}

/* Proof grid (consultancy) */
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .proof-grid { grid-template-columns: 1fr !important; }
  .proof-grid > div { padding: 40px 28px !important; min-height: auto !important; }
}

/* About grid */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .about-grid > div:first-child { position: static !important; top: auto !important; }
}

/* Podcast header */
.podcast-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}
.podcast-head-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 820px) {
  .podcast-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .podcast-head-cta { justify-content: flex-start; }
}

/* Services expanded card grid */
.svc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 820px) {
  .svc-meta-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Episode card mobile polish */
@media (max-width: 560px) {
  .episode-card { gap: 14px; }
  .ep-num { min-width: 40px; }
  .ep-title { font-size: 17px; line-height: 1.25; }
  .ep-dur { display: none; }
}

/* Tap-friendly service card collapse button on mobile */
@media (max-width: 560px) {
  .service-card > div:first-child { gap: 16px !important; }
  .service-card h3 { font-size: 22px !important; }
  .service-card p { font-size: 15px !important; }
  .card { padding: 28px 24px !important; }
}

/* Proof/stats card tightening on narrow widths */
@media (max-width: 560px) {
  .stat-num { font-size: 48px !important; }
}

/* Hero spacing on mobile */
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 32px 0 72px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-lede { margin-bottom: 28px; }
}

/* Section header reduced margin on mobile */
@media (max-width: 720px) {
  .sec-header { margin-bottom: 40px; }
}

/* Footer grid breaks to one column on the smallest phones */
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
.footer-baseline { flex-wrap: wrap; gap: 12px; }


/* Light secondary sections (Nadi, Podcast mention) */
@media (max-width: 820px) {
  .nadi-light, .podcast-light {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
