/* patron-wip.css — p196w (2026-11-26): the side panel while the Developer builds or changes a website (patron-wip.js).
   A new website: a stage over the panel's body (a miniature page that assembles itself, standing on its own shadow, the
   name, the Developer's line). A change: the old page dimmed under a small "Updating" card. Dark, White and Sky.
   Sizes on the little page are fractions of --sw (its width, set by patron-wip.js), so it is the same drawing at 340 px
   on a laptop, at 230 px in a phone's sheet and at 46 px on the card. */

.wip{position:absolute;z-index:2;overflow:hidden;isolation:isolate;
  /* the little page is paper in every theme (most finished sites are light, and the reveal hands over to one) */
  --wip-sheet:#f6f6f3; --wip-sheetline:rgba(24,24,20,.06);
  --wip-h:#d6d6d0; --wip-bar:#e6e6e1; --wip-btn:#1b1b1a; --wip-line:rgba(24,24,20,.09); --wip-line2:rgba(24,24,20,.2);
  --wip-pic:linear-gradient(155deg,#e9e8e3 0%,#d9d8d1 85%); --wip-band:#ecece7;
  --wip-mark:#FFDD33; --wip-accent:#E3B200; --wip-live:#14b886;
  /* Dark (the default): a dark stage with a cone of light from above, the page standing in it */
  --wip-ground:#0e0e0f; --wip-light:rgba(255,255,255,.085);
  --wip-shadow:0 34px 60px -26px rgba(0,0,0,.95),0 2px 8px rgba(0,0,0,.45); --wip-floor:rgba(0,0,0,.95);
  --wip-ink:#f2f2ef; --wip-say:#b9b9b5; --wip-faint:#77777a;
  --wip-dim:rgba(12,12,13,.58); --wip-card:rgba(26,26,28,.96);
  --wip-cardshadow:0 0 0 1px rgba(255,255,255,.08),0 18px 40px -12px rgba(0,0,0,.75);
  --wip-av:color-mix(in srgb,#FFD60A 20%,#1a1a1c);
  font-family:inherit}
html[data-theme="light"] .wip{
  /* White */
  --wip-pool:rgba(255,255,255,.9);
  --wip-sheet:#fff; --wip-sheetline:rgba(24,24,20,.07);
  --wip-ground:#f3f3f0; --wip-light:rgba(255,255,255,.95);
  --wip-shadow:0 28px 46px -26px rgba(40,36,28,.34),0 1px 2px rgba(24,24,20,.06); --wip-floor:rgba(40,36,28,.22);
  --wip-h:#dadad5; --wip-bar:#ebebe7; --wip-pic:linear-gradient(155deg,#efeeea 0%,#e1e0da 80%); --wip-band:#f2f2ef;
  --wip-ink:#161616; --wip-say:#5f5f5b; --wip-faint:#9a9a95;
  --wip-dim:rgba(250,250,248,.62); --wip-card:rgba(255,255,255,.97);
  --wip-cardshadow:0 0 0 1px rgba(24,24,20,.08),0 16px 36px -14px rgba(40,36,28,.3);
  --wip-av:color-mix(in srgb,#FFD60A 24%,#fff)}
html[data-sky="sky"] .wip{
  /* Sky: the sky's own light comes into the panel; the little page's pictures are sky */
  --wip-ground:linear-gradient(180deg,#dfeafb 0%,#eef4fd 46%,#fbfdff 100%); --wip-light:rgba(255,255,255,.9);
  --wip-shadow:0 30px 48px -26px rgba(28,72,150,.38),0 1px 2px rgba(20,44,90,.08); --wip-floor:rgba(36,84,170,.24);
  --wip-h:#d2dbe9; --wip-bar:#e6ebf3; --wip-btn:#0A1A33; --wip-line:rgba(10,26,51,.09); --wip-line2:rgba(10,26,51,.2);
  --wip-pic:linear-gradient(165deg,#d6e6fb 0%,#b8d1f3 100%); --wip-band:#edf3fc;
  --wip-ink:#0A1A33; --wip-say:#46566f; --wip-faint:#8b98ac;
  --wip-dim:rgba(238,245,253,.6); --wip-cardshadow:0 0 0 1px rgba(10,26,51,.08),0 18px 38px -14px rgba(28,72,150,.34)}
.wip[hidden]{display:none}

/* ------------------------------------------------------------------ the stage (a new website) */
.wip-dim{display:none}
.wip-stage{position:absolute;inset:0;z-index:0;display:grid;place-items:center;padding:28px 20px;overflow:hidden;   /* its own layer: the floor (z -1) shows over its ground */
  background:radial-gradient(ellipse 58% 46% at 50% 30%,var(--wip-light),rgba(255,255,255,0) 70%),var(--wip-ground);
  transition:opacity .5s cubic-bezier(.2,.8,.2,1) .08s}
.wip-room{display:flex;flex-direction:column;align-items:center;gap:30px;min-width:0;max-width:100%}
.wip-sheetwrap{position:relative;display:flex;justify-content:center;width:var(--sw)}
.wip-sheet{position:relative;flex:none;width:var(--sw);height:calc(var(--sw) * 1.2);border-radius:calc(var(--sw) * .045);overflow:hidden;
  background:var(--wip-sheet);box-shadow:0 0 0 1px var(--wip-sheetline),var(--wip-shadow);
  container-type:inline-size;
  transition:width .95s cubic-bezier(.65,0,.25,1),border-radius .95s cubic-bezier(.65,0,.25,1),transform .6s cubic-bezier(.2,.8,.2,1),opacity .45s ease}
.wip-sheet.phone{width:calc(var(--sw) * .46);border-radius:calc(var(--sw) * .075)}
/* its ground: a soft contact shadow, as wide as the page above it */
.wip-floor{position:absolute;z-index:-1;left:50%;bottom:calc(var(--sw) * -.045);width:calc(var(--sw) * .92);height:calc(var(--sw) * .1);
  transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,var(--wip-floor),rgba(0,0,0,0));filter:blur(5px);
  transition:width .95s cubic-bezier(.65,0,.25,1),opacity .45s ease}
/* the pool of the light on the floor round its foot */
.wip-floor::before{content:"";position:absolute;left:50%;top:50%;width:190%;height:420%;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,var(--wip-pool,rgba(255,255,255,.07)),rgba(255,255,255,0));z-index:-1}
.wip-sheet.phone+.wip-floor{width:calc(var(--sw) * .44)}
.wip-view{position:absolute;inset:0;overflow:hidden;transition:top .5s cubic-bezier(.2,.8,.2,1);
  /* the page scrolls in and out under soft edges, never cut */
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.wip-col{will-change:transform;transition:transform .95s cubic-bezier(.4,0,.2,1)}
.wip-col.jump{transition:none}

/* the words under it */
.wip-cap{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;max-width:100%;text-align:center;transition:opacity .3s ease,transform .3s ease}
.wip-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:20px;font-weight:600;line-height:26px;letter-spacing:-.01em;color:var(--wip-ink)}
.wip-verb{font-weight:500;color:var(--wip-say)}
.wip-line{display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:100%;font-size:14px;line-height:20px;color:var(--wip-say)}
.wip-av{flex:none;width:24px;height:24px;border-radius:50%;overflow:hidden;background:var(--wip-av);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#FFD60A 38%,transparent)}
.wip-av svg{display:block;width:100%;height:100%}
.wip-say{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wip-say.new{animation:wip-say .4s cubic-bezier(.2,.8,.2,1) both}
.wip-time{flex:none;font-variant-numeric:tabular-nums;color:var(--wip-faint)}
.wip-time::before{content:"";display:inline-block;width:3px;height:3px;margin:0 9px 3px 0;border-radius:50%;background:currentColor;opacity:.7;vertical-align:middle}
.wip-time:empty{display:none}
.wip[data-phase="ready"] .wip-say{color:var(--wip-ink)}

/* ------------------------------------------------------------------ a change: the old page dimmed, a small card */
.wip[data-mode="update"] .wip-dim{display:block;position:absolute;inset:0;background:var(--wip-dim);
  -webkit-backdrop-filter:blur(2px) saturate(.75);backdrop-filter:blur(2px) saturate(.75);transition:opacity .45s ease}
.wip[data-mode="update"] .wip-stage{display:flex;align-items:flex-end;justify-content:center;padding:0 16px 22px;background:none}
.wip[data-mode="update"] .wip-room{flex-direction:row;align-items:center;gap:14px;padding:12px 20px 12px 12px;border-radius:18px;
  background:var(--wip-card);box-shadow:var(--wip-cardshadow);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.wip[data-mode="update"] .wip-floor{display:none}
.wip[data-mode="update"] .wip-sheet{box-shadow:0 0 0 1px var(--wip-line2)}
.wip[data-mode="update"] .wip-cap{align-items:flex-start;text-align:left;gap:3px}
.wip[data-mode="update"] .wip-name{font-size:14.5px;line-height:20px}
.wip[data-mode="update"] .wip-line{font-size:13px;gap:7px}
.wip[data-mode="update"] .wip-av{width:18px;height:18px}

/* ------------------------------------------------------------------ the little page's parts */
.wip .wsec{position:relative;padding:calc(var(--sw) * .036) calc(var(--sw) * .06)}
.wip .wsec :is(.wb,.wh,.wk,.wo,.wd,.wp){position:relative;display:block;flex:none;border-radius:999px;
  transition:background-color .7s ease,box-shadow .7s ease,opacity .7s ease}
.wip .wb{height:max(2px,calc(var(--sw) * .019));background:var(--wip-bar)}
.wip .wh{height:max(3px,calc(var(--sw) * .048));border-radius:calc(var(--sw) * .012)!important;background:var(--wip-h)}
.wip .wk{width:calc(var(--sw) * .2);height:max(4px,calc(var(--sw) * .058));background:var(--wip-btn)}
.wip .wo{width:calc(var(--sw) * .15);height:max(4px,calc(var(--sw) * .058));box-shadow:inset 0 0 0 1px var(--wip-line2)}
.wip .wd{width:calc(var(--sw) * .05);height:calc(var(--sw) * .05);border-radius:50%;background:var(--wip-h)}
.wip .wp{border-radius:calc(var(--sw) * .02)!important;box-shadow:inset 0 0 0 1px var(--wip-line)}
.wip .wp::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--wip-pic);transition:opacity .9s ease}

.wip .w-nav{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--sw) * .04);padding-block:calc(var(--sw) * .045)}
.wip .w-nav .wl{display:flex;align-items:center;gap:calc(var(--sw) * .022)}
.wip .w-nav .wl .wd{width:calc(var(--sw) * .042);height:calc(var(--sw) * .042)}
.wip .w-nav .wl .wb{width:calc(var(--sw) * .13)!important;background:var(--wip-h)}
.wip .w-nav .wn{display:flex;gap:calc(var(--sw) * .03);margin-left:auto}
.wip .w-nav .wn .wb{width:calc(var(--sw) * .07)!important}
.wip .w-nav .wk{width:calc(var(--sw) * .12);height:calc(var(--sw) * .045)}
.wip-sheet.phone .w-nav .wn{display:none}

.wip .w-hero{padding-top:calc(var(--sw) * .085);padding-bottom:calc(var(--sw) * .07)}
.wip .w-hero .wh+.wh{margin-top:calc(var(--sw) * .018)}
.wip .w-hero .wb{margin-top:calc(var(--sw) * .024)}
.wip .w-hero .wh+.wb{margin-top:calc(var(--sw) * .045)}
.wip .wbtns{display:flex;gap:calc(var(--sw) * .025);margin-top:calc(var(--sw) * .05)}
.wip .w-pic .wp{height:calc(var(--sw) * .38)}
.wip .w-split,.wip .w-splitr{display:flex;flex-wrap:wrap;align-items:center;gap:calc(var(--sw) * .05)}
.wip .w-splitr{flex-direction:row-reverse}
.wip .w-split .wp,.wip .w-splitr .wp{flex:1 1 calc(var(--sw) * .36);height:calc(var(--sw) * .28)}
.wip .wtx{display:block;flex:1 1 calc(var(--sw) * .34);min-width:calc(var(--sw) * .3)}
.wip .wtx .wh{margin-bottom:calc(var(--sw) * .035)}
.wip .wtx .wb+.wb{margin-top:calc(var(--sw) * .022)}
.wip .w-cards,.wip .w-price{display:flex;flex-wrap:wrap;gap:calc(var(--sw) * .03)}
.wip .wcard{display:block;flex:1 1 calc(var(--sw) * .22);min-width:calc(var(--sw) * .24)}
.wip .w-cards .wcard .wp{height:calc(var(--sw) * .17)}
.wip .w-cards .wcard .wb{margin-top:calc(var(--sw) * .022)}
.wip .w-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--sw) * .17),1fr));gap:calc(var(--sw) * .022)}
.wip .w-gallery .wp{height:calc(var(--sw) * .19)}
.wip .w-gallery .wp:first-child{grid-row:span 2;height:auto}
.wip .w-quote{display:flex;flex-direction:column;align-items:center;padding-block:calc(var(--sw) * .07)}
.wip .w-quote .wh{height:max(3px,calc(var(--sw) * .036))}
.wip .w-quote .wh+.wh{margin-top:calc(var(--sw) * .018)}
.wip .wby{display:flex;align-items:center;justify-content:center;gap:calc(var(--sw) * .02);width:100%;margin-top:calc(var(--sw) * .045)}
.wip .w-price .wcard{padding:calc(var(--sw) * .035);border-radius:calc(var(--sw) * .025);box-shadow:inset 0 0 0 1px var(--wip-line);transition:box-shadow .7s ease}
.wip .w-price .wcard.on{box-shadow:inset 0 0 0 1.5px var(--wip-line2),0 calc(var(--sw) * .02) calc(var(--sw) * .05) calc(var(--sw) * -.03) rgba(0,0,0,.2)}
.wip .w-price .wh{height:max(3px,calc(var(--sw) * .04));margin:calc(var(--sw) * .025) 0}
.wip .w-price .wb+.wb{margin-top:calc(var(--sw) * .018)}
.wip .w-price .wk{width:100%;height:max(4px,calc(var(--sw) * .05));margin-top:calc(var(--sw) * .04)}
.wip .w-band{display:flex;flex-direction:column;align-items:center;margin:calc(var(--sw) * .03) calc(var(--sw) * .06);padding:calc(var(--sw) * .075) calc(var(--sw) * .06);
  border-radius:calc(var(--sw) * .03);background:var(--wip-band)}
.wip .w-band .wb{margin-top:calc(var(--sw) * .025)}
.wip .w-band .wk{margin-top:calc(var(--sw) * .045)}
.wip .w-foot{display:flex;gap:calc(var(--sw) * .05);padding-block:calc(var(--sw) * .06);border-top:1px solid var(--wip-line)}
.wip .wfc{display:block;flex:1 1 0}
.wip .wfc .wb+.wb{margin-top:calc(var(--sw) * .02)}
.wip .w-hero .wh,.wip .w-quote .wh,.wip .w-band .wh{max-width:100%}
.wip .w-quote .wh,.wip .w-band .wh,.wip .w-quote .wb,.wip .w-band .wb{transform-origin:center}

/* drawn in, one part after the other; while it writes the words, a headline is marked in the Developer's yellow first */
.wip .wsec.go :is(.wb,.wh,.wk,.wo,.wd){animation:wip-draw .7s cubic-bezier(.25,.8,.25,1) both;animation-delay:calc(var(--i) * 65ms + 60ms)}
.wip .wsec.go .wp{animation:wip-dev 1.3s cubic-bezier(.3,.7,.3,1) both;animation-delay:calc(var(--i) * 65ms + 60ms)}
.wip .wsec .wh::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--wip-mark);opacity:0}
.wip[data-phase="words"] .wsec.go .wh::after{animation:wip-mark 1.7s ease-out both;animation-delay:calc(var(--i) * 65ms + 60ms)}
.wip .wsec .redo:is(.wb,.wh,.wk,.wo,.wd){animation:wip-draw .7s cubic-bezier(.25,.8,.25,1) both}
.wip .wsec .redo.wp,.wip .wsec .redo.wcard{animation:wip-dev 1s ease both}
.wip .wsec .redo.wh::after{animation:wip-mark 1.4s ease-out both}
/* choosing the page: the parts stand as outlines (the layout before anything is in it) */
.wip[data-phase="choose"] .wsec :is(.wb,.wh,.wk,.wd){background-color:transparent;box-shadow:inset 0 0 0 1px var(--wip-line2)}
.wip[data-phase="choose"] .wp::before{opacity:0}
.wip[data-phase="choose"] .w-band{background:transparent;box-shadow:inset 0 0 0 1px var(--wip-line)}
/* fixing: a ring round each part being fixed */
.wip-ring{position:absolute;z-index:3;pointer-events:none;border-radius:calc(var(--sw) * .022);box-shadow:0 0 0 1.5px var(--wip-accent),0 0 0 5px color-mix(in srgb,var(--wip-accent) 16%,transparent);
  animation:wip-ring 2.1s cubic-bezier(.2,.8,.2,1) both}
/* putting it live: the address bar, its line written, its dot green once it is live */
.wip-addr{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;align-items:center;gap:calc(var(--sw) * .025);height:0;padding:0 calc(var(--sw) * .05);
  overflow:hidden;opacity:0;background:var(--wip-sheet);box-shadow:inset 0 -1px 0 var(--wip-line);transition:height .5s cubic-bezier(.2,.8,.2,1),opacity .4s ease}
.wip-lock{flex:none;width:calc(var(--sw) * .026);height:calc(var(--sw) * .026);border-radius:50%;background:var(--wip-h);transition:background-color .5s ease,box-shadow .5s ease}
.wip-url{display:block;width:42%;height:max(2px,calc(var(--sw) * .02));border-radius:99px;background:var(--wip-h);transform-origin:left center}
.wip[data-phase="live"] .wip-addr{height:calc(var(--sw) * .08);opacity:1}
.wip[data-phase="live"] .wip-view{top:calc(var(--sw) * .08)}
.wip[data-phase="live"] .wip-url{animation:wip-draw 1.3s cubic-bezier(.25,.8,.25,1) both .2s}
.wip[data-live] .wip-lock{background:var(--wip-live);box-shadow:0 0 0 calc(var(--sw) * .012) color-mix(in srgb,var(--wip-live) 22%,transparent)}

/* the panel's head while it works: the name, "Website", and Building / Updating on a breathing yellow dot */
.pw-state.pw-wipstate::before{background:#FFD60A;box-shadow:0 0 0 3px rgba(255,214,10,.18);animation:wip-breathe 1.8s ease-in-out infinite}
html[data-theme="light"] .pw-state.pw-wipstate::before{background:#E3B200;box-shadow:0 0 0 3px rgba(227,178,0,.16)}
/* a new site: the stand-in under the stage is never drawn (no white frame at its round corners) */
.pw[data-wip="build"] .pw-body{visibility:hidden}

/* ------------------------------------------------------------------ the end: the stage gives way to the finished page */
.wip.out .wip-stage{opacity:0}
.wip.out .wip-sheet{transform:scale(1.07) translateY(-2%);opacity:0}
.wip.out .wip-floor{opacity:0}
.wip.out .wip-cap{opacity:0;transform:translateY(6px)}
.wip.out .wip-dim{opacity:0}
.wip[data-mode="update"].out .wip-room{opacity:0;transform:translateY(10px)}
.wip[data-mode="update"].out .wip-stage{opacity:1}

@keyframes wip-draw{from{transform:scaleX(0);opacity:0}25%{opacity:1}to{transform:none;opacity:1}}
@keyframes wip-dev{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
@keyframes wip-mark{0%{opacity:0}12%{opacity:.95}70%{opacity:.95}100%{opacity:0}}
@keyframes wip-ring{0%{opacity:0;transform:scale(1.12)}16%{opacity:1;transform:none}72%{opacity:1}100%{opacity:0;transform:scale(.985)}}
@keyframes wip-say{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes wip-breathe{0%,100%{opacity:1}50%{opacity:.45}}

/* a phone: the panel is the whole screen (a sheet), the words a little smaller */
@media (max-width:800px){
  .wip-room{gap:24px}
  .wip-name{font-size:18px;line-height:24px}
  .wip-line{font-size:13.5px}
  .wip[data-mode="update"] .wip-stage{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}
/* reduced motion: a still page, the words change in place, the end is a short cross-fade (patron-wip.js) */
@media (prefers-reduced-motion:reduce){
  .wip *,.wip *::before,.wip *::after{animation:none!important;transition:none!important}
  .wip.out .wip-sheet{transform:none}
  .pw-state.pw-wipstate::before{animation:none}
}
