/* "The Ribbon Road": 3D journey page (world.html). Builds on site.css tokens. */

body.world { background: #01050b; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.no-gl #world { display: none; }
.no-gl body.world { background: radial-gradient(ellipse at 50% 0%, #0b2148, #01050b 70%) fixed; }
.world main { position: relative; z-index: 2; }

/* Page gutters that line up with the site's .wrap */
.w-intro, .w-stop, .w-end { padding-inline: max(16px, calc((100% - 1240px) / 2)); }

/* Opening: the road stretches away behind the headline */
.w-intro { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.w-intro h1, .w-intro h2 { font-size: clamp(3rem, 8vw, 7.2rem); margin: 22px 0 24px; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.w-intro .lead { color: var(--platinum); }
.w-cue { display: flex; align-items: center; gap: 16px; margin-top: 40px; font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }

/* One section per stop; the card sits opposite the landmark */
.w-stop { min-height: 135vh; display: flex; align-items: center; }
.w-stop.right { justify-content: flex-end; padding-right: max(170px, calc((100% - 1240px) / 2 + 150px)); }
.w-stop.left { justify-content: flex-start; }
.w-card {
  width: min(450px, 100%); padding: 40px 38px 42px; border-radius: 4px;
  background: linear-gradient(160deg, rgba(10,20,36,.62), rgba(4,9,18,.5));
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.w-card .eyebrow { letter-spacing: .3em; }
.w-card h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 18px 0 14px; }
.w-card .lead { font-size: .98rem; color: var(--platinum); }
.w-card .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.w-card .btn { padding: 14px 24px; }

/* Closing */
.w-end { min-height: 115vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.w-end img { width: 64px; height: auto; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(61,180,232,.4)); }
.w-end h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin: 18px 0 22px; }
.w-end .lead { margin-inline: auto; color: var(--platinum); }
.w-end .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.world .contact, .world footer { position: relative; z-index: 2; }

/* Stop indicator: one marker per venture, the current stop lit */
.w-rail { position: fixed; z-index: 40; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; }
.w-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); }
.w-rail b { font-weight: 500; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .45s var(--ease); }
.w-rail span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); transition: background .3s, border-color .3s, transform .3s; }
.w-rail a:hover b, .w-rail a:focus-visible b, .w-rail a.on b { opacity: 1; transform: none; }
.w-rail a:hover span, .w-rail a:focus-visible span { border-color: var(--sky); }
.w-rail a.on { color: var(--text); }
.w-rail a.on span { background: var(--sky); border-color: var(--sky); transform: scale(1.3); box-shadow: 0 0 12px rgba(61,180,232,.8); }
.w-rail a:focus-visible { outline: 1px solid var(--sky); outline-offset: 4px; }

@media (max-width: 1024px) {
  .w-rail { display: none; }
  .w-stop { align-items: flex-end; justify-content: center !important; padding-bottom: 10vh; min-height: 120vh; }
  .w-stop.right { padding-right: 16px; }
  .w-card { width: 100%; padding: 30px 24px 32px; }
  .w-intro { padding-bottom: 10vh; }
}

/* ---------- Top of home: the eight ventures circling the KKRV mark ---------- */
.w-hero { position: relative; z-index: 3; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding-inline: max(16px, calc((100% - 1240px) / 2)); background: #01050b; }
.w-hero #constellation { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.w-hero.gl-on #constellation { opacity: 1; }
.w-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, #01050b); pointer-events: none; z-index: 1; }
.w-hero-copy { position: relative; z-index: 3; max-width: 560px; padding: 120px 0 90px; }
.w-hero h1 { font-size: clamp(3rem, 7vw, 6.6rem); margin: 24px 0 24px; }
.w-hero .lead { color: var(--platinum); }
.w-hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* the venture routes: a quiet row of links under the headline */
.w-routes { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; }
.w-routes a { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding: 7px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; transition: color .3s, border-color .3s, background .3s; }
.w-routes a:hover, .w-routes a:focus-visible { color: var(--text); border-color: var(--sky); background: rgba(61,180,232,.08); }

/* floating labels that ride above each landmark (positioned by overview3d.js) */
.c-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.c-label { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: auto; white-space: nowrap;
  font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(61,180,232,.35);
  background: rgba(3,8,16,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s; will-change: transform, opacity; }
.c-label:hover, .c-label:focus-visible { background: rgba(61,180,232,.22); border-color: var(--sky); opacity: 1 !important; }
.w-hero:not(.gl-on) .c-labels { display: none; }

@media (min-width: 1025px) {
  .w-hero.gl-on::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(1,5,11,.9) 0%, rgba(1,5,11,.55) 30%, transparent 52%); }
}
@media (max-width: 1024px) {
  .w-hero { align-items: flex-end; }
  .w-hero-copy { padding: calc(76px + 40svh) 0 70px; }
  .c-labels { display: none; }                       /* phones use the route links under the headline */
  .w-hero.gl-on::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, transparent 38%, rgba(1,5,11,.85) 60%); }
}
