/* Revision 2 is scoped to the chapters after the approved hero and #help. */

/* Four equal light surfaces, using the approved #help card palette. */
#directions .directions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 352px;
  gap: 18px;
}
#directions .direction-item:nth-child(n) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
  padding: 27px 30px 30px;
  border: 0;
  border-radius: 28px;
  color: #21364c;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(218,237,252,.98));
  box-shadow: 0 22px 55px rgba(5,22,37,.14);
}
#directions .direction-index {
  display: block;
  position: relative;
  z-index: 2;
  color: #60778d;
  font: 500 11px/1.2 Golos, sans-serif;
  letter-spacing: .08em;
}
#directions .direction-art {
  position: absolute;
  top: -11px;
  right: 7px;
  bottom: auto;
  left: auto;
  width: clamp(220px, 22vw, 310px);
  height: clamp(220px, 22vw, 310px);
  min-height: 0;
  margin: 0;
}
#directions .direction-item:nth-child(3) .direction-art { width: clamp(232px, 23vw, 322px); height: clamp(232px, 23vw, 322px); top: -17px; right: 0; }
#directions .direction-art img,
#directions .direction-item:nth-child(n) .direction-art img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 18px rgba(33,79,116,.16));
}
#directions .direction-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
}
#directions .direction-item h3,
#directions .direction-item:nth-child(3) h3 {
  display: block;
  max-width: 100%;
  margin: 0;
  color: #21364c;
  font: 450 clamp(28px, 2.45vw, 35px)/1.12 var(--display);
  letter-spacing: -.052em;
}
#directions .direction-note {
  max-width: none;
  margin-top: 12px;
  color: #4c6277;
  font-size: 15px;
  line-height: 1.38;
}

/* A typographic portrait of the organizer, on one grid. */
#organizer.organizer { padding: 106px 0 112px; }
#organizer .scene-label .organizer-spark { width: 24px; height: 24px; margin-left: 3px; fill: #4999fd; }
#organizer .organizer-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 6%;
  margin-top: 30px;
}
#organizer .organizer-statement h2 {
  max-width: 11.5ch;
  margin: 0;
  font: 450 clamp(52px, 5.2vw, 78px)/1.08 var(--display);
  letter-spacing: -.057em;
}
#organizer .organizer-name {
  display: inline-block;
  margin-top: 27px;
  color: #3578b3;
  font: 500 15px/1.35 Golos, sans-serif;
}
#organizer .organizer-copy { padding-top: 9px; }
#organizer .organizer-copy > p { max-width: 48ch; margin: 0; color: #30485e; font-size: 18px; line-height: 1.53; }
#organizer .organizer-copy > p + p { margin-top: 21px; color: #4c6277; }
#organizer .organizer-copy .text-link { margin-top: 27px; }
#organizer .organizer-boundary {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 6%;
  margin-top: 67px;
  padding-top: 31px;
  border-top: 1px solid rgba(33,54,76,.22);
}
#organizer .organizer-boundary > div {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #21364c;
}
#organizer .organizer-boundary span { display: block; margin-bottom: 14px; color: #3578b3; font: 500 13px/1.2 Golos, sans-serif; }
#organizer .organizer-boundary p { max-width: 25ch; margin: 0; font: 450 clamp(21px, 2.25vw, 31px)/1.28 var(--display); letter-spacing: -.04em; }

/* Current geography is a schematic journey on an atmospheric image. */
#geography .geography-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, .8fr);
  gap: 4%;
  align-items: stretch;
}
#geography .geography-current {
  position: relative;
  display: block;
  min-height: 590px;
  padding: 0;
  border-radius: 18px;
  background: #1b3b5b;
  overflow: hidden;
  isolation: isolate;
}
#geography .geography-atmosphere,
#geography .geography-atmosphere img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#geography .geography-atmosphere img { object-fit: cover; object-position: 56% center; }
#geography .geography-current::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,38,60,.94) 0%, rgba(14,38,60,.82) 38%, rgba(14,38,60,.22) 100%),
              linear-gradient(0deg, rgba(12,34,54,.84), transparent 54%);
  pointer-events: none;
}
#geography .geography-current-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 34px 36px 27px;
}
#geography .geography-status { align-self: flex-start; color: #d9eaff; font-size: 13px; }
#geography .geography-place {
  display: flex;
  flex-direction: column;
  margin: 22px 0 auto;
  font: 450 clamp(54px, 5.1vw, 77px)/1.06 var(--display);
  letter-spacing: -.065em;
}
#geography .geography-place span { color: #a8d2ff; }
#geography .geography-route-label { margin: 32px 0 11px; color: #cfe6fc; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#geography .geography-route {
  position: relative;
  min-height: 123px;
  padding: 16px 12px 12px;
  border: 1px solid rgba(222,240,255,.3);
  border-radius: 12px;
  background: rgba(9,33,55,.77);
  backdrop-filter: blur(9px);
}
#geography .geography-route-svg { position: absolute; top: 22px; left: 12px; width: calc(100% - 24px); height: 24px; overflow: visible; }
#geography .geography-route-svg path { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; }
#geography .geography-route-base { stroke: rgba(192,224,252,.35); }
#geography .geography-route-progress { stroke: #9dccff; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s ease-out; }
#geography .geography-river-crossing { stroke: #b9ddff; stroke-dasharray: 5 5; }
#geography.is-in-view .geography-route-progress { stroke-dashoffset: 0; }
#geography .geography-route ol { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.9fr) minmax(0,.35fr); gap: 0; margin: 0; padding: 0; list-style: none; }
#geography .geography-route li { min-width: 0; text-align: center; }
#geography .geography-dot { display: block; width: 15px; height: 15px; margin: 0 auto 15px; border: 3px solid #d8ecff; border-radius: 50%; background: #4999fd; box-shadow: 0 0 0 5px rgba(20,58,88,.95); }
#geography .geography-route strong { display: block; color: #fff; font: 450 clamp(14px, 1.18vw, 17px)/1.25 var(--display); letter-spacing: -.03em; }
#geography .geography-route small { display: block; max-width: 23ch; margin: 6px auto 0; color: #d0e5f7; font: 400 12px/1.3 Golos, sans-serif; }
#geography .geography-cta { margin-top: 19px; }
#geography .geography-caption { max-width: none; margin: 13px 0 0; color: #d8e8f8; font-size: 11px; line-height: 1.3; }
#geography .geography-future {
  justify-content: center;
  min-width: 0;
  padding: 10px 0 10px 22px;
  border-left: 1px solid rgba(33,54,76,.15);
}
#geography .geography-future-label { margin-bottom: 21px; }
#geography .geography-places {
  display: grid;
  gap: 13px;
  max-width: none;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font: 450 clamp(19px, 1.8vw, 26px)/1.25 var(--display);
  letter-spacing: -.04em;
}
#geography .geography-future > p:not(.geography-places) { font-size: 16px; }

/* The title stays with the answers on desktop and releases at section end. */
#faq .faq-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 7%; }
#faq .faq-intro .scene-label { margin-bottom: 34px; }
#faq .faq-list details { scroll-margin-top: 110px; }
#faq .faq-answer { max-width: 66ch; font-size: 16px; line-height: 1.53; }
@media (min-width: 1101px) and (min-height: 850px) {
  #faq .faq-intro { position: sticky; top: 116px; }
}

/* One direct B2B invitation, followed by an equally strong personal ending. */
#clinics.clinics { padding: 105px 0 112px; }
#clinics .clinics-inner { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
#clinics .scene-label { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 32px; }
#clinics .scene-label > span { display: inline-grid; place-items: center; line-height: 1; }
#clinics .scene-label p { margin: 0; line-height: 34px; }
#clinics h2 { max-width: 17ch; margin: 0 auto 27px; font: 450 clamp(52px, 5.1vw, 78px)/1.08 var(--display); letter-spacing: -.055em; }
#clinics .clinics-lead { max-width: 82ch; margin: 0 auto; color: #e5f1fc; font-size: 18px; line-height: 1.48; }
#clinics .clinics-prompts { order: 3; width: min(100%, 1030px); margin-top: 42px; padding: 0; }
#clinics .clinics-prompts > span { display: block; margin: 0 0 18px; }
#clinics .clinics-prompts ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
#clinics .clinics-prompts li { max-width: none; padding: 0 12px; color: #f5fafe; font: 450 18px/1.35 var(--display); letter-spacing: -.025em; }
#clinics .clinics-prompts li::before { content: ""; display: block; width: 5px; height: 5px; margin: 0 auto 13px; border-radius: 50%; background: #9ecfff; }
#clinics .clinics-action { order: 4; display: flex; flex-direction: column; align-items: center; margin-top: 38px; }
#clinics .clinics-cta { margin: 0; }
#clinics .clinics-note { max-width: 42ch; margin-top: 16px; }

#contact.contact { padding: 105px 0 112px; background: #edf6ff; }
#contact .contact-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 7%; align-items: center; }
#contact h2 { max-width: 15ch; font: 450 clamp(52px, 5.1vw, 78px)/1.08 var(--display); letter-spacing: -.055em; }
#contact .contact-action { padding-top: 15px; }
#contact .contact-action p { max-width: 44ch; margin: 0 0 25px; font-size: 18px; line-height: 1.5; }
#contact .contact-phone { display: block; width: fit-content; margin-bottom: 20px; color: #285f94; font: 450 25px/1.2 var(--display); letter-spacing: -.04em; text-decoration: none; }
#contact .contact-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
#contact .contact-phone:focus-visible { outline: 3px solid #4999fd; outline-offset: 4px; }

#request-modal .clinic-role-field { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  #directions .directions-grid { grid-auto-rows: 330px; }
  #directions .direction-art { width: 185px; height: 185px; }
  #directions .direction-item:nth-child(3) .direction-art { width: 205px; height: 205px; }
  #directions .direction-item h3 { font-size: 27px; }
  #organizer .organizer-statement h2 { font-size: 56px; }
  #organizer .organizer-copy > p { font-size: 17px; }
  #geography .geography-current, #geography .geography-current-content { min-height: 560px; }
  #geography .geography-route strong { font-size: 14px; }
  #clinics h2 { font-size: 58px; }
  #contact h2 { font-size: 58px; }
}

@media (max-width: 900px) {
  #directions .directions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #directions .direction-item:nth-child(n) { padding: 24px; }
  #directions .direction-art { width: 220px; height: 220px; top: -11px; right: 6px; }
  #directions .direction-item:nth-child(3) .direction-art { width: 232px; height: 232px; top: -17px; right: 0; }
  #directions .direction-item h3 { font-size: 24px; }
  #organizer .organizer-layout, #organizer .organizer-boundary { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 4%; }
  #organizer .organizer-statement h2 { font-size: 43px; }
  #organizer .organizer-copy > p { font-size: 16px; }
  #geography .geography-layout { grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); gap: 3%; }
  #geography .geography-current-content { padding: 28px 24px 23px; }
  #geography .geography-route strong { font-size: 12px; }
  #geography .geography-route small { font-size: 10px; }
  #geography .geography-future { padding-left: 12px; }
  #geography .geography-places { font-size: 18px; }
  #faq .faq-intro { position: relative; top: auto; }
  #clinics .clinics-lead { font-size: 16px; }
  #contact .contact-inner { gap: 5%; }
  #contact h2 { font-size: 43px; }
}

@media (max-width: 700px) {
  #directions .directions-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; gap: 13px; }
  #directions .direction-item:nth-child(n) {
    display: flex;
    justify-content: flex-end;
    min-height: 0;
    padding: 18px 18px 17px;
    border-radius: 24px;
  }
  #directions .direction-index { position: absolute; top: 17px; left: 18px; }
  #directions .direction-art,
  #directions .direction-item:nth-child(3) .direction-art {
    top: -2px; right: auto; left: 50%;
    width: 220px; height: 220px;
    margin: 0;
    transform: translateX(-50%);
  }
  #directions .direction-copy { width: 100%; margin: 0; }
  #directions .direction-item h3,
  #directions .direction-item:nth-child(3) h3 { font-size: clamp(20px, 5.15vw, 22px); }
  #directions .direction-note { margin-top: 9px; font-size: 13px; line-height: 1.36; }

  #organizer.organizer { padding: 74px 0 79px; }
  #organizer .organizer-layout { display: block; margin-top: 0; }
  #organizer .organizer-statement h2 { max-width: 12ch; font-size: clamp(37px, 9.2vw, 45px); }
  #organizer .organizer-name { margin-top: 18px; font-size: 13px; }
  #organizer .organizer-copy { margin-top: 0; padding-top: 25px; }
  #organizer .organizer-copy > p { font-size: 16px; }
  #organizer .organizer-boundary { display: block; margin-top: 37px; padding-top: 24px; }
  #organizer .organizer-boundary > div + div { margin-top: 27px; }
  #organizer .organizer-boundary p { font-size: 21px; }

  #geography .geography-layout { display: block; }
  #geography .geography-current, #geography .geography-current-content { min-height: 0; }
  #geography .geography-atmosphere img { object-position: 62% center; }
  #geography .geography-current::after { background: linear-gradient(90deg, rgba(12,34,54,.92), rgba(12,34,54,.65)), linear-gradient(0deg, rgba(12,34,54,.84), transparent 50%); }
  #geography .geography-current-content { padding: 26px 22px 25px; }
  #geography .geography-place { margin: 26px 0 38px; font-size: 52px; }
  #geography .geography-route-label { margin: 0 0 11px; }
  #geography .geography-route { padding: 20px 15px 15px; }
  #geography .geography-route-svg { display: none; }
  #geography .geography-route ol { display: block; }
  #geography .geography-route ol::before { display: none; }
  #geography .geography-route li { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 0 12px; align-content: start; text-align: left; }
  #geography .geography-route li:first-child { min-height: 108px; }
  #geography .geography-route li:nth-child(2) { min-height: 64px; }
  #geography .geography-route li:first-child::after,
  #geography .geography-route li:nth-child(2)::after { content: ""; position: absolute; top: 18px; bottom: 0; left: 7px; width: 2px; background: #9dccff; }
  #geography .geography-route li:nth-child(2)::after { width: 0; border-left: 2px dashed #b9ddff; background: none; }
  #geography .geography-dot { grid-column: 1; grid-row: 1 / 3; width: 15px; height: 15px; margin: 2px 0 0; }
  #geography .geography-route strong { grid-column: 2; font-size: 15px; }
  #geography .geography-route small { grid-column: 2; max-width: none; margin: 3px 0 0; font-size: 11px; }
  #geography .geography-cta { width: 100%; margin-top: 18px; }
  #geography .geography-caption { font-size: 10px; }
  #geography .geography-future { margin-top: 30px; padding: 25px 0 0; border-left: 0; border-top: 1px solid rgba(33,54,76,.16); }
  #geography .geography-places { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; font-size: 19px; }

  #faq .faq-intro { position: relative; top: auto; }
  #faq .faq-intro .scene-label { margin-bottom: 23px; }
  #faq .faq-answer { font-size: 15px; }

  #clinics.clinics { padding: 77px 0 82px; }
  #clinics .scene-label { margin-bottom: 28px; }
  #clinics h2 { max-width: 12ch; font-size: clamp(38px, 9.7vw, 44px); margin-bottom: 25px; }
  #clinics .clinics-lead { font-size: 16px; line-height: 1.48; }
  #clinics .clinics-action { order: 4; width: 100%; margin-top: 30px; }
  #clinics .clinics-cta { width: 100%; }
  #clinics .clinics-note { font-size: 13px; }
  #clinics .clinics-prompts { order: 3; width: 100%; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(226,241,255,.28); }
  #clinics .clinics-prompts ul { grid-template-columns: 1fr; gap: 15px; }
  #clinics .clinics-prompts li { font-size: 16px; }
  #clinics .clinics-prompts li::before { display: inline-block; margin: 0 10px 3px 0; }

  #contact.contact { padding: 76px 0 84px; }
  #contact .contact-inner { display: block; }
  #contact h2 { max-width: 14ch; font-size: clamp(30px, 8.2vw, 38px); }
  #contact .contact-action { padding-top: 24px; }
  #contact .contact-action p { font-size: 16px; }
  #contact .contact-phone { font-size: 22px; }
}

@media (max-width: 370px) {
  #directions .directions-grid { grid-auto-rows: 280px; }
  #directions .direction-item h3,
  #directions .direction-item:nth-child(3) h3 { font-size: 20px; }
  #directions .direction-note { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #geography .geography-route-progress { stroke-dashoffset: 0; transition: none; }
}
