:root {
  --paper: #f4f0e7;
  --paper-deep: #e8e1d3;
  --white: #fffdfa;
  --ink: #171713;
  --muted: #6c675e;
  --line: #cfc7b8;
  --blue: #2551e7;
  --blue-dark: #1836a6;
  --yellow: #ffd447;
  --orange: #ff6a3d;
  --green: #28694f;
  --shadow: 0 24px 70px rgba(24, 20, 14, 0.12);
  --container: min(1240px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.14);
  background: rgba(244, 240, 231, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand-letter {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-style: italic;
  font-weight: 700;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.08;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  margin-right: 36px;
}

.desktop-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 2px;
  padding: 0 27px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.button:focus-visible,
.text-button:focus-visible,
.filter-button:focus-visible,
.payment-copy-row button:focus-visible,
.menu-toggle:focus-visible,
.modal-header button:focus-visible,
.modal-footer button:focus-visible,
.modal-footer a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.button-compact {
  min-height: 44px;
  padding-inline: 22px;
}

.button-large {
  min-height: 60px;
  padding-inline: 32px;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

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

.button-inverse:hover,
.button-inverse:focus-visible {
  border-color: #fff;
  color: var(--ink);
  background: #fff;
}

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

.button-dark:hover,
.button-dark:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
  transform: translateY(-4px);
}

.menu-toggle span:last-child {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 34px;
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(24px, calc((100% - 1240px) / 2));
  width: 1px;
  background: rgba(23, 23, 19, 0.11);
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 640px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--blue);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  max-width: 680px;
  font-size: clamp(54px, 6.2vw, 94px);
}

h1 em,
h2 em {
  color: var(--blue);
  font-weight: 500;
}

.hero-lead {
  max-width: 620px;
  margin-top: 30px;
  color: #4d4942;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.underlined-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 750;
}

.underlined-link:hover,
.underlined-link:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.hero-note {
  max-width: 520px;
  margin-top: 30px;
  padding-left: 17px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-width: 0;
  padding: 0 34px 42px 0;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink);
  background: #d7d0c2;
}

.photo-frame::before {
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  content: "";
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goal-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(330px, 66%);
  min-height: 156px;
  align-content: center;
  border: 1px solid var(--ink);
  padding: 20px 25px;
  background: var(--yellow);
  box-shadow: 14px 14px 0 var(--blue);
}

.goal-stamp small,
.goal-stamp span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.goal-stamp strong {
  margin: 2px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.fact-rail {
  display: grid;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  grid-template-columns: repeat(4, 1fr);
}

.fact-rail article {
  min-width: 0;
  padding: 23px 24px 25px;
  border-right: 1px solid var(--ink);
}

.fact-rail article:last-child {
  border-right: 0;
}

.fact-rail span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.fact-rail strong {
  display: block;
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.fact-rail p {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 110px 0;
}

.section-heading {
  display: grid;
  align-items: start;
  gap: 40px;
  grid-template-columns: 0.32fr 1fr;
  margin-bottom: 70px;
}

.section-heading > div,
.diagnosis-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.section-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
}

.section-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(44px, 6vw, 78px);
}

.history-section {
  background: var(--white);
}

.history-layout {
  display: grid;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: 0.9fr 1.1fr;
}

.history-copy {
  padding-top: 18px;
}

.history-copy p {
  max-width: 590px;
  margin-bottom: 22px;
  color: #514c44;
  font-size: 17px;
  line-height: 1.75;
}

.history-copy .lead-paragraph {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.35;
}

.history-copy blockquote {
  position: relative;
  margin-top: 42px;
  padding: 30px 30px 30px 48px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.35;
}

.history-copy blockquote span {
  position: absolute;
  top: 2px;
  left: 13px;
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.photo-story {
  display: grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
}

.photo-story figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.photo-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-story figure:hover img {
  transform: scale(1.025);
}

.photo-story figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 12px;
  font-weight: 700;
}

.photo-tall {
  aspect-ratio: 4 / 5;
  grid-row: span 2;
}

.photo-small,
.photo-square {
  aspect-ratio: 1 / 1;
}

.photo-small img {
  object-position: 50% 25%;
}

.diagnosis-section {
  position: relative;
  overflow: hidden;
}

.diagnosis-section::after {
  position: absolute;
  right: -9vw;
  bottom: -20vw;
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(37, 81, 231, 0.22);
  border-radius: 50%;
  content: "";
}

.diagnosis-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(50px, 9vw, 130px);
  grid-template-columns: 0.82fr 1.18fr;
}

.diagnosis-intro {
  align-content: start;
}

.diagnosis-intro h2 {
  width: 100%;
  margin-top: 22px;
  font-size: clamp(46px, 5vw, 72px);
}

.diagnosis-intro > p {
  width: 100%;
  margin-top: 27px;
  color: #4f4a43;
  font-size: 18px;
}

.diagnosis-steps {
  border-top: 1px solid var(--ink);
}

.diagnosis-steps article {
  display: grid;
  gap: 24px;
  grid-template-columns: 48px 1fr;
  padding: 30px 0;
  border-bottom: 1px solid var(--ink);
}

.diagnosis-steps > article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.diagnosis-steps h3 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.diagnosis-steps p {
  color: var(--muted);
}

.treatment-section {
  color: #fff;
  background: var(--blue);
}

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

.treatment-layout {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
  grid-template-columns: 1.1fr 0.9fr;
}

.treatment-layout article {
  padding: clamp(30px, 4vw, 52px);
  background: var(--blue);
}

.therapy-summary {
  grid-row: span 2;
}

.therapy-kicker,
.document-tag {
  display: inline-block;
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.therapy-summary h3 {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.therapy-summary > p:not(.therapy-kicker) {
  max-width: 610px;
  margin: 27px 0 38px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.therapy-summary dl {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.therapy-summary dl div {
  display: grid;
  gap: 20px;
  grid-template-columns: 110px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.therapy-summary dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.therapy-summary dd {
  font-weight: 700;
}

.clinic-letter h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.clinic-letter p {
  color: rgba(255, 255, 255, 0.8);
}

.text-button {
  display: inline-flex;
  gap: 9px;
  margin-top: 27px;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.cost-summary {
  color: var(--ink);
  background: var(--yellow) !important;
}

.cost-summary .document-tag {
  color: rgba(23, 23, 19, 0.65);
}

.cost-summary strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 69px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.cost-summary small {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-summary p {
  margin: 24px 0 30px;
  color: rgba(23, 23, 19, 0.7);
}

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

.help-layout {
  display: grid;
  align-items: start;
  gap: clamp(44px, 7vw, 90px);
  grid-template-columns: 0.72fr 1.28fr;
}

.help-copy {
  position: sticky;
  top: 120px;
}

.help-copy .section-label {
  margin-left: 8px;
}

.help-copy h2 {
  margin-top: 27px;
  font-size: clamp(46px, 5vw, 72px);
}

.help-copy h2 em {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.1em;
}

.help-copy > p {
  margin-top: 27px;
  color: rgba(23, 23, 19, 0.76);
  font-size: 17px;
}

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

.commitments li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
}

.commitments span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
}

.payment-card {
  border: 1px solid var(--ink);
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  box-shadow: 16px 16px 0 var(--blue);
}

.payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--ink);
}

.payment-heading small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.payment-heading > span {
  border: 1px solid var(--green);
  padding: 7px 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-payment {
  width: 100%;
  margin-top: 24px;
}

.payment-content {
  display: grid;
  align-items: start;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 238px;
  margin-top: 28px;
}

.payment-fields {
  border-top: 1px solid var(--line);
}

.payment-field {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.payment-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.payment-field strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 1.65vw, 20px);
  line-height: 1.35;
}

.payment-copy-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.payment-copy-row button {
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  padding: 8px 11px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.payment-copy-row button:hover {
  color: #fff;
  background: var(--blue);
}

.qr-card {
  display: grid;
  justify-items: center;
  border: 1px solid var(--ink);
  padding: 16px;
  background: #fff;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qr-card:hover,
.qr-card:focus-visible {
  box-shadow: 7px 7px 0 var(--yellow);
  transform: translate(-2px, -2px);
}

.qr-card > span {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qr-card img {
  width: 100%;
  height: auto;
  max-height: 285px;
  object-fit: contain;
}

.qr-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.payment-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.payment-contact a {
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.documents-intro {
  display: grid;
  align-items: end;
  gap: 40px;
  grid-template-columns: 1fr auto;
  margin-top: -28px;
  margin-bottom: 24px;
}

.documents-intro > p {
  max-width: 730px;
  color: var(--muted);
  font-size: 18px;
}

.document-count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.document-count strong {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.document-count span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.48);
}

.privacy-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.privacy-note p {
  color: var(--muted);
  font-size: 13px;
}

.document-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--ink);
}

.filter-button {
  min-height: 39px;
  border: 1px solid var(--ink);
  padding: 0 16px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.is-active {
  color: #fff;
  background: var(--ink);
}

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

.document-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.document-card:hover,
.document-card:focus-visible {
  box-shadow: 8px 8px 0 var(--blue);
  outline: 0;
  transform: translate(-3px, -3px);
}

.document-card[hidden] {
  display: none;
}

.document-preview {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--ink);
  background: #ded8cd;
}

.document-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.86);
}

.document-meta {
  display: grid;
  min-height: 142px;
  align-content: start;
  padding: 17px;
}

.document-meta small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-meta strong {
  margin: 8px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.document-meta em {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.noscript-documents {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 20px;
}

.organizer-section {
  background: var(--white);
}

.organizer-grid {
  display: grid;
  gap: clamp(48px, 9vw, 130px);
  grid-template-columns: 0.8fr 1.2fr;
}

.organizer-title .section-label {
  margin-left: 8px;
}

.organizer-title h2 {
  margin-top: 30px;
  font-size: clamp(60px, 7vw, 96px);
}

.organizer-title > p {
  max-width: 480px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 17px;
}

.organizer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-top: 30px;
}

.organizer-links a {
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.declaration-card {
  border: 1px solid var(--ink);
  padding: clamp(30px, 5vw, 62px);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--yellow);
}

.declaration-label {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.declaration-card blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.declaration-facts {
  margin: 35px 0;
  border-top: 1px solid var(--ink);
}

.declaration-facts p {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px 1fr;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink);
}

.declaration-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.declaration-facts strong {
  font-size: 14px;
}

.final-section {
  padding: 100px 0;
  color: #fff;
  background: var(--ink);
}

.final-inner {
  text-align: center;
}

.final-inner > p {
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-inner h2 {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(48px, 7vw, 92px);
}

.final-inner h2 em {
  color: var(--yellow);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 43px;
}

.site-footer {
  padding: 58px 0 22px;
  color: #fff;
  background: #0e0e0c;
}

.footer-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-grid > div:first-child strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.footer-grid > div:first-child p {
  max-width: 430px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-meta {
  display: grid;
  gap: 9px;
}

.footer-meta p {
  display: grid;
  gap: 12px;
  grid-template-columns: 135px 1fr;
  font-size: 13px;
}

.footer-meta span {
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 19px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

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

.mobile-help-bar {
  display: none;
}

.toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  border: 1px solid #fff;
  padding: 11px 17px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.document-modal {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  height: min(92vh, 920px);
  max-height: none;
  border: 1px solid var(--ink);
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.document-modal::backdrop {
  background: rgba(14, 14, 12, 0.82);
  backdrop-filter: blur(6px);
}

.modal-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding: 18px 22px;
}

.modal-header small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.modal-header h2 {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.modal-header button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.modal-body {
  overflow: auto;
  padding: 24px;
  background-color: #ded8cd;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.32) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.32) 75%);
  background-size: 18px 18px;
}

.modal-body img {
  width: auto;
  max-width: 100%;
  min-height: 100%;
  margin-inline: auto;
  object-fit: contain;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.18);
}

.modal-footer {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid var(--ink);
  padding: 12px 16px;
}

.modal-footer button,
.modal-footer a {
  border: 1px solid var(--ink);
  padding: 9px 12px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.modal-footer button:last-child {
  justify-self: end;
}

.modal-footer a {
  color: #fff;
  background: var(--blue);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 19px;
    margin-right: 22px;
  }

  .hero-grid {
    gap: 45px;
    grid-template-columns: 0.95fr 1.05fr;
  }

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

  .payment-content {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

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

@media (max-width: 860px) {
  :root {
    --container: min(100% - 36px, 720px);
  }

  .header-inner {
    min-height: 70px;
  }

  .desktop-nav,
  .header-donate {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .mobile-nav {
    display: grid;
    gap: 0;
    padding: 0 18px 18px;
    border-top: 1px solid rgba(23, 23, 19, 0.14);
    background: var(--paper);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav > a:not(.button) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 750;
  }

  .mobile-nav .button {
    margin-top: 14px;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    max-width: 680px;
  }

  .fact-rail {
    margin-top: 45px;
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-rail article:nth-child(2) {
    border-right: 0;
  }

  .fact-rail article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    gap: 25px;
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .history-layout,
  .diagnosis-grid,
  .help-layout,
  .organizer-grid {
    grid-template-columns: 1fr;
  }

  .help-copy {
    position: static;
  }

  .history-copy {
    order: 2;
  }

  .photo-story {
    order: 1;
  }

  .treatment-layout {
    grid-template-columns: 1fr;
  }

  .therapy-summary {
    grid-row: auto;
  }

  .payment-content {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

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

@media (max-width: 600px) {
  :root {
    --container: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: 76px;
  }

  .brand-letter {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 69px);
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    gap: 17px;
    margin-top: 27px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .underlined-link {
    justify-self: start;
  }

  .hero-media {
    padding: 0 18px 42px 0;
  }

  .photo-frame {
    aspect-ratio: 1 / 1.05;
  }

  .photo-frame img {
    object-position: 50% 40%;
  }

  .goal-stamp {
    width: min(295px, 86%);
    min-height: 132px;
    padding: 17px 19px;
    box-shadow: 9px 9px 0 var(--blue);
  }

  .goal-stamp strong {
    font-size: 32px;
  }

  .fact-rail article {
    padding: 17px 14px 19px;
  }

  .fact-rail strong {
    font-size: 26px;
  }

  .fact-rail p {
    font-size: 11px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading h2,
  .diagnosis-intro h2,
  .help-copy h2 {
    font-size: 45px;
  }

  .history-copy .lead-paragraph {
    font-size: 25px;
  }

  .history-copy p {
    font-size: 16px;
  }

  .history-copy blockquote {
    padding: 26px 20px 26px 43px;
    font-size: 22px;
  }

  .photo-story {
    gap: 10px;
  }

  .therapy-summary h3 {
    font-size: 62px;
  }

  .therapy-summary dl div {
    grid-template-columns: 86px 1fr;
  }

  .treatment-layout article {
    padding: 27px 22px;
  }

  .payment-card {
    margin-right: 6px;
    padding: 22px 18px;
    box-shadow: 8px 8px 0 var(--blue);
  }

  .payment-heading {
    align-items: center;
  }

  .payment-heading h3 {
    font-size: 34px;
  }

  .payment-heading > span {
    padding: 6px 8px;
  }

  .payment-content {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: min(100%, 280px);
    justify-self: center;
  }

  .payment-copy-row {
    align-items: center;
  }

  .payment-copy-row button {
    padding: 7px 8px;
    font-size: 9px;
  }

  .documents-intro {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .document-count {
    justify-self: start;
  }

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

  .document-preview {
    aspect-ratio: 16 / 10;
  }

  .document-meta {
    min-height: 125px;
  }

  .organizer-title h2 {
    font-size: 60px;
  }

  .declaration-card {
    margin-right: 7px;
    padding: 28px 21px;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .declaration-card blockquote {
    font-size: 27px;
  }

  .declaration-facts p {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .final-section {
    padding: 75px 0;
  }

  .final-inner h2 {
    font-size: 49px;
  }

  .final-actions {
    display: grid;
  }

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

  .footer-meta p {
    gap: 3px;
    grid-template-columns: 1fr;
  }

  .mobile-help-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 70px;
    border-top: 1px solid var(--ink);
    padding: 9px 14px;
    background: var(--yellow);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  }

  .mobile-help-bar div {
    display: grid;
    line-height: 1.15;
  }

  .mobile-help-bar small {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-help-bar strong {
    margin-top: 3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
  }

  .mobile-help-bar a {
    display: grid;
    min-width: 112px;
    min-height: 45px;
    place-items: center;
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 850;
  }

  .document-modal {
    width: calc(100% - 12px);
    height: calc(100dvh - 12px);
  }

  .modal-header {
    padding: 12px;
  }

  .modal-header h2 {
    max-width: 260px;
    font-size: 20px;
  }

  .modal-body {
    padding: 10px;
  }

  .modal-body img {
    min-height: 0;
  }

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

  .modal-footer a {
    order: 3;
    grid-column: 1 / -1;
    text-align: center;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
