/* PICTURE TEXT AND MOTION — how every picture in the house carries its words and its slow movement.
   Drop-in, additive: load AFTER ivory-season.css. It adds classes (.pic, .pic-img, .pic-text, ...) and tokens (--pic-*)
   and changes nothing the kit already styles. Spec in plain words: PICTURE-TEXT-AND-MOTION.md. Specimen: picture-specimen.html.
   Extracted 20 Oct 2026 from the Luminous Bliss front end (commit bc59501): src/components/ivory/PageHero.jsx, src/components/apps/AppTile.jsx,
   src/components/ivory/Plate.jsx, src/index.css lines 105-141. His words, 20 Oct 2026: "save the way every single picture does its text and its
   movement; we want and need that as everywhere. So save it."

   THE ONE EXCEPTION, NAMED. Ivory Season law is "nothing moves that the reader did not move" (PART II.A of the charter, HOUSE-STYLE.md).
   He approved the slow photograph drift on 20 Oct 2026, FOR PICTURES ONLY. Every ambient line below carries `hl-ok` for that reason.
   Nothing else in the house drifts, pulses or loops. */

:root{
  /* ---- the veil under words (Bliss: hero rgba(12,30,22,.38) flat; tile rgba(12,16,14,.62) panel) ----
     Measured against a pure-white worst pixel, the paper line over .38 is 2.24:1 and over .62 is 4.61:1 (the gold kicker 2.93:1, the 80% line 3.60:1),
     so the house value is .78: paper 8.05:1, gold kicker 5.12:1, 80% line 5.86:1. See the .md, "Legibility". */
  --pic-veil-a: .78;                 /* the alpha under the words: the floor, never lower */
  --pic-veil-reach: 5rem;            /* how far the veil fades up above the text block */
  --pic-ink: var(--paper);           /* words over a picture are paper, never white */
  --pic-ink-soft: rgba(250, 248, 243, .88);   /* Bliss .80; .88 keeps 4.5:1 over the worst pixel at .78 */
  --pic-kicker: #E2C58A;             /* Bliss GOLD in PageHero.jsx:6; a mark, never a fill; 5.12:1 over the veil */
  /* ---- the words (Bliss: .kicker index.css:105-111; hero h2 PageHero.jsx:31; line :32; tile h3 AppTile.jsx:33; desc :43) ---- */
  --pic-kicker-size: .68rem; --pic-kicker-track: .16em;
  --pic-title-size: clamp(2.4rem, 7cqi, 4.5rem); --pic-title-lh: 1.02;
  --pic-tile-title-size: 1.875rem; --pic-tile-title-lh: 1.25;
  --pic-line-size: 1.125rem; --pic-line-size-wide: 1.25rem; --pic-line-measure: 36rem;
  --pic-pad-x: 1.5rem; --pic-pad-b: 1.75rem; --pic-pad-x-wide: 3rem; --pic-pad-b-wide: 2.5rem;
  --pic-text-max: 72rem;
  --pic-hero-h: 20rem; --pic-hero-h-wide: 34rem;        /* Bliss h-80 and md:h-[34rem] (PageHero.jsx:16), the break at 48em */
  /* ---- the motion (Bliss: kb-hero 26s, tiles 16-24s, ease-in-out, infinite alternate; entrances on the house curve) ---- */
  --pic-drift-hero: 26s;
  --pic-drift-min: 16s;               /* tile duration = 16s + ((i*7) mod 9)s, Bliss AppTile.jsx:12 */
  --pic-ease-drift: ease-in-out;     /* Bliss AppTile.jsx:21, PageHero.jsx:21 */
  --pic-glide-hero: 2200ms;           /* Bliss SLIDE, PageHero.jsx:8: the words glide in from the right, 120px */
  --pic-glide-hero-from: 120px;
  --pic-glide-tile: 1400ms;           /* Bliss AppTile.jsx:32: the title glides in from the left, 70px */
  --pic-glide-tile-from: -70px;
  --pic-fade-line: 1200ms; --pic-fade-delay: 900ms;   /* Bliss AppTile.jsx:42 */
  --pic-max-moving: 3;                /* the house cap (Bliss has none: every tile and hero moved at once); enforced by the optional script in the .md */
}

/* ---- the anatomy: a picture, its veil, its words ---- */
.pic{position:relative;overflow:hidden;isolation:isolate;margin:0;background:var(--paper-2);border-radius:var(--radius);box-shadow:var(--shadow-plate)}
.pic--hero{height:var(--pic-hero-h);border-bottom:1px solid var(--rule);box-shadow:none}     /* Bliss: the banner stays flush, no shadow (index.css:143) */
.pic--tile{aspect-ratio:4 / 5}
.pic--plate{aspect-ratio:16 / 9}
@media (min-width:48em){.pic--hero{height:var(--pic-hero-h-wide)}}

.pic-img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 0%}  /* bleed from the top: never the top of a head */

/* the words sit in the lower part and carry their own veil, so legibility never depends on the photograph beneath */
.pic-text{position:absolute;inset:auto 0 0 0;z-index:1;padding:var(--pic-veil-reach) var(--pic-pad-x) var(--pic-pad-b);color:var(--pic-ink);
  background:linear-gradient(to top, rgba(var(--veil), var(--pic-veil-a)) 0, rgba(var(--veil), var(--pic-veil-a)) calc(100% - var(--pic-veil-reach)), rgba(var(--veil), .30) calc(100% - var(--pic-veil-reach) * .45), rgba(var(--veil), 0) 100%);
  pointer-events:none}
.pic--hero .pic-text{padding-top:calc(var(--pic-veil-reach) + 1rem)}
.pic-kicker{margin:0;font-family:var(--font-sans);font-weight:500;font-size:var(--pic-kicker-size);letter-spacing:var(--pic-kicker-track);text-transform:uppercase;line-height:1.5;color:var(--pic-kicker)}
.pic-title{margin:.5rem 0 0;font-family:var(--font-serif);font-weight:300;font-size:var(--pic-title-size);line-height:var(--pic-title-lh);color:var(--pic-ink)}
.pic--tile .pic-title{margin-top:0;font-size:var(--pic-tile-title-size);line-height:var(--pic-tile-title-lh)}
.pic-line{margin:.75rem 0 0;max-width:var(--pic-line-measure);font-family:var(--font-serif);font-style:italic;font-size:var(--pic-line-size);color:var(--pic-ink-soft)}
.pic--tile .pic-line{margin-top:.5rem;font-style:normal;font-size:1rem}
@media (min-width:48em){
  .pic-text{padding-left:var(--pic-pad-x-wide);padding-right:var(--pic-pad-x-wide);padding-bottom:var(--pic-pad-b-wide)}
  .pic-line{font-size:var(--pic-line-size-wide)}
  .pic--tile .pic-text{padding-left:var(--pic-pad-x);padding-right:var(--pic-pad-x);padding-bottom:var(--pic-pad-b)}
  .pic--tile .pic-line{font-size:1rem}
}
/* on a banner wider than the text measure the words stay on the left edge of the page's own 72rem column, as Bliss's max-w-6xl mx-auto did */
@media (min-width:72em){.pic--hero .pic-text{padding-left:max(var(--pic-pad-x-wide), calc((100% - var(--pic-text-max)) / 2 + var(--pic-pad-x-wide)))}}

/* two plain verbs that rise on hover or keyboard focus (Bliss AppTile.jsx:48, which animated max-height; here opacity and transform only) */
.pic-actions{display:flex;gap:.75rem;margin:1rem 0 0;pointer-events:auto;opacity:0;transform:translateY(1rem);transition:opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease)}
.pic:hover .pic-actions,.pic:focus-within .pic-actions{opacity:1;transform:none}
.pic-actions a,.pic-actions button{min-height:44px;display:inline-flex;align-items:center;padding:0 1rem;font:500 var(--pic-kicker-size)/1 var(--font-sans);letter-spacing:var(--pic-kicker-track);text-transform:uppercase;text-decoration:none;color:var(--pic-ink);border:1px solid rgba(250,248,243,.6);background:none;cursor:pointer;border-radius:var(--radius)}
.pic-actions a:first-child{background:var(--paper);color:var(--ink);border-color:var(--paper)}   /* the one solid verb is paper, never gold */
.pic-actions :focus-visible,.pic-stretch:focus-visible{outline:1px solid var(--paper);outline-offset:3px}
.pic-stretch{position:absolute;inset:0;z-index:0}   /* the whole picture is the link (Bliss AppTile.jsx:23) */

/* a picture that is plate-and-caption: the caption sits under, never on, the photograph (Bliss Plate.jsx:14) */
.pic-figure{margin:0}
.pic-figure > figcaption{padding:var(--space-sm);font-family:var(--font-serif);font-style:italic;font-size:1rem;color:var(--text-muted);border-bottom:1px solid var(--rule)}

/* ---- the movement: a slow drift, transform only, for pictures only ---- */
.pic-drift{will-change:transform;animation-timing-function:var(--pic-ease-drift);animation-iteration-count:infinite;animation-direction:alternate}  /* hl-ok: the named exception, his word 20 Oct 2026, pictures only */
/* Bliss gave each tile its own path and its own length: path i mod 10, 16s + ((i*7) mod 9)s. Set style="--pic-i:N" on the picture. */
.pic-drift{animation-name:var(--pic-path, pic-drift-0);animation-duration:20s;animation-duration:calc(var(--pic-drift-min) + mod(var(--pic-i, 0) * 7, 9) * 1s)}  /* hl-ok: the named exception, 20 Oct 2026 */
.pic-drift--hero{animation-name:pic-drift-hero;animation-duration:var(--pic-drift-hero)}   /* hl-ok: the named exception, 20 Oct 2026 */
.pic-drift[data-path="0"]{--pic-path:pic-drift-0}.pic-drift[data-path="1"]{--pic-path:pic-drift-1}.pic-drift[data-path="2"]{--pic-path:pic-drift-2}
.pic-drift[data-path="3"]{--pic-path:pic-drift-3}.pic-drift[data-path="4"]{--pic-path:pic-drift-4}.pic-drift[data-path="5"]{--pic-path:pic-drift-5}
.pic-drift[data-path="6"]{--pic-path:pic-drift-6}.pic-drift[data-path="7"]{--pic-path:pic-drift-7}.pic-drift[data-path="8"]{--pic-path:pic-drift-8}
.pic-drift[data-path="9"]{--pic-path:pic-drift-9}
/* a hand on the picture stops it: hover, keyboard focus, or the optional script's hidden-tab and over-the-cap states (Bliss never paused) */
.pic:hover .pic-drift,.pic:focus-within .pic-drift,.pic[data-still] .pic-drift,html[data-pic-hidden] .pic-drift{animation-play-state:paused}

/* the ten paths of Bliss (index.css:128-138), in the same order and character. Three of the originals (2, 4 and 8) began at a scale too low for their
   shift and showed the tile's background at an edge for part of each cycle (measured: 1.62, 4.80 and 3.75 per cent of the width); their starting
   scales are raised here (1.05 to 1.10, 1.00 to 1.08, 1.00 to 1.07) so the picture always covers its frame. Scale 1.00 is never used (path 0 starts at 1.02 for the same reason). */
@keyframes pic-drift-0{from{transform:scale(1.02) translate(0,0)}to{transform:scale(1.18) translate(-3%,-2%)}}
@keyframes pic-drift-1{from{transform:scale(1.2) translate(3%,2%)}to{transform:scale(1.02) translate(0,0)}}
@keyframes pic-drift-2{from{transform:scale(1.10) translate(-4%,0)}to{transform:scale(1.2) translate(4%,0)}}
@keyframes pic-drift-3{from{transform:scale(1.15) translate(0,4%)}to{transform:scale(1.15) translate(0,-4%)}}
@keyframes pic-drift-4{from{transform:scale(1.08) translate(3%,-3%)}to{transform:scale(1.25) translate(-2%,3%)}}
@keyframes pic-drift-5{from{transform:scale(1.22) translate(-3%,3%)}to{transform:scale(1.05) translate(3%,-2%)}}
@keyframes pic-drift-6{from{transform:scale(1.1) rotate(-1.5deg)}to{transform:scale(1.22) rotate(1.5deg)}}
@keyframes pic-drift-7{from{transform:scale(1.2) translate(4%,0)}to{transform:scale(1.2) translate(-4%,0)}}
@keyframes pic-drift-8{from{transform:scale(1.07) translate(0,3%)}to{transform:scale(1.2) translate(0,-3%)}}
@keyframes pic-drift-9{from{transform:scale(1.25) rotate(1.5deg)}to{transform:scale(1.05) rotate(-1deg)}}
/* the banner: "a barely-there drift from left to right" (index.css:141) */
@keyframes pic-drift-hero{from{transform:scale(1.08) translateX(-1.5%)}to{transform:scale(1.14) translateX(1.5%)}}

/* ---- the words arrive: opacity and transform, once, on the house curve (Bliss used framer-motion; CSS here, so no script is needed) ---- */
.pic-text--glide-right{animation:pic-glide-right var(--pic-glide-hero) var(--ease) both}   /* hl-ok: the named exception, 20 Oct 2026 */
.pic--tile .pic-title{animation:pic-glide-left var(--pic-glide-tile) var(--ease) both}   /* hl-ok: the named exception, 20 Oct 2026 */
.pic--tile .pic-line{animation:pic-fade var(--pic-fade-line) ease both;animation-delay:var(--pic-fade-delay)}   /* hl-ok: the named exception, 20 Oct 2026 */
@keyframes pic-glide-right{from{opacity:0;transform:translateX(var(--pic-glide-hero-from))}to{opacity:1;transform:none}}
@keyframes pic-glide-left{from{opacity:0;transform:translateX(var(--pic-glide-tile-from))}to{opacity:1;transform:none}}
@keyframes pic-fade{from{opacity:0}to{opacity:1}}

/* ---- reduced motion stops all of it, and the words are simply there. Bliss honoured this nowhere. ---- */
@media (prefers-reduced-motion: reduce){
  .pic-drift,.pic-text--glide-right,.pic--tile .pic-title,.pic--tile .pic-line{animation:none !important;transform:none !important;opacity:1 !important;will-change:auto}
  .pic-actions{transition:none;opacity:1;transform:none}
}
/* no hover on a touch screen: the verbs are simply shown */
@media (hover:none){.pic-actions{opacity:1;transform:none}}
