/* viovaniy — shared design system (loaded last).
   One canvas, one heading voice, one button family, one set of radii.
   Colour lives inside big rounded cards instead of bleeding edge to edge. */
:root{
  --ink:#1d1d1f;
  --ink-2:#6e6e73;
  --grey:#86868d;
  --hair:rgba(28,25,40,.08);
  --accent:#ff8db8;
  --r-xl:clamp(28px,2.8vw,40px);   /* colour cards / big surfaces */
  --r-lg:28px;                      /* cards */
  --r-md:20px;                      /* inner cards */
  --r-sm:14px;                      /* tiles, inputs */
  --shadow-soft:0 1px 2px rgba(28,25,40,.04),0 8px 20px -10px rgba(28,25,40,.10),0 30px 60px -30px rgba(28,25,40,.18);
  --btn-dark:linear-gradient(#3a3a3e,#1c1c1e);
  --btn-dark-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 2px 4px rgba(28,25,40,.15),0 18px 30px -14px rgba(28,25,40,.55);
  --card-inset:clamp(10px,1.4vw,22px);
  --h2:clamp(34px,4vw,52px);
}

/* ---------- section headings: one size, one weight, two tones ---------- */
#work-title,#products-title,#contact-title{
  font-size:var(--h2)!important;font-weight:600!important;letter-spacing:-.035em!important;line-height:1.08!important;text-wrap:balance}
#contact-title .ink,.cg-ink{color:var(--ink)}
#contact-title .grey,.cg-grey{color:var(--grey)}
#products-title .pd-ink{display:block}
/* the contact screen must still fit one viewport, so its heading follows the height */
.content-section.contact-section #contact-title{font-size:clamp(30px,min(4vw,5.4vh),52px)!important;margin-bottom:14px}
/* the window title in About keeps its smaller size, same voice */
#about-title{font-weight:600;letter-spacing:-.035em}
@media(max-width:650px){
  :root{--h2:clamp(30px,8.4vw,38px)}
  .content-section.contact-section #contact-title{font-size:30px!important;margin-bottom:8px}
}

/* ---------- buttons: dark pill = main action ---------- */
.home-section .contact-button{
  height:50px;margin-left:0;padding:0 22px 0 24px;gap:8px;color:#fff;font-size:17px;font-weight:500;letter-spacing:-.01em;
  background:var(--btn-dark);box-shadow:var(--btn-dark-shadow);transition:transform .15s cubic-bezier(.22,1,.36,1),box-shadow .3s ease}
.home-section .contact-button:hover,.home-section .contact-button:active,
.pointer-enabled .home-section .contact-button:hover,.pointer-enabled .home-section .contact-button:active{background:var(--btn-dark)}
.home-section .contact-button:active{transform:scale(.96)}
.home-section .cta-copy{--ts-base:#fff;--ts-highlight:#ffc9a8}
.home-section .contact-button .button-arrow{color:#fff;opacity:.8}
@media(max-width:650px){.home-section .contact-button{height:48px;font-size:16px}}

/* ---------- colour lives in cards ---------- */
.about-backdrop,.pd-backdrop{
  top:0;bottom:0;height:auto;width:calc(var(--about-viewport,100vw) - 2 * var(--card-inset));
  border-radius:var(--r-xl);overflow:hidden;-webkit-mask:none;mask:none;isolation:isolate}
.about-backdrop::before,.pd-backdrop::before{display:none}
@media(max-width:650px){:root{--card-inset:8px;--r-xl:26px}}

/* breathing room around the colour cards */
.products-section{margin-bottom:clamp(28px,5vw,72px)}
.about-section{margin-bottom:clamp(8px,2vw,24px)}
@media(max-width:650px){
  /* content inside the orange card keeps clear of its rounded edge */
  .products-section .pd-layout{padding-left:16px;padding-right:16px}
}

/* Hero CTA hover: the whole pill changes colour — dark melts into the site's
   sunset (pink → peach), which keeps slowly flowing. No scaling. */
.home-section .contact-button{isolation:isolate;overflow:hidden}
.home-section .contact-button::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(100deg,#ff5f9e,#ff8a7a 28%,#ffad6e 50%,#ff8a7a 72%,#ff5f9e);background-size:220% 100%;
  opacity:0;transition:opacity .45s cubic-bezier(.22,1,.36,1)}
.home-section .contact-button::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:35%;z-index:0;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-18deg);opacity:0}
.home-section .contact-button .magnetic-label{z-index:1}
@media(hover:hover){
  .home-section .contact-button:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 4px rgba(224,86,127,.18),0 20px 36px -14px rgba(255,110,140,.75)}
  .home-section .contact-button:hover::before{opacity:1;animation:cta-flow 3s linear infinite}
  .home-section .contact-button:hover .cta-copy{--ts-base:#fff;--ts-highlight:#fff3e8}
  .home-section .contact-button:hover .button-arrow{opacity:1}
}
.home-section .contact-button:focus-visible::before{opacity:1}
@keyframes cta-flow{to{background-position:-220% 0}}
@keyframes cta-sheen{0%{opacity:1;transform:skewX(-18deg) translateX(0)}100%{opacity:0;transform:skewX(-18deg) translateX(520%)}}
@media(prefers-reduced-motion:reduce){.home-section .contact-button:hover::before{animation:none}.home-section .contact-button:hover::after{animation:none}}

/* ---------- first screen: bigger, calmer type with little icon tiles ---------- */
.home-section h1{font-size:clamp(32px,3.2vw,46px);line-height:1.12;letter-spacing:-.035em;font-weight:500}
.home-section .reveal-secondary{font-size:.6em;line-height:1.36;letter-spacing:-.022em;color:#7c7c83;margin-top:18px;max-width:22em}
.home-section .greeting-stage{margin-bottom:14px}
.home-section .contact-button{margin-top:34px}
/* tiles sit in the sentence like app icons (Satya-style) and pop in with the words */
.hero-reveal .tile-clip{overflow:visible;vertical-align:baseline;padding:0;margin:0 .04em}
.hero-reveal .hero-tile{display:inline-grid;place-items:center;width:1.1em;height:1.1em;border-radius:.3em;vertical-align:-.2em;margin:-.14em 0;
  box-shadow:0 0 0 2px #fff,0 1px 2px rgba(28,25,40,.12),0 8px 16px -8px rgba(28,25,40,.45);
  animation:hero-tile-in .8s cubic-bezier(.34,1.56,.5,1) backwards;animation-delay:calc(var(--reveal-delay,0s) + .12s);
  transition:transform .55s cubic-bezier(.34,1.6,.5,1)}
.hero-reveal .hero-tile svg{width:58%;height:58%}
.hero-tile-spark svg{width:64%!important;height:64%!important}
.hero-tile-play{transform:rotate(-7deg);background:linear-gradient(160deg,#3a3a3e,#1c1c1e);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -2px 6px rgba(0,0,0,.35),0 0 0 2px #fff,0 1px 2px rgba(28,25,40,.12),0 8px 16px -8px rgba(28,25,40,.5)!important}
.hero-tile-play svg{fill:#ffb3cf;margin-left:8%}
.hero-tile-spark{transform:rotate(6deg);background:linear-gradient(150deg,#ffadcd,#ffbb96)}
.hero-tile-spark svg{fill:#fff;filter:drop-shadow(0 1px 1px rgba(196,71,58,.25))}
@media(hover:hover){.hero-reveal:hover .hero-tile-play{transform:rotate(5deg) scale(1.08)}.hero-reveal:hover .hero-tile-spark{transform:rotate(-8deg) scale(1.08)}}
@keyframes hero-tile-in{from{transform:rotate(-40deg) scale(.2);opacity:0}60%{opacity:1}}
@media(prefers-reduced-motion:reduce){.hero-reveal .hero-tile{animation:none}}

/* availability: a small tinted capsule right of the name (iOS status style) */
.home-section .identity{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px 12px}
.status-pill{display:inline-flex;align-items:center;gap:6px;margin:0;height:24px;padding:0 10px 0 8px;border-radius:999px;font-size:12px;font-weight:500;letter-spacing:-.005em;white-space:nowrap;
  color:#1f8a3e;background:rgba(52,199,89,.12)}
.status-dot{position:relative;flex:none;width:7px;height:7px;border-radius:50%;background:#34c759}
.status-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:#34c759;animation:status-ping 2.4s cubic-bezier(.2,.6,.3,1) infinite}
@keyframes status-ping{0%{transform:scale(1);opacity:.55}70%,100%{transform:scale(2.8);opacity:0}}
@media(prefers-reduced-motion:reduce){.status-dot::after{animation:none}}
/* Chinese and Japanese set denser: a step smaller so lines break kindly */
.home-section h1:is(:lang(ja),:lang(zh)){font-size:clamp(27px,2.6vw,37px);line-height:1.22}
@media(max-width:650px){
  .home-section h1{font-size:clamp(28px,7.6vw,32px)}
  .home-section h1:is(:lang(ja),:lang(zh)){font-size:clamp(24px,6.4vw,27px)}
  .home-section .reveal-secondary{font-size:.64em;margin-top:12px}
  .home-section .contact-button{margin-top:24px}
  .status-pill{height:22px;font-size:11.5px}
}

/* a white rim on the colour cards (drawn inside the edge, above the sky) */
.about-backdrop,.pd-backdrop{border:5px solid #fff;background-clip:padding-box;box-shadow:0 1px 2px rgba(28,25,40,.05),0 18px 40px -24px rgba(28,25,40,.22)}
@media(max-width:650px){.about-backdrop,.pd-backdrop{border-width:4px}}

/* Works: the hover glow is a tighter, cleaner halo hugging the card */
.cg-slide::before{box-shadow:0 0 0 1px rgba(255,141,184,calc(.28 * var(--gp))),0 0 18px 1px rgba(255,141,184,calc(.42 * var(--gp))),0 0 46px 6px rgba(255,180,143,calc(.24 * var(--gp)))!important}
.cg-slide.is-active:is(.is-hover,:hover) .cg-frame{box-shadow:0 0 0 .5px rgba(255,141,184,.3),0 2px 4px rgba(28,25,40,.06),0 24px 44px -26px rgba(255,120,150,.32)!important}

/* "Watch film": same hover as the hero CTA — the pill changes colour */
.cg-watch{position:relative;isolation:isolate;overflow:hidden;transition:transform .2s cubic-bezier(.34,1.45,.5,1),box-shadow .35s ease}
.cg-watch>*{position:relative;z-index:1}
.cg-watch::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(100deg,#ff5f9e,#ff8a7a 28%,#ffad6e 50%,#ff8a7a 72%,#ff5f9e);background-size:220% 100%;
  opacity:0;transition:opacity .45s cubic-bezier(.22,1,.36,1)}
@media(hover:hover){
  .cg-watch:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 4px rgba(224,86,127,.18),0 14px 26px -12px rgba(255,110,140,.75)}
  .cg-watch:hover::before{opacity:1;animation:cta-flow 3s linear infinite}
}
.cg-watch:focus-visible::before{opacity:1}
@media(prefers-reduced-motion:reduce){.cg-watch:hover::before{animation:none}}

/* Gallery arrows: on hover the glass circle turns ink-dark and the arrow
   leans a step in its direction */
.cg-arrow{transition:transform .3s cubic-bezier(.34,1.6,.5,1),background-color .25s ease,color .25s ease,box-shadow .25s ease}
.cg-arrow svg{transition:transform .45s cubic-bezier(.34,1.6,.5,1)}
@media(hover:hover){
  .cg-slide.is-active .cg-arrow:hover{background:#1d1d1f;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 0 .5px rgba(28,25,40,.2),0 10px 22px -10px rgba(28,25,40,.55)}
  .cg-slide.is-active .cg-arrow[data-step="1"]:hover svg{transform:translateX(2px)}
  .cg-slide.is-active .cg-arrow[data-step="-1"]:hover svg{transform:translateX(-2px)}
}
.cg-arrow:active{transform:scale(.92)}

/* ---------- dark pills: a little physics ----------
   Hover lifts the pill a touch; pressing squashes it (wider than tall, like
   rubber); letting go springs it back past rest and settles. */
:is(.home-section .contact-button,.cg-watch,.brief-send){
  transition:transform .6s cubic-bezier(.34,1.9,.45,1),box-shadow .35s ease,background-color .25s ease,opacity .25s ease!important;will-change:transform}
@media(hover:hover){
  :is(.home-section .contact-button,.cg-watch,.brief-send):hover{transform:translateY(-2px)}
}
:is(.home-section .contact-button,.cg-watch,.brief-send):active{
  transform:translateY(0) scale(1.04,.9)!important;transition:transform .12s cubic-bezier(.3,0,.6,1),box-shadow .2s ease!important}
.home-section .contact-button:active .magnetic-label{--press-scale:1}
@media(prefers-reduced-motion:reduce){:is(.home-section .contact-button,.cg-watch,.brief-send){transition:none!important;transform:none!important}}

/* ---------- About: who I am / what I do best ---------- */
.me-card-who .me-statement{text-wrap:balance}
.me-best{gap:6px}
.me-best li{max-width:100%}
/* "No AI slop" — the last chip opens on hover (or tap) to say why.
   Its full height is always reserved, so opening it never moves anything:
   only the pink surface unfolds (clip-path) and the words drift in. */
.me-likes li.me-noslop{--head:30px;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;cursor:default;outline:none;
  background:none;box-shadow:none;border-radius:10px;transition:none;transform:none!important}
.me-noslop::before,.me-noslop::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:10px;
  clip-path:inset(0 0 calc(100% - var(--head)) 0 round 10px);transition:clip-path .55s cubic-bezier(.22,1,.36,1),opacity .35s ease}
.me-noslop::before{background:var(--glass-well,rgba(118,118,128,.075))}
.me-noslop::after{background:linear-gradient(120deg,#ffe1ec,#ffe8dc);opacity:0}
.me-noslop-head{display:flex;align-items:center;gap:7px;height:var(--head);padding:0 10px 0 9px;color:#2a2a30;transition:color .35s ease}
.me-noslop-head svg{width:15px;height:15px;color:#76767c!important;transition:color .35s ease}
.me-noslop .me-noslop-chev{width:10px!important;height:10px!important;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s cubic-bezier(.34,1.5,.5,1)}
.me-noslop-more{display:block;padding:0 11px 9px;font-size:12.5px;font-weight:400;line-height:1.45;color:#56565b}
.me-noslop-more .w{display:inline-block;opacity:0;transform:translateY(5px);
  transition:opacity .18s ease,transform .18s ease}
.me-noslop:is(:hover,:focus-within)::before,.me-noslop:is(:hover,:focus-within)::after{clip-path:inset(0 round 10px)}
.me-noslop:is(:hover,:focus-within)::after{opacity:1}
.me-noslop:is(:hover,:focus-within) .me-noslop-head{color:#c43b72}
.me-noslop:is(:hover,:focus-within) .me-noslop-head svg{color:#e0679a!important}
.me-noslop:is(:hover,:focus-within) .me-noslop-more .w{opacity:1;transform:none;
  transition:opacity .45s ease calc(120ms + var(--i)*22ms),transform .6s cubic-bezier(.22,1,.36,1) calc(120ms + var(--i)*22ms)}
.me-noslop:is(:hover,:focus-within) .me-noslop-chev{transform:rotate(180deg)}
.me-noslop:focus-visible{box-shadow:0 0 0 2px #91baff}
/* the card itself stays put while the chip opens */
.me-card:has(.me-best){transform:none!important;box-shadow:0 0 0 1px rgba(28,25,40,.06),0 1px 2px rgba(28,25,40,.03),0 10px 24px -18px rgba(28,25,40,.22)!important}
@media(prefers-reduced-motion:reduce){.me-noslop::before,.me-noslop::after,.me-noslop-more .w{transition:none!important}}
/* the list needs the full width: two neat columns, "No AI slop" across both */
.me-stack{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}
.me-best{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;align-items:stretch}
.me-best li{width:100%}
.me-best li.me-noslop{grid-column:1/-1}
@media(max-width:650px){
  .me-best{grid-template-columns:minmax(0,1fr)}
}

/* "Send brief": dark pill when ready (no gradient at rest); on hover it melts into
   the flowing sunset, exactly like "Discuss a project" and "Watch film". */
.brief .brief-send::before{background:linear-gradient(100deg,#ff5f9e,#ff8a7a 28%,#ffad6e 50%,#ff8a7a 72%,#ff5f9e);background-size:220% 100%;
  opacity:0;transition:opacity .45s cubic-bezier(.22,1,.36,1)}
.brief.is-complete .brief-send::before{opacity:0}
.brief.is-complete .brief-send{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 2px 4px rgba(28,25,40,.12),0 16px 30px -14px rgba(28,25,40,.55)}
@media(hover:hover){
  .brief.is-complete .brief-send:hover::before{opacity:1;animation:cta-flow 3s linear infinite}
  .brief.is-complete .brief-send:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 4px rgba(224,86,127,.18),0 18px 32px -14px rgba(255,110,140,.75)}
  /* not ready yet: a quieter hover, it still lifts and lightens */
  .brief:not(.is-complete) .brief-send:hover{opacity:.78}
}
.brief.is-complete .brief-send:focus-visible::before{opacity:1}
@media(prefers-reduced-motion:reduce){.brief .brief-send:hover::before{animation:none}}

/* Tools card: the text column always spans the card, so its height can be locked */
.tl-detail-copy{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}

/* Works headline: centred on the page, both lines in ink; the second line reacts
   to the cursor letter by letter (weight + pink), see work.js. */
#work-title{margin-left:auto!important;margin-right:auto!important}
#work-title .cg-grey{color:var(--ink)}
#work-title .wh-word{display:inline-block;white-space:nowrap}
#work-title .wh-l{display:inline-block;text-align:center;font-weight:600;
  transition:font-weight .35s cubic-bezier(.22,1,.36,1),color .35s ease}
#work-title .wh-l.is-hot{color:#ff8db8}
#work-title.wh-measure .wh-l{width:auto!important;font-weight:600!important}

/* ---------- About → How I work: four steps, the chosen one explained below ---------- */
.about-panel-process{padding:24px 30px 28px}
.about-panel-process .ps-kicker{margin-bottom:8px}
.about-panel-process .ps-statement{font-size:22px}
.ps-steps{margin:20px 0 0;gap:10px}
.ps-step{min-width:0;list-style:none}
.ps-steps .ps-card{display:block;width:100%;margin:0;padding:12px 12px 12px;border:0;font:inherit;text-align:left;color:inherit;cursor:pointer;
  transition:transform .45s cubic-bezier(.22,1,.36,1),box-shadow .3s ease}
.ps-steps .ps-card-head{margin:0 0 10px;min-height:26px}
.ps-steps .ps-label{line-height:1.2}
.ps-steps .ps-card[aria-pressed="true"]{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tone) 55%,transparent),0 10px 22px -14px color-mix(in srgb,var(--tone) 60%,transparent)}
.ps-steps .ps-card[aria-pressed="true"] .ps-label{color:var(--ps-ink,#1f1f22);font-weight:600}
.ps-steps .ps-card:focus-visible{outline:2px solid #91baff;outline-offset:3px}
/* placeholder for the step's animation (to be made later) */
.ps-slot{display:block;height:74px;border-radius:12px;background:
  repeating-linear-gradient(135deg,transparent 0 9px,color-mix(in srgb,var(--tone) 5%,transparent) 9px 10px),
  color-mix(in srgb,var(--tint) 70%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 12%,transparent)}
.ps-detail{display:grid;margin-top:12px;padding:16px 20px 18px;border-radius:18px;background:#fff;text-align:left;
  box-shadow:0 0 0 1px rgba(28,25,40,.06),0 1px 2px rgba(28,25,40,.03),0 10px 24px -18px rgba(28,25,40,.22)}
/* every step's text sits in the same cell, so the card is always as tall as the longest one */
.ps-text{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .25s ease,transform .35s cubic-bezier(.22,1,.36,1),visibility 0s .25s}
.ps-text.is-on{opacity:1;visibility:inherit;transform:none;transition:opacity .35s ease .05s,transform .45s cubic-bezier(.22,1,.36,1) .05s,visibility 0s}
.ps-text-head{margin:0 0 6px;font-size:15px;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.ps-text-num{color:var(--tone);font-variant-numeric:tabular-nums}
.ps-text-body{margin:0;font-size:14px;line-height:1.5;color:#56565b;text-wrap:pretty}
@media(max-width:650px){
  .about-panel-process{padding:20px 12px}
  .about-panel-process .ps-statement{font-size:19px}
  .ps-steps .ps-num{display:none}
  .ps-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;margin-top:18px}
  .ps-steps .ps-card{display:block!important;padding:10px;border-radius:14px}
  .ps-steps .ps-card-head{margin:0 0 8px}
  .ps-steps .ps-icon{display:grid!important;width:22px;height:22px;margin-right:7px}
  .ps-steps .ps-label{font-size:12.5px}
  .ps-slot{height:54px}
  .ps-detail{padding:14px 15px 16px}
  .ps-text-body{font-size:13.5px}
}
@media(prefers-reduced-motion:reduce){.ps-text{transition:none!important}}

/* step cards: on hover a soft gradient in the card's own colour breathes in and out */
.ps-steps .ps-card{position:relative;isolation:isolate;overflow:hidden}
.ps-steps .ps-card>*{position:relative;z-index:1}
.ps-steps .ps-card::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--tone) 16%,transparent),transparent 70%),
    linear-gradient(180deg,color-mix(in srgb,var(--tint) 85%,transparent),transparent 75%);
  opacity:0;transition:opacity .45s ease}
/* the chosen step breathes in its own colour; hovering another one just outlines it */
.ps-steps .ps-card[aria-pressed="true"]::before{opacity:1;animation:ps-breathe 2.4s ease-in-out .45s infinite}
@media(hover:hover){
  .ps-steps .ps-card[aria-pressed="false"]:hover{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tone) 35%,transparent),0 1px 2px rgba(28,25,40,.03)}
}
@keyframes ps-breathe{0%,100%{opacity:1}50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.ps-steps .ps-card::before{animation:none!important}}

/* ---------- Brief step animation (18s loop) ----------
   A notes window rises, fills with a bold "Brief" and grey lines, morphs into a
   PDF, drops into an envelope that closes and rests, then flies up and away
   while the next window arrives. Sizes are in slot units (cqw / cqh). */
.ps-slot{height:100px}
.bf{position:relative;container-type:size;overflow:hidden;
  background:radial-gradient(120% 120% at 20% 0%,#f4f8ff 0%,#e6efff 55%,#dbe7ff 100%)!important;--T:18s;--pw:25cqw}
.bf>*{position:absolute;display:block}
.bf-doc{left:50%;top:11cqh;width:56cqw;height:78cqh;padding:9cqh 9px 0;border-radius:10px;background:#fff;z-index:2;
  box-shadow:0 0 0 .5px rgba(28,25,40,.08),0 6px 14px -6px rgba(40,70,140,.28);transform-origin:50% 50%;opacity:0;transform:translate(-50%,60cqh)}
.bf-dots{position:absolute;top:6px;left:8px;display:flex;gap:3px}
.bf-dots i{width:4px;height:4px;border-radius:50%;background:#e1e3ea}
.bf-title{display:block;margin:7px 0 6px;font-size:11px;line-height:1;font-weight:700;letter-spacing:-.02em;color:#1f1f22;opacity:0}
.bf-l{display:block;height:3.5px;margin-top:4.5px;border-radius:2px;background:#e4e6ec;width:var(--w);transform-origin:0 50%;transform:scaleX(0)}
.bf-pdf{position:absolute;left:7px;bottom:9cqh;padding:2px 4px;border-radius:3px;background:#ff3b30;color:#fff;font-size:7px;line-height:1;font-weight:700;letter-spacing:.02em;opacity:0;transform:scale(.4)}
.bf-doc::after{content:"";position:absolute;top:0;right:0;width:9px;height:9px;border-radius:0 5px 0 4px;
  background:linear-gradient(225deg,#dfe7f5 50%,#c9d3e6 50%);opacity:0}
.bf-env{left:50%;bottom:8cqh;width:44cqw;height:44cqh;opacity:0;transform:translate(-50%,24cqh)}
/* frosted white envelope, Mail-icon style: soft blue-white gradient, faint creases */
.bf-env-back{z-index:1;border-radius:7px;background:linear-gradient(180deg,#dde8fb,#cbdaf6);
  box-shadow:0 8px 16px -8px rgba(40,90,190,.35),0 2px 4px -2px rgba(40,90,190,.2)}
.bf-flap-open{position:absolute;left:0;bottom:100%;width:100%;height:72%;overflow:visible;opacity:0}
.bf-flap-open path{fill:#d4e1f8!important}
.bf-env-front{z-index:3;perspective:260px}
.bf-pocket{position:absolute;inset:0;border-radius:7px;overflow:hidden}
.bf-pocket svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.bf svg path{stroke:none!important}
.bf-pocket .bf-face{fill:#f4f8ff!important}
.bf svg path.bf-crease,.bf svg path.bf-edge{fill:none!important;stroke:rgba(110,140,200,.22)!important;stroke-width:1;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.bf svg path.bf-edge{stroke:rgba(110,140,200,.3)!important}
/* the flap is a real two-sided card turning on the envelope's top edge */
.bf-flap{position:absolute;left:0;top:0;width:100%;height:72%;transform-origin:50% 0;transform-style:preserve-3d;transform:rotateX(180deg);visibility:hidden}
.bf-flap svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bf-flap-out{-webkit-backface-visibility:hidden;backface-visibility:hidden}
.bf-flap-out path:first-child{fill:#fbfdff!important}
.bf-flap-in{transform:translateZ(-.4px)}
.bf-flap-in path{fill:#d4e1f8!important}
.ps-on .bf-flap-open{animation:bf-flap-open var(--T) ease infinite}
.ps-on .bf-doc{animation:bf-doc var(--T) cubic-bezier(.4,0,.2,1) infinite}
.ps-on .bf-title{animation:bf-title var(--T) ease infinite}
.ps-on .bf-l{animation:bf-l var(--T) cubic-bezier(.22,1,.36,1) infinite;animation-delay:calc(var(--k) * .28s)}
.ps-on .bf-dots{animation:bf-dots var(--T) ease infinite}
.ps-on .bf-doc::after{animation:bf-fold var(--T) ease infinite}
.ps-on .bf-pdf{animation:bf-pdf var(--T) cubic-bezier(.34,1.6,.5,1) infinite}
.ps-on .bf-env{animation:bf-env var(--T) cubic-bezier(.4,0,.2,1) infinite}
.ps-on .bf-flap{animation:bf-flap var(--T) linear infinite}
.ps-paused .bf *,.ps-paused .bf-doc::after{animation-play-state:paused!important}

@keyframes bf-doc{
  0%{opacity:0;transform:translate(-50%,60cqh);width:56cqw;height:78cqh;border-radius:10px;padding-top:9cqh}
  4%,16%{opacity:1;transform:translate(-50%,0);width:56cqw;height:78cqh;border-radius:10px;padding-top:9cqh}
  20%,22%{opacity:1;transform:translate(-50%,-1cqh);width:var(--pw);height:80cqh;border-radius:5px;padding-top:4cqh}
  25.5%{opacity:1;transform:translate(-50%,-8cqh) scale(.48);width:var(--pw);height:80cqh;border-radius:5px;padding-top:4cqh}
  29.5%,33.6%{opacity:1;transform:translate(-50%,21cqh) scale(.48);width:var(--pw);height:80cqh;border-radius:5px;padding-top:4cqh}
  33.8%,100%{opacity:0;transform:translate(-50%,21cqh) scale(.48);width:var(--pw);height:80cqh;border-radius:5px;padding-top:4cqh}}
@keyframes bf-title{0%,5%{opacity:0;transform:translateY(3px);font-size:11px}7%,16%{opacity:1;transform:none;font-size:11px}20%,100%{opacity:1;transform:none;font-size:8px}}
@keyframes bf-l{0%,7%{transform:scaleX(0)}11%,100%{transform:scaleX(1)}}
@keyframes bf-dots{0%,16%{opacity:1}19%,100%{opacity:0}}
@keyframes bf-fold{0%,18%{opacity:0}21%,100%{opacity:1}}
@keyframes bf-pdf{0%,19.5%{opacity:0;transform:scale(.4)}22%,100%{opacity:1;transform:none}}
@keyframes bf-env{
  0%,23%{opacity:0;transform:translate(-50%,24cqh)}
  27%,34%{opacity:1;transform:translate(-50%,0)}
  38%{opacity:1;transform:translate(-50%,-20cqh) scale(1.12)}
  64%{opacity:1;transform:translate(-50%,-22cqh) scale(1.12)}
  91%{opacity:1;transform:translate(-50%,-20cqh) scale(1.12)}
  96%{opacity:0;transform:translate(-50%,-150cqh) scale(1.12)}
  100%{opacity:0;transform:translate(-50%,24cqh)}}
@keyframes bf-flap{0%,29.8%{visibility:hidden;transform:rotateX(180deg)}30%{visibility:visible;transform:rotateX(180deg);animation-timing-function:cubic-bezier(.55,0,.35,1)}33.6%{visibility:visible;transform:rotateX(0deg)}33.7%,100%{visibility:visible;transform:none}}
@keyframes bf-flap-open{0%,24%{opacity:0}27%,29.8%{opacity:1}30%,100%{opacity:0}}
@media(max-width:650px){.ps-slot{height:84px}.bf{--pw:34cqw}.bf-doc{padding-left:7px;padding-right:7px}.bf-dots{top:4px;left:6px}.bf-dots i{width:3px;height:3px}.bf .bf-title{margin:5px 0 4px}.bf-l{height:3px;margin-top:3px}.bf-pdf{font-size:6px}}
@media(prefers-reduced-motion:reduce){
  .bf .bf-doc{opacity:1;transform:translate(-50%,0)}.bf .bf-title{opacity:1}.bf .bf-l{transform:none}
}

/* the Brief animation only plays while its step is the chosen one; otherwise it
   rests on the filled notes window */
.ps-card[aria-pressed="false"] .bf *,.ps-card[aria-pressed="false"] .bf-doc::after{animation:none!important}
.ps-card[aria-pressed="false"] .bf-doc{opacity:1;transform:translate(-50%,0)}
.ps-card[aria-pressed="false"] .bf-title{opacity:1}
.ps-card[aria-pressed="false"] .bf-l{transform:none}

/* step detail: a round "collapse" button turns the paragraph into pills (and back);
   both live in the same cell, so the card never changes size */
.ps-detail{position:relative}
.ps-compact{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;
  background:rgba(118,118,128,.1);color:#56565b;cursor:pointer;transition:background-color .2s ease,color .2s ease,transform .2s cubic-bezier(.34,1.5,.5,1)}
.ps-compact:active{transform:scale(.9)}
.ps-compact svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ps-compact svg g{transition:opacity .25s ease,transform .4s cubic-bezier(.34,1.5,.5,1);transform-origin:10px 10px}
.ps-compact .out{opacity:0;transform:scale(.6) rotate(-45deg)}
.ps-detail.is-compact .ps-compact .in{opacity:0;transform:scale(.6) rotate(45deg)}
.ps-detail.is-compact .ps-compact .out{opacity:1;transform:none}
@media(hover:hover){.ps-compact:hover{background:rgba(118,118,128,.16);color:#1f1f22}}
.ps-compact:focus{outline:none}
.ps-compact:focus-visible{box-shadow:0 0 0 2px #91baff}
.ps-text-head{padding-right:44px}
.ps-text{display:grid;grid-template-rows:auto auto;align-content:start}
.ps-text-body,.ps-pills{grid-area:2/1}
.ps-pills{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:7px 4px;margin:4px 0 0;padding:0;list-style:none;pointer-events:none}
.ps-pills li{display:inline-flex;align-items:center;gap:4px;opacity:0;transform:translateY(10px) scale(.6);filter:blur(4px);
  transition:opacity .2s ease,transform .25s ease,filter .2s ease}
.ps-pill{display:inline-flex;align-items:center;min-height:30px;padding:5px 13px;border-radius:999px;font-size:13.5px;font-weight:500;letter-spacing:-.01em;
  color:color-mix(in srgb,var(--tone) 85%,#000);background:color-mix(in srgb,var(--tone) 9%,#fff);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 18%,transparent)}
.ps-pill-arrow{width:14px;height:14px;flex:none;fill:none;stroke:color-mix(in srgb,var(--tone) 55%,#c7c7cc);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ps-pill-arrow path{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .2s ease}
/* words of the paragraph: they blow away one after another… */
.ps-text-body .w{display:inline-block;transition:opacity .35s ease,transform .45s cubic-bezier(.22,1,.36,1),filter .35s ease;transition-delay:calc(var(--i) * 9ms)}
.ps-detail.is-compact .ps-text-body .w{opacity:0;filter:blur(6px);transform:translate(calc(var(--dx) * 1px),-10px) scale(.7) rotate(calc(var(--dx) * .15deg));
  transition-duration:.3s,.4s,.3s;transition-delay:calc(var(--i) * 4ms)}
/* …and the pills spring in where the text was, arrows drawing between them */
.ps-detail.is-compact .ps-pills{pointer-events:auto}
.ps-detail.is-compact .ps-pills li{opacity:1;transform:none;filter:none;
  transition:opacity .3s ease,transform .6s cubic-bezier(.34,1.6,.5,1),filter .3s ease;transition-delay:calc(220ms + var(--k) * 110ms)}
.ps-detail.is-compact .ps-pill-arrow path{stroke-dashoffset:0;transition:stroke-dashoffset .35s ease;transition-delay:calc(300ms + var(--k) * 110ms)}
@media(max-width:650px){.ps-compact{top:10px;right:10px;width:30px;height:30px}.ps-text-head{padding-right:40px}.ps-pill{min-height:28px;padding:5px 11px;font-size:12.5px}}
@media(prefers-reduced-motion:reduce){.ps-text-body .w,.ps-pills li,.ps-pill-arrow path{transition:none!important}}

/* step cards keep their soft shadow in every state; only the coloured ring
   fades in (same number of shadow layers everywhere, so it truly animates) */
.ps-steps .ps-card{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tone) 0%,transparent),var(--glass-edge),var(--glass-shadow)!important;
  transition:box-shadow .35s cubic-bezier(.22,1,.36,1),transform .45s cubic-bezier(.22,1,.36,1)!important}
@media(hover:hover){.ps-steps .ps-card[aria-pressed="false"]:hover{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tone) 38%,transparent),var(--glass-edge),var(--glass-shadow-hover)!important}}
.ps-steps .ps-card[aria-pressed="true"]{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--tone) 55%,transparent),var(--glass-edge),var(--glass-shadow-hover)!important}
.ps-steps .ps-card::before{transition:opacity .5s ease}
/* collapsed: the pills sit in the middle of the space the paragraph leaves */
.ps-pills{align-self:center;margin-top:0}
/* the paragraph keeps clear of the round button and wraps evenly */
.ps-text-body{padding-right:52px;text-wrap:pretty}
@media(max-width:650px){.ps-text-body{padding-right:0}}
/* every line about the same length */
.ps-text-body{text-wrap:balance}

/* ---------- Concept step animation (20s loop) ----------
   A Figma frame: the cursor draws a square and drags it into a rectangle, leaves;
   the frame shrinks aside, two more frames fly in with their own shapes, prototype
   noodles connect them and everything rests (~10s); then it all clears and loops. */
.cn{position:relative;container-type:size;overflow:hidden;--T:20s;
  background:radial-gradient(circle,rgba(154,79,208,.13) .7px,transparent 1px) 0 0/9px 9px,
    radial-gradient(120% 120% at 20% 0%,#fbf8ff 0%,#f2eaff 60%,#ebe0ff 100%)!important}
.cn>*{position:absolute;display:block}
.cn-frame{border-radius:6px;background:#fff;box-shadow:0 0 0 .5px rgba(28,25,40,.08),0 6px 14px -7px rgba(90,50,150,.3)}
.cn-main{left:50%;top:50%;width:54cqw;height:74cqh;transform:translate(-50%,-50%);z-index:2}
.cn-rect{position:absolute;left:20%;top:22%;width:28%;height:50%;border-radius:3px;background:linear-gradient(135deg,#c9a8ff,#a77bf0);
  transform-origin:0 0;transform:scale(0)}
.cn-rect::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 1px #0d99ff}
.ps-on .cn-rect::after{animation:cn-handles var(--T) ease infinite}
.cn-rect i{position:absolute;width:5px;height:5px;margin:-2.5px;background:#fff;box-shadow:0 0 0 1px #0d99ff;border-radius:1px}
.cn-rect i:nth-child(1){left:0;top:0}.cn-rect i:nth-child(2){right:0;top:0;margin-right:-2.5px}
.cn-rect i:nth-child(3){left:0;bottom:0;margin-bottom:-2.5px}.cn-rect i:nth-child(4){right:0;bottom:0;margin:0 -2.5px -2.5px 0}
.cn-f2,.cn-f3{width:24cqw;height:38cqh;z-index:2;opacity:0}
.cn-f2{left:39cqw;top:15cqh;transform:translateX(16cqw)}
.cn-f3{left:71cqw;top:45cqh;transform:translateX(16cqw)}
.cn-circle{position:absolute;left:12%;top:20%;width:13cqh;height:13cqh;border-radius:50%;background:linear-gradient(135deg,#ffc6a8,#ff9a6b)}
.cn-bar{position:absolute;left:56%;height:3px;border-radius:2px;background:#e6e0f0;width:calc(var(--w) * .4)}
.cn-bar:nth-of-type(1){top:32%}.cn-bar:nth-of-type(2){top:48%}
.cn-f2 .cn-bar{display:block}
.cn-pill{position:absolute;left:12%;top:22%;width:76%;height:24%;border-radius:999px;background:linear-gradient(90deg,#ffadcd,#ffc9df)}
.cn-tri{position:absolute;left:38%;top:56%;width:24%;height:28%;background:linear-gradient(135deg,#9fc6ff,#6aa5ff);clip-path:polygon(50% 0,100% 100%,0 100%)}
.cn-f2>*,.cn-f3>*{transform:scale(0)}
.cn-links{left:0;top:0;width:100%;height:100%;z-index:1;overflow:visible}
.cn-link{fill:none!important;stroke:#0d99ff!important;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linecap:butt;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.cn-dot{left:calc(var(--x) * 1cqw);top:calc(var(--y) * 1cqh);width:4px;height:4px;margin:-2px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #0d99ff;z-index:3;transform:scale(0)}
.cn-cursor{left:0;top:0;width:13px;height:13px;z-index:5;overflow:visible;transform:translate(100cqw,110cqh)}
.cn-cursor path{fill:#1f1f22!important;stroke:#fff!important;stroke-width:1.2;stroke-linejoin:round}

.ps-on .cn-main{animation:cn-main var(--T) cubic-bezier(.4,0,.2,1) infinite}
.ps-on .cn-rect{animation:cn-rect var(--T) linear infinite}
.ps-on .cn-rect i{animation:cn-handles var(--T) ease infinite}
.ps-on .cn-cursor{animation:cn-cursor var(--T) linear infinite}
.ps-on .cn-f2{animation:cn-f2 var(--T) linear infinite}
.ps-on .cn-f3{animation:cn-f3 var(--T) linear infinite}
.ps-on .cn-f2>*,.ps-on .cn-f3>*{animation:cn-pop var(--T) cubic-bezier(.34,1.6,.5,1) infinite}
.ps-on .cn-f3>*{animation-name:cn-pop3}
.ps-on .cn-link1{animation:cn-link1 var(--T) ease infinite}
.ps-on .cn-link2{animation:cn-link2 var(--T) ease infinite}
.ps-on .cn-dot{animation:cn-dot var(--T) cubic-bezier(.34,1.6,.5,1) infinite;animation-delay:calc(var(--d) * .25s)}
.ps-paused .cn *,.ps-paused .cn-rect::after{animation-play-state:paused!important}
/* plays only while Concept is the chosen step; otherwise a calm frame with its rectangle */
.ps-card[aria-pressed="false"] .cn *{animation:none!important}
.ps-card[aria-pressed="false"] .cn-rect{transform:none;width:60%}
.ps-card[aria-pressed="false"] .cn-rect::after{opacity:0;animation:none!important}
.ps-card[aria-pressed="false"] .cn-rect i{opacity:0}

@keyframes cn-cursor{
  0%,3%{transform:translate(100cqw,110cqh);opacity:1;animation-timing-function:cubic-bezier(.3,0,.2,1)}
  6%{transform:translate(33.8cqw,29.3cqh)}
  8%{transform:translate(48.9cqw,66.3cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  9%{transform:translate(48.9cqw,66.3cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  16%{transform:translate(66.2cqw,66.3cqh);animation-timing-function:cubic-bezier(.5,0,.8,.4)}
  17%{transform:translate(66.2cqw,66.3cqh);opacity:1;animation-timing-function:cubic-bezier(.5,0,.8,.4)}
  20%{transform:translate(72cqw,120cqh);opacity:0}
  100%{transform:translate(100cqw,110cqh);opacity:0}}
@keyframes cn-rect{
  0%,6%{transform:scale(0);width:28%;opacity:1;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  8%,9%{transform:scale(1);width:28%;opacity:1;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  16%,92%{transform:scale(1);width:60%;opacity:1}
  95%,100%{transform:scale(1);width:60%;opacity:0}}
@keyframes cn-handles{0%,17%{opacity:1}20%,100%{opacity:0}}
@keyframes cn-main{
  0%,20%{transform:translate(-50%,-50%) scale(1)}
  25%,92%{transform:translate(calc(-50% - 31cqw),-50%) scale(.48)}
  98%,100%{transform:translate(-50%,-50%) scale(1)}}
@keyframes cn-f2{
  0%,22%{opacity:0;transform:translateX(16cqw) scale(.9);filter:blur(4px);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  29%,91%{opacity:1;transform:none;filter:blur(0);animation-timing-function:cubic-bezier(.5,0,.75,0)}
  95%,100%{opacity:0;transform:translateX(16cqw) scale(.9);filter:blur(4px)}}
@keyframes cn-f3{
  0%,24%{opacity:0;transform:translateX(16cqw) scale(.9);filter:blur(4px);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  31%,91.5%{opacity:1;transform:none;filter:blur(0);animation-timing-function:cubic-bezier(.5,0,.75,0)}
  95.5%,100%{opacity:0;transform:translateX(16cqw) scale(.9);filter:blur(4px)}}
@keyframes cn-pop{0%,29%{transform:scale(0)}32%,100%{transform:scale(1)}}
@keyframes cn-pop3{0%,31%{transform:scale(0)}34%,100%{transform:scale(1)}}
@keyframes cn-link1{0%,32.9%{stroke-dashoffset:1;opacity:0}33%{stroke-dashoffset:1;opacity:1}37%,90%{stroke-dashoffset:0;opacity:1}92%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes cn-link2{0%,35.9%{stroke-dashoffset:1;opacity:0}36%{stroke-dashoffset:1;opacity:1}40%,90%{stroke-dashoffset:0;opacity:1}92%{stroke-dashoffset:0;opacity:0}100%{stroke-dashoffset:1;opacity:0}}
@keyframes cn-dot{0%,33%{transform:scale(0)}36%,86%{transform:scale(1)}88%,100%{transform:scale(0)}}
@media(prefers-reduced-motion:reduce){.cn *{animation:none!important}.cn-rect{transform:none!important;width:60%!important}}

/* ---------- Animation step: a minimal After Effects timeline (14s loop) ----------
   The cursor nudges two keyframes, steps aside, the playhead plays the comp,
   then the cursor drags the keyframes back to where they were and leaves. */
.tl{position:relative;container-type:size;overflow:hidden;--T:14s;
  background:radial-gradient(120% 120% at 20% 0%,#fff7fa 0%,#ffeaf1 60%,#ffe0ea 100%)!important}
.tl>*,.tl-panel>*{position:absolute;display:block}
.tl-panel{left:6cqw;right:6cqw;top:12cqh;bottom:10cqh;border-radius:8px;background:#fff;
  box-shadow:0 0 0 .5px rgba(28,25,40,.08),0 6px 14px -7px rgba(160,50,90,.25);overflow:hidden;container-type:size}
.tl-ruler{left:0;right:0;top:0;height:16cqh;border-bottom:1px solid #f1eef0}
.tl-ruler i{position:absolute;left:calc(var(--x) * 1cqw);bottom:0;width:1px;height:35%;background:#e2dde0}
.tl-row{left:0;right:0;top:calc((var(--y) - 22) * 1cqh * 1.18);height:18cqh}
.tl-row::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#f6f3f5}
.tl-tag{position:absolute;left:4cqw;top:50%;width:10cqw;height:4px;margin-top:-2px;border-radius:2px;background:#ebe7ea}
.tl-tag::before{content:"";position:absolute;left:-2.4cqw;top:-1px;width:6px;height:6px;border-radius:2px;background:var(--c)}
.tl-bar{position:absolute;left:calc(var(--a) * 1cqw);width:calc((var(--b) - var(--a)) * 1cqw);top:50%;height:2px;margin-top:-1px;border-radius:1px;
  background:color-mix(in srgb,var(--c) 45%,#fff)}
.tl-k{position:absolute;left:calc(var(--x) * 1cqw);top:50%;width:7px;height:7px;margin:-3.5px;background:#fff;border:1.5px solid #8e8e93;border-radius:1.5px;transform:rotate(45deg);z-index:1}
.tl-head{left:22cqw;top:0;bottom:0;width:1.5px;margin-left:-.75px;background:#0d99ff;z-index:2}
.tl-head::before{content:"";position:absolute;left:50%;top:0;width:9px;height:9px;margin-left:-4.5px;border-radius:2px 2px 50% 50%;background:#0d99ff}
.tl-cursor{left:-3px;top:-1px;width:13px;height:13px;z-index:5;overflow:visible;transform:translate(100cqw,110cqh)}
.tl-cursor path{fill:#1f1f22!important;stroke:#fff!important;stroke-width:1.2;stroke-linejoin:round}

.ps-on .tl-cursor{animation:tl-cursor var(--T) linear infinite}
.ps-on .tl-k.kA{animation:tl-kA var(--T) linear infinite}
.ps-on .tl-k.kB{animation:tl-kB var(--T) linear infinite}
.ps-on .tl-row:has(.kA) .tl-bar{animation:tl-barA var(--T) linear infinite}
.ps-on .tl-head{animation:tl-head var(--T) linear infinite}
.ps-paused .tl *{animation-play-state:paused!important}
.ps-card[aria-pressed="false"] .tl *{animation:none!important}
.ps-card[aria-pressed="false"] .tl-head{left:46cqw}

/* panel coordinates → slot: x = 6 + px * .88 (cqw), y = 12 + py * .78 (cqh); kA row centre ≈ 26.5cqh, kB ≈ 59.5cqh */
@keyframes tl-cursor{
  0%,3%{transform:translate(100cqw,110cqh);opacity:1;animation-timing-function:cubic-bezier(.3,0,.2,1)}
  9%{transform:translate(56.9cqw,38.6cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  10%{transform:translate(56.9cqw,38.6cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  15%{transform:translate(65.5cqw,38.6cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  20%{transform:translate(63.8cqw,68cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  21%{transform:translate(63.8cqw,68cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%{transform:translate(53.4cqw,68cqh);animation-timing-function:cubic-bezier(.4,0,.2,1)}
  31%,68%{transform:translate(82cqw,80cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  74%{transform:translate(65.5cqw,38.6cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  75%{transform:translate(65.5cqw,38.6cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  80%{transform:translate(56.9cqw,38.6cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  85%{transform:translate(53.4cqw,68cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  86%{transform:translate(53.4cqw,68cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  91%{transform:translate(63.8cqw,68cqh);opacity:1;animation-timing-function:cubic-bezier(.5,0,.8,.4)}
  97%{transform:translate(78cqw,120cqh);opacity:0}
  100%{transform:translate(100cqw,110cqh);opacity:0}}
@keyframes tl-kA{
  0%,9.5%{left:58cqw;border-color:#8e8e93;background:#fff}
  10%{left:58cqw;border-color:#ff5f9e;background:#ffd3e3;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  15%{left:68cqw;border-color:#ff5f9e;background:#ffd3e3}
  16%,74.5%{left:68cqw;border-color:#8e8e93;background:#fff}
  75%{left:68cqw;border-color:#ff5f9e;background:#ffd3e3;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  80%{left:58cqw;border-color:#ff5f9e;background:#ffd3e3}
  81%,100%{left:58cqw;border-color:#8e8e93;background:#fff}}
@keyframes tl-barA{0%,10%{width:28cqw;animation-timing-function:cubic-bezier(.45,0,.25,1)}15%,75%{width:38cqw;animation-timing-function:cubic-bezier(.45,0,.25,1)}80%,100%{width:28cqw}}
@keyframes tl-kB{
  0%,20.5%{left:66cqw;border-color:#8e8e93;background:#fff}
  21%{left:66cqw;border-color:#ff5f9e;background:#ffd3e3;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%{left:54cqw;border-color:#ff5f9e;background:#ffd3e3}
  27%,85.5%{left:54cqw;border-color:#8e8e93;background:#fff}
  86%{left:54cqw;border-color:#ff5f9e;background:#ffd3e3;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  91%{left:66cqw;border-color:#ff5f9e;background:#ffd3e3}
  92%,100%{left:66cqw;border-color:#8e8e93;background:#fff}}
@keyframes tl-head{0%,30%{left:22cqw;opacity:1}68%{left:94cqw;opacity:1}72%{left:94cqw;opacity:0}73%{left:22cqw;opacity:0}78%,100%{left:22cqw;opacity:1}}
@media(prefers-reduced-motion:reduce){.tl *{animation:none!important}}

/* Timeline restyle: a dark After Effects panel floating on a glowing pink gradient,
   glassy edges, AE label colours, real layer duration bars, blue playhead with glow */
.tl{background:linear-gradient(160deg,#ffe8f2 0%,#ffb3d2 48%,#f45c9f 100%)!important}
.tl-glow{inset:0;background:radial-gradient(70% 90% at 15% 0%,rgba(255,255,255,.75),transparent 60%),radial-gradient(60% 80% at 100% 100%,rgba(126,74,255,.35),transparent 70%)}
.tl-panel{left:7cqw;right:7cqw;top:11cqh;bottom:9cqh;border-radius:10px;
  background:linear-gradient(180deg,rgba(38,36,46,.96),rgba(22,21,28,.97));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 .5px rgba(255,255,255,.08),0 14px 28px -12px rgba(110,10,60,.55),0 4px 10px -4px rgba(110,10,60,.3)}
.tl-top{left:0;right:0;top:0;height:15cqh;display:flex!important;align-items:center;gap:2.2cqw;padding:0 3cqw;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03)}
.tl-top i{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.18)}
.tl-top b{margin-left:1cqw;font-size:clamp(6px,2.6cqw,9px);font-weight:600;color:rgba(255,255,255,.7);letter-spacing:.01em}
.tl-tc{margin-left:auto;font:600 clamp(6px,2.6cqw,9px)/1 ui-monospace,"SF Mono",Menlo,monospace;color:#5ab0ff;font-style:normal;letter-spacing:.02em}
.tl-ruler{top:15cqh;height:11cqh;border-bottom:1px solid rgba(255,255,255,.06)}
.tl-ruler i{background:rgba(255,255,255,.16)}
.tl-row{top:calc(26cqh + (var(--y) - 34) * 1cqh * 1.02);height:17cqh}
.tl-row::after{background:rgba(255,255,255,.04)}
.tl-tag{background:rgba(255,255,255,.1)}
.tl-tag::before{border-radius:1.5px;box-shadow:0 0 6px -1px var(--c)}
/* the layer's duration bar spans the comp; keyframes sit on top of it */
.tl-bar{left:21cqw!important;width:74cqw!important;height:68%;margin-top:0;top:16%;border-radius:4px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--c) 42%,transparent),color-mix(in srgb,var(--c) 26%,transparent));
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--c) 55%,transparent),inset 0 0 0 .5px color-mix(in srgb,var(--c) 50%,transparent);animation:none!important}
.tl-k{width:6px;height:6px;margin:-3px;background:#e9e7ef;border:0;border-radius:1px;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
@keyframes tl-kA{
  0%,9.5%{left:58cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
  10%{left:58cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  15%{left:68cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d}
  16%,74.5%{left:68cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
  75%{left:68cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  80%{left:58cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d}
  81%,100%{left:58cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}}
@keyframes tl-kB{
  0%,20.5%{left:66cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
  21%{left:66cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%{left:54cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d}
  27%,85.5%{left:54cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
  86%{left:54cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d;animation-timing-function:cubic-bezier(.45,0,.25,1)}
  91%{left:66cqw;background:#ffd84d;box-shadow:0 0 0 1px rgba(0,0,0,.35),0 0 8px #ffd84d}
  92%,100%{left:66cqw;background:#e9e7ef;box-shadow:0 0 0 1px rgba(0,0,0,.35)}}
.tl-head{top:15cqh;background:#2d8cff;box-shadow:0 0 6px rgba(45,140,255,.9)}
.tl-head::before{top:0;width:8px;height:7px;margin-left:-4px;border-radius:1.5px 1.5px 4px 4px;background:#2d8cff}
.tl-cursor path{fill:#fff!important;stroke:#1f1f22!important;stroke-width:1}
.tl-cursor{filter:drop-shadow(0 2px 3px rgba(0,0,0,.4))}
@media(max-width:650px){.tl-top{display:none!important}.tl-ruler{top:0}.tl-row{top:calc(14cqh + (var(--y) - 34) * 1cqh * 1.15)}.tl-head{top:0}}

@media(max-width:650px){.tl-cursor{display:none}}

/* Timeline, light premium version: a white floating panel on a soft neutral-pink
   ground, hairline rows, quiet pastel layer bars, ink playhead, dark diamonds */
.tl{background:radial-gradient(120% 120% at 20% 0%,#ffffff 0%,#fbf2f5 55%,#f4e7ec 100%)!important}
.tl-glow{display:none}
.tl-panel{left:7cqw;right:7cqw;top:11cqh;bottom:9cqh;border-radius:10px;background:#fff;
  box-shadow:0 0 0 .5px rgba(28,25,40,.06),0 1px 2px rgba(28,25,40,.04),0 12px 26px -12px rgba(120,40,80,.22),0 30px 50px -30px rgba(120,40,80,.18)}
.tl-top{background:none;border-bottom:1px solid #f2f0f1}
.tl-top i{background:#e4e1e3}
.tl-top b{color:#76767c;font-weight:500}
.tl-tc{color:#1f1f22;font-weight:500;opacity:.7}
.tl-ruler{border-bottom:1px solid #f2f0f1}
.tl-ruler i{background:#e3e0e2}
.tl-row::after{background:#f6f4f5}
.tl-tag{background:#efedee}
.tl-tag::before{box-shadow:none}
.tl-bar{height:56%;top:22%;border-radius:999px;
  background:color-mix(in srgb,var(--c) 22%,#fff);box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--c) 45%,transparent)}
.tl-k{background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
@keyframes tl-kA{
  0%,9.5%{left:58cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
  10%{left:58cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  15%{left:68cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18)}
  16%,74.5%{left:68cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
  75%{left:68cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  80%{left:58cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18)}
  81%,100%{left:58cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}}
@keyframes tl-kB{
  0%,20.5%{left:66cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
  21%{left:66cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%{left:54cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18)}
  27%,85.5%{left:54cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
  86%{left:54cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  91%{left:66cqw;background:#ff5f9e;box-shadow:0 0 0 1.5px #fff,0 0 0 4px rgba(255,95,158,.18)}
  92%,100%{left:66cqw;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}}
.tl-head{width:1px;margin-left:-.5px;background:#1f1f22;box-shadow:none}
.tl-head::before{width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:#1f1f22;box-shadow:0 0 0 2px #fff}
.tl-cursor path{fill:#1f1f22!important;stroke:#fff!important;stroke-width:1.2}
.tl-cursor{filter:drop-shadow(0 2px 3px rgba(28,25,40,.25))}
.tl-k{width:5px;height:5px;margin:-2.5px}

/* ---------- Timeline v3: closer to the references ----------
   One quiet object on a neutral light ground: a compact white panel with a deep,
   soft shadow, iridescent layer thumbnails, hairline grid, dark diamonds; a
   floating white transport pill (dark play button, like the avatar pill ref)
   that the cursor presses to play the comp. */
.tl{background:radial-gradient(110% 120% at 50% 0%,#fbfbfb 0%,#f1f1f2 55%,#e9e9eb 100%)!important}
.tl-panel{left:10cqw;right:10cqw;top:12cqh;bottom:auto;height:76cqh;border-radius:12px;background:#fff;
  box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 2px 6px -2px rgba(0,0,0,.06),0 18px 36px -18px rgba(0,0,0,.22)}
.tl-top{display:none!important}
.tl-ruler{top:0;height:12cqh;border-bottom:1px solid #f3f3f4}
.tl-ruler i{background:#e6e6e8;height:30%}
.tl-row{top:calc(12cqh + (var(--y) - 34) / 18 * 22cqh)!important;height:22cqh}
.tl-row::after{background:#f5f5f6}
.tl-row:last-of-type::after{display:none}
.tl-tag{left:7cqw;top:50%;width:6cqw;height:11cqh;margin-top:-5.5cqh;border-radius:3px;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.06)}
.tl-tag::before{display:none}
.tl-row:nth-of-type(3) .tl-tag{background:linear-gradient(120deg,#ffd6e6,#ffc8a8 45%,#d9c8ff)}
.tl-row:nth-of-type(4) .tl-tag{background:linear-gradient(120deg,#cfe4ff,#e2d4ff 55%,#ffe0ef)}
.tl-row:nth-of-type(5) .tl-tag{background:linear-gradient(120deg,#e6dbff,#c6e3ff 50%,#d6fbe6)}
.tl-row:nth-of-type(6) .tl-tag{background:linear-gradient(120deg,#ffe7c8,#ffd0de 50%,#e5d6ff)}
.tl-bar{left:22cqw!important;width:73cqw!important;height:30%;top:35%;border-radius:999px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--c) 30%,#fff),color-mix(in srgb,var(--c) 14%,#fff));box-shadow:none}
.tl-k{width:5px;height:5px;margin:-2.5px;background:#1f1f22;box-shadow:0 0 0 1.5px #fff}
.tl-head{top:0;width:1px;margin-left:-.5px;background:#1f1f22}
.tl-head::before{top:2cqh;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#1f1f22;box-shadow:0 0 0 2px #fff}
.tl-pill{left:35cqw;top:73cqh;width:30cqw;height:18cqh;display:flex!important;align-items:center;gap:6px;padding:0 10px 0 2px;border-radius:999px;background:#fff;z-index:3;
  box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 2px 4px -1px rgba(0,0,0,.06),0 12px 24px -12px rgba(0,0,0,.25);box-sizing:border-box}
.tl-play{flex:none;display:grid;place-items:center;width:14cqh;height:14cqh;border-radius:50%;background:#1f1f22;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
.tl-play svg{width:55%;height:55%}
.tl-play path{fill:#fff!important;stroke:none!important}
.tl-play .q{opacity:0}
.tl-time{flex:1;text-align:center;font:500 clamp(6px,2.7cqw,9.5px)/1 ui-monospace,"SF Mono",Menlo,monospace;color:#56565b;letter-spacing:.02em}
.tl-cursor path{fill:#1f1f22!important;stroke:#fff!important;stroke-width:1.2}
.tl-cursor{filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}

/* choreography: nudge two keys → press play → comp plays → keys go back → leave */
.ps-on .tl-play{animation:tl-press var(--T) linear infinite}
.ps-on .tl-play .p{animation:tl-p var(--T) linear infinite}
.ps-on .tl-play .q{animation:tl-q var(--T) linear infinite}
@keyframes tl-press{0%,29.5%{transform:none}30.5%{transform:scale(.86)}32%,100%{transform:none}}
@keyframes tl-p{0%,30.5%{opacity:1}31%,68%{opacity:0}68.5%,100%{opacity:1}}
@keyframes tl-q{0%,30.5%{opacity:0}31%,68%{opacity:1}68.5%,100%{opacity:0}}
@keyframes tl-head{0%,31%{left:22cqw;opacity:1}68%{left:95cqw;opacity:1}71%{left:95cqw;opacity:0}72%{left:22cqw;opacity:0}75%,100%{left:22cqw;opacity:1}}
@keyframes tl-cursor{
  0%,3%{transform:translate(100cqw,110cqh);opacity:1;animation-timing-function:cubic-bezier(.3,0,.2,1)}
  9%{transform:translate(56.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  10%{transform:translate(56.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  15%{transform:translate(64.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  20%{transform:translate(62.8cqw,62.9cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  21%{transform:translate(62.8cqw,62.9cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  26%{transform:translate(53.2cqw,62.9cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  31%,68%{transform:translate(84cqw,93cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  74%{transform:translate(64.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  75%{transform:translate(64.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  80%{transform:translate(56.4cqw,29.5cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  85%{transform:translate(53.2cqw,62.9cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  86%{transform:translate(53.2cqw,62.9cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  91%{transform:translate(62.8cqw,62.9cqh);opacity:1;animation-timing-function:cubic-bezier(.5,0,.8,.4)}
  97%{transform:translate(78cqw,120cqh);opacity:0}
  100%{transform:translate(100cqw,110cqh);opacity:0}}
@media(max-width:650px){.tl-pill{padding-right:6px}.tl-cursor{display:block}}

/* ---------- Delivery step: drag ready.mp4 into a dialog, send, upload, "Sent" (18s loop) ---------- */
.dv{position:relative;container-type:size;overflow:hidden;--T:18s;
  background:radial-gradient(110% 120% at 50% 0%,#fbfbfb 0%,#f1f1f2 55%,#e9e9eb 100%)!important}
.dv>*{position:absolute;display:block}
.dv-dialog{left:20cqw;top:14cqh;width:60cqw;height:72cqh;border-radius:12px;background:#fff;
  box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 2px 6px -2px rgba(0,0,0,.06),0 18px 36px -18px rgba(0,0,0,.22)}
.dv-dialog>*{position:absolute;display:block}
.dv-h1{left:8%;top:9%;width:34%;height:4px;border-radius:2px;background:#1f1f22;opacity:.85}
.dv-h2{left:8%;top:16%;width:22%;height:3px;border-radius:2px;background:#e3e3e6}
.dv-drop{left:8%;right:8%;top:26%;height:44%;border-radius:8px;border:1.2px dashed #d6d6da;display:grid!important;place-items:center;
  transition:none}
.dv-arrow{width:14px;height:14px;fill:none!important}
.dv-arrow path{fill:none!important;stroke:#b8b8be!important;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dv-bar{left:22%;right:22%;top:63%;height:3px;border-radius:2px;background:#ececef;overflow:hidden;opacity:0}
.dv-bar i{display:block;height:100%;width:100%;border-radius:inherit;background:#34c759;transform-origin:0 50%;transform:scaleX(0)}
.dv-send{right:8%;bottom:8%;width:16cqw;height:16%;border-radius:999px;background:#1f1f22;display:grid!important;place-items:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 4px 8px -4px rgba(0,0,0,.4)}
.dv-send b{font-size:clamp(6px,2.6cqw,9.5px);font-weight:600;color:#fff;letter-spacing:-.01em}
.dv-file{left:35cqw;top:40cqh;width:30cqw;height:14cqh;display:flex!important;align-items:center;gap:5px;padding:0 6px 0 3px;box-sizing:border-box;border-radius:7px;background:#fff;z-index:3;
  box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 6px 14px -6px rgba(0,0,0,.28)}
.dv-thumb{flex:none;display:grid;place-items:center;width:10cqh;height:10cqh;border-radius:4px;background:linear-gradient(120deg,#ffd6e6,#ffc8a8 45%,#d9c8ff)}
.dv-thumb svg{width:60%;height:60%}.dv-thumb path{fill:#fff!important;stroke:none!important}
.dv-file b{font-size:clamp(6px,2.4cqw,9px);font-weight:500;color:#1f1f22;white-space:nowrap}
.dv-toast{left:50%;top:50%;display:flex!important;align-items:center;gap:6px;height:20cqh;padding:0 13px 0 4px;border-radius:999px;background:#fff;z-index:4;
  box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 2px 6px -2px rgba(0,0,0,.06),0 16px 32px -16px rgba(0,0,0,.28);opacity:0;transform:translate(-50%,-50%) scale(.8)}
.dv-check{display:grid;place-items:center;width:15cqh;height:15cqh;border-radius:50%;background:#34c759;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.dv-check svg{width:60%;height:60%}
.dv-check path{fill:none!important;stroke:#fff!important;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:12;stroke-dashoffset:12}
.dv-toast b{font-size:clamp(7px,3cqw,11px);font-weight:600;color:#1f1f22;letter-spacing:-.01em}
.dv-cursor{left:-3px;top:-1px;width:13px;height:13px;z-index:5;overflow:visible;transform:translate(100cqw,110cqh);filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
.dv-cursor path{fill:#1f1f22!important;stroke:#fff!important;stroke-width:1.2;stroke-linejoin:round}

.ps-on .dv-dialog{animation:dv-dialog var(--T) linear infinite}
.ps-on .dv-file{animation:dv-file var(--T) linear infinite}
.ps-on .dv-drop{animation:dv-drop var(--T) ease infinite}
.ps-on .dv-arrow{animation:dv-arrow var(--T) ease infinite}
.ps-on .dv-bar{animation:dv-barbox var(--T) ease infinite}
.ps-on .dv-bar i{animation:dv-bar var(--T) linear infinite}
.ps-on .dv-send{animation:dv-send var(--T) linear infinite}
.ps-on .dv-toast{animation:dv-toast var(--T) linear infinite}
.ps-on .dv-check path{animation:dv-check var(--T) ease infinite}
.ps-on .dv-cursor{animation:dv-cursor var(--T) linear infinite}
.ps-paused .dv *{animation-play-state:paused!important}
.ps-card[aria-pressed="false"] .dv *{animation:none!important}
.ps-card[aria-pressed="false"] .dv-arrow{opacity:0}

@keyframes dv-dialog{
  0%{opacity:0;transform:translateY(6cqh) scale(.96);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  4%,34.5%{opacity:1;transform:none;animation-timing-function:cubic-bezier(.5,0,.75,0)}
  37%,100%{opacity:0;transform:scale(.94)}}
@keyframes dv-file{
  0%,5%{opacity:0;transform:translate(29cqw,-34cqh) scale(.9);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  8%{opacity:1;transform:translate(29cqw,-36cqh)}
  9.5%{opacity:1;transform:translate(29cqw,-36cqh) rotate(-3deg) scale(1.05);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  16%{opacity:1;transform:translate(0,-2cqh) rotate(-3deg) scale(1.05);animation-timing-function:cubic-bezier(.34,1.5,.5,1)}
  17.5%,24%{opacity:1;transform:translate(0,-2cqh)}
  35%{opacity:1;transform:translate(0,-2cqh)}
  37.5%,100%{opacity:0;transform:translate(0,-2cqh) scale(.94)}}
@keyframes dv-drop{0%,11%{border-color:#d6d6da;background:transparent}13%,17%{border-color:#34c759;background:rgba(52,199,89,.06)}19%,100%{border-color:#d6d6da;background:transparent}}
@keyframes dv-arrow{0%,13%{opacity:1}15%,100%{opacity:0}}
@keyframes dv-barbox{0%,22.5%{opacity:0}23.5%,35%{opacity:1}37%,100%{opacity:0}}
@keyframes dv-bar{0%,23.5%{transform:scaleX(0);animation-timing-function:cubic-bezier(.4,0,.2,1)}33%,100%{transform:scaleX(1)}}
@keyframes dv-send{0%{opacity:1}0%,21.5%{transform:none;opacity:1}22.5%{transform:scale(.88)}24%,99%{transform:none;opacity:.45}100%{transform:none;opacity:1}}
@keyframes dv-toast{
  0%,37.5%{opacity:0;transform:translate(-50%,-30%) scale(.8);animation-timing-function:cubic-bezier(.34,1.5,.5,1)}
  41%,92%{opacity:1;transform:translate(-50%,-50%) scale(1);animation-timing-function:cubic-bezier(.5,0,.75,0)}
  97%,100%{opacity:0;transform:translate(-50%,-80%) scale(.95)}}
@keyframes dv-check{0%,40%{stroke-dashoffset:12}43%,100%{stroke-dashoffset:0}}
@keyframes dv-cursor{
  0%,4%{transform:translate(100cqw,110cqh);opacity:1;animation-timing-function:cubic-bezier(.3,0,.2,1)}
  9%{transform:translate(80cqw,11cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  9.5%{transform:translate(80cqw,11cqh);animation-timing-function:cubic-bezier(.45,0,.25,1)}
  16%{transform:translate(51cqw,45cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  17.5%{transform:translate(51cqw,45cqh);animation-timing-function:cubic-bezier(.3,0,.2,1)}
  21.5%{transform:translate(67cqw,74cqh)}
  23%{transform:translate(67cqw,74cqh);opacity:1;animation-timing-function:cubic-bezier(.5,0,.8,.4)}
  28%{transform:translate(82cqw,120cqh);opacity:0}
  100%{transform:translate(100cqw,110cqh);opacity:0}}
@media(max-width:650px){.dv-cursor{display:none}}
@media(prefers-reduced-motion:reduce){.dv *{animation:none!important}}

/* Delivery drag & drop with physics: the file lifts on pickup, swings like it hangs
   from the cursor (tilt follows the speed and overshoots when it stops), squashes on
   drop and wobbles to rest — while the drop zone morphs into the file's own outline. */
.ps-on .dv-file{animation:dv-file2 var(--T) linear infinite}
.ps-on .dv-drop{animation:dv-drop2 var(--T) linear infinite}
@keyframes dv-file2{
  0%,5%{opacity:0;transform:translate(29cqw,-34cqh) scale(.9);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 6px 14px -6px rgba(0,0,0,.28);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  8%{opacity:1;transform:translate(29cqw,-36cqh)}
  9.5%{transform:translate(29cqw,-37.5cqh) scale(1.08) rotate(0deg);box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 18px 26px -10px rgba(0,0,0,.32);animation-timing-function:cubic-bezier(.5,0,.5,1)}
  11%{transform:translate(24cqw,-31cqh) scale(1.08) rotate(9deg)}
  13%{transform:translate(12cqw,-17cqh) scale(1.08) rotate(12deg)}
  15%{transform:translate(2cqw,-5cqh) scale(1.08) rotate(5deg)}
  16%{transform:translate(0,-3.5cqh) scale(1.08) rotate(-6deg);box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 18px 26px -10px rgba(0,0,0,.32)}
  17%{transform:translate(0,-2cqh) scale(1.1,.9) rotate(2deg);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 3px 6px -3px rgba(0,0,0,.2)}
  18%{transform:translate(0,-2cqh) scale(.96,1.05) rotate(-1.5deg)}
  19%{transform:translate(0,-2cqh) scale(1.02,.98) rotate(.6deg)}
  20%,35%{opacity:1;transform:translate(0,-2cqh);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 3px 6px -3px rgba(0,0,0,.2)}
  37.5%,100%{opacity:0;transform:translate(0,-2cqh) scale(.94)}}
@keyframes dv-drop2{
  0%,12%{left:8%;right:8%;top:26%;height:44%;border-radius:8px;border-style:dashed;border-color:#d6d6da;background:transparent}
  14%{left:7%;right:7%;top:25%;height:46%;border-radius:8px;border-style:dashed;border-color:#34c759;background:rgba(52,199,89,.06);animation-timing-function:cubic-bezier(.34,1.4,.5,1)}
  16%{left:7%;right:7%;top:25%;height:46%;border-radius:8px;border-style:dashed;border-color:#34c759;background:rgba(52,199,89,.06);animation-timing-function:cubic-bezier(.34,1.4,.5,1)}
  20%,36%{left:24.5%;right:24.5%;top:30.5%;height:24%;border-radius:10px;border-style:solid;border-color:rgba(52,199,89,.45);background:rgba(52,199,89,.07)}
  38%,100%{left:8%;right:8%;top:26%;height:44%;border-radius:8px;border-style:dashed;border-color:#d6d6da;background:transparent}}
.dv-drop{transform-origin:50% 50%}

/* Delivery drop v2: a crisp "click" — the zone snaps shut into the file, the file
   pops (quick squeeze → overshoot → settle), a green ring clicks on around it and a
   soft pulse ripples out. The ring belongs to the file itself, so it always fits. */
.dv-file::before,.dv-file::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.dv-file::after{box-shadow:0 0 0 1.5px #34c759;opacity:0}
.dv-file::before{box-shadow:0 0 0 1.5px rgba(52,199,89,.6);opacity:0}
.ps-on .dv-file::after{animation:dv-ring var(--T) linear infinite}
.ps-on .dv-file::before{animation:dv-ripple var(--T) linear infinite}
.ps-paused .dv-file::before,.ps-paused .dv-file::after{animation-play-state:paused!important}
.ps-card[aria-pressed="false"] .dv-file::after{opacity:1}
.ps-on .dv-file{animation:dv-file3 var(--T) linear infinite}
.ps-on .dv-drop{animation:dv-drop3 var(--T) linear infinite}
.dv-file b{flex:1;text-align:center;overflow:hidden;text-overflow:clip}
@keyframes dv-file3{
  0%,5%{opacity:0;transform:translate(29cqw,-34cqh) scale(.9);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 6px 14px -6px rgba(0,0,0,.28);animation-timing-function:cubic-bezier(.16,1,.3,1)}
  8%{opacity:1;transform:translate(29cqw,-36cqh)}
  9.5%{transform:translate(29cqw,-37.5cqh) scale(1.08) rotate(0deg);box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 18px 26px -10px rgba(0,0,0,.32);animation-timing-function:cubic-bezier(.5,0,.5,1)}
  11%{transform:translate(24cqw,-31cqh) scale(1.08) rotate(9deg)}
  13%{transform:translate(12cqw,-17cqh) scale(1.08) rotate(12deg)}
  15%{transform:translate(1cqw,-4cqh) scale(1.08) rotate(4deg)}
  16%{transform:translate(0,-3cqh) scale(1.08) rotate(-3deg);box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 18px 26px -10px rgba(0,0,0,.32);animation-timing-function:cubic-bezier(.6,0,1,.6)}
  16.4%{transform:translate(0,-2cqh) scale(.9) rotate(0);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 2px 4px -2px rgba(0,0,0,.2);animation-timing-function:cubic-bezier(.2,1.6,.4,1)}
  17.3%{transform:translate(0,-2cqh) scale(1.06)}
  18%,35%{opacity:1;transform:translate(0,-2cqh);box-shadow:0 0 0 .5px rgba(0,0,0,.06),0 3px 6px -3px rgba(0,0,0,.2)}
  37.5%,100%{opacity:0;transform:translate(0,-2cqh) scale(.94)}}
@keyframes dv-drop3{
  0%,12%{opacity:1;transform:none;border-color:#d6d6da;background:transparent}
  14%,16%{opacity:1;transform:scale(1.03);border-color:#34c759;background:rgba(52,199,89,.06);animation-timing-function:cubic-bezier(.6,0,1,.6)}
  16.4%{opacity:0;transform:scale(.55);border-color:#34c759;background:rgba(52,199,89,.06)}
  16.5%,37%{opacity:0;transform:scale(.55)}
  39%,100%{opacity:1;transform:none;border-color:#d6d6da;background:transparent}}
@keyframes dv-ring{0%,16.3%{opacity:0}16.4%,35%{opacity:1}37%,100%{opacity:0}}
@keyframes dv-ripple{0%,16.3%{opacity:0;transform:scale(1)}16.4%{opacity:1;transform:scale(1);animation-timing-function:cubic-bezier(.16,1,.3,1)}19%,100%{opacity:0;transform:scale(1.35,1.9)}}
/* the file chip sizes to its name (never clips), centred on the drop spot */
.dv-file{left:50%!important;width:max-content!important;translate:-50% 0;padding:0 9px 0 3px!important;gap:6px!important}
.dv-file b{flex:none;overflow:visible}

/* ---------- one typeface everywhere: SF Pro Display ----------
   (falls back to the system San Francisco on any Apple device, then Helvetica/Segoe) */
:root{--font:"SF Pro Display",-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",Arial,sans-serif}
html,body,body *:not(svg):not(svg *):not(.lang-flag){font-family:var(--font)!important}
/* numbers that used a monospace face keep their alignment with tabular figures */
.tl-tc,.tl-time,.ps-num,.ps-text-num,.cg-count,[data-im-time]{font-variant-numeric:tabular-nums}
.dv-send{width:auto!important;padding:0 9px}

/* Projects tab: centre the sentence on the folder's body, not on the empty space
   above it that the papers rise into */
@media(min-width:651px){.pj-copy{padding-top:calc(48px * var(--pjk,1))}}
.about-body .pj-type,.pj-type{text-wrap:balance}
/* cases: no "01 / 06" counter */
.cg-count{display:none!important}
/* cases: no film type above the title */
.cg-meta{display:none!important}
