/* AdStackWatch homepage (third-draft "motion" homepage, go-live wiring 2026-11-18).
   Linked from / only (core.page(extra_css=...)), after static/style.css, so inner pages neither download nor apply it.
   Ported from the motion draft's css/site.css with the draft tokens mapped to the live ones (--panel = --bg-1,
   --panel2 = --bg-2, --panel3 = --bg-3, --ink2 = --ink-dim, --ink3 = --ink-muted, --amber = --accent,
   --amber-ink = --accent-ink, --line2 = --line-strong). Every rule is scoped to a homepage section class (hm-*,
   .alerts, .term, .zap) so the shared header and footer keep their site-wide look here too.
   Content is visible by default: motion is transform/stroke only, and prefers-reduced-motion makes it all static. */

/* ---------- motion primitives ---------- */
@keyframes hm-arrive{from{transform:translateY(28px)}to{transform:none}}
@keyframes hm-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes hm-bar{from{transform:scaleX(.0001)}to{transform:none}}

/* ---------- hero ---------- */
.hm-hero{position:relative;overflow:hidden;isolation:isolate}
.hm-hero-in{position:relative;padding-top:72px;padding-bottom:8px}
.hm-hero .rise{animation:hm-arrive .72s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(80ms + var(--d,0) * 90ms)}
/* the lede keeps the live class (fade-in, asserted by the copy tests) but moves like the draft: transform only, never invisible */
.js .hm-hero .fade-in{opacity:1;transform:none;animation:hm-arrive .72s cubic-bezier(.22,1,.36,1) both;animation-delay:260ms}
.hm-eyebrow.pill{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;padding:0;border:0;border-radius:0;background:none;font:400 13px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-muted)}
.hm-hero #hero-h{margin:0;padding-top:24px;max-width:1000px;font:500 84px/88px var(--serif);letter-spacing:-.035em}
.hm-hero #hero-h em{font-style:italic;font-weight:400;color:var(--accent)}
.hm-hero .lead{margin:0;padding-top:28px;max-width:700px;font:400 19px/30px var(--sans);color:var(--ink-dim)}
.hm-hero .hero-note{display:flex;gap:8px;flex-wrap:wrap;margin:0;padding-top:20px;font:14px/1.5 var(--sans);color:var(--ink-muted)}

/* caret: chevron draws from the apex, bars follow; parallax lags 90px over the first 900px */
.hm-hero .caret,.hm-closing .caret{position:absolute;width:256px;height:304px;pointer-events:none;z-index:0}
.hm-hero .caret{right:var(--pad);top:330px}
.caret-in{width:256px;height:304px;will-change:transform}
.caret svg{display:block;overflow:visible}
.caret .cv{stroke-dasharray:1 2;animation:hm-draw .9s cubic-bezier(.22,1,.36,1) both}
.caret .cb{transform-box:fill-box;transform-origin:left center;animation:hm-bar .5s cubic-bezier(.22,1,.36,1) both}
.caret .cb.b1{animation-delay:.35s}.caret .cb.b2{animation-delay:.44s}
@supports (animation-timeline: scroll()){
  @keyframes hm-caret-drift{from{transform:translateY(0)}to{transform:translateY(90px)}}
  .hm-hero .caret-in{animation:hm-caret-drift linear both;animation-timeline:scroll(root);animation-range:0 900px}
}

/* ---------- signup panel (hero + closing): live Buttondown form, draft look ---------- */
/* overflow clips the thread canvas (it draws 164px past the button) so threads stay inside the panel */
.hm-signup-wrap{position:relative;z-index:1;max-width:1000px;margin-top:38px;padding:2px;overflow:clip}
.hm-signup{position:relative;display:flex;flex-direction:column;gap:14px;padding:28px 32px;background:var(--bg-1);border:1px solid var(--accent-line);border-radius:20px}
.hm-signup .signup-row{display:flex;align-items:center;gap:16px}
.hm-signup .field{flex:1;min-width:0}
.hm-signup .email{height:60px;min-height:60px;padding:0 22px;background:var(--bg);border:1px solid var(--line-strong);border-radius:999px;font:17px var(--sans);color:var(--ink)}
.hm-signup .email::placeholder{color:var(--ink-muted);opacity:1}
.hm-signup .email:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-color:var(--line-strong)}
.hm-signup .signup-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;font:14px/1.5 var(--sans);color:var(--ink-muted)}
.hm-signup .signup-foot a{position:relative;z-index:2;padding:3px 8px;margin:-3px -8px;border-radius:8px;background:var(--bg-1);box-shadow:0 0 0 4px var(--bg-1);color:var(--ink-dim);transition:color .2s}
.hm-signup .signup-foot a:hover{color:var(--ink)}
.hm-signup-wrap .form-ok{margin:14px 6px 0}
/* amber light traces once around the hero panel, from the button back to the button, then fades */
.hm-signup .trace{position:absolute;left:-1px;top:-1px;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none;opacity:0}
.hm-signup .trace rect{--s:.36;x:1px;y:1px;width:calc(100% - 2px);height:calc(100% - 2px);rx:19px;ry:19px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-dasharray:.18 .82;stroke-dashoffset:calc(var(--s) * -1)}
@keyframes hm-trace-go{from{stroke-dashoffset:calc(var(--s) * -1)}to{stroke-dashoffset:calc(var(--s) * -1 - 1)}}
@keyframes hm-trace-vis{0%,41%{opacity:0}42%,87%{opacity:1}100%{opacity:0}}
.hm-hero .trace{animation:hm-trace-vis 1.55s linear both}
.hm-hero .trace rect{animation:hm-trace-go .7s cubic-bezier(.65,0,.35,1) .65s both}

/* thread buttons: .zap wraps the button and a canvas that static/app.js draws the threads on (no JS / reduced motion: plain button) */
.zap{position:relative;display:inline-flex;flex-shrink:0;isolation:isolate}
.zap-canvas{position:absolute;left:0;top:0;z-index:-1;pointer-events:none}
/* the canvas reaches 164px past its button: clip it at the section edge so it never widens the page on phones */
.alerts,.hm-sponsor{overflow-x:clip}
.hm-btn{display:flex;align-items:center;gap:10px;height:60px;padding:0 32px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.35);font:600 17px var(--sans);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .22s cubic-bezier(.3,1.6,.5,1),background-color .25s var(--ease)}
.hm-btn:hover{background:var(--accent-hover)}
.hm-btn:active{transform:scale(.96)}
.hm-btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.zap-sm .zap-btn{min-height:48px;padding:0 20px;gap:8px;font:600 14.5px/1 var(--sans);letter-spacing:-.01em;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}

/* ---------- "Next deadlines" strip (live hero ticker, re-set as a row under the signup; app.js recomputes the countdowns) ---------- */
.hm-ticker.ticker{position:relative;z-index:1;margin-top:48px;border:1px solid var(--line);border-radius:20px;background:var(--bg-1);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.hm-ticks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-ticks .tick-row{--tick-mark:52px;--mx:50%;--my:0%;position:relative;isolation:isolate;overflow:hidden;min-width:0;padding:14px 16px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.hm-ticks .tick-row::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(520px circle at var(--mx) var(--my),color-mix(in srgb,var(--accent) 9%,transparent),transparent 45%);opacity:0;transition:opacity .4s var(--ease)}
.hm-ticks .tick-row:hover::before,.hm-ticks .tick-row:focus-within::before{opacity:1}
.hm-ticks .tick-row:nth-child(3n){border-right:0}
.hm-ticks .tick-row:nth-child(n+4){border-bottom:0}
.hm-ticks .tick{position:relative;z-index:1;grid-template-columns:var(--tick-mark) minmax(0,1fr);align-items:center;padding:0;border:0;background:transparent}
.hm-ticks .tick:hover{background:transparent}
.hm-ticks .tick:hover>*{transform:none}
.hm-ticks .tick .t{display:block;-webkit-line-clamp:unset;line-clamp:unset;-webkit-box-orient:unset;overflow:visible}
.hm-ticks .tick-src{position:relative;z-index:1;margin:6px 0 0;padding-left:calc(var(--tick-mark) + 14px)}
/* countdown and month badges share one box, centered in the left column, with the unit centered under it */
.hm-ticks .tick .days{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;text-align:center;font-size:20px}
.hm-ticks .tick .days b{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:32px;min-width:0;padding:0;text-align:center}
.hm-ticks .tick .days small{width:44px;text-align:center}
.hm-ticks .tick .days.mo b{font-size:15px;letter-spacing:.04em;text-transform:uppercase}
.hm-ticks .tick .days.mo:not(.u-passed) b{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.hm-ticker .ticker-foot{border-top:1px solid var(--line)}

/* ---------- coverage stats + platform marquee (live markup and CSS; spacing only) ---------- */
.hm-stats{padding-top:64px}
.hm-plats{padding-top:28px}
.hm-plats .h2{margin:0 0 14px;font-size:clamp(1.5rem,2.2vw,2rem)}
.hm-plats .platgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.hm-plats .plat{padding:14px 12px;gap:4px}
.hm-plats .plat .nm{font-size:14.5px;line-height:1.25}
.hm-plats .plat .ct{font-size:11.5px;line-height:1.35}

/* ---------- what's moving (live bento; draft additions: provider tints, the API card as a terminal) ---------- */
.hm-moving .section-head .h2,.hm-moving .h3{font-weight:500}
/* provider colour: muted low-chroma tints of each brand hue, none near amber (draft README); 2px bar in the card gutter + 5% wash */
.hm-moving,.hm-ticker{--p-salesforce:#79B4D2;--p-shopify:#98BA87;--p-google-ads:#8EA8D8;--p-meta:#A5A1D5;--p-hubspot:#D2949B;--p-linkedin:#8AACCC;--p-tiktok:#7CBBB8}
[data-p=salesforce]{--p:var(--p-salesforce)}[data-p=shopify]{--p:var(--p-shopify)}[data-p=google-ads]{--p:var(--p-google-ads)}
[data-p=meta]{--p:var(--p-meta)}[data-p=hubspot]{--p:var(--p-hubspot)}[data-p=linkedin]{--p:var(--p-linkedin)}[data-p=tiktok]{--p:var(--p-tiktok)}
.hm-moving .list li[data-p]{position:relative;background:linear-gradient(90deg,color-mix(in srgb,var(--p) 5%,transparent),transparent 55%)}
.hm-moving .list li[data-p]::before{content:"";position:absolute;left:-14px;top:10px;bottom:10px;width:2px;border-radius:0 2px 2px 0;background:color-mix(in srgb,var(--p) 55%,transparent)}
.hm-moving .list li[data-p] .lp,.hm-ticker .tick[data-p] .p{color:var(--p)}
.card-pair{display:flex;flex-direction:column;padding:30px}
.card-pair h3{margin-bottom:10px}
.card-pair>.muted{line-height:1.65}
.card-pair>.list{margin-top:6px}
.card-pair .list a{padding:14px 0}
.card-pair .card-foot{margin-top:auto;padding-top:20px}
.card-pair .ov{min-height:24px}
.card-pair .term{flex:1 0 auto;display:flex;flex-direction:column}
@media (max-width:980px){.card-pair .list a{grid-template-columns:auto minmax(0,1fr);row-gap:6px}.card-pair .list .lt{grid-column:1/-1;grid-row:2}.card-pair .list .lp{grid-column:auto;justify-self:end;max-width:100%;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:600px){.card-pair{padding:26px}.term pre{font-size:12px;padding:14px 16px 16px}}
.hm-moving p code{font:500 .84em/1 var(--mono);color:var(--ink);background:rgba(243,241,236,.05);border:1px solid var(--line);padding:3px 7px;border-radius:7px;white-space:nowrap}
.term{margin:20px 0 0;border:1px solid var(--line);border-radius:14px;background:#0c0c0f;box-shadow:inset 0 1px 0 rgba(243,241,236,.03),0 18px 40px -28px rgba(0,0,0,.8);overflow:hidden}
.term-bar{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 6px 0 14px;border-bottom:1px solid var(--line);background:rgba(243,241,236,.015)}
.term-dots{display:flex;gap:6px}
.term-dots i{width:8px;height:8px;border-radius:50%;background:rgba(243,241,236,.13)}
/* the copy button is hidden until app.js wires it (html.can-copy), so with no JS there is no dead control */
.term-copy{display:none;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:none;color:var(--ink-muted);cursor:pointer;transition:color .2s,background-color .2s}
.can-copy .term-copy{display:inline-flex}
.term-copy svg{display:block}
.term-copy:hover{color:var(--ink);background:rgba(243,241,236,.06)}
.term-copy:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.term-copy .i-ok,.term-copy.is-copied .i-copy{display:none}
.term-copy.is-copied .i-ok{display:block}
.term-copy.is-copied{color:var(--ink)}
.term pre{margin:0;overflow-x:auto;padding:16px 18px 18px;font:400 13px/1.75 var(--mono);color:var(--ink-dim);background:none;border:0;border-radius:0}
.term pre:focus-visible{outline:2px solid var(--line-strong);outline-offset:-4px}
.term code{font:inherit;background:none;border:0;padding:0;color:inherit;white-space:pre}
.term .tok-c{color:var(--ink-muted)}.term .tok-x{color:var(--ink);font-weight:500}.term .tok-f{color:var(--ink-muted)}.term .tok-u{color:var(--ink-dim)}.term .tok-s{color:#A9B3D9}
.term .ln{display:inline-block;vertical-align:top}
/* typed reveal: only once app.js armed it (JS + motion allowed); one character per step, line 2 after line 1 */
.term.is-armed .ln{clip-path:inset(0 100% 0 0)}
.term.is-typed .ln{clip-path:inset(0 0 0 0);transition:clip-path calc(var(--n) * 16ms) steps(var(--n),end)}
.term.is-typed .ln+.ln{transition-delay:calc(54 * 16ms + 180ms)}

/* ---------- alerts waitlist (live waitlist_block(); thread buttons) ---------- */
.alerts{border-top:1px solid var(--line)}
.alerts .h2,.alerts .h3{font-weight:500}
.alerts .tier{overflow:visible;padding:28px}
.alerts .card::before{border-radius:inherit}
.alerts .tier .price{font-variation-settings:"opsz" 96}

/* ---------- method (live cards, draft card language) ---------- */
.hm-how{padding-top:0}
.hm-how .h2,.hm-how .h3{font-weight:500}
.hm-how .card{padding:28px}
.hm-how .card .h3{margin-top:14px}

/* ---------- sample issues (folder cards, from data/newsletter/) ---------- */
.hm-archive{padding:72px 0 96px;border-top:1px solid var(--line)}
.ar-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 24px;flex-wrap:wrap}
.ar-head h2{margin:0;font:500 44px/1.15 var(--serif);letter-spacing:-.03em}
@supports (animation-timeline: view()){
  @keyframes hm-rv{from{transform:translateY(20px)}to{transform:none}}
  .hm-archive .reveal{animation:hm-rv linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
}
.folders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:72px 40px;margin:0;padding:80px 0 0;list-style:none}
.folder{position:relative;display:flex;flex-direction:column;width:100%}
.folder .tab{position:relative;display:flex;align-items:center;width:160px;height:34px;padding:0 18px;background:var(--bg-2);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-bottom:0;border-radius:12px 12px 0 0;font:12px var(--mono);color:var(--accent);transition:border-color .3s,background-color .3s}
.folder .body{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:170px;padding:26px 28px;background:var(--bg-2);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:0 18px 18px 18px;transition:border-color .3s,background-color .3s}
.folder.is-current .tab,.folder.is-current .body{background:var(--bg-3);border-color:color-mix(in srgb,var(--accent) 60%,transparent)}
.folder .ft{font:500 30px/36px var(--serif);letter-spacing:-.02em}
.folder .fr{display:flex;align-items:center;justify-content:space-between;gap:12px}
.folder .fs{font:15px/1.4 var(--sans);color:var(--ink-dim)}
.folder .fr .arr{font:18px var(--sans);color:var(--accent)}
.folder:focus-visible{outline:none}
.folder:focus-visible .tab,.folder:focus-visible .body{border-color:color-mix(in srgb,var(--accent) 60%,transparent);background:var(--bg-3)}
.folder:focus-visible .body{outline:2px solid var(--accent);outline-offset:3px}
@media (hover:hover){.folder:hover .tab,.folder:hover .body{border-color:color-mix(in srgb,var(--accent) 60%,transparent);background:var(--bg-3)}}
.files{position:absolute;left:24px;right:24px;top:-40px;height:80px;pointer-events:none}
.files>i{position:absolute;display:block;visibility:hidden;height:60px;border-radius:10px;border:1px solid rgba(243,241,236,.1);background:var(--bg-2);transform:translateY(34px) rotate(0);transition:transform .45s cubic-bezier(.3,1.25,.5,1),visibility 0s .45s}
.files>i:nth-child(1){left:0;top:14px;width:calc(100% - 22px)}
.files>i:nth-child(2){left:14px;top:6px;width:calc(100% - 22px);background:#1d1d22;border-color:rgba(243,241,236,.12)}
.files>i:nth-child(3){left:6px;top:0;width:calc(100% - 16px);background:#1d1d22;border-color:color-mix(in srgb,var(--accent) 60%,transparent);display:flex;flex-direction:column;gap:7px;padding:14px 20px}
.files u{display:block;height:3px;width:70%;border-radius:2px;background:rgba(243,241,236,.18)}
.files u:first-child{width:45%;background:var(--accent)}
/* open: hover (real hover devices), focus, and the current issue at rest */
.folder:focus-visible .files>i,.folder.is-current .files>i{visibility:visible;transition:transform .45s cubic-bezier(.3,1.25,.5,1),visibility 0s}
.folder:focus-visible .files>i:nth-child(1),.folder.is-current .files>i:nth-child(1){transform:rotate(-6deg)}
.folder:focus-visible .files>i:nth-child(2),.folder.is-current .files>i:nth-child(2){transform:rotate(3deg);transition-delay:.07s,0s}
.folder:focus-visible .files>i:nth-child(3),.folder.is-current .files>i:nth-child(3){transform:rotate(-1deg);transition-delay:.14s,0s}
@media (hover:hover){
  .folder:hover .files>i{visibility:visible;transition:transform .45s cubic-bezier(.3,1.25,.5,1),visibility 0s}
  .folder:hover .files>i:nth-child(1){transform:rotate(-6deg)}
  .folder:hover .files>i:nth-child(2){transform:rotate(3deg);transition-delay:.07s,0s}
  .folder:hover .files>i:nth-child(3){transform:rotate(-1deg);transition-delay:.14s,0s}
}
/* the current issue fans its files once as it scrolls in (scroll-driven; static open without support / reduced motion) */
@supports (animation-timeline: view()){
  .folders>li:first-child{view-timeline:--hm-cur block}
  @keyframes hm-fan{from{transform:translateY(34px) rotate(0);visibility:hidden}}
  @keyframes hm-tablit{from{border-color:color-mix(in srgb,var(--accent) 22%,transparent)}}
  .folder.is-current .files>i{animation:hm-fan linear both;animation-timeline:--hm-cur}
  .folder.is-current .files>i:nth-child(1){animation-range:cover 8% cover 38%}
  .folder.is-current .files>i:nth-child(2){animation-range:cover 14% cover 44%}
  .folder.is-current .files>i:nth-child(3){animation-range:cover 20% cover 50%}
  .folder.is-current .tab{animation:hm-tablit linear both;animation-timeline:--hm-cur;animation-range:cover 20% cover 50%}
}

/* ---------- sponsorship band: live copy and links; the right column is rendered from site.json + data/sponsor_slots.json ---------- */
.hm-sponsor{padding-top:8px;padding-bottom:clamp(64px,8vw,104px)}
.sp-band{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0 56px;align-items:center;padding:52px 56px;border-color:var(--line-strong);border-radius:28px;isolation:isolate;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 5%,var(--bg-1)),#101013 60%)}
.sp-band::before{border-radius:inherit}
/* a warm light drifting slowly behind the band (transform only, 26s; static under reduced motion) */
.sp-band>.sp-light{position:absolute;z-index:-1;inset:-40% -10% -40% 35%;pointer-events:none;background:radial-gradient(closest-side,rgba(227,166,74,.16),rgba(227,166,74,.05) 55%,transparent);filter:blur(20px);animation:hm-sp-drift 26s ease-in-out infinite alternate}
@keyframes hm-sp-drift{0%{transform:translate3d(8%,-6%,0) scale(1)}50%{transform:translate3d(-14%,4%,0) scale(1.08)}100%{transform:translate3d(-4%,10%,0) scale(.96)}}
.sp-main .h2{margin-top:16px;max-width:20ch;font-weight:500}
.sp-main .h2 em{font-style:italic;font-weight:400;color:var(--accent)}
.sp-main .lead{margin:16px 0 26px;max-width:52ch;font-size:16.5px;line-height:1.6;color:var(--ink-dim)}
.sp-ctas{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.sp-side{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:18px;padding-left:40px;border-left:1px solid var(--line)}
.sp-offer{margin:0;font:400 21px/1.3 var(--serif);letter-spacing:-.015em;font-variation-settings:"opsz" 48;color:var(--ink)}
.sp-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"d c" "t c";align-items:center;gap:8px 16px;padding:18px 0 0;border-top:1px solid var(--line);transition:color .2s}
.sp-slot .sp-date{grid-area:d;font:500 12.5px/1 var(--mono);color:var(--ink)}
.sp-slot .sp-type{grid-area:t;font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-muted)}
.sp-slot .chip{grid-area:c;margin:0}
.sp-slot:hover .sp-date{color:var(--accent)}
.sp-book{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.sp-book .sp-home-terms{flex:1 0 100%;margin:0;line-height:1.45}
.sp-side .sp-empty{margin:0}
@media (max-width:980px){.sp-band{grid-template-columns:1fr;gap:28px;padding:40px 36px}.sp-side{padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}}
@media (max-width:600px){.sp-band{padding:30px 24px;border-radius:24px}.sp-main .lead{font-size:15.5px}.sp-offer{font-size:19px}.sp-band>.sp-light{inset:-20% -40% 30% 0}}

/* ---------- closing signup: the darkest stage; mirrored caret draws in on scroll ---------- */
.hm-closing{position:relative;overflow:hidden;padding:120px 0;border-top:1px solid var(--line);background:var(--bg)}
.hm-closing .hm-signup-wrap{margin:0 0 0 auto;max-width:860px}
.hm-close-h{margin:0 6px 16px;font:500 clamp(32px,4vw,44px)/1.15 var(--serif);letter-spacing:-.03em}
.hm-closing .caret{left:var(--pad);top:50%;margin-top:-152px}
.hm-closing .caret.mirror svg{transform:scaleX(-1)}
.hm-closing .cg{opacity:.22}
.hm-closing .cb{transform-origin:right center}
@supports (animation-timeline: view()){
  .hm-closing{view-timeline:--hm-cl block}
  .hm-closing .cv{animation:hm-draw linear both;animation-timeline:--hm-cl;animation-range:entry 20% cover 45%}
  .hm-closing .cb{animation:hm-bar linear both;animation-timeline:--hm-cl;animation-range:entry 30% cover 45%}
  @keyframes hm-trace-vis-s{0%{opacity:0}6%,86%{opacity:1}100%{opacity:0}}
  .hm-closing .trace{animation:hm-trace-vis-s linear both;animation-timeline:--hm-cl;animation-range:entry 20% cover 45%}
  .hm-closing .trace rect{animation:hm-trace-go linear both;animation-timeline:--hm-cl;animation-range:entry 20% cover 45%}
}
/* the footer follows the closing stage directly */
body[data-page-type="home"] .foot{margin-top:0}

/* ---------- tablet / mobile ---------- */
@media (max-width:1180px){
  .hm-hero #hero-h{font-size:64px;line-height:68px}
  .folders{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1200px){
  .hm-ticks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-ticks .tick-row:nth-child(3n){border-right:1px solid var(--line)}
  .hm-ticks .tick-row:nth-child(2n){border-right:0}
  .hm-ticks .tick-row:nth-child(n+4){border-bottom:1px solid var(--line)}
  .hm-ticks .tick-row:nth-last-child(-n+2){border-bottom:0}
}
@media (max-width:1000px){
  .hm-hero .caret{display:none}
  .hm-plats .platgrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
}
@media (max-width:640px){
  .hm-hero-in{padding-top:28px}
  .hm-eyebrow.pill{font-size:11px;gap:10px;width:auto}
  .hm-hero #hero-h{font-size:44px;line-height:46px;padding-top:16px}
  .hm-hero .lead{font-size:15px;line-height:22px;padding-top:16px}
  .hm-signup-wrap{margin-top:22px}
  .hm-signup{padding:16px;border-radius:18px;gap:12px}
  .hm-signup .signup-row{flex-direction:column;align-items:stretch;gap:12px}
  .hm-signup .email{height:52px;min-height:52px;font-size:16px;padding:0 18px}
  .hm-signup .zap{display:flex}
  .hm-signup .hm-btn{width:100%;justify-content:center;height:54px;font-size:16px}
  .hm-signup .signup-foot{flex-direction:column;gap:8px;font-size:12px;text-align:center}
  .hm-signup .trace rect{--s:.55}
  .hm-ticker.ticker{margin-top:36px}
  .hm-ticks{grid-template-columns:1fr}
  .hm-ticks .tick-row:nth-child(n){border-right:0;border-bottom:1px solid var(--line)}
  .hm-ticks .tick-row:last-child{border-bottom:0}
  .hm-stats{padding-top:44px}
  .hm-archive{padding:48px 0 64px}
  .ar-head h2{font-size:32px}
  .folders{grid-template-columns:1fr;padding-top:64px;gap:64px}
  .hm-closing{padding:72px 0}
  .hm-closing .caret{left:auto;right:-90px;top:12px;margin:0;opacity:.7;transform:scale(.75);transform-origin:top right}
}

/* ---------- reduced motion: everything static, final state ---------- */
@media (prefers-reduced-motion:reduce){
  .hm-hero *,.hm-closing *,.hm-archive *,.hm-sponsor *,.term *,.term{animation:none!important;transition:none!important}
  .hm-signup .trace{display:none}
  .zap-canvas{display:none}
  .hm-btn:active{transform:none}
}
