/*
Theme Name: Grey Orbits
Theme URI: https://greyorbits.com
Author: Viren Mantri / Grey Orbits
Author URI: https://greyorbits.com
Description: Editorial WordPress theme for Grey Orbits — Technology, Cybersecurity, and Risk Advisory. Cream and ink aesthetic with serif headlines and topic-filtered insights.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved.
Text Domain: grey-orbits
Tags: editorial, advisory, custom-colors, custom-menu, threaded-comments
*/

/* =========================================================
   1. CSS VARIABLES
   ========================================================= */
:root {
  /*
  --bg: #f5f1e8;
  --bg-elev: #ede8db; 
    */
  --bg: #fdf6ea;       /* main warm amber */
  --bg-elev: #f6e8d0;  /* deeper amber for elevated sections */
  --ink: #1a1a1f;
  --ink-soft: #3a3a42;
  --muted: #6a6a72;
  --line: #d8d2c3;
  --accent: #a8242a;
  --accent-deep: #7a1b1f;
  --accent-soft: #d4a574;
  --display: 'Fraunces', 'Georgia', serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* =========================================================
   2. BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   3. NAVIGATION
   ========================================================= */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 2rem;
}
.nav-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-size: 0.85rem; font-weight: 500; padding: 0.55rem 1.2rem; background: var(--ink); color: var(--bg); text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } .brand img { height: 54px; } }

/* ===== Mobile nav toggle (hamburger) ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 8px 20px -10px rgba(26, 26, 31, 0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-family: var(--display);
    font-size: 1.15rem;
    color: var(--ink);
    border-bottom: 1px dotted var(--line);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover { background: var(--bg-elev); color: var(--accent); }
  body.nav-open { overflow: hidden; }
  .nav-cta { display: none; }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero { max-width: 1320px; margin: 0 auto; padding: 6rem 2rem 5rem; position: relative; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); max-width: 18ch; margin-bottom: 2rem; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent-deep); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 2.5rem; line-height: 1.55; }
.hero-meta { display: flex; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: 600px; flex-wrap: wrap; }
.hero-meta div { flex: 1; min-width: 140px; }
.hero-meta span { white-space: nowrap; }
.hero-meta strong { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; font-weight: 500; }
.hero-meta span { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }

.orbit-decoration { 
  position: absolute; 
  right: -50px; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 500px; 
  height: 500px; 
  pointer-events: none; 
  opacity: 0.9; 
}
.orbit-decoration img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
@media (max-width: 1100px) { .orbit-decoration { display: none; } }

/* =========================================================
   5. SECTION SHARED
   ========================================================= */
section.block { max-width: 1320px; margin: 0 auto; padding: 6rem 2rem; border-top: 1px solid var(--line); }
.section-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 4rem; max-width: 1320px; }
.section-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.section-title em { font-style: italic; color: var(--accent-deep); font-weight: 300; }

/* =========================================================
   6. ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
.about-text p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1.3rem; max-width: 60ch; }
.about-aside { border-left: 1px solid var(--line); padding-left: 2rem; }
.about-aside h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.about-aside ul { list-style: none; }
.about-aside li { font-family: var(--display); font-size: 1rem; color: var(--ink); padding: 0.7rem 0; border-bottom: 1px dotted var(--line); }

/* =========================================================
   7. SERVICES
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--bg); padding: 3rem 2.5rem; transition: background 0.3s; }
.service:hover { background: var(--bg-elev); }
.service-num { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.15em; margin-bottom: 1.5rem; }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.015em; margin-bottom: 1.2rem; color: var(--ink); }
.service p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }

/* =========================================================
   8. INSIGHTS (homepage article grid)
   ========================================================= */
.insights-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { font-family: var(--body); font-size: 0.82rem; font-weight: 500; padding: 0.55rem 1.1rem; background: transparent; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search-wrap { margin-left: auto; position: relative; min-width: 240px; }
.search-input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.4rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; font-family: var(--body); font-size: 0.9rem; color: var(--ink); transition: border-color 0.2s; }
.search-input:focus { outline: none; border-color: var(--ink); }
.search-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }

.article { padding: 2.5rem 2rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background 0.25s; display: flex; flex-direction: column; min-height: 280px; text-decoration: none; color: inherit; }
.article:hover { background: var(--bg-elev); }
.article-grid > .article:nth-child(3n) { border-right: none; }
@media (max-width: 1000px) {
  .article-grid > .article { border-right: 1px solid var(--line); }
  .article-grid > .article:nth-child(3n) { border-right: 1px solid var(--line); }
  .article-grid > .article:nth-child(2n) { border-right: none; }
}
@media (max-width: 640px) { .article-grid > .article { border-right: none !important; } }

.article-topic { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.article h4 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.8rem; }
.article p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: auto; padding-bottom: 1.2rem; }
.article-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; padding-top: 1rem; border-top: 1px dotted var(--line); }

.empty-state { grid-column: 1 / -1; padding: 4rem 2rem; text-align: center; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 1.1rem; }

/* =========================================================
   9. BRIEFING
   ========================================================= */
.briefing { background: var(--accent-deep); color: var(--bg); padding: 6rem 2rem; position: relative; overflow: hidden; }
.briefing::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border: 1px solid rgba(245, 241, 232, 0.1); border-radius: 50%; pointer-events: none; }
.briefing::after { content: ''; position: absolute; bottom: -150px; left: -150px; width: 400px; height: 400px; border: 1px solid rgba(245, 241, 232, 0.08); border-radius: 50%; pointer-events: none; }
.briefing-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.briefing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 900px) { .briefing-grid { grid-template-columns: 1fr; gap: 3rem; } }
.briefing-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1.5rem; }
.briefing h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.briefing h2 em { font-style: italic; color: var(--accent-soft); }
.briefing-text p { color: rgba(245, 241, 232, 0.85); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 50ch; }
.briefing-text .sequence { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent-soft); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(245, 241, 232, 0.15); }
.briefing-form { background: rgba(245, 241, 232, 0.05); border: 1px solid rgba(245, 241, 232, 0.15); padding: 2.5rem; }
.briefing-form h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.8rem; }
.briefing-form .frequency { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1.8rem; }
.briefing-form .field-row { margin-bottom: 1rem; }
.briefing-form label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 241, 232, 0.6); margin-bottom: 0.5rem; }
.briefing-form input[type="email"], .briefing-form input[type="text"] { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(245, 241, 232, 0.3); padding: 0.6rem 0; color: var(--bg); font-family: var(--body); font-size: 1rem; transition: border-color 0.2s; }
.briefing-form input::placeholder { color: rgba(245, 241, 232, 0.4); }
.briefing-form input:focus { outline: none; border-bottom-color: var(--accent-soft); }
.briefing-form button { margin-top: 1.5rem; width: 100%; background: var(--bg); color: var(--accent-deep); border: none; padding: 1rem; font-family: var(--body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s; }
.briefing-form button:hover { background: var(--accent-soft); }
.briefing-form .small-print { margin-top: 1.2rem; font-size: 0.78rem; color: rgba(245, 241, 232, 0.55); line-height: 1.5; }

/* =========================================================
   10. FRAMEWORKS (consolidated, single source of truth)
   ========================================================= */
/* Three-column grid on desktop, single column on tablet and below */
.frameworks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1000px) {
  .frameworks { grid-template-columns: 1fr; }
}

/* Each framework card is a clickable link (flex column so CTA sits at bottom) */
.frameworks .framework {
  display: flex;
  flex-direction: column;
  padding: 3rem 2.5rem;
  text-decoration: none;
  color: var(--bg);
  transition: background 0.25s, box-shadow 0.3s ease, transform 0.3s ease;
}
.frameworks .framework p { flex: 1; }

/* Card 1: PETALS - dark red */
.frameworks .framework:nth-child(1) {
  background: var(--accent-deep);
}
/* Card 1 hover: keep dark red — shadow lift, slight upward translate */
.frameworks .framework:nth-child(1):hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 36px -10px rgba(26, 26, 31, 0.4);
  transform: translateY(-3px);
}

/* Card 2: Cybersecurity Model - ink black */
.frameworks .framework:nth-child(2) {
  background: var(--ink);
}
/* Card 2 hover: keep black — shadow lift, slight upward translate */
.frameworks .framework:nth-child(2):hover {
  background: var(--ink);
  box-shadow: 0 14px 36px -10px rgba(26, 26, 31, 0.4);
  transform: translateY(-3px);
}

/* Card 3: Cyber Insurance - gold with dark text */
.frameworks .framework:nth-child(3) {
  background: var(--accent-soft);
  color: var(--ink);
}
/* Card 3 hover: do NOT flip background — shadow lift, slight upward translate */
.frameworks .framework:nth-child(3):hover {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 0 14px 36px -10px rgba(26, 26, 31, 0.4);
  transform: translateY(-3px);
}

/* Card internals */
.framework-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1.2rem;
}
.framework h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.framework p {
  font-size: 0.98rem;
  opacity: 0.85;
  line-height: 1.6;
}
.framework-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}

/* Card 3 (gold): CTA needs dark colour for contrast on light gold */
.frameworks .framework:nth-child(3) .framework-cta {
  color: var(--accent-deep);
  border-top-color: rgba(26, 26, 31, 0.15);
}
/* Card 3 hover: keep CTA the same — background no longer flips */
.frameworks .framework:nth-child(3):hover .framework-cta {
  color: var(--accent-deep);
  border-top-color: rgba(26, 26, 31, 0.15);
}

/* =========================================================
   11. BIO (Founder section)
   ========================================================= */
.bio-section { background: var(--bg); margin: 0; padding: 6rem 2rem; border-top: 1px solid var(--line); }
.bio-inner { max-width: 1320px; margin: 0 auto; }
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bio-portrait { max-width: 260px; }
}

/* Bio portrait: soft fade to background, no white box */
.bio-portrait {
  aspect-ratio: 3/4;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 40%, transparent 90%);
}

.bio-text h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 0.4rem; color: var(--ink); }
.bio-role { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
.bio-text p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.2rem; max-width: 62ch; }
.bio-creds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cred { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; padding: 0.4rem 0.9rem; border: 1px solid var(--ink); color: var(--ink); }

/* =========================================================
   12. CTA (Contact section)
   ========================================================= */
.cta-section { background: var(--ink); color: var(--bg); padding: 6rem 2rem; text-align: center; }
.cta-section h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.5rem; max-width: 24ch; margin-left: auto; margin-right: auto; }
.cta-section h2 em { font-style: italic; color: var(--accent-soft); }
.cta-section p { color: rgba(245, 241, 232, 0.7); margin-bottom: 2.5rem; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-button { display: inline-block; padding: 1rem 2.5rem; background: var(--bg); color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; }
.cta-button:hover { background: var(--accent); color: var(--bg); }

/* =========================================================
   13. FOOTER
   ========================================================= */
footer.site-footer { background: var(--bg); padding: 4rem 2rem 2rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-tag { color: var(--ink-soft); font-size: 0.92rem; max-width: 32ch; }
.footer-col h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-subscribe input { width: 100%; padding: 0.6rem 0.8rem; background: transparent; border: 1px solid var(--line); font-family: var(--body); font-size: 0.88rem; color: var(--ink); margin-bottom: 0.6rem; }
.footer-subscribe input:focus { outline: none; border-color: var(--accent); }
.footer-subscribe button { width: 100%; padding: 0.6rem; background: var(--ink); color: var(--bg); border: none; font-family: var(--body); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.footer-subscribe button:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.82rem; color: var(--muted); }

/* =========================================================
   14. ARTICLE DETAIL
   ========================================================= */
.single-article { max-width: 760px; margin: 0 auto; padding: 5rem 2rem 4rem; }
.single-article .article-eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.single-article h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.5rem; }
.single-article .article-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); border-top: none; }
.article-body { font-family: var(--body); font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.3rem; }
.article-body h2 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--ink); margin: 2.5rem 0 1rem; line-height: 1.2; }
.article-body h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin: 2rem 0 0.8rem; }
.article-body blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; margin: 1.5rem 0; display: block; }
.article-body figure { margin: 1.5rem 0; }
.article-body figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.article-body ul, .article-body ol { margin: 1rem 0 1.3rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.canonical-note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding: 1.5rem; background: var(--bg-elev); border-left: 3px solid var(--accent); margin: 3rem 0; }
.related-articles { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.related-articles h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--ink); margin-bottom: 1.5rem; }

/* Article tags (filed-under pills) */
.article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dotted var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.article-tags-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.4rem;
}
.tag-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-elev);
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--ink); color: var(--bg); }

/* =========================================================
   15. LEGAL / GENERIC PAGE
   ========================================================= */
.legal-page { max-width: 820px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.page-eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.legal-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.2rem; }
.legal-page .last-updated { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.prose { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin: 3rem 0 1.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.3rem; }
.prose ul, .prose ol { margin: 1.3rem 0 1.3rem 1.5rem; padding-left: 0.5rem; }
.prose li { margin-bottom: 0.7rem; }
.prose ul li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 3rem; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }
.back-link::before { content: '\2190'; font-size: 1rem; }

/* =========================================================
   16. ANIMATIONS
   ========================================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-lead, .hero-meta { animation: fadeUp 0.8s ease backwards; }
.hero-lead { animation-delay: 0.15s; }
.hero-meta { animation-delay: 0.3s; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Remove underlines from all text inside framework cards */
.frameworks .framework,
.frameworks .framework * {
  text-decoration: none;
}

/* Ensure CTA sits at the bottom with clear spacing from body text */
.frameworks .framework {
  display: flex;
  flex-direction: column;
}
.frameworks .framework p {
  flex: 1;
  margin-bottom: 2rem;
}
.frameworks .framework .framework-cta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.frameworks .framework:nth-child(3) .framework-cta {
  border-top-color: rgba(26, 26, 31, 0.15);
}
.hero-meta span {
  white-space: nowrap;
}
.service-provenance {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dotted var(--line);
  line-height: 1.45;
}
.service-provenance em {
  font-style: italic;
}

.about-emblem {
    margin: 1rem 1.5rem 1rem 0;
}

.about-emblem img,
.about-emblem video {
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 0;
    height: auto;
}

@media (max-width: 768px) {
    .about-emblem {
        margin: 1rem auto;   /* centered on mobile, no negative left */
    }

    .about-emblem img,
    .about-emblem video {
        max-width: 140px;
    }
}

/* MailPoet form styling to match original Briefing design */
.briefing .mailpoet_form {
  background: transparent;
}
.briefing .mailpoet_paragraph {
  margin-bottom: 1.5rem;
}
.briefing .mailpoet_paragraph label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
  margin-bottom: 0.5rem;
}
.briefing .mailpoet_text,
.briefing .mailpoet_textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.3);
  padding: 0.6rem 0;
  color: var(--bg);
  font-family: var(--body);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.2s;
}
.briefing .mailpoet_text:focus,
.briefing .mailpoet_textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-soft);
}
.briefing .mailpoet_text::placeholder,
.briefing .mailpoet_textarea::placeholder {
  color: rgba(245, 241, 232, 0.4);
}
.briefing .mailpoet_submit {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--bg);
  color: var(--accent-deep);
  border: none;
  padding: 1rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
}
.briefing .mailpoet_submit:hover {
  background: var(--accent-soft);
}
.briefing .mailpoet_message p {
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.85rem;
  margin-top: 1rem;
}
.briefing .mailpoet_validate_success {
  color: var(--accent-soft);
}
/* Nav utility (LinkedIn + Email + Search) */
.nav-utility {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.3rem 0.3rem 0.8rem;
  transition: border-color 0.2s;
}
.nav-search:focus-within {
  border-color: var(--accent);
}
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink);
  width: 140px;
}
.nav-search input::placeholder {
  color: var(--muted);
}
.nav-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-search button:hover {
  color: var(--accent);
}

/* Hide nav utility on small screens */
@media (max-width: 860px) {
  .nav-utility,
  .nav-cta {
    display: none;
  }
}
/* Contact section channels (Email, LinkedIn) */
.contact-channels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245, 241, 232, 0.75);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.contact-channel:hover {
  color: var(--accent-soft);
}
@media (max-width: 640px) {
  .contact-channels {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
/* Mobile-only items inside hamburger menu */
.mobile-only {
  display: none;
}
@media (max-width: 860px) {
  .mobile-only {
    display: block;
  }
  .mobile-search form {
    display: flex;
    align-items: center;
    margin: 0.8rem 2rem 0.8rem 2rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.4rem 0.4rem 0.9rem;
    }
  .mobile-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--body);
    font-size: 0.9rem;
    color: var(--ink);
    min-width: 0;
    padding: 0;
  }
  .mobile-search button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
  }
}
/* MailPoet form error/validation message colors for visibility on dark background */
.briefing .mailpoet_validate_error,
.briefing .parsley-errors-list,
.briefing .parsley-required,
.briefing .parsley-type,
.briefing .parsley-pattern {
  color: var(--accent-soft);
  font-family: var(--body);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
  list-style: none;
  padding-left: 0;
}

.briefing .mailpoet_text.parsley-error,
.briefing .mailpoet_textarea.parsley-error {
  border-bottom-color: var(--accent-soft);
}

.briefing .mailpoet_validate_success,
.briefing .mailpoet_message.mailpoet_success {
  color: var(--accent-soft);
  font-size: 0.9rem;
}
/* Engagement block (Reach out + Share) - end of framework pages and articles */
.engagement-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  border-top: 1px dotted var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: flex-start;
}
.engagement-cluster {
  flex: 0 1 auto;
}
.engagement-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.engagement-icons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.engagement-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-elev);
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.engagement-icon:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.engagement-copy {
  font-family: var(--mono);
}
@media (max-width: 600px) {
  .engagement-block {
    gap: 2rem;
  }
}
/* Insights card CTAs need darker text and tighter spacing against cream background */
.insights .framework-cta,
.article .framework-cta {
  color: var(--accent-deep);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.insights .framework-cta:hover,
.article .framework-cta:hover {
  color: var(--accent);
}
/* =========================================================
   INSIGHTS ARCHIVE — CSS additions for style.css
   Add these at the bottom of style.css
   
   REPLACES the previous insights-archive-css-additions.css —
   remove the old block first if you pasted the earlier version.
   ========================================================= */

/* ── Homepage Insights: editorial note below the section title ── */
.insights-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.5;
  margin-top: -0.2rem; /* tighten against the title slightly */
}
.insights-note a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.insights-note a:hover {
  color: var(--accent-deep);
}

/* ── Homepage Insights: centered "View all Insights" button below grid ── */
.insights-archive-cta {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  margin-top: 0;
}

.insights-view-all-btn {
  border: 1px solid var(--ink);
  padding: 0.8rem 2rem;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  /* font/colour inherited from .framework-cta */
}

.insights-view-all-btn:hover {
  background: var(--ink);
  color: var(--bg) !important; /* override .framework-cta colour on hover */
  border-color: var(--ink);
}

/* ── Archive page: tweaks to the section ── */
.insights-archive {
  border-top: none; /* nav already has border-bottom — avoid double line */
  padding-top: 4rem;
}

/* ── Archive page: breadcrumb above section label ── */
.archive-breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.archive-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.archive-breadcrumb a:hover { color: var(--accent); }
.archive-breadcrumb span[aria-hidden] { margin: 0 0.4rem; }

/* ── Archive page: category description (when filter active) ── */
.archive-insights-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 52ch;
  line-height: 1.55;
}

/* ── Archive page: filter controls bar ── */
.archive-insights-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.archive-insights-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .archive-insights-count { margin-left: 0; }
}

/* ── Archive page: pagination ── */
.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  padding: 3rem 0 0;
  margin-top: 0;
}

.archive-pagination .page-numbers {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  transition: all 0.2s;
  display: inline-block;
}
.archive-pagination .page-numbers:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.archive-pagination .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.archive-pagination .page-numbers.dots {
  border-color: transparent;
  pointer-events: none;
  color: var(--muted);
}

/* ── Archive page: empty state ── */
.archive-empty-state {
  padding: 5rem 0;
  text-align: center;
  color: var(--ink-soft);
}
.archive-empty-state p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
/* =========================================================
   FRAMEWORK CARD META (date · read time) — colour-matched per card
   ========================================================= */

/* Cards 1 & 2 (dark backgrounds): meta in gold, matching the CTA */
.frameworks .framework .article-meta {
  color: var(--accent-soft);
  border-top-color: rgba(212, 165, 116, 0.25);
}

/* Card 3 (gold background): meta in dark red, matching its CTA */
.frameworks .framework:nth-child(3) .article-meta {
  color: var(--accent-deep);
  border-top-color: rgba(26, 26, 31, 0.15);
}

/* Lock meta colour on hover so it stays stable across all cards */
.frameworks .framework:hover .article-meta {
  color: var(--accent-soft);
}
.frameworks .framework:nth-child(3):hover .article-meta {
  color: var(--accent-deep);
}

