:root {
  --ink: #172029;
  --ink-soft: #27333d;
  --cream: #f5efe3;
  --paper: #fffaf0;
  --white: #ffffff;
  --red: #c83a2d;
  --red-dark: #9e281f;
  --yellow: #f1bd42;
  --yellow-light: #f8dda0;
  --sage: #6f8978;
  --line: rgba(23, 32, 41, 0.18);
  --max: 1200px;
  --shadow: 0 24px 70px rgba(23, 32, 41, 0.15);
  --heading: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  color: var(--white);
  background: var(--red);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--ink);
  background: rgba(245, 239, 227, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--red);
  place-items: center;
  font-family: var(--heading);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.brand__text {
  display: grid;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand__text small {
  margin-top: 4px;
  color: rgba(23, 32, 41, 0.58);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav > a:not(.button) {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.document-card:focus-visible,
.payment-details button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.button--small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.button--large {
  min-height: 58px;
  padding: 16px 25px;
}

.button--full {
  width: 100%;
}

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

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

.button--yellow {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.button--yellow:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
}

.button--outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button--outline-light:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  color: var(--red);
  font-size: 19px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 74px;
  background: var(--paper);
}

.hero::before {
  position: absolute;
  top: 10%;
  right: -85px;
  width: 230px;
  height: 230px;
  background: var(--yellow);
  content: "";
  opacity: 0.6;
  transform: rotate(12deg);
}

.hero__signal {
  display: flex;
  min-width: max-content;
  justify-content: space-around;
  padding: 9px 0;
  color: var(--white);
  background: var(--red);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.hero__signal span::before {
  margin-right: 34px;
  color: var(--yellow);
  content: "◆";
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.82fr);
  gap: clamp(48px, 7vw, 105px);
  align-items: center;
  padding-top: 62px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 10px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--ink);
}

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

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--heading);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 900;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
}

h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.hero__lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.goal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 680px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.goal-card__label {
  display: block;
  margin-bottom: 3px;
  color: rgba(23, 32, 41, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.goal-card strong {
  display: block;
  font-family: var(--heading);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.goal-card p {
  margin: 0;
  color: rgba(23, 32, 41, 0.7);
  font-size: 13px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-photo::before {
  position: absolute;
  z-index: -1;
  top: 28px;
  right: -22px;
  bottom: 90px;
  left: 34px;
  background: var(--yellow);
  content: "";
  transform: rotate(3deg);
}

.hero-photo__frame {
  overflow: hidden;
  aspect-ratio: 0.82;
  background: #ddd6c8;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 4%, 94% 100%, 5% 97%);
}

.hero-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-photo figcaption {
  position: relative;
  width: min(86%, 360px);
  margin: -48px 0 0 -24px;
  padding: 20px 24px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.hero-photo figcaption span {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-photo figcaption strong {
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1.18;
  text-transform: uppercase;
}

.fact-line {
  color: var(--white);
  background: var(--ink);
}

.fact-line__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact-line__grid > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-line__grid > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.fact-line__grid > div > span {
  color: var(--yellow);
  font-family: var(--heading);
  font-size: 25px;
  font-weight: 900;
}

.fact-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.fact-line strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}

.section {
  padding: 118px 0;
}

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

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 70px;
  align-items: end;
}

.section-heading--split > *,
.story-grid > *,
.treatment-layout > *,
.how-help__grid > *,
.final-call__inner > * {
  min-width: 0;
}

.section-heading h2,
.how-help__intro h2,
.final-call h2 {
  margin-bottom: 0;
  font-size: clamp(39px, 5vw, 66px);
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading--split > p {
  margin: 0 0 5px;
  color: rgba(23, 32, 41, 0.7);
  font-size: 17px;
}

.story {
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 62px;
}

.story-photo {
  position: relative;
  margin: 0;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 1.24;
  object-fit: cover;
  object-position: center 38%;
}

.story-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 310px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 2px;
}

.story-copy__block {
  position: relative;
  padding: 34px 34px 38px 84px;
  background: var(--paper);
}

.story-copy__block--accent {
  background: var(--yellow);
}

.story-copy__number {
  position: absolute;
  top: 34px;
  left: 28px;
  color: var(--red);
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 900;
}

.story-copy h3 {
  margin-bottom: 14px;
  font-size: 28px;
  text-transform: uppercase;
}

.story-copy p {
  margin: 0;
  color: rgba(23, 32, 41, 0.72);
}

.mission-quote {
  position: relative;
  max-width: 1040px;
  margin: 86px auto 0;
  padding: 54px 65px 54px 110px;
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.mission-quote__mark {
  position: absolute;
  top: 27px;
  left: 32px;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
}

.mission-quote p {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.13;
  text-transform: uppercase;
}

.section--dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.section--dark::after {
  position: absolute;
  right: -60px;
  bottom: -160px;
  width: 330px;
  height: 330px;
  border: 55px solid rgba(241, 189, 66, 0.12);
  content: "";
  transform: rotate(18deg);
}

.section-heading--light .kicker {
  color: var(--yellow);
}

.section-heading--light h2 {
  max-width: 850px;
}

.treatment-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
}

.treatment-main {
  padding: clamp(30px, 4vw, 55px);
  color: var(--ink);
  background: var(--paper);
}

.treatment-main__intro {
  max-width: 760px;
  margin: 0 0 42px;
  font-size: clamp(19px, 2vw, 25px);
}

.estimate {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.estimate__sum > span,
.estimate__meta span {
  display: block;
  margin-bottom: 7px;
  color: rgba(23, 32, 41, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimate__sum strong {
  display: block;
  color: var(--red);
  font-family: var(--heading);
  font-size: clamp(35px, 4vw, 53px);
  line-height: 1;
}

.estimate__sum small {
  display: block;
  margin-top: 8px;
  color: rgba(23, 32, 41, 0.7);
}

.estimate__meta {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.estimate__meta p {
  margin: 0;
}

.estimate__meta p + p {
  margin-top: 20px;
}

.estimate__meta strong {
  font-size: 16px;
}

.treatment-note {
  margin: 30px 0 0;
  color: rgba(23, 32, 41, 0.68);
  font-size: 14px;
}

.treatment-side {
  display: flex;
  flex-direction: column;
  padding: 36px;
  color: var(--white);
  background: var(--red);
}

.treatment-side__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.treatment-side ol {
  display: grid;
  gap: 0;
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
}

.treatment-side li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 15px;
  font-weight: 700;
}

.treatment-side li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.treatment-side li span {
  color: var(--yellow);
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 900;
}

.treatment-side .button {
  margin-top: auto;
}

.how-help {
  background: var(--yellow);
}

.how-help__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(450px, 1.15fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.how-help__intro .kicker {
  color: var(--red-dark);
}

.how-help__intro > p:not(.kicker) {
  max-width: 520px;
  margin: 28px 0 24px;
  font-size: 18px;
}

.text-link--button {
  font-size: 16px;
}

.payment-panel {
  padding: clamp(30px, 5vw, 56px);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--red);
}

.payment-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--ink);
}

.payment-panel__header span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.payment-panel__header strong {
  font-family: var(--heading);
  font-size: 30px;
  text-transform: uppercase;
}

.payment-details {
  margin: 0 0 30px;
}

.payment-details > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.payment-details dt {
  margin-bottom: 7px;
  color: rgba(23, 32, 41, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-details dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.payment-details dd a,
.payment-details dd > span {
  font-family: var(--heading);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.payment-details button {
  flex: none;
  padding: 7px 9px;
  color: var(--red);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.organizer {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 27px;
}

.organizer__initials {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--white);
  background: var(--ink);
  place-items: center;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 900;
}

.organizer p {
  margin: 0;
}

.organizer p span,
.organizer p strong {
  display: block;
}

.organizer p span {
  color: rgba(23, 32, 41, 0.58);
  font-size: 12px;
}

.organizer p strong {
  font-size: 15px;
}

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

.document-group + .document-group {
  margin-top: 62px;
}

.document-group__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.document-group__heading h3 {
  margin: 0;
  font-size: 25px;
  text-transform: uppercase;
}

.document-group__heading span {
  color: rgba(23, 32, 41, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-group__summary {
  max-width: 850px;
  margin: -2px 0 22px;
  color: rgba(23, 32, 41, 0.68);
  font-size: 14px;
}

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

.document-grid--short {
  grid-template-columns: repeat(2, minmax(0, 218px));
}

.document-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #ece7de;
  border: 1px solid var(--line);
  cursor: zoom-in;
  text-align: left;
}

.document-card::after {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 41, 0.05);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.document-card:hover::after {
  opacity: 1;
}

.document-card img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
  transition: transform 220ms ease;
}

.document-card:hover img {
  transform: scale(1.025);
}

.document-card > span {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  padding: 6px 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-disclaimer {
  max-width: 850px;
  margin: 62px 0 0;
  padding-left: 18px;
  color: rgba(23, 32, 41, 0.62);
  border-left: 4px solid var(--yellow);
  font-size: 13px;
}

.final-call {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  color: var(--white);
  background: var(--red);
}

.final-call::before {
  position: absolute;
  top: -80px;
  right: 10%;
  width: 250px;
  height: 250px;
  border: 38px solid rgba(255, 255, 255, 0.11);
  content: "";
  transform: rotate(23deg);
}

.final-call__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: center;
}

.final-call__inner > div > span {
  display: block;
  margin-bottom: 15px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.final-call h2 {
  max-width: 750px;
  font-size: clamp(36px, 4.5vw, 60px);
}

.final-call__actions {
  display: grid;
  min-width: 230px;
  gap: 12px;
}

.site-footer {
  padding: 52px 0;
  color: var(--white);
  background: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: center;
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.site-footer p:last-child {
  text-align: right;
}

.document-dialog {
  width: min(96vw, 1180px);
  max-width: none;
  height: 94vh;
  max-height: none;
  padding: 0;
  background: var(--ink-soft);
  border: 0;
  box-shadow: var(--shadow);
}

.document-dialog::backdrop {
  background: rgba(8, 12, 16, 0.88);
  backdrop-filter: blur(4px);
}

.document-dialog__bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
}

.document-dialog__bar strong {
  font-size: 14px;
}

.document-dialog__bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-dialog__bar a,
.document-dialog__bar button {
  padding: 8px 10px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.document-dialog__canvas {
  min-height: calc(94vh - 62px);
  padding: 24px;
}

.document-dialog__canvas img {
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 17px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  color: var(--white);
  background: var(--ink);
}

.not-found__card {
  max-width: 690px;
  text-align: center;
}

.not-found__code {
  display: block;
  color: var(--yellow);
  font-family: var(--heading);
  font-size: clamp(90px, 22vw, 190px);
  font-weight: 900;
  line-height: 0.8;
}

.not-found h1 {
  margin: 30px 0 18px;
  font-size: clamp(36px, 7vw, 68px);
}

.not-found p {
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.67);
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 18px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
    gap: 44px;
  }

  .fact-line__grid > div {
    grid-template-columns: 34px 1fr;
    padding-inline: 18px;
  }

  .story-grid,
  .treatment-layout,
  .how-help__grid {
    grid-template-columns: 1fr;
  }

  .story-photo img {
    aspect-ratio: 1.55;
  }

  .how-help__intro {
    max-width: 760px;
  }

  .payment-panel {
    max-width: 760px;
  }

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

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

  .site-footer p:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }
}

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

  .site-header__inner {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 20px 14px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(23, 32, 41, 0.12);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav > a:not(.button) {
    padding: 10px 4px;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero__signal {
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    min-width: 0;
    padding-left: 18px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 43px;
  }

  h1 {
    font-size: clamp(38px, 10.5vw, 56px);
  }

  .hero-photo {
    width: min(90%, 520px);
    margin: 10px auto 0;
  }

  .hero-photo figcaption {
    margin-left: -12px;
  }

  .fact-line__grid {
    grid-template-columns: 1fr;
  }

  .fact-line__grid > div,
  .fact-line__grid > div:first-child {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading h2,
  .how-help__intro h2 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .story-grid {
    gap: 24px;
  }

  .story-photo img {
    aspect-ratio: 1.15;
  }

  .story-copy__block {
    padding: 30px 25px 32px 72px;
  }

  .mission-quote {
    margin-top: 60px;
    padding: 75px 24px 38px;
  }

  .mission-quote__mark {
    top: 8px;
    left: 22px;
  }

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

  .estimate__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .estimate__meta p + p {
    margin-top: 0;
  }

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

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

  .final-call__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .final-call__actions {
    width: min(100%, 360px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer p:last-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .hero__actions {
    display: grid;
    justify-items: start;
  }

  .hero__actions .button {
    width: 100%;
  }

  .goal-card {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hero-photo {
    width: 94%;
  }

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

  .story-photo figcaption {
    position: static;
    max-width: none;
  }

  .treatment-main,
  .treatment-side,
  .payment-panel {
    padding: 26px 20px;
  }

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

  .payment-panel {
    box-shadow: 8px 8px 0 var(--red);
  }

  .payment-details dd {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-details dd a,
  .payment-details dd > span {
    font-size: 25px;
  }

  .document-grid,
  .document-grid--short {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .document-group__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .document-group__heading h3 {
    font-size: 22px;
  }

  .document-dialog {
    width: 100vw;
    height: 100vh;
  }

  .document-dialog__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-dialog__canvas {
    padding: 12px;
  }
}

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

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