:root {
  --ink: #17211f;
  --rail: #123b3a;
  --rail-deep: #0b2d2c;
  --paper: #f8f6f0;
  --white: #ffffff;
  --accent: #ef6a3a;
  --accent-dark: #c94c21;
  --muted: #64706c;
  --line: #d7d9d3;
  --soft: #ebece6;
  --rail-width: 38%;
  --display: 'Space Grotesk', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f5ad91;
  outline-offset: 3px;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(340px, var(--rail-width)) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  color: #f7f3e9;
  background: var(--rail);
}

.rail::before {
  position: absolute;
  right: 0;
  top: 18%;
  width: 7px;
  height: 31%;
  background: var(--accent);
  content: '';
}

.rail::after {
  position: absolute;
  right: 7%;
  bottom: 7%;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: '';
}

.rail-inner {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  overflow: hidden;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 13px;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.brand-icon svg {
  width: 36px;
  height: 36px;
}

.rail-pitch {
  max-width: 530px;
  margin: auto 0 30px;
  padding-top: 55px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  color: #a9c9c5;
}

.rail h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rail-pitch > p:last-child {
  max-width: 510px;
  margin: 0;
  color: #c9d7d4;
  font-size: 17px;
}

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 370px);
  padding: 16px 19px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.primary-cta span,
.submit-button span {
  font-size: 22px;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 27px 0;
}

.mini-nav a {
  color: #c9d7d4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mini-nav a:hover {
  color: #fff;
}

.rail-contact {
  display: grid;
  gap: 3px;
  color: #c9d7d4;
  font-size: 13px;
}

.rail-contact a {
  width: fit-content;
  color: #fff;
  font-weight: 600;
}

.rail-contact p {
  margin: 8px 0 0;
}

.content {
  min-width: 0;
  background: var(--paper);
}

.section-pad {
  padding: clamp(68px, 8vw, 120px) clamp(32px, 7vw, 112px);
  scroll-margin-top: 20px;
}

.intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: var(--accent-dark);
}

.content h2 {
  max-width: 800px;
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(34px, 4.3vw, 62px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 840px;
  margin: 0;
  color: #35413e;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.trust-row span {
  padding: 10px 14px;
  color: #44514e;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafaf7;
  font-size: 13px;
}

.trust-row strong {
  color: var(--ink);
}

.notice {
  max-width: 820px;
  margin-top: 35px;
  padding: 19px 23px;
  color: #384542;
  background: #edf1ea;
  border-left: 5px solid var(--rail);
  font-weight: 500;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.services {
  background: var(--paper);
}

.service-block {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 24px;
  max-width: 900px;
  padding: 29px 30px;
  border-top: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  background: #fff;
}

.service-block + .service-block {
  margin-top: 14px;
}

.service-number {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.service-block h3,
.timeline h3,
.legal h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.25;
}

.service-block p,
.timeline p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.process {
  background: #fff;
  border-block: 1px solid var(--line);
}

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

.timeline::before {
  position: absolute;
  top: 19px;
  bottom: 30px;
  left: 20px;
  width: 2px;
  background: var(--line);
  content: '';
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 25px;
  padding-bottom: 39px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--rail);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.quote-list {
  max-width: 900px;
}

blockquote {
  margin: 0;
  padding: 28px 0 28px 30px;
  border-left: 6px solid var(--accent);
}

blockquote + blockquote {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

blockquote p {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

blockquote footer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(360px, 1.25fr);
  gap: clamp(45px, 6vw, 90px);
  color: #fff;
  background: var(--rail-deep);
}

.contact-section h2 {
  color: #fff;
}

.contact-copy > p:not(.section-kicker) {
  color: #b9ccca;
}

.direct-contact {
  display: grid;
  gap: 3px;
  margin-top: 31px;
  color: #9eb8b5;
  font-size: 13px;
}

.direct-contact a {
  width: fit-content;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.contact-form {
  align-self: start;
  padding: clamp(25px, 4vw, 44px);
  color: var(--ink);
  background: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fafaf7;
  border: 1px solid #c9cec8;
  border-radius: 0;
  font: inherit;
}

textarea {
  resize: vertical;
}

input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: #b52d20;
  background: #fff7f5;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 20px;
  color: #505b58;
  font-size: 13px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--rail);
}

.consent a {
  color: var(--accent-dark);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  color: #fff;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font: 700 15px var(--body);
  transition: background 180ms ease;
}

.submit-button:hover {
  background: var(--accent-dark);
}

.form-note,
.form-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status:not(:empty) {
  padding: 10px 12px;
  color: #164a38;
  background: #e6f2ea;
  border-left: 3px solid #287854;
  font-weight: 600;
}

.form-status.is-error:not(:empty) {
  color: #8c241a;
  background: #fff0ed;
  border-left-color: #b52d20;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 35px;
  align-items: start;
  padding: 35px clamp(32px, 7vw, 112px);
  color: #b9ccca;
  background: #071f1f;
  font-size: 13px;
}

.site-footer strong {
  color: #fff;
  font-family: var(--display);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-links a {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-rail h1 {
  font-size: clamp(42px, 5vw, 70px);
}

.privacy-content {
  background: #fff;
}

.legal {
  max-width: 1050px;
}

.legal > section {
  max-width: 830px;
  margin-top: 45px;
  padding-left: 25px;
  border-left: 5px solid var(--accent);
}

.legal section p {
  margin: 0;
  color: #52605c;
}

.legal a {
  color: var(--accent-dark);
}

.text-link {
  display: inline-block;
  margin-top: 55px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  :root {
    --rail-width: 40%;
  }

  .rail-inner {
    padding: 35px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 780px) {
  .site-shell {
    display: block;
  }

  .rail {
    min-height: auto;
  }

  .rail::before {
    top: auto;
    right: 0;
    bottom: 0;
    width: 34%;
    height: 6px;
  }

  .rail::after {
    right: 6%;
    bottom: 11%;
    width: 58px;
    height: 58px;
  }

  .rail-inner {
    position: relative;
    min-height: auto;
    padding: 27px 24px 35px;
  }

  .rail-pitch {
    margin: 58px 0 27px;
    padding-top: 0;
  }

  .rail h1 {
    max-width: 630px;
    font-size: clamp(39px, 12vw, 66px);
  }

  .rail-contact {
    margin-top: 2px;
  }

  .section-pad {
    padding: 65px 24px;
  }

  .site-footer {
    padding: 32px 24px;
  }

  .content h2 {
    font-size: clamp(34px, 10vw, 52px);
  }
}

@media (max-width: 540px) {
  .wordmark {
    font-size: 14px;
  }

  .brand-icon {
    width: 43px;
    height: 43px;
  }

  .rail-pitch > p:last-child {
    font-size: 15px;
  }

  .mini-nav {
    gap: 7px 15px;
  }

  .trust-row {
    display: grid;
  }

  .trust-row span {
    border-radius: 0;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 24px 21px;
  }

  .timeline li {
    gap: 17px;
  }

  blockquote {
    padding-left: 21px;
  }

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

  .contact-form {
    padding: 23px 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: 1;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
