/* ==========================================================================
   EightyTwentyVentures — Stylesheet v2
   Black base, green/red/silver accent system, no gold
   ========================================================================== */

:root {
  /* Backgrounds — true black */
  --bg-primary:   #000000;
  --bg-secondary: #080808;
  --bg-tertiary:  #0F0F0F;
  --bg-elevated:  #161616;

  /* Borders */
  --border-subtle:   #161616;
  --border-default:  #242424;
  --border-emphasis: #323232;
  --border-green:    rgba(0, 200, 150, 0.28);
  --border-red:      rgba(232, 64, 64, 0.22);
  --border-silver:   rgba(192, 192, 192, 0.18);

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #9A9A9A;
  --text-tertiary:  #484848;

  /* Accent — green (primary pop), red (secondary), silver (metallic neutral) */
  --green:       #00C896;
  --green-hover: #00E0AB;
  --green-dim:   rgba(0, 200, 150, 0.08);
  --red:         #E84040;
  --red-hover:   #FF5555;
  --red-dim:     rgba(232, 64, 64, 0.08);
  --silver:      #C0C0C0;
  --silver-mid:  #888888;
  --silver-dim:  rgba(192, 192, 192, 0.12);

  /* Typography */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width:      1180px;
  --content-width:  760px;
  --section-pad-y:  7rem;
  --section-pad-x:  2rem;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-hover); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-secondary); margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* Utility color classes for title emphasis */
.txt-green  { color: var(--green); }
.txt-red    { color: var(--red); }
.txt-silver { color: var(--silver); }
.txt-white  { color: var(--text-primary); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-mid);
  margin-bottom: 1rem;
  display: inline-block;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container         { max-width: var(--max-width);     margin: 0 auto; padding: 0 var(--section-pad-x); }
.container-narrow  { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--section-pad-x); }

section { padding: var(--section-pad-y) 0; }

.section-divider {
  width: 36px;
  height: 1px;
  background: var(--green);
  margin: 1.75rem auto;
}

.section-header         { text-align: center; margin-bottom: 4rem; }
.section-header p       { max-width: 600px; margin: 1rem auto 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text-primary); }
.nav-brand span  { color: var(--green); }

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.nav-links a:hover  { color: var(--text-primary); }
.nav-links a.active { color: var(--green); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border-silver);
  color: var(--silver);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-cta:hover { border-color: var(--green); color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ==========================================================================
   Buttons & Forms
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--border-silver);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-large { padding: 1rem 2.25rem; font-size: 0.9rem; }

/* Signup form */
.signup-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 2rem auto 0;
}

.signup-form input[type="email"] {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.signup-form input[type="email"]:focus   { border-color: var(--green); }
.signup-form input[type="email"]::placeholder { color: var(--text-tertiary); }

.signup-form button {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 1.5rem;
  background: var(--green);
  color: #000;
  border: 1px solid var(--green);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--green-hover); border-color: var(--green-hover); }

.signup-meta {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-align: center;
}

.signup-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-green);
  border-radius: 2px;
  color: var(--green);
  font-size: 0.875rem;
  text-align: center;
}
.signup-success.visible { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 0 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* PTT-style: logo large, blended into black, wordmark sitting over lower portion */
.hero-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  /* Negative pull so wordmark overlaps the fade zone of the logo */
  margin-bottom: -6rem;
}

.hero-logo {
  width: 100%;
  display: block;
  /* 4-sided fade: both gradients intersected, eliminating the visible
     rectangular boundary on all edges (top, left, right, bottom) */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%,  black 52%, rgba(0,0,0,0.5) 72%, transparent 93%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 7%,  black 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 5%,  black 52%, rgba(0,0,0,0.5) 72%, transparent 93%);
  mask-composite: intersect;
  mix-blend-mode: screen;
  filter: grayscale(10%) brightness(0.9);
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 0.4rem;
  line-height: 1.6;
}

.hero-subtagline {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  max-width: 480px;
  margin: 0.6rem auto 0;
}

/* Sub-page hero */
.page-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1        { margin-bottom: 1rem; }
.page-hero .lead     { max-width: 620px; margin: 0 auto; color: var(--text-secondary); }

/* ==========================================================================
   Feature Cards
   ========================================================================== */

.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 2.5rem 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover { border-color: var(--border-green); transform: translateY(-2px); }

.feature-card .cadence {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--text-primary); }
.feature-card p  { font-size: 0.92rem; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Framework
   ========================================================================== */

.framework { background: var(--bg-primary); }

.framework-list {
  list-style: none;
  max-width: 720px;
  margin: 2.5rem auto 0;
  counter-reset: framework;
}

.framework-list li {
  counter-increment: framework;
  position: relative;
  padding: 1.5rem 0 1.5rem 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.framework-list li:last-child { border-bottom: none; }

.framework-list li::before {
  content: counter(framework, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--silver-mid);
  letter-spacing: 0.04em;
}

.framework-list h4 { font-size: 1.15rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.framework-list p  { font-size: 0.92rem; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Playbook Hub
   ========================================================================== */

.playbook-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.playbook-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 3rem 2.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.playbook-card:hover { border-color: var(--border-green); transform: translateY(-3px); color: inherit; }

.playbook-card .label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  display: block;
}

.playbook-card h2    { font-size: 1.65rem; margin-bottom: 1rem; color: var(--text-primary); }
.playbook-card p     { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.playbook-card .arrow { color: var(--green); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; }

/* Playbook sub-pages */
.playbook-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.playbook-section:last-of-type { border-bottom: none; }

.playbook-section h2 { font-size: 1.75rem; margin-bottom: 1.2rem; color: var(--text-primary); }

.playbook-section h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 2rem 0 0.7rem;
  color: var(--green);
}

.playbook-section p { font-size: 1rem; line-height: 1.78; color: var(--text-secondary); }

.playbook-section .pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--silver);
  border-left: 2px solid var(--green);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
}

/* ==========================================================================
   Briefing
   ========================================================================== */

.briefing-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.briefing-filter {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.95rem;
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.briefing-filter:hover  { color: var(--text-secondary); border-color: var(--border-emphasis); }
.briefing-filter.active { color: var(--green); border-color: var(--border-green); background: var(--green-dim); }

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.briefing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.briefing-card:hover { border-color: var(--border-green); transform: translateY(-2px); color: inherit; }

.briefing-card .meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.briefing-card .meta .category { color: var(--green); }
.briefing-card .meta .dot { width: 3px; height: 3px; background: var(--text-tertiary); border-radius: 50%; }

.briefing-card h3 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--text-primary); margin-bottom: 0.7rem; line-height: 1.35; }
.briefing-card p  { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   About Page
   ========================================================================== */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
}

.about-photo {
  position: sticky;
  top: 6rem;
}

.about-photo img {
  width: 100%;
  border-radius: 3px;
  filter: grayscale(20%) contrast(1.05);
  border: 1px solid var(--border-default);
}

.about-photo-caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-align: center;
}

.about-story h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.about-story p {
  font-size: 1.02rem;
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-story .story-highlight {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.about-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
}

.about-stat .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.3rem;
}

.about-stat .lbl {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { max-width: 520px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-primary);
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--section-pad-x); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand { font-family: var(--font-serif); font-size: 1.35rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.footer-brand span { color: var(--green); }

.footer-desc { font-size: 0.875rem; color: var(--text-tertiary); max-width: 340px; }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a  { font-size: 0.875rem; color: var(--text-tertiary); }
.footer-col a:hover { color: var(--green); }

.footer-legal p {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-tertiary); font-family: var(--font-sans); }
.footer-bottom-links a:hover { color: var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  :root { --section-pad-y: 4.5rem; --section-pad-x: 1.25rem; }

  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-toggle { display: block; }

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
  }
  .nav-links.mobile-open li  { width: 100%; }
  .nav-links.mobile-open a   { display: block; padding: 0.9rem var(--section-pad-x); border-bottom: 1px solid var(--border-subtle); }

  .features-grid,
  .playbook-hub-grid,
  .briefing-grid  { grid-template-columns: 1fr; }

  .footer-top  { grid-template-columns: 1fr; gap: 2rem; }

  .signup-form { flex-direction: column; }
  .signup-form button { padding: 0.9rem 1.5rem; }

  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .hero-logo-wrap { max-width: 88vw; margin-bottom: -3rem; }
  .hero-brand { font-size: clamp(2.2rem, 8vw, 3.2rem); }
}

@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-stats   { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AMT Playbook — Chapter Layout
   ========================================================================== */

.playbook-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* Sidebar */
.playbook-sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border-subtle);
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.playbook-sidebar::-webkit-scrollbar { width: 4px; }
.playbook-sidebar::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  display: block;
}

.sidebar-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-back:hover { color: var(--green); }
.sidebar-back .arrow { font-size: 0.75rem; }

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 0.2rem; }

.sidebar-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  line-height: 1.4;
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover { color: var(--text-primary); background: var(--silver-dim); }
.sidebar-nav a.active { color: var(--green); background: var(--green-dim); border-left-color: var(--green); }

.sidebar-nav .ch-num {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-nav a.active .ch-num { color: var(--green); opacity: 0.7; }

/* Chapter content */
.chapter-content {
  padding: 3rem 0 5rem 3.5rem;
  max-width: 760px;
}

.chapter-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
}

.chapter-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.chapter-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 1.5rem 0 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.chapter-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 3rem 0 1rem;
}

.chapter-content h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 2.25rem 0 0.75rem;
}

.chapter-content p {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.chapter-content p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.chapter-callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--silver);
  border-left: 2px solid var(--green);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2.25rem 0;
}

.chapter-callout.red { border-left-color: var(--red); color: var(--text-secondary); }

.chapter-rule {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

/* Info boxes */
.chapter-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.chapter-box.green { border-color: var(--border-green); }
.chapter-box.red   { border-color: var(--border-red); }

.chapter-box h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.chapter-box.red h4 { color: var(--red); }

.chapter-box p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.chapter-box p:last-child { margin-bottom: 0; }

/* Definition / term rows */
.term-list { list-style: none; margin: 1.25rem 0 2rem; }
.term-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.term-list li:last-child { border-bottom: none; }
.term-list .term { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; }
.term-list .def  { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* Numbered step list */
.step-list { list-style: none; counter-reset: steps; margin: 1.25rem 0 2rem; }
.step-list li {
  counter-increment: steps;
  position: relative;
  padding: 0.75rem 0 0.75rem 3rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-green);
  border-radius: 50%;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chapter nav (prev / next) */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  gap: 1rem;
}

.chapter-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
  max-width: 240px;
}
.chapter-nav a:hover { border-color: var(--border-green); }
.chapter-nav a.next { text-align: right; margin-left: auto; }

.chapter-nav .nav-dir {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.chapter-nav .nav-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Day-type table */
.day-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.day-type-grid.day-type-grid--four { grid-template-columns: repeat(2, 1fr); }

.day-type-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  padding: 1.5rem 1.25rem;
}

.day-type-card .dt-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}
.day-type-card.balance  .dt-label  { color: var(--silver); }
.day-type-card.trend    .dt-label  { color: var(--green);  }
.day-type-card.selloff  .dt-label  { color: var(--red);    }
.day-type-card.catalyst .dt-label  { color: #C9A84C;       }

.day-type-card h4  { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.6rem; }
.day-type-card p   { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Outcome table */
.outcome-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.outcome-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-default);
}
.outcome-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}
.outcome-table tr:last-child td { border-bottom: none; }
.outcome-table .highlight { color: var(--green); font-weight: 600; }
.outcome-table .warn      { color: var(--red);   font-weight: 600; }

/* Responsive: collapse sidebar */
@media (max-width: 860px) {
  .playbook-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .playbook-sidebar {
    position: static;
    height: auto;
    padding: 1.5rem var(--section-pad-x);
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible;
  }

  .sidebar-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }

  .chapter-content { padding: 2rem var(--section-pad-x) 4rem; }

  .day-type-grid { grid-template-columns: 1fr; }
  .day-type-grid.day-type-grid--four { grid-template-columns: 1fr; }

  .term-list li { grid-template-columns: 1fr; gap: 0.25rem; }

  .chapter-nav { flex-direction: column; }
  .chapter-nav a { max-width: 100%; width: 100%; }
  .chapter-nav a.next { text-align: left; margin-left: 0; }
}

/* ==========================================================================
   Glossary Tooltip System — Slide-in Definition Panel
   ========================================================================== */

/* Highlighted term in text */
.gl {
  color: var(--green);
  border-bottom: 1px dashed rgba(0,200,150,0.45);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.gl:hover { color: var(--green-hover); border-bottom-color: var(--green-hover); }
.gl.active { color: var(--green-hover); border-bottom-color: var(--green-hover); }

/* Backdrop */
.gl-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.gl-backdrop.visible { display: block; }

/* Panel */
.gl-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-default);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gl-panel.open { transform: translateX(0); }

/* Panel header */
.gl-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  gap: 1rem;
}
.gl-panel-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}
.gl-panel-close {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: all 0.15s ease;
}
.gl-panel-close:hover { border-color: var(--border-green); color: var(--green); }

/* Panel body */
.gl-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}
.gl-panel-body::-webkit-scrollbar { width: 4px; }
.gl-panel-body::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

/* Panel category tag */
.gl-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-mid);
  margin-bottom: 1rem;
  display: block;
}

/* Panel prose */
.gl-panel-body p {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.gl-panel-body p:last-child { margin-bottom: 0; }
.gl-panel-body strong { color: var(--text-primary); font-weight: 600; }

/* Panel sub-sections */
.gl-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.gl-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
  display: block;
}
.gl-section p {
  font-size: 0.92rem;
}

/* "Also connected to" chips */
.gl-related {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.gl-related-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  display: block;
}
.gl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.gl-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.gl-chip:hover { border-color: var(--border-green); color: var(--green); }

@media (max-width: 520px) {
  .gl-panel { width: 100vw; }
  .gl-panel-header, .gl-panel-body { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ==========================================================================
   Homepage — Publication Layout (v8 rebuild)
   ========================================================================== */

/* Latest Writing section */
.latest-writing {
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.latest-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.latest-header h2 {
  font-size: 1.3rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-primary);
}

.latest-view-all {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--text-tertiary);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.latest-view-all:hover { color: var(--green); border-color: var(--green); }

.writing-list {
  list-style: none;
}

.writing-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: none;
}
.writing-item:last-child { border-bottom: none; }

.writing-item:hover .writing-title { color: var(--green); }

.writing-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.writing-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  line-height: 1.4;
}
.writing-tag.macro       { background: rgba(0,200,150,0.1);  color: var(--green); }
.writing-tag.positioning { background: rgba(201,168,76,0.1); color: #C9A84C; }
.writing-tag.tactical    { background: rgba(232,64,64,0.1);  color: var(--red); }
.writing-tag.educational { background: rgba(192,192,192,0.1);color: var(--silver); }

.writing-date {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.writing-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.15s ease;
}

.writing-dek {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.writing-arrow {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* The Lens section (replaces 7-layer framework) */
.the-lens {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--section-pad-y) 0;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.lens-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
}

.lens-card .lens-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
  line-height: 1;
}

.lens-card h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.lens-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.lens-bridge {
  max-width: 600px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* What You'll Find Here */
.whats-here {
  padding: var(--section-pad-y) 0;
}

.whats-here-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.whats-here-item {
  padding: 0;
}

.whats-here-item .wh-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.6rem;
}

.whats-here-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.whats-here-item p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* About strip */
.about-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.about-strip-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.5rem;
}

.about-strip h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.about-strip p {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-strip p:last-of-type { margin-bottom: 0; }

.about-strip .read-more {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0,200,150,0.35);
  padding-bottom: 1px;
}
.about-strip .read-more:hover { border-color: var(--green); }

/* Topic suggestion inline */
.topic-suggest {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topic-suggest span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.topic-suggest a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
}

/* Bottom CTA — archive framing */
.archive-cta {
  padding: var(--section-pad-y) 0;
  text-align: center;
}

.archive-cta .eyebrow { margin-bottom: 0.75rem; }
.archive-cta h2 { margin-bottom: 1rem; }
.archive-cta p { max-width: 540px; margin: 0 auto; }

@media (max-width: 860px) {
  .lens-grid             { grid-template-columns: 1fr 1fr; }
  .whats-here-grid       { grid-template-columns: 1fr; }
  .about-strip-inner     { grid-template-columns: 1fr; gap: 1.5rem; }
  .latest-header         { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 520px) {
  .lens-grid             { grid-template-columns: 1fr; }
  .writing-item          { grid-template-columns: 1fr; }
  .writing-arrow         { display: none; }
}

/* ==========================================================================
   v10 Updates: Card Grid, Scroll Animations, Revised "What's Here"
   ========================================================================== */

/* ── Scroll / Entrance Animations ─────────────────────────────────────── */

/* Base fade-up state (hidden) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (lens cards, post cards) */
.stagger-child {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.stagger-child.visible { opacity: 1; transform: translateY(0); }

/* Green headline glow pulse on entry */
@keyframes greenGlow {
  0%   { text-shadow: 0 0 0 rgba(0,200,150,0); }
  40%  { text-shadow: 0 0 22px rgba(0,200,150,0.55), 0 0 8px rgba(0,200,150,0.25); }
  100% { text-shadow: 0 0 0 rgba(0,200,150,0); }
}
.glow-trigger.visible .txt-green {
  animation: greenGlow 1.8s ease forwards;
}

/* Hero ambient background bloom */
.hero-bloom {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bloom::before,
.hero-bloom::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  animation: bloomDrift 12s ease-in-out infinite alternate;
}
.hero-bloom::before {
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(0,200,150,0.07) 0%, transparent 72%);
  top: -60px;
  left: calc(50% - 260px);
  animation-delay: 0s;
}
.hero-bloom::after {
  width: 380px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(192,192,192,0.05) 0%, transparent 70%);
  top: 40px;
  right: calc(50% - 300px);
  animation-delay: 4s;
  animation-direction: alternate-reverse;
}
@keyframes bloomDrift {
  0%   { opacity: 0;    transform: translate(0, 0) scale(1); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0.6;  transform: translate(24px, 16px) scale(1.08); }
}

/* Hero content sits above bloom */
.hero > .container-narrow { position: relative; z-index: 1; }

/* ── Post Card Grid (replaces writing-list) ───────────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}
.post-card:hover {
  border-color: var(--border-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  color: inherit;
}

/* Card image area */
.post-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.88) saturate(0.85);
}
.post-card:hover .post-card-img img {
  transform: scale(1.04);
}

/* SVG placeholder when no real image yet */
.post-card-img svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Card body */
.post-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

/* Reuse existing writing-tag classes for colour */
.post-card-date {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.38;
  margin-bottom: 0.55rem;
  transition: color 0.15s ease;
}
.post-card:hover .post-card-title { color: var(--green); }

.post-card-dek {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin: 0;
  flex: 1;
}

/* ── "What's Here" — Revised prose layout ─────────────────────────────── */

.whats-prose {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.whats-prose p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.category-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem auto 0;
}

.cat-pill {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: default;
}
.cat-pill.macro       { background: rgba(0,200,150,0.1);  color: var(--green);    border-color: rgba(0,200,150,0.25); }
.cat-pill.positioning { background: rgba(201,168,76,0.1); color: #C9A84C;         border-color: rgba(201,168,76,0.25); }
.cat-pill.tactical    { background: rgba(232,64,64,0.1);  color: var(--red);      border-color: rgba(232,64,64,0.22); }
.cat-pill.educational { background: rgba(192,192,192,0.1);color: var(--silver);   border-color: rgba(192,192,192,0.2); }

.whats-suggest {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
}
.whats-suggest a {
  color: var(--green);
  font-weight: 500;
  margin-left: 0.35rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AMT INTERACTIVE STUDY SLIDESHOWS
   Stepped, dark, institutional educational diagrams.
   ============================================================ */
.study {
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-secondary);
  margin: 2.5rem 0;
  overflow: hidden;
}
.study-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}
.study-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.study-count {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.study-stage {
  position: relative;
  width: 100%;
  background: var(--bg-primary);
}
.study-stage svg { display: block; width: 100%; height: auto; }
.study-slide { display: none; }
.study-slide.active { display: block; }
.study-caption {
  padding: 1.1rem 1.2rem 0.4rem;
  border-top: 1px solid var(--border-subtle);
}
.study-step-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}
.study-caption p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 0.4rem; }
.study-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem 1.1rem;
  gap: 1rem;
}
.study-dots { display: flex; gap: 0.4rem; }
.study-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-emphasis);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.study-dot.active { background: var(--green); transform: scale(1.25); }
.study-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.study-btn:hover { border-color: var(--border-green); color: var(--green); }
.study-btn:disabled { opacity: 0.3; cursor: default; }
.study-btn:disabled:hover { border-color: var(--border-default); color: var(--text-primary); }
@media (max-width: 600px) {
  .study-controls { flex-wrap: wrap; }
  .study-caption p { font-size: 0.86rem; }
}


/* ==========================================================================
   Registration Gate — Modal & Teaser Card Styles
   ========================================================================== */

/* ── Modal overlay ───────────────────────────────────────────────────────── */

.etv-gate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.etv-gate-modal.open { display: flex; }

body.etv-modal-lock { overflow: hidden; }

.etv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.etv-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-top: 2px solid var(--green);
  border-radius: 2px;
  padding: 3rem 3rem 2.5rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0,200,150,0.06);
}

.etv-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.etv-modal-close:hover { color: var(--text-primary); }

.etv-modal-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}

.etv-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.etv-modal-body {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.etv-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.etv-modal-form input[type="email"] {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.etv-modal-form input[type="email"]:focus { border-color: var(--green); }
.etv-modal-form input[type="email"]::placeholder { color: var(--text-tertiary); }

.etv-modal-form button[type="submit"] {
  width: 100%;
  background: var(--green);
  border: none;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.etv-modal-form button[type="submit"]:hover   { background: var(--green-hover); }
.etv-modal-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }

.etv-modal-disclaimer {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
  margin: 0;
}

.etv-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.etv-modal-divider::before,
.etv-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ── Teaser / locked briefing cards ─────────────────────────────────────── */

.briefing-card.teaser {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.briefing-card.teaser .teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 0.18rem 0.5rem;
  line-height: 1;
}

/* Lock icon inside teaser badge */
.briefing-card.teaser .teaser-badge svg {
  width: 9px;
  height: 9px;
  opacity: 0.55;
}

.briefing-card.teaser .teaser-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.briefing-card.teaser .teaser-cta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.briefing-card.teaser:hover .teaser-cta { opacity: 0.8; }

/* Registered state: lock disappears, shows "coming soon" hint */
.briefing-card.teaser.registered .teaser-cta {
  color: var(--text-tertiary);
  pointer-events: none;
}
.briefing-card.teaser.registered .teaser-cta svg { display: none; }
.briefing-card.teaser.registered .teaser-badge {
  color: var(--text-tertiary);
  border-color: var(--border-subtle);
}

/* ── Gated post-cards on homepage ────────────────────────────────────────── */

.post-card.gated { cursor: pointer; }

.post-card-lock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.03em;
}
.post-card-lock svg { width: 11px; height: 11px; flex-shrink: 0; }

.post-card.gated.registered .post-card-lock {
  color: var(--text-tertiary);
  pointer-events: none;
}
.post-card.gated.registered .post-card-lock svg { display: none; }

/* ── Briefing empty state ────────────────────────────────────────────────── */

.briefing-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--bg-secondary);
}

.briefing-empty-state p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Mobile adjustments ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .etv-modal-panel { padding: 2.5rem 1.75rem 2rem; }
  .etv-modal-title { font-size: 1.5rem; }
}
