/* Home page: ride hero and destination globe. Loaded only by index.html.
   Interface motion is CSS transitions only; the 3D is in /home3d/. */

/* header floats over the hero, then turns solid */
.home .top { position: fixed; left: 0; right: 0; top: 0; transition: background .35s, border-color .35s; }
.home.over-hero .top { background: transparent; border-bottom-color: transparent; }
.home.over-hero .top .wrap { position: relative; }
.home.over-hero .brand { color: #1f2a1d; }
.home.over-hero .brand span { color: #4b5b47; }
.home.over-hero .menu-btn { color: #1f2a1d; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.7); border-radius: 999px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 901px) {
  .home.over-hero #nav { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; gap: .1rem; padding: .28rem .28rem .28rem 1.1rem; border-radius: 999px; white-space: nowrap;
    background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 1px 2px rgba(20,30,20,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .home.over-hero #nav a:not(.btn) { color: #4b5b47; font-size: .86rem; font-weight: 500; padding: .45rem .7rem; transition: color .15s; }
  .home.over-hero #nav a:not(.btn):first-child { color: #1f2a1d; font-weight: 600; }
  .home.over-hero #nav a:not(.btn):hover { color: #1f2a1d; text-decoration: none; }
  .home.over-hero #nav .btn { margin-left: .5rem; border-radius: 999px; background: #1f2a1d; color: #fff; padding: .6rem 1.2rem; font-size: .86rem; font-weight: 500; letter-spacing: .04em; transition: background .15s; }
  .home.over-hero #nav .btn:hover { background: #2a3827; }
}

.eyebrow { font-family: Georgia, "Times New Roman", serif; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; margin: 0 0 1.2rem; display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }

/* ---------- ride ---------- */
.ride { --ink: #2f5d3e; --accent: #7fa586; --body: #46594a; --dwell: 11s;
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; overflow: clip; background: #e4ebe7;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif; -webkit-font-smoothing: antialiased; }
.ride[data-scene="iceland"] { --ink: #23424f; --accent: #7397a8; --body: #40565f; }
.ride[data-scene="namibia"] { --ink: #7c3a1a; --accent: #c98d61; --body: #6b4a37; }
.ride[data-scene="patagonia"] { --ink: #3b3262; --accent: #9383bb; --body: #524a6c; }

.ride-poster, #ride-canvas, .ride-veil { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ride-poster { object-fit: cover; filter: blur(22px) saturate(1.1) brightness(1.08); transform: scale(1.14); max-width: none; }
#ride-canvas { opacity: 0; transition: opacity 1.6s ease; }
.ride.ready #ride-canvas { opacity: 1; }
.ride-veil { pointer-events: none; background:
  linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.5) 26%, rgba(255,255,255,0) 54%),
  linear-gradient(0deg, rgba(10,16,12,.42), rgba(10,16,12,0) 30%); }

.ride-head { position: absolute; left: 50%; top: clamp(5.6rem, 13vh, 8.5rem); transform: translateX(-50%); width: min(100% - 2.5rem, 62rem); text-align: center; }
.ride-head h1 { margin: 0; font-family: inherit; font-weight: 400; font-size: clamp(2.1rem, 5.8vw, 5.1rem); line-height: 1.13; letter-spacing: .005em; color: var(--ink); transition: color .7s ease; }
.ride-head h1 span { color: var(--accent); transition: color .7s ease; }
.ride-head p { margin: clamp(1rem, 2vh, 1.6rem) auto 0; max-width: 31em; font-size: clamp(.86rem, 1.1vw, 1.02rem); line-height: 1.85; letter-spacing: .02em; color: var(--body); transition: color .7s ease; }

.ride-cta, .ride-scenes { position: absolute; bottom: clamp(1.4rem, 4vh, 2.5rem); color: #fff; }
.ride-cta { left: clamp(1.25rem, 3vw, 2.5rem); max-width: 22rem; }
.ride-tag { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .86rem; font-weight: 500; letter-spacing: .02em; }
.ride-note { margin: 0 0 1.4rem; font-size: .78rem; line-height: 1.75; color: rgba(255,255,255,.86); }
.ride-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.3rem; margin: 0; }
.ride .pill { background: #fff; color: #1f2a1d; text-decoration: none; font-size: .86rem; font-weight: 600; letter-spacing: .03em; padding: .8rem 1.5rem; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: background .15s; }
.ride .pill:hover { background: rgba(255,255,255,.9); }
.ride .more { color: #fff; text-decoration: none; font-size: .86rem; font-weight: 500; transition: opacity .15s; }
.ride .more:hover { opacity: .8; }

.ride-scenes { right: clamp(1.25rem, 3vw, 2.5rem); text-align: right; opacity: 0; pointer-events: none; transition: opacity .8s .4s; }
.ride.ready .ride-scenes { opacity: 1; pointer-events: auto; }
.scenes { display: flex; justify-content: flex-end; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.scenes button { position: relative; background: none; border: 0; padding: .35rem 0 .5rem; font: inherit; font-size: .86rem; font-weight: 500; letter-spacing: .03em; color: rgba(255,255,255,.55); cursor: pointer; transition: color .3s; }
.scenes button:hover { color: rgba(255,255,255,.85); }
.scenes button[aria-pressed="true"] { color: #fff; }
.scenes button::before, .scenes button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: rgba(255,255,255,.3); opacity: 0; transition: opacity .3s; }
.scenes button[aria-pressed="true"]::before, .scenes button[aria-pressed="true"]::after { opacity: 1; }
.scenes button::after { background: #fff; transform-origin: left; }
.ride.auto .scenes button[aria-pressed="true"]::after { animation: dwell var(--dwell) linear both; }
@keyframes dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scene-link { display: inline-block; margin-top: .9rem; font-size: .78rem; color: rgba(255,255,255,.86); text-decoration: none; transition: opacity .15s; }
.scene-link:hover { opacity: .8; }

/* first paint: copy rises in once */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ride-head > *, .ride-cta { animation: rise 1s cubic-bezier(.22,1,.36,1) both; }
.ride-head > p { animation-delay: .12s; } .ride-cta { animation-delay: .28s; }

@media (max-width: 820px) {
  .ride-head { top: 5.6rem; }
  .ride-head h1 { font-size: clamp(2rem, 9.6vw, 3.1rem); }
  .ride-veil { background:
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.45) 24%, rgba(255,255,255,0) 50%),
    linear-gradient(0deg, rgba(10,16,12,.6), rgba(10,16,12,.3) 22%, rgba(10,16,12,0) 40%); }
  .ride-cta { right: 1.25rem; max-width: none; }
  .ride-note, .ride-tag { display: none; }
  .ride-scenes { left: 1.25rem; right: 1.25rem; bottom: 8.5rem; text-align: left; }
  .scenes { justify-content: flex-start; gap: 1.1rem; }
  .scene-link { display: none; }
}

/* ---------- world ---------- */
.world { background: radial-gradient(90% 70% at 30% 40%, #183026, #0c1611 70%); color: #e9e3d5; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: clip; }
.world-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.world-globe { position: sticky; top: 92px; aspect-ratio: 1; width: 100%; max-width: 640px; margin-inline: auto; }
.world-globe canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1s; }
.world-globe canvas:active { cursor: grabbing; }
.world-globe.ready canvas { opacity: 1; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: auto; cursor: pointer; transition: opacity .25s; }
.pin::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #f0c36a; box-shadow: 0 0 0 2px rgba(240,195,106,.25), 0 0 10px rgba(240,195,106,.9); transition: transform .2s, background .2s; }
.pin.on { z-index: 2; }
.pin.on::before { background: #fff; transform: scale(1.5); }
.pin.on::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid #fff; animation: ping 1.4s ease-out infinite; }
.pin.back { opacity: 0; pointer-events: none; }
.pin.hq { pointer-events: none; }
.pin.hq::before { inset: 5px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 16px #fff; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.world-card { position: absolute; left: 50%; bottom: 2%; transform: translate(-50%, 8px); margin: 0; display: flex; align-items: baseline; gap: .9rem; white-space: nowrap; padding: .7rem 1.2rem; border-radius: 999px; background: rgba(12,22,17,.82); border: 1px solid rgba(240,195,106,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.world-card.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.world-card strong { font-family: var(--mincho); font-size: 1.1rem; letter-spacing: .08em; color: #fff; }
.world-card span { font-family: Georgia, serif; font-size: .78rem; letter-spacing: .14em; color: #b9c4bc; }
.world-card a { color: #f0c36a; font-weight: 600; font-size: .9rem; text-underline-offset: 4px; }
.world-tip { position: absolute; left: 0; right: 0; top: 100%; margin: .6rem 0 0; text-align: center; font-size: .78rem; letter-spacing: .12em; color: #8fa096; }

.world .eyebrow { color: #f0c36a; }
.world h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.world .section-head { margin-bottom: 2rem; }
.world .section-head p:not(.eyebrow) { color: #b9c4bc; }
.world .atlas { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem 1.75rem; }
.world .region h3 { color: #fff; border-bottom-color: rgba(240,195,106,.6); font-size: 1.25rem; }
.world .region h3 span { color: #8fa096; }
.world .region li { border-bottom-color: rgba(255,255,255,.12); }
.world .region a { color: #dfe6e0; transition: color .15s, padding .15s; }
.world .region a:hover, .world .region a.on { color: #f0c36a; padding-left: .45rem; }
.world + .strip { margin-top: 0; }

@media (max-width: 900px) {
  .world-grid { grid-template-columns: 1fr; }
  .world-globe { position: relative; top: 0; max-width: 520px; margin-bottom: 2rem; }
  .world-card { white-space: normal; flex-wrap: wrap; justify-content: center; gap: .2rem .8rem; border-radius: 14px; width: max-content; max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .ride-head > *, .ride-cta { animation: none; }
}
