/* Cirrus v2: one unbroken flight on a canvas, a frosted floor card, weather pills. After the Omnya "Choose your floor" reel. */
:root{
  --ink:#fff; --soft:rgba(255,255,255,.72); --faint:rgba(255,255,255,.5);
  --glass:rgba(255,255,255,.13); --glass-hi:rgba(255,255,255,.22); --edge:rgba(255,255,255,.3);
  --font:"Inter Tight",system-ui,-apple-system,sans-serif;
  --gut:clamp(16px,2.6vw,40px);
  --out:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html{background:#0d1424;color:var(--ink)}
body{font-family:var(--font);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* the picture */
.stage{position:fixed;inset:0;overflow:hidden;background:#0d1424}
.poster,.film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.film{display:none}
html.js:not(.rm) .film{display:block}
html.js:not(.rm) .poster{transition:opacity .8s ease}
html.js:not(.rm) .poster.gone{opacity:0}
.vignette{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(180deg,rgba(6,10,20,.38) 0,rgba(6,10,20,0) 22%),
  linear-gradient(0deg,rgba(6,10,20,.32) 0,rgba(6,10,20,0) 26%)}

/* loader: the name and a hairline */
.ld{display:none}
html.js:not(.rm) .ld{display:flex;position:fixed;inset:0;z-index:40;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#0d1424;transition:opacity .7s ease,visibility 0s .7s}
html.js:not(.rm):not(.loading) .ld{opacity:0;visibility:hidden}
.ld p{font-weight:600;font-size:13px;letter-spacing:.42em;padding-left:.42em}
.ld i{width:120px;height:1px;background:rgba(255,255,255,.18);overflow:hidden}
.ld b{display:block;height:100%;background:#fff;transform-origin:left;transform:scaleX(var(--p,0));transition:transform .25s linear}

/* brand, top left */
.brand{position:fixed;left:var(--gut);top:calc(var(--gut) + env(safe-area-inset-top));z-index:10;display:flex;flex-direction:column;gap:4px;transition:opacity .6s ease,transform .6s var(--out)}
.brand b{font-weight:600;font-size:12px;letter-spacing:.32em}
.brand span{font-size:11px;color:var(--soft);letter-spacing:.04em}

/* frosted glass, shared. The saturate and brightness are what make it glow: the warm lights behind
   a pill bloom through it, the way the reel's pills turn amber over the lit tower. */
.glass{background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter:blur(16px) saturate(2.3) brightness(1.12);backdrop-filter:blur(16px) saturate(2.3) brightness(1.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(255,255,255,.1),inset 0 0 14px rgba(255,255,255,.06),0 8px 30px rgba(5,10,25,.16)}
.card.glass{background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.03));border-color:rgba(255,255,255,.26);
  -webkit-backdrop-filter:blur(34px) saturate(2.2) brightness(1.08);backdrop-filter:blur(34px) saturate(2.2) brightness(1.08)}

/* cursor light: a soft warm highlight follows the pointer inside every glass control, and the rim
   brightens nearest the pointer. --mx/--my are set from JS, --gl fades it in on hover. */
.glow{position:relative;isolation:isolate;--mx:50%;--my:50%;--gl:0}
.glow::before,.glow::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;opacity:var(--gl);transition:opacity .35s ease}
.glow::before{z-index:-1;background:radial-gradient(circle 70px at var(--mx) var(--my),rgba(255,226,186,.42),rgba(255,190,130,.14) 45%,transparent 75%);mix-blend-mode:screen}
.glow::after{padding:1px;background:radial-gradient(circle 60px at var(--mx) var(--my),rgba(255,255,255,.95),rgba(255,255,255,0) 70%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.glow:hover{--gl:1}
.glass.glow:hover:not(.seg){box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -1px 0 rgba(255,255,255,.16),inset 0 0 18px rgba(255,255,255,.12),0 0 26px rgba(255,196,140,.22),0 8px 30px rgba(5,10,25,.16)}
@media (hover:none){.glow::before,.glow::after{display:none}}

/* the floor card */
.card{position:fixed;z-index:12;right:clamp(16px,7vw,120px);top:61%;width:min(372px,calc(100vw - 32px));padding:22px 22px 20px;border-radius:24px;
  transform:translateY(-50%);transition:opacity .55s ease,transform .7s var(--out),filter .55s ease}
.card h2{font-weight:600;font-size:25px;letter-spacing:-.015em;line-height:1.1}
.card .sub{margin-top:6px;font-size:12.5px;color:var(--soft)}
.card .x{position:absolute;right:14px;top:14px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);transition:background .2s}
.card .x:hover{background:rgba(255,255,255,.26)}
.card .x svg{width:10px;height:10px;stroke:#fff;stroke-width:1.6;fill:none;stroke-linecap:round}
.row{display:flex;align-items:center;justify-content:space-between;margin-top:20px}
.readout{display:flex;align-items:baseline;gap:10px;min-height:76px}
.lbl{font-size:12px;color:var(--soft);font-weight:500;white-space:nowrap;overflow:hidden;max-width:4em;transition:opacity .25s ease,max-width .45s var(--out),margin .45s var(--out)}
.card.top .lbl{opacity:0;max-width:0;margin-right:-10px}
.big{font-weight:600;font-size:66px;line-height:1;letter-spacing:-.035em;font-variant-numeric:tabular-nums;min-width:3ch}
.card.top .big{font-size:52px;letter-spacing:-.025em}
.arrows{display:flex;flex-direction:column;gap:10px}
.arrow{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border-color:rgba(255,255,255,.42);transition:background .3s,box-shadow .3s,transform .15s,opacity .3s}
.arrow:hover{background:var(--glass-hi)}
.arrow:active{transform:scale(.92)}
.arrow:disabled{opacity:.35;cursor:default}
.arrow svg{width:15px;height:15px;stroke:#fff;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tier{margin-top:8px;font-weight:600;font-size:14px;min-height:1.4em}
/* the reel's Enter button: milky cream glass with dark text, and on hover it lights up white with a soft halo */
.enter{display:block;width:100%;margin-top:16px;height:48px;border-radius:99px;font-size:15px;font-weight:500;color:#4a3f37;
  background:linear-gradient(180deg,rgba(255,249,240,.66),rgba(255,239,222,.46));border:1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(10px) saturate(1.6);backdrop-filter:blur(10px) saturate(1.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(255,255,255,.25),0 2px 14px rgba(70,35,10,.14);
  transition:background .45s ease,color .45s ease,box-shadow .45s ease,transform .15s}
.enter:hover{background:linear-gradient(180deg,rgba(255,253,249,.92),rgba(255,246,236,.8));color:#2c251f;
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px rgba(255,255,255,.7),0 0 24px rgba(255,244,228,.6),0 0 60px rgba(255,205,160,.32)}
.enter:active{transform:scale(.985)}
.card.top .enter{background:linear-gradient(180deg,rgba(255,253,250,.94),rgba(252,246,238,.86));color:#2a241f;border-color:rgba(255,255,255,.9)}
.card.top .enter:hover{background:#fffdf9;box-shadow:inset 0 1px 0 #fff,0 0 0 1px #fff,0 0 30px rgba(255,248,236,.85),0 0 80px rgba(255,214,170,.45)}
.big{text-shadow:0 0 26px rgba(255,255,255,.28)}

/* text that changes: the old value blurs out as the new one blurs in, in the same place */
.swap{position:relative;display:inline-grid}
.swap .v{grid-area:1/1;white-space:nowrap}
.enter .swap,.tier.swap{display:grid}
.enter .swap{justify-items:center}
.swap .v.out{animation:vout .32s ease forwards}
.swap .v.in{animation:vin .36s var(--out) both}
@keyframes vout{to{opacity:0;filter:blur(6px);transform:translateY(var(--dy-out,-.18em))}}
@keyframes vin{from{opacity:0;filter:blur(6px);transform:translateY(var(--dy-in,.18em))}}

/* pills: weather and floor (bottom left), one call to action (bottom centre) */
.pill{height:40px;padding:0 18px;border-radius:99px;font-size:13.5px;font-weight:500;white-space:nowrap;transition:background .35s ease,color .35s ease,opacity .45s ease,transform .5s var(--out),filter .45s ease}
.pill:hover{background:var(--glass-hi)}
.pill.on{background:#f6f1e8;color:#23201b;border-color:rgba(255,255,255,.9);box-shadow:0 4px 18px rgba(20,12,4,.18),inset 0 1px 0 #fff}
.dock{position:fixed;z-index:12;left:var(--gut);bottom:calc(var(--gut) + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.main-pills{display:flex;gap:8px}

/* the weather: one glass capsule of three options. The cream pill marks the choice and glides to it;
   a liquid-glass lens glides under the pointer on hover. */
.seg{display:flex;padding:4px;border-radius:99px;gap:0;transform:translateY(8px);opacity:0;pointer-events:none;filter:blur(4px);
  transition:opacity .45s ease,transform .55s var(--out),filter .45s ease}
.dock.open .seg{transform:none;opacity:1;pointer-events:auto;filter:none}
.seg button{position:relative;z-index:2;height:34px;padding:0 17px;border-radius:99px;font-size:13.5px;font-weight:500;color:#fff;white-space:nowrap;transition:color .35s ease}
.seg button.on{color:#23201b}
.seg-sel,.seg-lens{position:absolute;left:0;top:4px;height:34px;border-radius:99px;pointer-events:none;
  transform:translateX(var(--x,4px));width:var(--w,0);transition:transform .55s var(--out),width .55s var(--out),opacity .3s ease}
.seg-sel{z-index:1;background:#f6f1e8;box-shadow:0 4px 16px rgba(20,12,4,.2),inset 0 1px 0 #fff}
.seg-lens{z-index:1;opacity:0;background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.08));
  -webkit-backdrop-filter:blur(6px) saturate(2.6) brightness(1.25);backdrop-filter:blur(6px) saturate(2.6) brightness(1.25);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -1px 1px rgba(255,255,255,.25),inset 1px 0 1px rgba(255,255,255,.18),inset -1px 0 1px rgba(255,255,255,.18),0 0 18px rgba(255,200,150,.25)}
.seg.hovering .seg-lens{opacity:1}
.seg.hovering .seg-lens.on-sel{opacity:0}

/* while the weather changes the pills step aside, then come back */
body.busy .dock{opacity:0!important;filter:blur(6px);transform:translateY(6px)!important;pointer-events:none!important;transition:opacity .3s ease,filter .3s ease,transform .4s var(--out)!important}
.cta{position:fixed;z-index:12;left:50%;bottom:calc(var(--gut) + 8px + env(safe-area-inset-bottom));transform:translateX(-50%)}

/* who shows when: body[data-at] */
.card,.dock,.cta{opacity:0;pointer-events:none}
.card{transform:translateY(calc(-50% + 14px)) scale(.985);filter:blur(6px)}
.dock{transform:translateY(10px)}
.cta{transform:translate(-50%,10px)}
body[data-at=tower] .card:not(.hide){opacity:1;pointer-events:auto;transform:translateY(-50%);filter:none}
body[data-at=tower] .dock,body[data-at=sky] .dock{opacity:1;pointer-events:auto;transform:none;transition:opacity .5s ease .1s,transform .7s var(--out) .1s}
body[data-at=tower] .dock .wbtn,body[data-at=tower] .dock .seg{display:none}
body[data-at=tower] .card:not(.hide) ~ .dock{opacity:0;pointer-events:none;transition-delay:0s}
body[data-at=deck] .cta,body[data-at=swim] .cta{opacity:1;pointer-events:auto;transform:translateX(-50%);transition:opacity .5s ease .25s,transform .7s var(--out) .25s}
body[data-at=fly] .brand{opacity:0;transform:translateY(-6px)}
body[data-at=fly] .dock,body[data-at=fly] .cta{transition-duration:.3s}

/* copy line and lab footer */
.copy{display:none}
.lab{position:fixed;z-index:11;right:var(--gut);bottom:calc(var(--gut) + 10px + env(safe-area-inset-bottom));display:flex;gap:14px;font-size:10px;letter-spacing:.14em;color:var(--faint);transition:opacity .5s ease}
.lab a{color:var(--soft)}
.lab a:hover{color:#fff}
body[data-at=fly] .lab{opacity:0}

@media (max-width:820px){
  .card{left:16px;right:16px;width:auto;top:auto;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateY(14px);padding:18px 18px 16px;border-radius:22px}
  body[data-at=tower] .card:not(.hide){transform:none}
  .card h2{font-size:21px}
  .big{font-size:54px}
  .readout{min-height:62px}
  .lab{left:var(--gut);right:auto;top:calc(var(--gut) + 46px + env(safe-area-inset-top));bottom:auto}
  .cta{bottom:calc(28px + env(safe-area-inset-bottom))}
}

/* no motion: the poster, the card as plain copy */
html.rm body{overflow:auto}
html.rm .card,html.rm .dock{opacity:1;pointer-events:auto;filter:none}
html.rm .copy{display:block;position:fixed;left:var(--gut);bottom:var(--gut);max-width:420px;font-size:13px;line-height:1.55;color:var(--soft)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* the floor callout beside the lit band on the tower: a hairline and the floor number */
.callout{position:fixed;left:0;top:0;z-index:9;pointer-events:none;display:flex;align-items:center;gap:10px;opacity:0;margin-top:-.7em;will-change:transform,opacity;
  font-size:15px;font-weight:500;letter-spacing:.01em;color:#fff;text-shadow:0 0 14px rgba(255,200,140,.55),0 1px 2px rgba(0,0,0,.35)}
.callout i{display:block;width:44px;height:1px;background:linear-gradient(90deg,rgba(255,236,200,.95),rgba(255,255,255,.5));box-shadow:0 0 8px rgba(255,200,140,.8)}
.callout .swap{min-width:4ch}
@media (max-width:820px){.callout{font-size:13px}.callout i{width:26px}}
