/* pop.css  PREVIEW ONLY (2026-11-13). Motion layer over unslop.css.
   Jason: "keep the unslop design but add some more motion and animation to make it pop".

   Thesis: a call, a reply or a missed call turns into an appointment on a calendar.
   The hero plays that once; the systems stage plays it per system; the rest is
   short entrances. Every finished state is the default, so no script, no :has()
   support or reduced motion still shows the whole page. Loops stop when the stage
   is off screen, hovered, keyboard-focused, paused, or the tab is hidden. */

/* ---- headings: lines slide up out of a mask ------------------------------- */
.ln{display:block; overflow:hidden; padding-bottom:.14em; margin-bottom:-.14em}
.ln > span{display:block}
.hero h1{text-wrap:balance}
.hero h1 .thin{font-size:clamp(1.5rem,2.7vw,2.375rem); line-height:1.15; margin-top:.35em; letter-spacing:-.02em}
.night h2 .thin{color:var(--ink-faint)}
.night h2{max-width:26ch}

/* ---- shared: two-column log rows, the booked row --------------------------- */
.pop .log li{grid-template-columns:5.5rem minmax(0,1fr)}
@media(max-width:420px){.pop .log li{grid-template-columns:4.5rem minmax(0,1fr)}}
.log .booked{margin:12px -12px 0; padding:12px; border:0; border-radius:10px;
  background:var(--day); align-items:center}
.log .booked .who{color:var(--day-soft)}
.log .booked .x{color:var(--day-ink); font-weight:500}

/* ---- HERO: the week fills up ----------------------------------------------- */
.count{text-align:right}
.odo{display:block; height:2rem; overflow:hidden; font-size:2rem; line-height:1;
  font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.odo .strip{display:block; transform:translateY(-75%)}
.odo i{display:block; height:2rem; font-style:normal}
.live{display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%;
  background:var(--oxide); vertical-align:.04em}
.week{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:16px}
.week div{min-height:88px; padding:8px; border-radius:8px; background:var(--field-2);
  border:1px solid var(--rule-faint); display:flex; flex-direction:column; gap:8px}
.week small{font-size:.75rem; color:var(--ink-faint)}
.appt{display:block; padding:6px 8px; border-radius:6px; background:var(--day);
  color:var(--day-ink); font-size:.75rem; line-height:1.3; transform-origin:50% 100%}
.appt b{display:block; font-weight:600; font-variant-numeric:tabular-nums}
@media(max-width:520px){
  .week{grid-template-columns:repeat(3,minmax(0,1fr))}
  .week .pad{display:none}
}
/* rewound states: only with script, and only where :has() exists */
.js .cal:not(:has([data-slot="3"].on)) .strip{transform:translateY(-50%)}
.js .cal:not(:has([data-slot="2"].on)) .strip{transform:translateY(-25%)}
.js .cal:not(:has([data-slot="1"].on)) .strip{transform:translateY(0)}
.js .cal:not(:has([data-slot="1"].on)) .slot-1,
.js .cal:not(:has([data-slot="2"].on)) .slot-2,
.js .cal:not(:has([data-slot="3"].on)) .slot-3{opacity:0; transform:translateY(8px) scale(.86)}

/* ---- SYSTEMS: four tabs of system cards (demos.js), accordion on phones ------- */
.sys{margin-top:40px}
.sys-side{display:none}
.sys-panels{display:grid; gap:16px}
.sys-on{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:clamp(24px,4vw,56px); align-items:start}
.sys-on .sys-side{display:block}
.sys-tabs{display:grid; border-top:1px solid var(--rule-hi)}
.sys-tabs button{position:relative; display:grid; gap:4px; width:100%; padding:20px 0;
  background:none; border:0; border-bottom:1px solid var(--rule); border-radius:0;
  color:var(--ink-faint); font:inherit; text-align:left; cursor:pointer;
  transition:color .2s var(--ease)}
.sys-tabs b{font-size:1.25rem; font-weight:500; letter-spacing:-.01em; line-height:1.2}
.sys-tabs span{font-size:.875rem; color:var(--ink-faint)}
.sys-tabs button:hover,.sys-tabs button[aria-selected=true]{color:var(--ink)}
.sys-tabs button:focus-visible{outline:2px solid var(--ink); outline-offset:2px}
.sys-tabs button[aria-selected=true]{box-shadow:inset 0 -2px 0 var(--ink)}
.sys-on .sys-panels > .sys-p:not(.is-on){display:none}
@media(max-width:860px){
  /* accordion: one button per group, the tabs hidden */
  .sys-on{grid-template-columns:minmax(0,1fr); gap:0}
  .sys-on .sys-side{display:none}
  .sys-on .sys-panels{gap:0; border-top:1px solid var(--rule-hi)}
  .sys-on .sys-panels > .sys-p.is-on{padding:16px 0 24px}
}

/* ---- offer and who --------------------------------------------------------- */
.st-k{font-size:.875rem; letter-spacing:0; text-transform:none}
/* keep each step's text clear of the riser on its left (Jason, 2026-11-14) */
@media(min-width:761px){.stairs li + li:not(.climb){padding-left:20px}}
.niches a{grid-template-columns:minmax(0,17rem) minmax(0,1fr) auto}
@media(max-width:760px){.niches a{grid-template-columns:minmax(0,1fr) auto}}

/* ---- MOTION ---------------------------------------------------------------- */
@keyframes ln-up{from{transform:translateY(110%)}}
@keyframes fade-up{from{opacity:0; transform:translateY(12px)}}
@keyframes panel-in{from{opacity:0; transform:translateY(24px)}}
@keyframes live{50%{opacity:.25; transform:scale(.7)}}

@media (prefers-reduced-motion:no-preference){
  /* hero entrance: pure CSS, so it never waits on a script */
  .hero .ln > span{animation:ln-up .7s var(--ease) both}
  .hero .ln + .ln > span{animation-delay:.09s}
  .hero .lede{animation:fade-up .6s var(--ease) .25s both}
  .hero .acts{animation:fade-up .6s var(--ease) .32s both}
  .hero .under{animation:fade-up .6s var(--ease) .38s both}
  .hero .panel{animation:panel-in .8s var(--ease) .15s both}

  /* section headings ride the reveal v4.js already gives .rise */
  .js .rise .ln > span{transition:transform .7s var(--ease)}
  .js .rise .ln + .ln > span{transition-delay:.09s}
  .js .rise:not(.in) .ln > span{transform:translateY(110%)}

  /* the week */
  .strip{transition:transform .6s var(--ease) .3s}
  .appt{transition:opacity .3s var(--ease) .35s, transform .5s var(--ease) .35s}
  .js .cal:not(.done) .live{animation:live 1.2s ease-in-out infinite}

  /* the booked row wipes in from the left */
  .js .demo .booked{clip-path:inset(0 100% 0 0 round 10px);
    transition:opacity .3s var(--ease), transform .4s var(--ease), clip-path .6s var(--ease)}
  .js .demo .booked.on{clip-path:inset(0 0 0 0 round 10px)}

  /* the oxide line draws across */
  .js .dusk{background:transparent}
  .js .dusk::after{content:""; position:absolute; inset:0; top:0; bottom:0; height:auto;
    background:var(--oxide); transform:scaleX(0); transform-origin:0 50%;
    transition:transform 1s var(--ease)}
  .js .dusk.dawn::after{transform-origin:100% 50%}
  .js .dusk.in::after{transform:scaleX(1)}
}

/* ---- BACKGROUND: four lines join into one booked appointment ---------------
   Jason, 2026-11-13: "I do want some motion in the background ... background
   movement that happens periodically as the page is open"; 2026-11-14: no boxes,
   "an animation that encapsulates what I build". Drawn by pop.js on one
   fixed canvas. White at low alpha with difference blending, so the same pixels
   darken the day ground and lighten the night ground. Content sits above it. */
.bg-cal{position:fixed; inset:0; width:100%; height:100%; z-index:0;
  pointer-events:none; mix-blend-mode:difference}
.wrap{position:relative; z-index:1}
footer .motion-toggle:not([hidden]){display:inline-block !important}
/* footer links were 19 to 21px tall: too small to tap on a phone */
footer a.under{display:inline-block; padding:12px 0}
footer .motion-toggle{padding:12px 0; margin-top:0}   /* sat 16px below the links in the same row */
.motion-paused .live{animation:none !important}
