
/* The concept's vertical presentation, sized by both the width and height of a screen. */
.home {
    --slide-pad: clamp(24px, 4svh, 56px);
    --slide-gap: clamp(16px, 2.5svh, 28px);
}
html.landing { scroll-snap-type: y mandatory; scroll-behavior: smooth; scroll-padding-top: 0; }
.home main > .hero, .home main > .section, .home main > .joinband {
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
}
.home main > .section { display: grid; align-content: center; padding-block: var(--slide-pad); }
.home main > .section > .wrap { min-width: 0; }
.home main > .hero .hero__frame { min-height: 100svh; max-height: none; }
.home main > .joinband { align-content: center; }
.home #join > img { object-position: 60% 60%; }
@media (min-width: 768px) { .home #join .track-line--band { top: 0; width: min(34%, 440px); opacity: .7; transform: translateY(-100%); } }
@media (max-width: 767px) {
    .home main > #join { align-content: start; }
    .home #join > img { object-position: 80% 60%; }
    .home #join .joinband__in { align-self: start; padding-block: clamp(72px, 12svh, 104px) 24px; }
    .home #join .track-line--band { display: none; }
}
.home .ftr { scroll-snap-align: end; scroll-snap-stop: always; margin-top: 0; }
html.landing.is-slide-scrolling { scroll-snap-type: none; scroll-behavior: auto; }
.home .head { margin-bottom: var(--slide-gap); }
.home .head .h2, .home .showcase .h2 { font-size: clamp(28px, min(3vw, 5.5svh), 44px); }
.home .hero__copy { gap: clamp(12px, 2svh, 20px); }
.home .hero__copy .display { font-size: clamp(34px, min(4vw, 7.5svh), 60px); }
.home .hero__copy .hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.home .hero__copy .hero__cta .btn { width: 100%; }
.home .mapband { margin-top: 0; gap: clamp(24px, 4vw, 64px); }
.home .mapshot img { max-height: calc(100svh - var(--slide-pad) * 2); object-fit: contain; }
.home .wall__col--2 { margin-top: clamp(16px, 3svh, 40px); }
.home #feed .wall .fp { gap: 0; }
.home #feed .fp__pad { padding: 16px 20px 0; gap: 10px; }
.home #feed .fp__foot { margin-top: 12px; padding-block: 4px 8px; }
.home #feed .fp__title, .home #feed .fp__excerpt, .home #feed .chk-text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.home #feed .cover { height: clamp(180px, 30svh, 320px); aspect-ratio: auto; }
.home #feed .cover > .ph, .home #feed .cover img { height: 100%; }
.home #feed .coverbox > .rw { margin: 0; }
.home #feed .car__track, .home #feed .qp__photos { --maxh: clamp(180px, 30svh, 320px); }
.home #feed .chk-tile { max-height: clamp(140px, 24svh, 240px); }
.home #routes { padding-block: var(--slide-pad); }
.home #routes .head, .home #routes .filters { margin-bottom: clamp(12px, 2svh, 24px); }
.home #routes .routes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2svh, 24px) clamp(16px, 2vw, 32px); }
.home #routes .route, .home #routes .route__link { gap: 4px; }
.home #routes .route__media { height: clamp(86px, 16svh, 168px); aspect-ratio: auto; }
.home #routes .route__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(15px, 1vw, 18px); line-height: 1.25; }
.home #community .mag__item img { height: auto; aspect-ratio: 16 / 9; }
.home #community .mag-row--no-image { grid-template-columns: minmax(0, 1fr); }
.home main > #community { padding-block: clamp(40px, 5vh, 72px); }
.home #community .head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.home #community .head .h2 { font-size: var(--fs-h2); }
.home #community .mag__item b, .home #community .mag-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .plan, .home .appcard { padding: clamp(20px, 3svh, 32px); gap: clamp(12px, 2svh, 20px); }
.home .plan ul { gap: clamp(8px, 1.5svh, 16px); }
.home .appcard { padding-right: 46%; min-height: clamp(340px, 52svh, 480px); }
.home .keys { gap: clamp(12px, 2svh, 20px); margin-block: clamp(12px, 2svh, 24px); }
.routes-swipe-hint { display: none; }

/* Compact laptops retain the complete composition without shrinking the page as an image. */
@media (min-width: 1024px) and (max-height: 700px) {
    .home { --slide-pad: 24px; --slide-gap: 16px; }
    .home .hero__frame { padding-top: 92px; padding-bottom: 72px; }
    .home .hero__copy .lead { font-size: 18px; }
    .home .hero__find { min-height: 56px; padding-block: 4px; }
    .home #feed .fp__pad { padding-top: 12px; }
    .home #feed, .home #routes { padding-block: 20px; }
    .home #feed .cover { height: 28svh; }
    .home #feed .wall__col--2 { margin-top: 0; }
    .home #feed .fp__foot { margin-top: 8px; }
    .home #routes .route__media { height: clamp(64px, 12svh, 86px); }
    .home .planner { padding: 16px; gap: 8px; }
    .home .planner__day { padding: 8px; }
    .home .trip { min-height: 120px; padding: 12px; }
    .home #regions .place { min-height: 110px; }
    .home #community .community__col { gap: 12px; }
    .home .appcard { min-height: 320px; }
}

/* Dense slides use horizontal browsing on narrow screens, like the concept's route catalogue. */
@media (max-width: 1180px) {
    .home #feed .wall, .home #app .appplus {
        display: flex; --home-panel-width: 88%;
        gap: 20px; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x proximity; padding: 4px 2px 16px; scroll-padding-inline: 2px;
    }
    .home #feed .wall > *, .home #app .appplus > * { min-width: 0; flex: 0 0 var(--home-panel-width); scroll-snap-align: start; }
    .home .wall__col--2 { margin-top: 0; animation: none; }
    .home .appplus .appcard { grid-column: auto; max-width: none; }
    .home .appcard { padding-right: 40%; min-height: 380px; }
    .home .appcard img { position: absolute; width: 32%; right: 4%; bottom: -8%; margin: 0; }
    .home .appcard > .btn { grid-column: 1 / -1; position: relative; z-index: 1; }
    .home .showcase, .home .mapband { gap: var(--slide-gap); }
    .home .showcase .stack { gap: 16px; }
    .home .trips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 42%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; }
    .home .trip { min-height: 120px; scroll-snap-align: start; }
    .home .mosaic { grid-template-columns: none; grid-template-rows: repeat(2, clamp(140px, 24svh, 220px)); grid-auto-flow: column; grid-auto-columns: minmax(180px, 56%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 16px; }
    .home .mosaic .place { min-height: 0; scroll-snap-align: start; }
    .home .mosaic .place--wide { grid-column: auto; grid-row: span 2; }
    .home .mapshot { max-width: min(100%, 85svh); justify-self: center; }
    .home #feed .rw__map { height: 80px; }
}
@media (max-width: 767px) {
    .home #feed { padding-block: 24px; }
    .home .hero__frame { padding: 92px 16px 84px; }
    .home .hero__copy .lead { font-size: 16px; }
    .home .hero__find input { min-height: 44px; }
    .home #feed .wall, .home #app .appplus { --home-panel-width: 94%; gap: 16px; }
    .home #feed .fp__pad { padding-inline: 16px; }
    .home #feed .cover { height: clamp(140px, 23svh, 240px); }
    .home #feed .fp__who { overflow-wrap: anywhere; }
    .home #feed .fp__name { white-space: normal; }
    .home #routes .routes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; }
    .home #routes .route { scroll-snap-align: start; }
    .home #routes .route__link { grid-template-columns: minmax(0, 1fr); }
    .home #routes .route__media { grid-row: auto; height: clamp(130px, 25svh, 220px); }
    .home #routes .route__where, .home #routes .route__title, .home #routes .route__spec, .home #routes .route__people { grid-column: auto; }
    .routes-swipe-hint { display: block; margin: 0 0 12px; color: var(--quiet); font-size: var(--fs-caption); }
    .home .planner { padding: 16px; gap: 8px; }
    .home .planner__day { padding: 8px; }
    .home .planner__ask { flex-wrap: wrap; border-radius: 16px; }
    .home .planner__ask > span:not(.btn) { min-width: 0; }
    .home .appcard { padding-right: 20px; }
    .home .appcard .keys { padding-right: 38%; }
    .home .appcard img { top: 72px; bottom: auto; width: 28%; }
    .home .appcard .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 767px), (max-height: 850px) {
    .home #feed .coverbox > .rw { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 12px; }
    .home #feed .coverbox > .rw .rw__head { grid-column: 1 / -1; }
    .home #feed .coverbox > .rw .rw__map { grid-column: 1; grid-row: 2; height: 72px; }
    .home #feed .coverbox > .rw .fp__stats-link { grid-column: 2; grid-row: 2; padding: 0; align-self: center; }
}
@media (min-width: 768px) and (max-height: 850px) {
    .home #feed .coverbox > .rw { width: min(340px, 60%); }
}
@media (max-width: 767px) {
    .home #feed .coverbox > .rw { margin: 8px 16px 0; }
}
.home :is(.wall, .mosaic, .trips, .community, .appplus):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html.landing { scroll-behavior: auto; } }

.home .place--placeholder { background: #273139; }
