:root {
  --bg: #ede7db;
  --bg-strong: #d8cfbd;
  --surface: rgba(255, 250, 241, 0.86);
  --surface-strong: #fff9ef;
  --ink: #0f1720;
  --muted: #5d625d;
  --line: rgba(15, 23, 32, 0.12);
  --accent: #0d5c63;
  --accent-2: #d95d39;
  --accent-3: #f2c14e;
  --shadow: 0 18px 50px rgba(15, 23, 32, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 93, 57, 0.16), transparent 30%),
    radial-gradient(circle at right 10%, rgba(13, 92, 99, 0.18), transparent 30%),
    linear-gradient(180deg, #f5efe2 0%, var(--bg) 58%, #e2d7c7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 32, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 32, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 85%);
}

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 0 0 7px rgba(217, 93, 57, 0.12);
}

.topbar-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  min-height: 74vh;
  padding: 28px 0 56px;
}

.hero-copy,
.hero-card,
.editorial-card,
.pillar-card,
.proof-card,
.embed-card,
.include-card,
.outcome-card,
.process-grid article,
.lead-form,
.cta-panel,
.narrative-grid article {
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 34px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3,
legend {
  margin: 0;
  line-height: 0.96;
}

h1,
h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.9rem, 9vw, 7.8rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 13ch;
}

h3,
legend {
  font-size: 1.15rem;
}

.hero-text,
.section p,
.field label,
.field input,
.field textarea,
.field select,
.radio-group label,
.form-note,
li {
  line-height: 1.6;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: #fff8ee;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-proof strong,
.hero-card-label,
.stat-number,
.pillar-card span,
.process-grid span {
  display: block;
  font-weight: 700;
}

.hero-proof span,
.stat-label,
.form-note {
  color: var(--muted);
}

.hero-card {
  align-self: end;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.94), rgba(255, 249, 239, 0.72));
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.outcome-list,
.fit-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mini-stat-grid > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stat-number {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.section {
  padding: 58px 0;
}

.proof-section {
  padding-top: 8px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading.narrow,
.section-heading.light {
  display: block;
}

.pillar-grid,
.proof-grid,
.embed-grid,
.include-grid,
.outcome-grid,
.fit-grid,
.process-grid,
.apply-section {
  display: grid;
  gap: 20px;
}

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

.embed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

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

.editorial-card,
.pillar-card,
.proof-card,
.embed-card,
.include-card,
.outcome-card,
.process-grid article,
.cta-panel,
.narrative-grid article {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.pillar-grid,
.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar-card span,
.include-card span,
.process-grid span {
  margin-bottom: 26px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
}

.embed-card {
  padding: 14px;
  overflow: hidden;
}

.embed-card iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 18px;
}

.outcome-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-panel {
  text-align: center;
  padding: 42px 28px;
}

.cta-panel h2 {
  max-width: 12ch;
  margin: 0 auto;
}

.cta-panel .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.dark-panel {
  position: relative;
  overflow: hidden;
  color: #fff8ee;
  background:
    radial-gradient(circle at top right, rgba(242, 193, 78, 0.18), transparent 30%),
    linear-gradient(135deg, #0f1720, #183840);
  border-radius: 36px;
  padding: 54px 32px;
}

.dark-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -40% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(242, 193, 78, 0.08);
}

.light .eyebrow,
.dark-panel p,
.dark-panel li {
  color: rgba(255, 248, 238, 0.84);
}

.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.process-section {
  padding-bottom: 78px;
}

.apply-section {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.apply-copy {
  position: sticky;
  top: 20px;
}

.lead-form {
  background: rgba(255, 249, 239, 0.94);
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.field,
.radio-group {
  margin-bottom: 18px;
}

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

.field label,
.radio-group legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(13, 92, 99, 0.22);
  border-color: rgba(13, 92, 99, 0.42);
}

.radio-group {
  padding: 0;
  border: none;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.submit-button {
  width: 100%;
  margin-top: 8px;
  border: none;
}

.thank-you-page {
  min-height: 82vh;
  display: grid;
  place-items: center;
}

.thank-you-card {
  width: min(100%, 760px);
  padding: 42px;
  background: rgba(255, 249, 239, 0.94);
  border: 1px solid rgba(15, 23, 32, 0.08);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.thank-you-card h1 {
  max-width: none;
  font-size: clamp(3rem, 10vw, 5.4rem);
}

.error-text {
  display: none;
  margin-top: 6px;
  color: #b42318;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: rgba(180, 35, 24, 0.45);
  background: rgba(255, 241, 239, 0.92);
}

.field.invalid .error-text {
  display: block;
}

.form-success {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero,
  .apply-section,
  .fit-grid,
  .proof-grid,
  .embed-grid,
  .include-grid,
  .outcome-grid,
  .pillar-grid,
  .process-grid,
  .field-grid,
  .hero-proof,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .apply-copy {
    position: static;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    padding-bottom: 18px;
  }

  .hero,
  .section {
    padding: 28px 0;
  }

  .hero-card,
  .editorial-card,
  .pillar-card,
  .proof-card,
  .embed-card,
  .include-card,
  .outcome-card,
  .process-grid article,
  .cta-panel,
  .narrative-grid article,
  .lead-form {
    padding: 22px;
    border-radius: 22px;
  }

  .dark-panel {
    padding: 32px 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }
}
