/*
Theme Name: Anchor
Theme URI: https://anchorops.ai
Author: Anchor
Author URI: https://anchorops.ai
Description: Custom theme for Anchor — AI Operators that replace mid-market workflows. Dark, minimal, fast.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anchor
Tags: business, one-page, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ===========================================
   ANCHOR THEME — Main stylesheet
   =========================================== */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #f5f1ea;
  --muted: #8a8580;
  --accent: #ff6b3d;
  --line: #1f1f1f;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
  width: 100%;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.serif { font-family: 'Instrument Serif', serif; font-weight: 400; font-style: italic; color: var(--accent); }
.accent { color: var(--accent); }
/* Ensure orange wins inside hero, sections, and CTA contexts */
.hero h1 .serif,
.section-title .serif,
.pitch p .serif,
.cta-section h2 .serif { color: var(--accent); }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,10,0.6);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
}
/* Custom uploaded logo image */
.logo.logo-image .custom-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
  /* Cap width so it doesn't push the nav apart */
  max-width: 200px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--fg) !important;
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-copy { min-width: 0; }
.hero-illustration {
  position: relative;
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}
.hero-illustration iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.hero-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 100%;
  margin-bottom: 32px;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 48px;
  opacity: 0;
}
.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--fg); }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
}
.marquee-item {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: '✺';
  color: var(--accent);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
section { padding: 120px 48px; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 80px;
}

/* ============ OPERATORS GRID ============ */
.crews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.crew-card {
  background: var(--bg);
  padding: 40px;
  transition: background 0.3s;
}
.crew-card:hover { background: var(--bg-2); }
.crew-icon {
  width: 48px; height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.crew-card:hover .crew-icon {
  background: var(--accent);
  border-color: var(--accent);
}
.crew-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.crew-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.crew-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex-wrap: wrap;
}
.crew-meta strong { color: var(--fg); font-weight: 500; }

/* ============ PROCESS ============ */
.process { background: var(--bg-2); }
.process-steps { display: grid; gap: 24px; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px;
  color: var(--accent);
}
.step-content h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step-content p {
  color: var(--muted);
  font-size: 16px;
  max-width: 600px;
}
.step-time {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ STACK ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stack-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.stack-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.stack-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.stack-item p {
  color: var(--muted);
  font-size: 14px;
}

/* ============ PITCH ============ */
.pitch {
  padding: 160px 48px;
  text-align: left;
}
.pitch p {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 1200px;
}
.pitch p .accent { color: var(--accent); }
.pitch p .ser { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

/* ============ CTA ============ */
.cta-section {
  background: var(--accent);
  color: var(--bg);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p {
  font-size: 20px;
  margin-bottom: 48px;
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  background: var(--bg);
  color: var(--fg);
  padding: 20px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); }

/* ============ FOOTER ============ */
.site-footer {
  padding: 60px 48px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: var(--muted); margin-left: 24px; }
.site-footer a:hover { color: var(--fg); }
.footer-links { display: flex; align-items: center; }

.reveal { opacity: 0; transform: translateY(40px); }

/* ============ SECTION LEDE ============ */
.section-lede {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 48px;
}

/* ============ SPLIT (image + copy) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-copy { min-width: 0; }
.split-copy .section-title { margin-bottom: 24px; }
.split-illustration {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}
.split-illustration iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* ============ ENEMY SECTION ============ */
.enemy-section { background: var(--bg-2); }
.enemy-section .split-illustration { height: 720px; }

/* ============ PROOF (THE MOAT) ============ */
.proof-section {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,107,61,0.06) 0%, transparent 70%),
    var(--bg);
}
.proof-illustration {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 64px;
}
.proof-illustration iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
}
.proof-stat {
  background: var(--bg);
  padding: 40px 32px;
}
.proof-stat-num {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  line-height: 1;
}
.proof-stat-label {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.proof-cta { text-align: center; margin-top: 16px; }

/* ============ CAPABILITY HORIZON ============ */
.capability-section { background: var(--bg-2); }
.capability-section .split-illustration { height: 720px; }

/* ============ TRIPLE CTA ============ */
.triple-cta { background: var(--bg); padding-bottom: 160px; }
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.door {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s;
  color: inherit;
}
.door:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.door-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.door h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.door p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.door-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.door-accent {
  background: var(--accent);
  color: var(--bg);
}
.door-accent .door-label { color: var(--bg); opacity: 0.7; }
.door-accent p { color: var(--bg); opacity: 0.85; }
.door-accent .door-cta {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

/* ============ ARTICLES INDEX ============ */
.container--narrow { max-width: 760px; margin: 0 auto; }

.articles-hero {
  padding: 180px 48px 60px;
  position: relative;
}
.articles-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
}
.articles-hero .hero-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 1;
}
.articles-headline {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 28px;
  max-width: 900px;
}
.articles-sub {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 720px;
}

.articles-list { padding: 80px 48px 160px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}
.article-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.article-card-link {
  display: block;
  color: inherit;
}
.article-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.article-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-card-body { padding: 28px 28px 32px; }
.article-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-card-cat { color: var(--accent); }
.article-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-card-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.article-card-cta {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.article-card-read::before { content: "· "; }

/* ---- Library filter tabs ---- */
.library-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.lib-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lib-tab:hover { border-color: var(--muted); color: var(--fg); }
.lib-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---- Field Note cards: image-led, minimal text ---- */
.article-card--note .article-card-thumb { aspect-ratio: 4 / 3; }
.article-card--note .article-card-body { padding: 20px 22px 24px; }
.article-card--note .article-card-title {
  font-size: 18px;
  margin-bottom: 14px;
}
.article-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(255,107,61,0.10) 0%, transparent 70%),
    var(--bg);
}
.article-card-thumb--placeholder span {
  font-size: 40px;
  color: var(--accent);
  opacity: 0.6;
}

/* ---- Essay cards: text-led ---- */
.article-card--essay .article-card-thumb { aspect-ratio: 16 / 9; }

.articles-empty--filtered { padding: 60px 0; }

.articles-pagination { margin-top: 60px; text-align: center; }
.articles-pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--fg);
}
.articles-empty {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  padding: 80px 0;
}

/* ============ SINGLE ARTICLE ============ */
.single-article-header {
  padding: 180px 48px 48px;
}
.single-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.single-article-cat { color: var(--accent); }
.single-article-sep { opacity: 0.5; }
.single-article-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0;
}
.single-article-featured {
  margin-top: 56px;
  padding: 0 48px;
}
.single-article-featured img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.single-article-body {
  padding: 80px 48px 48px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.75;
}
.single-article-body p {
  margin-bottom: 1.5em;
  color: #d8d1c5;
}
.single-article-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--fg);
}
.single-article-body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.single-article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255,107,61,0.4);
  transition: border-color 0.2s;
}
.single-article-body a:hover { border-bottom-color: var(--accent); }
.single-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.25em;
  line-height: 1.4;
  color: var(--fg);
}
.single-article-body ul,
.single-article-body ol { margin: 0 0 1.5em 1.5em; }
.single-article-body li { margin-bottom: 0.5em; color: #d8d1c5; }
.single-article-body code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.9em;
}
.single-article-body pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.single-article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.9em;
}
.single-article-body img {
  border-radius: 16px;
  margin: 32px 0;
}
.single-article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.single-article-footer {
  padding: 0 48px 80px;
}
.single-article-tags {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.single-article-tags .tag-label { color: var(--fg); margin-right: 6px; }
.single-article-tags a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.single-article-tags a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.single-article-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 48px;
}
.single-article-cta-inner {
  text-align: center;
}
.single-article-cta-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.single-article-cta h3 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.single-article-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ NEWSLETTER SUBSCRIBE (Jetpack) ============ */
/* Horizontal email + button, brand-matched. Defensive across Jetpack
   widget/block markup variants (fields are sometimes wrapped in <p>). */
.anchor-subscribe { width: 100%; max-width: 520px; margin: 0 auto; }
.anchor-subscribe form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}
.anchor-subscribe form > p,
.anchor-subscribe .wp-block-jetpack-subscriptions__form-elements {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0;
}
.anchor-subscribe #subscribe-email,
.anchor-subscribe .wp-block-jetpack-subscriptions__email-wrapper {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
}
.anchor-subscribe input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 14px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.anchor-subscribe input[type="email"]::placeholder { color: var(--muted); }
.anchor-subscribe input[type="email"]:focus { border-color: var(--accent); }
.anchor-subscribe #subscribe-submit,
.anchor-subscribe .wp-block-jetpack-subscriptions__submit { flex: 0 0 auto; margin: 0; }
.anchor-subscribe button,
.anchor-subscribe button[type="submit"],
.anchor-subscribe .wp-block-button__link {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s;
  box-shadow: none;
  text-shadow: none;
}
.anchor-subscribe button:hover,
.anchor-subscribe .wp-block-button__link:hover { transform: translateY(-2px); }
/* Jetpack confirmation / messages */
.anchor-subscribe .wp-block-jetpack-subscriptions__subscribe-success,
.anchor-subscribe .jetpack-subscribe-success {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  text-align: center;
}
/* Articles-page subscribe block spacing */
.articles-subscribe { margin-top: 36px; max-width: 520px; }

/* ============ JETPACK FORM — success-block visibility ============ */
/* Jetpack's AJAX success/confirmation block ("Thank you for your response.")
   ships in the DOM and is only meant to appear once the Interactivity API adds
   the `submission-success` class after a real submit. On shortcode-rendered
   forms Jetpack's default-hide CSS isn't always enqueued, so it shows on first
   load. Hide it until the success state is actually set. */
.capture-form .contact-form-submission,
.contact-form .contact-form-submission { display: none; }
.capture-form .contact-form-submission.submission-success,
.contact-form .contact-form-submission.submission-success { display: block; }

/* ============ RESPONSIVE ============ */

/* Tablet and below */
@media (max-width: 1024px) {
  section { padding: 100px 32px; }
  .pitch { padding: 120px 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-illustration { height: 680px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-illustration { height: 480px; }
  .enemy-section .split-illustration { height: 680px; }
  .capability-section .split-illustration { height: 680px; }
  .proof-illustration { height: 680px; }
  .proof-stats { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Navigation */
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .logo.logo-image .custom-logo-img { max-height: 32px; max-width: 140px; }

  /* All sections — tighter padding */
  section, .hero { padding: 80px 20px; }
  .pitch, .cta-section { padding: 80px 20px; }
  .container { max-width: 100%; padding: 0; }

  /* Hero */
  .hero h1 {
    font-size: clamp(36px, 11vw, 64px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }
  .hero-sub {
    font-size: 17px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Section headings — keep them inside the screen */
  .section-title {
    font-size: clamp(28px, 8vw, 44px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-bottom: 48px;
  }
  .section-label { font-size: 12px; }

  /* Pitch quote — was bursting out at 72px */
  .pitch p {
    font-size: clamp(26px, 7.5vw, 40px);
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* New section illustrations — shorter on mobile */
  .hero-illustration { height: 600px; }
  .split-illustration { height: 360px; }
  .enemy-section .split-illustration { height: 600px; }
  .capability-section .split-illustration { height: 600px; }
  .proof-illustration { height: 600px; }

  /* Section lede */
  .section-lede { font-size: 16px; margin-bottom: 32px; }

  /* Triple CTA doors */
  .triple-cta { padding-bottom: 80px; }
  .door { padding: 28px 24px; }
  .door h3 { font-size: 20px; }
  .door p { font-size: 14px; margin-bottom: 20px; }

  /* Proof stats */
  .proof-stat { padding: 28px 24px; }
  .proof-stat-num { font-size: clamp(32px, 9vw, 44px); }

  /* Articles */
  .articles-hero { padding: 120px 20px 40px; }
  .articles-list { padding: 60px 20px 100px; }
  .articles-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-card-body { padding: 24px; }
  .article-card-title { font-size: 19px; }

  /* Single article */
  .single-article-header { padding: 120px 20px 32px; }
  .single-article-featured { margin-top: 36px; padding: 0 20px; }
  .single-article-body { padding: 56px 20px 32px; font-size: 17px; line-height: 1.7; }
  .single-article-footer { padding: 0 20px 60px; }
  .single-article-cta { padding: 60px 20px; }
  .single-article-cta h3 { font-size: clamp(24px, 7vw, 36px); }

  /* Operators grid — single column */
  .crews-grid { grid-template-columns: 1fr; }
  .crew-card { padding: 28px 24px; }
  .crew-card h3 { font-size: 20px; }
  .crew-meta { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Process steps — restructure for narrow screens */
  .process-step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
    align-items: flex-start;
  }
  .step-num {
    font-size: 36px;
    grid-column: 1;
  }
  .step-content { grid-column: 1; }
  .step-content h3 { font-size: 22px; }
  .step-content p { font-size: 15px; }
  .step-time {
    grid-column: 1;
    margin-top: 4px;
  }

  /* Stack — single column */
  .stack-grid { grid-template-columns: 1fr; gap: 16px; }
  .stack-item { padding: 24px; }

  /* Bottom CTA */
  .cta-section h2 {
    font-size: clamp(36px, 10vw, 64px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.05;
  }
  .cta-section p { font-size: 17px; }
  .cta-btn { padding: 16px 28px; font-size: 16px; }

  /* Footer */
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-links a { margin: 0 12px; }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(32px, 10vw, 48px); }
  .section-title { font-size: clamp(26px, 7.5vw, 36px); }
  .pitch p { font-size: clamp(24px, 7vw, 32px); }
  .cta-section h2 { font-size: clamp(32px, 9vw, 48px); }
}
