/* =========================================================
   STATECRAFT — Editorial political-strategy site
   Palette: deep navy, ink, cream, brass
   ========================================================= */

:root {
  /* Logo-derived palette: deep navy + vivid orange */
  --ink:       #0e1a4a;   /* logo navy */
  --ink-2:     #14215a;
  --ink-soft:  #1c2c6e;
  --cream:     #faf7f2;   /* light surface (near-white, warm) */
  --paper:     #f3ede1;
  --paper-2:   #e8e0cf;
  --brass:     #f04e1a;   /* logo orange (accent) */
  --brass-dim: #c43e15;   /* deeper orange */
  --rust:      #f04e1a;   /* italic accent — matches orange */
  --line:      rgba(250, 247, 242, 0.18);
  --line-ink:  rgba(14, 26, 74, 0.18);
  --serif:     'Cormorant Garamond', 'Playfair Display', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

em, i { font-style: italic; color: var(--rust); }

::selection { background: var(--ink); color: var(--cream); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide { max-width: 1440px; }

section { padding: 110px 0; position: relative; }

/* ---------- Section marker ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 36px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--brass-dim);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brass); }
.eyebrow.on-dark::before { background: var(--brass); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.display {
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 500;
}

h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.02;
}
h3 { font-size: clamp(22px, 2vw, 30px); }

p { margin: 0 0 1.2em; font-size: 19px; line-height: 1.6; }
.lead { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.5; color: rgba(14,19,32,0.86); }

.serif-num {
  font-family: var(--serif);
  font-feature-settings: "lnum";
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 19, 32, 0.0);
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(14, 19, 32, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 14px 0;
}
.site-header.dark-page,
.site-header.dark-page.scrolled { background: rgba(14, 19, 32, 0.92); backdrop-filter: blur(8px); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--cream);
}
.brand .word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 6px;
}
.brand .sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--brass);
  text-transform: uppercase;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brass); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--brass);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: transparent;
  transition: background .25s ease, color .25s ease;
}
.nav-cta:hover { background: var(--brass); color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: var(--cream);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 80px;
  color: var(--cream);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg svg {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,19,32,0.55) 0%, rgba(14,19,32,0.25) 35%, rgba(14,19,32,0.92) 100%),
    linear-gradient(90deg, rgba(14,19,32,0.55), rgba(14,19,32,0));
}
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  max-width: 18ch;
  margin-bottom: 36px;
}
.hero .lead { max-width: 60ch; color: rgba(244, 236, 216, 0.86); }
.hero-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}
.btn-primary:hover { background: transparent; color: var(--brass); }
.btn-ghost-light { color: var(--cream); border-color: rgba(244,236,216,0.45); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); }
.btn-ghost-dark { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); }

/* ---------- Section: who we are ---------- */
.who {
  background: var(--cream);
  border-top: 1px solid var(--line-ink);
}
.who-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.who h2 { max-width: 90%; }
.who p { font-size: 22px; line-height: 1.55; }

/* ---------- Disciplines ---------- */
.disciplines {
  background: var(--ink);
  color: var(--cream);
}
.disciplines h2 { max-width: 18ch; }
.disciplines .lead { color: rgba(244,236,216,0.78); max-width: 70ch; margin-bottom: 80px; }

.disciplines-list {
  border-top: 1px solid var(--line);
}
.discipline {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 48px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding .35s ease, background .35s ease;
  cursor: pointer;
}
.discipline:hover { padding-left: 18px; background: rgba(200,155,106,0.04); }
.discipline .num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--brass);
  letter-spacing: 2px;
}
.discipline h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.4vw, 36px);
  color: var(--cream);
}
.discipline p {
  margin: 0;
  color: rgba(244,236,216,0.7);
  font-size: 17px;
  max-width: 70ch;
}
.discipline .arrow {
  font-family: var(--serif);
  color: var(--brass);
  font-size: 22px;
  transition: transform .3s ease;
}
.discipline:hover .arrow { transform: translateX(8px); }

.disciplines-cta {
  margin-top: 64px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Ground truth ---------- */
.ground {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.ground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ground-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ground-media img,
.ground-media svg { width: 100%; height: 100%; object-fit: cover; }
.ground-media .caption {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.ground h2 { max-width: 16ch; }
.ground-list {
  list-style: none; padding: 0; margin: 36px 0 0;
}
.ground-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-ink);
  font-family: var(--serif);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ground-list li::before {
  content: "—";
  color: var(--brass);
}
.ground-list li:last-child { border-bottom: 1px solid var(--line-ink); }

/* ---------- Intelligence ---------- */
.intel {
  background: var(--ink);
  color: var(--cream);
}
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intel h2 { max-width: 14ch; }
.intel .lead { color: rgba(244,236,216,0.78); }
.intel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 88px);
  color: var(--brass);
  line-height: 1;
}
.stat .label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(244,236,216,0.65);
  margin-top: 8px;
}
.intel-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.intel-media svg, .intel-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Method ---------- */
.method { background: var(--paper-2); }
.method-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 64px; }
.method h2 { max-width: 18ch; }
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-ink);
}
.step {
  padding: 36px 24px 36px 0;
  border-right: 1px solid var(--line-ink);
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--brass-dim);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.step h3 { font-size: 28px; margin-bottom: 12px; }
.step p { font-size: 16px; color: rgba(14,19,32,0.74); margin: 0; }

/* ---------- The Republic ---------- */
.republic {
  background: var(--cream);
}
.republic h2 { max-width: 20ch; margin-bottom: 24px; }
.republic .lead { max-width: 70ch; }

.republic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}
.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink);
}
.card svg, .card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.card:hover svg, .card:hover img { transform: scale(1.04); }
.card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,19,32,0) 35%, rgba(14,19,32,0.85) 100%);
}
.card .card-text {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  color: var(--cream);
}
.card .card-text .small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card .card-text .title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

/* ---------- Road CTA ---------- */
.road {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 160px 0;
}
.road-bg {
  position: absolute; inset: 0; z-index: 0;
}
.road-bg svg, .road-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
}
.road-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,19,32,0.85), rgba(14,19,32,0.65));
}
.road .container { position: relative; z-index: 2; text-align: center; }
.road h2 {
  font-size: clamp(48px, 7vw, 96px);
  max-width: 16ch;
  margin: 0 auto 40px;
}
.road .btn { background: var(--brass); border-color: var(--brass); color: #fff; }
.road .btn:hover { background: transparent; color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-2);
  color: var(--cream);
  padding: 100px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-top h2 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 16ch;
  margin: 0;
}
.footer-top .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top ul li { padding: 6px 0; font-size: 16px; }
.footer-top a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(244,236,216,0.55);
  text-transform: uppercase;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(244,236,216,0.75);
  margin-top: 28px;
  text-transform: none;
  letter-spacing: 0;
}

/* ===================== Inner pages ===================== */
.page-intro {
  background: var(--ink);
  color: var(--cream);
  padding: 200px 0 120px;
}
.page-intro h1 {
  font-size: clamp(48px, 7vw, 96px);
  max-width: 18ch;
  margin: 24px 0 32px;
}
.page-intro .lead { color: rgba(244,236,216,0.8); max-width: 70ch; }

/* Services list */
.services-list {
  background: var(--cream);
}
.svc {
  padding: 80px 0;
  border-bottom: 1px solid var(--line-ink);
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr;
  gap: 60px;
}
.svc:last-child { border-bottom: 0; }
.svc .num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--brass);
  letter-spacing: 3px;
}
.svc h3 {
  font-size: clamp(28px, 3vw, 44px);
  margin: 0 0 20px;
  line-height: 1.1;
}
.svc p { font-size: 19px; color: rgba(14,19,32,0.78); max-width: 50ch; }
.svc .cap-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 18px;
}
.svc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 36px;
}
.svc ul li {
  padding: 10px 0;
  font-size: 17px;
  border-top: 1px solid var(--line-ink);
  break-inside: avoid;
  display: flex; gap: 12px;
}
.svc ul li::before {
  content: "▸";
  color: var(--brass);
  font-size: 12px;
  flex-shrink: 0;
}

/* Approach steps full */
.approach-steps {
  background: var(--cream);
}
.app-step {
  padding: 80px 0;
  border-bottom: 1px solid var(--line-ink);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 60px;
  align-items: start;
}
.app-step:last-child { border-bottom: 0; }
.app-step .roman {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--brass);
  line-height: 1;
}
.app-step h3 {
  font-size: clamp(32px, 3.4vw, 52px);
  margin: 0 0 18px;
}
.app-step p { font-size: 20px; max-width: 60ch; color: rgba(14,19,32,0.78); }

.work-with {
  background: var(--paper-2);
}
.work-with h2 { max-width: 18ch; margin-bottom: 40px; }
.work-with ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-ink);
}
.work-with li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-ink);
  font-size: 19px;
  display: flex;
  gap: 16px;
}
.work-with li::before {
  content: "◆";
  color: var(--brass);
  font-size: 12px;
}
.work-closing {
  margin-top: 64px;
  font-size: clamp(22px, 2vw, 28px);
  max-width: 30ch;
}

/* Contact */
.contact-page {
  background: var(--cream);
  padding: 120px 0 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 36px 0 12px;
}
.contact-info .email {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.contact-info .ops {
  font-family: var(--serif);
  font-size: 24px;
  margin: 4px 0 12px;
}
.contact-info p { font-size: 18px; max-width: 38ch; }

.contact-form {
  background: var(--paper);
  padding: 56px;
  border: 1px solid var(--line-ink);
}
.contact-form h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin: 0 0 28px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 22px, calc(100% - 8px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 130px; padding-top: 14px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brass); }

.form-disclaimer {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-top: 18px;
}
.form-status {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  min-height: 24px;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .who-grid, .ground-grid, .intel-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line-ink); }
  .republic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .svc { grid-template-columns: 60px 1fr; }
  .svc .num { grid-column: 1; }
  .svc-body { grid-column: 2; }
  .svc .caps { grid-column: 1 / -1; }
  .svc ul { columns: 1; }
  .work-with ul { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 24px;
    background: rgba(14,19,32,0.98);
    gap: 22px;
  }
  .mobile-open .nav-cta { display: inline-flex; margin: 0 24px 24px; align-self: flex-start; }
  .discipline { grid-template-columns: 48px 1fr 28px; gap: 18px; padding: 26px 0; }
  .discipline .arrow { font-size: 18px; }
  .method-steps { grid-template-columns: 1fr; }
  .republic-grid { grid-template-columns: 1fr; }
  .app-step { grid-template-columns: 1fr; gap: 20px; }
  .app-step .roman { font-size: 44px; }
  .contact-form { padding: 32px; }
  .intel-stats { grid-template-columns: 1fr; gap: 18px; }
}
