/* --u: one pixel of the 1672 x 941 picture, scaled so that all of it fits the window */
.h3{--u:min(calc(100vw / 1672),calc(100svh / 941));--navy:#031B30;--cyan:#00E8F6;--live:#FF2229;--text:#F5F7FA;--gutter:max(20px,calc(92 * var(--u)))}
.h3,.h3 *{box-sizing:border-box}
.h3{margin:0;font-family:"Plus Jakarta Sans",system-ui,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}
:where(.h3) a{color:inherit}
:where(.h3) :focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
:where(.h3) svg.h3-arrow{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* the header */
.top{position:absolute;inset:0 0 auto 0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:calc(37 * var(--u)) calc(37 * var(--u)) 0 var(--gutter)}
/* Rocky's own logo (the TB whose B dissolves to the upper right), in white for the dark */
.mark{display:block;text-decoration:none}
.mark img{display:block;height:calc(52 * var(--u));width:auto}
.top nav{display:flex;align-items:center;gap:calc(51 * var(--u));font-size:calc(23 * var(--u));font-weight:500;letter-spacing:-.03em}
.top nav a{text-decoration:none}
.top nav a:not(.cta):hover{color:var(--cyan)}
.top .cta{display:inline-flex;align-items:center;justify-content:center;gap:calc(10 * var(--u));width:calc(355 * var(--u));height:calc(57 * var(--u));padding:0;margin-left:calc(2 * var(--u));border-radius:999px;font-weight:600;letter-spacing:-.035em;color:#fff;background:linear-gradient(180deg,#00C3FA,#0063F6);border:2px solid #20E9FF;box-shadow:0 0 calc(18 * var(--u)) rgba(0,213,255,.45),inset 0 1px 0 rgba(255,255,255,.3)}
.top .cta:hover{filter:brightness(1.1)}

/* the picture: the page's own sky behind the 3D (which draws none), then the dark and the light over it */
.h3-hero{position:relative;height:100vh;height:100lvh;min-height:540px;overflow:hidden;isolation:isolate}
.stage{position:absolute;inset:0;overflow:hidden;background:linear-gradient(180deg,#031B30 0%,#062A42 46%,#0F3D56 100%)}
/* while the live city loads: the still of its opening view where the city will be, and a soft
   light passing over it (and over the dark before the still is in); gone once the city is live */
#poster{position:absolute;max-width:none;pointer-events:none;user-select:none}
.stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,rgba(150,215,255,0) 38%,rgba(150,215,255,.11) 50%,rgba(150,215,255,0) 62%);background-size:260% 100%;animation:shimmer 1.9s ease-in-out infinite;transition:opacity .7s}
.stage:has(#city.live)::after{opacity:0;animation:none}
@keyframes shimmer{from{background-position:115% 0}to{background-position:-15% 0}}
#city{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;opacity:0;transition:opacity .9s ease}
#city.live{opacity:1}
#city.moving{cursor:grabbing}
.shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  linear-gradient(90deg,rgba(0,25,41,.98) 0,rgba(0,29,45,.96) calc(468 * var(--u)),rgba(0,32,47,.8) calc(652 * var(--u)),rgba(0,33,47,.42) calc(853 * var(--u)),rgba(0,31,45,.1) calc(1104 * var(--u)),rgba(0,31,45,0) calc(1338 * var(--u))),
  linear-gradient(180deg,rgba(0,26,43,.92) 0,rgba(0,29,45,.78) calc(85 * var(--u)),rgba(0,30,45,.32) calc(179 * var(--u)),rgba(0,30,45,0) calc(320 * var(--u))),
  linear-gradient(180deg,rgba(0,24,38,0) 75%,rgba(0,24,38,.28) 100%),
  radial-gradient(ellipse calc(560 * var(--u)) calc(230 * var(--u)) at calc(240 * var(--u)) 100%,rgba(30,82,108,.55),rgba(30,82,108,0)),
  radial-gradient(ellipse calc(1100 * var(--u)) calc(560 * var(--u)) at 0 75%,rgba(28,103,125,.4),rgba(28,103,125,0) 65%)}
.sun{position:absolute;z-index:1;pointer-events:none;right:calc(-194 * var(--u));top:calc(-39 * var(--u));width:calc(400 * var(--u));height:calc(400 * var(--u));border-radius:50%;mix-blend-mode:screen;
  background:radial-gradient(circle,rgba(255,244,222,.95) 0,rgba(255,233,207,.7) 6%,rgba(255,211,174,.42) 16%,rgba(214,176,150,.2) 36%,rgba(201,169,149,.07) 56%,rgba(201,169,149,0) 72%)}
/* the clouds, drifting slowly along the lower edge (there on the map; gone with the bus camera) */
.clouds{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:calc(1 - var(--two,0))}
.cloud{position:absolute;display:block;max-width:none;height:auto;user-select:none;will-change:transform;filter:brightness(.86) saturate(.9) blur(calc(5 * var(--u)));opacity:.8}
.cloud.low{left:calc(420 * var(--u));bottom:calc(-4 * var(--u));width:calc(640 * var(--u));animation:drift 48s ease-in-out infinite alternate}
.cloud.side{right:calc(-90 * var(--u));top:calc(680 * var(--u));width:calc(320 * var(--u));animation:drift-back 62s ease-in-out infinite alternate}
.cloud.wisp{right:calc(330 * var(--u));top:calc(118 * var(--u));width:calc(300 * var(--u));opacity:.55;animation:drift 80s ease-in-out infinite alternate-reverse}
@keyframes drift{from{transform:translateX(calc(-70 * var(--u)))}to{transform:translateX(calc(90 * var(--u)))}}
@keyframes drift-back{from{transform:translateX(calc(40 * var(--u)))}to{transform:translateX(calc(-80 * var(--u)))}}

/* the words, on the left */
.h3-copy{position:absolute;z-index:3;left:var(--gutter);top:calc(178 * var(--u) + (100svh - 941 * var(--u)) * .45);width:calc(900 * var(--u));pointer-events:none;opacity:1!important;translate:none!important}
.h3-copy a{pointer-events:auto}
:where(.h3) h1{margin:0;font-weight:800;font-size:calc(80 * var(--u));line-height:calc(76 * var(--u));letter-spacing:-.02em;color:#F8FAFC}
:where(.h3) h1 span{display:block}
:where(.h3) h1 .tb{font-size:calc(96 * var(--u));line-height:calc(96 * var(--u));letter-spacing:-.022em;margin-top:calc(2 * var(--u));background:linear-gradient(180deg,#00E3F3,#00EFFA);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 calc(14 * var(--u)) rgba(0,232,246,.28))}
.swoosh{display:block;width:calc(550 * var(--u));height:calc(39 * var(--u));margin:calc(4 * var(--u)) 0 0 calc(28 * var(--u));fill:#00F1FA;filter:drop-shadow(0 0 calc(3 * var(--u)) rgba(0,241,250,.4))}
.live,.following{display:flex;align-items:center;gap:calc(17 * var(--u));margin:calc(26 * var(--u)) 0 0 calc(13 * var(--u));font-size:calc(26 * var(--u));line-height:calc(32 * var(--u));font-weight:500;letter-spacing:-.012em;color:var(--text)}
.live i{flex:none;width:calc(20 * var(--u));height:calc(20 * var(--u));border-radius:50%;background:#FF2435;box-shadow:0 0 calc(10 * var(--u)) rgba(255,34,41,.65);animation:blink 1.6s ease-in-out infinite}
.live.off i{background:#6B7A88;box-shadow:none;animation:none}
@keyframes blink{50%{opacity:.6}}
.following{display:none;margin-top:calc(8 * var(--u))}
.following i{flex:none;width:calc(20 * var(--u));height:calc(20 * var(--u));border-radius:calc(5 * var(--u));background:var(--route,#888)}
.h3-hero.two .following.on{display:flex}
.h3-services{display:grid;grid-template-columns:calc(218 * var(--u)) calc(205 * var(--u)) calc(205 * var(--u));margin:calc(52 * var(--u)) 0 0 calc(-4 * var(--u));padding:0;list-style:none}
.h3-services li+li{border-left:2px solid rgba(8,126,155,.65)}
.h3-services a{display:flex;flex-direction:column;align-items:center;gap:calc(11 * var(--u));min-height:calc(108 * var(--u));text-align:center;text-decoration:none;font-size:calc(23 * var(--u));line-height:calc(25 * var(--u));font-weight:500;letter-spacing:-.03em}
.h3-services svg{height:calc(47 * var(--u));width:auto;fill:none;stroke:#F5F7FA;stroke-width:3.3;stroke-linecap:round;stroke-linejoin:round}
.h3-services a:hover{color:var(--cyan)}
.h3-services a:hover svg{stroke:var(--cyan)}
.actions{display:flex;align-items:center;gap:calc(43 * var(--u));margin:calc(50 * var(--u)) 0 0 calc(-13 * var(--u))}
.h3-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:calc(12 * var(--u));width:calc(413 * var(--u));height:calc(67 * var(--u));padding:0 calc(29 * var(--u)) 0 calc(35 * var(--u));border-radius:999px;text-decoration:none;font-weight:600;font-size:calc(25 * var(--u));letter-spacing:-.032em;color:#002436;background:linear-gradient(180deg,#00F1FD,#01CAFF);box-shadow:0 0 calc(16 * var(--u)) rgba(0,225,255,.25),inset 0 1px 0 rgba(255,255,255,.55)}
.h3-btn:hover{filter:brightness(1.07)}
.watch{display:inline-flex;align-items:center;gap:calc(19 * var(--u));text-decoration:none;font-weight:600;font-size:calc(25 * var(--u));letter-spacing:-.028em}
.watch svg{width:calc(50 * var(--u));height:calc(50 * var(--u))}
.watch:hover{color:var(--cyan)}

/* how to move the map, shown only when it is needed; the map's own buttons, small, low on the right */
.hint{position:absolute;z-index:3;left:62%;top:55%;transform:translate(-50%,-50%);margin:0;padding:.7rem 1.1rem;border-radius:999px;background:rgba(3,27,48,.82);color:#fff;font-size:.9375rem;font-weight:500;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .25s}
.hint.on{opacity:1}
.turn{position:absolute;z-index:3;left:var(--gutter);bottom:calc(32 * var(--u));display:flex;gap:.4rem;opacity:0;pointer-events:none;transition:opacity .4s}
.h3-hero.landed .turn{opacity:1;pointer-events:auto}
.turn{display:none}
.turn button{display:grid;place-items:center;width:2.4rem;height:2.4rem;padding:0;border:1px solid rgba(160,230,255,.35);border-radius:50%;background:rgba(3,27,48,.62);color:#fff;font:700 .75rem/1 "Plus Jakarta Sans",system-ui,sans-serif;cursor:pointer;backdrop-filter:blur(6px)}
.turn button:hover{background:#0063F6;border-color:#20E9FF}
.turn svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Two frames: the hero stays put (.pin) while the page moves down a short way; half way down the
   camera goes to the buses (.two). Here the words stay where they are in both. */
.frames{--step:44svh;background:var(--navy)}
.frames::after{content:"";display:block;height:var(--step)}
.pin{position:sticky;top:0}
.h3-hero.two #city{pointer-events:none;cursor:default}
.h3-hero.two .hint,.h3-hero.two .turn{display:none}
@media (prefers-reduced-motion:reduce){.live i,.cloud{animation:none}#city{transition:none}.stage::after{animation:none;opacity:0}}

/* phones: the words at the top over the dark, the city below them */
@media (max-width:820px){
  .h3{--gutter:20px}
  .top{padding:14px 20px 0}
  .mark img{height:30px}
  .top nav{gap:16px;font-size:15px}
  .top .cta{display:none}
  .h3-copy{top:76px;left:20px;right:20px;width:auto}
  :where(.h3) h1{font-size:clamp(28px,8.6vw,40px);line-height:1.02}
  :where(.h3) h1 .tb{font-size:clamp(33px,10vw,47px);line-height:1.05}
  .swoosh{width:62vw;height:6.2vw;margin:-2px 0 0 3vw}
  .live,.following{font-size:15px;line-height:20px;gap:10px;margin:12px 0 0 2px}
  .live i,.following i{width:11px;height:11px}
  .h3-services{grid-template-columns:repeat(3,1fr);margin:22px 0 0}
  .h3-services a{gap:7px;min-height:0;font-size:12.5px;line-height:14px}
  .h3-services svg{height:30px}
  .actions{flex-wrap:wrap;gap:12px 20px;margin:22px 0 0}
  .h3-btn{width:auto;height:50px;padding:0 20px 0 24px;font-size:16px;gap:8px;white-space:nowrap}
  .watch{font-size:16px;gap:10px}
  .watch svg{width:36px;height:36px}
  .shade{--e:var(--words-end,30rem);background:linear-gradient(180deg,rgba(0,25,41,.97) 0,rgba(0,27,43,.93) calc(var(--e) - 60px),rgba(0,29,45,.6) calc(var(--e) + 10px),rgba(0,30,45,0) calc(var(--e) + 90px)),linear-gradient(180deg,rgba(0,24,38,0) 80%,rgba(0,24,38,.3) 100%)}
  .sun{right:-140px;top:-70px;width:260px;height:260px}
  .clouds{display:none}
  /* during the flight a scroll lifts the words, the header and their dark out of the way (--lift,
     set by the page's script), and they slide back when it lands */
  .top,.h3-copy,.shade{transform:translateY(calc(var(--lift,0px) * -1))}
  .frames.settling .top,.frames.settling .h3-copy,.frames.settling .shade{transition:transform .7s cubic-bezier(.2,.7,.1,1)}
  .cloud.side{display:none}
  .cloud.wisp{display:none}
  .turn{left:auto;right:14px;bottom:14px}
  .hint{left:50%;top:auto;bottom:16svh}
}
/* on the home page: the page's own .hero rules (a grid with padding) do not apply here */
.h3-hero.hero{display:block;min-height:540px;padding:0}

