:root {
  color-scheme: dark;
  --ink: #0f2744;
  --ink-soft: #151a1c;
  --ink-raised: #1c2225;
  --ivory: #faf9f5;
  --paper: #fffdf8;
  --paper-ink: #2b2b2b;
  --muted-dark: #b8b8b3;
  --muted-light: #62605b;
  --gold: #c9a962;
  --gold-light: #ddb96f;
  --line-dark: #3f4648;
  --line-light: #d7cec0;
  --danger: #f2a6a6;
  --display: "Playfair Display", Georgia, serif;
  --body: Montserrat, Arial, sans-serif;
  --content: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--gold-light);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: 4px;
}

.section-light :focus-visible {
  outline-color: var(--ink);
}

.legal-page main :focus-visible {
  outline-color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--ivory);
  color: var(--ink);
}

.skip-link:focus {
  top: 0.75rem;
}

.preview-banner {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.5rem var(--gutter);
  background: var(--gold);
  color: #111;
  font-size: 0.82rem;
  letter-spacing: 0.015em;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (2 * var(--gutter)), var(--content));
  min-height: 94px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(200, 152, 66, 0.72);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-height: auto;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span:last-child {
  color: var(--gold-light);
  font-family: var(--body);
  font-size: 0.58em;
  letter-spacing: 0.24em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 3.25rem);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory);
  font-size: 0.93rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 48px;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  width: min(100% - (2 * var(--gutter)), var(--content));
  min-height: min(720px, calc(100vh - 120px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.9rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-light .section-kicker {
  color: #765515;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5vw, 4.75rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.gold-rule {
  width: 56px;
  height: 3px;
  margin: 0 0 1.8rem;
  background: var(--gold);
}

.hero-lede {
  max-width: 570px;
  margin-bottom: 2rem;
  color: #deddd7;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 1px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button-outline {
  color: var(--gold-light);
}

.button-outline:hover,
.button-solid {
  background: var(--gold);
  color: #101214;
}

.button-solid:hover {
  background: var(--gold-light);
  color: #101214;
}

.legal-identity {
  margin: 2.25rem 0 0;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.hero-art {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  overflow: hidden;
}

.hero-art img {
  width: min(100%, 520px);
  opacity: 0.72;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 82%);
}

.section-inner {
  width: min(100% - (2 * var(--gutter)), var(--content));
  margin: 0 auto;
}

.section-light {
  padding: var(--section-space) 0;
  background: var(--ivory);
  color: var(--paper-ink);
}

.services h2 {
  max-width: none;
}

.section-intro {
  max-width: 720px;
  color: var(--muted-light);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.service-item {
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(200, 152, 66, 0.6);
}

.service-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.service-item:last-child {
  padding-right: 0;
}

.service-item p {
  margin-bottom: 0;
  color: var(--muted-light);
}

.service-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.offer-note {
  max-width: 920px;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(200, 152, 66, 0.58);
  background: rgba(200, 152, 66, 0.08);
  color: #4c4943;
}

.fit-section {
  padding: var(--section-space) 0;
  border-bottom: 1px solid rgba(200, 152, 66, 0.65);
  background: var(--ink-soft);
}

.fit-section h2 {
  max-width: 15ch;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.fit-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(200, 152, 66, 0.58);
  background: rgba(13, 17, 19, 0.55);
}

.fit-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.45rem;
  border-top: 1px solid var(--line-dark);
  color: #d7d6d1;
}

.fit-list li::before {
  position: absolute;
  top: 0.95rem;
  left: 0;
  color: var(--gold-light);
  content: "—";
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.process-step {
  padding-top: 1.4rem;
  border-top: 2px solid var(--gold);
}

.process-number {
  margin-bottom: 1.2rem;
  color: #8a6827;
  font-family: var(--display);
  font-size: 1.1rem;
}

.process-step p:not(.process-number) {
  color: var(--muted-light);
}

.process-note {
  max-width: 850px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  color: var(--muted-light);
}

.contact-section {
  padding: var(--section-space) 0;
  border-bottom: 1px solid rgba(200, 152, 66, 0.65);
  background: var(--ink);
}

.contact-layout {
  display: block;
}

.contact-heading {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-heading p {
  max-width: 36ch;
  color: var(--muted-dark);
}

.contact-form {
  min-width: 0;
  max-width: 980px;
}

.widget-guidance {
  width: 100%;
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(200, 152, 66, 0.7);
  border-radius: 8px;
  background: var(--ink-soft);
}

.widget-guidance h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.widget-guidance p:not(.program-name),
.widget-guidance noscript {
  display: block;
  max-width: 58ch;
  color: var(--muted-dark);
}

.widget-guidance a {
  color: var(--gold-light);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.field {
  margin-bottom: 1.35rem;
}

.field label,
.consent-group legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.78rem 0.9rem;
  border: 1px solid #818789;
  border-radius: 1px;
  background: var(--ink-soft);
  color: var(--ivory);
  caret-color: var(--gold-light);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--gold-light);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold-light);
}

.field-note {
  margin: 0.4rem 0 0;
  color: var(--muted-dark);
  font-size: 0.82rem;
}

.consent-group {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 1.6rem 0 0;
  border: 0;
  border-top: 1px solid var(--line-dark);
}

.program-name {
  margin: -0.25rem 0 1.25rem;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.2rem;
}

.consent-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-height: 44px;
  margin: 0 0 1.25rem;
  color: #d8d7d2;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.55;
}

.consent-option input {
  width: 24px;
  min-height: 24px;
  margin: 0.2rem 0 0;
  accent-color: var(--gold);
}

.program-number {
  margin: 0.25rem 0 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.program-number a,
.form-legal a,
.messaging-copy a,
.legal-document a,
.site-footer a {
  color: var(--gold-light);
}

.form-legal {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.contact-form .button {
  min-width: 180px;
  cursor: pointer;
}

.contact-options > p:first-child {
  color: var(--ivory);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contact-options a {
  color: var(--gold-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.form-status {
  min-height: 1.8rem;
  margin: 1rem 0 0;
  color: var(--gold-light);
  font-weight: 650;
}

.messaging-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--ink-soft);
}

.messaging-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.messaging-layout h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.messaging-copy {
  color: #d7d6d1;
}

.messaging-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 3.25rem var(--gutter) 2rem;
  background: #090c0d;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 2rem;
  width: min(100%, var(--content));
  margin: 0 auto;
}

.footer-grid > * + * {
  padding-left: 2rem;
  border-left: 1px solid rgba(200, 152, 66, 0.55);
}

.footer-grid strong,
.footer-grid a {
  display: block;
}

.footer-grid strong {
  color: var(--ivory);
}

.footer-grid address,
.legal-document address {
  font-style: normal;
}

.copyright {
  width: min(100%, var(--content));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #272d2f;
  color: #858b8d;
  font-size: 0.78rem;
}

.legal-page {
  background: var(--ivory);
  color: var(--paper-ink);
}

.legal-page .site-header {
  max-width: none;
  width: 100%;
  padding: 0 var(--gutter);
  border-color: rgba(200, 152, 66, 0.68);
  background: var(--ink);
}

.legal-main {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.legal-document {
  width: min(100%, 820px);
  margin: 0 auto;
}

.legal-kicker {
  margin-bottom: 0.75rem;
  color: #80601f;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-document h1 {
  max-width: none;
  margin-bottom: 0.8rem;
  color: var(--paper-ink);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
}

.effective-date {
  margin-bottom: 3rem;
  color: var(--muted-light);
}

.legal-document h2 {
  margin: 2.6rem 0 0.8rem;
  color: var(--paper-ink);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.legal-document p,
.legal-document address {
  color: #43433f;
}

.legal-document a {
  color: #765515;
}

.compact-footer {
  padding-top: 2.75rem;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 78px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav:not(.legal-nav) {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--gold);
    background: var(--ink);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav:not(.legal-nav) a {
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3.75rem;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-art {
    grid-row: 1;
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    right: 0;
    width: 48vw;
    max-width: 430px;
    opacity: 0.3;
    pointer-events: none;
  }

  .hero-art img {
    width: 100%;
  }

  .contact-layout,
  .messaging-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

}

@media (max-width: 700px) {
  .preview-banner {
    flex-direction: column;
    gap: 0;
    line-height: 1.4;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 1rem;
  }

  .brand span:last-child {
    font-size: 0.56rem;
  }

  .hero {
    padding: 4rem 0 4.5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.4rem);
  }

  .hero-lede {
    max-width: 32ch;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-art {
    top: 7rem;
    bottom: 0;
    right: -12vw;
    width: 62vw;
    opacity: 0.32;
  }

  .services h2 {
    max-width: 12ch;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

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

  .service-item,
  .service-item:first-child,
  .service-item:last-child {
    padding: 0 0 2.4rem;
    border: 0;
    border-bottom: 1px solid rgba(200, 152, 66, 0.5);
  }

  .service-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .consent-option {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.85rem;
    font-size: 0.95rem;
  }

  .contact-form .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid > * + * {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(200, 152, 66, 0.55);
    border-left: 0;
  }

  .legal-nav {
    gap: 0.9rem;
  }

  .legal-nav a {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
