/* =====================================================================
   v3 — sky hero · Meet virtual me · talking notes · walking guide · curved roll
   ===================================================================== */

/* ---------- Hero sky ---------- */
.hero{background:
  radial-gradient(60% 50% at var(--lx,60%) var(--ly,30%),rgba(255,255,255,.18),rgba(255,255,255,0) 62%),
  linear-gradient(180deg,#2340E0 0%,#3D58E4 20%,#6E86EC 40%,#A5B6F3 58%,#D3DCF8 72%,#EEF2FC 85%,#FFFFFF 100%)}
.hero .crop.tl,.hero .crop.tr,.hero-reg{color:#fff}
.hero-reg{opacity:.55}
.hero-intro .kicker{color:rgba(255,255,255,.82)}
.hero-intro .dot,.nav.on-sky .dot{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.22)}
.hero-role{color:#fff}
.hero-role .serif{color:#DDE4FF}
.hero-sub{color:rgba(255,255,255,.84)}
.hero-meta{color:rgba(255,255,255,.72)}
.hero-meta dd{color:#fff}
.nav.on-sky{color:#fff}
.nav.on-sky .nav-links a{color:rgba(255,255,255,.82)}
.nav.on-sky .nav-links a:hover{color:#fff}
.nav.on-sky .logo i{color:#DDE4FF}
.nav.on-sky.is-solid{background:rgba(35,64,224,.42)}
.nav.on-sky .nav-progress{background:#fff}
.nav.on-sky .pill:hover{background:#fff;color:var(--blue);border-color:#fff}
.nav.on-sky .pill:hover .dot{background:var(--blue)}

/* ---------- Talking note (shared by every speaker) ---------- */
.note{position:absolute;z-index:6;max-width:380px;padding:15px 18px 13px;background:rgba(255,255,255,.95);color:var(--ink);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:4px;
  box-shadow:0 1px 0 var(--hair),0 24px 50px -28px rgba(11,13,18,.38);
  transform-origin:0 calc(100% - 24px);opacity:0;transform:scale(.55) translateX(-14px);pointer-events:none;visibility:hidden;
  transition:opacity .25s,transform .5s cubic-bezier(.34,1.56,.64,1),visibility 0s .5s}
.note.show{opacity:1;transform:none;pointer-events:auto;visibility:visible;transition:opacity .25s,transform .5s cubic-bezier(.34,1.56,.64,1),visibility 0s}
.note.out{opacity:0;transform:scale(.88) translateX(-10px);transition:opacity .3s .12s,transform .45s var(--ease),visibility 0s .5s}
.note::before{content:"";position:absolute;left:-7px;bottom:18px;width:14px;height:14px;background:inherit;transform:rotate(45deg);box-shadow:-1px 1px 0 var(--hair)}
.note-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:7px}
.note .who{color:var(--blue);display:flex;align-items:center;gap:8px}
.note .live{width:6px;height:6px;border-radius:50%;background:var(--blue);transition:transform .09s,box-shadow .2s}
.note .live.beat{transform:scale(1.7);box-shadow:0 0 0 4px rgba(31,59,255,.14)}
.note.done .live{background:#B9C0D6}
.note .x{width:28px;height:28px;border-radius:50%;border:1px solid var(--hair);background:#fff;color:var(--graphite);font-size:12px;display:grid;place-items:center}
.note .x:hover{border-color:var(--ink);color:var(--ink)}
.note .line{font-family:var(--serif);font-style:italic;font-size:22px;line-height:1.25;color:var(--ink);min-height:1.25em;text-wrap:pretty}
.note .w{display:inline-block;opacity:0;transform:translateY(8px);filter:blur(6px);transition:opacity .35s var(--ease),transform .45s var(--ease),filter .4s var(--ease)}
.note .w.on{opacity:1;transform:none;filter:blur(0)}
.note .w.leave{opacity:0;transform:translateY(-6px);filter:blur(4px);transition-duration:.25s}
.note .line b{font-style:normal;font-family:var(--display);font-weight:660;font-size:.8em;letter-spacing:-.01em;color:var(--blue)}
.note .hl{position:relative;z-index:0}
.note .hl::after{content:"";position:absolute;left:-2px;right:-2px;bottom:.08em;height:.42em;z-index:-1;border-radius:2px;background:rgba(31,59,255,.16);transform:scaleX(0);transform-origin:0 50%;transition:transform .5s var(--ease) .12s}
.note .hl.on::after{transform:scaleX(1)}
.note .caret{display:inline-block;width:2px;height:.95em;margin-left:3px;vertical-align:-.12em;background:var(--blue);border-radius:1px;transition:opacity .3s}
.note .caret.wait{animation:caretBlink .9s steps(1) infinite}
.note .caret.gone{opacity:0}
@keyframes caretBlink{50%{opacity:0}}
.note .timer{height:2px;background:var(--hair);margin-top:11px;overflow:hidden}
.note .timer i{display:block;height:100%;width:100%;background:var(--blue);transform-origin:0 50%;transform:scaleX(0)}

/* hero note: above-left of the character, notch on the right */
/* hero note: above his head, notch pointing down at him */
.note-hero{right:calc(var(--gutter) + 8.5vw - 120px);bottom:calc(clamp(58px,7.8vh,80px) + min(30vh,270px) + 22px);transform-origin:calc(100% - 120px) 100%;max-width:340px}
.note-hero::before{left:auto;right:113px;bottom:-7px;box-shadow:1px 1px 0 var(--hair)}
.note-hero:not(.show){transform:scale(.55) translateY(14px)}
/* contact note: left of the pointing character */
.note-contact{right:calc(100% + 92px);bottom:-6px;transform-origin:100% calc(100% - 24px);text-align:left;width:max-content;max-width:330px}
.note-contact::before{left:auto;right:-7px;box-shadow:1px -1px 0 var(--hair)}
.note-contact:not(.show){transform:scale(.55) translateX(14px)}
/* meet note: in flow, stays on the page once spoken */
.note-meet{position:relative;max-width:560px;margin:26px 0 30px;opacity:1;transform:none;visibility:visible;pointer-events:auto;padding:20px 24px 18px}
.note-meet::before{bottom:auto;top:30px}
.note-meet .line{font-size:clamp(23px,2.1vw,30px)}
.js .note-meet:not(.spoken) .line[data-static]{visibility:hidden}

/* ---------- Meet virtual me ---------- */
.meet{padding-block:calc(var(--sec) * .8);background:var(--paper)}
.meet-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,110px);align-items:center}
.meet-stage{position:relative;aspect-ratio:4/5;max-height:74vh;container-type:size;
  background:radial-gradient(closest-side at 50% 52%,#E9ECF4 0%,rgba(243,244,247,.6) 55%,rgba(255,255,255,0) 100%)}
.meet-stage .crop{opacity:.5}
.char-meet{left:50%;bottom:13%;--ch:min(70cqh,460px);z-index:2}
.meet-stage .stage-floor{position:absolute;left:50%;bottom:11.5%;width:44%;height:26px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(11,13,18,.2),transparent);z-index:1}
.meet-stage .stage-lab{position:absolute;left:22px;bottom:18px;color:var(--graphite)}
.meet-copy .tag{margin-bottom:20px}
.meet-next{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:22px;color:var(--blue);text-decoration:none;border-bottom:1px solid currentColor}
.meet-next span{transition:transform var(--med) var(--ease)}
.meet-next:hover span{transform:translateY(4px)}

/* ---------- Walking guide (fixed corner) ---------- */
.guide{position:fixed;left:18px;bottom:0;z-index:70;display:flex;align-items:flex-end;pointer-events:none;
  transform:translateY(135%);transition:transform .7s var(--ease)}
.guide.on{transform:none}
.guide.on.peek{transform:translateY(62%)}   /* idle: only his head and shoulders peek in, so he never sits on content */
.char-guide{position:relative;width:0;height:0;--ch:150px;margin-left:58px;margin-bottom:14px}
.char-guide img{filter:drop-shadow(0 14px 16px rgba(11,13,18,.22))}
.note-guide{position:relative;margin:0 0 118px 58px}
.guide-toggle{position:fixed;right:18px;bottom:16px;z-index:71;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--hair);
  background:rgba(255,255,255,.9);backdrop-filter:blur(8px);color:var(--graphite);opacity:0;pointer-events:none;transition:opacity var(--med),border-color var(--fast),color var(--fast)}
.guide-toggle.on{opacity:1;pointer-events:auto}
.guide-toggle:hover{border-color:var(--ink);color:var(--ink)}

/* ---------- Selected work: curved roll ---------- */
.roll{position:relative;width:100%;height:min(64vh,640px);flex:none}
.roll-gl{position:absolute;inset:0;width:100%;height:100%;cursor:grab;touch-action:pan-y}
.roll-gl.grabbing{cursor:grabbing}
.roll-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.roll-label{position:absolute;left:0;top:0;display:flex;justify-content:space-between;align-items:baseline;gap:10px;will-change:transform,opacity;color:var(--graphite)}
.roll-label b{font-size:16px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.roll-mist{position:absolute;top:0;bottom:0;width:22vw;pointer-events:none;z-index:2;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 82%,transparent)}
.roll-mist.l{left:0;background:linear-gradient(90deg,var(--mist) 0%,rgba(243,244,247,.82) 32%,rgba(243,244,247,0) 100%)}
.roll-mist.r{right:0;background:linear-gradient(270deg,var(--mist) 0%,rgba(243,244,247,.82) 32%,rgba(243,244,247,0) 100%)}
.work:not(.roll-on) .roll,.work:not(.roll-on) .rail,.work:not(.roll-on) .roll-hint{display:none}
.work.roll-on .strip-viewport{display:none}
.work.roll-on .work-foot{padding-left:calc(var(--gutter) + 130px)}
.rail{display:flex;gap:6px;align-items:center}
.rail span{width:18px;height:2px;background:#D5D8E0;transition:background-color .3s}
.rail span.on{background:var(--blue)}

@media (max-width:820px){
  .note{max-width:min(78vw,320px)}
  .note .line{font-size:19px}
  .note-hero{right:var(--gutter);bottom:calc(62px + 23.5vw + 132px);transform-origin:100% 100%}
  .note-hero::before{right:22px;bottom:-7px;box-shadow:1px 1px 0 var(--hair)}
  .note-contact{right:auto;left:50%;bottom:calc(100% + 110px);translate:-50% 0;transform-origin:50% 100%}
  .note-contact::before{right:auto;left:calc(50% - 7px);bottom:-7px;box-shadow:1px 1px 0 var(--hair)}
  .meet-grid{grid-template-columns:1fr}
  .meet-stage{max-height:none;max-width:460px;margin-inline:auto;width:100%}
  .note-meet::before{display:none}
  .char-guide{--ch:104px;margin-left:44px}
  .note-guide{margin:0 0 84px 40px;max-width:calc(100vw - 120px)}
  .roll{height:min(56vh,480px)}
  .roll-mist{width:12vw}
  .guide-toggle{bottom:12px;right:12px;min-height:36px}
  .work.roll-on .work-foot{padding-left:var(--gutter)}
  .work .roll-hint{display:none}
}
@media (prefers-reduced-motion:reduce){
  .note .w{opacity:1;transform:none;filter:none}
  .note .hl::after{transform:scaleX(1)}
  .guide{transition:none}
}
