/*
 * adCartoon.com public site: "Ink & Paint" system — foundation.
 * Loaded on public pages, auth and error pages (body[data-skin="poster"]; the attribute name is kept so every page and
 * studio.css remap keep working), after studio.css.
 * Owns: fonts, tokens, the remap of studio.css tokens so shared components (buttons, alerts, fields, icons)
 * take the site look, base type, buttons, links, focus, chapters (full colour fields), pictures and motion helpers.
 * Page layouts live in frame.css (header, footer) and one file per page group. Effects: site/fx.js (see section 9).
 *
 * Direction: a cartoon studio's title card. Night navy (the logo's ink), cel white, and three paint pots — sun yellow,
 * pop red, mint — next to the logo's blue. Sections are whole fields of colour. Display type is Anybody, a variable face
 * whose width axis squashes and stretches like an animated character; running text stays in Switzer.
 * Each chapter sets its own --fg, --muted and --accent, so components read correctly on any field.
 */

/* ---------- 1. Fonts (self-hosted: Switzer, ITF Free Font License; Anybody, SIL OFL 1.1) ---------- */
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face {
  font-family: "Anybody"; src: url("/fonts/anybody-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anybody"; src: url("/fonts/anybody-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------- */
[data-skin="poster"] {
  /* Paint */
  --night: #041831;        /* the logo's navy: dark fields, ink on light */
  --night-2: #0c2549;      /* one step up on night: panels, cards */
  --night-3: #16335f;      /* two steps: hover fills on night */
  --cel: #f2f4fa;          /* cel white: the light ground */
  --paper: #ffffff;        /* cards, fields, picture mats */
  --blue: #1668ff;         /* the logo's blue */
  --blue-strong: #0b50d4;
  --sun: #ffcc1f;          /* sun yellow */
  --sun-strong: #f2b600;
  --pop: #ff4f5e;          /* pop red */
  --mint: #2ad69e;         /* mint */

  /* Roles on the default (light) ground; chapters override these */
  --bg: var(--cel);
  --surface: #e6eaf4;      /* one tone step: panels, chips */
  --surface-2: #d9dfee;    /* a second step: hover fills */
  --ink: var(--night);
  --fg: var(--ink);
  --muted: #4b5873;        /* secondary notes only; running text uses --fg */
  --line: #d3d9e8;         /* separators where structure needs one (tables, lists, fields) */

  /* The action colour on this ground (white text passes 4.5:1 on the blue) */
  --accent: var(--blue);
  --accent-strong: var(--blue-strong);
  --accent-ink: #ffffff;
  --accent-tint: #e3ecff;

  /* Legacy names still read by page stylesheets */
  --coral: var(--pop);
  --yellow: var(--sun);
  --green: var(--mint);
  --black: var(--night);
  --bone: var(--cel);
  --tint-coral: #e3ecff;
  --tint-yellow: #fff4cc;
  --tint-green: #d9f8ec;
  --tint-ink: var(--surface);

  /* Type: Anybody for display, Switzer for text. */
  --font-text: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Anybody", "Switzer", ui-sans-serif, system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);    /* 13–14px */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);          /* 16–18px */
  --step-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.5rem);        /* 18–24px */
  --step-title: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);          /* 22–32px, card and row titles */
  --step-head: clamp(2.5rem, 1.4rem + 4.6vw, 5.5rem);           /* 40–88px, section headings */
  --step-display: clamp(3rem, 1.2rem + 7.4vw, 8.5rem);          /* 48–136px, page titles */
  --stretch-display: 78%;   /* Anybody width axis at rest */
  --stretch-head: 82%;

  /* Frame */
  --max: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --inline: max(var(--pad), calc((100% - var(--max)) / 2));
  --gap: clamp(16px, 2vw, 28px);
  --chapter-y: clamp(80px, 11vw, 168px);
  --measure: 64ch;
  --header-h: 76px;
  --radius: 22px;          /* pictures and cards */
  --radius-lg: 32px;       /* big panels */
  --radius-sm: 12px;       /* fields, chips */

  /* Motion: springy, cartoon timing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);   /* overshoot and settle */
  --t-press: 120ms;
  --t-hover: 200ms;
  --t-ui: 260ms;
  --t-reveal: 820ms;
  --t-open: 600ms;
  --stagger-line: 70ms;
  --stagger-item: 80ms;

  /* Remap studio.css tokens so shared components follow the site skin. */
  --bg-app: var(--bg);
  --bg-surface: var(--paper);
  --bg-subtle: var(--surface);
  --bg-canvas: var(--night);
  --canvas-raised: var(--night-2);
  --canvas-line: var(--night-3);
  --text: var(--ink);
  --text-2: var(--muted);
  --text-inverse: #ffffff;
  --text-inverse-2: #b9c4d8;
  --action: var(--accent);
  --action-hover: var(--accent-strong);
  --action-press: var(--accent-strong);
  --action-tint: var(--accent-tint);
  --border: var(--line);
  --border-control: #a9b3c9;
  --focus: var(--ink);
  --ring: var(--night);
  --font-sans: var(--font-text);
  --r-card: var(--radius);
  --r-control: var(--radius-sm);
  --r-pop: var(--radius);
  --control-h: 50px;
}

/* ---------- 3. Base ---------- */
[data-skin="poster"] {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-skin="poster"] *, [data-skin="poster"] *::before, [data-skin="poster"] *::after { box-sizing: border-box; }
[data-skin="poster"] img { max-width: 100%; height: auto; display: block; }
[data-skin="poster"] ::selection { background: var(--sun); color: var(--night); }

/* Headings. .p-display is the page title, .p-head a section heading (both Anybody, condensed, heavy, upper case),
   .p-title a card or row title (Anybody, sentence case). */
:where([data-skin="poster"]) :is(h1, h2, h3, h4, h5, h6) { margin: 0; font-weight: 600; color: inherit; text-wrap: balance; }
.p-display, .p-head, .p-title { font-family: var(--font-display); margin: 0; }
.p-display {
  font-size: var(--step-display);
  font-weight: 860;
  font-stretch: var(--stretch-display);
  line-height: 0.88;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  max-width: 14ch;
}
.p-head {
  font-size: var(--step-head);
  font-weight: 840;
  font-stretch: var(--stretch-head);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 18ch;
}
.p-title { font-size: var(--step-title); font-weight: 760; font-stretch: 88%; line-height: 1.08; letter-spacing: -0.005em; }
.p-lead { font-size: var(--step-lead); line-height: 1.42; max-width: 46ch; margin: 0; font-weight: 400; text-wrap: pretty; }
.p-text { font-size: var(--step-body); line-height: 1.6; max-width: var(--measure); margin: 0; text-wrap: pretty; }
.p-small { font-size: var(--step-small); line-height: 1.5; color: var(--muted); margin: 0; }
.p-wrap { padding-inline: var(--inline); }
.p-stack > * + * { margin-top: 1em; }

/* Links */
:where([data-skin="poster"]) a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
/* studio.css colours every a:hover with the app action colour; on site pages links keep their colour and buttons keep their own foreground. */
:where([data-skin="poster"]) a:not(.p-btn):not(.btn):hover { color: inherit; }
[data-skin="poster"] :is(a.p-btn, a.btn):hover { color: var(--btn-fg); }
.p-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .p-link:hover { text-decoration-color: currentColor; }
}

/* The logo: navy on light grounds; .p-mark--light (or any dark chapter) swaps to /site/logo-light.svg. */
.p-mark { position: relative; z-index: 3; display: inline-flex; align-items: center; flex: none; min-height: 44px; transition: transform var(--t-ui) var(--ease-back); }
.p-mark img { display: block; width: auto; height: 34px; }
@media (max-width: 379.98px) {
  .p-mark img { height: 28px; }
}
@media (hover: hover) and (pointer: fine) {
  .p-mark:hover { transform: rotate(-3deg) scale(1.04); }
}

/* Focus: a clear ring with a small gap, in the chapter's ring colour */
[data-skin="poster"] :focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: none;
}

/* ---------- 4. Buttons: one shape (pill), chunky, with a paint-wipe hover and a label that rolls ---------- */
.p-btn,
[data-skin="poster"] .btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--btn-bg);
  --btn-wipe: var(--night);
  --btn-wipe-fg: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--step-body)/1.1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: transform var(--t-ui) var(--ease-back), background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease;
}
/* The paint wipe: a circle of the hover colour that grows from below. */
.p-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 140%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--btn-wipe);
  transform: translate(-50%, 0) scale(0);
  transition: transform 520ms var(--ease-expo);
  pointer-events: none;
}
/* The rolling label: fx.js wraps the text in .p-btn__roll; the copy below slides up on hover. */
.p-btn__roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.2; vertical-align: top; }
.p-btn__roll > span { position: relative; display: inline-block; transition: transform 420ms var(--ease-expo); }
.p-btn__roll > span::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 100%; }
.p-btn:active, [data-skin="poster"] .btn:active { transform: scale(0.96); }
.p-btn .icon, [data-skin="poster"] .btn .icon { width: 18px; height: 18px; }
/* Variants: accent (the main action on this ground), ink, line and bone (quiet secondaries) */
.p-btn--ink, [data-skin="poster"] .btn--primary { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-wipe: var(--accent); --btn-wipe-fg: var(--accent-ink); }
.p-btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.p-btn--bone, .p-btn--yellow { --btn-bg: var(--paper); --btn-fg: var(--night); --btn-bd: var(--paper); }
.p-btn--line, [data-skin="poster"] .btn:not(.btn--primary):not(.btn--plain):not(.btn--icon) { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: color-mix(in srgb, var(--fg) 40%, transparent); --btn-wipe: var(--fg); --btn-wipe-fg: var(--bg); }
[data-skin="poster"] .btn--plain { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent; padding-inline: 12px; }
[data-skin="poster"] .btn--icon { padding: 0; width: 50px; min-height: 50px; }
.p-btn--big { min-height: 60px; padding: 0 32px; font-size: var(--step-body); }
.p-btn--block, [data-skin="poster"] .btn--block { width: 100%; }
[data-skin="poster"] .btn[disabled], [data-skin="poster"] .btn[aria-disabled="true"], .p-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .p-btn:not([aria-disabled="true"]):hover { --btn-bd: var(--btn-wipe); color: var(--btn-wipe-fg); }
  [data-skin="poster"] a.p-btn:not([aria-disabled="true"]):hover { color: var(--btn-wipe-fg); }
  .p-btn:not([aria-disabled="true"]):hover::before { transform: translate(-50%, -62%) scale(1); }
  .p-btn:not([aria-disabled="true"]):hover .p-btn__roll > span { transform: translateY(-100%); }
  .p-btn--bone:hover, .p-btn--yellow:hover { --btn-wipe: var(--sun); --btn-wipe-fg: var(--night); }
  [data-skin="poster"] .btn--primary:hover { --btn-bg: var(--accent-strong); }
}
/* Arrow nudge for buttons and links that carry an icon or arrow */
@media (hover: hover) and (pointer: fine) {
  .p-btn:hover .icon { transform: translateX(3px); }
}
.p-btn .icon { transition: transform var(--t-ui) var(--ease-back); }

/* ---------- 5. Sections (chapters): whole fields of colour, content centred in the column ---------- */
.p-chapter { position: relative; padding: var(--chapter-y) var(--inline); background: var(--bg); color: var(--fg); overflow: clip; }
/* Night: the logo's navy with white text and a sun-yellow action */
[data-chapter="black"], [data-chapter="night"], .p-on-night {
  --bg: var(--night);
  --fg: #ffffff;
  --muted: #b3bfd6;
  --line: #22406d;
  --surface: var(--night-2);
  --surface-2: var(--night-3);
  --accent: var(--sun);
  --accent-strong: var(--sun-strong);
  --accent-ink: var(--night);
  --accent-tint: #2a3d24;
  --ring: var(--sun);
  --border-control: #3f5d8c;
}
/* Blue field: white text, sun action */
[data-chapter="coral"], [data-chapter="blue"] {
  --bg: var(--blue);
  --fg: #ffffff;
  --muted: #dbe6ff;
  --line: #5d93ff;
  --surface: #0f5ae6;
  --surface-2: #0b4fd0;
  --accent: var(--sun);
  --accent-strong: var(--sun-strong);
  --accent-ink: var(--night);
  --ring: var(--sun);
}
/* Sun field: night text, night action */
[data-chapter="yellow"], [data-chapter="sun"] {
  --bg: var(--sun);
  --fg: var(--night);
  --muted: #4a4220;
  --line: #e0b200;
  --surface: #ffd94f;
  --surface-2: #ffe27a;
  --accent: var(--night);
  --accent-strong: #000;
  --accent-ink: #ffffff;
  --ring: var(--night);
}
/* Mint field */
[data-chapter="green"], [data-chapter="mint"] {
  --bg: var(--mint);
  --fg: var(--night);
  --muted: #134a3a;
  --line: #1fb985;
  --surface: #4fe0b1;
  --surface-2: #74e8c2;
  --accent: var(--night);
  --accent-strong: #000;
  --accent-ink: #ffffff;
  --ring: var(--night);
}
/* Pop red field */
[data-chapter="pop"] {
  --bg: var(--pop);
  --fg: var(--night);
  --muted: #4a1a20;
  --line: #e33a49;
  --surface: #ff6b78;
  --surface-2: #ff8892;
  --accent: var(--night);
  --accent-strong: #000;
  --accent-ink: #ffffff;
  --ring: var(--night);
}
[data-chapter="bone"] { --bg: var(--cel); }
[data-chapter="paper"] { --bg: var(--paper); }
[data-chapter] { background: var(--bg); color: var(--fg); }
[data-chapter] .p-small { color: var(--muted); }
/* White cards keep night ink on every field */
:where([data-skin="poster"]) :where(.p-card, [data-ui]) {
  --bg: var(--paper);
  --fg: var(--night);
  --muted: #4b5873;
  --line: #d3d9e8;
  --surface: #e6eaf4;
  --surface-2: #d9dfee;
  --accent: var(--blue);
  --accent-strong: var(--blue-strong);
  --accent-ink: #ffffff;
  --ring: var(--night);
  --border-control: #a9b3c9;
}

/* The 12-column grid used inside every section */
.p-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 767px) {
  .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Breadcrumb on detail pages: where you are and the way back */
.p-crumbs { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.p-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.p-crumbs li + li::before { content: "/"; opacity: 0.6; }
.p-crumbs a { color: var(--muted); text-decoration: none; }
.p-crumbs a:hover { color: var(--fg); text-decoration: underline; }
.p-crumbs [aria-current="page"] { color: var(--fg); font-weight: 600; }

/* A halftone dot field, the print texture of old cartoon cels: add .p-dots to any positioned box. */
.p-dots { position: relative; }
.p-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* ---------- 6. Pictures ---------- */
.p-frame { display: block; position: relative; overflow: hidden; background: var(--surface); margin: 0; border-radius: var(--radius); }
.p-frame > img, .p-frame picture > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.p-frame--916 { aspect-ratio: 9 / 16; }
.p-frame--23 { aspect-ratio: 2 / 3; }
.p-frame--34 { aspect-ratio: 3 / 4; }
.p-frame--sq { aspect-ratio: 1; }
.p-frame--wide { aspect-ratio: 3 / 2; }
/* Linked frames zoom their picture a little on hover */
a.p-frame > img, a .p-frame > img { transition: transform 700ms var(--ease-expo); }
@media (hover: hover) and (pointer: fine) {
  a.p-frame:hover > img, a:hover .p-frame > img { transform: scale(1.05); }
}
.p-print { background: var(--paper); padding: 0; border-radius: var(--radius); }
.p-print > .p-frame, .p-print .p-frame { border-radius: var(--radius); }
.p-arch { clip-path: none; border-radius: var(--radius); }
.p-tilt-l { rotate: -2deg; }
.p-tilt-r { rotate: 2deg; }
.p-caption { font-size: var(--step-small); line-height: 1.45; margin-top: 10px; color: var(--muted); }

/* A sticker: a small rotated label with a hard offset shadow, for one real fact next to a picture. */
.p-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night);
  font: 700 var(--step-small)/1.1 var(--font-text);
  box-shadow: 4px 4px 0 var(--night);
  rotate: -4deg;
  white-space: nowrap;
}

/* ---------- 7. Lists and data ---------- */
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list--big > li { font-family: var(--font-display); font-weight: 760; font-stretch: 88%; font-size: var(--step-title); line-height: 1.15; padding-block: 0.35em; }
.p-num { font-variant-numeric: tabular-nums; }

/* Visually hidden */
.p-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Marquee band: <div class="p-marquee" data-marquee><div class="p-marquee__track">…items…</div></div>; fx.js clones and drives it. */
.p-marquee { overflow: hidden; display: flex; width: 100%; }
.p-marquee__track { display: flex; flex: none; align-items: center; gap: var(--marquee-gap, 32px); padding-right: var(--marquee-gap, 32px); will-change: transform; }

/* ---------- 8. Motion helpers (hidden states only under html.js and when motion is allowed) ---------- */
/* Headline lines (legacy markup): lines read as one heading. */
.p-lines .p-line { display: inline; }
.p-lines .p-line + .p-line::before { content: " "; }
.p-lines [data-line] { display: inline; }

/* Split headings: fx.js wraps each word of .p-display / .p-head / [data-split] in .p-w > .p-w__i.
   Words rise out of their line, stretched wide, and settle to the resting width (squash and stretch). */
.p-w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.p-w__i { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-split-ready] .p-w__i {
    transform: translateY(105%) scaleY(1.25);
    transform-origin: 50% 100%;
    font-stretch: 130%;
  }
  .js [data-split-ready].is-in .p-w__i {
    animation: p-word 900ms var(--ease-back) both;
    animation-delay: calc(var(--w, 0) * 45ms);
  }
  .js [data-load] { opacity: 0; transform: translateY(16px); animation: p-rise 640ms var(--ease-out) forwards; animation-delay: min(var(--d, 160ms), 600ms); }
  .js [data-reveal] > * { opacity: 0; transform: translateY(36px) scale(0.98); transition: opacity 640ms var(--ease-out), transform var(--t-reveal) var(--ease-back); transition-delay: calc(var(--i, 0) * var(--stagger-item)); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-pop] { opacity: 0; transform: scale(0.6) rotate(-6deg); transition: opacity 300ms ease, transform 700ms var(--ease-back); transition-delay: calc(var(--i, 0) * var(--stagger-item)); }
  .js [data-pop].is-in { opacity: 1; transform: none; }
  .js [data-shutter] { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1000ms var(--ease-expo); }
  .js [data-shutter].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes p-word {
  0%   { transform: translateY(105%) scaleY(1.25); font-stretch: 130%; }
  55%  { transform: translateY(-6%) scaleY(0.92); font-stretch: 70%; }
  100% { transform: none; font-stretch: inherit; }
}
@keyframes p-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes p-rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-skin="poster"] *, [data-skin="poster"] *::before, [data-skin="poster"] *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- 9. Effects contract (site/fx.js, loaded on every public page) ----------
   [data-split]           split a heading into words (automatic on .p-display and .p-head; opt out with data-nosplit)
   [data-reveal]          children rise in, staggered by --i; [data-pop] pops in on its own
   [data-marquee]         an endless band; speed follows scroll velocity; data-marquee-dir="-1" reverses; pauses on hover
   [data-parallax="0.2"]  moves at a fraction of scroll speed
   [data-tilt]            tilts toward the pointer (fine pointers only)
   [data-magnetic]        pulls a little toward the pointer (automatic on .p-btn--big)
   [data-count]           counts up from 0 to its text when it enters
   [data-hscroll]         a pinned section whose [data-hscroll-track] moves sideways as you scroll; writes --p (0–1)
   All of them do nothing under prefers-reduced-motion except reveal content. */
[data-tilt] { transform-style: preserve-3d; transition: transform 500ms var(--ease-out); will-change: transform; }

/* ---------- 10. Shared form fields on site pages ---------- */
[data-skin="poster"] :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], select, textarea) {
  font: 400 var(--step-body)/1.4 var(--font-text);
  color: var(--night);
  background: var(--paper);
  border: 2px solid var(--border-control);
  border-radius: var(--radius-sm);
  min-height: 50px;
  padding: 11px 14px;
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
[data-skin="poster"] :is(input, select, textarea):hover { border-color: var(--muted); }
[data-skin="poster"] :is(input, select, textarea):focus-visible { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); }
[data-skin="poster"] :is(input, select, textarea)::placeholder { color: #8390a8; }
