:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6b76;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --line: #d8d2c5;
  --blue: #244c6d;
  --green: #2f765f;
  --gold: #c28a35;
  --dark: #101820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 33, 43, 0.12);
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 6vw, 76px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 72px) clamp(40px, 7vw, 88px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.lede {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
}

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

.button.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

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

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.button.light {
  border-color: white;
  color: var(--dark);
  background: white;
}

.hero-panel {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-panel > div {
  padding: 24px;
  background: var(--surface);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.35;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
}

.preview-section {
  background: #fffdfa;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.intake-form {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(47, 118, 95, 0.22);
  border-color: var(--green);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-actions .button {
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preview-card {
  padding: 28px;
  color: white;
  background: var(--blue);
}

.preview-card .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.mini-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-steps li {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.mini-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-steps strong,
.mini-steps span {
  display: block;
}

.mini-steps strong {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.mini-steps span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.service p,
.contact-band p {
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 84px);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 54px;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--green);
  content: counter(step);
  font-weight: 850;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.steps span {
  color: var(--muted);
  line-height: 1.6;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 72px);
  color: white;
  background: var(--dark);
}

.contact-band .eyebrow,
.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-band h2 {
  max-width: 740px;
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .preview-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4rem);
  }

  .button {
    width: 100%;
  }
}
