/* RB&L1 home: scroll films and the sections between them. All classes are x- prefixed
   so nothing here collides with site.css, which the inner pages share. */
:root { --vh: 100lvh; --sky1: #f6c98a; --night: #0a1730; --gym: #2a1a08; }
html { scroll-behavior: auto; }
body.x-home { background: var(--navy-deep); }

/* top bar over the film */
.x-top { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(12px, 3vw, 32px); transition: background .3s ease, box-shadow .3s ease; }
.x-top.solid { background: rgba(6, 32, 63, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.x-logo { display: block; background: #fff; border-radius: 12px; padding: 6px 10px; line-height: 0; }
.x-logo img { height: 40px; width: auto; }
.x-topnav { display: flex; align-items: center; gap: 10px; }
.x-menu { font: 700 1rem var(--body); color: #fff; background: rgba(6,32,63,.55); border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 0 18px; min-height: 46px; cursor: pointer; backdrop-filter: blur(6px); }
.x-top .btn { min-height: 46px; padding: 0 22px; }
.x-sheet { position: fixed; inset: 0; z-index: 70; background: var(--navy-deep); color: #fff; padding: 84px clamp(20px, 6vw, 80px) 40px; overflow-y: auto; display: none; }
.x-sheet.open { display: block; }
.x-sheet a { display: block; font: 800 clamp(1.7rem, 6.5vw, 3rem)/1.15 var(--display); color: #fff; text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.x-sheet a small { display: block; font: 500 .95rem var(--body); color: #a9bfd9; margin-top: 2px; }
.x-sheet a:hover { color: var(--gold); }
.x-close { position: absolute; top: 14px; right: clamp(12px, 3vw, 32px); }

/* films */
.x-film { position: relative; background: #000; }
.x-film[data-id="plane"] { height: calc(var(--vh) * 6.4); }
.x-film[data-id="dance"] { height: calc(var(--vh) * 4); }
.x-film[data-id="square"] { height: calc(var(--vh) * 3.6); }
.x-stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; }
.x-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.x-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4,16,34,.55) 0%, rgba(4,16,34,0) 26%, rgba(4,16,34,0) 52%, rgba(4,16,34,.82) 100%); }
.x-fade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }

.x-hero { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(18px, 5vw, 64px) calc(104px + env(safe-area-inset-bottom)); color: #fff; }
.x-hero h1 { color: #fff; font-size: clamp(2.5rem, 10.5vw, 5.6rem); line-height: .98; margin: 0 0 14px; max-width: 12ch; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.x-hero h1 em { font-style: italic; color: var(--gold); }
.x-hero p { font-size: clamp(1.05rem, 3.9vw, 1.35rem); line-height: 1.4; color: #e6eef8; max-width: 30em; margin: 0 0 18px; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.x-hero .btn-row { margin: 0; }
.x-hero .btn-line { color: #fff; }
.x-scrollcue { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 700 .95rem var(--body); color: var(--gold); }
.x-scrollcue i { width: 22px; height: 34px; border: 2px solid var(--gold); border-radius: 12px; position: relative; }
.x-scrollcue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: x-cue 1.5s ease-in-out infinite; }
@keyframes x-cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(13px); opacity: 0; } }

.x-cap { position: absolute; left: 14px; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); opacity: 0; color: #fff; background: rgba(4, 16, 34, .72); backdrop-filter: blur(8px); border-left: 5px solid var(--gold); border-radius: 4px 14px 14px 4px; padding: 14px 16px; will-change: opacity, transform; }
.x-cap b { display: block; font: 800 clamp(1.3rem, 5.6vw, 2.5rem)/1.1 var(--display); letter-spacing: -.01em; }
.x-cap span { display: block; margin-top: 6px; font-size: clamp(.98rem, 3.6vw, 1.15rem); line-height: 1.4; color: #d7e3f2; }
.x-cap a { color: var(--gold); font-weight: 700; }
.x-steps { position: absolute; top: 76px; left: 14px; right: 14px; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; opacity: 0; }
.x-steps li { flex: 1; font: 700 .78rem var(--body); color: rgba(255,255,255,.6); padding-top: 8px; border-top: 4px solid rgba(255,255,255,.28); transition: color .3s, border-color .3s; }
.x-steps li.on { color: #fff; border-color: var(--gold); }

@media (min-width: 900px) and (orientation: landscape) {
  .x-shade { background: linear-gradient(90deg, rgba(4,16,34,.78) 0%, rgba(4,16,34,.35) 46%, rgba(4,16,34,0) 62%); }
  .x-hero { top: 0; bottom: 0; right: 50%; display: flex; flex-direction: column; justify-content: center; padding: 60px 0 0 6vw; }
  .x-cap { left: 6vw; right: auto; width: 36vw; bottom: auto; top: 50%; translate: 0 -50%; background: none; backdrop-filter: none; border-left-width: 6px; padding: 6px 0 6px 26px; border-radius: 0; }
  .x-cap b { font-size: clamp(2rem, 3.6vw, 3.6rem); }
  .x-cap span { font-size: 1.25rem; }
  .x-steps { left: 6vw; right: auto; width: 36vw; top: auto; bottom: 8vh; }
  .x-logo img { height: 50px; }
}

/* the climb: four programs as stacking cards */
.x-climb { background: linear-gradient(180deg, #f3b56a 0%, #f7d9a8 12%, var(--sky) 34%, var(--sky) 100%); padding: clamp(56px, 12vw, 120px) 0 clamp(40px, 8vw, 90px); position: relative; }
.x-climb .wrap { max-width: 860px; }
.x-kicker { font: 800 clamp(2.1rem, 8.6vw, 4.2rem)/1.02 var(--display); color: var(--navy); letter-spacing: -.02em; margin: 0 0 14px; }
.x-sub { font-size: clamp(1.08rem, 4vw, 1.35rem); line-height: 1.45; color: #2c3e57; max-width: 34em; margin: 0 0 clamp(24px, 6vw, 48px); }
.x-card { position: sticky; top: calc(74px + var(--i) * 16px); display: block; text-decoration: none; color: #fff; border-radius: 22px; overflow: hidden; margin-bottom: 26px; background: var(--navy); box-shadow: 0 -10px 40px rgba(6,32,63,.28); transform-origin: 50% 0; }
.x-card:hover { color: #fff; }
.x-card img { width: 100%; height: min(62vh, 560px); object-fit: cover; display: block; }
.x-card-body { position: absolute; inset: auto 0 0 0; padding: 70px 20px 20px; background: linear-gradient(180deg, rgba(6,32,63,0) 0%, rgba(6,32,63,.86) 46%, rgba(6,32,63,.97) 100%); }
.x-card-step { display: inline-block; background: var(--gold); color: var(--navy-deep); font: 800 .85rem var(--body); border-radius: 999px; padding: 5px 12px; margin-bottom: 10px; }
.x-card h3 { color: #fff; font-size: clamp(1.7rem, 7vw, 2.6rem); margin: 0 0 6px; }
.x-card p { color: #dbe6f3; margin: 0; font-size: clamp(1rem, 3.8vw, 1.15rem); line-height: 1.4; max-width: 34em; }
.x-card .x-go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--gold); }

/* numbers */
.x-nums { background: var(--navy); color: #fff; padding: clamp(48px, 10vw, 100px) 0; }
.x-nums .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.x-num b { display: block; font: 900 clamp(2.6rem, 12vw, 5rem)/1 var(--display); color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.x-num span { display: block; margin-top: 6px; color: #c9d8ea; font-size: clamp(.95rem, 3.5vw, 1.1rem); line-height: 1.35; max-width: 16em; }
@media (min-width: 900px) { .x-nums .wrap { grid-template-columns: repeat(4, 1fr); } }

/* fuel tool */
.x-fuel { background: linear-gradient(180deg, var(--navy) 0%, #123f76 100%); color: #fff; padding: clamp(56px, 12vw, 120px) 0; }
.x-fuel .x-kicker { color: #fff; }
.x-fuel .x-sub { color: #c9d8ea; }
.x-gauge { position: relative; height: 150px; border-radius: 18px; background: linear-gradient(0deg, #0b2e59 0%, #1d5aa0 60%, #f3b56a 100%); overflow: hidden; margin: 8px 0 22px; border: 1px solid rgba(255,255,255,.16); }
.x-gauge::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: repeating-linear-gradient(90deg, #26303d 0 30px, #26303d 30px 34px), #26303d; border-top: 3px solid #f4f4f4; }
.x-gauge svg { position: absolute; left: 0; bottom: 14px; width: 74px; height: auto; transition: left .5s cubic-bezier(.2,.8,.2,1), bottom .5s cubic-bezier(.2,.8,.2,1), transform .5s; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.x-gauge-goal { position: absolute; right: 12px; top: 10px; font: 700 .85rem var(--body); color: var(--navy-deep); background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 10px; }
.x-range { width: 100%; height: 44px; accent-color: var(--gold); cursor: pointer; }
.x-fuel-read { font: 800 clamp(1.5rem, 6.4vw, 2.4rem)/1.15 var(--display); margin: 10px 0 6px; }
.x-fuel-read em { color: var(--gold); font-style: normal; }
.x-fuel-note { color: #c9d8ea; margin: 0 0 18px; min-height: 3em; }
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.x-chips button { font: 800 1.05rem var(--display); color: #fff; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; min-height: 46px; padding: 0 18px; cursor: pointer; }
.x-chips button.on { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.x-fuel .btn { width: 100%; max-width: 440px; font-size: 1.15rem; padding: 1.15em; }
.x-fine { font-size: .86rem; color: #a9bfd9; margin-top: 12px; max-width: 46em; }

/* ticker */
.x-tick { background: var(--gold); color: var(--navy-deep); overflow: hidden; white-space: nowrap; padding: 14px 0; font: 800 clamp(1.1rem, 4.6vw, 1.6rem) var(--display); }
.x-tick div { display: inline-block; animation: x-tick 38s linear infinite; }
@keyframes x-tick { to { transform: translateX(-50%); } }

/* work and founder */
.x-work { background: var(--sky); padding: clamp(56px, 12vw, 120px) 0; }
.x-photo { border-radius: 22px; overflow: hidden; position: relative; }
.x-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; }
.x-photo.tall img { aspect-ratio: 4 / 5; }
.x-two { display: grid; gap: clamp(22px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .x-two { grid-template-columns: 1fr 1fr; } .x-two.flip > :first-child { order: 2; } }
.x-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.x-list li { background: #fff; border-radius: 12px; padding: 13px 16px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.x-list li small { font-weight: 500; color: var(--ink-soft); text-align: right; }
.x-founder { background: var(--navy-deep); color: #dbe6f3; padding: clamp(56px, 12vw, 120px) 0; }
.x-founder .x-kicker { color: #fff; }
.x-founder p { font-size: clamp(1.05rem, 3.9vw, 1.2rem); }
.x-quote { font: 700 italic clamp(1.6rem, 6.6vw, 2.8rem)/1.15 var(--display); color: var(--gold); margin: 0 0 18px; }
.x-trust { background: #fff; padding: clamp(56px, 12vw, 120px) 0; }
.x-flow { display: grid; gap: 18px; }
@media (min-width: 900px) { .x-flow { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.x-flow h3 { margin-bottom: 12px; }
.x-flow ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.x-flow li { border: 1.5px solid var(--sky-line); border-radius: 12px; padding: 12px 16px; font-weight: 600; color: var(--navy); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--d) * 90ms); }
.x-flow.in li { opacity: 1; transform: none; }
.x-arrow { font: 900 2.4rem var(--display); color: var(--gold); text-align: center; }
@media (max-width: 899px) { .x-arrow { transform: rotate(90deg); } }
.x-marq { overflow: hidden; white-space: nowrap; margin-top: clamp(32px, 7vw, 64px); border-block: 1px solid var(--sky-line); padding: 16px 0; color: var(--navy); font-weight: 700; }
.x-marq div { display: inline-block; animation: x-tick 46s linear infinite; }
.x-give { background: linear-gradient(180deg, var(--sky) 0%, #f7d9a8 100%); padding: clamp(56px, 12vw, 120px) 0; }

/* dock */
.x-dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; background: rgba(6,32,63,.94); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 6px; backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .35s ease, opacity .35s ease; }
.x-dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 13px; font: 800 .98rem var(--display); color: #fff; text-decoration: none; text-align: center; line-height: 1.1; }
.x-dock a.gold { background: var(--gold); color: var(--navy-deep); font-size: 1.1rem; }
.x-dock.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .x-dock { left: auto; right: 22px; width: 430px; } }
body.x-home .site-foot { padding-bottom: 130px; }
body.x-home .give-bar { display: none !important; }

@media (prefers-reduced-motion: reduce) { .x-tick div, .x-marq div, .x-scrollcue i::after { animation: none; } .x-flow li { opacity: 1; transform: none; } }

.x-climb, .x-fuel, .x-give { scroll-margin-top: 0; }
.x-kicker { scroll-margin-top: 90px; }

/* v4: logo without a box, louder menu, skip link, two-button dock */
.x-logo { background: none; padding: 0; border-radius: 0; filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.x-logo img { height: 50px; }
.x-menu { background: #fff; color: var(--navy-deep); border: 0; font-weight: 800; font-size: 1.05rem; min-height: 48px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.x-menu i { width: 20px; height: 14px; border-top: 3px solid var(--navy-deep); border-bottom: 3px solid var(--navy-deep); position: relative; display: block; }
.x-menu i::after { content: ""; position: absolute; left: 0; right: 0; top: 2.5px; border-top: 3px solid var(--navy-deep); }
.x-close { display: inline-flex; }
.x-top .btn.x-topgive { min-height: 48px; }
@media (max-width: 899px) { .x-top .btn.x-topgive { display: none; } }
.x-skip { position: absolute; right: 14px; top: 74px; z-index: 3; font: 700 .92rem var(--body); color: #fff; background: rgba(6,32,63,.7); border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: 10px 16px; text-decoration: none; backdrop-filter: blur(6px); }
.x-skip::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translateY(-3px); }
.x-skip:hover { color: var(--gold); }
.x-steps { right: 150px; }
.x-dock { grid-template-columns: 1fr 1.5fr; }
@media (min-width: 900px) { .x-dock { width: 340px; } .x-skip { top: 84px; right: clamp(12px, 3vw, 32px); } .x-logo img { height: 60px; } }

/* Phone toolbars: the stage is as tall as the screen with the browser bar hidden, so when
   the bar comes back (scrolling up) the bottom of the stage sits under it and the dock rides
   up over the words. Lift the words by exactly that difference, plus a little air. */
@media (max-width: 899px) {
  .x-hero { padding-bottom: calc(118px + (100lvh - 100dvh) + env(safe-area-inset-bottom)); transition: padding-bottom .2s ease; }
  .x-cap { bottom: calc(112px + (100lvh - 100dvh) + env(safe-area-inset-bottom)); transition: bottom .2s ease; }
}
