.wayfinder-dialog {
  position: fixed;
  inset: 0;
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 28px;
  background: #f7f9fc;
  color: #172033;
  box-shadow: 0 36px 100px rgba(2, 8, 23, .42);
}
.wayfinder-dialog::backdrop { background: rgba(4, 10, 24, .76); backdrop-filter: blur(8px); }
.wayfinder-dialog-shell { max-height: inherit; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wayfinder-dialog-close { position: sticky; z-index: 2; top: 14px; float: right; width: 42px; height: 42px; margin: 14px 14px -56px 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(12,22,42,.42); color: #fff; font-size: 1.15rem; cursor: pointer; backdrop-filter: blur(12px); }
.wayfinder-dialog-hero { position: relative; padding: 58px clamp(26px,7vw,76px) 42px; overflow: hidden; background: radial-gradient(circle at 85% 8%,rgba(56,189,248,.32),transparent 30%),linear-gradient(135deg,#091b35,#123b68 58%,#125c70); color: white; }
.wayfinder-dialog-hero::after { position: absolute; right: -74px; bottom: -155px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.035),0 0 0 72px rgba(255,255,255,.025); content: ""; pointer-events: none; }
.wayfinder-kicker,.wayfinder-section-index { color: #36d4c2; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.wayfinder-kicker i { margin-right: 8px; }
.wayfinder-dialog-hero h2 { position: relative; z-index: 1; margin: 14px 0 2px; color: #fff; font-size: clamp(3rem,8vw,5.8rem); font-weight: 800; letter-spacing: .07em; line-height: 1; }
.wayfinder-dialog-hero p { position: relative; z-index: 1; max-width: 690px; color: rgba(239,246,255,.78); line-height: 1.75; }
.wayfinder-dialog-hero .wayfinder-dialog-lead { margin: 12px 0 10px; color: #fff; font-size: clamp(1.05rem,2.3vw,1.4rem); font-weight: 650; }
.wayfinder-dialog-badges,.wayfinder-progress-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.wayfinder-dialog-badges span,.wayfinder-progress-tags span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #e6fbff; font-size: .72rem; font-weight: 750; letter-spacing: .11em; }
.wayfinder-dialog-content { padding: 10px clamp(24px,7vw,76px) 30px; }
.wayfinder-modal-section { padding: 28px 0; border-bottom: 1px solid #e0e7ef; }
.wayfinder-modal-section h3 { margin: 8px 0 12px; color: #15243b; font-size: clamp(1.25rem,2.5vw,1.8rem); line-height: 1.25; }
.wayfinder-modal-section > p,.wayfinder-modal-team p { max-width: 760px; color: #58667a; line-height: 1.75; }
.wayfinder-capability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.wayfinder-capability-grid article { padding: 20px; border: 1px solid #e0e7ef; border-radius: 18px; background: #fff; }
.wayfinder-capability-grid article > i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #e2f7f5; color: #087f81; }
.wayfinder-capability-grid h4 { margin: 13px 0 5px; color: #17253a; font-size: 1rem; }
.wayfinder-capability-grid p { margin: 0; color: #66758a; font-size: .9rem; line-height: 1.6; }
.wayfinder-modal-status { padding: 26px; border: 1px solid #cdebe7; border-radius: 20px; background: linear-gradient(135deg,#eefbf9,#f4f8ff); }
.wayfinder-modal-status .wayfinder-progress-tags span { border-color: #d5e4ea; background: #fff; color: #294259; letter-spacing: 0; }
.wayfinder-modal-team > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.wayfinder-modal-team p { margin: 0; padding: 17px; border-radius: 15px; background: #edf2f8; }
.wayfinder-modal-team strong { color: #1b314e; }
.wayfinder-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(24px,7vw,76px) 28px; background: #eaf0f6; }
.wayfinder-dialog-footer > div { display: grid; gap: 4px; }
.wayfinder-dialog-footer strong { color: #123254; }
.wayfinder-dialog-footer span { color: #5d6f83; font-size: .9rem; }
.wayfinder-dialog-footer .btn { flex: 0 0 auto; border: 0; cursor: pointer; }
.wayfinder-modal-vision blockquote { margin: 18px 0 0; padding: 20px 22px; border-left: 3px solid #12a89a; border-radius: 0 14px 14px 0; background: #e9f6f4; color: #183b48; font-size: 1.02rem; font-weight: 650; line-height: 1.65; }
.wayfinder-modal-vision blockquote span { display: block; margin-top: 8px; color: #138985; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.wayfinder-inline-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0; border: 0; background: none; color: #0f928d; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
.wayfinder-inline-button:hover { color: #0b6c73; }
body.dark-theme .wayfinder-dialog { background: #111b2c; color: #e5edf8; }
body.dark-theme .wayfinder-modal-section { border-color: #29364b; }
body.dark-theme .wayfinder-modal-section h3,body.dark-theme .wayfinder-capability-grid h4,body.dark-theme .wayfinder-modal-team strong { color: #eef5ff; }
body.dark-theme .wayfinder-modal-section > p,body.dark-theme .wayfinder-modal-team p,body.dark-theme .wayfinder-capability-grid p { color: #a7b5c8; }
body.dark-theme .wayfinder-capability-grid article,body.dark-theme .wayfinder-modal-team p { border-color: #2b3a50; background: #1b2940; }
body.dark-theme .wayfinder-modal-status { border-color: #235b5a; background: linear-gradient(135deg,#142e34,#1a2940); }
body.dark-theme .wayfinder-modal-status .wayfinder-progress-tags span { border-color: #35485c; background: #1b2940; color: #d7e8f5; }
body.dark-theme .wayfinder-dialog-footer { background: #1a2940; }
body.dark-theme .wayfinder-dialog-footer strong { color: #d4f8f2; }
body.dark-theme .wayfinder-dialog-footer span { color: #a7b5c8; }
body.dark-theme .wayfinder-modal-vision blockquote { background: #1b393e; color: #d6f4ef; }
@media (max-width: 620px) {
  .wayfinder-dialog { width: calc(100vw - 20px); max-height: 94vh; max-height: 94dvh; border-radius: 20px; }
  .wayfinder-dialog-hero { padding: 52px 20px 28px; }
  .wayfinder-dialog-content { padding: 8px 20px 22px; }
  .wayfinder-modal-section { padding: 23px 0; }
  .wayfinder-modal-status { padding: 20px; }
  .wayfinder-capability-grid article { padding: 17px; }
  .wayfinder-capability-grid,.wayfinder-modal-team > div { grid-template-columns: 1fr; }
  .wayfinder-dialog-footer { align-items: stretch; flex-direction: column; padding: 19px 20px calc(20px + env(safe-area-inset-bottom)); }
  .wayfinder-dialog-footer .btn { width: 100%; min-height: 48px; white-space: normal; }
  .wayfinder-dialog-close { width: 44px; height: 44px; margin: 10px 10px -54px 0; }
  .wayfinder-dialog-hero h2 { font-size: clamp(2.65rem,15vw,4.25rem); }
  .wayfinder-kicker { font-size: .62rem; letter-spacing: .1em; }
  .wayfinder-dialog-hero p { font-size: .92rem; }
  .wayfinder-modal-vision blockquote { padding: 17px; font-size: .95rem; }
}

@media (max-width: 380px) {
  .wayfinder-dialog { width: calc(100vw - 12px); border-radius: 16px; }
  .wayfinder-dialog-hero { padding-right: 16px; padding-left: 16px; }
  .wayfinder-dialog-content { padding-right: 16px; padding-left: 16px; }
  .wayfinder-dialog-footer { padding-right: 16px; padding-left: 16px; }
  .wayfinder-dialog-badges span { padding: 7px 9px; font-size: .65rem; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .wayfinder-dialog { max-height: 96vh; max-height: 96dvh; }
  .wayfinder-dialog-hero { padding-top: 38px; padding-bottom: 22px; }
  .wayfinder-dialog-hero h2 { font-size: 3rem; }
}
