:root {
  --bg: #101720;
  --bg-soft: #172233;
  --surface: rgba(244, 238, 229, 0.96);
  --surface-strong: rgba(251, 247, 241, 0.98);
  --surface-tint: rgba(233, 220, 199, 0.96);
  --surface-dark: rgba(23, 33, 49, 0.96);
  --surface-dark-strong: rgba(17, 24, 37, 0.98);
  --text: #121820;
  --text-muted: #4d5662;
  --text-light: rgba(243, 239, 233, 0.9);
  --line: rgba(19, 27, 40, 0.12);
  --line-light: rgba(245, 240, 234, 0.12);
  --brand: #c86c41;
  --brand-strong: #a84b2b;
  --accent: #7ea6b8;
  --accent-strong: #4d7182;
  --danger: #8f5237;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-lg: 0 36px 80px rgba(4, 8, 15, 0.28);
  --shadow-md: 0 20px 45px rgba(8, 13, 21, 0.18);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 14%, rgba(126, 166, 184, 0.14), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(200, 108, 65, 0.17), transparent 24%),
    linear-gradient(180deg, #111824 0%, #162131 44%, #0f1722 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  padding: 0.12em 0.35em;
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.09);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.95em;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.site-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.28;
}

.site-glow--left {
  top: 120px;
  left: -180px;
  background: rgba(200, 108, 65, 0.45);
}

.site-glow--right {
  top: 320px;
  right: -180px;
  background: rgba(126, 166, 184, 0.35);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 26, 0.78);
  backdrop-filter: blur(18px);
}

.topbar__inner,
.hero,
.section-frame,
.article-nav,
.footer__inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #f8f1e9;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--brand), #efb57d);
  color: #fff8f2;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__lockup {
  display: grid;
  gap: 2px;
}

.brand__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 241, 233, 0.62);
}

.brand__text {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.12rem;
  line-height: 1.05;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav a,
.topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a {
  border: 1px solid transparent;
  color: rgba(248, 241, 233, 0.76);
}

.nav a:hover,
.nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(248, 241, 233, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8f2;
}

.topbar__cta {
  border: 1px solid rgba(248, 241, 233, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8f2;
  font-weight: 700;
}

.topbar__cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  gap: 22px;
  padding: 34px 0 14px;
}

.hero__main,
.board,
.story-card,
.split-panel,
.topic-card,
.process-step,
.summary-card,
.form-card,
.legal-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero__main,
.board,
.story-card,
.split-panel,
.topic-card,
.process-step,
.summary-card,
.form-card,
.legal-card,
.section-frame {
  border-radius: var(--radius-xl);
}

.masthead,
.section-frame,
.board,
.story-card,
.split-panel,
.topic-card,
.process-step,
.summary-card,
.form-card,
.legal-card {
  background: var(--surface);
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 166, 184, 0.2), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(200, 108, 65, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(247, 241, 232, 0.98), rgba(237, 225, 208, 0.96));
}

.masthead::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 166, 184, 0.32), transparent 68%);
}

.masthead--article {
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 166, 184, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(247, 241, 232, 0.98), rgba(230, 219, 202, 0.96));
}

.hero__aside {
  display: grid;
  gap: 18px;
}

.hero__eyebrow-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading__eyebrow,
.board__label,
.split-panel__eyebrow,
.topic-card__eyebrow,
.article-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading__eyebrow::before,
.board__label::before,
.split-panel__eyebrow::before,
.topic-card__eyebrow::before,
.article-nav__label::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section-heading__eyebrow,
.board__label,
.split-panel__eyebrow,
.topic-card__eyebrow {
  color: var(--brand-strong);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 23, 32, 0.08);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 3.1vw, 3.3rem);
}

h3 {
  font-size: 1.42rem;
}

p {
  margin: 0 0 12px;
}

.hero__lead,
.hero__paragraph,
.section-heading__intro,
.section-copy,
.story-card p,
.split-panel p,
.topic-card p,
.summary-card p,
.form-note,
.form-contact,
.status,
.footer__meta p,
.legal-card p {
  color: var(--text-muted);
}

.hero__lead {
  max-width: 58ch;
  font-size: 1.16rem;
}

.hero__copy {
  max-width: 63ch;
}

.hero__paragraph {
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff8f2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(168, 75, 43, 0.24);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button--secondary {
  border: 1px solid rgba(16, 23, 32, 0.14);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
  box-shadow: none;
}

.board {
  padding: 26px;
}

.board--warm {
  background:
    linear-gradient(180deg, rgba(251, 247, 241, 0.98), rgba(241, 231, 217, 0.98));
}

.board--dark,
.section-frame--dark {
  background:
    linear-gradient(180deg, rgba(27, 37, 53, 0.98), rgba(17, 24, 37, 0.98));
  border-color: rgba(248, 241, 233, 0.08);
}

.board--dark,
.board--dark p,
.board--dark li,
.board--dark strong,
.section-frame--dark,
.section-frame--dark h2,
.section-frame--dark h3,
.section-frame--dark p,
.section-frame--dark li,
.section-frame--dark a {
  color: var(--text-light);
}

.board__cluster + .board__cluster,
.legal-card__subsection + .legal-card__subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.copy-list li {
  position: relative;
  padding-left: 18px;
}

.copy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #efb57d);
}

.copy-list--light li::before {
  background: rgba(248, 241, 233, 0.9);
}

.statement {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(16, 23, 32, 0.08);
  border: 1px solid rgba(16, 23, 32, 0.08);
}

.statement__text {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.06rem;
}

.section-band {
  padding: 18px 0;
}

.section-band--form {
  padding-bottom: 26px;
}

.section-frame {
  padding: 34px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading__intro {
  max-width: 62ch;
  font-size: 1.02rem;
}

.card-grid,
.topic-grid,
.split-grid,
.process-grid,
.legal-layout {
  display: grid;
  gap: 18px;
}

.card-grid,
.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3,
.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.split-panel,
.topic-card,
.process-step,
.summary-card,
.legal-card {
  padding: 24px;
  min-height: 100%;
}

.story-card {
  background: rgba(255, 252, 247, 0.88);
}

.story-card--danger {
  background: linear-gradient(180deg, rgba(62, 45, 39, 0.92), rgba(43, 33, 31, 0.94));
  border-color: rgba(255, 237, 229, 0.08);
}

.story-card--danger,
.story-card--danger p,
.story-card--danger li,
.story-card--danger h3 {
  color: rgba(249, 242, 237, 0.92);
}

.story-card--danger .copy-list li::before {
  background: rgba(249, 242, 237, 0.92);
}

.story-card--faq {
  background: rgba(247, 243, 236, 0.94);
}

.story-card--tint,
.split-panel--tint {
  background: rgba(235, 225, 208, 0.9);
}

.topic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(251, 247, 241, 0.98), rgba(236, 227, 213, 0.94));
  transition: transform 160ms ease, border-color 160ms ease;
}

.topic-card strong {
  font-size: 1.3rem;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 75, 43, 0.24);
}

.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: rgba(250, 246, 239, 0.94);
}

.process-step__index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200, 108, 65, 0.18), rgba(126, 166, 184, 0.3));
  color: var(--brand-strong);
  font-weight: 800;
}

.split-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  background: rgba(249, 245, 237, 0.94);
}

.article-nav {
  display: grid;
  gap: 14px;
  padding: 12px 0 6px;
}

.article-nav__label {
  color: rgba(248, 241, 233, 0.72);
}

.article-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(248, 241, 233, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 241, 233, 0.8);
  transition: transform 160ms ease, background 160ms ease;
}

.article-nav__links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.section-stack {
  display: grid;
  gap: 16px;
}

.summary-card {
  background: rgba(252, 248, 241, 0.94);
}

.section-frame--dark .summary-card,
.section-frame--dark .process-step {
  background: rgba(246, 241, 234, 0.08);
  border-color: rgba(248, 241, 233, 0.08);
}

.section-frame--dark .process-step__index {
  background: rgba(248, 241, 233, 0.1);
  color: rgba(248, 241, 233, 0.88);
}

.section-frame--dark .story-card,
.section-frame--dark .split-panel,
.section-frame--dark .topic-card {
  background: rgba(246, 241, 234, 0.08);
  border-color: rgba(248, 241, 233, 0.08);
}

.section-frame--dark .section-heading__eyebrow,
.section-frame--dark .topic-card__eyebrow {
  color: rgba(248, 241, 233, 0.72);
}

.section-frame--dark .story-card--tint {
  background: rgba(246, 241, 234, 0.14);
}

.section-frame--dark .copy-list li::before {
  background: rgba(248, 241, 233, 0.9);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.form-shell__intro {
  padding-right: 20px;
}

.form-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(251, 247, 241, 0.99), rgba(238, 228, 212, 0.98));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 23, 32, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 146px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note,
.form-contact,
.status {
  font-size: 0.93rem;
}

.status {
  min-height: 22px;
  margin-top: 10px;
}

.status--ok {
  color: #2f6e54;
}

.status--error {
  color: var(--brand-strong);
}

.legal-layout {
  grid-template-columns: 1fr;
}

.legal-card__subsection h3 {
  margin-top: 0;
}

.footer {
  padding: 14px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 241, 233, 0.1);
}

.footer__meta,
.footer__links a {
  color: rgba(248, 241, 233, 0.78);
}

.footer__meta strong {
  color: #fff8f2;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.masthead,
.board,
.section-frame,
.story-card,
.split-panel,
.topic-card,
.process-step,
.summary-card,
.form-card,
.legal-card {
  animation: riseIn 420ms ease both;
}

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

@media (max-width: 1120px) {
  .topbar__inner {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .form-shell,
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .topic-grid,
  .split-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar__inner,
  .hero,
  .section-frame,
  .article-nav,
  .footer__inner {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .masthead,
  .section-frame,
  .board,
  .story-card,
  .split-panel,
  .topic-card,
  .process-step,
  .summary-card,
  .form-card,
  .legal-card {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .topbar__cta {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 1fr;
  }
}
