* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #F8F4EF;
}

body {
  margin: 0;
  background: #F8F4EF;
  color: #243044;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a:hover {
  text-decoration-color: #C4492C;
}

a:focus-visible {
  outline: 3px solid #C4492C;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: #F6F3EC;
  background: #C4492C;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 1fr);
  grid-template-areas:
    "rail header"
    "rail steps"
    "rail contact";
  min-height: 100vh;
}

.topbar {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid #243044;
}

.topbar__label,
.topbar__nav {
  display: flex;
  align-items: center;
}

.topbar__label {
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #C4492C;
  border-radius: 50%;
}

.topbar__nav {
  gap: clamp(14px, 3vw, 32px);
}

.topbar__nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.topbar__nav a[aria-current="true"] {
  color: #C4492C;
}

.rail {
  grid-area: rail;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  padding: clamp(28px, 4vw, 58px);
  overflow: auto;
  color: #F6F3EC;
  background: #243044;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  color: #F6F3EC;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark__mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.rail__body {
  margin: auto 0;
}

.rail__tagline {
  max-width: 12ch;
  margin: 0 0 34px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  color: #F6F3EC;
  background: #C4492C;
  border: 2px solid #C4492C;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-action:hover {
  color: #C4492C;
  background: #F6F3EC;
}

.rail__contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 22px;
  border-top: 1px solid #F6F3EC;
}

.rail__contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail__contact a {
  width: fit-content;
  font-size: 1.05rem;
  font-weight: 600;
}

.steps {
  grid-area: steps;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 7vw, 104px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.eyebrow,
.field-label {
  margin: 0 0 12px;
  color: #C4492C;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin-top: 0;
  font-family: "DM Sans", sans-serif;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.instruction {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  background: #243044;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 52px);
  padding-bottom: clamp(52px, 7vw, 82px);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: #C4492C;
  border: 3px solid #F8F4EF;
  outline: 2px solid #243044;
  border-radius: 50%;
}

.timeline__content {
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 5px solid #C4492C;
}

.timeline__content h2 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.timeline__content p:not(.field-label) {
  max-width: 54ch;
  margin: 5px 0;
}

.service-line {
  padding: 22px 0;
  border-top: 1px solid #243044;
}

.service-line:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

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

.service-line h2 {
  max-width: 29ch;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.contact {
  grid-area: contact;
  padding: 0 clamp(24px, 7vw, 104px) clamp(28px, 5vw, 64px);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 34px;
  padding: clamp(30px, 6vw, 64px);
  color: #F6F3EC;
  background: #243044;
  border-top: 8px solid #C4492C;
}

.contact-card h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  padding: 14px 0;
  border-bottom: 1px solid #F6F3EC;
}

.contact-list dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
}

.contact-action {
  grid-column: 2;
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
  color: #F6F3EC;
  background: #C4492C;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.privacy {
  max-width: 760px;
  padding: clamp(48px, 7vw, 80px) 0;
}

.privacy h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.privacy p {
  margin: 10px 0;
}

.footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid #243044;
  font-size: 0.88rem;
}

.footer-strip span {
  margin-right: auto;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rail"
      "header"
      "steps"
      "contact";
  }

  .rail {
    position: relative;
    min-height: 72vh;
    height: auto;
    padding: 30px 24px;
    overflow: visible;
  }

  .rail__body {
    margin: clamp(70px, 18vh, 150px) 0;
  }

  .rail__tagline {
    max-width: 13ch;
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }

  .topbar {
    align-items: flex-start;
    padding: 18px 24px;
  }

  .topbar__nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
  }

  .steps {
    padding: 64px 24px 76px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .contact {
    padding: 0 24px 30px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .contact-action {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
    gap: 12px;
  }

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

  .primary-action {
    width: 100%;
  }

  .timeline__item {
    gap: 18px;
  }

  .timeline__content {
    padding-left: 16px;
  }

  .footer-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-strip span {
    margin-right: 0;
  }
}

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

  .primary-action {
    transition: none;
  }
}
