:root {
  --coal: #171511;
  --ink: #25221d;
  --stone: #f3efe7;
  --paper: #fffdf8;
  --soft: #e8e1d4;
  --sage: #587568;
  --cobalt: #285b9b;
  --clay: #b65f3a;
  --gold: #c39035;
  --line: #d7ccbb;
  --muted: #675f54;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(32, 25, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--stone);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.jump-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--coal);
}

.jump-link:focus {
  top: 16px;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 204, 187, 0.9);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coal);
  font-weight: 800;
  text-decoration: none;
}

.identity__seal {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--coal);
  color: var(--coal);
  background: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.identity__text {
  letter-spacing: 0.02em;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navlinks a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.navlinks a:hover {
  color: var(--cobalt);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--coal);
}

.lead {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--coal);
}

.lead__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 17, 14, 0.88), rgba(18, 17, 14, 0.58) 46%, rgba(18, 17, 14, 0.28)),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1900&q=82") center/cover;
  transform: scale(1.01);
}

.lead__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(0deg, var(--stone), rgba(243, 239, 231, 0));
}

.lead__content {
  position: relative;
  z-index: 1;
  padding: 114px 0 92px;
}

.label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead h1,
.document__hero h1,
.contact-lead h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.2vw, 6.7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.lead__summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.lead__fineprint {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid transparent;
  color: var(--coal);
  background: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

.action:hover {
  color: var(--coal);
  background: #f6d994;
}

.action--primary {
  background: var(--gold);
}

.action--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.action--ghost:hover {
  color: var(--coal);
}

.block {
  padding: 86px 0;
}

.block--opening {
  padding-top: 66px;
}

.opening,
.workflow__inner,
.contact-lead__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.opening__copy p:first-child {
  margin-top: 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title--wide {
  max-width: 880px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.decision-band {
  background:
    linear-gradient(90deg, rgba(88, 117, 104, 0.14), rgba(182, 95, 58, 0.11)),
    var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chooser {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.chooser__buttons {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
  background: #f6f0e6;
}

.choice {
  min-height: 68px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
}

.choice:hover,
.choice.is-active {
  color: var(--white);
  background: var(--cobalt);
}

.recommendation {
  min-height: 260px;
  padding: clamp(24px, 4vw, 46px);
}

.recommendation__eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.recommendation h3 {
  max-width: 700px;
  font-size: clamp(1.65rem, 3.3vw, 3rem);
}

.recommendation p:last-child {
  max-width: 790px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.pill:hover,
.pill.is-active {
  color: var(--white);
  border-color: var(--sage);
  background: var(--sage);
}

.matrix-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.scorecard {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.scorecard caption {
  padding: 12px 16px;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.scorecard th,
.scorecard td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scorecard th:last-child,
.scorecard td:last-child {
  border-right: 0;
}

.scorecard thead th {
  color: var(--white);
  background: var(--coal);
}

.scorecard tbody th {
  color: var(--coal);
  background: #f6f0e6;
}

.scorecard tr.is-dimmed {
  opacity: 0.34;
}

.scorecard tr.is-emphasis th,
.scorecard tr.is-emphasis td {
  background: #fff8df;
}

.notes {
  background: var(--coal);
  color: var(--white);
}

.notes .section-title p:not(.label) {
  color: rgba(255, 255, 255, 0.76);
}

.portal-list {
  display: grid;
  gap: 18px;
}

.portal {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.portal__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--coal);
  background: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.portal__mark--r {
  background: #e08ea4;
}

.portal__mark--c {
  background: #9fc3ee;
}

.portal__mark--t {
  background: #93bda3;
}

.portal__body p {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.84);
}

.portal__body ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.steps li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps span {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.steps strong {
  display: block;
  color: var(--coal);
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  border: 1px solid var(--line);
  background: var(--paper);
}

.accordion summary {
  padding: 18px 20px;
  color: var(--coal);
  font-weight: 900;
  cursor: pointer;
}

.accordion p {
  margin: 0;
  padding: 0 20px 20px;
}

.closing {
  padding: 74px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 21, 17, 0.92), rgba(40, 91, 155, 0.62)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.closing__inner {
  max-width: 860px;
}

.closing h2 {
  margin-bottom: 24px;
}

.footer {
  padding: 58px 0 26px;
  color: rgba(255, 255, 255, 0.82);
  background: #171511;
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 34px;
}

.identity--footer {
  color: var(--white);
}

.footer h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.footer h2 + a,
.footer a + a {
  display: block;
  margin-top: 6px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.footer--compact {
  padding-top: 22px;
}

.document__hero {
  padding: 96px 0 58px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 21, 17, 0.92), rgba(23, 21, 17, 0.64)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.document__hero p {
  color: rgba(255, 255, 255, 0.82);
}

.document__body {
  max-width: 850px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.document__body h2 {
  margin: 34px 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  line-height: 1.22;
}

.document__body h3 {
  margin: 24px 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
}

.document__body ul {
  padding-left: 20px;
}

.contact-lead {
  padding: 98px 0 70px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 21, 17, 0.9), rgba(88, 117, 104, 0.72)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.contact-lead p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.85);
}

.address-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.22);
  font-style: normal;
}

.address-panel a {
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 24px;
}

.inquiry,
.notice-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.inquiry label {
  display: block;
  margin: 18px 0 6px;
  color: var(--coal);
  font-weight: 900;
}

.inquiry label:first-child {
  margin-top: 0;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.inquiry textarea {
  resize: vertical;
}

.inquiry .action {
  margin-top: 18px;
}

.form-note {
  min-height: 24px;
  color: var(--sage);
  font-weight: 800;
}

.notice-panel h2 {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
}

.notice-panel h2:not(:first-child) {
  margin-top: 26px;
}

.consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(440px, calc(100% - 40px));
  display: none;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.consent.is-visible {
  display: grid;
}

.consent p {
  margin: 0;
}

.consent div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.consent button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  color: var(--coal);
  background: var(--gold);
  font-weight: 900;
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-block;
  }

  .navlinks {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlinks a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .navlinks a:last-child {
    border-bottom: 0;
  }

  .opening,
  .workflow__inner,
  .contact-lead__inner,
  .contact-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

  .chooser__buttons {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .choice {
    border-right: 1px solid var(--line);
  }

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

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .lead {
    min-height: 80vh;
  }

  .lead__content {
    padding: 86px 0 68px;
  }

  .lead h1,
  .document__hero h1,
  .contact-lead h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .block {
    padding: 64px 0;
  }

  .lead__actions,
  .matrix-controls {
    flex-direction: column;
  }

  .action,
  .pill {
    width: 100%;
  }

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

  .steps li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
