/* Redesign 1111: the hero of worlds, the one frame that threads the text chapters, Skills, Work and the Archive.
   References (design/references/redesign-1111): Siena Film (sliced display title + ticket card), David Whyte
   (lines that arrive and blur away inside one medium), Lama Lama (rows with image strips), Ottografie (a giant
   word with its pictures around it), De Maldè (focus view with a counter). */

:root {
    --rd-bg: #0b0b0a;
    --rd-ink: #f2ede4;
    --rd-dim: rgba(242, 237, 228, .56);
    --rd-faint: rgba(242, 237, 228, .16);
    --rd-accent: #d65c39;
    --rd-paper: #efe9df;
    --rd-paper-ink: #151412;
    --rd-serif: 'Zodiak', 'Source Serif 4', Georgia, serif;
    --rd-sans: 'Geist', 'Inter', system-ui, sans-serif;
    --rd-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
    --rd-ease: cubic-bezier(.22, 1, .36, 1);
    --rd-gutter: clamp(16px, 4vw, 56px);
}

/* ------------------------------------------------------------------ the frame (one element, whole page) */

.rd-lens {
    position: fixed;
    left: 0; top: 0; width: 0; height: 0;
    z-index: 40;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    pointer-events: none;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
    will-change: left, top, width, height;
    contain: layout paint;
}
.rd-lens[data-mode="dock"] { pointer-events: auto; cursor: pointer; }
.rd-lens-fig {
    position: absolute; inset: 0; margin: 0;
    opacity: 0;
    transition: opacity .7s var(--rd-ease), transform 1.4s var(--rd-ease);
    transform: scale(1.06);
}
.rd-lens-fig.is-on { opacity: 1; transform: scale(1); }
.rd-lens-fig img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(var(--rd-zoom, 1));
    transform-origin: 50% 50%;
}
.rd-lens-fig[data-fit="contain"] img { object-fit: contain; padding: 6%; }
.rd-lens::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55));
    opacity: var(--rd-shade, 0);
    pointer-events: none;
}

/* the ticket: shown when the frame is docked */
.rd-ticket {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    background: rgba(11, 11, 10, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--rd-ink);
    font: 500 10px/1.2 var(--rd-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: var(--rd-ticket, 0);
    transform: translateY(calc((1 - var(--rd-ticket, 0)) * 100%));
}
.rd-ticket-n { color: var(--rd-accent); }
.rd-ticket-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ticket-bar { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--rd-page, 0) * 100%); background: var(--rd-accent); }

/* ------------------------------------------------------------------ hero */

.rd-hero {
    position: relative;
    height: 190vh;
    background: var(--rd-bg);
    color: var(--rd-ink);
    padding: 0 !important;
}
.rd-hero-pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    overflow: hidden;
}
.rd-hero-eyebrow, .rd-hero-meta, .rd-worlds, .rd-hero-foot, .rd-hero-count {
    position: absolute; z-index: 45;
    font: 500 11px/1.4 var(--rd-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rd-hero-eyebrow { left: var(--rd-gutter); top: 96px; color: var(--rd-dim); max-width: 22ch; }
.rd-hero-count { right: var(--rd-gutter); top: 96px; color: var(--rd-dim); font-variant-numeric: tabular-nums; }
.rd-hero-count b { color: var(--rd-ink); font-weight: 500; }

.rd-hero-meta {
    right: var(--rd-gutter); top: 50%;
    width: min(22vw, 260px);
    transform: translateY(-50%);
    text-align: right;
}
.rd-hero-meta dt { color: var(--rd-dim); margin-top: 18px; }
.rd-hero-meta dt:first-child { margin-top: 0; }
.rd-hero-meta dd {
    margin: 4px 0 0;
    font: 400 clamp(15px, 1.25vw, 19px)/1.25 var(--rd-serif);
    letter-spacing: 0; text-transform: none;
    color: var(--rd-ink);
}
.rd-hero-meta dd i { font-style: italic; }

/* the sliced title: four bands of the same line, each clipped to a quarter of its height */
.rd-title {
    position: absolute; z-index: 46;
    left: var(--rd-gutter); right: var(--rd-gutter);
    bottom: 15vh;
    margin: 0;
    font: 400 clamp(46px, 8.6vw, 156px)/.92 var(--rd-serif);
    letter-spacing: -.035em;
    color: var(--rd-ink);
    pointer-events: none;
    mix-blend-mode: difference;
}
.rd-title-stack { position: relative; display: block; }
.rd-title-ghost { visibility: hidden; display: block; }
.rd-title-word { position: absolute; inset: 0; display: block; }
.rd-band {
    position: absolute; inset: 0;
    display: block;
    white-space: normal;
    will-change: transform, opacity;
}
.rd-band:nth-child(1) { clip-path: inset(0 0 75% 0); }
.rd-band:nth-child(2) { clip-path: inset(25% 0 50% 0); }
.rd-band:nth-child(3) { clip-path: inset(50% 0 25% 0); }
.rd-band:nth-child(4) { clip-path: inset(75% 0 0 0); }
.rd-title em { font-style: italic; }

.rd-worlds {
    left: var(--rd-gutter); right: var(--rd-gutter); bottom: 5vh;
    display: flex; flex-wrap: wrap; gap: 6px 22px;
    list-style: none; margin: 0; padding: 0;
}
.rd-worlds button {
    all: unset; cursor: pointer;
    position: relative;
    color: var(--rd-dim);
    padding: 4px 0;
    transition: color .3s;
}
.rd-worlds button::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: var(--rd-accent);
    transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}
.rd-worlds button[aria-current="true"] { color: var(--rd-ink); }
.rd-worlds button:hover, .rd-worlds button:focus-visible { color: var(--rd-ink); }

.rd-hero-foot { right: var(--rd-gutter); bottom: 5vh; color: var(--rd-dim); }

/* the name, after the worlds */
.rd-hero[data-final="1"] .rd-hero-meta { opacity: 0; }
.rd-hero-meta { transition: opacity .5s; }
.rd-role {
    position: absolute; z-index: 46;
    left: var(--rd-gutter); bottom: calc(15vh - 52px);
    max-width: 52ch;
    margin: 0;
    font: 400 clamp(15px, 1.2vw, 18px)/1.45 var(--rd-sans);
    color: var(--rd-dim);
    opacity: 0; transform: translateY(10px);
    transition: opacity .6s var(--rd-ease), transform .6s var(--rd-ease);
}
.rd-hero[data-final="1"] .rd-role { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ the text chapters */

.rd-ch {
    position: relative;
    height: 300vh;
    background: var(--rd-bg);
    color: var(--rd-ink);
    padding: 0 !important;
}
.rd-ch-pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    overflow: hidden;
}
.rd-ch-head {
    position: absolute; z-index: 45;
    left: 53vw; top: 14vh;
    display: flex; gap: 14px; align-items: baseline;
    font: 500 11px/1 var(--rd-mono);
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--rd-dim);
    opacity: var(--rd-in, 0);
}
.rd-ch-head b { color: var(--rd-accent); font-weight: 500; }
.rd-ch-text {
    position: absolute; z-index: 45;
    left: 53vw; right: var(--rd-gutter); top: 22vh;
    margin: 0;
    font: 400 clamp(26px, 2.75vw, 46px)/1.16 var(--rd-serif);
    letter-spacing: -.015em;
}
.rd-line {
    display: block;
    margin-bottom: .32em;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(22px);
    will-change: opacity, filter, transform;
}
.rd-line em { font-style: italic; color: #fff; }
.rd-line--small { font: 400 clamp(15px, 1.15vw, 18px)/1.55 var(--rd-sans); color: var(--rd-dim); margin-top: .9em; max-width: 46ch; }
.rd-ch-caption {
    position: absolute; z-index: 45;
    left: 6vw; bottom: 6vh;
    font: 500 10px/1.4 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase;
    color: var(--rd-dim);
    opacity: var(--rd-in, 0);
}

/* the bridge into Engineering */
.rd-ch--bridge { height: 360vh; }
.rd-bridge-word {
    position: absolute; z-index: 46;
    left: 0; right: 0; top: 50%;
    margin: 0;
    transform: translateY(-50%);
    text-align: center;
    font: 400 clamp(64px, 15vw, 280px)/.86 var(--rd-serif);
    letter-spacing: -.05em;
    color: var(--rd-ink);
    pointer-events: none;
}
.rd-bridge-word .rd-band { opacity: 0; }

/* ------------------------------------------------------------------ Skills: rows with strips */

#skills .rd-skills {
    position: relative;
    background: var(--rd-bg);
    color: var(--rd-ink);
    padding: 18vh 0 16vh !important;
    overflow: hidden;
}
:is(#skills, #work, #gallery) .rd-sec-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding: 0 var(--rd-gutter) 7vh;
}
:is(#skills, #work, #gallery) .rd-sec-title {
    margin: 0;
    font: 400 clamp(52px, 9vw, 170px)/.88 var(--rd-serif);
    letter-spacing: -.045em;
}
:is(#skills, #work, #gallery) .rd-sec-title em { font-style: italic; color: var(--rd-accent); }
:is(#skills, #work, #gallery) .rd-sec-note {
    margin: 0; max-width: 34ch;
    font: 400 15px/1.5 var(--rd-sans);
    color: var(--rd-dim);
    text-align: right;
}
:is(#skills, #work, #gallery) .rd-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rd-faint); }
:is(#skills, #work, #gallery) .rd-row {
    position: relative;
    display: grid;
    grid-template-columns: 4ch minmax(0, 30fr) minmax(0, 22fr) minmax(0, 48fr);
    gap: 24px;
    align-items: center;
    padding: 22px var(--rd-gutter) 22px;
    border-bottom: 1px solid var(--rd-faint);
    transition: background .4s;
}
:is(#skills, #work, #gallery) .rd-row:hover { background: rgba(242, 237, 228, .035); }
:is(#skills, #work, #gallery) .rd-row-n { font: 500 11px/1 var(--rd-mono); color: var(--rd-dim); letter-spacing: .08em; }
:is(#skills, #work, #gallery) .rd-row-name {
    margin: 0;
    font: 400 clamp(28px, 3.1vw, 54px)/1 var(--rd-serif);
    letter-spacing: -.025em;
}
:is(#skills, #work, #gallery) .rd-row-name small {
    display: block; margin-top: 10px;
    font: 400 14px/1.45 var(--rd-sans); letter-spacing: 0;
    color: var(--rd-dim);
    max-width: 36ch;
}
:is(#skills, #work, #gallery) .rd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
:is(#skills, #work, #gallery) .rd-tags span {
    font: 500 10px/1 var(--rd-mono); letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 8px;
    background: rgba(242, 237, 228, .08);
    color: var(--rd-ink);
}
:is(#skills, #work, #gallery) .rd-strip {
    display: flex; gap: 8px;
    overflow: hidden;
    margin-right: calc(var(--rd-gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
}
:is(#skills, #work, #gallery) .rd-strip-track { display: flex; gap: 8px; transform: translateX(var(--x, 0px)); will-change: transform; }
:is(#skills, #work, #gallery) .rd-strip img {
    height: clamp(84px, 9.5vw, 150px);
    width: auto;
    aspect-ratio: var(--ar, 1.6);
    object-fit: cover;
    display: block;
    background: #1a1a18;
    transition: transform .6s var(--rd-ease), filter .6s;
    filter: saturate(.85);
}
:is(#skills, #work, #gallery) .rd-row:hover .rd-strip img { filter: none; }
:is(#skills, #work, #gallery) .rd-strip img:hover { transform: scale(1.04); }

/* ------------------------------------------------------------------ Work: a giant name with its pictures around it */

#work.rd-work { position: relative; background: var(--rd-paper); color: var(--rd-paper-ink); padding: 18vh 0 10vh !important; }
#work.rd-work .rd-sec-note { color: rgba(21, 20, 18, .6); }
#work.rd-work .rd-sec-title em { color: var(--rd-accent); }
:is(#skills, #work, #gallery) .rd-set {
    position: relative;
    height: 150vh;
}
:is(#skills, #work, #gallery) .rd-set-pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    display: grid; place-items: center;
    overflow: hidden;
}
:is(#skills, #work, #gallery) .rd-set-word {
    position: relative; z-index: 2;
    margin: 0;
    font: 400 clamp(56px, 11vw, 210px)/.9 var(--rd-serif);
    letter-spacing: -.05em;
    text-align: center;
    white-space: nowrap;
}
:is(#skills, #work, #gallery) .rd-set-word span { display: inline-block; transform: translateY(var(--y, 0)); opacity: var(--o, 1); }
:is(#skills, #work, #gallery) .rd-set-sub {
    position: absolute; z-index: 3; left: 50%; top: calc(50% + clamp(48px, 7vw, 120px));
    transform: translateX(-50%);
    width: min(44ch, 86vw);
    margin: 0;
    text-align: center;
    font: 400 15px/1.5 var(--rd-sans);
    color: rgba(21, 20, 18, .66);
}
:is(#skills, #work, #gallery) .rd-set-sub a { color: inherit; text-underline-offset: 3px; }
:is(#skills, #work, #gallery) .rd-set-n { position: absolute; z-index: 3; top: 12vh; left: 50%; transform: translateX(-50%); font: italic 400 18px/1 var(--rd-serif); }
:is(#skills, #work, #gallery) .rd-shot {
    position: absolute; z-index: 1;
    margin: 0;
    width: var(--w, 22vw);
    left: var(--l); top: var(--t);
    transform: translate3d(0, var(--py, 0px), 0);
    will-change: transform;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .45);
}
:is(#skills, #work, #gallery) .rd-shot img { width: 100%; height: auto; display: block; }
:is(#skills, #work, #gallery) .rd-shot[data-front] { z-index: 3; }
:is(#skills, #work, #gallery) .rd-pill {
    position: sticky; z-index: 20;
    bottom: 22px;
    margin: -64px auto 0;
    width: max-content;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: rgba(21, 20, 18, .88);
    color: var(--rd-ink);
    font: 500 11px/1 var(--rd-mono); letter-spacing: .06em; text-transform: uppercase;
    backdrop-filter: blur(10px);
}
:is(#skills, #work, #gallery) .rd-pill a { color: var(--rd-bg); background: var(--rd-paper); padding: 8px 12px; border-radius: 999px; text-decoration: none; }
:is(#skills, #work, #gallery) .rd-work-all { text-align: center; padding: 10vh 0 0; font: 400 clamp(22px, 2vw, 32px)/1 var(--rd-serif); }
:is(#skills, #work, #gallery) .rd-work-all a { color: inherit; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ Archive */

#gallery.rd-archive { position: relative; background: var(--rd-paper); color: var(--rd-paper-ink); padding: 0 0 14vh !important; }
:is(#skills, #work, #gallery) .rd-arch-intro { position: relative; height: 220vh; }
:is(#skills, #work, #gallery) .rd-arch-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
:is(#skills, #work, #gallery) .rd-arch-word {
    position: relative; z-index: 2;
    margin: 0;
    font: 400 clamp(72px, 17vw, 330px)/.84 var(--rd-serif);
    letter-spacing: -.055em;
    white-space: nowrap;
}
:is(#skills, #work, #gallery) .rd-arch-word .rd-half { display: block; overflow: hidden; height: .46em; }
:is(#skills, #work, #gallery) .rd-arch-word .rd-half + .rd-half { height: .5em; }
:is(#skills, #work, #gallery) .rd-arch-word .rd-half > span { display: block; }
:is(#skills, #work, #gallery) .rd-arch-word .rd-half + .rd-half > span { margin-top: -.46em; }
:is(#skills, #work, #gallery) .rd-arch-rise {
    position: absolute; z-index: 1;
    left: 50%; top: 50%;
    width: 100vw; height: 100vh;
    transform: translate(-50%, -50%);
    clip-path: inset(var(--ct, 50%) var(--cx, 38%) var(--cb, 50%) var(--cx, 38%));
    margin: 0;
}
:is(#skills, #work, #gallery) .rd-arch-rise img { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(#skills, #work, #gallery) .rd-arch-count {
    position: absolute; z-index: 3; left: var(--rd-gutter); bottom: 6vh;
    font: 500 11px/1.4 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase;
}

:is(#skills, #work, #gallery) .rd-arch-bar {
    position: sticky; top: 0; z-index: 30; padding-top: 84px !important;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
    padding: 18px var(--rd-gutter);
    background: rgba(239, 233, 223, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 20, 18, .1);
}
:is(#skills, #work, #gallery) .rd-arch-bar button {
    all: unset; cursor: pointer;
    font: 500 11px/1 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase;
    color: rgba(21, 20, 18, .5);
    padding: 6px 0;
}
:is(#skills, #work, #gallery) .rd-arch-bar button sup { font-size: 9px; margin-left: 2px; }
:is(#skills, #work, #gallery) .rd-arch-bar button[aria-pressed="true"] { color: var(--rd-paper-ink); box-shadow: inset 0 -1px 0 var(--rd-accent); }
:is(#skills, #work, #gallery) .rd-arch-bar .rd-arch-view { margin-left: auto; }

:is(#skills, #work, #gallery) .rd-grid {
    padding: 4vh var(--rd-gutter) 0;
    columns: 4 260px;
    column-gap: 14px;
}
:is(#skills, #work, #gallery) .rd-grid[data-size="l"] { columns: 2 420px; }
#gallery .rd-grid--photos { columns: 3 300px; column-gap: 18px; padding-top: 10vh; }
#gallery .rd-grid--photos .rd-tile { margin-bottom: 26px; }
:is(#skills, #work, #gallery) .rd-tile {
    break-inside: avoid;
    margin: 0 0 14px;
    cursor: zoom-in;
    position: relative;
}
:is(#skills, #work, #gallery) .rd-tile[hidden] { display: none; }
:is(#skills, #work, #gallery) .rd-tile img { width: 100%; height: auto; display: block; background: #ddd5c8; aspect-ratio: var(--ar); }
:is(#skills, #work, #gallery) .rd-tile figcaption {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0 0;
    font: 500 10px/1.3 var(--rd-mono); letter-spacing: .06em; text-transform: uppercase;
    color: rgba(21, 20, 18, .55);
}
:is(#skills, #work, #gallery) .rd-tile figcaption b { color: var(--rd-paper-ink); font-weight: 500; }
:is(#skills, #work, #gallery) .rd-tile { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--rd-ease), transform .8s var(--rd-ease); }
:is(#skills, #work, #gallery) .rd-tile.is-in { opacity: 1; transform: none; }

:is(#skills, #work, #gallery) .rd-focus {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(11, 11, 10, .96);
    color: var(--rd-ink);
    display: grid;
    grid-template-rows: auto 1fr auto;
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility 0s .35s;
}
:is(#skills, #work, #gallery) .rd-focus.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
:is(#skills, #work, #gallery) .rd-focus-top, :is(#skills, #work, #gallery) .rd-focus-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px var(--rd-gutter);
    font: 500 11px/1.3 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase;
}
:is(#skills, #work, #gallery) .rd-focus-cap { font: 400 clamp(18px, 1.6vw, 26px)/1.2 var(--rd-serif); letter-spacing: 0; text-transform: none; }
:is(#skills, #work, #gallery) .rd-focus-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--rd-gutter); }
:is(#skills, #work, #gallery) .rd-focus-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
:is(#skills, #work, #gallery) .rd-focus button { all: unset; cursor: pointer; color: var(--rd-ink); padding: 6px 2px; }
:is(#skills, #work, #gallery) .rd-focus button:focus-visible { outline: 1px solid var(--rd-accent); outline-offset: 4px; }
:is(#skills, #work, #gallery) .rd-focus-counter { font-variant-numeric: tabular-nums; }
:is(#skills, #work, #gallery) .rd-focus-counter i { display: inline-block; width: 60px; height: 1px; background: var(--rd-dim); vertical-align: middle; margin: 0 10px; }

/* ------------------------------------------------------------------ phones */

@media (max-width: 760px) {
    .rd-hero { height: 170vh; }
    .rd-hero-eyebrow, .rd-hero-count { top: 78px; }
    .rd-hero-meta { display: none; }
    .rd-title { bottom: 21vh; font-size: clamp(40px, 12.5vw, 64px); }
    .rd-role { bottom: calc(21vh - 70px); font-size: 14px; }
    .rd-worlds { bottom: 3.5vh; gap: 4px 14px; font-size: 10px; }
    .rd-hero-foot { display: none; }

    .rd-ch { height: 260vh; }
    .rd-ch-head { left: 16px; top: auto; bottom: calc(52vh + 14px); }
    .rd-ch-text { left: 16px; right: 16px; top: auto; bottom: 7vh; font-size: clamp(21px, 6.2vw, 28px); }
    .rd-ch-caption { display: none; }
    .rd-line--small { font-size: 14px; }

    :is(#skills, #work, #gallery) .rd-sec-head { grid-template-columns: 1fr; }
    :is(#skills, #work, #gallery) .rd-sec-note { text-align: left; }
    :is(#skills, #work, #gallery) .rd-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px; }
    :is(#skills, #work, #gallery) .rd-row-n { display: none; }
    :is(#skills, #work, #gallery) .rd-strip { margin-right: -16px; }
    :is(#skills, #work, #gallery) .rd-strip img { height: 92px; }

    :is(#skills, #work, #gallery) .rd-set { height: 130vh; }
    :is(#skills, #work, #gallery) .rd-shot { --w: 40vw !important; }
    :is(#skills, #work, #gallery) .rd-set-word { font-size: clamp(44px, 14vw, 80px); white-space: normal; padding: 0 16px; }

    :is(#skills, #work, #gallery) .rd-grid { columns: 2 140px; column-gap: 8px; padding-top: 3vh; }
    :is(#skills, #work, #gallery) .rd-grid[data-size="l"] { columns: 1; }
    :is(#skills, #work, #gallery) .rd-tile { margin-bottom: 8px; }
    :is(#skills, #work, #gallery) .rd-tile figcaption span { display: none; }
    :is(#skills, #work, #gallery) .rd-arch-bar { gap: 6px 14px; padding: 64px 16px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .rd-line { filter: none !important; transform: none !important; }
    .rd-lens-fig, .rd-tile { transition: none; }
}

html.loader-active .rd-lens { visibility: hidden; }

/* the site's .section rule is a centred flex box with padding and min-height; the redesign's sections lay out on their own */
.rd-hero, .rd-ch, .rd-work, .rd-archive {
    display: block !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible;
}
.rd-hero-pin, .rd-ch-pin, .rd-set-pin, .rd-arch-pin { width: 100%; }
.rd-ch, .rd-ch::before, .rd-ch::after { background: var(--rd-bg) !important; }

/* stacking: section backgrounds < the frame (40) < the pinned type (41). The sections must not form a stacking
   context of their own, or their text would sit under the frame. */
.rd-hero, .rd-ch { z-index: auto !important; transform: none !important; }
.rd-hero-pin, .rd-ch-pin { z-index: 41; background: transparent; }

/* old #experience / #work / #gallery rules set uppercase headings, centred columns and their own spacing */
:is(#skills, #work, #gallery) :is(h2, h3, p, figure, ol, li) { text-transform: none; letter-spacing: inherit; }
:is(#skills, #work, #gallery) .rd-sec-title { letter-spacing: -.045em; text-align: left; }
:is(#skills, #work, #gallery) .rd-row-name { letter-spacing: -.025em; }
#skills .rd-skills, #work.rd-work, #gallery.rd-archive { width: 100%; }

#hero.rd-hero .rd-title { text-transform: none; letter-spacing: -.035em; }
#hero.rd-hero .rd-hero-eyebrow { max-width: none; }
/* the worlds index: a column under the eyebrow (Siena's list), clear of the sound and skip pills at the bottom */
#hero.rd-hero .rd-worlds {
    top: 150px; bottom: auto; right: auto;
    flex-direction: column; gap: 2px;
}
#hero.rd-hero .rd-worlds button { padding: 3px 0; }
#hero.rd-hero .rd-worlds button[aria-current="true"]::before { content: '— '; color: var(--rd-accent); }
@media (max-width: 760px) {
    #hero.rd-hero .rd-worlds { top: auto; bottom: 4vh; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; right: 16px; }
}

.rd-lens { transition: opacity .4s; }
:is(#skills, #work, #gallery) .rd-set { height: 125vh; }

@media (max-width: 760px) {
    /* About's rising paper reaches ~900px up on phones and would cover Chapter I's text */
    #about::before { content: none !important; }
    #hero.rd-hero .rd-worlds { top: 108px; bottom: auto; right: 16px; }
    #hero.rd-hero .rd-hero-count { display: none; }
    :is(#skills, #work, #gallery) .rd-pill { display: none; }
    :is(#skills, #work, #gallery) .rd-set-sub { top: auto; bottom: 14vh; }
}
@media (max-width: 760px) {
    :is(#skills, #work, #gallery) .rd-set-word { font-size: clamp(38px, 11.5vw, 60px); }
}
#gallery.rd-archive .rd-arch-word { width: 100%; text-align: center; transform: none; }
#gallery.rd-archive .rd-arch-word .rd-half, #gallery.rd-archive .rd-arch-word .rd-half > span { text-align: center; transform: none; margin-left: 0; padding: 0; }
/* the caption sits under the text column, clear of the sound pill in the lower left */
.rd-ch-caption { left: 53vw; bottom: 12vh; }

/* a chapter of words alone (On Origin): the lines centred, large, no picture */
.rd-ch--text .rd-ch-head { left: 50%; transform: translateX(-50%); top: 18vh; }
.rd-ch--text .rd-ch-text {
    left: 50%; right: auto; top: 28vh;
    width: min(18ch, 86vw);
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(34px, 4.6vw, 76px);
    line-height: 1.06;
}
.rd-ch--text .rd-line--small { margin: 1.2em auto 0; text-align: center; }
@media (max-width: 760px) {
    .rd-ch--text .rd-ch-head { bottom: auto; top: 16vh; }
    .rd-ch--text .rd-ch-text { top: 24vh; bottom: auto; font-size: clamp(28px, 8.4vw, 40px); width: 88vw; }
}

/* On Origin: a split-flap board, dark, with a cursor; the flaps turn over to the sentence, then the whole board
   turns to paper (rd.js originState). The type is drawn on the board; the heading stays in the page, unseen */
.rd-origin .rd-ch-head { left: 50%; transform: translateX(-50%); top: 16vh; z-index: 46; transition: color .5s; }
.rd-or-board { position: absolute; z-index: 44; inset: 0; width: 100%; height: 100%; display: block; }
.rd-or-term { display: none; }
.rd-ch-pin > .rd-or-cur {
    position: absolute; z-index: 46; left: 0; top: 0; margin: 0;
    display: block; width: .46em; height: .86em;
    background: var(--rd-accent);
    animation: rd-blink 1.05s steps(1) infinite;
    transition: opacity .25s;
    will-change: transform;
}
@keyframes rd-blink { 0%, 55% { visibility: visible; } 56%, 100% { visibility: hidden; } }
.rd-or-serif {
    position: absolute; z-index: 43;
    left: 50%; top: 47%;
    width: 94vw;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    text-transform: none;
    font: 400 clamp(38px, 7.2vw, 138px)/1 var(--rd-serif);
    letter-spacing: -.04em;
    color: transparent;
}
.rd-or-l { display: block; }
.rd-or-w { display: inline-block; white-space: nowrap; }
.rd-or-serif em { font-style: italic; }
.rd-or-small {
    position: absolute; z-index: 46;
    left: 50%; bottom: 11vh;
    width: min(46ch, 88vw);
    margin: 0; padding: 14px 18px;
    transform: translate(-50%, 0);
    text-align: center;
    font: 400 clamp(14px, 1.1vw, 17px)/1.55 var(--rd-sans);
    color: var(--rd-dim);
    opacity: 0;
    transition: color .5s, background .5s;
}
.rd-origin.is-turned .rd-ch-head, .rd-origin.is-turned .rd-ch-head b, .rd-origin.is-turned .rd-ch-head span { color: var(--rd-paper-ink); }
.rd-origin.is-turned .rd-or-small { color: rgba(21, 20, 18, .78); background: var(--rd-paper); }
@media (max-width: 760px) {
    .rd-origin .rd-ch-head { top: 14vh; bottom: auto; }
    .rd-or-serif { font-size: clamp(34px, 11vw, 54px); line-height: 1.04; }
}
@media (prefers-reduced-motion: reduce) { .rd-ch-pin > .rd-or-cur { display: none; } }
/* its settings (rd.js ORT): on the curtain's ink the page furniture is cream; in the hero's display caps the sentence
   is set flush left, as the hero's name and About's heading are */
.rd-origin.is-turned .rd-or-small { background: var(--or-paper, var(--rd-paper)); color: var(--or-ink, #151412); }
.rd-origin.is-turned .rd-ch-head, .rd-origin.is-turned .rd-ch-head b, .rd-origin.is-turned .rd-ch-head span { color: var(--or-ink, #151412); }
.rd-origin--ink:not(.is-turned) .rd-ch-head, .rd-origin--ink:not(.is-turned) .rd-ch-head b, .rd-origin--ink:not(.is-turned) .rd-ch-head span { color: #fbf4e8; }
.rd-origin--ink .rd-ch-pin > .rd-or-cur { background: #fbf4e8; }
.rd-origin--ink .rd-or-small { color: #fbf4e8; }
.rd-origin--o1.rd-origin--caps .rd-or-serif {
    left: 5vw; width: 90vw; top: 51%;
    transform: translateY(-50%);
    text-align: left;
    font: 800 clamp(30px, 5.1vw, 100px)/.94 var(--font-display, 'Syne'), sans-serif;
    letter-spacing: -.025em; text-transform: uppercase;
}
.rd-origin--caps .rd-or-serif em { font-style: normal; }
.rd-origin--caps .rd-ch-head { left: 5vw; transform: none; top: 13vh; }
.rd-origin--caps .rd-or-small { left: auto; right: 5vw; transform: none !important; text-align: left; width: min(38ch, 80vw); bottom: 16vh; }
@media (max-width: 760px) { .rd-origin--o1.rd-origin--caps .rd-or-serif { font-size: clamp(24px, 7.8vw, 40px); top: 46%; } .rd-origin--caps .rd-or-small { right: auto; left: 5vw; bottom: 17vh; padding-left: 0; } }

/* long enough for the scene between the ink curtain (its start) and About sliding over (its end) */
.rd-ch.rd-origin { height: 500vh; }
@media (max-width: 760px) { .rd-or-small { bottom: 21vh; font-size: 13px; } }

/* the other scenes for On Origin (rd.js originAlt, ?or=2..5) */
.rd-origin:not(.rd-origin--o1) .rd-or-small { left: 6vw; right: auto; bottom: 9vh; transform: none; text-align: left; padding: 0; width: min(44ch, 86vw); background: none !important; color: #151412; }
.rd-origin:not(.rd-origin--o1) .rd-ch-head { left: 6vw; transform: none; top: 13vh; }
.rd-origin:not(.rd-origin--o1):not(.is-turned) .rd-ch-head, .rd-origin:not(.rd-origin--o1):not(.is-turned) .rd-ch-head b, .rd-origin:not(.rd-origin--o1):not(.is-turned) .rd-ch-head span { color: #fbf4e8; }

/* 2: the seam */
.rd-or-side { position: absolute; z-index: 43; inset: 0; }
.rd-or-side--a { background: #121211; color: #f2ede4; }
.rd-or-side--b { z-index: 44; background: #efe9df; color: #151412; will-change: clip-path; }
.rd-or-say { position: absolute; left: 6vw; right: 4vw; top: 52%; transform: translateY(-50%); margin: 0; }
.rd-or-say span { display: block; min-height: 1.1em; }
.rd-or-side--a .rd-or-say { font: 500 clamp(18px, 4.1vw, 78px)/1.3 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.03em; text-transform: lowercase; }
.rd-or-side--a .rd-or-say span::before { content: '> '; color: #d65c39; }
.rd-or-side--a .rd-or-say span.is-cur::after { content: ''; display: inline-block; width: .5em; height: .9em; margin-left: .12em; vertical-align: -.1em; background: #d65c39; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-side--b .rd-or-say { font: 400 clamp(36px, 6.9vw, 132px)/1.02 var(--rd-serif); letter-spacing: -.04em; }
.rd-or-side--b .rd-or-say span:last-child { font-style: italic; }
.rd-or-seam { position: absolute; z-index: 45; left: 0; top: 0; bottom: 0; width: clamp(8px, 1.1vw, 18px); margin-left: clamp(-9px, -.55vw, -4px); background: #d65c39; will-change: transform; transition: opacity .2s; }

/* 3: through the cursor */
.rd-or-z { position: absolute; z-index: 43; inset: 0; background: #121211; overflow: hidden; }
.rd-or-zl { position: absolute; z-index: 1; left: 6vw; right: 6vw; top: 50%; transform: translateY(-50%); margin: 0; color: #f2ede4; opacity: 0;
    font: 800 clamp(34px, 8.6vw, 168px)/.94 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.rd-or-zl.is-turn { z-index: 3; color: #151412; font: italic 400 clamp(44px, 11vw, 210px)/.96 var(--rd-serif); letter-spacing: -.045em; text-transform: none; }
.rd-or-zc { position: absolute; z-index: 2; left: 0; top: 0; background: #efe9df; transform-origin: 50% 50%; will-change: transform; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-zc.is-zoom { animation: none; }

/* 4: the blocks */
.rd-or-blocks { z-index: 43; font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; }

/* 5: three grounds */
.rd-or-run { position: absolute; z-index: 43; inset: 0; overflow: hidden; background: #c4623e; }
.rd-or-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.rd-or-pan { flex: none; width: 100vw; height: 100%; margin: 0; padding: 0 6vw; box-sizing: border-box; display: flex; align-items: center;
    font: 800 clamp(36px, 8.4vw, 162px)/.92 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.035em; text-transform: uppercase; }
.rd-or-pan--0 { background: #c4623e; color: #fbf4e8; }
.rd-or-pan--1 { background: #121211; color: #f2ede4; }
.rd-or-pan--1 span::after { content: ''; display: inline-block; width: .42em; height: .74em; margin-left: .1em; background: #d65c39; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-pan--2 { background: #efe9df; color: #151412; font: italic 400 clamp(46px, 12vw, 230px)/.94 var(--rd-serif); letter-spacing: -.045em; text-transform: none; }
@media (max-width: 760px) {
    .rd-origin:not(.rd-origin--o1) .rd-or-small { bottom: 15vh; font-size: 13px; }
    .rd-or-side--a .rd-or-say { font-size: 6.2vw; }
    .rd-or-side--b .rd-or-say { font-size: 12.5vw; }
    .rd-or-zl { font-size: 10.6vw; } .rd-or-zl.is-turn { font-size: 16vw; }
    .rd-or-pan { font-size: 10.6vw; } .rd-or-pan--2 { font-size: 17vw; }
}
@media (prefers-reduced-motion: reduce) { .rd-or-zc, .rd-or-seam { display: none; } }

/* On Origin with pictures (?or=6..8) */
.rd-or-g { position: absolute; z-index: 43; inset: 0; overflow: hidden; transition: background .7s, color .6s; }
.rd-or-k { position: absolute; left: 0; width: 100%; margin: 0; text-align: center; white-space: nowrap; will-change: transform, opacity; }
.rd-or-fig { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 80%; width: auto; max-width: none; transform: translateX(-50%); will-change: transform; }
.rd-or-g6 { background: #c4623e; color: #fbf4e8; }
.rd-origin.is-turned .rd-or-g6 { background: #efe9df; color: #151412; }
.rd-or-g6 canvas.rd-or-fig { aspect-ratio: 1000 / 1284; height: 82%; }
.rd-or-g6 .rd-or-k0, .rd-or-g6 .rd-or-k1, .rd-or-g8 .rd-or-k0, .rd-or-g8 .rd-or-k1 { font: 800 4vw/.98 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.rd-or-g6 .rd-or-k0 { z-index: 1; top: 22vh; font-size: 3.5vw; }
.rd-or-g6 .rd-or-k1 { z-index: 3; top: 68vh; font-size: 5.6vw; }
.rd-or-g6 .rd-or-k2, .rd-or-g8 .rd-or-k2 { z-index: 3; top: 70vh; font: italic 400 7.2vw/.96 var(--rd-serif); letter-spacing: -.045em; opacity: 0; }
.rd-or-g7 { background: #efe9df; color: #151412; }
.rd-or-kw { position: absolute; z-index: 3; left: 0; width: 100%; top: 29vh; }
.rd-or-kw .rd-or-k { position: static; }
.rd-or-g7 .rd-or-k { font: 400 5.6vw/1.02 var(--rd-serif); letter-spacing: -.04em; }
.rd-or-g7 .rd-or-k2 { font-style: italic; color: #c4623e; }
.rd-or-pc { position: absolute; z-index: 1; width: auto; height: auto; max-width: none; will-change: transform; filter: drop-shadow(0 14px 18px rgba(40, 24, 10, .18)); }
.rd-or-pc0 { left: 5vw; top: 17vh; width: 25vw; }
.rd-or-pc1 { right: 3vw; top: 20vh; height: 46vh; }
.rd-or-pc2 { left: 13vw; bottom: 20vh; width: 18vw; }
.rd-or-pc3 { right: 24vw; top: 5vh; height: 22vh; }
.rd-or-pc4 { left: 2vw; top: 40vh; height: 25vh; }
.rd-or-pc5 { right: 6vw; bottom: 7vh; height: 25vh; }
.rd-or-g7 .rd-or-fig { height: 36%; }
.rd-or-g8 { background: #0b0b0a; color: #f2ede4; }
.rd-origin.is-turned .rd-or-g8 { background: #efe9df; color: #151412; }
.rd-or-g8 .rd-or-kw { z-index: 1; top: 14vh; }
.rd-or-g8 .rd-or-fig { height: 84%; }
.rd-or-lamp { position: absolute; z-index: 4; left: 50%; bottom: 5%; width: 12px; height: 24px; margin-left: -6px; background: #d65c39; animation: rd-blink 1.05s steps(1) infinite; transition: opacity .3s; }
@media (max-width: 760px) {
    .rd-or-k { white-space: normal; padding: 0 5vw; box-sizing: border-box; }
    .rd-or-g6 .rd-or-k0 { font-size: 10.4vw; top: 17vh; } .rd-or-g6 .rd-or-k1 { font-size: 12vw; top: 60vh; }
    .rd-or-g6 .rd-or-k2, .rd-or-g8 .rd-or-k2 { font-size: 14.5vw; top: 16vh; }
    .rd-or-g6 canvas.rd-or-fig { height: 58%; } .rd-or-g8 .rd-or-fig { height: 62%; }
    .rd-or-g8 .rd-or-k0, .rd-or-g8 .rd-or-k1 { font-size: 9.6vw; }
    .rd-or-kw { top: 25vh; } .rd-or-g7 .rd-or-k { font-size: 10.6vw; }
    .rd-or-pc0 { left: -6vw; top: 12vh; width: 52vw; } .rd-or-pc1 { right: -3vw; top: 9vh; height: 17vh; }
    .rd-or-pc2 { left: 3vw; bottom: 27vh; width: 34vw; } .rd-or-pc3, .rd-or-pc4, .rd-or-pc5 { display: none; }
    .rd-or-g7 .rd-or-fig { height: 25%; left: 68%; bottom: 25vh; }
}
@media (max-width: 760px) { .rd-origin.rd-origin--o6 .rd-or-small, .rd-origin.rd-origin--o8 .rd-or-small { background: #efe9df !important; padding: 10px 12px; left: calc(6vw - 12px); } }

/* 6, in acts: hard cuts and blinks, no fades */
.rd-or-g6 { transition: none; }
.rd-or-g6.is-dark { background: #0b0b0a; color: #f2ede4; }
.rd-or-g6.is-blink { animation: rd-or-blinkg 1.05s steps(1) infinite; }
.rd-or-g6.is-blink canvas { animation: rd-or-blinkf 1.05s steps(1) infinite; }
@keyframes rd-or-blinkg { 0%, 55% { background: #c4623e; color: #fbf4e8; } 56%, 100% { background: #0b0b0a; color: #c4623e; } }
@keyframes rd-or-blinkf { 0%, 55% { filter: none; } 56%, 100% { filter: invert(1); } }
.rd-or-g6 canvas.rd-or-fig { transform-origin: 50% 34%; }
.rd-or-tb { color: transparent; }
.rd-or-tc { display: inline-block; width: .42em; height: .74em; margin: 0 .08em; vertical-align: -.04em; background: currentColor; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-g6 .rd-or-k2::after { content: ''; display: inline-block; width: .3em; height: .7em; margin-left: .1em; vertical-align: -.06em; background: #c4623e; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-sun { position: absolute; z-index: 1; left: 50%; top: 44%; width: 64vh; height: 64vh; margin: -32vh 0 0 -32vh; border-radius: 50%; background: #c4623e; transform: scale(0); will-change: transform; }
.rd-or-scan { position: absolute; z-index: 4; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(rgba(0, 0, 0, .34) 0 1px, transparent 1px 4px); }
@media (max-width: 760px) { .rd-or-sun { width: 76vw; height: 76vw; margin: -38vw 0 0 -38vw; top: 62%; } }

/* other cuts of the portrait scene (?or=9..11) */
.rd-or-look1 { background: #0b0b0a; color: #f2ede4; }
.rd-or-look1.is-blink { animation-name: rd-or-blinkg1; }
@keyframes rd-or-blinkg1 { 0%, 55% { background: #0b0b0a; color: #f2ede4; } 56%, 100% { background: #f2ede4; color: #0b0b0a; } }
.rd-or-look2 { background: #efe9df; color: #151412; }
.rd-or-look2.is-blink { animation-name: rd-or-blinkg2; }
@keyframes rd-or-blinkg2 { 0%, 55% { background: #efe9df; color: #151412; } 56%, 100% { background: #c4623e; color: #fbf4e8; } }
.rd-or-lid { position: absolute; z-index: 6; left: 0; right: 0; height: 50.2%; background: #c4623e; transform: scaleY(0); will-change: transform; }
.rd-or-lid--a { top: 0; transform-origin: 50% 0; }
.rd-or-lid--b { bottom: 0; transform-origin: 50% 100%; }
.rd-or-eyes { position: absolute; z-index: 2; left: 0; right: 0; top: 34vh; height: 27vh; overflow: hidden; transform: scaleY(0); will-change: transform; }
.rd-or-eyes b { position: absolute; inset: 0; background: url(/assets/burst/jovan-engineer.webp?v=1) 50% calc(13.5vh - 62vw) / 120vw auto no-repeat; animation: rd-or-lidblink 3.4s infinite; }
.is-blink .rd-or-eyes b { animation-duration: 1.05s; }
@keyframes rd-or-lidblink { 0%, 90% { transform: none; } 94% { transform: scaleY(.03); } 100% { transform: none; } }
@media (max-width: 760px) {
    .rd-or-eyes { top: 41vh; height: 17vh; }
    .rd-or-eyes b { background-size: 230vw auto; background-position: 50% calc(8.5vh - 118vw); }
}
@media (prefers-reduced-motion: reduce) { .rd-or-eyes b { animation: none; } }

/* the portrait scene, full bleed: the canvas is the whole screen, the type is the hero's size */
.rd-or-g6 canvas.rd-or-fig { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; aspect-ratio: auto; transform: none; transform-origin: 50% 42%; }
.rd-or-g6 .rd-or-k0 { top: 13vh; left: 4vw; width: 92vw; text-align: left; white-space: normal; font-size: 7.3vw; line-height: .92; }
.rd-or-g6 .rd-or-k1 { top: 64vh; font-size: 6.5vw; }
.rd-or-g6 .rd-or-k2 { top: 67vh; font-size: 7.9vw; }
.rd-or-sun { width: 84vh; height: 84vh; margin: -42vh 0 0 -42vh; top: 46%; }
.rd-origin.rd-origin--o6 .rd-ch-head { top: 9vh; }
@media (max-width: 760px) {
    .rd-or-g6 .rd-or-k0 { font-size: 11.6vw; top: 14vh; text-align: left; }
    .rd-or-g6 .rd-or-k1 { font-size: 13vw; top: 58vh; }
    .rd-or-g6 .rd-or-k2 { font-size: 15.5vw; top: 14vh; text-align: left; }
    .rd-or-sun { width: 92vw; height: 92vw; margin: -46vw 0 0 -46vw; top: 64%; }
    .rd-origin.rd-origin--o6 .rd-ch-head { top: 9vh; }
}

/* On Origin as a story (?or=12, the default): see rd.js originStory */
.rd-or-s { background: #0b0b0a; color: #f2ede4; transition: none; }
.rd-origin.is-turned .rd-or-s { background: #efe9df; color: #151412; }
.rd-or-s canvas.rd-or-fig { left: 0; top: 0; bottom: auto; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
.rd-or-screen { position: absolute; z-index: 5; inset: 0; background: #0b0b0a; color: #f2ede4; transform-origin: 50% 99.2%; will-change: transform; }
.rd-or-screen.is-blink { animation: rd-or-blinkg1 1.05s steps(1) infinite; }
.rd-or-screen.is-lit { background: #f2ede4; color: #f2ede4; }
.rd-or-s .rd-or-k0 { top: 33vh; left: 6vw; width: 88vw; text-align: left; white-space: normal; font: 800 7.3vw/.92 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.rd-or-s .rd-or-k1 { z-index: 3; top: 64vh; font: 800 6.5vw/.94 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.rd-or-s .rd-or-k2 { z-index: 3; top: 67vh; font: italic 400 7.9vw/.96 var(--rd-serif); letter-spacing: -.045em; opacity: 0; }
.rd-or-s .rd-or-k2::after { content: ''; display: inline-block; width: .3em; height: .7em; margin-left: .1em; vertical-align: -.06em; background: #c4623e; animation: rd-blink 1.05s steps(1) infinite; }
.rd-or-c { z-index: 4; top: 61vh; left: 4vw; width: 92vw; text-align: left; white-space: normal; opacity: 0; color: inherit; will-change: transform;
    font: 800 5.7vw/.92 var(--font-display, 'Syne'), sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.rd-origin.rd-origin--o12 .rd-ch-head { top: 8vh; z-index: 47; }
@media (max-width: 760px) {
    .rd-or-s .rd-or-k0 { font-size: 11.6vw; top: 28vh; padding: 0; }
    .rd-or-s .rd-or-k1 { font-size: 13vw; top: 58vh; }
    .rd-or-s .rd-or-k2 { font-size: 15.5vw; top: 14vh; text-align: left; }
    .rd-or-c { font-size: 8.8vw; top: 13vh; padding: 0; }
    .rd-or-s .rd-or-eyes { top: 44vh; }
}

/* the story's grounds and voices: every beat looks different */
.rd-or-s.is-ink { background: #c4623e; color: #fbf4e8; }
.rd-or-s.is-paper { background: #efe9df; color: #151412; }
.rd-origin.is-turned .rd-or-s:not(.is-paper) { background: #0b0b0a; color: #f2ede4; }
.rd-or-s canvas.rd-or-fig { transform-origin: 50% 45%; will-change: transform; }
.rd-or-mq { position: absolute; z-index: 1; left: 0; top: 24vh; margin: 0; display: flex; width: max-content; white-space: nowrap; opacity: 0;
    font: italic 400 21vw/1 var(--rd-serif); letter-spacing: -.05em; animation: rd-or-mq 9s linear infinite; }
.rd-or-mq span { padding-right: .2em; }
@keyframes rd-or-mq { to { transform: translate3d(-50%, 0, 0); } }
.rd-or-c--0 { top: 16vh; left: 5vw; width: 46vw; font-size: 6.4vw; }
.rd-or-c--0::after { content: ''; position: absolute; left: -1vw; right: 6vw; top: 46%; height: .11em; background: #c4623e; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.rd-or-c--1 { top: 60vh; text-align: center; left: 0; width: 100%; font: italic 400 11vw/.96 var(--rd-serif); letter-spacing: -.045em; text-transform: none; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.rd-or-c--2 { top: 20vh; left: 5vw; width: 30vw; font: 500 1.9vw/1.35 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em; }
.rd-or-c--v { top: 62vh; left: 4vw; width: 94vw; font-size: 5.8vw; }
.rd-or-s .rd-or-eyes { top: 0; height: 100%; }
.rd-or-s .rd-or-eyes b { background-size: 190vw auto; background-position: 50% calc(46vh - 97vw); }
@media (max-width: 760px) {
    .rd-or-mq { font-size: 34vw; top: 16vh; }
    .rd-or-c--0 { top: 13vh; width: 90vw; font-size: 11vw; }
    .rd-or-c--1 { top: 62vh; font-size: 15vw; padding: 0 4vw; }
    .rd-or-c--2 { top: 13vh; width: 70vw; font-size: 4.2vw; }
    .rd-or-c--v { top: 13vh; width: 92vw; font-size: 7.4vw; }
    .rd-or-s .rd-or-eyes { top: 0; }
    .rd-or-s .rd-or-eyes b { background-size: 360vw auto; background-position: 50% calc(44vh - 184vw); }
}
@media (prefers-reduced-motion: reduce) { .rd-or-mq { animation: none; } }

/* the first beat is a terminal: a prompt, a mono line, a block cursor that blinks as one does */
.rd-or-screen { background-image: repeating-linear-gradient(rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.rd-or-s .rd-or-k0 { top: 43vh; left: 5vw; width: 92vw; font: 500 4.9vw/1.25 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -.02em; text-transform: none; }
.rd-or-s .rd-or-k0::before { content: '> '; color: #d65c39; }
.rd-or-s .rd-or-tc { width: .6em; height: 1.12em; margin: 0 0 0 .04em; vertical-align: -.2em; background: #f2ede4; animation: rd-blink 1.06s steps(1) infinite; }
.rd-or-screen.is-blink .rd-or-tc { animation-name: rd-or-tblink; background: currentColor; }
@keyframes rd-or-tblink { 0%, 55% { visibility: visible; } 56%, 100% { visibility: hidden; } }
.rd-or-screen.is-blink .rd-or-k0::before { color: inherit; }
@media (max-width: 760px) { .rd-or-s .rd-or-k0 { font-size: 7.6vw; top: 30vh; } }
/* only the cursor blinks there, as in a terminal: the screen itself holds still */
.rd-or-screen.is-blink { animation: none; }
.rd-or-screen.is-blink .rd-or-tc { background: #f2ede4; }
.rd-or-screen.is-blink .rd-or-k0::before { color: #d65c39; }

/* the verbs act on the sentence now; their phrases sit under it */
.rd-or-c--v { top: 74vh; text-align: center; left: 0; width: 100%; font-size: 3.2vw; }
.rd-or-c--1 { top: 62vh; text-shadow: none; }
@media (max-width: 760px) { .rd-or-c--v { top: 14vh; text-align: left; left: 5vw; width: 90vw; font-size: 7.4vw; } }

/* the story, told quietly (overrides the louder passes above): two grounds, one serif voice, a mono terminal */
.rd-or-s { transition: background 1.1s cubic-bezier(.4, 0, .2, 1), color .9s; }
.rd-or-screen { transition: opacity .2s; }
.rd-or-s .rd-or-k0 { white-space: pre-wrap; top: 40vh; font-size: 4.6vw; line-height: 1.32; }
.rd-or-s .rd-or-tb { white-space: pre-wrap; }
.rd-or-s .rd-or-k2, .rd-or-s .rd-or-c { z-index: 4; left: 6vw; width: 50vw; text-align: left; white-space: normal; color: inherit; text-shadow: none; text-transform: none; opacity: 0;
    font: 400 4.7vw/1.04 var(--rd-serif); letter-spacing: -.035em; will-change: transform, opacity; }
.rd-or-s .rd-or-k2 { top: 33vh; font-style: italic; font-size: 6.2vw; }
.rd-or-s .rd-or-k2::after, .rd-or-s .rd-or-c::after { content: none; }
.rd-or-s .rd-or-kwd { opacity: 1 !important; }
.rd-or-s .rd-or-c--0 { top: 35vh; }
.rd-or-s .rd-or-c--1 { top: calc(35vh + 5.6vw); font-style: italic; }
.rd-or-s .rd-or-c--2 { top: 29vh; width: 44vw; font: 500 1.05vw/1.5 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.rd-or-s .rd-or-c--v { top: calc(35vh + var(--i, 0) * 5.5vw); letter-spacing: -.035em !important; }
@media (max-width: 760px) {
    .rd-or-s .rd-or-k0 { font-size: 6.6vw; top: 26vh; }
    .rd-or-s .rd-or-k2, .rd-or-s .rd-or-c { left: 6vw; width: 88vw; padding: 0; font-size: 8vw; }
    .rd-or-s .rd-or-k2 { top: 13vh; font-size: 11vw; }
    .rd-or-s .rd-or-c--0 { top: 14vh; } .rd-or-s .rd-or-c--1 { top: calc(14vh + 10vw); }
    .rd-or-s .rd-or-c--2 { top: 12vh; width: 80vw; font-size: 2.9vw; }
    .rd-or-s .rd-or-c--v { top: calc(17vh + var(--i, 0) * 9.4vw); }
}
@media (min-width: 761px) { .rd-or-s .rd-or-k2, .rd-or-s .rd-or-c { width: 41vw; } }

/* the story, bold by scale: overrides of the quiet pass */
.rd-or-s { transition: background .3s linear, color .3s linear; }
.rd-or-screen { transition: none; }
.rd-or-screen.is-lit { background: #efe9df; color: #efe9df; }
.rd-or-screen.is-lit .rd-or-k0::before, .rd-or-screen.is-lit .rd-or-tc { visibility: hidden; }
.rd-or-s canvas.rd-or-fig { transform-origin: 50% 34%; }
.rd-or-s .rd-or-mq { display: block; z-index: 1; left: 0; top: 23vh; width: max-content; animation: none; opacity: 0; will-change: transform;
    font: italic 400 17vw/1 var(--rd-serif); letter-spacing: -.05em; color: #151412; }
.rd-or-s .rd-or-c { transform: none !important; opacity: 0; }
.rd-or-s .rd-or-c--0, .rd-or-s .rd-or-c--1 { left: 8vw; width: 86vw; text-align: right; font-size: 9.6vw; line-height: 1; letter-spacing: -.045em; }
.rd-or-s .rd-or-c--0 { top: 27vh; }
.rd-or-s .rd-or-c--1 { top: calc(27vh + 10.4vw); color: #c4623e; }
.rd-or-s .rd-or-c--2 { top: 15vh; left: 6vw; width: 60vw; font-size: 1.1vw; }
.rd-or-s .rd-or-c--v { left: 6vw; width: 90vw; top: calc(22vh + var(--i, 0) * 9.6vw); font-size: 8.8vw; line-height: 1.02; letter-spacing: -.045em !important; }
@media (max-width: 760px) {
    .rd-or-s .rd-or-mq { font-size: 30vw; top: 15vh; }
    .rd-or-s .rd-or-c--0, .rd-or-s .rd-or-c--1 { left: 5vw; width: 90vw; font-size: 13.4vw; text-align: left; }
    .rd-or-s .rd-or-c--0 { top: 13vh; } .rd-or-s .rd-or-c--1 { top: calc(13vh + 28vw); }
    .rd-or-s .rd-or-c--2 { top: 12vh; left: 5vw; width: 84vw; font-size: 2.9vw; }
    .rd-or-s .rd-or-c--v { left: 5vw; width: 92vw; top: calc(19vh + var(--i, 0) * 14.5vw); font-size: 12.6vw; }
}
@media (min-width: 761px) {
    .rd-or-s .rd-or-c--0, .rd-or-s .rd-or-c--1 { left: 46vw; width: 49vw; font-size: 5.1vw; white-space: nowrap; }
    .rd-or-s .rd-or-c--0 { top: 34vh; }
    .rd-or-s .rd-or-c--1 { top: calc(34vh + 5.9vw); }
}

/* the story: type that does what it says */
.rd-or-s .rd-or-mq-o { color: transparent; -webkit-text-stroke: .011em #151412; }
.rd-or-s .rd-or-mq-f { position: absolute; left: 0; top: 0; white-space: nowrap; }
.rd-or-s .rd-or-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .09em .2em; margin: -.14em -.09em -.2em; }
.rd-or-s .rd-or-ch { display: inline-block; will-change: transform; }
.rd-or-s .rd-or-c--v.is-ol { -webkit-text-stroke: .013em currentColor; -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, currentColor var(--f, 0%), transparent var(--f, 0%)); -webkit-background-clip: text; background-clip: text; }

/* the story's last frame: three verbs, three scales; numbered; the middle one measured */
.rd-or-s { --u: min(1vw, 1.72vh); --vt: 23vh; }
.rd-or-s .rd-or-c--v, .rd-or-s .rd-or-an { left: 0; width: 100vw; padding: 0 4vw 0 calc(6vw + var(--u) * 3.4); box-sizing: border-box;
    font-size: calc(var(--u) * 6); line-height: 1.02; top: calc(var(--vt) + var(--i, 0) * var(--u) * 7.3); }
.rd-or-s .rd-or-c--v.is-big { font-size: calc(var(--u) * 8.3); line-height: .98; top: calc(var(--vt) + var(--u) * 15.6); letter-spacing: -.055em !important; }
.rd-or-s .rd-or-c--v::before { content: attr(data-n); position: absolute; left: 6vw; top: calc(var(--u) * 1.1); font: 500 calc(var(--u) * .95)/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: .1em; color: #c4623e; -webkit-text-fill-color: #c4623e; -webkit-text-stroke: 0; }
.rd-or-s .rd-or-c--v.is-big::before { top: calc(var(--u) * 1.5); }
.rd-or-s .rd-or-an { position: absolute; z-index: 3; --i: 1; height: 1.02em; opacity: 0; pointer-events: none; padding: 0;
    clip-path: inset(-1em calc((1 - var(--a, 0)) * 100%) -1em 0); -webkit-clip-path: inset(-1em calc((1 - var(--a, 0)) * 100%) -1em 0); }
.rd-or-an b { position: absolute; left: 0; right: 0; height: 1px; background: rgba(196, 98, 62, .75); }
.rd-or-an b:nth-child(1) { top: .11em; } .rd-or-an b:nth-child(2) { top: .3em; } .rd-or-an b:nth-child(3) { top: .915em; }
.rd-or-an span { position: absolute; right: 4vw; bottom: 4px; font: 500 calc(var(--u) * .16em)/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #c4623e; }
@media (max-width: 760px) {
    .rd-or-s { --u: 1.5vw; --vt: 19vh; }
    .rd-or-s .rd-or-c--v, .rd-or-s .rd-or-an { padding: 0 4vw 0 13vw; top: calc(var(--vt) + var(--i, 0) * var(--u) * 7.6); }
    .rd-or-s .rd-or-c--v.is-big { font-size: 13vw; padding-left: 5vw; top: calc(var(--vt) + var(--u) * 19); }
    .rd-or-s .rd-or-c--v::before { left: 5vw; font-size: 2.6vw; top: 2vw; }
    .rd-or-s .rd-or-c--v.is-big::before { top: -5vw; }
    .rd-or-an span { font-size: 8px; }
    .rd-or-an b:nth-child(2) span { display: none; }
}

/* the story's end: one verb at a time, then the next section's ground and its announcement */
.rd-or-next { display: none; }
.rd-or-s.is-red, .rd-origin.is-turned .rd-or-s.is-red { background: #9d392c; color: #f2ede4; }
.rd-or-s .rd-or-c--v, .rd-or-s .rd-or-an { left: 0; width: 100vw; padding: 0 4vw 0 6vw; box-sizing: border-box; white-space: nowrap;
    font-size: 12vw; line-height: 1.02; top: calc(51vh - .56em); letter-spacing: -.045em !important; }
.rd-or-s .rd-or-c--v::before { content: none; }
.rd-or-s .rd-or-c--v.is-big { white-space: normal; font-size: calc(var(--u) * 8.3); line-height: .98; top: 29vh; letter-spacing: -.055em !important; }
.rd-or-s .rd-or-an { padding: 0; }
.rd-or-sl { display: block; will-change: transform; }
.rd-or-sl + .rd-or-sl { position: absolute; left: 6vw; top: 0; }
.rd-or-sl:nth-child(1) { clip-path: inset(-10% -50vw 62% -50vw); -webkit-clip-path: inset(-10% -50vw 62% -50vw); }
.rd-or-sl:nth-child(2) { clip-path: inset(38% -50vw 36% -50vw); -webkit-clip-path: inset(38% -50vw 36% -50vw); }
.rd-or-sl:nth-child(3) { clip-path: inset(64% -50vw -20% -50vw); -webkit-clip-path: inset(64% -50vw -20% -50vw); }
.rd-or-s .rd-or-nx { left: 0; width: 100vw; padding: 0 6vw; box-sizing: border-box; text-align: center; top: calc(50vh - .6em);
    font: italic 400 calc(var(--u) * 7.6)/1.05 var(--rd-serif); letter-spacing: -.04em; color: #f2ede4; white-space: normal; }
@media (max-width: 760px) {
    .rd-or-s .rd-or-c--v, .rd-or-s .rd-or-an { padding: 0 5vw; top: calc(42vh - .56em); }
    .rd-or-s .rd-or-an { padding: 0; }
    .rd-or-sl + .rd-or-sl { left: 5vw; }
    .rd-or-s .rd-or-c--v.is-big { font-size: 13vw; padding-left: 5vw; top: 24vh; }
    .rd-or-s .rd-or-nx { font-size: 12.5vw; top: 34vh; }
}
.rd-or-s .rd-or-c--v.is-a { display: grid; }
.rd-or-s .rd-or-sl, .rd-or-s .rd-or-sl + .rd-or-sl { position: static; grid-area: 1 / 1; }
.rd-or-s .rd-or-c--v.is-u { padding-right: 13vw; }
.rd-or-s .rd-or-c--v.is-big { font-size: calc(var(--u) * 10.2); top: calc(50vh - 1.02em); }
@media (max-width: 760px) {
    .rd-or-s .rd-or-c--v.is-u { padding-right: 5vw; }
    .rd-or-s .rd-or-c--v.is-big { font-size: 13.4vw; top: 24vh; }
    .rd-or-an span { display: none; }
}
.rd-or-s .rd-or-sl:nth-child(1) { clip-path: inset(-10% -50vw 54% -50vw); -webkit-clip-path: inset(-10% -50vw 54% -50vw); }
.rd-or-s .rd-or-sl:nth-child(2) { clip-path: inset(46% -50vw 29% -50vw); -webkit-clip-path: inset(46% -50vw 29% -50vw); }
.rd-or-s .rd-or-sl:nth-child(3) { clip-path: inset(71% -50vw -20% -50vw); -webkit-clip-path: inset(71% -50vw -20% -50vw); }

/* the story's end, without cuts: the cursor draws the paper across, the next section's ground slides up */
.rd-or-pp { position: absolute; inset: 0; z-index: 5; background: #efe9df; color: #151412; overflow: hidden; visibility: hidden; }
.rd-or-rp { position: absolute; inset: 0; z-index: 7; background: #9d392c; color: #f2ede4; overflow: hidden; visibility: hidden; will-change: transform; }
.rd-or-cb { position: absolute; z-index: 6; left: -2px; top: 0; bottom: 0; width: max(3px, .28vw); background: #d65c39; opacity: 0; will-change: transform; }
.rd-or-s .rd-or-pp .rd-or-c--v.is-big { transform-origin: 6vw 50%; }
.rd-or-s .rd-or-an { opacity: 1; clip-path: none; -webkit-clip-path: none; }
@media (max-width: 760px) { .rd-or-s .rd-or-pp .rd-or-c--v.is-big { transform-origin: 5vw 50%; } }
/* the handover lands on About's own washed red: the scene's last ground and main.js's handoff veil are that colour, not cream */
.rd-or-rp { background: #b66e64; }
#about-handoff-veil { background: #b66e64 !important; }

/* more of the same hand: typed label, drawn cuts, pixel measurements, 0/1 letters, the next chapter's number */
.rd-or-s .rd-or-c.is-lb { white-space: nowrap; }
.rd-or-ct { position: absolute; z-index: 5; left: 0; width: 100vw; height: 1px; background: #d65c39; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; }
.rd-or-cb b { position: absolute; left: 10px; top: 13vh; font: 500 10px/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; color: #d65c39; white-space: nowrap; }
.rd-or-dm { position: absolute; top: calc(51vh + .62em); height: .09em; border-left: 1px solid #c4623e; border-right: 1px solid #c4623e; box-sizing: border-box; will-change: transform; }
.rd-or-dm::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(196, 98, 62, .75); }
.rd-or-dm span { position: absolute; left: 0; top: calc(100% + 8px); font: 500 10px/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #c4623e; white-space: nowrap; }
.rd-or-s .rd-or-ch.is-d { color: #c4623e; }
.rd-or-nl { position: absolute; left: 0; width: 100vw; top: calc(50vh - var(--u) * 9.4); margin: 0; text-align: center; opacity: 0; will-change: transform;
    font: 500 11px/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .22em; text-transform: uppercase; color: #f2ede4; }
.rd-or-nl::after { content: ''; display: block; width: calc(var(--u) * 14); height: 1px; margin: 14px auto 0; background: currentColor; opacity: .6; transform: scaleX(var(--l, 0)); }
@media (max-width: 760px) {
    .rd-or-dm { top: calc(42vh + .62em); }
    .rd-or-s .rd-or-c.is-lb { white-space: normal; }
    .rd-or-nl { top: calc(34vh - 13vw); font-size: 9px; }
    .rd-or-cb b { top: 16vh; }
}

/* three verbs, three voices: a heavy grotesque to be cut, a light italic to be read, a bold roman to stand */
.rd-or-s .rd-or-c--v.is-a { font-family: 'Syne', var(--rd-sans); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em !important; line-height: 1.02; }
.rd-or-s .rd-or-sl:nth-child(1) { clip-path: inset(-10% -50vw 57% -50vw); -webkit-clip-path: inset(-10% -50vw 57% -50vw); }
.rd-or-s .rd-or-sl:nth-child(2) { clip-path: inset(43% -50vw 33.5% -50vw); -webkit-clip-path: inset(43% -50vw 33.5% -50vw); }
.rd-or-s .rd-or-sl:nth-child(3) { clip-path: inset(66.5% -50vw -20% -50vw); -webkit-clip-path: inset(66.5% -50vw -20% -50vw); }
.rd-or-s .rd-or-c--v.is-u { font-style: italic; font-weight: 300; letter-spacing: -.05em !important; }
.rd-or-s .rd-or-c--v.is-u.is-ol { -webkit-text-stroke: .009em currentColor; }
.rd-or-s .rd-or-pp .rd-or-c--v.is-u { font-weight: 400; }
.rd-or-s .rd-or-c--v.is-big { font-weight: 700; letter-spacing: -.06em !important; line-height: .95; }
.rd-or-s .rd-or-ch.is-d { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; font-weight: 400; font-size: .8em; letter-spacing: 0; }
.rd-or-s .rd-or-nx { font-weight: 300; letter-spacing: -.045em; }
@media (max-width: 760px) {
    .rd-or-s .rd-or-c--v.is-a { white-space: normal; font-size: 15.5vw; line-height: .98; top: calc(42vh - 1em); }
}

/* drafting grid under the measured word, the next chapter's numeral behind its announcement, the full stop in ink */
.rd-or-gr { position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(196, 98, 62, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 98, 62, .14) 1px, transparent 1px);
    background-size: 5vw 5vw; background-position: 6vw 51vh; }
.rd-or-gn { position: absolute; right: 3vw; bottom: -9vw; font: italic 300 46vw/.8 var(--rd-serif); letter-spacing: -.06em; color: rgba(242, 237, 228, .11); pointer-events: none; will-change: transform; }
.rd-or-s .rd-or-ch.is-dot { color: #c4623e; }
@media (max-width: 760px) { .rd-or-gr { background-size: 10vw 10vw; background-position: 5vw 42vh; } .rd-or-gn { font-size: 78vw; bottom: 6vh; } }

/* the chapter's title card on the ink curtain */
.rd-or-card { position: fixed; inset: 0; z-index: 100000; pointer-events: none; overflow: hidden; opacity: 0; color: #151412; }
.rd-or-cardt { position: absolute; left: 6vw; top: calc(50vh - .5em); margin: 0; white-space: nowrap; will-change: transform;
    font: 300 20vw/1 var(--rd-serif); font-style: italic; letter-spacing: -.055em; }
.rd-or-cardn { display: none; }
/* no title frame: the ink goes dark, and what is left is the dark screen with its cursor */
.rd-or-cardt { visibility: hidden; }
.rd-or-cardd { position: absolute; inset: 0; background: #0b0b0a; opacity: 0; }
.rd-or-cardp { position: absolute; left: -1.2em; top: -.5em; visibility: hidden; color: #d65c39; font: 500 1em/1 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; font-style: normal; }
.rd-or-cardc { position: absolute; left: 0; top: 0; background: #f2ede4; visibility: hidden; animation: rd-blink 1.06s steps(1) infinite; }
@media (max-width: 760px) { .rd-or-cardt { font-size: 24vw; } }
.rd-or-card .rd-or-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .09em .2em; margin: -.14em -.09em -.2em; }
.rd-or-card .rd-or-ch { display: inline-block; will-change: transform; }
@media (max-width: 760px) {
    /* on a phone About scrolls in from below, paler than the scene's last ground: the ground lightens towards it */
    .rd-or-rp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; pointer-events: none; opacity: var(--g, 0);
        background: linear-gradient(rgba(218, 177, 166, 0), rgb(218, 177, 166)); }
}

/* seamless handover: the ground changes colour in place, the announcement layer has no ground of its own */
.rd-or-rp { background: transparent; }

/* ------------------------------------------------------------------ chapters III-VI: words alone, wide enough for a whole clause on a line */
.rd-ch--text .rd-ch-text { top: 24vh; width: min(24ch, 88vw); font-size: clamp(32px, 4.4vw, 74px); letter-spacing: -.03em; }
.rd-ch--text .rd-line--small { max-width: 52ch; letter-spacing: 0; }
@media (max-width: 760px) { .rd-ch--text .rd-ch-text { top: 22vh; font-size: clamp(27px, 7.8vw, 38px); width: 90vw; } }

/* On Origin: the paper is plain. No grid, no type anatomy, no measure under the word. */
.rd-or-gr, .rd-or-s .rd-or-an, .rd-or-dm { display: none !important; }
