/* =========================================================
   yolk.css — THE FULL STOP (§5.1), owned by yolk.js.
   html.yk-a / .yk-b : live mode A (travel) / B (hero only), set at mode entry
   html.yk-live      : Mode A shader has taken over (site.css hides every SVG yolk)
   html.yk-hero      : Mode B shader has taken over the hero only
   html.yk-thrown    : the yolk is out of the O (the empty O is clickable)
   html.yk-fly       : held / flying / homing (Mode A canvas lifts above the nav)
   ========================================================= */

/* the canvas: one per page, created by yolk.js */
#yolk{position:fixed;left:0;top:0;z-index:40;pointer-events:none;opacity:0;will-change:transform;contain:strict}
#yolk.yk-cv--b{position:absolute}                     /* Mode B: scrolls natively with .cover */
html.yk-fly #yolk:not(.yk-cv--b){z-index:51}          /* Mode A, out of the O: fly over the opaque nav (z 50), under the menu */

/* the handle follows the live yolk (JS sets width/height/transform) */
html:is(.yk-a,.yk-b) .yolk-handle{left:0;top:0;touch-action:none;will-change:transform}
html.yk-a .yolk-handle{position:fixed}
/* let the handle (z 45) sit above the cover copy while the yolk flies over it; the mast keeps
   painting above .cover__lines by DOM order, and the cover star still overlaps the masthead */
html:is(.yk-a,.yk-b) .cover__mast{z-index:auto}
html.yk-grabbing,html.yk-grabbing *{cursor:grabbing !important}
html.yk-grabbing{user-select:none;-webkit-user-select:none}

/* kiss-cut slot: fades with the dock state. While the yolk is out, a click on the empty O sends it home
   (yolk.js delegates the click: the hero anchor span sits above #mh-slot and receives it) */
#mh-slot{transition:opacity .2s var(--e-out)}
html.yk-hero #mh-yolk{visibility:hidden}
/* (cover only: in Mode B the footer anchor never docks, and its static yolk stays, so no label over it) */
html.yk-hero .cover .mh-wrap:has(.yk-anchor--o:not(.is-docked)) .mh-slot-label,
html.yk-hero .mh-wrap:has(.yk-anchor--o:not(.is-docked)) #mh-slot{opacity:1}
html.yk-thrown .cover .yk-anchor--o{cursor:pointer}
/* hint: the drawn arrow leads, so it points up-left into the O */
.yolk-hint svg{order:-1}
/* phones: the O is ~60px wide, so the kiss-cut label stacks inside the ring instead of running over the Y and L */
@media (max-width:767px){
  .mh-slot-label{white-space:normal;width:12%;text-align:center;line-height:1.15;font-size:.5rem;letter-spacing:.08em}
  .yolk-hint{margin-top:0;font-size:.875rem;align-items:center}   /* stays in the 24px gap above the H1 */
  .yolk-hint svg{width:36px;height:18px}
}
/* tablets / landscape phones / narrow windows: line 1 of the H1 runs under the hint (br.lg is off), so keep it compact too */
@media (min-width:768px) and (max-width:1023px){
  .yolk-hint{margin-top:0;font-size:.9375rem;align-items:center}
  .yolk-hint svg{width:36px;height:18px}
}

/* Mode A: the LET'S GO label (z 45) must paint above the live yolk (z 40) at stop 6.
   .contact>.grid{z-index:1} would trap it below the canvas; auto keeps it above the flood by DOM order. */
html.yk-live .contact>.grid{z-index:auto}
/* after the flood the live yolk is gone (uA 0): the flat face ellipse (yolk on yolk, ink rim) covers the doodle's drawn label */
html.yk-live.yk-flooded .letsgo__face{visibility:visible}

/* Mode B: static yolks squash in on first view (character layer: overshoot allowed) */
@keyframes yk-arrive{0%{scale:.6 1.3}55%{scale:1.12 .86}100%{scale:1 1}}
.yk-arrive{animation:yk-arrive .7s var(--e-snap);transform-origin:50% 100%;transform-box:fill-box}

@media print{
  #yolk{display:none !important}
  html.yk-live .yk-anchor .yk-svg,html.yk-live #mh-yolk,html.yk-live #ft-mh-yolk,html.yk-live .letsgo__face,html.yk-hero #mh-yolk{visibility:visible !important}
}
