/* PostAgency archetype concepts — shared base (v1, 2026-10-08)
   Every concept page links this file first, then sets its own theme by
   overriding the --pa-* tokens below in a <style> block (the skin layer).
   Token NAMES mirror src/app/globals.css so a concept maps 1:1 onto the React
   block library, where P7 brand tokens override the same variables.
   Rules baked in: mobile first; nav max 4 items + 1 CTA; no full-sheet hero
   overlays (directional scrim only); text fills its card; logo is the footer
   home link; reduced motion = settled end state. */

:root {
  /* ground + ink */
  --pa-bg: #faf9f6;
  --pa-bg-2: #f4f2ee;
  --pa-panel: #ffffff;
  --pa-paper: #ffffff;           /* text on primary */
  --pa-ink: #141b24;             /* darkest surface (footer, bands) */
  --pa-txt: #141b24;
  --pa-txt-dim: #565f69;
  --pa-txt-faint: #565f69;
  --pa-line: #e7e5e2;
  --pa-line-2: #e7e5e2;
  /* brand */
  --pa-blue: #1f4d3a;            /* primary action colour (named blue in canon; any hue) */
  --pa-blue-2: #1f4d3a;          /* primary hover */
  --pa-gold: #a86a12;            /* accent */
  --pa-ok: #1f4d3a;
  --pa-warn: #a86a12;
  --pa-err: #a86a12;
  /* type */
  --pa-display: "Fraunces", Georgia, serif;
  --pa-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pa-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --pa-fs-hero: clamp(2.4rem, 1.4rem + 5vw, 5.2rem);
  --pa-fs-h2: clamp(1.7rem, 1.2rem + 2.2vw, 3rem);
  --pa-fs-h3: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --pa-fs-lead: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  /* space + shape */
  --pa-s1: .25rem; --pa-s2: .5rem; --pa-s3: .75rem; --pa-s4: 1rem;
  --pa-s5: 1.5rem; --pa-s6: 2rem; --pa-s7: 3rem; --pa-s8: 5rem;
  --pa-sp-section: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --pa-maxw: 1200px;
  --pa-r-sm: 6px; --pa-r-md: 12px; --pa-r-lg: 22px; --pa-r-pill: 999px;
  --pa-sh-sm: 0 1px 2px rgb(0 0 0 / .06);
  --pa-sh-md: 0 8px 24px -8px rgb(0 0 0 / .14);
  --pa-sh-lg: 0 24px 60px -20px rgb(0 0 0 / .25);
  --pa-nav-h: 68px;
  /* motion */
  --pa-ease-expo: cubic-bezier(.16, 1, .3, 1);
  --pa-reveal-ms: 600ms;
  --pa-stagger-ms: 80ms;
  --pa-travel: 24px;              /* reveal / stagger rise */
  --pa-lift: -4px;                /* card hover rise */
  --pa-press: .97;                /* CTA press scale */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--pa-bg); color: var(--pa-txt);
  font: 400 1rem/1.6 var(--pa-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--pa-display); line-height: 1.08; margin: 0 0 var(--pa-s4); letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: var(--pa-fs-hero); }
h2 { font-size: var(--pa-fs-h2); }
h3 { font-size: var(--pa-fs-h3); }
p { margin: 0 0 var(--pa-s4); }
.lead { font-size: var(--pa-fs-lead); color: var(--pa-txt-dim); }
.eyebrow { font: 600 .78rem/1.2 var(--pa-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pa-gold); margin-bottom: var(--pa-s3); display: inline-block; }
.dim { color: var(--pa-txt-dim); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pa-s4); top: var(--pa-s4); z-index: 100; background: var(--pa-panel); padding: var(--pa-s2) var(--pa-s4); border-radius: var(--pa-r-sm); }
:focus-visible { outline: 3px solid var(--pa-gold); outline-offset: 3px; }

/* layout primitives */
.wrap { width: min(100% - 2 * var(--pa-s5), var(--pa-maxw)); margin-inline: auto; }
.section { padding-block: var(--pa-sp-section); }
.section--tight { padding-block: calc(var(--pa-sp-section) * .55); }
.section--alt { background: var(--pa-bg-2); }
.section--ink { background: var(--pa-ink); color: var(--pa-paper); }
.section--ink .dim, .section--ink .lead { color: color-mix(in srgb, var(--pa-paper) 72%, transparent); }
.stack > * + * { margin-top: var(--pa-s4); }
.grid { display: grid; gap: var(--pa-s5); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--pa-s6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--rev > :first-child { order: 2; } }
.section-head { max-width: 46rem; margin-bottom: var(--pa-s7); }
.section-head--center { margin-inline: auto; text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--pa-s2); min-height: 48px; padding: 0 var(--pa-s5); border-radius: var(--pa-r-pill); font: 600 .98rem/1 var(--pa-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--pa-ease-expo), background .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pa-blue); color: var(--pa-paper); box-shadow: var(--pa-sh-md); }
.btn--primary:hover { background: var(--pa-blue-2); }
.btn--ghost { border-color: var(--pa-line-2); color: var(--pa-txt); background: transparent; }
.btn--accent { background: var(--pa-gold); color: var(--pa-ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--pa-s3); }

/* nav: max 4 items + 1 CTA; drawer below 900px */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--pa-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--pa-line); }
.nav__in { height: var(--pa-nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--pa-s4); }
.nav__logo { display: flex; align-items: center; gap: var(--pa-s2); font: 700 1.15rem/1 var(--pa-display); text-decoration: none; }
.nav__links { display: none; gap: var(--pa-s5); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: var(--pa-fs-base); color: var(--pa-txt-dim); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--pa-txt); }
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; border: 1px solid var(--pa-line); border-radius: var(--pa-r-md); background: var(--pa-panel); display: grid; place-items: center; cursor: pointer; }
.nav__drawer { display: none; border-top: 1px solid var(--pa-line); padding: var(--pa-s4) 0 var(--pa-s5); }
.nav__drawer a { display: block; padding: var(--pa-s3) 0; text-decoration: none; font-size: var(--pa-fs-md); font-weight: 500; border-bottom: 1px solid var(--pa-line); }
.nav__drawer .btn { margin-top: var(--pa-s4); width: 100%; }
.nav[data-open="true"] .nav__drawer { display: block; }
@media (min-width: 900px) { .nav__links, .nav__cta { display: flex; } .nav__toggle, .nav__drawer { display: none !important; } }

/* media slot: art-directed placeholder until P6 supplies real imagery */
.media { position: relative; overflow: hidden; border-radius: var(--pa-r-lg); background: linear-gradient(135deg, var(--m1, var(--pa-blue)), var(--m2, var(--pa-gold))); aspect-ratio: var(--ar, 4 / 3); isolation: isolate; }
.media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 10%, rgb(255 255 255 / .22), transparent 55%), radial-gradient(90% 70% at 10% 100%, rgb(0 0 0 / .25), transparent 60%); z-index: 0; }
.media > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .9; }
.media__cap { position: absolute; left: var(--pa-s3); bottom: var(--pa-s3); z-index: 2; font: 500 .72rem/1.3 var(--pa-mono); color: #ffffff; background: rgb(0 0 0 / .38); padding: 4px 8px; border-radius: var(--pa-r-sm); max-width: 80%; }
/* directional scrim (canon: never a full sheet) */
.scrim-l::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(0 0 0 / .55), transparent 62%); }
.scrim-b::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(0 0 0 / .6), transparent 58%); }

/* cards */
.card { background: var(--pa-panel); border: 1px solid var(--pa-line); border-radius: var(--pa-r-lg); padding: var(--pa-s5); }
.card--flush { padding: 0; overflow: hidden; }
.card__body { padding: var(--pa-s5); }
.lift { transition: transform .35s var(--pa-ease-expo), box-shadow .35s; }
.lift:hover { transform: translateY(var(--pa-lift)); box-shadow: var(--pa-sh-lg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pa-r-pill); background: var(--pa-bg-2); border: 1px solid var(--pa-line); font-size: var(--pa-fs-xs); font-weight: 600; }
.chip--ok { color: var(--pa-ok); }
.stars { color: var(--pa-gold); letter-spacing: 2px; }
.rule { height: 1px; background: var(--pa-line); border: 0; margin: var(--pa-s6) 0; }

/* rows: price list / menu / timetable share one row anatomy */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: grid; grid-template-columns: 1fr auto; gap: var(--pa-s2) var(--pa-s4); padding: var(--pa-s4) 0; border-bottom: 1px dashed var(--pa-line-2); }
.row-list .row__title { font-weight: 600; }
.row-list .row__meta { grid-column: 1 / -1; color: var(--pa-txt-dim); font-size: var(--pa-fs-base); margin-top: -6px; }
.row-list .row__price { font: 600 1rem/1.4 var(--pa-display); white-space: nowrap; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: var(--pa-s4); }
.field label { font-weight: 600; font-size: var(--pa-fs-sm); }
.field input, .field select, .field textarea { min-height: 48px; padding: 12px 14px; border-radius: var(--pa-r-md); border: 1.5px solid var(--pa-line-2); background: var(--pa-panel); font: inherit; color: var(--pa-txt); }
.field textarea { min-height: 120px; }

/* sticky mobile action bar (call / book) */
.actionbar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: var(--pa-s2); padding: var(--pa-s2) var(--pa-s3) calc(var(--pa-s2) + env(safe-area-inset-bottom)); background: var(--pa-panel); border-top: 1px solid var(--pa-line); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .2); }
@media (min-width: 900px) { .actionbar { display: none; } }
body.has-actionbar { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-actionbar { padding-bottom: 0; } }

/* footer: logo is the home link (canon 2026-10-07) */
.footer { background: var(--pa-ink); color: var(--pa-paper); padding: var(--pa-s8) 0 var(--pa-s6); }
.footer a { text-decoration: none; color: color-mix(in srgb, var(--pa-paper) 75%, transparent); }
.footer a:hover { color: var(--pa-paper); }
.footer__grid { display: grid; gap: var(--pa-s6); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer h4 { font: 600 .8rem/1 var(--pa-body); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--pa-paper) 55%, transparent); margin-bottom: var(--pa-s4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pa-s2); }
.footer__base { margin-top: var(--pa-s7); padding-top: var(--pa-s5); border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; gap: var(--pa-s4); justify-content: space-between; font-size: var(--pa-fs-sm); color: color-mix(in srgb, var(--pa-paper) 55%, transparent); }

/* motion presets: reveal | stagger | count | parallax | lift (data-motion) */
[data-motion~="reveal"], [data-motion~="stagger"] > * { opacity: 0; transform: translateY(var(--pa-travel)); transition: opacity var(--pa-reveal-ms) var(--pa-ease-expo), transform var(--pa-reveal-ms) var(--pa-ease-expo); }
[data-motion~="reveal"].is-in, [data-motion~="stagger"].is-in > * { opacity: 1; transform: none; }
[data-motion~="stagger"].is-in > *:nth-child(2) { transition-delay: calc(var(--pa-stagger-ms) * 1); }
[data-motion~="stagger"].is-in > *:nth-child(3) { transition-delay: calc(var(--pa-stagger-ms) * 2); }
[data-motion~="stagger"].is-in > *:nth-child(4) { transition-delay: calc(var(--pa-stagger-ms) * 3); }
[data-motion~="stagger"].is-in > *:nth-child(5) { transition-delay: calc(var(--pa-stagger-ms) * 4); }
[data-motion~="stagger"].is-in > *:nth-child(n+6) { transition-delay: calc(var(--pa-stagger-ms) * 5); }
[data-motion~="parallax"] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-motion~="reveal"], [data-motion~="stagger"] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .lift:hover { transform: none; }
}
/* no-JS safety: content is never hidden without the observer */
html:not(.js) [data-motion~="reveal"], html:not(.js) [data-motion~="stagger"] > * { opacity: 1; transform: none; }

/* ===== v2 (2026-10-08): hero modes, real media, type refinements ===== */
/* real imagery inside a media slot: <div class="media"><img ...></div>; the gradient stays as the loading ground */
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media > img + .media__cap, .media > video + .media__cap { display: none; } /* caption is the shot brief; hidden once real media is present */
.media--real::after { display: none; }

/* hero modes — data-hero="bleed-loop" | "bleed-still" | "framed" on the hero section */
.hero-bleed { position: relative; min-height: min(92svh, 940px); display: grid; align-items: end; color: #ffffff; isolation: isolate; overflow: hidden; }
.hero-bleed > .hero-bleed__media { position: absolute; inset: 0; z-index: -1; }
.hero-bleed > .hero-bleed__media img, .hero-bleed > .hero-bleed__media video { width: 100%; height: 100%; object-fit: cover; }
.hero-bleed > .hero-bleed__media > img, .hero-bleed > .hero-bleed__media > video { position: absolute; inset: 0; }
.hero-bleed > .hero-bleed__media > video { z-index: 1; } /* the loop plays over its own poster still; if video can't play (reduced motion, no codec) the still remains */
.hero-bleed > .hero-bleed__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--hero-scrim, linear-gradient(0deg, rgb(0 0 0 / .82) 0%, rgb(0 0 0 / .56) 40%, rgb(0 0 0 / .22) 66%, transparent 86%)); }
.hero-bleed--left > .hero-bleed__media::after { background: var(--hero-scrim, linear-gradient(90deg, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .6) 34%, rgb(0 0 0 / .25) 56%, transparent 76%)); }
@media (max-width: 899px) { .hero-bleed > .hero-bleed__media::after { background: linear-gradient(0deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .66) 45%, rgb(0 0 0 / .42) 75%, rgb(0 0 0 / .3) 100%) !important; } } /* phones: text spans the full width, so the scrim covers the whole copy block */
.hero-bleed__in { padding-block: calc(var(--pa-nav-h) + var(--pa-s7)) var(--pa-s7); }
.hero-bleed h1, .hero-bleed .lead { color: #ffffff; text-wrap: balance; }
.hero-bleed .lead { color: rgb(255 255 255 / .86); max-width: 38rem; }
.nav--over { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.nav--over .nav__logo, .nav--over .nav__links a { color: #ffffff; }
.nav--over .nav__toggle { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); color: #ffffff; }
@media (prefers-reduced-motion: reduce) { .hero-bleed video { display: none; } }

/* type refinements */
h1, h2, h3, .eyebrow { text-wrap: balance; font-optical-sizing: auto; }
p, li { text-wrap: pretty; hanging-punctuation: first; }
.num, .row__price, [data-tabular] { font-variant-numeric: tabular-nums lining-nums; }
.kicker { font: 600 .75rem/1.2 var(--pa-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pa-txt-dim); }
.measure { max-width: 64ch; }

/* =====================================================================
   MOTION CANON v2 (2026-10-09) — data-motion is a token list: "reveal clip-reveal".
   Animates ONLY transform / opacity / clip-path / filter. html.st = scroll timelines supported
   (set by base.js); otherwise the IntersectionObserver / scroll-listener fallback applies.
   Mirrors the React fx-* layer: same ease, 600ms reveal, 80ms stagger, 24px travel.
   ===================================================================== */
:root { --pa-blur-ms: 700ms; --pa-blur-stagger: 40ms; --pa-blur-px: 8px; --pa-micro-ms: 300ms; --pa-hero-ms: 1400ms; --pa-hero-scale: 1.08; --pa-seq-ms: 720ms; --pa-seq-step: 120ms; --pa-seq-travel: 14px; }

/* 1 · scroll-parallax — hero media drifts down 8% of its own height over the first viewport of scroll */
@keyframes pa-px { to { transform: translate3d(0, var(--pa-px, 8%), 0); } } /* --pa-px: a format may slow the drift */
[data-motion~="scroll-parallax"] { will-change: transform; }
.hero-bleed > .hero-bleed__media[data-motion~="scroll-parallax"] { top: -9%; } /* 9% of overscan so the drift never exposes a gap */
html.st [data-motion~="scroll-parallax"] { animation: pa-px linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
html:not(.st) [data-motion~="scroll-parallax"].px-js { transition: opacity var(--pa-reveal-ms) var(--pa-ease-expo); }
/* parallax + reveal on one element: the scroll timeline owns transform, reveal keeps its fade */
html.st [data-motion~="scroll-parallax"][data-motion~="reveal"] { transition: opacity var(--pa-reveal-ms) var(--pa-ease-expo); }

/* 2 · clip-reveal — mask opens (clip-path inset -> 0) while the media inside settles 1.06 -> 1 */
@keyframes pa-clip { from { clip-path: inset(10% 6% 10% 6%); } to { clip-path: inset(0 0 0 0); } }
@keyframes pa-clip-img { from { clip-path: inset(10% 6% 10% 6%); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes pa-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
html.st [data-motion~="clip-reveal"] { animation: pa-clip cubic-bezier(.16, 1, .3, 1) backwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
html.st img[data-motion~="clip-reveal"], html.st video[data-motion~="clip-reveal"] { animation-name: pa-clip-img; }
html.st [data-motion~="clip-reveal"] > img, html.st [data-motion~="clip-reveal"] > svg, html.st [data-motion~="clip-reveal"] > video,
html.st [data-motion~="clip-reveal"] > picture > img { animation: pa-settle cubic-bezier(.16, 1, .3, 1) backwards; animation-timeline: view(block); animation-range: entry 0% entry 60%; }
/* the clipped element's own children must not be re-clipped by the timeline of a nested clip-reveal */
html.js:not(.st) [data-motion~="clip-reveal"]:not(.is-in) { clip-path: inset(10% 6% 10% 6%); }
html.js:not(.st) [data-motion~="clip-reveal"] { transition: clip-path var(--pa-reveal-ms) var(--pa-ease-expo); }
html.js:not(.st) [data-motion~="clip-reveal"].is-in { clip-path: inset(0 0 0 0); }
html.js:not(.st) [data-motion~="clip-reveal"] > img, html.js:not(.st) [data-motion~="clip-reveal"] > svg, html.js:not(.st) [data-motion~="clip-reveal"] > video { transition: transform var(--pa-reveal-ms) var(--pa-ease-expo); transform: scale(1.06); }
html.js:not(.st) [data-motion~="clip-reveal"].is-in > img, html.js:not(.st) [data-motion~="clip-reveal"].is-in > svg, html.js:not(.st) [data-motion~="clip-reveal"].is-in > video { transform: none; }

/* 3 · blur-text — words (inline spans made by base.js) clear from blur(8px)+opacity, 40ms apart, on load.
   Pure inline: no display change, no layout. (React dropped blur for non-composited warnings; here it is
   confined to the one hero h1, a handful of spans, so the cost is bounded.) */
@keyframes pa-blur { from { opacity: 0; filter: blur(var(--pa-blur-px)); } to { opacity: 1; filter: blur(0); } }
[data-motion~="blur-text"] bt-w { animation: pa-blur var(--pa-blur-ms) var(--pa-ease-expo) backwards; animation-delay: calc(var(--i, 0) * var(--pa-blur-stagger) + 60ms); }

[data-motion~="blur-text"][data-bt="whole"] { animation: pa-blur var(--pa-blur-ms) var(--pa-ease-expo) 60ms backwards; }

/* 4 · line-reveal — a rule draws left -> right with scaleX (never stroke-dashoffset) */
.rule-draw { display: block; height: 1px; width: min(100% - 2 * var(--pa-s5), var(--pa-maxw)); margin: var(--pa-s5) auto 0; background: color-mix(in srgb, currentColor 22%, transparent); transform-origin: 0 50%; border: 0; }
@keyframes pa-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[data-motion~="line-reveal"] { transform-origin: 0 50%; }
html.st [data-motion~="line-reveal"] { animation: pa-line cubic-bezier(.16, 1, .3, 1) backwards; animation-timeline: view(); animation-range: entry 10% entry 90%; }
html.js:not(.st) [data-motion~="line-reveal"] { transition: transform 900ms var(--pa-ease-expo); }
html.js:not(.st) [data-motion~="line-reveal"]:not(.is-in) { transform: scaleX(0); }

/* 5 · marquee — doubled track, translateX(-50%) loop, pauses on hover/focus; mask fades the edges */
@keyframes pa-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq { overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #141b24 6%, #141b24 94%, transparent); mask-image: linear-gradient(90deg, transparent, #141b24 6%, #141b24 94%, transparent); }
[data-motion~="marquee"] { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; max-width: none !important; gap: var(--pa-s6) !important; margin: 0; padding: 0; list-style: none; }
[data-motion~="marquee"] > * { flex: none; max-width: 22rem; white-space: normal; }
[data-motion~="marquee"][data-mq-ready] { will-change: transform; animation: pa-mq var(--mq-dur, 40s) linear infinite; }
.mq:hover > [data-motion~="marquee"], .mq:focus-within > [data-motion~="marquee"] { animation-play-state: paused; }
/* before the clone exists (or without JS) the row simply wraps inside the page width */
html:not(.js) [data-motion~="marquee"] { flex-wrap: wrap !important; width: auto !important; }

/* 6 · tilt — JS writes inline transform (<=6deg) only on hover+fine-pointer devices */
[data-motion~="tilt"] { transform-style: preserve-3d; }
.tilt-live { transition: transform var(--pa-micro-ms) var(--pa-ease-expo), opacity var(--pa-reveal-ms) var(--pa-ease-expo) !important; }

/* 7 · spotlight — pointer-follow radial highlight on dark cards (mirrors .fx-spotlight, 240px circle) */
[data-motion~="spotlight"] { position: relative; }
@media (any-hover: hover) and (any-pointer: fine) {
  [data-motion~="spotlight"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgb(255 255 255 / .10), transparent 70%);
    opacity: 0; transition: opacity var(--pa-micro-ms) ease; }
  [data-motion~="spotlight"][data-active="true"]::after { opacity: 1; }
}

/* 8 · pin — the stage column sticks (>=900px, two-column layouts only); steps lift from .4 to full as they arrive.
   Highlight uses filter:opacity() so it never fights a stagger/reveal child's own opacity. Adds no page height. */
@keyframes pa-pin { from { filter: opacity(.4); } to { filter: opacity(1); } }
@media (min-width: 900px) { [data-pin-stage] { position: sticky; top: calc(var(--pa-nav-h) + var(--pa-s5)); align-self: start; } }
html.st [data-motion~="pin"] > * { animation: pa-pin linear backwards; animation-timeline: view(); animation-range: entry 15% cover 40%; }
html.js:not(.st) [data-motion~="pin"] > * { transition: filter 400ms var(--pa-ease-expo); }
html.js:not(.st) [data-motion~="pin"] > *:not(.pin-on) { filter: opacity(.4); }

/* 9 · progress — 3px reading bar on inner pages, a body pseudo (no DOM added), scaleX only */
@keyframes pa-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
body[data-motion~="progress"]::before { content: ""; position: fixed; z-index: 60; left: 0; top: 0; width: 100%; height: 3px; background: var(--pa-gold); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); pointer-events: none; }
html.st body[data-motion~="progress"]::before { transform: none; animation: pa-prog linear both; animation-timeline: scroll(root block); }

/* 9b · counting figures never wrap: a figure that wraps at its thousands space in one state and not in the other re-flows its strip
   mid-count (plumber "9 400+" in editorial: 0.042 CLS). The width may grow; the line count may not. */
[data-motion~="count"], [data-motion~="count-auto"] { white-space: nowrap; }

/* 9c · hero-seq — the hero text block enters as a sequence: eyebrow, h1, lede, CTAs, facts (120 ms steps). opacity/transform only,
   `backwards` fill so nothing flashes; children that carry their own preset (blur-text h1, reveal) are left to that preset. */
@keyframes pa-seq { from { opacity: 0; transform: translateY(var(--pa-seq-travel)); } }
html.js [data-motion~="hero-seq"] > :not([data-motion]) { animation: pa-seq var(--pa-seq-ms) var(--pa-ease-expo) backwards; }
html.js [data-motion~="hero-seq"] > :not([data-motion]):nth-child(2) { animation-delay: var(--pa-seq-step); }
html.js [data-motion~="hero-seq"] > :not([data-motion]):nth-child(3) { animation-delay: calc(var(--pa-seq-step) * 2); }
html.js [data-motion~="hero-seq"] > :not([data-motion]):nth-child(4) { animation-delay: calc(var(--pa-seq-step) * 3); }
html.js [data-motion~="hero-seq"] > :not([data-motion]):nth-child(5) { animation-delay: calc(var(--pa-seq-step) * 4); }
html.js [data-motion~="hero-seq"] > :not([data-motion]):nth-child(n+6) { animation-delay: calc(var(--pa-seq-step) * 5); }
html.js [data-motion~="hero-seq"] > [data-motion~="blur-text"] bt-w { animation-delay: calc(var(--i, 0) * var(--pa-blur-stagger) + var(--pa-seq-step) * 1.5); }   /* the h1 words start after the eyebrow */
@media (prefers-reduced-motion: reduce) { html.js [data-motion~="hero-seq"] > * { animation: none !important; } }

/* 10 · hero-in — media settles 1.08 -> 1 on load; the loop video fades in over its still */
@keyframes pa-hero-in { from { transform: scale(var(--pa-hero-scale)); } to { transform: scale(1); } }
@keyframes pa-hero-vid { from { opacity: 0; transform: scale(var(--pa-hero-scale)); } to { opacity: 1; transform: scale(1); } }
[data-motion~="hero-in"] > img, [data-motion~="hero-in"] > svg { animation: pa-hero-in var(--pa-hero-ms) var(--pa-ease-expo) backwards; }
[data-motion~="hero-in"] > video { animation: pa-hero-vid var(--pa-hero-ms) var(--pa-ease-expo) calc(var(--pa-hero-ms) / 2) backwards; }

/* reduced motion: every preset renders its settled end state, nothing runs */
@media (prefers-reduced-motion: reduce) {
  [data-motion~="scroll-parallax"], [data-motion~="clip-reveal"], [data-motion~="clip-reveal"] > *, [data-motion~="line-reveal"], [data-motion~="pin"] > *,
  [data-motion~="hero-in"] > *, [data-motion~="blur-text"] bt-w, [data-motion~="blur-text"][data-bt="whole"], [data-motion~="marquee"], .mq-set { animation: none !important; transition: none !important; }
  [data-motion~="clip-reveal"] { clip-path: none !important; }
  [data-motion~="pin"] > * { filter: none !important; }
  /* marquee: static doubled row, scrollable by hand */
  .mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  [data-motion~="marquee"] { transform: none !important; will-change: auto; }
  body[data-motion~="progress"]::before { display: none; }
  [data-motion~="spotlight"]::after { display: none; }
  [data-motion~="scroll-parallax"] { will-change: auto; }
  [data-motion~="blur-text"].bt-defer bt-w, [data-motion~="blur-text"].bt-defer[data-bt="whole"] { animation: none !important; }
  [data-meter]::after { animation: none !important; transform: scaleX(var(--meter, 0)) !important; }
  [data-motion~="lift"]:hover { transform: none !important; }
}
/* no-JS: nothing may stay hidden */
html:not(.js) [data-motion~="clip-reveal"] { clip-path: none; }
html:not(.js) [data-motion~="pin"] > * { filter: none; }

/* ===== Motion v3 (2026-10-10): count-auto, lift, meter, deferred blur-text ===== */
/* count-auto: JS swaps the digits while counting; tabular figures keep the box from jittering */
/* (no font-variant change at load: switching to tabular figures after first paint re-flowed price rows and cost CLS; the JS width lock handles jitter) */

/* lift — items rise on hover (hover devices only). Same transform as .lift; delay cleared so the hover never lags the stagger */
.lift:hover, [data-motion~="lift"]:hover { transition-delay: 0ms; }
@media (any-hover: hover) {
  [data-motion~="lift"] { transition-property: opacity, transform, box-shadow; }
  [data-motion~="lift"]:hover { transform: translateY(var(--pa-lift)); box-shadow: var(--pa-sh-lg); }
}

/* blur-text below the hero: hold the from-state until the heading is in view (base.js adds bt-go) */
[data-motion~="blur-text"].bt-defer:not(.bt-go) bt-w, [data-motion~="blur-text"][data-bt="whole"].bt-defer:not(.bt-go) { animation-play-state: paused; }

/* nested hero media: the settle (scale 1.08) and drift must stay inside its own frame */
[data-fmt="hero-media"][data-motion~="hero-in"] { overflow: clip; }

/* meter — authoring hook for future packs: <i data-meter="0.72"> draws a bar with scaleX (no content, no layout) */
@keyframes pa-meter { from { transform: scaleX(0); } to { transform: scaleX(var(--meter, 0)); } }
[data-meter] { position: relative; }
[data-meter]::after { content: ""; display: block; height: 4px; margin-top: .4em; border-radius: 99px; background: var(--meter-color, var(--pa-gold)); transform-origin: 0 50%; transform: scaleX(var(--meter, 0)); }
html.st [data-meter]::after { animation: pa-meter cubic-bezier(.16, 1, .3, 1) backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
/* v12.5 — a format's runtime passes (live columns, ground guard, fit, the Futuristic ground) restructure the page once its sheet
   has loaded; the body stays hidden until they have run (base.js sets data-fmt-ready), so nothing visibly jumps (CLS). A 2.5 s
   CSS fallback reveals the page even if the script never runs. Default pages carry no data-format and are untouched. */
html[data-format]:not([data-format="default"]):not([data-fmt-ready]) body { visibility: hidden; animation: pa-fmt-reveal 0s linear 2.5s forwards; }
@keyframes pa-fmt-reveal { to { visibility: visible; } }
/* v12.5 — legibility: a hero eyebrow set in an accent colour directly over a full-bleed photo/loop had 1.4–2.6:1 on bright
   frames (measured on the real pixels by photo-legibility.py); it sits on a soft dark chip so it reads on any frame */
html:not([data-format="future"]) [data-slot="hero"]:is([data-hero^="bleed"], .hero-bleed) [data-fmt="hero-text"] > .eyebrow { display: inline-block; background: rgb(10 10 12 / .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: .4em .75em; border-radius: .9em; line-height: 1.35; width: fit-content; max-width: 100%; }
/* v12.5: a full-bleed photo band capped by an authored max-height keeps its full width (aspect-ratio + max-height would shrink the width and leave a strip) */
:is(.band, [data-slot="gallery"]) > .media { width: 100%; }
/* v12.5 phone tables: a two-column price table never needs a scroll width — it wraps; a wider table keeps its scroller but shows a fade at the edge that still has columns (data-pa-more, set by base.js) */
@media (max-width: 600px) {
  table:not(:has(tr > :nth-child(3))) { min-width: 0 !important; width: 100% !important; }
  table:not(:has(tr > :nth-child(3))) :is(td, th) { white-space: normal !important; }
  [data-pa-more] { -webkit-mask-image: linear-gradient(to right, #141b24 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #141b24 calc(100% - 44px), transparent); }
}
/* v12.5: an accent-coloured display word laid straight on a hero photo carries a soft dark halo so it holds 3:1 over the light parts of the picture */
[data-slot="hero"]:is([data-hero^="bleed"], .hero-bleed) h1 :is(em, .hl, .num, span[class]) { text-shadow: 0 0 .35em rgb(0 0 0 / .55), 0 .04em .5em rgb(0 0 0 / .45); }
/* v12.7: the halo is for a light eyebrow on the dark glass panel only — on the light panel it smeared dark copy (pixel 4.0–4.3:1) */
html[data-format="future"] [data-slot="hero"] [data-fmt="hero-text"]:not([data-fmt-tone="light"]) > .eyebrow { text-shadow: 0 0 .5em rgb(0 0 0 / .6); }
/* v12.5: a breadcrumb that sits in the hero grid beside the copy and the photo takes its own full-width first row (Editorial put it under the photo) */
html[data-format]:not([data-format="default"]) [data-slot="hero"] :has(> [class*="crumb"]):has(> [data-fmt="hero-text"]) > [class*="crumb"] { grid-column: 1 / -1 !important; grid-row: 1 !important; }
html:is([data-format="editorial"], [data-format="bento"]) [data-slot="hero"] :has(> [class*="crumb"]):has(> [data-fmt="hero-text"]) > :not([class*="crumb"]) { grid-row: 2 !important; }

/* v13 — icons on every nav, footer and CTA link: an inline <svg class="pa-ic"> from the page's own set, inheriting the link's ink */
.pa-ic { width: 1em; height: 1em; flex: none; vertical-align: -.125em; margin-inline-end: .4em; color: inherit; stroke: currentColor; overflow: visible; }
/* the format sheets size/stack bare svgs inside collection items (1.5rem lead icons, display:block); an inline link icon opts out */
html svg.pa-ic { display: inline-block !important; width: 1em !important; height: 1em !important; min-width: 0 !important; margin: 0 .4em 0 0 !important; grid-column: auto !important; }
html .btn > svg.pa-ic { width: 1.15em !important; height: 1.15em !important; margin: 0 !important; }
:is(.nav__links, .footer, .footer__soc, address, .nav__drawer) a:has(> .pa-ic:first-child) { display: inline-flex; align-items: center; max-width: 100%; }
.nav__drawer a:has(> .pa-ic:first-child) { display: flex; }
.nav__links a:has(> .pa-ic:first-child) { white-space: nowrap; }
.footer li:has(> .pa-ic:first-child:not(a)) { display: flex; align-items: baseline; }
address > .pa-ic:first-child { vertical-align: -.15em; }
.footer__soc a:has(> .pa-ic:first-child) { white-space: nowrap; }
/* the address pin hangs in the gutter: formats turn address / its first line into a grid or flex box that would drop a bare svg onto its own row */
html address:has(> svg.pa-ic:first-child), html address > p:first-child:has(> svg.pa-ic:first-child) { position: relative; padding-inline-start: 1.4em; }
html address > svg.pa-ic:first-child, html address > p:first-child > svg.pa-ic:first-child { position: absolute !important; inset-inline-start: 0; top: .22em; margin: 0 !important; }

/* v13.1 — social/review links are brand icons only; the link text stays as a visually-hidden label */
.pa-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html a.pa-social { display: inline-flex !important; align-items: center; justify-content: center; position: relative; min-width: 44px; min-height: 44px; padding: 0 !important; border-radius: 50%; color: inherit; transition: opacity .15s, transform .15s; }
html a.pa-social svg.pa-ic { width: 24px !important; height: 24px !important; margin: 0 !important; stroke: currentColor; }
html a.pa-social:hover { opacity: .75; transform: translateY(-1px); }
html a.pa-social:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html :is(ul, ol, div, p, nav):has(> a.pa-social, > li > a.pa-social) { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; align-items: center; list-style: none; padding-inline-start: 0; }
html :is(ul, ol):has(> li > a.pa-social) > li { display: block !important; width: auto !important; flex: none; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
html a.pa-social { border: 0 !important; background: none !important; box-shadow: none !important; text-transform: none; }

/* v13.2 — the inlined icon sprite is never a box. The page's `img, svg, video{display:block}` is re-emitted by the format head script as
   `html[data-format] :is(img,svg,video){display:block!important}`, which beat the sprite's inline display:none and left a 150px empty band above the nav. */
html body > svg[data-pa-icons] { display: none !important; }

/* v13.4 (Paul 2026-10-20) — the closing band's photo never pushes the page sideways in Default (the
   other formats already cap it), and a footer item never runs past its column. */
[data-slot="cta_band"] :is(.media, figure):not([data-fmt="item"] *) { max-width: 100%; }
footer :is(ul, ol) > li { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* carried-over text (a post's references, a legal page's URLs) can hold a long unbroken address: it wraps, never widens the page */
[data-pa-verbatim] :is(p, li, h2, h3, h4) { overflow-wrap: anywhere; }

/* v13.5 — a nav that cannot fit its links (paNavFit in base.js) uses the menu button at any width. */
.nav.nav--tight .nav__links { display: none !important; }
.nav.nav--tighter .nav__cta { display: none !important; }
.nav.nav--tight .nav__toggle { display: grid !important; }
.nav.nav--tight[data-open="true"] .nav__drawer { display: block !important; }

/* v13.4 (2026-10-24, certify long-name pack): a client's business name can be twice the
   sample's. The name wraps and steps down a size; the mark and the menu button never shrink,
   so the header can no longer push the toggle off a 390 px screen. */
.nav .nav__in > .nav__logo, .footer .nav__logo { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.nav__logo > :is(svg, img, i, .logo-mark):first-child { flex: none; }
.footer .footer__grid > * { min-width: 0; }
.footer .nav__logo > :last-child:not(:first-child) { min-width: 0; overflow-wrap: anywhere; line-height: 1.1; white-space: normal; }
.nav .nav__in > .nav__logo > :last-child:not(:first-child) { min-width: 0; overflow-wrap: anywhere; line-height: 1.08; white-space: normal; }
.nav .nav__in > .nav__toggle, .nav .nav__in > .nav__cta { flex: none; }
@media (max-width: 520px) { nav.nav .nav__in > .nav__logo, header.nav .nav__in > .nav__logo { font-size: var(--pa-fs-md); } }

/* v13.5 rhythm: a section that follows another on the same ground (marked data-rhythm="join" in the page, measured at
   1440 by rhythm-mark.js) keeps a short top pad, so two same-coloured sections read as one gap, not two stacked. */
main > [data-rhythm="join"] { padding-top: calc(var(--pa-sp-section) * .35); }

/* =====================================================================
   MOTION ARCHETYPES (Lane B layer 1, 2026-10-24) — one tempo per brand, set as html[data-motion-archetype].
   The canon picks it at S4 from the business profile (canon-v3/motion/archetype.ts); the gallery switcher
   previews it with ?motion=<id>. Only tokens change, so every preset, reduced-motion rule and gate above
   holds for all four. No attribute = the canon default tempo (expo, 600 / 80 ms, 24 px).
   `html:root[...]` outranks a format's html[data-format] tokens: the brand owns the tempo, the format owns the layout.
   ===================================================================== */
html:root[data-motion-archetype="precise-fast"] {   /* trades, call-outs, quotes: crisp, short travel, nothing lingers */
  --pa-ease-expo: cubic-bezier(.2, .9, .25, 1); --pa-reveal-ms: 420ms; --pa-stagger-ms: 45ms; --pa-travel: 12px;
  --pa-blur-ms: 460ms; --pa-blur-stagger: 25ms; --pa-blur-px: 4px; --pa-micro-ms: 160ms;
  --pa-hero-ms: 900ms; --pa-hero-scale: 1.04; --pa-seq-ms: 480ms; --pa-seq-step: 70ms; --pa-seq-travel: 8px;
  --pa-lift: -2px; --pa-press: .98; --pa-vt-ms: 200ms; --pa-vt-travel: 0px;
}
html:root[data-motion-archetype="warm-flowing"] {   /* hospitality, wellness, appointments: soft, long, generous */
  --pa-ease-expo: cubic-bezier(.33, 1, .68, 1); --pa-reveal-ms: 820ms; --pa-stagger-ms: 110ms; --pa-travel: 28px;
  --pa-blur-ms: 900ms; --pa-blur-stagger: 55ms; --pa-blur-px: 10px; --pa-micro-ms: 380ms;
  --pa-hero-ms: 1800ms; --pa-hero-scale: 1.1; --pa-seq-ms: 900ms; --pa-seq-step: 150ms; --pa-seq-travel: 18px;
  --pa-lift: -5px; --pa-press: .97; --pa-vt-ms: 420ms; --pa-vt-travel: 14px;
}
html:root[data-motion-archetype="confident-bold"] { /* value brands, fitness, takeaways: big travel, snappy arrival */
  --pa-ease-expo: cubic-bezier(.16, 1, .3, 1); --pa-reveal-ms: 640ms; --pa-stagger-ms: 65ms; --pa-travel: 44px;
  --pa-blur-ms: 620ms; --pa-blur-stagger: 35ms; --pa-blur-px: 6px; --pa-micro-ms: 220ms;
  --pa-hero-ms: 1300ms; --pa-hero-scale: 1.14; --pa-seq-ms: 640ms; --pa-seq-step: 90ms; --pa-seq-travel: 22px;
  --pa-lift: -6px; --pa-press: .95; --pa-vt-ms: 320ms; --pa-vt-travel: 28px;
}
html:root[data-motion-archetype="calm-minimal"] {   /* premium advisory, portfolio, luxury: slow, near-still, quiet */
  --pa-ease-expo: cubic-bezier(.4, 0, .2, 1); --pa-reveal-ms: 1000ms; --pa-stagger-ms: 130ms; --pa-travel: 8px;
  --pa-blur-ms: 1100ms; --pa-blur-stagger: 60ms; --pa-blur-px: 3px; --pa-micro-ms: 420ms;
  --pa-hero-ms: 2200ms; --pa-hero-scale: 1.03; --pa-seq-ms: 1000ms; --pa-seq-step: 160ms; --pa-seq-travel: 6px;
  --pa-lift: -2px; --pa-press: .99; --pa-vt-ms: 520ms; --pa-vt-travel: 0px;
}

/* cross-document View Transitions between the site's own pages. The header and action bar are named so they hold
   still while the page beneath crossfades (and rises by --pa-vt-travel). Reduced motion: none. Save-data: base.js
   skips them (html.sd). Browsers without support navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
:root { --pa-vt-ms: 280ms; --pa-vt-travel: 10px; }
[data-slot="nav"] { view-transition-name: pa-nav; }
[data-slot="action_bar"] { view-transition-name: pa-actionbar; }
@keyframes pa-vt-out { to { opacity: 0; } }
@keyframes pa-vt-in { from { opacity: 0; transform: translateY(var(--pa-vt-travel)); } }
::view-transition-old(root) { animation: pa-vt-out calc(var(--pa-vt-ms) * .6) ease-in both; }
::view-transition-new(root) { animation: pa-vt-in var(--pa-vt-ms) var(--pa-ease-expo) both; }
::view-transition-group(pa-nav), ::view-transition-group(pa-actionbar) { animation-duration: var(--pa-vt-ms); }

/* micro-interactions: CTAs press, their icon nudges; card media eases in on hover. Hover devices only for hover;
   the press works on touch. transform only. */
.btn { transition: transform var(--pa-micro-ms) var(--pa-ease-expo), background .25s, box-shadow .25s; }
.btn > .pa-ic { transition: transform var(--pa-micro-ms) var(--pa-ease-expo); }
.btn:active { transform: scale(var(--pa-press)); transition-duration: 90ms; }
@media (any-hover: hover) {
  .btn:hover > .pa-ic { transform: translateX(2px); }
  body [data-fmt="item"] :is(.media, figure, picture) > img:not(.pa-ic) { transition: transform calc(var(--pa-micro-ms) * 2) var(--pa-ease-expo); }
  body [data-fmt="item"]:hover :is(.media, figure, picture) > img:not(.pa-ic) { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .btn:hover > .pa-ic, body [data-fmt="item"]:hover :is(.media, figure, picture) > img:not(.pa-ic) { transform: none !important; }
  .btn, .btn > .pa-ic { transition: none !important; }
}

/* save-data (html.sd, set by base.js from navigator.connection.saveData or prefers-reduced-data): no loops, no
   continuous or decorative motion; reveals still settle so nothing is hidden. */
html.sd [data-motion~="scroll-parallax"], html.sd [data-motion~="marquee"], html.sd [data-motion~="blur-text"] bt-w,
html.sd [data-motion~="blur-text"][data-bt="whole"], html.sd [data-motion~="hero-in"] > * { animation: none !important; will-change: auto; }
html.sd [data-motion~="marquee"] { transform: none !important; }
html.sd .mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }

/* hero loop contract (layer 3): <video data-loop-src="…" poster="…" muted playsinline loop width height>. The poster
   is the LCP element; base.js sets src after the page is idle, never under reduced motion or save-data. */
video[data-loop-src] { object-fit: cover; }
/* laid over the hero photo (render: .has-loop), transparent until it is actually playing, so the photo is all a
   reduced-motion, save-data or slow visitor ever sees */
.has-loop { position: relative; }
.has-loop > video[data-loop-src] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 900ms var(--pa-ease-expo); }
.has-loop > video[data-loop-src].is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce), (max-width: 899px) { .has-loop > video[data-loop-src] { display: none; } }

/* =====================================================================
   MOTION CHOREOGRAPHY v2 (Lane B, 2026-10-25) — each archetype moves differently, not just at another speed.
   Scroll-linked (html.st): content is scrubbed by the scroll position, so it flies IN as you scroll down and back OUT
   as it leaves, and reverses exactly when you scroll back up. Two animations per element: an entrance over its
   `entry` range (fill both) and an exit over its `exit` range (fill forwards only, so it never masks the entrance).
   Without scroll timelines the canon IO reveal stays (entrance only). Reduced motion: none of this runs.
   Carousels: Precise and Bold turn 3- and 4-column media card collections into swipeable snap rows on phones;
   cards scale up as they slide into the row (a view(inline) timeline). Nothing is hidden: every card stays reachable.
   ===================================================================== */
/* translate / rotate / scale (the individual transform properties), so a hover lift or a tilt, which set `transform`, still compose on top */
@keyframes pa-ch-in { from { opacity: 0; translate: var(--ch-x, 0) var(--ch-y, 0); rotate: var(--ch-r, 0deg); scale: var(--ch-s, 1); filter: blur(var(--ch-b, 0px)); clip-path: var(--ch-clip, inset(-50% -50% -50% -50%)); } }
@keyframes pa-ch-out { to { opacity: var(--ch-out-o, 1); translate: var(--ch-ox, 0) var(--ch-oy, 0); rotate: var(--ch-or, 0deg); scale: var(--ch-os, 1); } }
html.st:root[data-motion-archetype] :is([data-motion~="reveal"]:not([data-slot="hero"] *, [data-slot="hero"]), [data-motion~="stagger"]:not([data-slot="hero"] *) > *) {
  opacity: 1;
  animation: pa-ch-in linear both;
  animation-timeline: view();
  animation-range: entry calc(var(--ch-n, 0) * 6%) entry calc(min(70%, 35vh) + var(--ch-n, 0) * 6%);
}
/* The entrance ends 35vh in at the latest: a section taller than the screen used to finish only once its top was near
   the top of the screen, so the head being read mid-screen was still at 0.85 opacity (Torvane posts, VisitorEye V1). */
/* the exit is for cards and section heads only: a tall block must never fade while its lower half is still being read */
html.st:root[data-motion-archetype] :is([data-fmt="head"][data-motion~="reveal"], [data-motion~="stagger"] > [data-fmt="item"]):not([data-slot="hero"] *) {
  animation: pa-ch-in linear both, pa-ch-out linear forwards;
  animation-timeline: view(), view();
  animation-range: entry calc(var(--ch-n, 0) * 6%) entry calc(min(70%, 35vh) + var(--ch-n, 0) * 6%), exit 0% exit 100%;
}
/* the canon reveal's own from-state (translateY until .is-in) is retired here; :not(:hover) leaves room for the hover lift */
html.st:root[data-motion-archetype] :is([data-motion~="reveal"]:not([data-slot="hero"] *, [data-slot="hero"]), [data-motion~="stagger"]:not([data-slot="hero"] *) > *):not(:hover) { transform: none; }
:is([data-motion~="stagger"]) > :nth-child(2) { --ch-n: 1; } :is([data-motion~="stagger"]) > :nth-child(3) { --ch-n: 2; }
:is([data-motion~="stagger"]) > :nth-child(4) { --ch-n: 3; } :is([data-motion~="stagger"]) > :nth-child(n+5) { --ch-n: 4; }

/* Precise — snaps up from just below, exits by lifting and thinning. Tight, mechanical, nothing lingers. */
html:root[data-motion-archetype="precise-fast"] { --ch-y: 18px; --ch-s: .985; --ch-oy: -14px; --ch-out-o: .25; }
/* Warm — drifts up from deep with a soft focus pull; odd and even items travel at different depths (layered float). */
html:root[data-motion-archetype="warm-flowing"] { --ch-y: 70px; --ch-b: 6px; --ch-oy: -40px; --ch-out-o: .15; }
html:root[data-motion-archetype="warm-flowing"] [data-motion~="stagger"] > :nth-child(even) { --ch-y: 120px; --ch-oy: -70px; }
/* Bold — cards fly in from alternating sides with a tilt, and fly back out the other way as they leave. */
html:root[data-motion-archetype="confident-bold"] { --ch-y: 40px; --ch-s: .9; --ch-oy: -30px; --ch-os: .94; --ch-out-o: 0; }
html:root[data-motion-archetype="confident-bold"] [data-motion~="stagger"] > :nth-child(odd) { --ch-x: -22vw; --ch-r: -5deg; --ch-ox: 14vw; --ch-or: 3deg; }
html:root[data-motion-archetype="confident-bold"] [data-motion~="stagger"] > :nth-child(even) { --ch-x: 22vw; --ch-r: 5deg; --ch-ox: -14vw; --ch-or: -3deg; }
/* Calm — a mask wipes each block open from the bottom; as it leaves it only quietens. Almost no travel. */
html:root[data-motion-archetype="calm-minimal"] { --ch-y: 6px; --ch-clip: inset(100% 0 0 0); --ch-out-o: .35; }
/* the flying items must never widen the page */
html:root[data-motion-archetype="confident-bold"] main, html:root[data-motion-archetype="confident-bold"] [data-slot] { overflow-x: clip; }

/* carousels — 3- and 4-column media card collections become snap rows on phones (Precise and Bold); from 900 px the grid stays */
@media (max-width: 899px) {
  html:root:is([data-motion-archetype="precise-fast"], [data-motion-archetype="confident-bold"]) [data-fmt="collection"]:is([data-fmt-cols="3"], [data-fmt-cols="4"]):has(> [data-fmt="item"] img) {
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important; gap: var(--pa-s4) !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pa-s5);
    margin-inline: calc(-1 * var(--pa-s5)) !important; padding: var(--pa-s2) var(--pa-s5) var(--pa-s4) !important; scrollbar-width: none;
  }
  html:root:is([data-motion-archetype="precise-fast"], [data-motion-archetype="confident-bold"]) [data-fmt="collection"]:is([data-fmt-cols="3"], [data-fmt-cols="4"]):has(> [data-fmt="item"] img)::-webkit-scrollbar { display: none; }
  html:root:is([data-motion-archetype="precise-fast"], [data-motion-archetype="confident-bold"]) [data-fmt="collection"]:is([data-fmt-cols="3"], [data-fmt-cols="4"]):has(> [data-fmt="item"] img) > * {
    flex: 0 0 min(82%, 340px) !important; max-width: none !important; scroll-snap-align: start;
  }
  @keyframes pa-car { from { scale: .88; opacity: .55; } }
  html.st:root:is([data-motion-archetype="precise-fast"], [data-motion-archetype="confident-bold"]) [data-fmt="collection"]:is([data-fmt-cols="3"], [data-fmt-cols="4"]):has(> [data-fmt="item"] img) > * {
    animation: pa-car linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:root[data-motion-archetype] :is([data-motion~="reveal"], [data-motion~="stagger"] > *, [data-fmt="collection"] > *) { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}
html.sd:root[data-motion-archetype] :is([data-motion~="reveal"], [data-motion~="stagger"] > *) { animation: none !important; opacity: 1; transform: none; }
