/* Executive Overreach — Homepage */

:root {
  --bg: #0a0c11;
  --bg-2: #10131a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --muted: #a3a9b6;
  --dim: #6c7381;
  --hl: #f2c14e;        /* highlighter yellow, as on the quotes */
  --hl-soft: rgba(242, 193, 78, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(242, 193, 78, 0.10), transparent 70%),
    radial-gradient(700px 500px at 100% 70%, rgba(80, 110, 160, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* faint grid, fading out toward the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.5;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 3px; border-radius: 4px; }

/* ── Top bar ─────────────────────────────── */
.home-top {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.home-logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2c14e, #d9902f);
  color: #1a1306;
}
.home-logo-mark svg { width: 18px; height: 18px; }
.home-nav { display: flex; gap: 22px; }
.home-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.home-nav a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  text-align: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
}
.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hl);
  box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(242, 193, 78, 0); } }

.hero-title {
  margin: 0 auto 20px;
  max-width: 15em;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hl {
  color: var(--hl);
  background: linear-gradient(transparent 62%, var(--hl-soft) 62%);
  padding: 0 0.05em;
}
.hero-dek {
  margin: 0 auto 30px;
  max-width: 40em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.hero-dek strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #f6cf6e, var(--hl));
  color: #1a1306;
  box-shadow: 0 8px 30px -10px rgba(242, 193, 78, 0.6);
}
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

/* ── The pipeline diagram ────────────────── */
.flow { margin: 54px 0 0; }
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-lanes text {
  fill: var(--dim);
  font: 600 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: end;
}
.flow-lanes line { stroke: var(--line); stroke-dasharray: 2 6; }
.flow-base { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; }
.flow-seg {
  fill: none;
  stroke: var(--hl);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(242, 193, 78, 0.5));
}
.flow-stage text { fill: var(--muted); font: 600 13px var(--sans); text-anchor: middle; }
.flow-node { fill: var(--bg); stroke: var(--muted); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.flow-halo { fill: none; stroke: var(--hl); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* One 12-second loop, four stages of 3 seconds each. */
.flow-seg-1 { animation: seg1 12s linear infinite; }
.flow-seg-2 { animation: seg2 12s linear infinite; }
.flow-seg-3 { animation: seg3 12s linear infinite; }
@keyframes seg1 { 0%, 18% { stroke-dashoffset: 1; opacity: 1; } 25%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes seg2 { 0%, 43% { stroke-dashoffset: 1; opacity: 1; } 50%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes seg3 { 0%, 68% { stroke-dashoffset: 1; opacity: 1; } 75%, 96% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.flow-stage .flow-node { animation: node 12s ease infinite; }
.flow-stage .flow-halo { animation: halo 12s ease infinite; }
.flow-stage text { animation: label 12s ease infinite; }
.flow-stage-2 > * { animation-delay: 3s !important; }
.flow-stage-3 > * { animation-delay: 6s !important; }
.flow-stage-4 > * { animation-delay: 9s !important; }
@keyframes node { 0% { fill: var(--bg); stroke: var(--muted); transform: scale(1); } 3%, 21% { fill: var(--hl); stroke: var(--hl); transform: scale(1.25); } 25%, 100% { fill: var(--bg); stroke: var(--muted); transform: scale(1); } }
@keyframes halo { 0% { opacity: 0; transform: scale(0.6); } 4%, 20% { opacity: 0.9; transform: scale(1); } 25%, 100% { opacity: 0; transform: scale(1.3); } }
@keyframes label { 0% { fill: var(--muted); } 3%, 21% { fill: var(--hl); } 25%, 100% { fill: var(--muted); } }

/* The caption under the diagram changes with each stage. */
.flow-captions { position: relative; height: 44px; margin-top: 26px; }
.cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: cap 12s ease infinite;
}
.cap-2 { animation-delay: 3s; }
.cap-3 { animation-delay: 6s; }
.cap-4 { animation-delay: 9s; }
@keyframes cap { 0% { opacity: 0; transform: translateY(6px); } 3%, 21% { opacity: 1; transform: none; } 24%, 100% { opacity: 0; transform: translateY(-6px); } }
.cap strong, .flow-list strong { font-weight: 600; }
.cap span, .flow-list span { color: var(--dim); font-size: 14px; }
.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid rgba(242, 193, 78, 0.45);
  border-radius: 999px;
  color: var(--hl);
  background: var(--hl-soft);
  font: 600 10.5px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flow-list { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pill-dot, .flow-seg, .flow-stage > *, .cap { animation: none !important; }
  .flow-seg { stroke-dashoffset: 0; }
  .flow-captions { display: none; }
  .flow-list { display: grid; }
}

/* ── Strip ───────────────────────────────── */
.strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 24px;
  text-align: center;
}
.strip p { margin: 0 auto; max-width: 900px; color: var(--muted); font-size: 15px; }
.strip strong { color: var(--text); margin-right: 6px; }
.strip a { color: var(--hl); text-decoration: none; white-space: nowrap; }
.strip a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Feed ────────────────────────────────── */
.feed {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  scroll-margin-top: 12px;
}
.feed h2 {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.post-list { display: grid; gap: 18px; }

/* Until the first post is approved, the feed says so instead of sitting empty. */
.feed:not(:has(article.post)) .post-list::before {
  content: "The first posts are on their way. Check back soon.";
  display: block;
  padding: 36px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

/* Posts written into the feed by the publishing app */
article.post {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.post-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
article.post blockquote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 3px solid var(--hl);
  font: italic 19px/1.55 var(--serif);
  color: var(--text);
}
article.post blockquote p { margin: 0 0 8px; }
article.post cite { display: block; font: normal 13px var(--sans); color: var(--dim); }
article.post cite::before { content: "— "; }
article.post mark { background: var(--hl-soft); color: var(--hl); padding: 0 0.15em; border-radius: 2px; }
.categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.category-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: #5d6d7e;
}
.category-tag--judicial { background: #3d5a78; }
.category-tag--authority { background: #7d45a0; }
.category-tag--press { background: #2b6a9c; }
.category-tag--opponents { background: #a8361a; }
.category-tag--legislative { background: #23854a; }
.category-tag--consolidation { background: #96322a; }
.category-tag--emergency { background: #b9770e; }
.category-tag--loyalty { background: #5d6d7e; }
.post-link { display: inline-block; margin-top: 14px; color: var(--hl); font-size: 14px; font-weight: 600; text-decoration: none; }
.post-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ──────────────────────────────── */
.home-footer {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
}
.home-footer-note { flex: 1; }
.home-footer a { color: var(--muted); text-decoration: none; }
.home-footer a:hover { color: var(--text); }

/* ── Small screens ───────────────────────── */
@media (max-width: 680px) {
  .home-top { padding: 16px; }
  .hero { padding: 14px 16px 32px; }
  .hero-dek { font-size: 16px; }
  .flow { margin-top: 40px; text-align: left; }
  .flow-svg, .flow-captions { display: none; }
  .flow-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 0 0 22px;
    list-style: none;
    border-left: 2px solid rgba(242, 193, 78, 0.35);
  }
  .flow-list li { position: relative; display: grid; gap: 4px; justify-items: start; padding: 0 0 22px; }
  .flow-list li::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--hl);
  }
  .strip { padding: 18px 16px; text-align: left; }
  .feed { padding: 48px 16px 56px; }
  .home-footer { flex-wrap: wrap; padding: 20px 16px 28px; }
  .home-footer-note { flex-basis: 100%; order: 3; }
}

/* ── About page ──────────────────────────── */
.page-hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 24px 24px;
  text-align: center;
}
.page-hero .hero-title { font-size: clamp(34px, 5vw, 54px); }
.page-hero .hero-dek { margin-bottom: 0; }

.page-section {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl);
}
.page-section h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-dek { margin: 18px 0 0; color: var(--muted); max-width: 44em; }
.section-dek + .taxonomy-list { margin-top: 22px; }
.page-section a { color: var(--hl); text-decoration-color: rgba(242, 193, 78, 0.45); text-underline-offset: 3px; }

/* Pipeline steps as connected cards */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -15px;
  width: 16px;
  height: 1px;
  background: rgba(242, 193, 78, 0.5);
}
.steps h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Categories, as written into the page by the publishing app (<dl><dt><dd>) */
.taxonomy-list {
  counter-reset: cat;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row dense;
  column-gap: 14px;
}
.taxonomy-list dt {
  counter-increment: cat;
  grid-column: 1;
  margin-top: 14px;
  padding: 18px 20px 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.taxonomy-list dt::before {
  content: counter(cat, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--hl);
}
.taxonomy-list dd {
  grid-column: 1;
  margin: 0;
  padding: 6px 20px 20px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.taxonomy-list dt:nth-of-type(even), .taxonomy-list dd:nth-of-type(even) { grid-column: 2; }
.taxonomy-list dt:nth-of-type(-n + 2) { margin-top: 0; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.facts li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); font-size: 15px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hl-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23f2c14e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(242, 193, 78, 0.45);
}
.about main { padding-bottom: 64px; }
.home-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 680px) {
  .page-hero { padding: 16px 16px 8px; }
  .page-section { padding: 44px 16px 4px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { top: auto; bottom: -15px; right: auto; left: 31px; width: 1px; height: 16px; }
  .taxonomy-list { grid-template-columns: 1fr; }
  .taxonomy-list dt:nth-of-type(even), .taxonomy-list dd:nth-of-type(even) { grid-column: 1; }
  .taxonomy-list dt:nth-of-type(2) { margin-top: 14px; }
}
