:root {
  --ink: #1C1F22;
  --ink-2: #2C3136;
  --ink-3: #3A4046;
  --paper: #F4F1EA;
  --paper-2: #E7E2D6;
  --white: #FFFCF7;
  --contrast: #E4572E;
  --contrast-ink: #1C1F22;
  --on-contrast: #FFFCF7;
  --good: #2F6F4E;
  --warn: #B45309;
  --line: rgba(28, 31, 34, 0.12);
  --line-strong: rgba(28, 31, 34, 0.22);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --gutter: 24px;
  --max: 1152px;
  --display: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: var(--contrast); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--contrast);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--contrast);
  color: var(--on-contrast);
  padding: 8px 16px;
  z-index: 100;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.nav-row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img { width: 32px; height: 32px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-desktop a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--contrast);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--contrast); color: var(--on-contrast); }
.btn-primary:hover { background: #c94622; color: var(--on-contrast); }
.btn-ghost {
  background: transparent;
  color: var(--on-contrast);
  border-color: rgba(255, 252, 247, 0.32);
}
.btn-ghost:hover { background: rgba(255, 252, 247, 0.08); color: var(--on-contrast); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-panel {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--ink-2);
  padding: 32px 24px;
  z-index: 30;
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.25;
  padding: 8px 0;
}
.nav-panel .btn { margin-top: 24px; width: 100%; }

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 34, 0.24) 0%, rgba(28, 31, 34, 0.72) 100%);
}
.hero-copy {
  position: relative;
  padding: 64px 0;
  max-width: 720px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
.lede { font-size: 18px; max-width: 68ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.fine { font-size: 14px; opacity: 0.82; margin-top: 24px; }

.section { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
  background: var(--ink-2);
  color: var(--white);
}
.section-head { max-width: 68ch; margin-bottom: 32px; }
.muted { color: var(--ink-3); }
.section-dark .muted { color: rgba(255, 252, 247, 0.72); }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 24px;
}
.card {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--line);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: -32px -32px 24px; width: calc(100% + 64px); max-width: none; }
.icon-row { width: 32px; height: 32px; margin-bottom: 16px; color: var(--ink); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { padding: 0 0 32px 32px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.step-num {
  position: absolute;
  left: -16px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--contrast);
  color: var(--on-contrast);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
  border-radius: 2px;
}
textarea { min-height: 128px; padding: 16px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
}
.chip[aria-pressed="true"],
.chip.is-on {
  background: var(--contrast);
  color: var(--on-contrast);
  border-color: var(--contrast);
}
.help { font-size: 14px; color: var(--ink-3); }
.error { color: var(--warn); font-size: 14px; }
.form-status[hidden] { display: none; }
.form-status.ok { color: var(--good); }

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 32px;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-legal {
  border-top: 1px solid rgba(255, 252, 247, 0.16);
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255, 252, 247, 0.72);
}
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 24px; }

.page-hero { padding: 64px 0 32px; }
.caption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

.assistant {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}
.assistant-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.assistant-panel {
  display: none;
  width: min(320px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line-strong);
  margin-bottom: 8px;
  padding: 16px;
  box-shadow: 0 16px 32px rgba(28, 31, 34, 0.16);
}
.assistant-panel.open { display: block; }
.assistant-log {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.assistant-log .bot { color: var(--ink); }
.assistant-log .you { color: var(--ink-3); }
.assistant form { display: flex; gap: 8px; }
.assistant input { min-height: 40px; }
.assistant button { min-height: 40px; padding: 0 16px; }

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  h1 { font-size: 48px; }
  .hero { min-height: 640px; }
  .section { padding: 96px 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  h1 { font-size: 64px; }
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
