/* MirrorDock website. One stylesheet for every page.
 * Look: tall condensed headlines, tiny spaced mono labels, warm ink / cream / sky / signal colours. */

:root {
    --ink: #1d1815;
    --ink-2: #27201c;
    --ink-3: #352c27;
    --cream: #f3e8da;
    --cream-2: #e9dccb;
    --cream-dim: rgba(243, 232, 218, 0.7);
    --cream-faint: rgba(243, 232, 218, 0.14);
    --sky: #8199da;
    --sky-deep: #6d86c9;
    --signal: #ef5b32;
    --signal-deep: #d9481f;
    --ink-on-light: #1d1815;
    --ink-dim: rgba(29, 24, 21, 0.72);
    --ink-faint: rgba(29, 24, 21, 0.16);

    --display: "Anton", "Impact", "Arial Narrow", sans-serif;
    --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "DM Mono", "Consolas", ui-monospace, monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1280px;
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--signal);
    color: var(--ink);
    padding: 10px 16px;
    font-weight: 700;
    z-index: 100;
}

.skip:focus {
    left: 8px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- type ---------- */

.label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.3;
}

.display {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 0.002em;
    margin: 0;
}

.mirror {
    display: inline-block;
    transform: scaleX(-1);
}

.lead {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--cream-dim);
    max-width: 34em;
    margin: 0;
}

.on-light .lead,
.on-light .muted {
    color: var(--ink-dim);
}

.muted {
    color: var(--cream-dim);
}

kbd {
    font-family: var(--mono);
    font-size: 0.82em;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid currentColor;
    border-bottom-width: 2px;
    white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-signal {
    background: var(--signal);
    color: var(--ink);
}

.btn-signal:hover {
    background: #ff6a40;
}

.btn-ink {
    background: var(--ink);
    color: var(--cream);
}

.btn-ghost {
    border-color: var(--cream-faint);
    color: var(--cream);
}

.btn-ghost:hover {
    border-color: var(--cream);
}

.on-light .btn-ghost {
    border-color: var(--ink-faint);
    color: var(--ink);
}

.on-light .btn-ghost:hover {
    border-color: var(--ink);
}

.btn-note {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
    margin-top: 12px;
}

.on-light .btn-note {
    color: var(--ink-dim);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(29, 24, 21, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-faint);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.wordmark {
    font-family: var(--display);
    font-size: 26px;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wordmark .mark {
    width: 26px;
    height: 26px;
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream-dim);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--cream);
}

.nav .btn {
    padding: 10px 18px;
    font-size: 14px;
    font-family: var(--body);
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--cream);
    padding: 8px;
    cursor: pointer;
}

.menu-toggle svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--cream-faint);
        padding: 8px var(--gutter) 20px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--cream-faint);
        font-size: 13px;
    }

    .nav .btn {
        margin-top: 16px;
        justify-content: center;
        border-bottom: 0;
    }
}

/* ---------- sections ---------- */

section {
    position: relative;
}

.band {
    padding: clamp(72px, 10vw, 140px) 0;
}

.on-light {
    color: var(--ink);
}

.bg-cream {
    background: var(--cream);
}

.bg-sky {
    background: var(--sky);
}

.bg-signal {
    background: var(--signal);
}

.bg-ink-2 {
    background: var(--ink-2);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    border-top: 1px solid currentColor;
    padding-top: 14px;
    margin-bottom: clamp(36px, 5vw, 64px);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .section-head .label:last-child {
        display: none;
    }
}

.section-title {
    font-size: clamp(48px, 8.2vw, 124px);
    margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- hero ---------- */

.hero {
    padding-top: clamp(20px, 3vw, 36px);
    padding-bottom: clamp(56px, 8vw, 110px);
    overflow: hidden;
}

.hero-labels {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--cream-dim);
}

.hero-word {
    font-size: clamp(64px, 19.6vw, 268px);
    line-height: 0.84;
    margin: 10px 0 0;
    white-space: nowrap;
    color: var(--cream);
    text-align: center;
    letter-spacing: -0.005em;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    margin-top: clamp(28px, 4vw, 48px);
}

.hero h1 {
    font-size: clamp(40px, 5.4vw, 78px);
    margin-bottom: 26px;
}

.hero h1 em {
    font-style: normal;
    color: var(--signal);
}

.hero .ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: var(--cream-dim);
}

.facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.facts li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
}

.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: clamp(-150px, -9vw, -40px);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        margin-top: 8px;
    }

    .hero-labels .label:nth-child(2) {
        display: none;
    }
}

/* ---------- the phone mock (shared by hero and walkthrough) ---------- */

.device {
    display: flex;
    align-items: stretch;
    gap: 12px;
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
}

.phone {
    --w: 300px;
    width: var(--w);
    aspect-ratio: 9 / 19.4;
    border-radius: calc(var(--w) * 0.16);
    padding: calc(var(--w) * 0.035);
    background: #0b0a0a;
    position: relative;
    box-shadow:
        0 0 0 2px #8d9096,
        0 0 0 4px #4f5257,
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex: none;
}

/* side buttons */
.phone::before,
.phone::after {
    content: "";
    position: absolute;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #5b5e64, #a8abb1);
}

.phone::before {
    left: -7px;
    top: 22%;
    height: 12%;
}

.phone::after {
    right: -7px;
    top: 27%;
    height: 14%;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--w) * 0.125);
    overflow: hidden;
    background: #f6f4f1;
    color: #111;
    font-family: var(--body);
}

.island {
    position: absolute;
    top: 2.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 31%;
    height: 4%;
    background: #000;
    border-radius: 999px;
    z-index: 5;
}

.statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5.2% 9% 0;
    font-size: calc(var(--w) * 0.045);
    font-weight: 700;
    height: 9%;
}

.statusbar .icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.statusbar .icons i {
    display: block;
    width: calc(var(--w) * 0.05);
    height: calc(var(--w) * 0.028);
    border-radius: 2px;
    background: #111;
}

.statusbar .icons i:last-child {
    width: calc(var(--w) * 0.075);
    border-radius: 3px;
}

/* sidebar beside the phone, like the app's floating toolbar */
.toolbar {
    width: 46px;
    border-radius: 16px;
    background: #1b1c20;
    border: 1px solid #3a3c42;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    flex: none;
}

.toolbar span {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #2b2d31;
    display: grid;
    place-items: center;
}

.toolbar span.plain {
    background: none;
}

.toolbar span.on {
    background: #2563eb;
}

.toolbar svg {
    width: 16px;
    height: 16px;
    color: #f1f3f4;
}

.toolbar .sep {
    width: 22px;
    height: 1px;
    background: #3a3c42;
    border-radius: 0;
}

.toolbar .rec i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f25c54;
}

/* ---------- sample app on the hero phone ---------- */

.app {
    padding: 0 7% 6%;
    display: flex;
    flex-direction: column;
    height: 91%;
    font-size: calc(var(--w) * 0.042);
}

.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4% 0 6%;
}

.app-hello small {
    display: block;
    color: #7a746d;
    font-size: 0.82em;
}

.app-hello b {
    font-size: 1.32em;
    letter-spacing: -0.01em;
}

.app-avatar {
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--sky);
}

.app-kpi {
    background: #1d1815;
    color: #f3e8da;
    border-radius: 1.1em;
    padding: 1em 1.1em;
    position: relative;
}

.app-kpi small {
    display: block;
    font-size: 0.78em;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.app-kpi b {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.5em;
    line-height: 1.05;
}

.app-kpi .trend {
    color: #9fe3a8;
    font-size: 0.82em;
    font-weight: 700;
}

.app-chart {
    display: flex;
    align-items: flex-end;
    gap: 5%;
    height: 2.6em;
    margin-top: 0.6em;
}

.app-chart i {
    flex: 1;
    background: rgba(243, 232, 218, 0.28);
    border-radius: 3px 3px 0 0;
}

.app-chart i:last-child {
    background: var(--signal);
}

.app-list {
    margin-top: 6%;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 0.7em;
    background: #fff;
    border-radius: 0.9em;
    padding: 0.7em 0.8em;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.app-row .dot {
    width: 2em;
    height: 2em;
    border-radius: 0.6em;
    flex: none;
}

.app-row b {
    display: block;
    font-size: 0.95em;
}

.app-row small {
    color: #7a746d;
    font-size: 0.78em;
}

.app-row .chip {
    margin-left: auto;
    font-size: 0.72em;
    font-weight: 700;
    padding: 0.3em 0.7em;
    border-radius: 999px;
}

.app-cta {
    margin-top: auto;
    background: var(--signal);
    color: #1d1815;
    text-align: center;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.85em;
    position: relative;
    overflow: hidden;
}

/* the iPhone's pointer (AssistiveTouch), driven by the laptop mouse */
.pointer {
    position: absolute;
    width: 9%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(110, 110, 115, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    z-index: 6;
    left: 70%;
    top: 30%;
    animation: pointer-path 9s ease-in-out infinite;
}

@keyframes pointer-path {
    0%, 6% { left: 70%; top: 30%; transform: scale(1); }
    18% { left: 34%; top: 35%; transform: scale(1); }
    21% { transform: scale(0.75); }
    24% { transform: scale(1); }
    40%, 46% { left: 30%; top: 64%; transform: scale(1); }
    62% { left: 46%; top: 88%; transform: scale(1); }
    65% { transform: scale(0.75); }
    68%, 86% { left: 46%; top: 88%; transform: scale(1); }
    100% { left: 70%; top: 30%; transform: scale(1); }
}

/* a hand-drawn circle on the whiteboard */
.ink-circle {
    position: absolute;
    left: 4%;
    top: 22%;
    width: 72%;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
}

.ink-circle path {
    fill: none;
    stroke: var(--signal);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: ink-draw 9s ease-in-out infinite;
}

@keyframes ink-draw {
    0%, 24% { stroke-dashoffset: 420; opacity: 1; }
    38% { stroke-dashoffset: 0; opacity: 1; }
    84% { stroke-dashoffset: 0; opacity: 1; }
    92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.tap-flash {
    animation: tap-flash 9s ease-in-out infinite;
}

@keyframes tap-flash {
    0%, 63% { filter: none; }
    65% { filter: brightness(0.82); }
    70%, 100% { filter: none; }
}

.hero-caption {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: var(--cream-dim);
}

/* ---------- marquee ---------- */

.marquee {
    background: var(--sky);
    color: var(--ink);
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-track span {
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 84px);
    text-transform: uppercase;
    line-height: 1.12;
    padding: 0.08em 0;
    white-space: nowrap;
}

.marquee-track b {
    color: var(--cream);
    font-weight: 400;
    padding: 0 0.35em;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- problem ---------- */

.workarounds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workarounds li {
    border: 1px solid var(--ink-faint);
    border-radius: var(--radius);
    padding: 26px;
    background: rgba(255, 255, 255, 0.35);
}

.workarounds .x {
    width: 34px;
    height: 34px;
    color: var(--signal-deep);
    margin-bottom: 14px;
    stroke-width: 3;
}

.workarounds h3 {
    font-size: 20px;
    margin: 0 0 8px;
    line-height: 1.25;
}

.workarounds p {
    margin: 0;
    color: var(--ink-dim);
}

.answer {
    margin-top: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.answer p {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
    margin: 0;
    max-width: 18em;
}

@media (max-width: 860px) {
    .workarounds {
        grid-template-columns: 1fr;
    }

    .answer {
        grid-template-columns: 1fr;
    }
}

/* ---------- promises ---------- */

.promises {
    list-style: none;
    margin: 0;
    padding: 0;
}

.promise {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px 40px;
    padding: 34px 0;
    border-top: 1px solid var(--cream-faint);
    align-items: start;
}

.promise:last-child {
    border-bottom: 1px solid var(--cream-faint);
}

.promise .num {
    font-family: var(--mono);
    color: var(--signal);
    font-size: 14px;
    letter-spacing: 0.12em;
    padding-top: 10px;
}

.promise h3 {
    font-size: clamp(36px, 4.6vw, 64px);
}

.promise p {
    margin: 4px 0 14px;
    color: var(--cream-dim);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border: 1px solid var(--cream-faint);
    border-radius: 999px;
    color: var(--cream-dim);
}

@media (max-width: 860px) {
    .promise {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .promise .num {
        padding-top: 0;
    }
}

/* ---------- use cases ---------- */

/* ---------- the call scene ---------- */

.meet {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.meet-pointer {
    animation: meet-pointer 10s ease-in-out infinite;
}

@keyframes meet-pointer {
    0%, 6% { transform: translate(452px, 140px); opacity: 1; }
    20%, 30% { transform: translate(421px, 112px); }
    24% { opacity: 0.4; }
    27% { opacity: 1; }
    46%, 54% { transform: translate(419px, 151px); }
    68%, 86% { transform: translate(419px, 189px); }
    72% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { transform: translate(452px, 140px); }
}

.meet-ink {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: meet-ink 10s ease-in-out infinite;
}

@keyframes meet-ink {
    0%, 30% { stroke-dashoffset: 100; opacity: 1; }
    44%, 88% { stroke-dashoffset: 0; opacity: 1; }
    95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.meet .k-cta {
    animation: meet-cta 10s ease-in-out infinite;
}

@keyframes meet-cta {
    0%, 71% { filter: none; }
    73% { filter: brightness(0.8); }
    78%, 100% { filter: none; }
}

.meet-legend {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 28px;
}

.meet-legend li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    color: var(--cream-dim);
}

.meet-legend b {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--signal);
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 14px;
    transform: translateY(6px);
}

@media (max-width: 760px) {
    .meet-legend {
        grid-template-columns: 1fr;
    }
}

/* ---------- walkthrough ("the small video") ---------- */

.walk {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.walk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.walk-steps li {
    margin: 0;
}

.walk-step {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 18px 0 18px;
    border-top: 1px solid var(--cream-faint);
    position: relative;
}

.walk-steps li:last-child .walk-step {
    border-bottom: 1px solid var(--cream-faint);
}

.walk-step .label {
    color: var(--cream-dim);
}

.walk-step h3 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1;
    margin: 6px 0 0;
    color: var(--cream-dim);
    transition: color 0.2s ease;
}

.walk-step p {
    margin: 8px 0 0;
    color: var(--cream-dim);
    display: none;
}

.walk-step[aria-selected="true"] h3 {
    color: var(--cream);
}

.walk-step[aria-selected="true"] p {
    display: block;
}

.walk-step .bar {
    position: absolute;
    left: 0;
    top: -1px;
    height: 2px;
    width: 0;
    background: var(--signal);
}

.walk-step[aria-selected="true"] .bar {
    animation: step-bar var(--step-ms, 4200ms) linear forwards;
}

.walk.paused .walk-step[aria-selected="true"] .bar {
    animation-play-state: paused;
}

@keyframes step-bar {
    from { width: 0; }
    to { width: 100%; }
}

.walk-controls {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.walk-controls button {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: none;
    color: var(--cream);
    border: 1px solid var(--cream-faint);
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
}

.walk-controls button:hover {
    border-color: var(--cream);
}

.stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--sky);
    overflow: hidden;
    color: var(--ink);
}

.scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.scene.active {
    opacity: 1;
}

.scene-label {
    position: absolute;
    left: 18px;
    top: 16px;
}

/* a small laptop drawing */
.laptop {
    width: 74%;
    position: relative;
}

.laptop-lid {
    aspect-ratio: 16 / 10;
    background: #111;
    border-radius: 12px 12px 4px 4px;
    padding: 2.4%;
    box-shadow: 0 0 0 2px #6f7279;
}

.laptop-screen {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, #2a3a6a, #1d1815);
    position: relative;
    overflow: hidden;
}

.laptop-base {
    height: 10px;
    margin: 0 -5%;
    background: linear-gradient(#b9bcc2, #7d8087);
    border-radius: 0 0 14px 14px;
}

.win {
    position: absolute;
    background: #1f2022;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    color: #f1f3f4;
    font-size: 10px;
}

.win-panel {
    left: 30%;
    top: 12%;
    width: 40%;
    height: 76%;
    padding: 6% 4%;
}

.win-panel .t {
    font-family: var(--body);
    font-weight: 700;
    font-size: clamp(9px, 1.1vw, 14px);
}

.win-panel .ok {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8%;
    font-size: clamp(8px, 0.9vw, 11px);
}

.win-panel .ok::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34c759;
}

.win-panel .lines i {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    margin-top: 9%;
}

.win-panel .lines i:nth-child(2) { width: 70%; margin-top: 5%; }
.win-panel .lines i:nth-child(3) { width: 84%; margin-top: 5%; }

.pulse {
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* control centre on a small phone */
.mini-phone {
    --w: 170px;
}

.cc {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #3c4f86, #1d1815);
    padding: 22% 9% 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7%;
    align-content: start;
}

.cc i {
    display: block;
    aspect-ratio: 1;
    border-radius: 22%;
    background: rgba(255, 255, 255, 0.16);
}

.cc .wide {
    grid-column: span 2;
    aspect-ratio: auto;
    height: 34px;
}

.cc .mirror-tile {
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    animation: tile-tap 4.2s ease-in-out infinite;
}

.cc .mirror-tile svg {
    width: 46%;
    color: #1d1815;
}

@keyframes tile-tap {
    0%, 40% { transform: scale(1); }
    48% { transform: scale(0.88); }
    56%, 100% { transform: scale(1); }
}

.finger {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    z-index: 7;
}

.finger-cc {
    left: 22%;
    top: 30%;
    animation: finger-cc 4.2s ease-in-out infinite;
}

@keyframes finger-cc {
    0% { left: 70%; top: 70%; opacity: 0; }
    20% { opacity: 1; }
    42%, 52% { left: 24%; top: 31%; opacity: 1; transform: scale(1); }
    48% { transform: scale(0.8); }
    80%, 100% { left: 24%; top: 31%; opacity: 0; }
}

/* the Screen Mirroring list */
.sheet {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 26%;
    background: rgba(40, 40, 44, 0.92);
    border-radius: 16px;
    color: #fff;
    padding: 10% 8%;
    font-size: 11px;
}

.sheet .h {
    text-align: center;
    font-weight: 700;
    margin-bottom: 12%;
}

.sheet .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8% 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sheet .row.pick {
    animation: row-pick 4.2s ease-in-out infinite;
}

.sheet .tick {
    opacity: 0;
    color: #4f8cff;
    font-weight: 700;
    animation: tick-show 4.2s ease-in-out infinite;
}

@keyframes row-pick {
    0%, 44% { background: transparent; }
    50%, 100% { background: rgba(255, 255, 255, 0.08); }
}

@keyframes tick-show {
    0%, 52% { opacity: 0; }
    58%, 100% { opacity: 1; }
}

.finger-row {
    animation: finger-row 4.2s ease-in-out infinite;
}

@keyframes finger-row {
    0% { left: 75%; top: 80%; opacity: 0; }
    20% { opacity: 1; }
    42%, 52% { left: 40%; top: 52%; opacity: 1; transform: scale(1); }
    48% { transform: scale(0.8); }
    80%, 100% { left: 40%; top: 52%; opacity: 0; }
}

/* phone appears on the laptop + meeting share chip */
.laptop .float-phone {
    position: absolute;
    left: 50%;
    top: 7%;
    height: 86%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    animation: rise 4.2s ease-out infinite;
}

.float-phone .fp {
    height: 100%;
    aspect-ratio: 9 / 19.4;
    background: #0b0a0a;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 0 0 1.5px #8d9096;
}

.float-phone .fp div {
    height: 100%;
    border-radius: 11px;
    background: linear-gradient(170deg, #f6f4f1 0 34%, #1d1815 34% 52%, #f6f4f1 52%);
}

.float-phone .fb {
    width: 12px;
    height: 60%;
    border-radius: 5px;
    background: #1b1c20;
    border: 1px solid #3a3c42;
}

@keyframes rise {
    0% { opacity: 0; transform: translate(-50%, 10%); }
    18%, 100% { opacity: 1; transform: translate(-50%, 0); }
}

.share-chip {
    position: absolute;
    right: 4%;
    bottom: 8%;
    background: #fff;
    color: #1d1815;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: clamp(8px, 0.85vw, 11px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: chip 4.2s ease-out infinite;
}

.share-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--signal);
}

@keyframes chip {
    0%, 30% { opacity: 0; transform: translateY(6px); }
    40%, 100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .walk {
        grid-template-columns: 1fr;
    }

    .stage {
        order: -1;
    }
}

/* ---------- features ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink-faint);
    border-left: 1px solid var(--ink-faint);
}

.features li {
    padding: 28px 24px 30px;
    border-right: 1px solid var(--ink-faint);
    border-bottom: 1px solid var(--ink-faint);
}

.features svg {
    width: 28px;
    height: 28px;
    color: var(--signal-deep);
    margin-bottom: 18px;
}

.features h3 {
    font-size: 19px;
    margin: 0 0 6px;
    line-height: 1.25;
}

.features p {
    margin: 0;
    color: var(--ink-dim);
    font-size: 15.5px;
}

@media (max-width: 1000px) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* ---------- free band ---------- */

.free {
    color: var(--ink);
}

.free .display {
    font-size: clamp(52px, 9vw, 140px);
}

.free-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
    margin-top: 36px;
}

.free p {
    margin: 0;
    font-size: 19px;
    max-width: 30em;
}

.reqs {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.reqs li {
    padding: 10px 0;
    border-top: 1px solid rgba(29, 24, 21, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.reqs li span:last-child {
    text-align: right;
}

.warn-note {
    margin-top: 18px !important;
    font-size: 15px !important;
    max-width: 32em;
    opacity: 0.85;
}

@media (max-width: 860px) {
    .free-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 900px;
}

.faq details {
    border-top: 1px solid var(--cream-faint);
}

.faq details:last-child {
    border-bottom: 1px solid var(--cream-faint);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 48px 22px 0;
    position: relative;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 24px;
    color: var(--signal);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details > div {
    padding: 0 0 24px;
    color: var(--cream-dim);
    max-width: 44em;
}

.faq details > div p {
    margin: 0 0 10px;
}

/* ---------- final call ---------- */

.final {
    text-align: center;
    color: var(--ink);
}

.final .display {
    font-size: clamp(56px, 11.5vw, 190px);
    line-height: 0.86;
}

.final .ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* ---------- footer ---------- */

.site-footer {
    padding: 56px 0 40px;
    border-top: 1px solid var(--cream-faint);
    color: var(--cream-dim);
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.site-footer h4 {
    margin: 0 0 12px;
    color: var(--cream);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 6px 0;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--cream);
    text-decoration: underline;
}

.fineprint {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--cream-faint);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer-word {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(56px, 15.6vw, 210px);
    line-height: 0.84;
    color: var(--ink-3);
    margin: 48px 0 0;
    white-space: nowrap;
    text-align: center;
    user-select: none;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* ---------- guide page ---------- */

.guide-hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
    border-bottom: 1px solid var(--cream-faint);
}

.guide-hero .display {
    font-size: clamp(56px, 10vw, 150px);
    margin-top: 14px;
}

.guide-hero .lead {
    margin-top: 22px;
}

.quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: q;
}

.quick li {
    counter-increment: q;
    border: 1px solid var(--cream-faint);
    border-radius: var(--radius);
    padding: 20px;
}

.quick li::before {
    content: "0" counter(q);
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--signal);
    margin-bottom: 10px;
}

.quick b {
    display: block;
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.quick span {
    color: var(--cream-dim);
    font-size: 15px;
}

@media (max-width: 900px) {
    .quick {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .quick {
        grid-template-columns: 1fr;
    }
}

.guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
}

.toc {
    position: sticky;
    top: 92px;
    align-self: start;
}

.toc ol {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    counter-reset: t;
}

.toc li {
    counter-increment: t;
}

.toc a {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    text-decoration: none;
    color: var(--cream-dim);
    font-size: 15px;
}

.toc a::before {
    content: counter(t, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 12px;
    padding-top: 3px;
    color: var(--cream-faint);
}

.toc a:hover,
.toc a.current {
    color: var(--cream);
}

.toc a.current::before {
    color: var(--signal);
}

@media (max-width: 900px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        border: 1px solid var(--cream-faint);
        border-radius: var(--radius);
        padding: 16px 20px;
    }
}

.doc {
    max-width: 760px;
}

.doc section {
    padding-top: 12px;
    margin-bottom: clamp(56px, 7vw, 88px);
    scroll-margin-top: 88px;
}

.doc h2 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 0.95;
    margin: 8px 0 18px;
}

.doc h3 {
    font-size: 20px;
    margin: 32px 0 10px;
}

.doc p,
.doc li {
    color: var(--cream-dim);
}

.doc strong {
    color: var(--cream);
}

.doc a {
    color: var(--cream);
    text-decoration-color: var(--signal);
    text-underline-offset: 3px;
}

.steps {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    counter-reset: s;
}

.steps > li {
    counter-increment: s;
    position: relative;
    padding: 0 0 22px 52px;
}

.steps > li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--cream-faint);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--cream);
}

.steps > li::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 4px;
    width: 1px;
    background: var(--cream-faint);
}

.steps > li:last-child::after {
    display: none;
}

.steps > li > b {
    display: block;
    color: var(--cream);
    font-size: 18px;
    margin-bottom: 2px;
}

.callout {
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 22px 0;
    background: var(--ink-2);
    border-left: 3px solid var(--sky);
}

.callout.warn {
    border-left-color: var(--signal);
}

.callout p {
    margin: 0;
}

.callout .label {
    display: block;
    margin-bottom: 6px;
    color: var(--cream);
}

.path {
    font-family: var(--mono);
    font-size: 0.86em;
    color: var(--cream);
    background: var(--ink-3);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

table.keys {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 16px;
}

table.keys th,
table.keys td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--cream-faint);
    vertical-align: top;
}

table.keys th {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream-dim);
}

table.keys td:first-child {
    color: var(--cream);
}

.fix {
    border-top: 1px solid var(--cream-faint);
    padding: 18px 0 6px;
}

.fix h3 {
    margin-top: 0;
}

.mini-figure {
    margin: 22px 0;
    border-radius: var(--radius);
    background: var(--sky);
    padding: 26px;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--ink);
}

/* ---------- use cases: a list on the left, each one's journey played on the right ---------- */

.cases {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.case-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.case {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 16px 0;
    border-top: 1px solid rgba(29, 24, 21, 0.28);
    position: relative;
}

.case-list li:last-child .case {
    border-bottom: 1px solid rgba(29, 24, 21, 0.28);
}

.case .label {
    color: rgba(29, 24, 21, 0.7);
}

.case h3 {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1;
    margin: 6px 0 0;
    color: var(--cream);
    transition: color 0.2s ease;
}

.case:hover h3,
.case[aria-selected="true"] h3 {
    color: var(--ink);
}

.case p {
    display: none;
    margin: 10px 0 0;
    color: var(--ink);
    max-width: 30em;
}

.case[aria-selected="true"] p {
    display: block;
}

.case .bar {
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 0;
    background: var(--ink);
}

.case[aria-selected="true"] .bar {
    animation: step-bar var(--case-ms, 10800ms) linear forwards;
}

.cases.paused .case[aria-selected="true"] .bar {
    animation-play-state: paused;
}

.case-stage {
    position: sticky;
    top: 92px;
    background: var(--cream);
    border-radius: 24px;
    padding: clamp(14px, 2vw, 22px);
    box-shadow: 0 30px 60px rgba(29, 24, 21, 0.18);
}

.case-panel {
    display: none;
}

.case-panel.active {
    display: block;
}

.case-desc {
    display: none;
}

.case-scenes {
    position: relative;
    aspect-ratio: 640 / 420;
    border-radius: 14px;
    overflow: hidden;
    background: #efe6d8;
}

.cscene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cscene.active {
    opacity: 1;
}

.case-steps {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.case-steps li {
    font-size: 14px;
    line-height: 1.3;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink-dim);
    background: rgba(29, 24, 21, 0.05);
    transition: background 0.3s ease, color 0.3s ease;
}

.case-steps li b {
    display: block;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--signal-deep);
    margin-bottom: 4px;
}

.case-steps li.active {
    background: var(--ink);
    color: var(--cream);
}

.case-steps li.active b {
    color: var(--signal);
}

.case-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.case-controls button {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: none;
    color: var(--ink);
    border: 1px solid var(--ink-faint);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}

/* what moves inside a step, each time the step comes on screen */
.cscene.active .cs-in {
    animation: cs-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cs-in {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.cscene.active .cs-pointer {
    animation: cs-pointer 2.4s ease-in-out 0.3s both;
}

@keyframes cs-pointer {
    0% { transform: translate(40px, 50px); opacity: 0; }
    15% { opacity: 1; }
    60% { transform: none; }
    70% { opacity: 0.35; }
    80%, 100% { transform: none; opacity: 1; }
}

.cscene.active .cs-cursor {
    animation: cs-cursor 2.4s ease-in-out 0.3s both;
}

@keyframes cs-cursor {
    0% { translate: 40px 50px; opacity: 0; }
    15% { opacity: 1; }
    60%, 100% { translate: 0 0; opacity: 1; }
}

.cscene .cs-ink {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.cscene.active .cs-ink {
    animation: cs-ink 1.6s ease-in-out 0.9s forwards;
}

@keyframes cs-ink {
    to { stroke-dashoffset: 0; }
}

.cscene.active .cs-pop {
    animation: cs-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both;
}

@keyframes cs-pop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.cscene .cs-blink {
    animation: cs-blink 1.2s steps(2, jump-none) infinite;
}

@keyframes cs-blink {
    50% { opacity: 0.2; }
}

.cscene .cs-level {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: cs-level 0.9s ease-in-out infinite alternate;
}

.cscene .cs-level:nth-of-type(2n) {
    animation-delay: -0.45s;
}

@keyframes cs-level {
    from { transform: scaleY(0.4); }
    to { transform: scaleY(1.2); }
}

@media (max-width: 900px) {
    .cases {
        grid-template-columns: 1fr;
    }

    .case-stage {
        position: static;
    }

    /* the list becomes a row of names to tap; the description moves under them */
    .case-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .case-list li {
        flex: none;
    }

    .case,
    .case-list li:last-child .case {
        border: 1px solid rgba(29, 24, 21, 0.3);
        border-radius: 999px;
        padding: 8px 14px;
    }

    .case[aria-selected="true"] {
        background: var(--ink);
    }

    .case[aria-selected="true"] h3 {
        color: var(--cream);
    }

    .case .label,
    .case p,
    .case .bar {
        display: none !important;
    }

    .case h3 {
        font-size: 20px;
        margin: 0;
    }

    .case-desc {
        display: block;
        margin: 2px 4px 14px;
        color: var(--ink);
    }

    .case-steps li {
        font-size: 12.5px;
        padding: 8px 9px;
    }
}

/* ---------- works with ---------- */

.works-with {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--cream-faint);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.works-with .label {
    color: var(--cream-dim);
}

.works-with ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.works-with li {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cream);
    opacity: 0.85;
}

/* ---------- mini-map: where you are on the page, what's next ---------- */

.minimap {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 40;
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(29, 24, 21, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cream-faint);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    color: var(--cream);
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
}

.minimap.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.mm-pct {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    min-width: 3.2em;
    color: var(--signal);
}

.mm-track {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-track li {
    min-width: 8px;
    position: relative;
}

.mm-track a {
    display: block;
    height: 22px;
    position: relative;
    cursor: pointer;
}

.mm-track a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 4px;
    border-radius: 2px;
    background: rgba(243, 232, 218, 0.18);
}

.mm-track a i {
    position: absolute;
    left: 0;
    top: 9px;
    height: 4px;
    border-radius: 2px;
    background: var(--cream);
    width: 0;
}

.mm-track a.now i {
    background: var(--signal);
}

/* the section's name above its segment, on hover or keyboard focus */
.mm-track a::after {
    content: attr(data-name);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--cream);
    color: var(--ink);
    padding: 5px 9px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.mm-track a:hover::after,
.mm-track a:focus-visible::after {
    opacity: 1;
}

.mm-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 19em;
    line-height: 1.2;
}

.mm-now {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-next {
    font-size: 12.5px;
    color: var(--cream-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .minimap {
        flex-wrap: wrap;
        gap: 6px 12px;
        border-radius: 18px;
        padding: 10px 14px 12px;
    }

    .mm-text {
        flex: 1;
        width: auto;
        order: 1;
    }

    .mm-pct {
        order: 2;
        min-width: 0;
    }

    .mm-track {
        order: 3;
        flex-basis: 100%;
        gap: 3px;
    }

    .mm-track a {
        height: 10px;
    }

    .mm-track a::before,
    .mm-track a i {
        top: 3px;
    }

    .mm-track a::after {
        display: none;
    }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .marquee-track {
        animation: none;
    }

    .ink-circle path,
    .meet-ink {
        stroke-dashoffset: 0;
    }

    .meet-pointer {
        transform: translate(421px, 112px);
    }

    .cscene .cs-ink {
        stroke-dashoffset: 0;
    }
}
