.page-detail .header { position: sticky; top: 0; margin-bottom: calc(-1 * var(--header)); background: transparent; color: white; transition: background-color .2s, color .2s; }
.page-detail .header:is(.is-scrolled,.is-expanded) { background: white; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.page-home .header.is-expanded { background: white; color: var(--ink); text-shadow: none; }
.page-detail .sub-hero { padding-top: var(--header); min-height: clamp(270px, 30vw, 460px); }
.detail-mega { position: relative; width: clamp(570px, 47vw, 820px); align-self: stretch; }
.detail-mega-row, #detail-nav-panel { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.detail-mega-row { width: 100%; height: 100%; }
.detail-mega-row > a { white-space: nowrap; }
#detail-nav-panel { position: absolute; inset: 100% 0 auto; padding-block: 22px 28px; background: white; color: var(--ink); box-shadow: 0 0 0 100vmax white; clip-path: inset(0 -100vmax); border-top: 1px solid var(--line); align-items: start; }
#detail-nav-panel[hidden] { display: none; }
#detail-nav-panel ul { display: grid; gap: 6px; }
#detail-nav-panel a { min-height: 30px; padding: 4px 2px; text-align: center; font-weight: 450; font-size: 14px; }
#detail-nav-panel a:hover { color: #17637e; }
.demo-diagram img { border: 1px solid var(--line); }
.detail-plans .demo-diagram img { max-width: 850px; margin-inline: auto; }
.detail-plans .demo-diagram img { aspect-ratio: 1; object-fit: contain; background: white; }
.detail-plans .demo-diagram figcaption { max-width: 850px; margin-inline: auto; }
.demo-diagram figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 8px; color: var(--muted); font-size: 14px; }
.demo-diagram figcaption a { text-decoration: underline; padding: 2px; }
.detail-demo-section { margin-top: clamp(36px, 6vw, 90px); }
.detail-demo-section > p, .detail-demo-section h2 { margin-bottom: 13px; }
.detail-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-location-lead { text-align: center; }
.detail-location-stories { display: grid; gap: clamp(25px,4vw,52px); margin-top: 20px; padding: clamp(20px,4vw,58px); background: #edf2f4; }
.detail-location-stories li { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,3vw,42px); align-items: center; }
.detail-location-stories li > div { border-top: 1px solid var(--line); align-self: stretch; display: grid; align-content: center; gap: 9px; padding-block: 16px; }
.detail-location-stories h3 { color: #15536a; font-size: clamp(22px,2.1vw,32px); letter-spacing: -.035em; }
.detail-location-stories li:nth-child(even) figure { grid-column: 1; grid-row: 1; }
.detail-location-stories li:nth-child(even) div { grid-column: 2; grid-row: 1; }
.detail-location-stories img { aspect-ratio: 2.2; object-fit: cover; }
.detail-location-stories figcaption { font-size: 13px; color: var(--muted); }
.detail-location-lead.lead-arrived > * { animation: detail-reveal .58s ease-out both; }
.detail-location-lead.lead-arrived h2 { animation-delay: 90ms; }
.detail-location-lead.lead-arrived p:last-child { animation-delay: 190ms; }
@keyframes detail-reveal { from { opacity: 0; transform: translateY(18px); } }
.detail-premium-list { display: grid; gap: 20px; }
.detail-premium-list li { position: relative; min-height: clamp(270px, 25vw, 360px); display: flex; justify-content: flex-end; align-items: end; isolation: isolate; overflow: hidden; padding: clamp(20px, 5vw, 72px); color: white; background: var(--navy); }
.detail-premium-list li:nth-child(even) { justify-content: flex-start; }
.detail-premium-list picture, .detail-premium-list img, .detail-premium-list li::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-premium-list picture { z-index: -2; }
.detail-premium-list img { object-fit: cover; }
.detail-premium-list li::before { content: ""; z-index: -1; background: linear-gradient(270deg,#0e2034de,transparent 95%),linear-gradient(0deg,#0e2034b8,transparent 70%); }
.detail-premium-list li:nth-child(even)::before { background: linear-gradient(90deg,#0e2034de,transparent 95%),linear-gradient(0deg,#0e2034b8,transparent 70%); }
.detail-premium-list li > div { max-width: 31rem; }
.detail-premium-list .eyebrow { color: var(--gold); }
.detail-premium-list h3 { font-size: clamp(24px, 3vw, 40px); }
.demo-form { display: grid; gap: 8px; max-width: 500px; margin-top: 20px; }
.demo-form input:not([type=checkbox]) { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; }
.demo-form small { color: var(--muted); }
.demo-consent { margin-top: 12px; }
.demo-submit { justify-self: start; border: 0; background: var(--navy); color: white; padding: 10px 18px; min-height: 44px; }
.demo-form [role=status]:not(:empty) { background: var(--stone); padding: 10px; }
@media (min-width: 1181px) {
  .page-detail .desktop-nav { gap: clamp(10px, 1.2vw, 23px); }
  .page-home .desktop-nav { gap: clamp(12px, 1.6vw, 30px); }
}
@media (max-width: 1180px) {
  .header-inner { display: flex; justify-content: space-between; }
  .desktop-nav, #detail-nav-panel { display: none; }
}
@media (max-width: 760px) {
  .detail-demo-grid { grid-template-columns: 1fr; }
  .detail-location-stories li { grid-template-columns: 1fr; }
  .detail-location-stories li:nth-child(even) :is(figure,div) { grid-area: auto; }
  .page-detail .sub-hero { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-detail .header { transition: none; }
  .detail-location-lead.lead-arrived > * { animation: none; }
}

.detail-category { gap: 12px; }
.page-detail .detail-category > p { color: white; font-size: clamp(34px, 4vw, 57px); line-height: 1.1; font-weight: 730; letter-spacing: .12em; }
.page-detail .detail-category > h1 { font-size: clamp(18px, 1.6vw, 27px); letter-spacing: -.03em; font-weight: 520; }
.detail-path { gap: clamp(6px, 1vw, 16px); }
.detail-path .crumb-select summary { max-width: 45vw; }
.page-home .header .wordmark { position: fixed; top: calc(var(--header) / 2); left: max(var(--side), calc((100% - 1440px) / 2)); transform: translateY(-50%); }
.page-home .header .desktop-nav { grid-column: 2; }
.page-home .header .header-actions { grid-column: 3; margin-inline-start: auto; }
.paced-line { display: block; }
.paced-readable { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.paced-word { display: inline-block; white-space: nowrap; }
.paced-line .paced-word > span { display: inline-block; }
.paced-prepared:not(.paced-active) :is(.paced-line,.paced-support) { opacity: 0; }
.paced-active .paced-line .paced-word > span { animation: paced-rise 490ms calc(170ms + var(--pace)) cubic-bezier(.19,.65,.23,1) both; }
.paced-active .paced-support { animation: paced-rise 500ms calc(170ms + var(--pace)) cubic-bezier(.19,.65,.23,1) both; }
.overview-intro .paced-line { text-shadow: 0 2px 3px #08172786, 0 5px 17px #08172770; }
.overview-intro .paced-support { text-shadow: 0 1px 4px #081727a0; }
@keyframes paced-rise { from { opacity: 0; translate: 0 .42em; } }
.page-detail .detail-category > p {
  mask-image: linear-gradient(90deg, #000 39%, transparent 61%);
  mask-size: 260% 100%;
  mask-repeat: no-repeat;
  animation: category-sweep 1.04s 80ms cubic-bezier(.23,.57,.25,1) both;
}
@keyframes category-sweep {
  from { mask-position: 100% 0; letter-spacing: .01em; }
  to { mask-position: 0 0; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .paced-active .paced-line .paced-word > span, .paced-active .paced-support { animation: none; }
  .paced-prepared:not(.paced-active) :is(.paced-line,.paced-support) { opacity: 1; }
  .page-detail .detail-category > p { animation: none; mask-image: none; }
}

.site-menu-group > strong { display: block; padding: 16px 4px 0; }
.site-menu-group > a { padding-inline-start: 16px; }
