/* Morin Innovation — black and white, native Apple type. Color only lives in photos and presented work. */

:root {
    --paper: #fff;
    --ink-strong: #000;
    --ink: #1d1d1f;
    --ink-mute: #6e6e73;
    --night: #000;
    --night-ink: #f5f5f7;
    --night-mute: #a1a1a6;
    --rule-night: .24;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --page: clamp(20px, 4.4vw, 64px);
    --page-left: max(var(--page), env(safe-area-inset-left));
    --page-right: max(var(--page), env(safe-area-inset-right));
    --spine: clamp(40px, 4.4vw, 64px);
}

/* The hinge of a foldable becomes the spine of every spread. */
@media (horizontal-viewport-segments: 2) {
    :root { --spine: max(40px, calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 24px)); }
}

*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--paper);
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
[hidden] { display: none !important; }
img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ink-strong);
    color: var(--paper);
    font: 500 15px/1 var(--font);
    text-decoration: none;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Liquid Glass, in grays only. */
.glass {
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    backdrop-filter: blur(18px) saturate(1.8);
    box-shadow:
        inset 0 0 0 .5px rgba(0, 0, 0, .14),
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 1px 2px rgba(0, 0, 0, .06),
        0 8px 24px rgba(0, 0, 0, .08);
}
.glass--dark {
    background: rgba(28, 28, 30, .66);
    box-shadow:
        inset 0 0 0 .5px rgba(255, 255, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 8px 24px rgba(0, 0, 0, .4);
}

.capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--ink-strong);
    font: 500 15px/1 var(--font);
    letter-spacing: -.01em;
    text-decoration: none;
    transition: transform .2s ease;
}
.capsule:hover { transform: translateY(-1px); }
.capsule:active { transform: scale(.98); }
.capsule:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.capsule svg { width: 16px; height: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.capsule--step { padding-right: 18px; }
button.capsule { border: 0; cursor: pointer; }
/* The arrow waits two seconds, then shows the way down. */
.capsule--step svg { animation: step-hint 1.6s cubic-bezier(.45, 0, .55, 1) 2s infinite; }
.glass--dark.capsule { color: var(--night-ink); }
@keyframes step-hint {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(5px); }
}

.kicker {
    color: var(--ink-mute);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-wrap: balance;
}

/* Hero — a person first. */

.hero {
    position: relative;
    display: grid;
    grid-template-areas: "bar" "portrait" "copy";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    min-height: 100svh;
    /* Safari's floating toolbar sits over the bottom of the page. */
    padding: 0 var(--page-right) max(64px, calc(env(safe-area-inset-bottom) + 32px)) var(--page-left);
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
}

.bar {
    grid-area: bar;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding-top: env(safe-area-inset-top);
}
.brand { color: var(--ink-strong); border-radius: 6px; }
.brand svg { width: 84px; height: 22px; fill: currentColor; }
.brand:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 6px; }

.hero-copy { grid-area: copy; position: relative; z-index: 1; align-self: center; }
.hero h1 {
    margin-top: 10px;
    color: var(--ink-strong);
    font-size: clamp(40px, 12vw, 64px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.035em;
}
.hook {
    max-width: 26ch;
    margin-top: 12px;
    font-size: clamp(19px, 5.2vw, 24px);
    line-height: 1.3;
    letter-spacing: -.012em;
}

/* On tall screens the bust may run past the edges: the shoulders are faded there. */
.portrait {
    grid-area: portrait;
    position: relative;
    justify-self: center;
    width: 58svh;
    max-width: 150vw;
    aspect-ratio: 1;
    margin-bottom: -5%;
}
.portrait img { width: 100%; height: auto; }

.scanline {
    position: absolute;
    top: 0;
    right: -6%;
    left: -6%;
    height: 1px;
    background: var(--ink-strong);
    opacity: 0;
    pointer-events: none;
}
.scanline::before, .scanline::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 1px;
    height: 9px;
    background: inherit;
}
.scanline::before { left: 0; }
.scanline::after { right: 0; }

/* The universe: black, white type, rules. */

.partners, .chapter, .footer {
    background: var(--night);
    color: var(--night-ink);
}
.partners .kicker, .chapter .kicker { color: var(--night-mute); }

.partners {
    position: relative;
    display: grid;
    gap: clamp(24px, 5svh, 40px);
    align-content: center;
    padding: clamp(48px, 9svh, 160px) var(--page-right) clamp(48px, 9svh, 160px) var(--page-left);
}
.partners h2, .chapter h2 {
    max-width: 15ch;
    margin-top: 10px;
    font-size: clamp(30px, 7.4vw, 56px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.03em;
}
.partner-list {
    padding: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, var(--rule-night));
}
.partner-list > li { border-top: 1px solid rgba(255, 255, 255, var(--rule-night)); }
.partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    padding: 14px 0;
    color: inherit;
    text-decoration: none;
}
.partner-name {
    font-size: clamp(20px, 5.4vw, 32px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.partner-note {
    grid-column: 1;
    margin-top: 2px;
    color: var(--night-mute);
    font-size: 14px;
    line-height: 1.35;
}
.partner-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 16px;
    height: 16px;
    color: var(--night-mute);
    transition: transform .2s ease, color .2s ease;
}
a.partner:hover .partner-arrow { color: var(--night-ink); transform: translate(2px, -2px); }
/* ClearSurgery leads: a larger name, and its rule stays lit. */
.partner-list > .partner-lead { border-top-color: rgba(255, 255, 255, .9); }
.partner-lead .partner-name {
    font-size: clamp(26px, 7.4vw, 44px);
    font-weight: 600;
    letter-spacing: -.025em;
}
.partner-lead .partner-note { color: var(--night-ink); }
/* The members of STUDIO·84 hang from a branch of its line. */
.partner-members {
    --member: clamp(17px, 4.4vw, 21px);
    --pad: 7px;
    --twig: calc(var(--pad) + var(--member) * .625);
    margin: -6px 0 12px;
    padding: 0 0 0 22px;
    list-style: none;
}
.partner-members li { position: relative; }
.partner-members li::before,
.partner-members li::after {
    content: "";
    position: absolute;
    left: -16px;
    width: 10px;
    border: 0 solid rgba(255, 255, 255, var(--rule-night));
}
.partner-members li::before { top: 0; bottom: 0; border-left-width: 1px; }
.partner-members li:last-child::before { bottom: auto; height: var(--twig); }
.partner-members li::after { top: var(--twig); border-top-width: 1px; }
.partner-members .partner { padding: var(--pad) 0; }
.partner-members .partner-name { font-size: var(--member); line-height: 1.25; }
.partner-members .partner-note { font-size: 13px; }
/* Short portrait screens (iPhone SE, iPhone Duo cover): everything still fits in one screen.
   Partners keep their names only. */
@media (orientation: portrait) and (max-height: 760px) {
    .portrait { width: 46svh; }
    .hero h1 { margin-top: 6px; }
    .hook { margin-top: 8px; line-height: 1.25; }
    .hero-actions { margin-top: 18px; }
    .partner-note { display: none; }
    /* Wider windows (iPad in Split View, a small browser window): the names follow the height too. */
    .partner-name { font-size: clamp(20px, min(5.4vw, 3.4svh), 32px); }
    .partner-lead .partner-name { font-size: clamp(24px, min(7.4vw, 4.6svh), 44px); }
    .partner-members { --member: clamp(16px, min(4.4vw, 2.8svh), 21px); }
}
a.partner:focus-visible { outline: 2px solid var(--night-ink); outline-offset: 4px; border-radius: 4px; }

.chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: clamp(88px, 14svh, 168px) var(--page-right) clamp(88px, 14svh, 168px) var(--page-left);
}
.chapter::before {
    content: "";
    position: absolute;
    top: 0;
    right: var(--page-right);
    left: var(--page-left);
    height: 1px;
    background: rgba(255, 255, 255, var(--rule-night));
    transform-origin: left;
}
.lede {
    max-width: 30ch;
    margin-top: 20px;
    color: var(--night-mute);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.35;
    letter-spacing: -.012em;
}

.skills, .apps { padding: 0; list-style: none; }
.skill, .app { border-top: 1px solid rgba(255, 255, 255, var(--rule-night)); }
.skill:last-child, .app:last-child { border-bottom: 1px solid rgba(255, 255, 255, var(--rule-night)); }

.skill {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 20px;
    padding: 28px 0 30px;
}
.skill-index {
    grid-row: span 2;
    padding-top: .9em;
    color: var(--night-mute);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
}
.skill h3 {
    font-size: clamp(28px, 3.2vw, 44px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.028em;
}
.skill p, .app-desc, .method-body p {
    max-width: 50ch;
    color: var(--night-mute);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -.008em;
}

.app {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 28px 0;
}
.app-icon { width: 64px; height: 64px; transition: transform .25s ease; }
.app:hover .app-icon { transform: translateY(-2px) scale(1.03); }
.app-name { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.app-tagline { margin-top: 2px; font-size: 17px; line-height: 1.35; }
.app-desc { margin-top: 8px; font-size: 15px; }
.app-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    margin-top: 12px;
    color: var(--night-mute);
    font-size: 13px;
}
.app-meta a, .footer a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--night-ink);
    font-weight: 500;
    text-decoration: none;
}
.app-meta a svg { width: 14px; height: 14px; }
.apps-store { margin-top: 24px; font-size: 15px; }
.apps-store a { display: inline-flex; align-items: center; gap: 6px; color: var(--night-ink); font-weight: 500; text-decoration: none; }
.apps-store a svg { width: 14px; height: 14px; }
.apps-store a:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-meta a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.manifesto {
    max-width: none !important;
    font-size: clamp(40px, 9vw, 104px) !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
}
.manifesto span { display: block; }
.method-body { display: grid; gap: 20px; }
.method-body .lede { margin-top: 0; color: var(--night-ink); }
.method-photo img { width: 100%; height: auto; border-radius: 20px; }
.method-photo figcaption { margin-top: 12px; color: var(--night-mute); font-size: 13px; }

/* The address always holds on one line: its size follows the width of its column (it is 13.1 times as wide as its font size). */
.contact-body { container-type: inline-size; }
.email {
    display: inline-block;
    max-width: 100%;
    color: var(--night-ink);
    font-size: clamp(14px, 7cqi, 60px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.03em;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat;
    transition: background-size .45s ease;
}
.email:hover, .email:focus-visible { background-size: 100% 1px; outline: none; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.footer {
    display: grid;
    gap: 14px;
    padding: 40px var(--page-right) max(40px, calc(env(safe-area-inset-bottom) + 24px)) var(--page-left);
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--night-mute);
    font-size: 13px;
}
.footer-logo { justify-self: start; color: var(--night-ink); }
.footer-logo svg { width: 76px; height: 20px; fill: currentColor; }

/* Documents (terms, notices): the white side, a reading column. */
.doc-bar { padding: 0 var(--page-right) 0 var(--page-left); }
.doc {
    display: block;
    max-width: calc(68ch + var(--page-left) + var(--page-right));
    margin: 0 auto;
    padding: 24px var(--page-right) 96px var(--page-left);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -.008em;
}
.doc h1 {
    margin: 24px 0 40px;
    color: var(--ink-strong);
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
}
.doc h2 {
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .12);
    color: var(--ink-strong);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.02em;
}
.doc p, .doc li { margin: 0 0 16px; overflow-wrap: anywhere; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--ink-strong); text-underline-offset: 3px; }

/* Dock: there from the start, light glass on the white hero, dark glass once the page turns black.
   On the right page, so the fold stays clear. */
.dock {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: var(--page-right);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 48px;
    padding: 0 6px;
    border-radius: 999px;
    color: var(--ink-strong);
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.on-dark .dock {
    background: rgba(28, 28, 30, .66);
    box-shadow:
        inset 0 0 0 .5px rgba(255, 255, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 8px 24px rgba(0, 0, 0, .4);
    color: var(--night-ink);
}
/* The hero already shows the logo: the mark joins the dock once inside. */
.dock .dock-brand { display: none; }
.is-inside .dock .dock-brand { display: inline-flex; }
.dock a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: inherit;
    font: 500 14px/1 var(--font);
    text-decoration: none;
}
.dock a:hover { background: rgba(0, 0, 0, .06); }
.on-dark .dock a:hover { background: rgba(255, 255, 255, .1); }
.dock a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.dock-brand svg { width: 30px; height: 15px; fill: currentColor; }
.dock-links { display: none; }
.dock-links a[href="#contact"] { display: inline-flex; }
@media (max-width: 639px) {
    .dock-links { display: flex; }
    .dock-links a:not([href="#contact"]) { display: none; }
}
@media (min-width: 640px) {
    .dock-links { display: flex; }
}

/* Scan reveal: a 1 px line sweeps down and leaves the text behind it, like the portrait. */
@property --reveal {
    syntax: "<number>";
    inherits: false;
    initial-value: 1;
}
[data-scan] { position: relative; }
.scan-ready [data-scan] {
    --reveal: 0;
    clip-path: inset(-.3em -.3em calc((1 - var(--reveal)) * (100% + .6em) - .3em) -.3em);
}
.scan-ready [data-scan]::after {
    content: "";
    position: absolute;
    top: calc(var(--reveal) * (100% + .6em) - .3em - 1px);
    right: -.3em;
    left: -.3em;
    height: 1px;
    background: currentColor;
    opacity: min(1, calc((1 - var(--reveal)) * 12));
}
.scan-ready [data-scan].is-scanned { animation: scan-reveal 1.1s cubic-bezier(.3, .6, .2, 1) var(--delay, 0s) forwards; }
.manifesto span:nth-child(2) { --delay: .22s; }
.manifesto span:nth-child(3) { --delay: .44s; }
@keyframes scan-reveal {
    from { --reveal: 0; }
    to { --reveal: 1; }
}
.scan-ready .chapter::before { transform: scaleX(0); }
.scan-ready .chapter.is-scanned::before { animation: draw-rule 1.4s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes draw-rule {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Spreads: text on the left page, the content on the right; nothing important on the fold.
   Every landscape screen from 560 pt gets one, phones included; portrait screens stack. */

@media (orientation: landscape) and (min-width: 560px) {
    .hero {
        grid-template-areas: "bar bar bar" "copy . portrait";
        grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        padding-bottom: 0;
    }
    .hero-copy { align-self: center; padding-bottom: 8svh; }
    .hero h1 { font-size: clamp(36px, 5.4vw, 96px); }
    .hook { font-size: clamp(18px, 1.9vw, 30px); }
    .portrait {
        align-self: end;
        width: min(92svh, 120%);
        margin-bottom: 0;
    }

    .partners, .chapter {
        grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr);
        align-items: start;
    }
    /* The dock sits above the right page: the partners start below it. */
    .partners { align-items: center; min-height: 100svh; padding-block: 72px 24px; }
    .partners-intro, .chapter-head { grid-column: 1; }
    .partner-list, .chapter > :not(.chapter-head) { grid-column: 3; }
    .chapter-head { position: sticky; top: 96px; }
    .partners h2, .chapter h2 { font-size: clamp(30px, 3.6vw, 56px); }
    .manifesto { font-size: clamp(36px, 5.4vw, 96px) !important; }
    .partner-name { font-size: clamp(20px, min(2.2vw, 4.4svh), 30px); }
    .partner-lead .partner-name { font-size: clamp(26px, min(3.2vw, 6.4svh), 44px); }
    .partner-members { --member: clamp(16px, min(1.5vw, 3svh), 21px); }
    .partner { padding: min(14px, 2.4svh) 0; }
    .footer { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
}

/* Landscape windows of middling height (an iPad window, a small browser window): the members keep their names only. */
@media (orientation: landscape) and (min-width: 560px) and (max-height: 660px) {
    .partner-members .partner-note { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .bar { min-height: 56px; }
    .brand svg { height: 18px; }
    .hero-copy { padding-bottom: 4svh; }
    .hook { margin-top: 8px; }
    .hero-actions { margin-top: 18px; }
    .partner { padding: 6px 0; }
    .partner-note { display: none; }
    .partner-members { --member: 15px; --pad: 2px; margin: -4px 0 6px; }
    /* Keep the first partner clear of the dock. */
    .partners { padding-top: 64px; padding-bottom: 8px; }
    .chapter-head { position: static; }
}

/* The stage: added by intro.js only when WebGL2, the photo and its map are ready. */

.intro-lines { display: none; }
html.has-stage .intro-lines { display: block; }
html.has-stage .intro { height: 400svh; transition: background-color .3s ease; }
/* When Safari's toolbar shrinks, the screen grows taller than the frame: what shows below it turns black with the passage. */
html.has-stage .intro:has(> .intro-frame.is-wiped) { background: var(--night); }
html.has-stage .intro-frame {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    background: var(--paper);
}
html.has-stage .intro-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
html.has-stage .hero,
html.has-stage .partners {
    position: absolute;
    inset: 0;
    min-height: 0;
    background: transparent;
}
html.has-stage .bar,
html.has-stage .hero-copy {
    opacity: var(--hero, 1);
    transform: translateY(calc((1 - var(--hero, 1)) * -24px));
}
html.has-stage .portrait img {
    -webkit-mask: url(/assets/img/florent-morin-map.png) center / 100% 100% no-repeat;
    mask: url(/assets/img/florent-morin-map.png) center / 100% 100% no-repeat;
    clip-path: inset(calc(var(--scan, 0) * 100%) 0 0 0);
}
html.has-stage .scanline {
    top: calc(var(--scan, 0) * 100%);
    opacity: var(--scan-on, 0);
}
html.has-stage .partners {
    opacity: var(--partners, 0);
    pointer-events: none;
}

/* Progress of the passage: appears as soon as scrolling starts, gone on arrival. */
.stage-progress { display: none; }
html.has-stage .stage-progress {
    position: absolute;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 24px));
    left: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    color: var(--ink-strong);
    font: 500 13px/1 var(--font);
    letter-spacing: -.005em;
    white-space: nowrap;
    opacity: var(--progress-on, 0);
    transform: translateX(-50%);
    pointer-events: none;
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
html.has-stage .is-wiped .stage-progress {
    background: rgba(28, 28, 30, .66);
    box-shadow:
        inset 0 0 0 .5px rgba(255, 255, 255, .16),
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 8px 24px rgba(0, 0, 0, .4);
    color: var(--night-ink);
}
.stage-progress svg { width: 14px; height: 14px; animation: step-hint 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.stage-progress-track {
    position: relative;
    width: 72px;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: color-mix(in srgb, currentColor 20%, transparent);
}
.stage-progress-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}
/* Above Safari's floating toolbar on phones; on the right page in landscape. */
@media (pointer: coarse) and (orientation: portrait) {
    html.has-stage .stage-progress { bottom: calc(env(safe-area-inset-bottom) + 84px); }
}
@media (orientation: landscape) and (min-width: 560px) {
    html.has-stage .stage-progress { right: var(--page-right); left: auto; transform: none; }
}
html.has-stage.is-inside .hero { pointer-events: none; }
html.has-stage.is-inside .partners { pointer-events: auto; }
/* The canvas draws the rules while they land; the borders take over at the very end. */
html.has-stage .partner-list,
html.has-stage .partner-list > li { border-color: rgba(255, 255, 255, calc(var(--rule-night) * var(--rules, 1))); }
html.has-stage .partner-list > .partner-lead { border-top-color: rgba(255, 255, 255, calc(.9 * var(--rules, 1))); }

@media (prefers-reduced-motion: reduce) {
    .capsule, .capsule--step svg, .app-icon, .dock, .email { transition: none; animation: none; }
}
