/* Shared interaction layer. Every page loads it after its own sheets. */
:root{
  --dur-press:100ms;--dur-quick:140ms;--dur-ui:200ms;--dur-enter:260ms;--dur-reveal:320ms;--dur-draw:560ms;--stagger:60ms;
  --travel-sm:4px;--travel:8px;--travel-lg:12px;
  --ease-out:cubic-bezier(.23,1,.32,1);--ease-calm:cubic-bezier(.05,.7,.1,1);--ease-move:cubic-bezier(.77,0,.175,1);
  --ease-draw:cubic-bezier(.45,0,.2,1);
}

/* A restored scroll or a fragment landing jumps; in-page links glide once interaction.js has seen the page land. */
html:not(.landed){scroll-behavior:auto}

/* ---- Hit areas: larger targets, same visual design ------------- */
.text-link,.source-link{position:relative}
.text-link::after,.source-link::after{content:'';position:absolute;inset:-8px -4px}
.footer li+li,.site-footer li+li{margin-top:0}
/* On a phone the Explore list runs in two columns, so the footer stops outweighing a section; rows keep 44px. */
@media (max-width:599px){:is(.footer,.site-footer) .footer-grid > div:nth-child(2) ul{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}}
.footer li a,.site-footer li a{min-height:44px}
/* A mouse needs no 44px row, so the footer list keeps the dropdown's tighter rhythm there. */
@media (hover:hover) and (pointer:fine){.footer li a,.site-footer li a{min-height:32px}}
.brand{padding-block:6px;margin-block:-6px}
.form-back{padding:12px 8px;margin-left:-8px}
.evidence-close{min-width:44px;min-height:44px}
.button,.nav-cta,.menu,.frame-button,.reel-controls button,.choice,.about-menu > summary,.faq summary,.evidence-open,.evidence-close,.form-back{-webkit-tap-highlight-color:transparent}
.choice:active{background:var(--sage)}

/* ---- Dialogs: the page stays put, the provenance stays in view ---- */
html:has(.evidence-dialog[open]),html:has(.founder-dialog[open]){overflow:hidden;scrollbar-gutter:stable}
/* The dialog stays 24px clear of the screen, and the screenshot leaves room for every caption
   line, so the link to the original never sits flush at the bottom of a scroll. */
.evidence-dialog{max-height:calc(100dvh - 48px)}
.evidence-image{max-height:calc(100dvh - 260px);object-fit:contain}

/* ---- FAQ: a drawn plus that turns into a minus --------------------- */
.faq summary{position:relative;padding-right:40px}
.faq summary::before,.faq summary::after,.faq details[open] summary::after{content:'';position:absolute;right:5px;top:50%;width:14px;height:2px;margin-top:-1px;background:currentColor;color:var(--muted)}
.faq summary::after{rotate:90deg}
.faq details[open] summary::after{rotate:180deg}

/* ---- Header dropdown chevron: transform only, so nothing reflows ---- */
.header .about-menu > summary::after{margin-top:0;translate:0 -2px}
.header .about-menu[open] > summary::after{margin-top:0;translate:0 2px}

/* ---- Testimonial reel ---------------------------------------------- */
.quotes{scroll-padding-inline:16px;overscroll-behavior-x:contain}
.quote{scroll-snap-stop:always}
.reel-controls{position:relative}
.reel-count{align-self:center;margin-right:10px;font-size:14px;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
/* Beside the heading the controls shrink-wrap, so the count sits outside them and takes no width. */
@media (min-width:761px){.reel-count{position:absolute;right:100%;top:50%;translate:0 -50%;margin-right:14px}}
.reel-count .reel-count-spoken{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* A portrait frame keeps Tom and the Goldspot Pens sign in view instead of the centre. */
@media (max-width:900px){.story-body .frame video,.story-body .frame .poster{object-position:35% 50%}}

/* ---- Plain links: a faint print rule that tightens to ink on hover and focus ---- */
.header .nav > a:not(.nav-cta),.header .nav > a:not(.nav-cta):hover,.header .about-dropdown > a,.header .about-dropdown > a:hover,.footer li a,.footer li a:hover,.site-footer li a,.site-footer li a:hover{text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:var(--line);text-decoration-thickness:1px;text-underline-offset:5px}
/* A resting rule on one header item would read as the current page, so the header's stays hidden. */
.header .nav > a:not(.nav-cta),.header .nav > a:not(.nav-cta):hover,.header .about-dropdown > a,.header .about-dropdown > a:hover{text-decoration-color:transparent}
/* A list of links needs no resting rule either; only the email address keeps one, as the one written-out contact. */
.footer li a:not([href^="mailto:"]),.site-footer li a:not([href^="mailto:"]){text-decoration-color:transparent}
.header .nav > a:not(.nav-cta):focus-visible,.header .about-dropdown > a:focus-visible,.footer li a:focus-visible,.site-footer li a:focus-visible{text-decoration-color:var(--ink);text-decoration-thickness:1.5px;text-underline-offset:4px}
@media (hover:hover) and (pointer:fine){
  .header .nav > a:not(.nav-cta):hover,.header .about-dropdown > a:hover,.footer li a:hover,.site-footer li a:hover{text-decoration-color:var(--ink);text-decoration-thickness:1.5px;text-underline-offset:4px}
}

/* ---- Motion, for readers who have not asked for less --------------- */
@media (prefers-reduced-motion:no-preference){
  .button,.nav-cta,.text-link,.source-link,.nav a,.about-menu summary,.choice,.evidence-open,.reel-controls button,.footer a,.site-footer a,.faq summary,.menu{
    transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out),border-color var(--link-ink,var(--dur-quick)) var(--ease-out),text-decoration-color var(--dur-quick) var(--ease-out),scale var(--dur-press) var(--ease-out)}
  .text-link{transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out),border-color var(--link-ink,var(--dur-quick)) var(--ease-out),box-shadow var(--link-ink,var(--dur-quick)) var(--ease-out),scale var(--dur-press) var(--ease-out)}
  .text-link:hover,.text-link:focus-visible{--link-ink:var(--dur-ui)}
  .header .nav > a:not(.nav-cta),.header .about-dropdown > a,.footer li a,.site-footer li a,.prc-page > .contact-direct a{transition:color var(--dur-quick) var(--ease-out),background-color var(--dur-quick) var(--ease-out),text-decoration-color var(--dur-ui) var(--ease-out),text-decoration-thickness var(--dur-ui) var(--ease-out),text-underline-offset var(--dur-ui) var(--ease-out)}
  .play{transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out),scale var(--dur-press) var(--ease-out)}
  .button:active,.nav-cta:active,.menu:active,.reel-controls button:active:not(:disabled),.frame-button:active .play{scale:.97}
  .text-link svg,.button svg{transition:translate var(--dur-quick) var(--ease-out)}

  .faq summary::after{transition:rotate var(--dur-ui) var(--ease-out)}
  @supports (interpolate-size:allow-keywords) and selector(::details-content){
    .faq{interpolate-size:allow-keywords}
    .faq details::details-content{block-size:0;overflow:clip;transition:block-size var(--dur-ui) var(--ease-out),content-visibility var(--dur-ui) allow-discrete}
    .faq details[open]::details-content{block-size:auto}
  }
  /* A closed answer has no style to fade from, so its first open style starts hidden.
     The unfold front-loads on ease-out, so the words fade with it rather than after it. */
  .faq details > :not(summary){opacity:0;transition:opacity var(--dur-quick) var(--ease-out)}
  .faq details[open] > :not(summary){opacity:1}
  @starting-style{.faq details[open] > :not(summary){opacity:0}}

  /* The chevron turns as one rigid shape with its panel's fade; its optical nudge steps at once, so no frame shows a broken corner. */
  .header .about-menu > summary::after{transition:transform var(--dur-quick) var(--ease-out)}
  @media (min-width:901px){
    .header .about-menu[open] > .about-dropdown{transform-origin:top left;transition:opacity var(--dur-quick) var(--ease-out),translate var(--dur-quick) var(--ease-out)}
    @starting-style{.header .about-menu[open] > .about-dropdown{opacity:0;translate:0 calc(var(--travel-sm) * -1)}}
  }

  @supports (transition-behavior:allow-discrete){
    .evidence-dialog,.founder-dialog{opacity:0;scale:.97;transition:opacity var(--dur-ui) var(--ease-out),scale var(--dur-ui) var(--ease-out),overlay var(--dur-ui) allow-discrete,display var(--dur-ui) allow-discrete}
    .evidence-dialog[open],.founder-dialog[open]{opacity:1;scale:1;transition-duration:var(--dur-enter);transition-timing-function:var(--ease-calm)}
    @starting-style{.evidence-dialog[open],.founder-dialog[open]{opacity:0;scale:.97}}
    .evidence-dialog::backdrop,.founder-dialog::backdrop{background-color:#17251b00;transition:background-color var(--dur-ui) var(--ease-out),overlay var(--dur-ui) allow-discrete,display var(--dur-ui) allow-discrete}
    .evidence-dialog[open]::backdrop,.founder-dialog[open]::backdrop{background-color:#17251bd9}
    @starting-style{.evidence-dialog[open]::backdrop,.founder-dialog[open]::backdrop{background-color:#17251b00}}
    /* The poster and play disc dissolve into the started video; their first paint is untouched. */
    .frame .poster,.frame .frame-caption{transition:opacity var(--dur-ui) var(--ease-out),display var(--dur-ui) allow-discrete}
    .frame .play{transition:background-color var(--dur-quick) var(--ease-out),color var(--dur-quick) var(--ease-out),scale var(--dur-press) var(--ease-out),opacity var(--dur-ui) var(--ease-out),display var(--dur-ui) allow-discrete}
    .frame.is-playing .poster,.frame.is-playing .play,.frame.is-playing .frame-caption{opacity:0}
  }
  /* Only the screenshot travels; the page swaps in place so it never cross-fades. */
  ::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation:none}
  html.vt-running .evidence-dialog{scale:1}
  /* The panel is already there when the screenshot lands, so no page text shows through it; its words follow. */
  html.vt-running:not(.vt-closing) .evidence-dialog{opacity:1}
  html.vt-running:not(.vt-closing) .evidence-dialog > :not(.evidence-scroll){transition:opacity var(--dur-quick) var(--ease-out) var(--dur-press)}
  @starting-style{html.vt-running:not(.vt-closing) .evidence-dialog[open] > :not(.evidence-scroll){opacity:0}}
  html.vt-closing .evidence-dialog .evidence-image{visibility:hidden}
  /* Closing mirrors the open: the words leave first, so the panel never stands empty while the screenshot flies back. */
  html.vt-closing .evidence-dialog > :not(.evidence-scroll){opacity:0;transition:opacity var(--dur-press) var(--ease-out)}
  html.vt-closing .evidence-dialog{transition-duration:var(--dur-quick)}
  ::view-transition-group(evidence-shot){animation-duration:var(--dur-enter);animation-timing-function:var(--ease-calm)}
  ::view-transition-old(evidence-shot),::view-transition-new(evidence-shot){width:100%;height:100%;object-fit:contain}
  /* The dash exists only while it draws, so the resting icon keeps its plain joins.
     The wide gap and the offset past 1 keep a round cap from dotting the start. */
  @keyframes prc-redraw{from{stroke-dasharray:1 2;stroke-dashoffset:1.01}to{stroke-dasharray:1 2;stroke-dashoffset:0}}
  .svc-tile:focus-visible .svc-redraw{animation:prc-redraw var(--dur-ui) var(--ease-out)}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
  .svc-tile:hover .svc-redraw{animation:prc-redraw var(--dur-ui) var(--ease-out)}
  /* A card the page scrolls under a still pointer is not being pointed at, so it holds until the pointer moves. */
  html.is-scrolling .svc-tile:hover .svc-redraw{animation:none}
  html.is-scrolling .ed-card:hover .ed-more{translate:none}
  .faq summary:hover{color:var(--accent)}
  .text-link:hover svg,.button:hover svg{translate:3px 0}
}

/* ---- Reduced motion: no travel, but state changes still crossfade ---- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  dialog,.nav.open,.inquiry fieldset,.header,.about-dropdown{translate:none;scale:none}
  .nav.open,.inquiry fieldset,.header{transition-property:opacity;transition-duration:var(--dur-quick);transition-timing-function:var(--ease-out)}
  @media (min-width:901px){
    .header .about-menu[open] > .about-dropdown{transition:opacity var(--dur-quick) var(--ease-out)}
    @starting-style{.header .about-menu[open] > .about-dropdown{opacity:0}}
  }
  @supports (transition-behavior:allow-discrete){
    .evidence-dialog,.founder-dialog{opacity:0;transition:opacity var(--dur-quick) var(--ease-out),overlay var(--dur-quick) allow-discrete,display var(--dur-quick) allow-discrete}
    .evidence-dialog[open],.founder-dialog[open]{opacity:1}
    @starting-style{.evidence-dialog[open],.founder-dialog[open]{opacity:0}}
    .evidence-dialog::backdrop,.founder-dialog::backdrop{background-color:#17251b00;transition:background-color var(--dur-quick) var(--ease-out),overlay var(--dur-quick) allow-discrete,display var(--dur-quick) allow-discrete}
    .evidence-dialog[open]::backdrop,.founder-dialog[open]::backdrop{background-color:#17251bd9}
    @starting-style{.evidence-dialog[open]::backdrop,.founder-dialog[open]::backdrop{background-color:#17251b00}}
    .frame .poster,.frame .play,.frame .frame-caption{transition:opacity var(--dur-quick) var(--ease-out),display var(--dur-quick) allow-discrete}
    .frame.is-playing .poster,.frame.is-playing .play,.frame.is-playing .frame-caption{opacity:0}
  }
}

/* ---- Type scale and the one curved corner ------------------------- */
/* Media frames curve their top outer corner; panels (form, CTA, proof) their bottom-right. */
:root{
  --fs-display:clamp(48px,5.1vw,74px);--fs-h2:clamp(36px,3.7vw,50px);--fs-panel-h2:36px;
  --ls-display:-.055em;--ls-h2:-.045em;--lh-display:1.05;--lh-h2:1.1;
  --curve-panel-mobile:48px;
}
/* Headings break into even lines and intros avoid a one-word last line; the words never change. */
h1,h2{text-wrap:balance}
.lead,.intro{text-wrap:pretty}
/* Below 900px the home h1 eases down just enough that 'Growth that makes' holds one line, so no word strands. */
@media (max-width:900px){.home .hero > div:first-child{container-type:inline-size}.home .hero h1{font-size:clamp(34px,12.3cqi,48px)}}

/* Eight logos fill even rows below desktop instead of leaving two centred orphans. */
@media (max-width:1023px){.clients ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center}}
@media (max-width:599px){.clients ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* The text wordmark is type, not a picture, so it needs text contrast; its icon keeps the logos' fade. */
.clients .wordmark{opacity:1}
/* The person behind a quote is named at body size, so the attribution reads as a real name, not a footnote. */
.quote figcaption strong{font-size:16px}
.clients .wordmark span{color:var(--muted);font-weight:600}
.clients .wordmark img{opacity:.55}
/* A story without its video: one column, the chart at reading width. */
.story-body.solo{grid-template-columns:minmax(0,760px)}
.story-body.solo .story-copy{justify-content:flex-start;gap:24px}
.slot-center,.slot-center small{color:var(--muted)}
/* With room for two columns the chart sits beside the story, the rhythm Goldspot and Ding Defend set. */
@media (min-width:1000px){
  .story-body.solo{grid-template-columns:1fr 1.45fr;row-gap:24px;align-items:start}
  .story-body.solo .story-copy{display:contents}
  .story-body.solo .story-copy > *{grid-column:1}
  .story-body.solo .story-copy > .evidence{grid-column:2;grid-row:1 / span 3;margin-top:0}
}

/* Trust captions and meta text: 14px floor; dates alone stay smaller. */
.small,.evidence figcaption,.story-meta span,.frame-caption span span,.quote figcaption span:not(.initials),.hero-photo figcaption span{font-size:14px;line-height:1.5}
.story-result+.small,.fit .small,.diagram-note{font-size:15px}
.source-link,section#contact .source-link{font-size:14px}
/* A source link on its own line clears the 24px target minimum; the negative margin keeps the text rhythm. */
a.source-link{padding-block:3px;margin-block:-3px}
.evidence-dialog p{font-size:14px;line-height:1.5}
/* The provenance carries arithmetic, so its figures line up in even columns. */
.evidence-dialog #evidence-description{font-variant-numeric:tabular-nums;max-inline-size:60ch;line-height:1.55;color:var(--muted);margin-block-end:16px}
/* Scaled down on a phone, the labels' tight tracking closes Manrope's narrow space ('keepsa'). */
.diagram svg text{word-spacing:.12em}
/* A link inside a proof sentence reads as part of it, as it already does in the SEO page's notes. */
.svc-proof .proof-line .source-link{display:inline;min-height:0;font-size:inherit;font-weight:600;color:var(--ink);text-decoration-color:var(--accent)}
@media (max-width:760px){.story-meta span{font-size:14px;font-weight:500}}

/* Enlarge: a visible cue and a 44px target without moving the caption row. */
.evidence .source-link{gap:6px;min-height:44px;margin-block:-6px;padding-inline:4px;margin-inline-end:-4px}
.evidence .source-link::before{content:'';flex:none;width:14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.75' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M10 10l4.25 4.25M6.5 4.5v4M4.5 6.5h4' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.75' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M10 10l4.25 4.25M6.5 4.5v4M4.5 6.5h4' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.evidence:has(.evidence-open:focus-visible){border-color:var(--accent)}
.evidence:has(.evidence-open:focus-visible) .source-link{color:var(--ink);text-decoration-color:var(--ink)}
@media (hover:hover) and (pointer:fine){
  .evidence:has(.evidence-open:hover,.source-link:hover){border-color:var(--accent)}
  .evidence:has(.evidence-open:hover) .source-link{color:var(--ink);text-decoration-color:var(--ink)}
}
@media (prefers-reduced-motion:no-preference){.evidence{transition:border-color var(--dur-quick) var(--ease-out)}}

/* On a phone the dashboard runs edge to edge, so its figures are as large as the screen allows;
   the caption row stays on the page gutter. */
@media (max-width:480px){
  .story .evidence,.proof-grid .evidence,.proof > .evidence{margin-inline:calc(var(--gutter) / -2);border-inline:0;border-radius:0}
  .story .evidence figcaption,.proof-grid .evidence figcaption,.proof > .evidence figcaption{margin-inline:calc(var(--gutter) / 2 - 10px)}
  /* The section rule just below already closes the last card, so its own bottom rule would double it. */
  .story .evidence,.proof-grid > .story-copy:last-child .evidence,.proof > .evidence:last-child{border-bottom-width:0}
}

/* Side by side, both proof cards end on one caption line; the shorter screenshot centres in its frame. */
@media (min-width:901px){
  .proof-grid > .story-copy{display:flex;flex-direction:column}
  .proof-grid .evidence{flex:1;display:flex;flex-direction:column}
  .proof-grid .evidence-open{flex:1;display:flex;align-items:center}
  .proof-grid .evidence-open img{object-fit:contain}
}

/* Close reads as the phone menu's Close: the same word, size and outline. */
.evidence-close{min-width:64px;padding:9px 13px;background:none;font-size:14px;line-height:1.5}
/* Enlarged screenshot on a phone: full size, scrolled sideways, provenance below it. */
.evidence-dialog .evidence-hint{display:none}
@media (max-width:699px){
  .evidence-dialog .evidence-hint{display:block;margin:0 0 10px;font-size:14px;line-height:1.5;color:var(--muted)}
  .evidence-scroll{overflow-x:auto;overscroll-behavior-x:contain;border-radius:5px;background:#fff}
  .evidence-scroll .evidence-image{width:200%;max-width:none;max-height:none;border-radius:0}
}

/* Contact: heading and form on the page's left edge, next steps beside the form. */
@media (min-width:761px){
  section#contact.contact.wrap .contact-intro{text-align:left;max-width:none;margin:0 0 28px}
  section#contact.contact.wrap .contact-next{margin:20px 0 0}
  section#contact.contact.wrap .inquiry{max-width:760px;margin:0}
}
@media (min-width:1180px){
  section#contact.contact.wrap{display:grid;grid-template-columns:minmax(0,760px) minmax(260px,360px);column-gap:clamp(40px,4vw,64px);justify-content:start;align-items:start}
  section#contact.contact.wrap .contact-intro{display:contents}
  section#contact.contact.wrap .contact-intro h2{grid-column:1/-1;margin-bottom:32px}
  section#contact.contact.wrap .contact-next{grid-column:2;grid-row:2;width:auto;margin:0;padding-top:8px}
  section#contact.contact.wrap .inquiry{grid-column:1;grid-row:2}
}

/* ---- Ledger rules draw once when reached. Print, no script and reduced motion keep the border. ---- */
@media screen and (prefers-reduced-motion:no-preference){
  html.motion .steps li + li:not(.is-done),html.motion .decide-steps li:not(.is-done),html.motion .fit-row:not(.is-done){position:relative;border-top-color:transparent}
  html.motion .steps li + li:not(.is-done)::after,html.motion .decide-steps li:not(.is-done)::after,html.motion .fit-row:not(.is-done)::after{content:'';position:absolute;top:-1px;inset-inline:0;height:1px;background:var(--line);transform-origin:0 50%;scale:0 1;pointer-events:none}
  html.motion .steps li + li.is-seen::after,html.motion .decide-steps li.is-seen::after,html.motion .fit-row.is-seen::after{animation:prc-rule var(--dur-draw) var(--ease-draw) both}
  @keyframes prc-rule{from{scale:0 1}to{scale:1 1}}
}

/* ---- The result figure is underlined; it draws once when reached. ---- */
.story-result strong:first-of-type{background:linear-gradient(var(--accent),var(--accent)) 0 100%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media screen and (prefers-reduced-motion:no-preference){
  html.motion .story-result strong:first-of-type:not(.is-seen):not(.is-done){background-size:0 2px}
  /* Only the draw transitions, so the collapse when html.motion lands is instant and unseen. */
  html.motion .story-result strong:first-of-type.is-seen{transition:background-size var(--dur-draw) var(--ease-draw) var(--dur-quick)}
}

/* ---- Hero diagrams draw their argument once. Print, reduced motion and the editor get the art at rest. ---- */
@media screen and (prefers-reduced-motion:no-preference){
  .diagram .d-n1{--n:1}.diagram .d-n2{--n:2}.diagram .d-n3{--n:3}.diagram .d-n4{--n:4}.diagram .d-q1{--q:1}
  .diagram :is(.d-fade,.d-lift){--len:var(--dur-reveal);--ease:var(--ease-calm)}
  .diagram .d-arrow{--len:var(--dur-ui);--ease:var(--ease-move)}
  .diagram .d-arrow .d-fade{--len:var(--dur-quick)}
  /* A rule's label lands as the rule completes, as on a printed chart. */
  .diagram :is(.ga-1,.ga-2) > .d-fade{--q:2;--len:var(--dur-ui);--ease:var(--ease-out)}
  .diagram .ga-0{--at:var(--dur-press);--len:var(--dur-reveal);--ease:var(--ease-calm)}
  .diagram .ga-1{--at:var(--dur-press);--len:var(--dur-draw);--ease:var(--ease-move)}
  .diagram .ga-2{--at:calc(var(--dur-press) + var(--dur-ui));--len:var(--dur-draw);--ease:var(--ease-move)}
  .diagram .ga-3{--at:calc(var(--dur-press) + var(--dur-ui) + var(--dur-draw) - var(--dur-quick));--len:var(--dur-reveal);--ease:var(--ease-calm)}
  .diagram .sg-3{--at:var(--dur-press);--len:var(--dur-draw);--ease:var(--ease-move)}
  .diagram .sg-1{--at:calc(var(--dur-press) + var(--dur-draw) - var(--dur-quick))}
  .diagram .sg-2{--at:calc(var(--dur-press) + var(--dur-draw) - var(--dur-quick) + var(--stagger))}
  .diagram .mt-1{--at:var(--dur-press)}
  .diagram .mt-2{--at:calc(var(--dur-press) + var(--dur-ui));--len:var(--dur-reveal);--ease:var(--ease-move)}
  .diagram .mt-3{--at:calc(var(--dur-press) + var(--dur-ui) + var(--stagger))}
  .diagram .mt-4{--at:calc(var(--dur-press) + var(--dur-ui) * 2 + var(--stagger));--len:var(--dur-reveal);--ease:var(--ease-calm)}
  .diagram .mt-5{--at:calc(var(--dur-press) + var(--dur-ui) * 2 + var(--stagger) * 2)}
  .diagram .mt-7{--at:calc(var(--dur-press) + var(--dur-ui) * 3 + var(--stagger) * 2)}
  .diagram .mt-6{--at:calc(var(--dur-press) + var(--dur-ui) * 4 + var(--stagger) * 2);--len:var(--dur-ui);--ease:var(--ease-out)}
  body:not(.editor-styles-wrapper) .diagram :is(.d-wipe,.d-back,.d-rise,.d-drop,.d-clip,.d-fade,.d-lift){animation-duration:var(--len,var(--dur-draw));animation-timing-function:var(--ease,var(--ease-move));animation-delay:calc(var(--at,var(--dur-press)) + var(--stagger) * var(--n,0) + var(--dur-quick) * var(--q,0));animation-fill-mode:backwards}
  body:not(.editor-styles-wrapper) .diagram .d-wipe{animation-name:prc-d-x;transform-box:fill-box;transform-origin:0 50%}
  body:not(.editor-styles-wrapper) .diagram .d-back{animation-name:prc-d-x;transform-box:fill-box;transform-origin:100% 50%}
  body:not(.editor-styles-wrapper) .diagram .d-rise{animation-name:prc-d-y;transform-box:fill-box;transform-origin:50% 100%}
  body:not(.editor-styles-wrapper) .diagram .d-drop{animation-name:prc-d-y;transform-box:fill-box;transform-origin:50% 0}
  body:not(.editor-styles-wrapper) .diagram .d-clip{animation-name:prc-d-clip}
  body:not(.editor-styles-wrapper) .diagram .d-fade{animation-name:prc-d-fade}
  body:not(.editor-styles-wrapper) .diagram .d-lift{animation-name:prc-d-lift}
  .diagram.is-held:not(.is-seen):not(.is-done) *{animation-play-state:paused}
  body:not(.editor-styles-wrapper) .diagram.is-done *{animation:none}
  @keyframes prc-d-x{from{scale:0 1}}
  @keyframes prc-d-y{from{scale:1 0}}
  @keyframes prc-d-clip{from,to{clip-path:var(--clip)}}
  @keyframes prc-d-fade{from{opacity:0}}
  @keyframes prc-d-lift{from{opacity:.32}}
}
