/* Home page, alive: cards rise into each slide, activity sprites drift, numbers count up. Transform and opacity only. */

/* Sprites: the site's own activity icons and a few UI icons floating at the edges of a slide. */
.home main > section { position: relative; overflow: clip; }
.spr { position: absolute; z-index: 0; left: var(--x); top: var(--y); display: grid; place-items: center; width: var(--s, 56px); height: var(--s, 56px); border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); box-shadow: var(--shadow); pointer-events: none; transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
.spr svg { width: 52%; height: 52%; fill: currentColor; }
.spr .icon { fill: none; stroke: currentColor; }
.spr--ink { background: var(--surface); color: var(--ink); }
.spr--glass { background: var(--glass-14); color: var(--on-accent); box-shadow: none; border: 1px solid var(--glass-22); }
.spr--cta { background: var(--cta); color: var(--on-accent); box-shadow: 0 10px 24px -8px var(--orange-a-18); }
.home main > section > .wrap, .home .hero__copy { position: relative; z-index: 1; }
.home .hero__frame > .hero__photo { position:absolute; inset:0; z-index:-2; display:block; }
.home .hero__photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:62% 50%; }
@media (max-width:767px) { .home .hero__photo img { object-position:center; } }
@media (prefers-reduced-motion:no-preference) {
    .home .hero__frame > .hero__photo { inset:-4% 0; height:108%; transform:translate3d(var(--hero-parallax-x, 0px), calc(var(--hero-parallax-y, 0px) + var(--hero-parallax-mouse-y, 0px)), 0) scale(1.04); will-change:transform; }
}
/* A soft wash and narrow sunbeams follow the light already in the forest photo. */
.home .hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 23% 34% at 78% 10%, rgba(255, 217, 149, .16), transparent 72%),
        conic-gradient(from 192deg at 78% 9%, transparent 0deg, rgba(255, 224, 173, .07) 5deg, transparent 11deg, transparent 18deg, rgba(255, 223, 170, .055) 24deg, transparent 30deg, transparent 38deg, rgba(255, 220, 160, .045) 44deg, transparent 51deg);
    mask-image: radial-gradient(ellipse 65% 85% at 78% 8%, #000 0%, transparent 82%);
    opacity: .75;
}
@media (prefers-reduced-motion: no-preference) {
    .home .hero__frame::after { animation: hero-sunlight 9s ease-in-out infinite alternate; }
    @keyframes hero-sunlight { from { opacity: .55; } to { opacity: .95; } }
}
@media (max-width: 1023px) { .spr--wide { display: none; } }
@media (max-width: 767px) { .spr { --s: 40px; } .spr--late { display: none; } }

@media (prefers-reduced-motion: no-preference) {
    .spr { animation: spr-float var(--t, 7s) ease-in-out var(--d, 0s) infinite; }
    @keyframes spr-float {
        0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
        50% { transform: translate3d(0, -14px, 0) rotate(calc(var(--r, 0deg) + 6deg)); }
    }

    /* Cards rise into place when their slide arrives (visible by default without scripting). */
    .js [data-rise] { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.985); transition: opacity 640ms var(--ease-out), transform 780ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 120ms); will-change: transform, opacity; }
    .js [data-rise="left"] { transform: translate3d(-36px, 0, 0); }
    .js [data-rise="right"] { transform: translate3d(36px, 0, 0); }
    .js [data-rise="zoom"] { transform: scale(0.94); }
    .js .is-in [data-rise], .js [data-rise].is-in { opacity: 1; transform: none; }
    .js .spr { opacity: 0; transition: opacity 700ms var(--ease-out) 400ms; }
    .js .is-in .spr { opacity: 1; }

    /* the wall of feed cards drifts a little at different speeds once it is in */
    .wall__col--2 { animation: wall-drift 9s ease-in-out infinite alternate; }
    @keyframes wall-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -22px, 0); } }

    /* the route line draws itself */
    .js .is-in .draw use { stroke-dasharray: 1; animation: trace 2600ms var(--ease-out) 500ms both; }

}

/* The wall of real feed cards: three columns, cut by a soft fade, as if the stream goes on below. */
.wall { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.wall__col { display: grid; gap: 24px; min-width: 0; }
.wall__col--2 { margin-top: 56px; }
.wall .fp { box-shadow: var(--shadow); }
.wall .rw { max-width: 100%; }
@media (max-width: 900px) { .wall { grid-template-columns: minmax(0, 1fr); } .wall__col--2 { margin-top: 0; } }

/* The map slide shows the real map screen. */
.mapshot { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--map-paper); }
.mapshot img { display: block; width: 100%; height: auto; }
.mapshot__pulse { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-a-18); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .mapshot__pulse::after { content: ''; position: absolute; inset: -10px; border: 2px solid var(--orange); border-radius: 50%; opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; } @keyframes pulse { 0% { opacity: 0.8; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.5); } } }

/* The AI slide: the prompt types itself, the days arrive one by one, the route line draws on the card. */
.planner { position: relative; overflow: hidden; }
.planner__caret::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .planner__caret::after { animation: caret 900ms steps(1) infinite; } @keyframes caret { 50% { opacity: 0; } } }

/* Journal card in the real journal style. */
.home .community__col .jcard { display: grid; gap: 12px; }
.home .community--two > .community__col:last-child { grid-column: auto; max-width: none; }
.home #community .community__head button.more { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.home #community .community__head button.more:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: var(--r-sm); }
.home .home-clubs-empty { display: grid; justify-items: start; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.home-profile-preview { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.home-profile-preview::backdrop { background: var(--scrim-55); backdrop-filter: blur(6px); }
.home-profile-preview__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.home-profile-preview__head .quiet { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-small); }
.home-profile-preview__head form { flex: none; }
.home-profile-preview__body .pcard { border-radius: 0; box-shadow: none; }
.home-profile-bio { color: var(--copy); font-size: var(--fs-small); line-height: var(--lh-body); }
.home-profile-album { display: grid; gap: 12px; }
.home-profile-album > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-profile-album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.home-profile-preview__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 24px; border-top: 1px solid var(--line); }
body.home-profile-preview-open { overflow: hidden; }
@media (max-width: 767px) {
    .home-profile-preview { max-height: calc(100dvh - 24px); }
    .home-profile-preview__head { padding: 20px; }
    .home-profile-preview__foot { padding: 16px 20px; }
    .home-profile-preview__foot .btn { flex: 1; }
}
@media (min-width: 1024px) { .home .community--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hand-drawn collage: marker outlines, a drawn route with a start marker, turn signs, shapes and tilted cards lie over the slides at absolute positions. */
.dd { position: absolute; z-index: 0; left: calc(50% + var(--cx, 0px)); top: var(--y, 0); width: var(--w, 120px); height: auto; overflow: visible; pointer-events: none; transform: rotate(var(--r, 0deg)); }
.dd--shape { aspect-ratio: 1; }
.dd--route, .dd--sign, .dd--arrow { filter: drop-shadow(0 10px 18px var(--black-12)); }
.home #routes > .dd--route { left: max(16px, calc((100% - var(--wrap)) / 2 - 200px)); top: 0; width: clamp(140px, 10vw, 180px); }
.home #join .track-line--band { display: none; }
.home #join .joinband__lights { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.home #join .joinband__light { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; }
.home #join .joinband__light--lantern { background: radial-gradient(circle, rgba(255, 206, 114, .24) 0%, rgba(255, 141, 29, .12) 24%, transparent 68%); }
.home #join .joinband__light--fire { background: radial-gradient(circle, rgba(255, 186, 76, .22) 0%, rgba(255, 101, 14, .12) 24%, transparent 68%); }
@media (prefers-reduced-motion: no-preference) {
    .home #join > img, .home #join .joinband__lights { transform: translate3d(var(--join-parallax-x, 0px), var(--join-parallax-y, 0px), 0) scale(1.06); will-change: transform; }
    .home #join .joinband__light--lantern { animation: join-lantern-glow 3.2s ease-in-out infinite alternate; }
    .home #join .joinband__light--fire { animation: join-fire-glow 1.45s ease-in-out infinite alternate; }
    @keyframes join-lantern-glow { 0%, 100% { opacity: .5; } 40% { opacity: .85; } 72% { opacity: .62; } }
    @keyframes join-fire-glow { 0%, 100% { opacity: .55; } 20% { opacity: .9; } 45% { opacity: .65; } 70% { opacity: 1; } }
}
.dd__draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dd-uline { position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.28em; overflow: visible; pointer-events: none; }
.home .display { position: relative; }


.dd--photos { display: block; height: calc(var(--w) * 1.1); }
.dd--photos figure { position: absolute; left: var(--ox); top: var(--oy); width: 70%; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border: 4px solid var(--surface); border-radius: var(--r-sm); box-shadow: 0 8px 20px -6px var(--black-18); transform: rotate(var(--r)); }
.dd--photos img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero .dd { z-index: 1; }
@media (max-width: 1279px) { .dd--wide { display: none; } }
@media (max-width: 767px) { .dd { display: none; } .dd-uline { display: block; } }

@media (prefers-reduced-motion: no-preference) {
    .dd { animation: dd-bob var(--t, 8s) ease-in-out var(--d, 0s) infinite; }
    @keyframes dd-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate3d(0, -10px, 0) rotate(calc(var(--r, 0deg) + 3deg)); } }
    .js .dd { opacity: 0; transition: opacity 600ms var(--ease-out) 350ms; }
    .js .is-in .dd { opacity: 1; }
    .js .dd__draw { stroke-dashoffset: 1; }
    .js .is-in .dd__draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2200ms var(--ease-out) 500ms; }
    .js .dd-uline .dd__draw { stroke-dashoffset: 1; }
    .js .is-in .dd-uline .dd__draw { stroke-dashoffset: 0; transition-duration: 900ms; transition-delay: 700ms; }
}
.dd--onphoto .dd__draw { stroke: var(--on-accent); }

/* The guest landing is a product tour; the assistant lives on the working pages. */
.home .tt-assistant-pill { display: none !important; }

/* The route panel on the landing report card shows the real map with the track. */
.home .rw .rw__map .minimap-container { display: block; width: 100%; height: 100%; }

/* A compact preview with real achievement artwork; the full dialog can scroll. */
.home-profile-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.home-profile-actions .btn { min-height:34px; padding:0 12px; }
.home-profile-actions .icon { width:16px; height:16px; }
.home-profile-samples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.home-profile-samples section { display:grid; align-content:start; gap:6px; min-width:0; }
.home-profile-samples h3 { font-size:var(--fs-small); font-weight:var(--fw-heading); color:var(--ink); }
.home-profile-sample-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.home-profile-sample-grid > div { min-width:0; display:grid; align-content:start; gap:2px; }
.home-profile-sample-grid img { width:100%; height:clamp(36px,6svh,65px); object-fit:cover; border-radius:8px; }
.home-profile-sample-grid b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:var(--fs-caption); color:var(--ink); }
.home-profile-sample-grid small { color:var(--quiet); font-size:var(--fs-caption-tight); }
.home #community .home-profile-card { max-height:calc(100svh - 160px); overflow-y:auto; overscroll-behavior:contain; }
.home #community .home-profile-card .pcard__cover { height:clamp(55px,10svh,90px); }
.home #community .home-profile-card .pcard__body { gap:clamp(5px,1svh,10px); padding:0 16px 12px; }
.home #community .home-profile-card .pcard__id { margin-top:-24px; gap:10px; }
.home #community .home-profile-card .pcard__id .avatar { width:52px; height:52px; }
.home #community .home-profile-card .pcard__id > span:last-child { margin-top:27px; }
.home #community .home-profile-card .pcard__stats div { padding:4px 10px; }
.home #community .home-profile-card .badges { gap:8px; }
.home #community .home-profile-card .badges img { width:clamp(28px,4.5svh,44px); height:clamp(28px,4.5svh,44px); object-fit:contain; }
.home #community .home-profile-card .badges figcaption { font-size:var(--fs-caption-tight); }
@media (max-width:767px) { .home #community .home-profile-card { max-height:calc(100svh - 72px); } }

/* Landing previews keep their real content readable at phone widths. */
.home .hero__app-link { display:inline-flex; align-items:center; gap:7px; min-height:40px; color:#fff; font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.home .hero__app-link:hover { color:#fff; text-decoration-thickness:2px; }
.home .hero__app-link:focus-visible { outline:2px solid #fff; outline-offset:4px; border-radius:3px; }
.home .plan__trial-note { margin:0; color:var(--quiet); font-size:var(--fs-caption); line-height:1.45; }
@media (max-width:767px) {
    .home #feed .wall__col { grid-template-columns:minmax(0,1fr); }
    .home #feed .wall__col > * { min-width:0; max-width:100%; }
    .home #feed .fp__pad { grid-template-columns:minmax(0,1fr); }
    .home #feed .fp__pad, .home #feed .fp__title, .home #feed .fp__excerpt { min-width:0; max-width:100%; overflow-wrap:anywhere; }
    .home #feed .fp__foot { flex-wrap:wrap; }
    .home #map .mapshot { width:100%; max-width:480px; aspect-ratio:1 / 1; }
    .home #map .mapshot img { width:100%; height:100%; max-height:none; object-fit:cover; object-position:72% center; }
    .home #map .mapshot__pulse { display:none; }
    .home #community .home-profile-card { max-height:none; overflow:visible; }
    .home #community .home-profile-card .badges { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
    .home #community .home-profile-actions .btn { min-height:44px; padding-inline:8px; font-size:12px; }
    .home #community .home-profile-actions .btn[aria-label] { min-width:44px; }
    .home #community .home-profile-samples { grid-template-columns:minmax(0,1fr); gap:14px; }
    .home #community .home-profile-sample-grid { gap:10px; }
    .home #community .home-profile-sample-grid img { height:auto; aspect-ratio:16 / 9; }
    .home #community .home-profile-sample-grid b { white-space:normal; overflow-wrap:anywhere; }
    .home #community .home-profile-sample-grid small { white-space:nowrap; }
}
@media (max-width:359px) {
    .home .hero__find { gap:3px; padding-left:10px; }
    .home .hero__near { min-width:44px; justify-content:center; padding-inline:8px; }
}
