/* VOICE: quiet, private, gallery-like — the photographs do the talking
   IDEA: a contact sheet of family photographs laid at an angle on a dark table
   PICTURE: tilted mosaic of rounded prints drifting slowly, full bleed
   COLOUR and TYPE: near-black ground #0c0d0c, warm paper #e9dfcf pill; Instrument Sans + Instrument Serif wordmark
   LAYOUT: full-screen mosaic, slim top bar with mark left and "Log in" right, nothing else */

:root{--ink:#f1ece4;--ground:#0c0d0c;--paper:#e9dfcf}
html,body{height:100%}
body.chm{margin:0;background:var(--ground);color:var(--ink);font:16px/1.5 "Instrument Sans",system-ui,sans-serif;overflow:hidden}
.chm *{box-sizing:border-box;min-width:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.topbar{position:fixed;z-index:10;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:clamp(16px,3vw,32px) clamp(18px,4vw,52px);pointer-events:none}
.topbar>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font:italic 400 26px/1 "Instrument Serif",Georgia,serif;letter-spacing:.01em}
.brand .mark{width:28px;height:28px}
.pill{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 22px;border-radius:999px;background:var(--paper);color:#151515;font:500 15px/1 "Instrument Sans",sans-serif;text-decoration:none;box-shadow:0 8px 30px rgba(0,0,0,.35);transition:transform .2s,background .2s}
.pill:hover{background:#fff;transform:translateY(-1px)}
.pill:focus-visible,.brand:focus-visible{outline:2px solid var(--paper);outline-offset:4px}

.stage{position:fixed;inset:0}
.mosaic{position:absolute;inset:0;overflow:hidden}
.mosaic::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(12,13,12,.75),transparent 18%,transparent 78%,rgba(12,13,12,.85)),
             radial-gradient(120% 90% at 50% 50%,transparent 55%,rgba(12,13,12,.7))}
.mosaic-plane{position:absolute;left:50%;top:50%;width:190vmax;transform:translate(-50%,-50%) rotate(-13deg);display:flex;flex-direction:column;gap:clamp(10px,1.4vw,20px)}
.mosaic-row{display:flex;gap:clamp(10px,1.4vw,20px);width:max-content;animation:drift 120s linear infinite}
.mosaic-row:nth-child(even){animation-direction:reverse;margin-left:-14vmax}
.mosaic-card{flex:none;width:clamp(220px,26vmax,420px);aspect-ratio:3/2;border-radius:clamp(10px,1vw,16px);overflow:hidden;background:#1b1c1a;box-shadow:0 18px 40px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.06)}
.mosaic-card img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.9) contrast(1.02);opacity:0;transition:opacity 1.2s}
.mosaic-card img.in{opacity:1}
@keyframes drift{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.mosaic-row{animation:none}}
@media (max-width:600px){.brand span{display:none}}
