/* rizzzi: the components.

   ONE IDEA. The three z's in the name are the sound of sleeping, so the site has two states,
   asleep and awake, and a visitor moves it between them. The two states are the two themes:
   the tokens change, the components do not. Colours below are tokens, never values (the one
   exception is the mint ripple round the status dot, which is the dot's own colour fading out).

   WHAT A STATE CHANGES BESIDES COLOUR is set once, in the block below, as plain properties that
   every component reads (--lid, --dot, which words show, how fast the ticker runs). They are
   inherited, so a part of a page can be put in the other state by giving it data-theme. */

:root, [data-theme="awake"] {
  --lid: 0;                          /* how far an eye or a lid is shut: 1 asleep, 0.5 dozing, 0 awake */
  --dot: var(--mint);                /* the status dot */
  --beat: rz-beat; --nudge: none; --breathe: none;
  --if-awake: inline; --if-asleep: none;
  --tick-unit: 5.5s;                 /* how long one run of the ticker's phrases takes to pass (slowed 2026-10-22) */
  --cut: var(--cut-zig);             /* the edge between two bands: sharp while awake */
  --rim: none;                       /* a light edge round ink shapes that would vanish on the night ground */
}
[data-theme="asleep"] {
  --lid: 1; --dot: var(--hot);
  --beat: none; --nudge: rz-nudge; --breathe: rz-breathe;
  --if-awake: none; --if-asleep: inline;
  --tick-unit: 11s;
  --cut: var(--cut-scallop);         /* and soft while asleep */
  --rim: var(--cream);
}
[data-dozing] { --lid: .5; --dot: var(--sun); --beat: none; }
:root {
  --cut-zig: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0);
  --cut-scallop: radial-gradient(circle farthest-side at 50% 100%, #000 98%, #0000);
  --gutter: clamp(var(--gutter-min), 3.6vw, var(--gutter-max));
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16px/1.45 var(--font-text); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: var(--stroke-ink) solid var(--focus); outline-offset: 4px; }
[data-when="awake"] { display: var(--if-awake); }
[data-when="asleep"] { display: var(--if-asleep); }

/* ------------------------------------------------------------------ the name */
.rz-name { font: 400 var(--sz, 46px)/1 var(--font-soft); color: var(--fg); background: none; border: 0; padding: .08em 0; cursor: pointer; display: inline-flex; align-items: baseline; text-decoration: none; }
.rz-name b { font-weight: 400; color: var(--hot); display: inline-block; }
.rz-name b.is-extra { animation: rz-pop var(--time-pop) var(--ease-spring) both; }
@keyframes rz-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ the ribbon */
.rz-ribbon { display: block; width: var(--w, 240px); aspect-ratio: 524 / 384.7; overflow: visible; }
.rz-ribbon__line { fill: var(--c, var(--hot)); }
.rz-ribbon--breathes { transform-origin: 72% 68%; animation: var(--breathe) 4.8s ease-in-out infinite; }
/* As a sticker: the same outline twice more underneath, in ink and then in white. */
.rz-ribbon__out { fill: var(--ink); stroke: var(--ink); stroke-width: 18; stroke-linejoin: round; }
.rz-ribbon__edge { fill: var(--paper); stroke: var(--paper); stroke-width: 48; stroke-linejoin: round; }
/* Its construction: the one line it is drawn along and the eight corners it turns at. */
.rz-ribbon__spine { fill: none; stroke: var(--focus); stroke-width: 2.5; stroke-linejoin: round; }
.rz-ribbon__corner { fill: var(--paper); stroke: var(--focus); stroke-width: 2.5; }
@keyframes rz-breathe { 50% { transform: scale(1.035) rotate(-.7deg); } }

/* ------------------------------------------------------------------ the ticker */
.rz-tick { background: var(--band); color: var(--on-band); overflow: hidden; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.rz-tick__run { display: inline-flex; animation: rz-run calc(var(--tick-unit) * var(--n, 8)) linear infinite; will-change: transform; }
.rz-tick__run > span { display: inline-flex; align-items: center; gap: 1.1em; padding: .56em .55em .44em; font: 400 var(--sz, 20px)/1 var(--font-loud); letter-spacing: .07em; text-transform: uppercase; }
.rz-tick b { font-weight: 400; }
.rz-tick svg { width: .72em; height: .72em; flex: none; fill: currentColor; }
.rz-tick--big { --sz: 48px; }
.rz-tick--sun { background: var(--sun); color: var(--ink); }
.rz-tick--inverse { background: var(--fg); color: var(--bg); }
.rz-tick--tilt { transform: rotate(var(--tilt-word)) scale(1.03); }
@keyframes rz-run { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ the status */
.rz-status { display: inline-flex; align-items: center; gap: .55em; margin: 0; font: 600 14px/1 var(--font-text); padding: .62em .95em .6em; border: var(--stroke-rule) solid currentColor; border-radius: var(--radius-pill); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--fg); }
.rz-status i, .rz-dot { width: .64em; height: .64em; border-radius: 50%; background: var(--dot); flex: none; animation: var(--beat) 1.6s ease-out infinite; }
.rz-status s { text-decoration: none; opacity: .45; }
@keyframes rz-beat { from { box-shadow: 0 0 0 0 rgba(25, 211, 162, .6); } to { box-shadow: 0 0 0 .7em rgba(25, 211, 162, 0); } }

/* ------------------------------------------------------------------ the headline */
/* The headline is the picture: tall capitals, as large as the screen allows. Give it --h. */
.rz-head { margin: 0; font: 400 var(--h, 165px)/.84 var(--font-loud); text-transform: uppercase; letter-spacing: .004em; padding-top: .12em; color: var(--fg); }
.rz-head .rz-line { display: block; white-space: nowrap; }
/* One word is singled out, and there are two ways to do it. The box: */
.rz-head mark, .rz-word { display: inline-block; background: var(--hot); color: var(--on-hot); padding: .07em .1em 0; margin: .05em 0 0 -.03em; border-radius: var(--radius-word); transform: rotate(var(--tilt-word)); transform-origin: 0 100%; }
.rz-head mark.is-sun, .rz-word.is-sun { background: var(--sun); color: var(--ink); }
.rz-head mark.is-band, .rz-word.is-band { background: var(--band); color: var(--on-band); }
/* The soft word: lowercase, in the name's own face, sitting among the capitals. */
.rz-head em { font: 400 .72em/1 var(--font-soft); font-style: normal; text-transform: lowercase; letter-spacing: 0; display: inline-block; transform: translateY(-.06em) rotate(var(--tilt-word)); margin: 0 .04em; }

/* The snore: z z Z rising from the singled-out word, small to large, in the name's own face and in
   the colour of the pointer. It follows the word it rises from, and is not read aloud. */
.rz-zs { position: relative; z-index: 1; display: inline-block; width: 1.06em; height: .84em; vertical-align: bottom; font: 400 1em/1 var(--font-soft); text-transform: none; letter-spacing: 0; color: var(--focus); pointer-events: none; }
.rz-zs i { position: absolute; font-style: normal; line-height: 1; }
/* Placed in shares of the snore's own box, because each z has its own size. */
.rz-zs i:nth-child(1) { left: 4%; top: 20%; font-size: .19em; transform: rotate(-8deg); }
.rz-zs i:nth-child(2) { left: 17%; top: 13%; font-size: .25em; transform: rotate(5deg); }
.rz-zs i:nth-child(3) { left: 44%; top: -30%; font-size: .5em; transform: rotate(12deg); }
/* The whole headline may lean, as it does on his covers; the boxed word then leans a little more. */
.rz-head--lean { transform: rotate(var(--tilt-word)); transform-origin: 0 100%; }

/* ------------------------------------------------------------------ the statement */
/* One large sentence in the reading face, with stickers set into the line like words. */
.rz-say { margin: 0; font: 700 min(var(--sz, 48px), 8.4vw)/1.1 var(--font-text); letter-spacing: -.02em; text-wrap: balance; max-width: 21em; color: var(--fg); }
.rz-in { display: inline-block; width: 1.08em; height: 1.08em; vertical-align: -.2em; margin: 0 .08em; transform: rotate(var(--r, -8deg)); }
.rz-in svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ------------------------------------------------------------------ the eyebrow */
.rz-eyebrow { display: inline-flex; align-items: center; gap: .55em; margin: 0; font: 400 21px/1 var(--font-loud); letter-spacing: .07em; text-transform: uppercase; padding: .5em .8em .38em; border-radius: var(--radius-pill); background: var(--fg); color: var(--bg); transform: rotate(var(--tilt-word)); }
.rz-eyebrow svg { width: .72em; height: .72em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ the button */
/* A fat pill with an ink outline and a hard shadow. The label is always capitals. */
.rz-btn { --sz: 32px; display: inline-flex; align-items: center; gap: .42em; font: 400 var(--sz)/1 var(--font-loud); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; padding: .3em .52em .2em; border: var(--stroke-ink) solid var(--ink); border-radius: var(--radius-pill); background: var(--sun); color: var(--ink); box-shadow: .13em .13em 0 var(--shadow); cursor: pointer; white-space: nowrap; transition: transform var(--time-press), box-shadow var(--time-press), background-color .2s; }
.rz-btn:hover { transform: translate(-.04em, -.04em); box-shadow: .17em .17em 0 var(--shadow); }
.rz-btn:active { transform: translate(.09em, .09em); box-shadow: .04em .04em 0 var(--shadow); }
.rz-btn--s { --sz: 21px; letter-spacing: .05em; }
.rz-btn--l { --sz: 48px; }
.rz-btn--xl { --sz: clamp(38px, 5vw, 76px); }
.rz-btn--hot { background: var(--hot); color: var(--on-hot); }
.rz-btn--inverse { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rz-btn--quiet { background: none; color: var(--fg); border: var(--stroke-rule) solid var(--fg); box-shadow: none; }
.rz-btn--quiet:hover { background: var(--fg); color: var(--bg); transform: none; box-shadow: none; }
.rz-btn--quiet:active { transform: scale(.97); box-shadow: none; }
/* The one big thing to press leans, and is restless while the site sleeps. */
.rz-btn--tilt { transform: rotate(var(--tilt-button)); animation: var(--nudge) 2.8s ease-in-out infinite; }
.rz-btn--tilt:hover { transform: rotate(-2deg) scale(1.04); box-shadow: .13em .13em 0 var(--shadow); }
.rz-btn--tilt:active { transform: rotate(var(--tilt-button)) translate(.09em, .09em); box-shadow: .04em .04em 0 var(--shadow); animation: none; }
@keyframes rz-nudge { 0%, 78%, 100% { transform: rotate(-4deg); } 82% { transform: rotate(-7deg) scale(1.03); } 88% { transform: rotate(-1deg) scale(1.03); } 94% { transform: rotate(-5deg); } }
/* An arrow in a disc, at either end of a label or on its own. */
.rz-go { display: inline-grid; place-items: center; width: 1.02em; height: 1.02em; flex: none; border-radius: 50%; background: var(--ink); color: var(--sun); margin: -.14em -.2em -.04em 0; transition: transform var(--time-pop) var(--ease-spring); }
.rz-go svg { width: .56em; height: .56em; display: block; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.rz-btn:hover .rz-go { transform: rotate(-45deg); }
.rz-btn--inverse .rz-go { background: var(--bg); color: var(--fg); }

/* ------------------------------------------------------------------ the link */
.rz-link { color: var(--fg); font-weight: 700; text-decoration: none; padding: 0 .1em 1px; margin: 0 -.1em; box-shadow: inset 0 -2px 0 var(--hot); transition: box-shadow var(--time-press), color var(--time-press); }
.rz-link:hover { box-shadow: inset 0 -1.5em 0 var(--hot); color: var(--on-hot); }

/* ------------------------------------------------------------------ the dock */
/* A bar that floats at the foot of the screen: what state the site is in, the time, where to go. */
.rz-dock { display: inline-flex; align-items: center; gap: var(--space-1); padding: 6px; border-radius: var(--radius-pill); background: var(--fg); color: var(--bg); font: 600 14px/1 var(--font-text); --focus: var(--bg); }
.rz-dock__cell { display: inline-flex; align-items: center; gap: .55em; padding: .78em 1em; border-radius: var(--radius-pill); color: inherit; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rz-dock a.rz-dock__cell:hover, .rz-dock button.rz-dock__cell:hover { background: var(--bg); color: var(--fg); }
.rz-dock button.rz-dock__cell { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.rz-dock__rule { width: 2px; height: 1.4em; background: currentColor; opacity: .22; flex: none; }
.rz-dock .rz-btn { --sz: 21px; box-shadow: none; padding: .44em .7em .32em; border-color: var(--sun); }
.rz-dock .rz-btn:hover { transform: scale(1.05); }
[data-narrow] { display: none; }
.rz-dock--fixed { position: fixed; left: 50%; bottom: var(--space-4); transform: translateX(-50%); z-index: var(--layer-press); }

/* ------------------------------------------------------------------ the card */
.rz-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
.rz-card { --fill: var(--block-1); --on: var(--on-block-1); --focus: var(--ink); position: relative; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-6); border-radius: var(--radius-l); background: var(--fill); color: var(--on); }
.rz-card--2 { --fill: var(--block-2); --on: var(--on-block-2); }
.rz-card--3 { --fill: var(--block-3); --on: var(--on-block-3); }
.rz-card--inverse { --fill: var(--fg); --on: var(--bg); --focus: var(--bg); }
.rz-card--line { --fill: none; --on: var(--fg); --focus: var(--fg); box-shadow: inset 0 0 0 var(--stroke-ink) var(--fg); }
.rz-card__title { margin: 0; font: 400 var(--t, 48px)/.9 var(--font-loud); letter-spacing: .02em; text-transform: uppercase; }
.rz-card__text { margin: 0; max-width: 34em; }
.rz-card__foot { margin-top: auto; padding-top: var(--space-4); }
.rz-card .rz-st { position: absolute; }
/* The notch: a bite out of the bottom right corner, with a round button sitting in it.
   It is cut in the colour of the ground the card lies on (--ground, the page by default). */
.rz-card--notch { --n: 76px; --nr: 26px; padding-bottom: calc(var(--n) + var(--space-3)); }
.rz-card__notch { position: absolute; right: 0; bottom: 0; width: var(--n); height: var(--n); background: var(--ground, var(--bg)); border-top-left-radius: var(--nr); display: grid; place-items: end; }
.rz-card__notch::before, .rz-card__notch::after { content: ""; position: absolute; width: var(--nr); height: var(--nr); background: radial-gradient(circle at 0 0, #0000 calc(var(--nr) - .5px), var(--ground, var(--bg)) var(--nr)); }
.rz-card__notch::before { right: 0; top: calc(var(--nr) * -1); }
.rz-card__notch::after { bottom: 0; left: calc(var(--nr) * -1); }
.rz-card__notch .rz-go { width: calc(var(--n) - 12px); height: calc(var(--n) - 12px); margin: 0; background: var(--fg); color: var(--bg); font-size: 44px; border: 0; cursor: pointer; }
.rz-card__notch .rz-go:hover { transform: rotate(-45deg); }

/* ------------------------------------------------------------------ the stat */
.rz-stat__n { margin: 0; font: 400 var(--n, 165px)/.8 var(--font-loud); letter-spacing: 0; text-transform: uppercase; padding-top: .08em; }
.rz-stat__l { margin: 0; font: 600 16px/1.3 var(--font-text); max-width: 16em; }

/* ------------------------------------------------------------------ the lid */
/* Anything with a picture can have an eyelid. Asleep it is shut; a look (hover, focus) opens that
   one; awake they are all open; dozing they are half down. It never covers words. */
.rz-lid { position: relative; overflow: hidden; isolation: isolate; }
.rz-lid__lid { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: var(--c, var(--hot)); color: var(--on-hot); border-bottom: var(--stroke-ink) solid var(--ink); font: 400 var(--z, 32px)/1 var(--font-soft); transform: translateY(calc((var(--lid) - 1) * 100%)); transition: transform var(--time-lid) var(--ease-lid); pointer-events: none; }
.rz-lid:hover, .rz-lid:focus-within, a:hover > .rz-lid, a:focus-visible > .rz-lid { --lid: 0; }

/* ------------------------------------------------------------------ the fan */
/* Pictures dealt like cards, each leaning its own way; the one looked at straightens and lifts. */
.rz-fan { display: flex; justify-content: center; padding: var(--space-6) var(--space-7); }
.rz-fan__card { flex: 0 1 230px; min-width: 0; margin: 0 -12px; display: flex; flex-direction: column; border: var(--stroke-ink) solid var(--ink); border-radius: var(--radius-m); box-shadow: var(--edge); background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transition: transform var(--time-pop) var(--ease-spring); }
.rz-fan__card:nth-child(4n+1) { --r: -6deg; --y: 10px; }
.rz-fan__card:nth-child(4n+2) { --r: 3deg; --y: -6px; }
.rz-fan__card:nth-child(4n+3) { --r: -2deg; --y: 4px; }
.rz-fan__card:nth-child(4n+4) { --r: 5deg; --y: 12px; }
.rz-fan__card:hover, .rz-fan__card:focus-visible { --r: 0deg; --y: -14px; z-index: 2; }
.rz-fan__pic { aspect-ratio: 4 / 5; background: var(--c, var(--block-1)); display: grid; place-items: center; }
.rz-fan__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rz-fan__cap { padding: .7em .9em .75em; font: 700 13px/1.25 var(--font-text); border-top: var(--stroke-ink) solid var(--ink); }

/* ------------------------------------------------------------------ the edge */
/* Where one band of colour meets the next. Put it inside the lower band (an .rz-band) and give it
   that band's colour (--edge-c): it stands on the band's top edge and rises into the band above.
   Zigzag awake, scalloped asleep. */
.rz-edge { --edge-h: 22px; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--edge-h); background: var(--edge-c, var(--bg)); -webkit-mask: var(--cut) 50% 0 / calc(var(--edge-h) * 2) 100% repeat-x; mask: var(--cut) 50% 0 / calc(var(--edge-h) * 2) 100% repeat-x; pointer-events: none; }
.rz-edge--zig { --cut: var(--cut-zig); }
.rz-edge--scallop { --cut: var(--cut-scallop); }
.rz-band { position: relative; background: var(--fill, var(--band)); color: var(--on, var(--on-band)); --ground: var(--fill, var(--band)); }

/* ------------------------------------------------------------------ the dots */
/* A fine grid of dots on the ground: 22 apart, in the hairline colour. Hard-edged, not a fade. */
.rz-dots { background-image: radial-gradient(circle, var(--rule) 2.1px, #0000 2.6px); background-size: 22px 22px; }

/* ------------------------------------------------------------------ the scene */
/* His cover, as a section of a page. The drawing IS his file (brand/reference/linkedin-cover-his.svg):
   every shape is his own path, only grouped and named, so it is the same picture he made. What
   moves: the stickers and badges can be thrown, each letter of SLEEP stretches toward the pointer,
   the pointer drags IN wide and lets it go, the z's drift, the band of words runs.
   Lengths here are in the drawing's own units (it is 1584 by 396). */
@property --rz-pull { syntax: '<number>'; inherits: true; initial-value: 1; }
.rz-scene { display: block; width: 100%; height: auto; aspect-ratio: 1584 / 396; overflow: hidden; background: var(--bg); touch-action: pan-y; }
.rz-scene .is-ground { fill: var(--bg); }
.rz-scene .is-band { fill: var(--band); }
.rz-scene .is-on-band { fill: var(--on-band); }
.rz-scene .is-ink { fill: var(--fg); }
.rz-scene .is-hot { fill: var(--hot); }
.rz-scene .is-on-hot { fill: var(--on-hot); }
.rz-scene .is-pointer { fill: var(--focus); }
.rz-scene .is-line { stroke: var(--fg); }
.rz-scene__status .is-ground { stroke: var(--fg); }
.rz-scene__words { animation: rz-scene-run 9s linear infinite; }
@keyframes rz-scene-run { to { transform: translateX(-336.4px); } }
.rz-scene__st { cursor: grab; touch-action: none; }
.rz-scene__st.is-held { cursor: grabbing; }
/* IN is drawn at its widest, and rests narrow. The pointer takes its corner and drags it wide; at
   full stretch it loses its grip, IN springs back (overshooting, then settling), and the pointer
   has to come back and pull again. --rz-pull is how wide IN is (1 is as drawn), --rz-hand is where
   the pointer is on the same scale, and --rz-slip is how far it has dropped off the corner. */
@property --rz-hand { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --rz-slip { syntax: '<number>'; inherits: true; initial-value: 0; }
.rz-scene__pull { animation: rz-pull 5.6s linear infinite; }
.rz-scene__in { transform: scaleX(var(--rz-pull)); transform-origin: 640px 290px; }
.rz-scene__ride { transform: translateX(calc((var(--rz-pull) - 1) * 213px)); }
.rz-scene__hand { transform: translate(calc((var(--rz-hand) - 1) * 213px + var(--rz-slip) * 1px), calc(var(--rz-slip) * 1.3px)); }
@keyframes rz-pull {
  0%, 9% { --rz-pull: .5; --rz-hand: .5; --rz-slip: 0; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  46% { --rz-pull: 1; --rz-hand: 1; --rz-slip: 0; }
  50% { --rz-pull: 1.02; --rz-hand: 1.02; --rz-slip: 0; animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  55% { --rz-pull: .4; --rz-hand: 1.06; --rz-slip: 14; animation-timing-function: ease-in-out; }
  60% { --rz-pull: .57; --rz-hand: 1.06; --rz-slip: 16; animation-timing-function: ease-in-out; }
  65% { --rz-pull: .46; --rz-hand: 1.04; --rz-slip: 16; animation-timing-function: ease-in-out; }
  70% { --rz-pull: .52; --rz-hand: .98; --rz-slip: 14; animation-timing-function: ease-in-out; }
  75% { --rz-pull: .5; --rz-hand: .9; --rz-slip: 11; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  94%, 100% { --rz-pull: .5; --rz-hand: .5; --rz-slip: 0; }
}
.rz-scene__sleep path { transform-box: fill-box; transform-origin: 50% 100%; stroke: var(--rim); stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.rz-scene .is-rim { stroke: var(--rim); stroke-width: 3; stroke-linejoin: round; paint-order: stroke; }
.rz-scene__zs path { transform-box: fill-box; transform-origin: 50% 50%; animation: rz-drift 3.6s ease-in-out infinite; }
.rz-scene__zs path:nth-child(2) { animation-delay: .5s; }
.rz-scene__zs path:nth-child(3) { animation-delay: 1s; }
@keyframes rz-drift { 50% { transform: translate(3px, -6px) rotate(7deg); } }

/* ------------------------------------------------------------------ the big list */
/* Names set as large as headlines, one to a row. The row floods with colour when it is looked at. */
.rz-list { list-style: none; margin: 0; padding: 0; border-top: var(--stroke-rule) solid var(--rule); }
.rz-list__row { --row: var(--block-1); --on-row: var(--on-block-1); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-5); padding: var(--space-5) var(--space-4) var(--space-4); border-bottom: var(--stroke-rule) solid var(--rule); color: var(--fg); text-decoration: none; transition: background-color var(--time-press), padding var(--time-pop) var(--ease-spring); }
.rz-list > li:nth-child(3n+2) .rz-list__row { --row: var(--block-2); --on-row: var(--on-block-2); }
.rz-list > li:nth-child(3n+3) .rz-list__row { --row: var(--block-3); --on-row: var(--on-block-3); }
.rz-list__name { grid-column: 1; font: 400 var(--sz, 109px)/.86 var(--font-loud); letter-spacing: .006em; text-transform: uppercase; }
.rz-list__note { grid-column: 1; margin-top: var(--space-2); font: 500 16px/1.4 var(--font-text); color: var(--quiet); }
.rz-list__end { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: var(--space-4); }
.rz-list__row:hover, .rz-list__row:focus-visible { background: var(--row); color: var(--on-row); padding-left: var(--space-6); --focus: var(--ink); outline-offset: -6px; }
.rz-list__row:hover .rz-list__note, .rz-list__row:focus-visible .rz-list__note { color: inherit; }
.rz-list .rz-go { font-size: 56px; margin: 0; background: var(--fg); color: var(--bg); transform: scale(0) rotate(-90deg); }
.rz-list__row:hover .rz-go, .rz-list__row:focus-visible .rz-go { transform: none; background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ the row */
/* A question that opens. It is a details element, so it works with no script. */
.rz-row { border-bottom: var(--stroke-rule) solid var(--rule); }
.rz-row:first-of-type { border-top: var(--stroke-rule) solid var(--rule); }
.rz-row > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-1) var(--space-3); cursor: pointer; font: 400 var(--sz, 39px)/.95 var(--font-loud); letter-spacing: .02em; text-transform: uppercase; }
.rz-row > summary::-webkit-details-marker { display: none; }
.rz-row__n { font: 400 21px/1 var(--font-soft); text-transform: none; letter-spacing: 0; min-width: 1.6em; }
.rz-row__x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--stroke-ink) solid var(--fg); transition: transform var(--time-pop) var(--ease-spring), background-color var(--time-press); }
.rz-row__x::before, .rz-row__x::after { content: ""; grid-area: 1 / 1; width: 16px; height: 3px; border-radius: 2px; background: currentColor; }
.rz-row__x::after { transform: rotate(90deg); }
.rz-row[open] .rz-row__x { transform: rotate(45deg); background: var(--hot); color: var(--on-hot); border-color: var(--ink); }
.rz-row__body { margin: 0; padding: 0 var(--space-1) var(--space-5) calc(1.6em * 1.3125 + var(--space-4) + var(--space-1)); max-width: 62ch; }

/* ------------------------------------------------------------------ the field */
.rz-field { display: grid; gap: var(--space-2); min-width: 0; }
.rz-field > label { font: 700 12px/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase; }
.rz-field input, .rz-field textarea { width: 100%; font: 600 18px/1.3 var(--font-text); color: var(--fg); background: none; border: var(--stroke-ink) solid var(--fg); border-radius: var(--radius-m); padding: .72em .9em; transition: box-shadow var(--time-press), transform var(--time-press); }
.rz-field textarea { min-height: 7.2em; resize: vertical; display: block; }
.rz-field ::placeholder { color: var(--quiet); opacity: 1; }
.rz-field input:focus-visible, .rz-field textarea:focus-visible { outline: 0; box-shadow: var(--hard-m); transform: translate(-3px, -3px); }
.rz-field__note { margin: 0; font: 500 14px/1.35 var(--font-text); color: var(--quiet); }
/* Something is wrong with it: the field takes the hot colour, and a sentence says what to do. */
.rz-field.is-wrong input, .rz-field.is-wrong textarea { background: var(--hot); color: var(--on-hot); border-color: var(--ink); }
.rz-field.is-wrong .rz-field__note { color: var(--fg); font-weight: 700; }

/* ------------------------------------------------------------------ the top bar and the foot */
.rz-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--gutter) 0; }
.rz-nav { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.rz-nav a { display: block; font: 600 14px/1 var(--font-text); padding: .72em 1em .7em; border-radius: var(--radius-pill); color: var(--fg); text-decoration: none; }
.rz-nav a:hover { background: var(--fg); color: var(--bg); }
.rz-nav a[aria-current] { box-shadow: inset 0 0 0 var(--stroke-rule) var(--fg); }
.rz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 13px var(--gutter) 16px; border-top: var(--stroke-rule) solid var(--rule); font: 500 14px/1.35 var(--font-text); color: var(--quiet); background: var(--bg); }
.rz-foot p { margin: 0; }
.rz-foot ul { list-style: none; display: flex; gap: 6px 22px; flex-wrap: wrap; margin: 0; padding: 0; }
/* The name again, as wide as the page, before the small print. */
.rz-foot__name { display: block; padding: 0 var(--gutter); overflow: hidden; }
.rz-foot__name .rz-name { --sz: 38vw; line-height: .74; padding: .06em 0 0; margin-bottom: -.1em; cursor: pointer; }

/* ------------------------------------------------------------------ stickers */
/* A drawn sticker has a black outline and a white edge; a slogan sticker is a pill with the same.
   Stickers keep their own colours in both states: they are things on the page, not the page. */
.rz-st { display: inline-block; width: var(--w, 120px); flex: none; transform: rotate(var(--r, 0deg)); user-select: none; -webkit-user-select: none; }
.rz-st svg { display: block; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.rz-st--pill { width: auto; font: 400 var(--sz, 26px)/1 var(--font-loud); letter-spacing: .06em; text-transform: uppercase; background: var(--c, var(--sun)); color: var(--on-c, var(--ink)); padding: .52em .8em .4em; border-radius: var(--radius-pill); border: var(--stroke-ink) solid var(--ink); box-shadow: var(--edge); white-space: nowrap; }
.rz-st.is-pink { --c: var(--pink); } .rz-st.is-tang { --c: var(--tang); } .rz-st.is-lilac { --c: var(--lilac); } .rz-st.is-cream { --c: var(--cream); }
.rz-st.is-cob { --c: var(--cob); --on-c: var(--paper); }
/* Loose on a layer: they can be picked up and thrown (Rizzzi.stickers). */
.rz-loose { position: relative; overflow: hidden; touch-action: pan-y; }
.rz-loose > .rz-st { position: absolute; left: 0; top: 0; touch-action: none; cursor: grab; will-change: transform; }
.rz-loose > .rz-st.is-held { cursor: grabbing; }
/* The eyes follow the pointer (--ex, --ey, set by the script) and their lids come down with --lid. */
.rz-st .pupil--l { transform: translate(calc(var(--exl, 0) * 1px), calc(var(--eyl, 0) * 1px)); }
.rz-st .pupil--r { transform: translate(calc(var(--exr, 0) * 1px), calc(var(--eyr, 0) * 1px)); }
.rz-st .lid { transform: translateY(calc((var(--lid) - 1) * 124px)); transition: transform var(--time-lid) var(--ease-lid); }
.rz-st .lid rect { fill: var(--hot); }
.rz-st .shut { opacity: calc((var(--lid) - .9) * 10); transition: opacity .2s; }

/* ------------------------------------------------------------------ the snore */
/* z z Z, rising. It is also how the site says "loading". */
.rz-snore { position: relative; display: inline-block; width: 4.2em; height: 4.6em; font: 400 var(--sz, 32px)/1 var(--font-soft); color: var(--fg); }
.rz-snore span { position: absolute; left: 0; bottom: 0; opacity: 0; animation: rz-zz 3.9s ease-out infinite; }
.rz-snore span:nth-child(2) { animation-delay: 1.3s; font-size: 1.45em; }
.rz-snore span:nth-child(3) { animation-delay: 2.6s; font-size: 2.05em; }
@keyframes rz-zz { 0% { opacity: 0; transform: translate(0, 0) rotate(-10deg) scale(.5); } 16% { opacity: 1; } 100% { opacity: 0; transform: translate(1.5em, -3.6em) rotate(14deg) scale(1.1); } }

/* ------------------------------------------------------------------ the pointer */
/* The site's own pointer, drawn here at rest so its states can be seen. On the page a script
   moves it; its tip is the exact point that presses. Its colour is the focus colour. */
.rz-cur { position: relative; display: inline-block; width: 40px; height: 40px; flex: none; }
.rz-cur svg { width: 40px; height: 40px; overflow: visible; display: block; }
.rz-cur__fill { fill: var(--focus); }
.rz-cur--over svg { transform: rotate(-16deg) scale(1.18); transform-origin: 9px 5px; }
.rz-cur--down svg { transform: rotate(-8deg) scale(.86); transform-origin: 9px 5px; }
.rz-cur__ring { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--focus); border: var(--stroke-ink) solid var(--ink); box-shadow: var(--edge-s); }
.rz-cur__ring.is-held { transform: scale(.62); }
.rz-cur__word { position: absolute; left: 26px; top: 24px; font: 700 12px/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: .55em .75em; border-radius: var(--radius-pill); white-space: nowrap; }

/* ------------------------------------------------------------------ the colour that floods in */
.rz-flood { position: fixed; inset: 0; z-index: var(--layer-flood); pointer-events: none; }
.rz-flood i { position: absolute; inset: 0; clip-path: circle(0 at 50% 50%); }
.rz-flood i:first-child { background: var(--hot); }
.rz-flood i:last-child { background: var(--bg); }

/* ------------------------------------------------------------------ for showing things */
.rz-demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); padding: var(--space-6); }
.rz-demo--col { flex-direction: column; align-items: stretch; }
.rz-demo--mid { justify-content: center; }
.rz-cap { margin: 0; font: 500 13px/1.3 var(--font-text); color: var(--quiet); }

/* ------------------------------------------------------------------ a narrow screen */
/* One column. Nothing leans far enough to push the page sideways. */
@media (max-width: 760px) {
  [data-wide] { display: none; }
  [data-narrow] { display: inline-flex; }
  .rz-top .rz-nav { display: none; }
  .rz-bento { grid-template-columns: minmax(0, 1fr); }
  .rz-bento > * { grid-column: auto !important; }
  .rz-card { padding: var(--space-5); }
  .rz-card--notch { padding-bottom: calc(var(--n) + var(--space-2)); }
  .rz-card__title { font-size: min(var(--t, 48px), 48px); }
  .rz-card > .rz-st { width: 60px; }
  .rz-stat__n { font-size: 134px; }
  .rz-list__row { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-2); }
  .rz-list__row:hover, .rz-list__row:focus-visible { padding-left: var(--space-4); }
  .rz-list__name { font-size: 48px; }
  .rz-list__end { grid-column: 1; grid-row: auto; margin-top: var(--space-4); justify-content: space-between; }
  .rz-list .rz-go { font-size: 40px; transform: none; }
  .rz-row > summary { font-size: 32px; gap: var(--space-3); }
  .rz-row__body { padding-left: var(--space-1); }
  .rz-fan { justify-content: flex-start; gap: var(--space-4); padding: var(--space-5) var(--gutter); overflow-x: auto; }
  .rz-fan__card { flex: 0 0 62vw; margin: 0; }
  .rz-fan__card:nth-child(n) { --r: 0deg; --y: 0px; }
  .rz-foot { flex-direction: column; align-items: flex-start; }
  .rz-btn--l { --sz: 39px; }
  .rz-tick--big { --sz: 32px; }
  .rz-edge { --edge-h: 16px; }
  .rz-demo { padding: var(--space-5) var(--gutter); gap: var(--space-5); }
}

/* ------------------------------------------------------------------ the other pointer */
/* Rizwan's own pointer, as a teammate's shows in a design tool: an arrow and a name tag. It moves
   things on the page by itself. It is decoration, never the only way something happens. */
.rz-hand { position: absolute; left: 0; top: 0; z-index: var(--layer-press); pointer-events: none; transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.rz-hand svg { display: block; width: 34px; height: 34px; overflow: visible; transition: transform var(--time-pop) var(--ease-spring); transform-origin: 9px 5px; }
.rz-hand .rz-cur__fill { fill: var(--focus); }
.rz-hand b { position: absolute; left: 24px; top: 26px; padding: .4em .7em .42em; border-radius: var(--radius-pill); background: var(--focus); color: var(--bg); font: 700 12px/1 var(--font-text); letter-spacing: .02em; white-space: nowrap; }
.rz-hand.is-down svg { transform: scale(.82) rotate(-6deg); }
.rz-you { position: absolute; left: 0; top: 0; z-index: var(--layer-press); pointer-events: none; padding: .4em .7em .42em; border-radius: var(--radius-pill); background: var(--fg); color: var(--bg); font: 700 12px/1 var(--font-text); opacity: 0; transition: opacity .15s; }
.rz-you.is-in { opacity: 1; }
/* The selection frame: a box with four square handles and a tag saying what is selected. */
.rz-pick { position: absolute; z-index: 5; pointer-events: none; border: 2px solid var(--focus); transform-origin: 50% 50%; transition: left .25s, top .25s, width .25s, height .25s, transform .25s, opacity .2s; }
.rz-pick[hidden] { display: block !important; opacity: 0; }
/* While the word is being typed the frame keeps up with every letter, as a design tool's does */
.is-typing .rz-pick { transition: opacity .2s; }
.rz-pick i { position: absolute; width: 11px; height: 11px; margin: -6.5px; background: var(--paper); border: 2px solid var(--focus); }
.rz-pick i:nth-child(1) { left: 0; top: 0; } .rz-pick i:nth-child(2) { right: 0; top: 0; } .rz-pick i:nth-child(3) { left: 0; bottom: 0; } .rz-pick i:nth-child(4) { right: 0; bottom: 0; }
.rz-pick b { position: absolute; left: -2px; top: -30px; padding: .35em .6em; background: var(--focus); color: var(--bg); font: 700 11px/1 var(--font-text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the hero */
/* Four ways the first screen could move, behind a switcher until one is chosen. They share a frame:
   the headline is the picture, one sentence and one button at the foot, stickers in the gaps. */
.rz-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; gap: 32px; min-height: 720px; padding: 72px var(--gutter) 64px; overflow: hidden; background-color: var(--bg); }
.rz-hero[hidden] { display: none !important; }
.rz-hero > .rz-head { grid-column: 1 / -1; position: relative; z-index: 2; --h: min(15vw, 216px); }
.rz-hero__lead { grid-column: 1; align-self: end; margin: 0; max-width: 34rem; font: 600 20px/1.42 var(--font-text); position: relative; z-index: 4; }
.rz-hero__lead small { display: block; margin-top: .4em; font: 500 15px/1.4 var(--font-text); color: var(--quiet); }
.rz-hero > .rz-btn { grid-column: 2; align-self: end; position: relative; z-index: 4; }
.rz-hero .rz-loose { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rz-hero .rz-loose > .rz-st { pointer-events: auto; }
.rz-hero__note { position: absolute; right: var(--gutter); top: 24px; z-index: 4; margin: 0; font: 600 13px/1 var(--font-text); color: var(--quiet); }
/* A. The word swaps itself */
.rz-swap { cursor: pointer; }
.rz-swap__caret { display: inline-block; width: 0; height: .72em; margin-left: .02em; background: currentColor; vertical-align: -.02em; opacity: 0; }
.is-typing .rz-swap__caret { width: .06em; opacity: 1; animation: rz-blink .8s steps(1) infinite; }
@keyframes rz-blink { 50% { opacity: 0; } }
/* B. From rough to right: three versions of the same screen */
.rz-hero--rough .rz-head .rz-line, .rz-hero--rough .rz-head mark, .rz-hero--rough .rz-hero__lead, .rz-hero--rough > .rz-btn { transition: color .5s, background-color .5s, box-shadow .5s, -webkit-text-stroke-color .5s; }
.rz-hero--rough[data-v="1"] .rz-head .rz-line { color: #0000; background: var(--rule); border-radius: var(--radius-s); width: fit-content; margin-bottom: .06em; }
.rz-hero--rough[data-v="1"] .rz-head mark { background: var(--rule); color: #0000; }
.rz-hero--rough[data-v="1"] .rz-hero__lead, .rz-hero--rough[data-v="1"] .rz-hero__lead small { color: #0000; background: var(--rule); border-radius: var(--radius-s); }
.rz-hero--rough[data-v="1"] > .rz-btn { background: none; color: #0000; border: 2px dashed var(--quiet); box-shadow: none; }
.rz-hero--rough[data-v="2"] .rz-head .rz-line, .rz-hero--rough[data-v="2"] .rz-head mark { color: #0000; -webkit-text-stroke: 2px var(--fg); background: none; box-shadow: inset 0 0 0 2px var(--fg); }
.rz-hero--rough[data-v="2"] .rz-head .rz-line { box-shadow: none; }
.rz-hero--rough[data-v="2"] > .rz-btn { background: none; color: var(--fg); box-shadow: none; }
.rz-hero--rough[data-v="1"] .rz-loose, .rz-hero--rough[data-v="2"] .rz-loose { opacity: 0; }
.rz-hero--rough .rz-loose { transition: opacity .5s; }
.rz-vers { position: absolute; left: var(--gutter); top: 20px; z-index: 6; display: flex; gap: var(--space-2); }
.rz-vers button { font: 700 13px/1 var(--font-text); padding: .6em .9em; border-radius: var(--radius-pill); border: var(--stroke-rule) solid var(--fg); background: none; color: var(--fg); cursor: pointer; }
.rz-vers button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
/* C. Make yourself at home: the words arrive out of place and are put right */
.rz-hero--home .rz-word-w { display: inline-block; cursor: grab; touch-action: none; transition: transform .8s cubic-bezier(.45, 0, .2, 1); position: relative; z-index: 3; }
.rz-hero--home .rz-word-w.is-held { cursor: grabbing; transition: none; }
/* D. Designs things, ships them too: the screen comes apart into its layers */
.rz-layers { position: relative; grid-column: 1 / -1; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }
.rz-layer { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .6s; }
.rz-layer:not(:first-child) { position: absolute; inset: 0; pointer-events: none; }
.rz-layer--grid { background-image: linear-gradient(90deg, var(--rule) 2px, #0000 2px); background-size: calc(100% / 12) 100%; opacity: 0; }
.rz-layer--guides { opacity: 0; }
.rz-layer--guides i { position: absolute; background: var(--focus); }
.rz-layer--guides i:nth-child(1) { left: 0; right: 0; top: 0; height: 2px; } .rz-layer--guides i:nth-child(2) { left: 0; right: 0; bottom: 0; height: 2px; }
.rz-layer--guides i:nth-child(3) { top: -20px; bottom: -20px; left: 0; width: 2px; }
.rz-layer__tag { position: absolute; right: 0; top: -34px; padding: .4em .7em; border-radius: var(--radius-pill); background: var(--fg); color: var(--bg); font: 700 12px/1 var(--font-text); opacity: 0; transition: opacity .4s; }
.rz-hero--layers.is-apart .rz-layers { transform: perspective(1600px) rotateX(52deg) rotateZ(-22deg) scale(.7); }
.rz-hero--layers.is-apart .rz-layer--grid { opacity: 1; transform: translateZ(-120px); }
.rz-hero--layers.is-apart .rz-layer--guides { opacity: 1; transform: translateZ(-40px); }
.rz-hero--layers.is-apart .rz-layer--type { transform: translateZ(80px); }
.rz-hero--layers.is-apart .rz-layer__tag { opacity: 1; }


/* ------------------------------------------------------------------ the switcher */
.rz-switch { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-4) var(--gutter); background: var(--fg); color: var(--bg); --focus: var(--bg); }
.rz-switch span { font: 700 12px/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase; margin-right: var(--space-3); }
.rz-switch button { font: 600 14px/1 var(--font-text); padding: .7em 1em; border-radius: var(--radius-pill); border: var(--stroke-rule) solid currentColor; background: none; color: inherit; cursor: pointer; }
.rz-switch button[aria-pressed="true"] { background: var(--bg); color: var(--fg); }

/* ------------------------------------------------------------------ media placeholders */
/* Where a picture or a film will go, drawn as a frame in a design file: its file name, its size,
   what to put in it. Drop a file on it (or press it) to see that file in place; nothing is saved. */
.rz-media { position: relative; margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.rz-media__box { position: relative; aspect-ratio: var(--ar, 4 / 5); max-width: 100%; border-radius: var(--radius-m); overflow: hidden; background: var(--c, var(--block-2)); color: var(--on, var(--on-block-2)); cursor: pointer; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .3s cubic-bezier(.3, 1.6, .4, 1), box-shadow .2s; }
.rz-media__box:hover, .rz-media__box:focus-visible, .rz-media.is-over .rz-media__box { box-shadow: 0 0 0 3px var(--focus); }
.rz-media__box svg.rz-media__x { position: absolute; inset: 0; width: 100%; height: 100%; }
.rz-media__x line { stroke: currentColor; stroke-width: 1.5; opacity: .35; vector-effect: non-scaling-stroke; }
.rz-media__say { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: var(--space-4); text-align: center; }
.rz-media__say svg { width: 34px; height: 34px; }
.rz-media__say b { font: 400 clamp(20px, 2.2vw, 32px)/1 var(--font-loud); letter-spacing: .03em; text-transform: uppercase; }
.rz-media__say small { font: 600 13px/1.3 var(--font-text); opacity: .85; }
.rz-media__tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: .4em .65em; border-radius: var(--radius-s); background: var(--fg); color: var(--bg); font: 700 12px/1 var(--font-text); }
.rz-media__play { position: absolute; right: 12px; bottom: 16px; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: var(--stroke-ink) solid var(--ink); background: var(--sun); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.rz-media__play svg { width: 20px; height: 20px; }
.rz-media__bar { position: absolute; left: 12px; right: 76px; bottom: 36px; z-index: 2; height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 25%, #0000); overflow: hidden; }
.rz-media__bar i { display: block; height: 100%; width: 0; background: currentColor; }
.rz-media.is-playing .rz-media__bar i { width: 100%; transition: width 6s linear; }
.rz-media__box > img, .rz-media__box > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.rz-media input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rz-media figcaption { font: 600 14px/1.35 var(--font-text); }
.rz-media figcaption small { display: block; font-weight: 500; color: var(--quiet); }

/* A letter that reaches for the pointer (Rizzzi.stretch) grows from its foot. */
.rz-ch { display: inline-block; font-style: normal; transform-origin: 50% 100%; }
[data-rz-unit] { transform-origin: 50% 100%; }

/* ------------------------------------------------------------------ the sentence that fills in */
/* Without the script, or for someone who asked for less movement, it is simply all there. */
.rz-reveal.is-revealing i { font-style: normal; color: var(--rule); transition: color .35s; }
.rz-reveal.is-revealing i.is-lit { color: var(--fg); }

/* ------------------------------------------------------------------ the work list */
/* The index of the work. Looked at, a row brings its picture with it, following the pointer. */
.rz-work { position: relative; list-style: none; margin: 0; padding: 0; border-top: var(--stroke-rule) solid var(--rule); }
.rz-work__row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-5); padding: var(--space-5) var(--space-3); border-bottom: var(--stroke-rule) solid var(--rule); color: var(--fg); text-decoration: none; }
.rz-work__n { font: 400 21px/1 var(--font-soft); }
.rz-work__name { font: 400 clamp(48px, 7.5vw, 109px)/.86 var(--font-loud); text-transform: uppercase; letter-spacing: .006em; transition: transform var(--time-pop) var(--ease-spring); }
.rz-work__line { display: block; margin-top: var(--space-2); font: 500 16px/1.4 var(--font-text); color: var(--quiet); }
.rz-work__end { display: flex; gap: var(--space-3); align-items: center; }
.rz-work__row:hover .rz-work__name, .rz-work__row:focus-visible .rz-work__name { transform: translateX(14px); }
.rz-work__peek { position: absolute; left: 0; top: 0; z-index: 6; width: 300px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .2s, transform var(--time-pop) var(--ease-spring); }
.rz-work.is-peeking .rz-work__peek { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.rz-work__peek .rz-media__box { box-shadow: 0 0 0 3px var(--ink), 0 0 0 9px var(--paper); cursor: none; }

@media (max-width: 760px) {
  .rz-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 88px; }
  .rz-hero > .rz-btn { grid-column: 1; justify-self: start; }
  .rz-work__row { grid-template-columns: 40px minmax(0, 1fr); }
  .rz-work__end { grid-column: 2; margin-top: var(--space-3); }
  .rz-work__peek { display: none; }
}

/* ------------------------------------------------------------------ arriving and trailing */
/* Hidden only once the script has said it will reveal them, so a page with no script shows all. */
.rz-rising [data-rz-rise]:not(.is-in) { opacity: 0; translate: 0 48px; }
.rz-rising [data-rz-rise] { transition: opacity .7s ease-out, translate .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--rz-i, 0) * 90ms); }
[data-rz-lag] { will-change: translate; }

/* ------------------------------------------------------------------ the site's own pointer */
html.has-pointer, html.has-pointer * { cursor: none !important; }
.rz-pointer { position: fixed; left: 0; top: 0; z-index: var(--layer-pointer); pointer-events: none; opacity: 0; transition: opacity .15s; }
html.has-pointer .rz-pointer.is-in { opacity: 1; }
.rz-pointer__arrow { position: absolute; left: -9px; top: -5px; width: 40px; height: 40px; overflow: visible; transform-origin: 9px 5px; transition: transform .22s cubic-bezier(.3, 1.6, .4, 1), opacity .12s; }
.rz-pointer__fill { fill: var(--focus); }
.rz-pointer.is-over .rz-pointer__arrow { transform: rotate(-16deg) scale(1.18); }
.rz-pointer.is-down .rz-pointer__arrow { transform: rotate(-8deg) scale(.86); }
.rz-pointer__ring { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--focus); border: 3px solid var(--ink); box-shadow: var(--edge-s); transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .4, 1); }
.rz-pointer.is-grab .rz-pointer__arrow { opacity: 0; transform: scale(.4); }
.rz-pointer.is-grab .rz-pointer__ring { transform: scale(1); }
.rz-pointer.is-grab.is-down .rz-pointer__ring { transform: scale(.62); }
.rz-pointer__word { position: absolute; left: 26px; top: 24px; font: 700 12px/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: .55em .75em; border-radius: var(--radius-pill); transform: scale(0); transform-origin: 0 0; transition: transform .18s cubic-bezier(.3, 1.5, .4, 1); white-space: nowrap; }
.rz-pointer.is-word .rz-pointer__word { transform: scale(1); }
.rz-trail { position: fixed; inset: 0; z-index: calc(var(--layer-pointer) - 1); pointer-events: none; overflow: hidden; }
.rz-trail b { position: absolute; left: 0; top: 0; font: 400 20px/1 var(--font-soft); color: var(--sun); animation: rz-drift-z 1s ease-out forwards; }
.rz-trail i { position: absolute; left: 0; top: 0; width: 4px; height: 13px; margin: -6px 0 0 -2px; border-radius: 3px; background: var(--c, var(--tang)); animation: rz-spark .45s ease-out forwards; }
@keyframes rz-drift-z { from { opacity: .95; transform: translate(var(--x), var(--y)) rotate(-12deg) scale(.6); } to { opacity: 0; transform: translate(calc(var(--x) + 26px), calc(var(--y) - 58px)) rotate(16deg) scale(1.25); } }
@keyframes rz-spark { from { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--a)) translateY(-12px) scaleY(.4); } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--a)) translateY(-44px) scaleY(1); } }

/* ------------------------------------------------------------------ before and after */
.rz-compare { --pos: 50%; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; isolation: isolate; touch-action: pan-y; }
.rz-compare__side { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; }
.rz-compare__side > img, .rz-compare__side > svg { max-width: 62%; max-height: 72%; width: auto; height: auto; display: block; }
.rz-compare__side figcaption { position: absolute; top: var(--space-4); padding: .45em .8em; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 700 12px/1 var(--font-text); letter-spacing: .07em; text-transform: uppercase; }
.rz-compare__side:first-of-type figcaption { left: var(--space-4); }
.rz-compare__side:last-of-type { clip-path: inset(0 0 0 var(--pos)); }
.rz-compare__side:last-of-type figcaption { right: var(--space-4); }
.rz-compare input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rz-compare__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--paper); pointer-events: none; }
.rz-compare__handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 3px 22px; background-position: 22px 50%, 33px 50%; background-repeat: no-repeat; }
.rz-compare input[type="range"]:focus-visible + .rz-compare__handle::after { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--focus); }
@media (max-width: 600px) {
  .rz-compare { aspect-ratio: 4 / 3; }
  .rz-compare__handle::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 3px 16px; background-position: 15px 50%, 26px 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-compare { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .rz-compare__side { position: relative; aspect-ratio: 8 / 9; }
  .rz-compare__side:last-of-type { clip-path: none; }
  .rz-compare input[type="range"], .rz-compare__handle { display: none; }
}

/* ------------------------------------------------------------------ the flip-book */
.rz-flip__stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.rz-flip__stage figure { margin: 0; display: grid; justify-items: center; gap: var(--space-3); }
.rz-flip__stage img { width: 100%; height: auto; display: block; }
.rz-flip [data-rz-count] { display: none; }
/* A flip-book may bring one picture of all its pages, for when it does not flip */
.rz-flip__still { grid-column: 1 / -1; width: 100%; height: auto; display: block; }
.rz-flip:has(.rz-flip__still):not(.is-flipping) [data-rz-page], .rz-flip.is-flipping .rz-flip__still { display: none; }
.rz-flip.is-flipping { height: calc(var(--n) * 55vh + 100vh); }
.rz-flip.is-flipping .rz-flip__stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.rz-flip.is-flipping .rz-flip__stage figure { grid-area: 1 / 1; opacity: 0; scale: .92; transition: opacity .25s, scale .35s cubic-bezier(.3, 1.6, .4, 1); }
.rz-flip.is-flipping .rz-flip__stage figure.is-on { opacity: 1; scale: 1; }
.rz-flip.is-flipping .rz-flip__stage img { max-height: 62vh; width: auto; max-width: 100%; }
.rz-flip.is-flipping .rz-flip__stage { padding-bottom: 96px; box-sizing: border-box; }
.rz-flip.is-flipping [data-rz-count] { display: block; position: absolute; right: 0; top: var(--space-7); font: 400 21px/1 var(--font-soft); }

/* ------------------------------------------------------------------ the portrait */
/* A cut-out on a tilted card, a hard-shadow card behind. The layers move by --mx and --my (set by
   the script from the pointer), each by its own depth; the photo and its card move as one, so the
   cut edges of the photo never show. While the Roll Safe moment plays, the canvas draws both the
   photo and the art, block by block, so the photo itself is hidden. */
.rz-me { --mx: 0; --my: 0; position: relative; }
.rz-me__body { position: relative; rotate: 3deg; aspect-ratio: 1122 / 1402; }
.rz-me__back { position: absolute; inset: 21% 0 0; border-radius: var(--radius-l); background: var(--block-2); box-shadow: 0 0 0 3px var(--ink); transform: translate(18px, 18px); translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); }
.rz-me__card { position: absolute; inset: 21% 0 0; border-radius: var(--radius-l); background: var(--block-3); box-shadow: 0 0 0 3px var(--ink), 0 0 0 10px var(--paper); translate: calc(var(--mx) * 10px) calc(var(--my) * 7px); }
.rz-me__pic { position: absolute; inset: 0; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: var(--radius-l); clip-path: inset(-40% 0 0 0 round 0 0 var(--radius-l) var(--radius-l)); translate: calc(var(--mx) * 10px) calc(var(--my) * 7px); }
.rz-me__pic:focus-visible { outline: none; }
.rz-me:has(.rz-me__pic:focus-visible) .rz-me__card { box-shadow: 0 0 0 3px var(--ink), 0 0 0 10px var(--paper), 0 0 0 14px var(--focus); }
.rz-me__img, .rz-me__px { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rz-me__px { pointer-events: none; image-rendering: pixelated; }
.rz-me.is-on .rz-me__img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .rz-me__back, .rz-me__card, .rz-me__pic { translate: none; } }

/* ------------------------------------------------------------------ the classic memes */
/* A meme card: the picture with a cream edge and an ink line, like a sticker, its words set as
   type under it. A toast is one that pops up at the side for a moment and goes again. */
.rz-meme { position: relative; margin: 0; width: min(100%, 300px); padding: 8px 8px 12px; border-radius: var(--radius-m); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 3px var(--ink), var(--hard-m); rotate: -2deg; display: grid; gap: 10px; }
.rz-meme img { width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: calc(var(--radius-m) - 4px); display: block; }
.rz-meme figcaption { padding: 0 4px; font: 700 15px/1.3 var(--font-text); }
.rz-toast { position: fixed; z-index: 60; right: var(--space-5); bottom: calc(var(--space-9) + env(safe-area-inset-bottom, 0px)); width: min(260px, 62vw); pointer-events: none; }
.rz-toast[hidden] { display: grid !important; visibility: hidden; opacity: 0; translate: 0 24px; }
.rz-toast { transition: opacity .3s, translate .45s cubic-bezier(.3, 1.4, .4, 1), visibility 0s; }
.rz-toast[hidden] { transition: opacity .3s, translate .3s, visibility 0s .3s; }
@media (prefers-reduced-motion: reduce) { .rz-toast, .rz-toast[hidden] { transition: none; translate: none; } }

/* A fade between the two states (the case studies' night): every colour eases across together */
html.rz-fading, html.rz-fading *, html.rz-fading *::before, html.rz-fading *::after { transition: background-color .8s ease, color .8s ease, border-color .8s ease, fill .8s ease, stroke .8s ease, box-shadow .8s ease, opacity .8s ease; }

/* Words for a screen reader only */
.rz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ a conversation that plays */
.is-playing [data-rz-step] { transition: opacity .3s, translate .5s cubic-bezier(.3, 1.4, .4, 1), scale .5s cubic-bezier(.3, 1.4, .4, 1); }
.is-playing [data-rz-step]:not(.is-on) { opacity: 0; translate: 0 18px; scale: .94; }

/* ------------------------------------------------------------------ for someone who asked for less movement */
@media (prefers-reduced-motion: reduce) {
  .rz-tick__run, .rz-btn--tilt, .rz-ribbon--breathes, .rz-snore span, .rz-status i, .rz-dot, .rz-name b.is-extra, .rz-scene__pull, .rz-scene__zs path, .rz-scene__words, .rz-swap__caret { animation: none !important; }
  .rz-hand, .rz-pick, .rz-layers, .rz-layer, .rz-hero--home .rz-word-w, .rz-media__box { transition: none !important; }
  .rz-snore { width: auto; height: auto; }
  .rz-snore span { opacity: .9; position: static; margin-right: .2em; }
  .rz-btn, .rz-go, .rz-lid__lid, .rz-fan__card, .rz-list__row, .rz-row__x, .rz-st .lid, .rz-link { transition: none; }
}
