/* ============================================================
   Envartix — Editorial / Operating-Document aesthetic
   For executives & safety leaders. Built for scanning, not scrolling.
   ============================================================ */

:root {
  --paper:        #f1ece1;     /* warm bone */
  --paper-soft:   #e8e2d3;
  --ink:          #0d0d0c;
  --ink-2:        #2a2722;
  --muted:        #585242;     /* darkened for AA contrast on paper & paper-soft */
  --rule:         #1a1814;
  --hairline:     rgba(13, 13, 12, 0.16);
  --hairline-2:   rgba(13, 13, 12, 0.08);
  --accent:       #b8410e;     /* burnt amber — hazard reference, restrained */
  --accent-ink:   #7a2a07;
  --signal:       #0d0d0c;
  --serif:        "Fraunces", "Times New Roman", Georgia, serif;
  --sans:         "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:         "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html, body { width: 100%; min-height: 100%; margin: 0; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  /* Subtle paper grain */
  background-image:
    radial-gradient(rgba(13,13,12,0.025) 1px, transparent 1px),
    radial-gradient(rgba(13,13,12,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; line-height: 1.55; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.shell {
  width: min(1200px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.doc {
  position: relative;
  overflow: hidden;
}

/* ========================== Masthead ========================== */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.masthead-nav {
  display: none;
  justify-self: center;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.masthead-nav a {
  position: relative;
  padding: 0.15rem 0;
  transition: color 200ms ease;
}

.masthead-nav a:hover {
  color: var(--ink);
}

.masthead-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 240ms ease;
}

.masthead-nav a:hover::after { right: 0; }

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.meta-line {
  display: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.meta-cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.meta-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ========================== Mobile nav ========================== */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 220ms ease, background-color 180ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after  { top: 5px; }

.masthead.nav-open .nav-toggle-bars { background: transparent; }
.masthead.nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.masthead.nav-open .nav-toggle-bars::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 719px) {
  .masthead.nav-open .masthead-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.4rem 1.2rem 0.9rem;
    box-shadow: 0 14px 26px -20px rgba(13, 13, 12, 0.55);
  }

  .masthead.nav-open .masthead-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--hairline-2);
    font-size: 0.8rem;
  }

  .masthead.nav-open .masthead-nav a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: none; }
}

/* ========================== Buttons ========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.4rem;
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-solid:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-link {
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-link span:last-child {
  transition: transform 220ms ease;
}

.btn-link:hover span:last-child {
  transform: translateX(4px);
}

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

.hero {
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.tag-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 65, 14, 0.14);
}

.tag-mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.tag-mic svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 1;
}

.tag-mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: tagPulse 2.4s ease-out infinite;
}

@keyframes tagPulse {
  0%   { transform: scale(0.55); opacity: 0.55; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-mic-pulse { animation: none; opacity: 0.35; transform: scale(1); }
}

.tag-sep { opacity: 0.5; }

/* Decorative voice mark anchored top-right of hero */
.hero-mark {
  position: absolute;
  top: 2.8rem;
  right: -1.5rem;
  width: 140px;
  height: 140px;
  color: var(--ink);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 720px) {
  .hero-mark { width: 200px; height: 200px; top: 3.2rem; right: 0; opacity: 0.2; }
}

@media (min-width: 1080px) {
  .hero-mark { width: 240px; height: 240px; top: 3.5rem; right: 1rem; opacity: 0.22; }
}

@media (max-width: 520px) {
  .hero-mark { display: none; }
}

.hero-mark .vpm-rings {
  transform-origin: 110px 110px;
  animation: markRings 4.8s ease-in-out infinite;
}

.hero-mark .vpm-wave {
  animation: markWave 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes markRings {
  0%, 100% { transform: scale(0.96); opacity: 0.95; }
  50%      { transform: scale(1.04); opacity: 1; }
}

@keyframes markWave {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark .vpm-rings,
  .hero-mark .vpm-wave { animation: none; }
}

.hero > * { position: relative; z-index: 1; }
.hero-mark { z-index: 0; }

.hero-visual {
  margin-top: 2rem;
}

.hero-visual picture {
  display: block;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3.5rem;
    align-items: center;
  }
  .hero-body { align-self: center; }
  .hero-visual { margin-top: 0; }
  .hero-mark { display: none; }
  .hero-stats { grid-column: 1 / -1; }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--accent-ink);
}

.hero-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-top: 0.75rem;
  line-height: 1.35;
  max-width: none;
}

.hero-deck {
  margin-top: 1.1rem;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
}

.hero-trust {
  margin-top: 1.4rem;
  max-width: 58ch;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-stats {
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
}

.hero-stats > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}

/* ========================== Section scaffolding ========================== */

.section {
  padding: 2.8rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 0.6rem;
  max-width: 56ch;
  margin-bottom: 1.6rem;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-n {
  color: var(--accent);
  font-weight: 500;
}

.section-rule {
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: var(--rule);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 60, "SOFT" 40;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}

.section-deck {
  max-width: 64ch;
  margin: -0.8rem 0 1.4rem;
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ========================== How it works (process strip) ========================== */

.howto {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.howto-step {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}

.howto-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.3rem;
}

.howto-n {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.howto-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.howto-text {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 42ch;
}

.trustbar {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.trustbar-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.trustbar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trustbar-items li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: var(--paper-soft);
}

/* ========================== Thesis (01) ========================== */

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--hairline);
}

.thesis-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 32ch;
}

.thesis-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.thesis-list li:last-child { border-bottom: 1px solid var(--hairline); }

.thesis-list strong {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  margin-right: 0.4rem;
}

.outcomes {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.outcome {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.outcome-metric {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.outcome-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.outcome-body {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 42ch;
}

/* ========================== Operation (02) ========================== */

.op-diagram {
  margin: 0 0 2.4rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}

.op-diagram picture {
  display: block;
}

.op-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.opsteps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.opstep {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  transition: background-color 220ms ease, padding-left 220ms ease;
}

.opstep:hover {
  background: rgba(13, 13, 12, 0.025);
  padding-left: 0.6rem;
}

.opstep-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding-top: 0.45rem;
}

.opstep-n {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.opstep-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.opstep-icon svg { width: 16px; height: 16px; }

.opstep-icon-mic { color: var(--accent); border-color: rgba(184, 65, 14, 0.35); }

.opstep:hover .opstep-icon { transform: translateY(-1px); }
.opstep:hover .opstep-icon-sparkle { color: var(--accent); border-color: rgba(184, 65, 14, 0.35); }

.opstep h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.opstep p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 68ch;
}

/* ========================== Fit (03) ========================== */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.fit-col {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.fit-col-alt {
  border-bottom: 0;
}

.fit-visual {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.fit-mode {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.fit-col h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  max-width: 22ch;
}

.fit-col p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 46ch;
}

.fit-bullets {
  margin: 0.9rem 0 1rem;
}

.fit-bullets li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-top: 1px solid var(--hairline);
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.fit-bullets li:last-child { border-bottom: 1px solid var(--hairline); }

.fit-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--accent);
  font-family: var(--mono);
}

/* ========================== Governance (04) ========================== */

.gov-table {
  margin: 0;
  border-top: 2px solid var(--rule);
}

.gov-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 200ms ease;
}

.gov-row:hover { background: rgba(13, 13, 12, 0.025); }

.gov-row dt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.gov-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 70ch;
}

/* ========================== Insights (05) ========================== */

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 1.4rem;
}

.insight {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 0.55rem;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.insight-rule {
  flex: 0 0 1.2rem;
  height: 1px;
  background: var(--hairline);
}

.insight-cat {
  margin-left: auto;
  color: var(--accent);
}

.insight-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  max-width: 60ch;
}

.insight-title a {
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

.insight-title a:hover {
  border-bottom-color: var(--ink);
}

.insight-body {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 70ch;
}

.insight-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.insight-link:hover { color: var(--accent-ink); }

@media (min-width: 760px) {
  .insights-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.4rem;
  }
}

/* ========================== Engagement (06) ========================== */

.engage-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.engage-path li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.4rem;
  align-items: baseline;
}

.engage-n {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
}

.engage-path h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.engage-path p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}

/* ========================== Contact ========================== */

.contact-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.contact-copy .kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.contact-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.contact-copy p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 38ch;
  margin-bottom: 0.5rem;
}

.contact-email a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

.contact-email a:hover { color: var(--accent); border-color: var(--accent); }

/* ========================== Form ========================== */

.lead {
  padding: 0.9rem 1.1rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
}

.lead label {
  display: block;
  margin-top: 0.5rem;
}

.lead label:first-child,
.lead-row > label,
.lead-row-3 > label {
  margin-top: 0;
}

.lead-row {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lead-row:first-child { margin-top: 0; }

.lead-row-3 {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  grid-template-columns: 1fr 1fr 1fr;
}

.lead span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.lead input,
.lead select,
.lead textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.4rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 200ms ease;
}

.lead select {
  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) 50%,
    calc(100% - 8px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.6rem;
}

.lead textarea {
  resize: vertical;
  min-height: 4rem;
  padding-top: 0.5rem;
  border: 1px solid var(--rule);
  padding: 0.5rem;
}

.lead input:focus,
.lead select:focus,
.lead textarea:focus {
  border-color: var(--accent);
}

.lead-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

.lead-captcha { margin-top: 1.2rem; }

.lead-status {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.lead-status-success { color: #1f5a2c; }
.lead-status-error { color: var(--accent-ink); }

/* ========================== Colophon (footer) ========================== */

.colophon {
  border-top: 2px solid var(--rule);
  background: var(--paper);
  padding: 2rem 0 1.2rem;
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-bottom: 1.4rem;
}

.colophon .brand-text { display: block; margin-bottom: 0.9rem; }

.colophon-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 38ch;
}

.colophon-cols {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.colophon-cols > div { display: flex; flex-direction: column; gap: 0.55rem; }

.colophon-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.colophon-cols a {
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  width: max-content;
  padding-bottom: 1px;
  transition: border-color 200ms ease, color 200ms ease;
}

.colophon-cols a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.colophon-base {
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.colophon-mark {
  letter-spacing: 0.22em;
}

/* ========================== Reveal animations ========================== */

/* Content is visible by default; the reveal only applies when motion is welcome,
   so a missed animation can never leave a section stuck at opacity:0. */
@media (prefers-reduced-motion: no-preference) {
  .section, .hero {
    animation: rise 700ms ease both;
  }

  .hero { animation-delay: 60ms; }
  #thesis { animation-delay: 100ms; }
  #operation { animation-delay: 140ms; }
  #fit { animation-delay: 180ms; }
  #governance { animation-delay: 220ms; }
  #engage { animation-delay: 260ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (min-width: 720px) {
  .masthead-nav { display: inline-flex; }
  .meta-line { display: inline; }
  .nav-toggle { display: none; }

  .howto { grid-template-columns: repeat(4, 1fr); }

  .howto-step {
    border-bottom: 0;
    border-left: 1px solid var(--hairline);
    padding: 0.1rem 1.4rem 0;
  }

  .howto-step:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .howto-text { max-width: 24ch; }

  .thesis-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }

  .outcomes {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

  .outcome { padding: 1.1rem 0; }

  .fit-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }

  .fit-col,
  .fit-col-alt {
    padding: 1.4rem 0;
    border-bottom: 0;
  }

  .gov-row {
    grid-template-columns: 14rem 1fr;
    gap: 3rem;
  }

  .engage-path li {
    grid-template-columns: 5rem 16rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }

  .engage-path p { padding-top: 0.1rem; }

  .contact-block {
    grid-template-columns: 0.8fr 1fr;
    gap: 2.5rem;
  }

  .lead-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }

  .lead-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

  .hero-stats > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.7rem 0;
  }
}

@media (min-width: 1080px) {
  .outcomes { grid-template-columns: repeat(4, 1fr); column-gap: 2.2rem; }
  .colophon-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-stats dd { font-size: 1rem; }
}

/* ========================== Selection ========================== */

::selection {
  background: var(--accent);
  color: var(--paper);
}
