:root {
  /* Palette C — Operator Warm */
  --bg-primary: #F7F4ED;
  --bg-elevated: #FCFAF4;
  --bg-dark: #1A1A1A;
  --bg-dark-elevated: #232220;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C58;
  --text-tertiary: #888780;
  --text-on-dark: #F4F1E8;
  --text-on-dark-secondary: rgba(244, 241, 232, 0.7);
  --text-on-dark-tertiary: rgba(244, 241, 232, 0.5);
  --accent: #E85D2C;
  --accent-hover: #C94D1F;
  --accent-soft: rgba(232, 93, 44, 0.12);
  --border: rgba(26, 26, 26, 0.12);
  --border-strong: rgba(26, 26, 26, 0.22);
  --border-dark: rgba(244, 241, 232, 0.14);
  --border-dark-strong: rgba(244, 241, 232, 0.28);

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

  --container-w: 1120px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 237, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 0.5px solid var(--border);
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { display: block; }
.nav-links {
  display: flex;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.78;
  transition: opacity 0.15s, color 0.15s;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent); color: #FFFFFF; }

/* ===== Sections ===== */
section { padding: 128px 0; }
section.dark-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.hero { padding: 96px 0 88px; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin: 0 0 28px;
  letter-spacing: 0;
  font-weight: 400;
}
.dark-section .eyebrow { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.04;
  margin: 0 0 28px;
  max-width: 880px;
  font-weight: 500;
}
section h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 0 28px;
  font-weight: 500;
}
section h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.subhead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 0 40px;
  line-height: 1.55;
  font-weight: 400;
}
.dark-section .subhead { color: var(--text-on-dark-secondary); }
.hero .subhead { font-size: 21px; max-width: 660px; }

/* ===== Prose ===== */
.prose { max-width: var(--container-narrow); margin: 0 0 56px; }
.prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0 0 22px;
}
.prose p:last-child { margin-bottom: 0; }
.dark-section .prose p { color: var(--text-on-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  border: 0.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-primary); }
.btn-large { padding: 15px 26px; font-size: 16px; }
.dark-section .btn-ghost { color: var(--text-on-dark); border-color: var(--border-dark-strong); }
.dark-section .btn-ghost:hover { border-color: var(--text-on-dark); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Feature row (light) ===== */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 24px;
}
.feature-mark { width: 32px; height: 32px; color: var(--accent); margin-bottom: 18px; }
.feature p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ===== Engine blocks (dark) ===== */
.engine-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}
.engine-block {
  background: rgba(255, 255, 255, 0.025);
  border: 0.5px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: border-color 0.2s, background 0.2s;
}
.engine-block:hover {
  border-color: var(--border-dark-strong);
  background: rgba(255, 255, 255, 0.04);
}
.engine-block .engine-mark { width: 32px; height: 32px; color: var(--accent); margin-bottom: 22px; }
.engine-block h3 { color: var(--text-on-dark); font-size: 20px; }
.engine-block p { font-size: 14.5px; color: var(--text-on-dark-secondary); line-height: 1.55; margin: 0; }

.tease { max-width: var(--container-narrow); padding-top: 36px; border-top: 0.5px solid var(--border-dark); }
.tease p {
  font-size: 17px;
  color: var(--text-on-dark);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ===== Trust marks ===== */
.trust-marks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.trust-mark {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 8px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  background: var(--bg-elevated);
}

/* ===== Form ===== */
.lead-form { max-width: 640px; margin-top: 28px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-row { margin-bottom: 22px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.field .req { color: var(--accent); font-weight: 500; }
.field .optional { font-weight: 400; color: var(--text-tertiary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; font-family: var(--font-sans); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not(:placeholder-shown) { border-color: rgba(232, 93, 44, 0.5); }

.turnstile-row { min-height: 65px; }
.form-note { font-size: 12px; color: var(--text-tertiary); margin: 14px 0 0; }

.confirmation {
  background: var(--bg-elevated);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 640px;
  margin-top: 28px;
}
.confirmation h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.confirmation p { font-size: 16px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 14px;
  background: rgba(232, 93, 44, 0.08);
  border: 0.5px solid rgba(232, 93, 44, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.form-error a { color: var(--accent); }

/* ===== Footer ===== */
footer {
  padding: 56px 0 44px;
  border-top: 0.5px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--text-tertiary); }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-meta a, .footer-copy a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-meta a:hover, .footer-copy a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-tertiary); justify-self: end; }

/* ===== Motion ===== */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  section { padding: 88px 0; }
  .hero { padding: 72px 0 56px; }
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .engine-blocks { grid-template-columns: 1fr; gap: 12px; }
  .form-row.two-col { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { justify-content: flex-start; }
  .footer-copy { justify-self: start; }
  .hero h1 br { display: none; }
  section h2 br { display: none; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  section h2 { font-size: clamp(28px, 7vw, 38px); }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
}
