:root {
  --home-navy: #0b2d4f;
  --home-blue: #0063df;
  --home-muted: #6e87aa;
  --home-pale: #e8f2ff;
}

.institution-bar {
  height: 45px;
  background: #0a2b4a;
  color: #eef5fd;
  font-size: 13px;
}

.institution-bar > .site-container,
.public-header.site-container,
.hero-grid.site-container {
  max-width: 1416px;
}

.institution-bar > .site-container {
  min-height: 45px;
  padding-left: 36px;
  padding-right: 36px;
}

.institution-state { color: #e0e9f2; }
.institution-bar a { color: #eef5fd; font-size: 12px; }

.public-header.site-container {
  height: 91px;
  padding-left: 36px;
  padding-right: 16px;
  border-bottom: 1px solid #edf1f6;
  gap: 24px;
}

.public-header .brand { gap: 38px; color: var(--home-navy); }
.public-header .brand-type { color: var(--home-navy); font-size: 35px; letter-spacing: -1.6px; }
.public-header .brand-type > span { font-size: 10px; }
.public-header .brand-divider { height: 46px; background: #d6e0ea; }
.public-header .brand-product { color: var(--home-navy); font-size: 16px; line-height: 1.35; }
.public-header .brand-product strong { color: #0757bd; font-size: 20px; }
.public-header nav { gap: 34px; }
.public-header nav > .desktop-link { color: #455f7d; font-size: 13px; }
.public-header nav > .desktop-link:hover { color: var(--home-blue); }
.public-header nav > .btn { border-color: #b4c9e3; border-radius: 11px; color: var(--home-blue); font-size: 14px; padding: 12px 18px; }
.public-header nav > .btn .bi { font-size: 16px; }

.hero-section {
  min-height: 704px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(108deg, #fff 0%, #fff 34%, #f7faff 60%, #eef6ff 100%);
}

.hero-grid.site-container {
  display: grid;
  grid-template-columns: minmax(410px, .88fr) minmax(700px, 1.43fr);
  align-items: center;
  gap: 14px;
  min-height: 704px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-copy { position: relative; z-index: 2; max-width: 505px; transform: translateY(13px); }
.hero-copy .eyebrow { margin-bottom: 20px; color: #5b759b; font-size: 12px; letter-spacing: .16em; }
.hero-copy .eyebrow-line { width: 32px; height: 2px; margin-right: 12px; background: #0063df; }
.hero-copy h1 { margin-bottom: 34px; color: var(--home-navy); font-size: 88px; font-weight: 750; letter-spacing: -.075em; line-height: 1.03; }
.hero-copy h1 span { color: #0863d9; }
.hero-copy h1 .hero-title-prefix { display: block; color: var(--home-navy); white-space: nowrap; }
.hero-description { margin-bottom: 13px; color: var(--home-navy); font-size: 27px; font-weight: 650; letter-spacing: -.035em; line-height: 1.3; }
.hero-intro { max-width: 480px; margin-bottom: 39px; color: var(--home-muted); font-size: 16px; line-height: 1.82; }
.hero-actions { gap: 18px; }
.hero-actions .btn { min-height: 64px; border-radius: 10px; font-size: 15px; font-weight: 650; }
.hero-actions .btn-primary { min-width: 228px; border-color: #075fce; background: #075fce; box-shadow: 0 8px 18px #075fce1a; padding: 17px 24px; }
.hero-actions .btn-primary:hover { border-color: #064ea7; background: #064ea7; }
.hero-actions .btn-primary .bi { font-size: 17px; }
.hero-actions .hero-secondary { min-width: 248px; padding: 16px 20px; border-color: #76a9f3; color: #075fce; font-size: 14px; white-space: nowrap; }
.hero-actions .hero-secondary:hover { background: #f3f8ff; }
.hero-actions .hero-secondary .bi { font-size: 15px; }
.hero-reassurance { margin-top: 35px; color: #6d85a5; font-size: 13px; gap: 12px; }
.hero-reassurance .bi { color: #0063df; font-size: 19px; }

.hero-visual {
  position: relative;
  z-index: 1;
  width: 910px;
  height: 630px;
  margin-left: -24px;
  isolation: isolate;
}

.hero-blue-shape,
.hero-outline-shape,
.hero-student,
.hero-landscape,
.journey-visual { position: absolute; }
.hero-blue-shape {
  z-index: -1;
  top: -2px;
  left: 250px;
  width: 661px;
  height: 620px;
  border-radius: 38px;
  background: linear-gradient(145deg, #0b69d4 0%, #0756bd 64%, #0868d6 100%);
  box-shadow: 0 28px 64px #075fc81c;
}
.hero-outline-shape {
  z-index: -2;
  top: 0;
  left: 706px;
  width: 202px;
  height: 462px;
  border: 1px solid #b8d5ff;
  border-radius: 34px;
  background: transparent;
}
.hero-student {
  z-index: 1;
  top: 28px;
  left: 18px;
  width: 278px;
  height: 542px;
  border-radius: 22px;
  object-fit: cover;
  object-position: 46% center;
  box-shadow: 0 12px 28px #173a5714;
}
.hero-landscape {
  z-index: 1;
  top: 111px;
  right: -65px;
  width: 168px;
  height: 290px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 24px #173a5714;
}

.journey-visual {
  z-index: 3;
  top: 38px;
  right: 55px;
  width: 562px;
  height: 584px;
  padding: 32px 36px 0;
  overflow: hidden;
  border: 1px solid #e9eff6;
  border-radius: 20px;
  background: #fff;
  color: var(--home-navy);
  box-shadow: 0 30px 72px #17395d20, 0 4px 14px #17395d0b;
}
.journey-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #647e9f; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.journey-brand { display: inline-flex; align-items: center; gap: 11px; }
.journey-brand-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #e0edff; border-radius: 12px; background: #f2f7ff; }
.journey-brand-icon .bi { color: #0063df; font-size: 19px; }
.journey-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #d8e8ff; border-radius: 999px; background: #f5f9ff; color: #2768bd; font-size: 9px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.journey-pill .bi { color: #2675d5; font-size: 11px; }
.journey-heading { margin: 20px 0 17px; color: var(--home-navy); font-size: 37px; font-weight: 700; letter-spacing: -.055em; line-height: 1.18; }
.journey-heading > span { color: #0965d8; }
.journey-steps { display: grid; gap: 14px; }
.journey-line { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) 40px; align-items: center; gap: 16px; min-height: 84px; }
.journey-line:not(.last)::after { position: absolute; top: 63px; left: 29px; height: 38px; border-left: 1px solid #bfdaff; content: ''; }
.journey-line:first-child { min-height: 84px; margin: 0 -12px; padding: 0 12px; border: 1px solid #e4efff; border-radius: 16px; background: #f5f9ff; }
.journey-line:first-child::after { top: 72px; left: 41px; }
.journey-node { display: grid; width: 60px; height: 60px; place-items: center; border: 1px solid #e0efff; border-radius: 13px; background: #e9f3ff; color: #0063df; font-size: 25px; }
.journey-node.done { border-color: #c5ddff; background: #e7f2ff; color: #075fc9; }
.journey-copy { min-width: 0; }
.journey-copy > span { display: block; margin-bottom: 5px; color: #596f8e; font-size: 10px; font-weight: 650; letter-spacing: .065em; }
.journey-copy > strong { display: block; color: var(--home-navy); font-size: 16px; font-weight: 650; line-height: 1.35; }
.journey-copy > p { margin: 3px 0 0; color: #587091; font-size: 14px; line-height: 1.45; }
.journey-status { display: grid; width: 24px; height: 24px; place-items: center; justify-self: end; border: 1.5px solid #9ec7ff; border-radius: 50%; color: #0063df; }
.journey-status.done { width: 40px; height: 40px; border: 0; background: #e7f2ff; font-size: 18px; }
.journey-footer { display: flex; align-items: center; gap: 13px; margin-top: 11px; padding-top: 18px; border-top: 1px solid #dce5f0; color: #37577b; font-size: 13px; }
.journey-footer .bi { color: #0063df; font-size: 18px; }
.journey-footer > span { margin-left: 0; color: #37577b; }
.journey-footer > span:last-child { margin-left: auto; }

.period-band { background: #f4f8fc; border-bottom: 1px solid #edf2f7; }
.period-strip.site-container { max-width: 1232px; min-height: 89px; gap: 17px; padding: 20px 36px; border: 0; }
.period-icon { width: 60px; height: 60px; border-radius: 12px; background: #e8f2ff; font-size: 27px; }
.period-strip > div:nth-child(2) { position: relative; min-width: 240px; padding-right: 38px; border-right: 1px solid #d7e1ec; }
.period-strip > div:nth-child(2) > span { margin-bottom: 3px; color: #7087a8; font-size: 10px; letter-spacing: .12em; }
.period-strip strong { color: var(--home-navy); font-size: 20px; }
.period-strip-right { gap: 36px; }
.period-strip-right .status { padding: 7px 12px; border-radius: 7px; font-size: 12px; }
.period-strip-right > span:last-child:not(:first-child) { padding-left: 36px; border-left: 1px solid #d7e1ec; color: #6e87aa; font-size: 13px; white-space: nowrap; }

.section-heading .eyebrow { color: #5f7ca2; }
.section-heading h2 { color: var(--home-navy); }
.faq-section { padding-top: 12px; padding-bottom: 72px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.faq-list details { padding: 20px 0; border-top: 1px solid #dce5ef; }
.faq-list summary { color: var(--home-navy); cursor: pointer; font-size: 16px; font-weight: 650; }
.faq-list details p { max-width: 570px; margin: 13px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.8; }

@media (max-width: 1390px) {
  .public-header.site-container,
  .hero-grid.site-container,
  .institution-bar > .site-container { max-width: 1280px; }
  .public-header.site-container { padding-right: 36px; }
  .public-header nav { gap: 21px; }
  .hero-section, .hero-grid.site-container { min-height: 670px; }
  .hero-grid.site-container { grid-template-columns: minmax(390px, .88fr) minmax(600px, 1.35fr); gap: 12px; }
  .hero-copy { transform: translateY(8px); }
  .hero-copy h1 { margin-bottom: 24px; font-size: 74px; }
  .hero-description { font-size: 24px; }
  .hero-intro { max-width: 430px; margin-bottom: 28px; font-size: 15px; }
  .hero-copy-break { display: none; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { min-height: 58px; font-size: 13px; }
  .hero-actions .btn-primary { min-width: 0; padding: 14px 18px; }
  .hero-actions .hero-secondary { min-width: 0; padding: 13px 15px; font-size: 12px; }
  .hero-visual { width: min(910px, calc(100vw - 500px)); height: 570px; margin-left: -34px; }
  .hero-blue-shape { top: 0; left: 185px; width: 540px; height: 560px; }
  .hero-outline-shape { left: 560px; width: 172px; height: 420px; }
  .hero-student { top: 42px; left: 14px; width: 230px; height: 455px; }
  .hero-landscape { top: 103px; right: -10px; width: 142px; height: 245px; }
  .journey-visual { top: 25px; right: 28px; width: min(500px, 68%); height: 520px; padding: 27px 27px 0; }
  .journey-heading { margin: 16px 0 17px; font-size: 31px; }
  .journey-steps { gap: 14px; }
  .journey-line { grid-template-columns: 50px minmax(0, 1fr) 30px; gap: 12px; min-height: 75px; }
  .journey-line:not(.last)::after { top: 53px; left: 24px; height: 36px; }
  .journey-line:first-child { margin: 0 -8px; padding: 0 8px; border-radius: 13px; }
  .journey-line:first-child::after { top: 53px; left: 32px; }
  .journey-node { width: 50px; height: 50px; font-size: 22px; }
  .journey-copy > strong { font-size: 14px; }
  .journey-copy > p { font-size: 12px; }
  .journey-status.done { width: 34px; height: 34px; }
  .journey-footer { margin-top: 12px; padding-top: 14px; font-size: 11px; }
}

@media (max-width: 760px) {
  .institution-bar { height: 36px; font-size: 10px; }
  .institution-bar > .site-container { min-height: 36px; padding-left: 20px; padding-right: 20px; }
  .institution-bar a { font-size: 10px; }
  .public-header.site-container { height: 76px; padding-left: 20px; padding-right: 20px; }
  .public-header .brand { gap: 10px; }
  .public-header .brand-type { font-size: 25px; }
  .public-header .brand-type > span { font-size: 7px; }
  .public-header .brand-divider { height: 34px; }
  .public-header .brand-product { font-size: 10px; }
  .public-header .brand-product strong { font-size: 13px; }
  .public-header nav { gap: 0; }
  .public-header nav > .desktop-link { display: none; }
  .public-header nav > .btn { gap: 7px; padding: 9px 11px; font-size: 11px; white-space: nowrap; }
  .hero-section { min-height: 0; overflow: hidden; }
  .hero-grid.site-container { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 30px; padding: 43px 22px 35px; }
  .hero-copy { max-width: 560px; transform: none; }
  .hero-copy .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .hero-copy h1 { margin-bottom: 19px; font-size: clamp(56px, 12vw, 72px); }
  .hero-description { margin-bottom: 8px; font-size: 22px; }
  .hero-intro { max-width: 510px; margin-bottom: 23px; font-size: 14px; line-height: 1.8; }
  .hero-copy-break { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn { min-height: 52px; font-size: 13px; }
  .hero-actions .btn-primary { padding: 12px 17px; }
  .hero-actions .hero-secondary { padding: 11px 13px; font-size: 12px; }
  .hero-reassurance { margin-top: 18px; font-size: 11px; }
  .hero-visual { width: min(100%, 560px); height: 590px; margin: 0 auto; }
  .hero-blue-shape { top: 15px; left: 48px; width: calc(100% - 52px); height: 500px; border-radius: 25px; }
  .hero-outline-shape { top: 9px; left: auto; right: 0; width: 115px; height: 310px; border-radius: 25px; }
  .hero-student { top: 0; left: 0; width: 166px; height: 320px; border-radius: 18px; object-position: 44% center; }
  .hero-landscape { top: 31px; right: 0; width: 104px; height: 180px; border-radius: 15px; }
  .journey-visual { top: 140px; right: 0; width: calc(100% - 8px); height: 445px; padding: 19px 19px 0; border-radius: 18px; }
  .journey-top { font-size: 8px; }
  .journey-brand { gap: 8px; }
  .journey-brand-icon { width: 32px; height: 32px; border-radius: 10px; }
  .journey-brand-icon .bi { font-size: 17px; }
  .journey-pill { gap: 4px; padding: 6px 8px; font-size: 8px; }
  .journey-pill .bi { font-size: 10px; }
  .journey-heading { margin: 15px 0 12px; font-size: 28px; }
  .journey-steps { gap: 9px; }
  .journey-line { grid-template-columns: 43px minmax(0, 1fr) 24px; gap: 10px; min-height: 66px; }
  .journey-line:not(.last)::after { top: 47px; left: 21px; height: 29px; }
  .journey-line:first-child { margin: 0 -7px; padding: 0 7px; border-radius: 12px; }
  .journey-line:first-child::after { top: 47px; left: 28px; }
  .journey-node { width: 43px; height: 43px; border-radius: 10px; font-size: 19px; }
  .journey-copy > span { margin-bottom: 3px; font-size: 8px; }
  .journey-copy > strong { font-size: 12px; }
  .journey-copy > p { margin-top: 2px; font-size: 10px; }
  .journey-status { width: 19px; height: 19px; }
  .journey-status.done { width: 28px; height: 28px; font-size: 14px; }
  .journey-footer { margin-top: 8px; padding-top: 10px; gap: 8px; font-size: 9px; }
  .journey-footer .bi { font-size: 15px; }
  .period-strip.site-container { min-height: 0; flex-wrap: wrap; padding: 20px; gap: 12px; }
  .period-icon { width: 48px; height: 48px; font-size: 22px; }
  .period-strip > div:nth-child(2) { min-width: 0; flex: 1; padding-right: 0; border-right: 0; }
  .period-strip strong { font-size: 16px; }
  .period-strip-right { width: 100%; margin-left: 60px; flex-wrap: wrap; gap: 12px; }
  .period-strip-right > span:last-child:not(:first-child) { padding-left: 12px; font-size: 11px; }
  .faq-section { padding: 0 22px 44px; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .public-header.site-container { padding-left: 15px; padding-right: 15px; }
  .public-header .brand { gap: 8px; }
  .public-header .brand-type { font-size: 23px; }
  .public-header .brand-divider { height: 31px; }
  .public-header .brand-product { font-size: 9px; }
  .public-header .brand-product strong { font-size: 12px; }
  .public-header nav > .btn { padding: 8px 9px; font-size: 10px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-grid.site-container { padding-left: 20px; padding-right: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .journey-visual { padding-right: 15px; padding-left: 15px; }
  .journey-line { grid-template-columns: 39px minmax(0, 1fr) 21px; gap: 8px; }
  .journey-node { width: 39px; height: 42px; font-size: 17px; }
  .journey-line:not(.last)::after { left: 19px; }
  .journey-copy > strong { font-size: 11px; }
  .journey-copy > p { font-size: 9px; }
  .journey-status.done { width: 24px; height: 24px; }
  .journey-footer { font-size: 8px; }
  .period-strip.site-container { padding: 18px 16px; }
  .period-strip-right { margin-left: 0; }
}

/* Modalidades: banner panorâmico e cartões em sobreposição. */
.modalities-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 48px;
  overflow: hidden;
  background: #f7faff;
}

.modalities-showcase {
  position: relative;
  height: 420px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 14% 7%, rgb(13 78 137 / 40%), transparent 43%),
    linear-gradient(112deg, #062b54 0%, #062b54 45%, #073e75 74%, #0755a6 100%);
}

.modalities-showcase::before {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 54%;
  background: linear-gradient(135deg, rgb(3 25 52 / 18%), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 76%);
  content: "";
  pointer-events: none;
}

.modalities-blue-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.modalities-blue-shape-top {
  top: -93px;
  right: 38%;
  width: 245px;
  height: 190px;
  transform: rotate(-11deg);
  border-radius: 31px;
  background: linear-gradient(145deg, #0752a3, #06457f);
}

.modalities-blue-shape-bottom {
  bottom: -118px;
  left: 43%;
  width: 214px;
  height: 305px;
  transform: skewX(-17deg) rotate(-8deg);
  border-radius: 34px;
  background: linear-gradient(150deg, #0751bd, #0871e9);
}

.modalities-photo {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 auto;
  width: 53%;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  background: #245d7b;
}

.modalities-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(6 43 84 / 13%), transparent 31%, rgb(5 30 55 / 9%));
  content: "";
  pointer-events: none;
}

.modalities-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
  filter: saturate(1.06) contrast(1.02);
}

.modalities-photo-credit {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(4 30 57 / 62%);
  color: #fff;
  font-size: 10px;
  line-height: 1.25;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.modalities-photo-credit:hover { background: rgb(4 30 57 / 84%); color: #fff; }
.modalities-photo-credit:focus-visible { outline: 3px solid #83c9ff; outline-offset: 3px; }

.modalities-copy.site-container {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 1232px;
  height: 100%;
  margin: 0 auto;
  padding: 78px 36px 0;
  color: #fff;
}

.modalities-copy .eyebrow {
  display: flex;
  align-items: center;
  margin: 0;
  color: #f2f7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.modalities-copy .eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  margin-right: 16px;
  background: #35baff;
}

.modalities-copy h2 {
  margin: 20px 0 13px;
  color: #fff;
  font-size: clamp(48px, 4vw, 62px);
  font-weight: 760;
  letter-spacing: -.07em;
  line-height: 1.02;
}

.modalities-copy h2 > span { color: #55b5ff; }

.modalities-copy > p {
  max-width: 500px;
  margin: 0;
  color: #e1edf8;
  font-size: 19px;
  line-height: 1.45;
}

.modalities-section > .modality-grid.site-container {
  position: relative;
  z-index: 4;
  display: grid;
  width: calc(100% - 72px);
  max-width: 1160px;
  margin: -68px auto 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.modalities-section .modality-card {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  padding: 25px 28px 23px;
  border: 1px solid #e7eef6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 19px 44px rgb(14 52 91 / 10%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.modalities-section .modality-card:hover {
  transform: translateY(-3px);
  border-color: #c8dcf4;
  box-shadow: 0 23px 48px rgb(14 52 91 / 14%);
}

.modalities-section .modality-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
}

.modalities-section .modality-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e3f0ff;
  border-radius: 13px;
  background: #e7f3ff;
  color: #0063df;
  font-size: 25px;
}

.modalities-section .modality-index {
  color: #8ba8ca;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.modalities-section .modality-card h3 {
  margin: 0 0 8px;
  color: #092f58;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.modalities-section .modality-card > p {
  max-width: 320px;
  min-height: 48px;
  margin: 0 0 12px;
  color: #3f628d;
  font-size: 15px;
  line-height: 1.55;
}

.modalities-section .modality-card > form {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: auto;
}

.modalities-section .modality-card .field-help {
  margin: auto 0 15px;
  padding: 0;
  border: 0;
  color: #41658f;
  font-size: 13px;
  line-height: 1.5;
}

.modalities-section .modality-card .small-label {
  margin: auto 0 6px;
  color: #41658f;
}

.modalities-section .modality-card .form-select { margin-bottom: 14px !important; }

.modalities-section .modality-card .btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  border: 1.5px solid #0873ff;
  border-radius: 8px;
  background: #fff;
  color: #0063df;
  font-size: 14px;
  font-weight: 650;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.modalities-section .modality-card .btn:hover:not(:disabled) {
  background: #eef6ff;
  box-shadow: 0 5px 14px rgb(0 99 223 / 12%);
  color: #034eaa;
}

.modalities-section .modality-card .btn:focus-visible {
  outline: 3px solid #83c2ff;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .modalities-showcase { height: 380px; }
  .modalities-copy.site-container { padding: 68px 32px 0; }
  .modalities-copy h2 { font-size: clamp(46px, 6vw, 60px); }
  .modalities-copy > p { font-size: 18px; }
  .modalities-section > .modality-grid.site-container {
    width: calc(100% - 52px);
    margin-top: -58px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modalities-section .modality-card { min-height: 300px; padding: 24px; }
  .modalities-section .modality-card:last-child:nth-child(odd) { width: calc((100% - 18px) / 2); grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 760px) {
  .modalities-section { padding-bottom: 36px; }
  .modalities-showcase { height: 340px; }
  .modalities-photo {
    width: 100%;
    clip-path: none;
  }
  .modalities-photo::after {
    background: linear-gradient(90deg, rgb(6 43 84 / 94%) 0%, rgb(6 43 84 / 79%) 58%, rgb(6 43 84 / 58%) 100%);
  }
  .modalities-photo > img { object-position: 53% 45%; }
  .modalities-photo-credit { right: 12px; bottom: 12px; font-size: 9px; }
  .modalities-blue-shape-top { right: 12%; opacity: .55; }
  .modalities-blue-shape-bottom { display: none; }
  .modalities-copy.site-container { padding: 52px 22px 0; }
  .modalities-copy .eyebrow { font-size: 10px; }
  .modalities-copy .eyebrow-line { width: 30px; margin-right: 12px; }
  .modalities-copy h2 { margin: 18px 0 12px; font-size: clamp(42px, 9vw, 56px); }
  .modalities-copy > p { max-width: 440px; font-size: 16px; }
  .modalities-copy > p .desktop-link { display: none; }
  .modalities-section > .modality-grid.site-container {
    width: calc(100% - 36px);
    margin-top: -30px;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .modalities-section .modality-card,
  .modalities-section .modality-card:last-child:nth-child(odd) {
    width: 100%;
    min-height: 0;
    grid-column: auto;
    padding: 22px;
  }
  .modalities-section .modality-card-top { margin-bottom: 15px; }
  .modalities-section .modality-icon { width: 54px; height: 54px; border-radius: 12px; font-size: 23px; }
  .modalities-section .modality-index { font-size: 14px; }
  .modalities-section .modality-card h3 { font-size: 22px; }
  .modalities-section .modality-card > p { min-height: 0; margin-bottom: 15px; font-size: 15px; }
  .modalities-section .modality-card .field-help { margin-bottom: 14px; font-size: 13px; }
  .modalities-section .modality-card .btn { min-height: 46px; font-size: 14px; }
}

@media (max-width: 430px) {
  .modalities-showcase { height: 320px; }
  .modalities-copy.site-container { padding: 45px 20px 0; }
  .modalities-copy h2 { font-size: clamp(38px, 11vw, 46px); }
  .modalities-copy > p { font-size: 15px; }
  .modalities-section > .modality-grid.site-container { width: calc(100% - 30px); }
  .modalities-section .modality-card,
  .modalities-section .modality-card:last-child:nth-child(odd) { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .modalities-section .modality-card,
  .modalities-section .modality-card .btn { transition: none; }
  .modalities-section .modality-card:hover { transform: none; }
}
