@font-face {
    font-family: "Schibsted Grotesk";
    src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: "Caveat";
    src: url("../fonts/caveat.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}
@property --veil {
    syntax: "<length>";
    inherits: true;
    initial-value: 600px;
}

:root {
    --paper: #f3f1ea;
    --paper-hi: #faf9f5;
    --ink: #151515;
    --ink-2: #57554d;
    --ink-3: #9b988d;
    --hair: rgba(21, 21, 21, 0.14);
    --sans: "Schibsted Grotesk", system-ui, sans-serif;
    --hand: "Caveat", "Bradley Hand", cursive;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    /* phone wallpapers: real photos, darkened a little so white type reads */
    --w-iphone: url("../media/wall-iphone.webp") center / cover;
    --w-android: url("../media/wall-android.webp") center / cover;
    --w-ipad: url("../media/wall-ipad.webp") center / cover;
    --wall: var(--w-iphone);
    --accent: #2f5fd8;
    --glow: #4e7bea;
    --ease: cubic-bezier(0.65, 0, 0.25, 1);
    --spring: cubic-bezier(0.3, 1.4, 0.5, 1);
    --line: 2px;
    --line-soft: 1.4px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-anchor: none;
} /* the headline changes length; the page must not jump with it */
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a {
    color: inherit;
}
b {
    font-weight: 650;
}
button {
    font: inherit;
    color: inherit;
}

/* ---------- nav: transparent over the hero, paper once you scroll */
nav {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(40px, 4vw);
    transition:
        background 300ms,
        box-shadow 300ms;
}
body.scrolled nav {
    background: var(--paper);
    box-shadow: 0 1px 0 var(--hair);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 760;
    font-size: 19px;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.brand svg {
    width: 27px;
    height: 27px;
    fill: var(--ink);
    transform-origin: center;
}
nav .links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 560;
}
nav .links a {
    text-decoration: none;
}
.dl {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 99px;
    background: var(--ink);
    color: var(--paper) !important;
    font-weight: 620;
    text-decoration: none;
    transition: transform 160ms var(--spring);
}
.dl:hover {
    transform: translateY(-2px);
}
.dl.big {
    height: 54px;
    padding: 0 26px;
    font-size: 17px;
}

/* ---------- the stage: a fixed window onto the drawn world */
@property --bt {
    syntax: "<length>";
    inherits: true;
    initial-value: 0px;
}
@property --bb {
    syntax: "<length>";
    inherits: true;
    initial-value: 4000px;
}
.stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transition:
        opacity 500ms,
        visibility 0s;
    -webkit-mask-image: linear-gradient(#000 90%, transparent 100%);
    mask-image: linear-gradient(#000 90%, transparent 100%);
}
body.done .stage {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 500ms,
        visibility 0s 500ms;
}
.world {
    position: absolute;
    left: 0;
    top: 0;
    width: 2700px;
    height: 900px;
    transform-origin: 0 0;
    transition:
        transform 1.2s var(--ease),
        opacity 500ms;
    pointer-events: none;
}
/* the flight from the office to home: a globe, US to Vietnam, the link up all the way */
.globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 500ms;
    pointer-events: none;
    overflow: visible;
}
.globe {
    transition: opacity 220ms;
}
body.globing .globe {
    opacity: 1;
    transition-delay: 220ms;
}
body.globing .world {
    opacity: 0;
    transition:
        transform 1.2s var(--ease),
        opacity 250ms;
}
body:not(.globing) .world {
    transition:
        transform 1.2s var(--ease),
        opacity 280ms 60ms;
} /* one picture at a time, never both */
.globe .sea {
    fill: #e3ecef;
    stroke: var(--ink);
    stroke-width: 2px;
}
.globe .land {
    fill: #f4efdf;
    stroke: var(--ink-2);
    stroke-width: 1px;
    stroke-linejoin: round;
}
.globe .grat {
    fill: none;
    stroke: var(--ink-3);
    stroke-width: 0.7px;
    opacity: 0.3;
}
.globe .arc {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 2px;
    stroke-dasharray: 2 8;
    stroke-linecap: round;
}
.globe .glow {
    fill: none;
    stroke: var(--glow);
    stroke-width: 10px;
    opacity: 0.4;
    stroke-linecap: round;
}
.globe .core {
    fill: none;
    stroke: #fff;
    stroke-width: 2.8px;
    stroke-linecap: round;
}
.globe .pin {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 2.5px;
}
.globe .pin-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5px;
    opacity: 0.5;
}
.globe text {
    font: 600 23px var(--hand);
    fill: var(--ink);
    paint-order: stroke;
    stroke: var(--paper);
    stroke-width: 5px;
    stroke-linejoin: round;
}
.globe text.sub {
    font-size: 19px;
    fill: var(--ink-2);
}
.globe .flip text {
    text-anchor: end;
    transform: translateX(-24px);
}
.globe .lockg.flip text {
    transform: translateX(-44px);
}
:is(.globe, svg.ink) .lockg circle,
svg.ink .rlock circle {
    fill: var(--paper-hi);
    stroke: var(--ink);
    stroke-width: 1.8px;
}
:is(.globe, svg.ink) :is(.lockg, .rlock) rect {
    fill: var(--ink);
    stroke: none;
}
:is(.globe, svg.ink) :is(.lockg, .rlock) .shackle {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.2px;
    stroke-linecap: round;
}
svg.ink .rlock {
    opacity: 0;
    transition: opacity 600ms;
}
.world.shared svg.ink .rlock {
    opacity: 1;
}
.world.moving {
    will-change: transform;
}
.world .laptop,
.world .dev,
.world .cat,
.world .monitor {
    pointer-events: auto;
}
.veil {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--paper) 0,
        var(--paper) var(--veil),
        rgba(243, 241, 234, 0) calc(var(--veil) + 96px)
    );
    transition:
        --veil 900ms var(--ease),
        opacity 600ms;
}
body[data-ch="hero"] .veil {
    opacity: 0;
}
svg.ink {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    pointer-events: none;
}
svg.ink path {
    fill: none;
    stroke: var(--ink);
    stroke-width: var(--line);
    stroke-linecap: round;
    stroke-linejoin: round;
}
svg.ink .soft {
    stroke: var(--ink-2);
    stroke-width: var(--line-soft);
}
svg.ink .thin {
    stroke-width: 1.2px;
    stroke: var(--ink-2);
}
svg.ink .steam {
    stroke-dasharray: 4 6;
} /* still: nothing redraws at rest */
svg.ink .lamp {
    stroke: #d9a441;
    stroke-width: 1.6px;
    stroke-dasharray: 3 6;
}
svg.ink .more {
    opacity: 0;
    transition: opacity 500ms;
}
.world.many svg.ink .more {
    opacity: 1;
}
svg.ink .route {
    stroke: var(--ink-3);
    stroke-width: 1.8px;
    stroke-dasharray: 2 9;
    opacity: 0;
    transition: opacity 600ms;
}
svg.ink .pulse {
    stroke: var(--glow);
    stroke-width: 9px;
    opacity: 0;
    transition: opacity 600ms;
}
svg.ink .pulse.core {
    stroke: #fff;
    stroke-width: 2.6px;
}
.world.shared svg.ink .route {
    opacity: 1;
}
.world.shared svg.ink .pulse {
    opacity: 0.35;
}
.world.shared svg.ink .pulse.core {
    opacity: 0.95;
}
svg.ink .waves path {
    stroke: var(--ink-2);
    stroke-width: 1.8px;
    opacity: 0;
}
.world.loud svg.ink .waves path {
    animation: wave 1.1s ease-out infinite;
}
.world.loud svg.ink .waves path:nth-child(2) {
    animation-delay: 0.18s;
}
.world.loud svg.ink .waves path:nth-child(3) {
    animation-delay: 0.36s;
}
@keyframes wave {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* the office wall: quiet line work; the clock keeps the visitor's time */
svg.ink .officeL {
    transition: opacity 500ms;
}
:is(body[data-cam="close"], body[data-cam="land"], body[data-ch="share"]) :is(svg.ink .officeL, .world.away .phone) {
    opacity: 0;
}
svg.ink .wclock .face {
    fill: var(--paper-hi);
    stroke: var(--ink);
    stroke-width: var(--line);
}
svg.ink .wclock .ticks {
    stroke: var(--ink-2);
    stroke-width: 1.3px;
}
svg.ink .wclock .hand.h {
    stroke-width: 3px;
}
svg.ink .wclock .hand.m {
    stroke-width: 2.2px;
}
svg.ink .wclock .hand.s {
    stroke: #d9534f;
    stroke-width: 1.2px;
}
svg.ink .wclock .pin {
    fill: var(--ink);
}
svg.ink .print .frame {
    fill: var(--paper-hi);
    stroke: var(--ink);
    stroke-width: var(--line);
}
svg.ink .print .mat {
    fill: #eef1ee;
    stroke: var(--ink-3);
    stroke-width: 1px;
}
svg.ink .print .sunp {
    fill: #f2d7a0;
    stroke: none;
}
svg.ink .print .hills {
    stroke: var(--ink-2);
    stroke-width: 1.4px;
}
svg.ink .board {
    fill: #e9dfcd;
}
svg.ink .bk {
    stroke: var(--ink);
    stroke-width: 1.6px;
}
svg.ink .b1 {
    fill: #c7d2c1;
}
svg.ink .b2 {
    fill: #b8c4d4;
}
svg.ink .b3 {
    fill: #e4d3b3;
}
svg.ink .b4 {
    fill: #d9c2bd;
}
svg.ink .pot {
    fill: #e6d3be;
}
svg.ink .leaf {
    fill: #cbdabf;
    stroke-width: 1.6px;
}

/* Pixel the cat: a round ginger tabby, asleep by the mug */
.cat {
    position: absolute;
    left: 1158px;
    top: 427px;
    width: 232px;
    height: 134px;
    overflow: visible;
    cursor: pointer;
    --fur: #e9eaeb;
    --stripe: #9ca3ac;
}
.cat :is(path, circle, ellipse) {
    stroke-linejoin: round;
    stroke-linecap: round;
}
.cat .fur {
    fill: var(--fur);
    stroke: var(--ink);
    stroke-width: 2.1px;
    vector-effect: non-scaling-stroke;
}
.cat .stripe {
    fill: none;
    stroke: var(--stripe);
    stroke-width: 3.2;
}
.cat .inner {
    fill: #f1c6c3;
    stroke: none;
}
.cat .blush {
    fill: #f2a7a7;
    opacity: 0.45;
}
.cat .nose {
    fill: #e98796;
    stroke: none;
}
.cat .mouth,
.cat .shut {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.9px;
    vector-effect: non-scaling-stroke;
}
.cat .mouth {
    stroke-width: 1.5px;
}
.cat .happy {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.1px;
    vector-effect: non-scaling-stroke;
}
.cat .grin {
    fill: #b8505f;
    stroke: var(--ink);
    stroke-width: 1.4px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.cat :is(.happy, .grin, .prr) {
    opacity: 0;
    transition: opacity 120ms;
}
.cat .prr {
    font: 600 13px var(--hand);
    fill: var(--ink-3);
}
.cat .whisk {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.1px;
    vector-effect: non-scaling-stroke;
}
.cat .iris {
    fill: var(--ink);
}
.cat .hi {
    fill: #fff;
}
.cat .tube {
    fill: none;
    stroke: var(--ink);
    stroke-width: 10.4;
}
.cat .tube-fur {
    fill: none;
    stroke: var(--fur);
    stroke-width: 7.4;
}
.cat .tube-stripe {
    fill: none;
    stroke: var(--stripe);
    stroke-width: 7.4;
    stroke-linecap: butt;
    stroke-dasharray: 2.6 6.4;
    stroke-dashoffset: -7;
}
.cat .tip-s {
    stroke-dasharray: 2.6 4 30;
    stroke-dashoffset: -2;
}
.cat .zzz {
    font: 600 15px var(--hand);
    fill: var(--ink-3);
}
.cat .zzz text {
    opacity: 0;
}
/* the cat moves in short bursts (see story.js) and is fully still between them */
.cat.b-doze .zzz text {
    animation: zzz 3.6s ease-out;
}
.cat .zzz text:nth-child(2) {
    animation-delay: 0.5s;
    font-size: 18px;
}
.cat .zzz text:nth-child(3) {
    animation-delay: 1s;
    font-size: 21px;
}
@keyframes zzz {
    0% {
        opacity: 0;
        transform: translate(0, 6px);
    }
    25%,
    60% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate(6px, -6px);
    }
}
.cat .body {
    transform-origin: 80px 89px;
}
.cat.b-doze .body {
    animation: breathe 3.8s ease-in-out;
}
@keyframes breathe {
    50% {
        transform: scale(1.012, 1.045);
    }
}
.cat .headg {
    transform-origin: 45px 89px;
    transition: transform 400ms var(--spring);
}
.cat.b-doze .headg {
    animation: bob 3.8s ease-in-out;
}
@keyframes bob {
    50% {
        transform: translateY(-1px) rotate(-1deg);
    }
}
.cat .tip {
    transform-origin: 110.5px 85.1px;
}
.cat.b-tap .tip {
    animation: tap 1.2s ease-in-out;
}
@keyframes tap {
    0%,
    100% {
        transform: rotate(0);
    }
    18% {
        transform: rotate(-16deg);
    }
    36% {
        transform: rotate(-2deg);
    }
    54% {
        transform: rotate(-12deg);
    }
    77% {
        transform: rotate(0);
    }
}
.cat .ear {
    transition: transform 300ms var(--spring);
}
.cat .ear.l {
    transform-origin: 30px 46px;
}
.cat .ear.r {
    transform-origin: 60px 46px;
}
.cat.tw-l .ear.l {
    animation: flickL 520ms ease-in-out;
}
.cat.tw-r .ear.r {
    animation: flickR 520ms ease-in-out;
}
@keyframes flickL {
    20%,
    60% {
        transform: rotate(-16deg);
    }
    40%,
    80% {
        transform: rotate(2deg);
    }
}
@keyframes flickR {
    20%,
    60% {
        transform: rotate(16deg);
    }
    40%,
    80% {
        transform: rotate(-2deg);
    }
}
.cat .eye {
    opacity: 0;
    transition: opacity 120ms;
}
.cat .shut {
    transition: opacity 120ms;
}
.cat .eye .iris,
.cat .pupil {
    transform: translate(var(--px, 0px), var(--py, 0px));
}
.cat .pupil {
    transform: translate(calc(var(--px, 0px) * 1.25), calc(var(--py, 0px) * 1.25));
}
.cat:hover .headg {
    transform: rotate(-4deg);
}
.cat:hover .ear.r {
    transform: rotate(8deg);
}
/* a peek: one eye opens when the cable swings close */
.cat.peek .eye.r {
    opacity: 1;
}
.cat.peek .shut.r {
    opacity: 0;
}
/* awake: eyes open and follow you, ears up, tail swishing */
.cat.awake .eye {
    opacity: 1;
}
.cat.awake .shut,
.cat.awake .zzz {
    opacity: 0;
}
.cat.awake .headg {
    transform: translateY(-5px);
    animation: none;
}
.cat.awake .ear.l {
    transform: rotate(-6deg);
}
.cat.awake .ear.r {
    transform: rotate(6deg);
}
.cat.awake .tip {
    animation: swish 1.6s ease-in-out infinite;
}
@keyframes swish {
    50% {
        transform: rotate(-20deg);
    }
}
.heart {
    position: absolute;
    left: 1196px;
    top: 404px;
    font-size: 26px;
    color: #e0607a;
    pointer-events: none;
}
.heart i {
    position: absolute;
    font-style: normal;
    opacity: 0;
}
.heart i:nth-child(2) {
    left: -22px;
    top: 10px;
    font-size: 16px;
}
.heart i:nth-child(3) {
    left: 24px;
    top: 4px;
    font-size: 19px;
}
.heart.pop i {
    animation: heart 1.4s ease-out;
}
.heart.pop i:nth-child(2) {
    animation-delay: 0.25s;
    --drift: -10px;
}
.heart.pop i:nth-child(3) {
    animation-delay: 0.5s;
    --drift: 12px;
}
@keyframes heart {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.4);
    }
    20% {
        opacity: 1;
        transform: scale(1.1);
    }
    30% {
        transform: none;
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift, 0px), -50px) rotate(calc(var(--drift, 0px) * 1deg / 1px));
    }
}

/* petting: lean in, happy squint, soft ears, purr, a wagging tip; then a slow blink */
.cat.pet .eye,
.cat.pet .shut,
.cat.pet .mouth,
.cat.pet .zzz {
    opacity: 0;
}
.cat.pet :is(.happy, .grin) {
    opacity: 1;
}
.cat.pet .prr {
    animation: prr 1.8s ease-out 0.3s both;
}
@keyframes prr {
    0% {
        opacity: 0;
        transform: translate(0, 4px);
    }
    20%,
    70% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate(8px, -8px);
    }
}
.cat.awake.pet .headg {
    animation: nuzzle 2.2s var(--ease);
}
@keyframes nuzzle {
    0% {
        transform: translateY(-5px);
    }
    10% {
        transform: translateY(-1px) scale(1.05, 0.93);
    }
    22% {
        transform: translateY(-4px) rotate(-8deg);
    }
    44% {
        transform: translateY(-4px) rotate(-2deg);
    }
    66% {
        transform: translateY(-4px) rotate(-8deg);
    }
    100% {
        transform: translateY(-5px);
    }
}
.cat.pet .ear.l {
    transform: rotate(-20deg) translateY(2px);
}
.cat.pet .ear.r {
    transform: rotate(20deg) translateY(2px);
}
.cat .blush {
    transform-box: fill-box;
    transform-origin: center;
    transition:
        opacity 300ms,
        transform 300ms var(--spring);
}
.cat.pet .blush {
    opacity: 0.95;
    transform: scale(1.3);
}
.cat.pet .body {
    animation: purr 70ms linear 26 alternate;
}
@keyframes purr {
    to {
        transform: translateY(0.4px) scale(1.004, 0.996);
    }
}
.cat.awake.pet .tip {
    animation: wag 440ms ease-in-out 5 alternate;
}
@keyframes wag {
    from {
        transform: rotate(6deg);
    }
    to {
        transform: rotate(-30deg);
    }
}
.cat .eye {
    transform-box: fill-box;
    transform-origin: center;
}
.cat.sblink .eye {
    animation: sblink 1.1s ease-in-out;
}
@keyframes sblink {
    0%,
    100% {
        transform: none;
    }
    35%,
    60% {
        transform: scaleY(0.08);
    }
}

/* ---------- the laptop: three different computers */
.laptop {
    position: absolute;
    left: 520px;
    top: 176px;
    width: 580px;
    height: 362px;
    border: var(--line) solid var(--ink);
    border-radius: 14px 14px 4px 4px;
    background: var(--paper);
    transition: border-radius 600ms;
    --my: 5px;
}
.display {
    position: absolute;
    inset: 10px 10px 12px;
    border: 1.4px solid var(--ink);
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-hi);
    transition:
        inset 600ms var(--ease),
        background 600ms;
}
.world[data-host="mac"] .laptop .display {
    background: linear-gradient(170deg, #fbfaf6, #f1eee5);
}
.world[data-host="windows"] .laptop {
    border-radius: 6px 6px 3px 3px;
    --my: -8px;
}
.world[data-host="windows"] .laptop .display {
    inset: 14px 12px 18px;
    background: linear-gradient(170deg, #f6f8f9, #ebeff1);
}
.world[data-host="linux"] .laptop {
    border-radius: 5px;
    --my: 11px;
}
.world[data-host="linux"] .laptop .display {
    inset: 12px 12px 18px;
    background: linear-gradient(170deg, #f8f6f4, #eeeae5);
}
.notch {
    position: absolute;
    left: 50%;
    top: -1px;
    width: 74px;
    height: 11px;
    transform: translateX(-50%);
    background: var(--ink);
    border-radius: 0 0 7px 7px;
    transition: opacity 300ms;
    z-index: 3;
}
.webcam {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    border: 1.4px solid var(--ink);
    opacity: 0;
    transition: opacity 300ms;
}
.sticker {
    position: absolute;
    right: 16px;
    bottom: 1px;
    width: 13px;
    height: 16px;
    opacity: 0;
    transition: opacity 300ms;
}
.sticker path,
.sticker circle {
    fill: var(--ink);
}
.sticker .w {
    fill: var(--paper);
}
.sticker .b {
    fill: #e2a93b;
}
.world:not([data-host="mac"]) .notch {
    opacity: 0;
}
.world[data-host="windows"] .webcam,
.world[data-host="linux"] .webcam {
    opacity: 1;
}
.world[data-host="linux"] .sticker {
    opacity: 1;
}
.os,
.dock-mac,
.dash-linux {
    position: absolute;
    opacity: 0;
    transition: opacity 400ms;
    pointer-events: none;
}
.world[data-host="mac"] .laptop .os.mac,
.world[data-host="mac"] .laptop .dock-mac,
.world[data-host="windows"] .laptop .os.windows,
.world[data-host="linux"] .laptop .os.linux,
.world[data-host="linux"] .laptop .dash-linux,
.monitor .os.windows {
    opacity: 1;
}
.os {
    font: 500 9px var(--mono);
    color: var(--ink-2);
}
.os.mac {
    left: 0;
    right: 0;
    top: 0;
    height: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    background: rgba(250, 249, 245, 0.85);
    border-bottom: 1px solid var(--hair);
}
.os.mac i {
    width: 9px;
    height: 9px;
    border: 1.2px solid var(--ink);
    border-radius: 50%;
}
.os.mac b {
    color: var(--ink);
    font-weight: 700;
}
.os .r {
    margin-left: auto;
}
.dock-mac {
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 9px;
    border: 1.2px solid var(--ink);
    background: rgba(250, 249, 245, 0.85);
}
.dock-mac i,
.os.windows i,
.dash-linux i {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.2px solid var(--ink);
}
.blinkapp {
    background: var(--ink);
    position: relative;
}
.blinkapp::after {
    content: "";
    position: absolute;
    inset: 4px 2px;
    background: var(--paper-hi);
    clip-path: ellipse(50% 32% at 50% 50%);
}
.os.windows {
    left: 0;
    right: 0;
    bottom: 0;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background: rgba(250, 249, 245, 0.92);
    border-top: 1px solid var(--ink);
}
.os.windows .start {
    width: 13px;
    height: 13px;
    background: conic-gradient(var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0);
    border: 1.2px solid var(--ink);
    border-radius: 2px;
}
.os.windows .r {
    position: absolute;
    right: 10px;
}
.os.linux {
    left: 0;
    right: 0;
    top: 0;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ink);
    color: var(--paper);
}
.os.linux .l {
    position: absolute;
    left: 10px;
}
.os.linux .r {
    position: absolute;
    right: 10px;
}
.dash-linux {
    left: 0;
    top: 18px;
    bottom: 0;
    width: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    background: rgba(21, 21, 21, 0.06);
    border-right: 1px solid var(--hair);
}
.dash-linux b {
    margin-top: auto;
    margin-bottom: 8px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--ink) 1.4px, transparent 1.6px) 0 0 / 4px 4px;
}
.port {
    position: absolute;
    width: 13px;
    height: 7px;
    border-radius: 3px;
    background: var(--ink);
    top: 544px;
    left: 498px;
    box-shadow:
        0 0 0 1.4px var(--paper),
        0 0 0 2.6px var(--ink);
}
.world.plugged #plugB .tip {
    opacity: 0;
}
.world.plugged .port.l {
    box-shadow: none;
}
.port.r {
    left: 1110px;
}
.chip {
    position: absolute;
    left: 810px;
    top: 584px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--paper-hi);
    box-shadow: 0 0 0 1.4px var(--ink);
    font: 500 12px var(--mono);
    opacity: 0;
    transition: opacity 500ms;
}
.chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2eaf5b;
    box-shadow: 0 0 0 3px rgba(46, 175, 91, 0.18);
}
.chip .lk {
    display: none;
    font-weight: 600;
}
.world.live .chip {
    opacity: 1;
}
body[data-cam="close"] .chip {
    opacity: 0;
}
.world.live:not(.air):not(.netshare) .lk.usb,
.world.air:not(.netshare) .lk.air,
.world.netshare .lk.net {
    display: inline;
}
.chip.flash {
    animation: chipflash 900ms var(--ease);
}
.chip.flash .lk {
    animation: lkin 500ms var(--ease);
}
.chip.flash .dot {
    animation: dotflash 900ms ease-out;
}
@keyframes chipflash {
    0% {
        box-shadow: 0 0 0 1.4px var(--ink), 0 0 0 0 color-mix(in srgb, var(--glow) 45%, transparent);
        background: color-mix(in srgb, var(--glow) 16%, var(--paper-hi));
    }
    100% {
        box-shadow: 0 0 0 1.4px var(--ink), 0 0 0 10px color-mix(in srgb, var(--glow) 0%, transparent);
        background: var(--paper-hi);
    }
}
@keyframes lkin {
    from {
        opacity: 0;
        filter: blur(2px);
    }
}
@keyframes dotflash {
    0% {
        box-shadow: 0 0 0 3px rgba(46, 175, 91, 0.18);
    }
    35% {
        box-shadow: 0 0 0 6px rgba(46, 175, 91, 0.32);
    }
}

/* ---------- devices: a thin black bezel around the glass */
.world[data-device="iphone"] {
    --pw: 112px;
    --ph: 232px;
    --pr: 22px;
    --mw: 117px;
    --mh: 252px;
    --mr: 20px;
    --lw: 500px;
    --lh: 232px;
}
.world[data-device="android"] {
    --pw: 108px;
    --ph: 236px;
    --pr: 14px;
    --mw: 114px;
    --mh: 252px;
    --mr: 13px;
    --lw: 500px;
    --lh: 226px;
}
.world[data-device="ipad"] {
    --pw: 176px;
    --ph: 246px;
    --pr: 14px;
    --mw: 189px;
    --mh: 252px;
    --mr: 13px;
    --lw: 336px;
    --lh: 252px;
}
.dev {
    position: absolute;
    border: 1.4px solid var(--ink);
    background: #111;
    padding: 3px;
}
.phone {
    left: calc(300px - var(--pw) / 2);
    top: calc(538px - var(--ph));
    width: var(--pw);
    height: var(--ph);
    border-radius: var(--pr);
    transition:
        width 700ms var(--ease),
        height 700ms var(--ease),
        top 900ms var(--ease),
        left 900ms var(--ease),
        border-radius 700ms,
        opacity 500ms;
}
html.land .phone {
    width: var(--ph);
    height: var(--pw);
    top: calc(538px - var(--pw));
    left: calc(300px - var(--ph) / 2);
}
.world.away .phone {
    top: calc(318px - var(--ph));
    left: calc(366px - var(--pw) / 2);
}
html.land .world.away .phone {
    width: var(--pw);
    height: var(--ph);
    top: calc(318px - var(--ph));
    left: calc(366px - var(--pw) / 2);
}
html.land .world.away .phone .cam {
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
}
.world.carrying .phone {
    transition: none;
    cursor: grabbing;
}
body[data-ch="away"] .world:not(.away) .phone {
    cursor: grab;
}
.dev .screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--pr) - 3px);
    overflow: hidden;
}
.dev .cam {
    position: absolute;
    left: 50%;
    top: 9px;
    transform: translateX(-50%);
    background: #050505;
    z-index: 12;
    transition: all 700ms var(--ease);
    pointer-events: none;
}
.world[data-device="iphone"] .phone .cam {
    width: 28px;
    height: 8px;
    border-radius: 99px;
}
.world[data-device="android"] .phone .cam {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.world[data-device="ipad"] .phone .cam {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    top: 6px;
}
html.land .phone .cam {
    top: 50%;
    left: 9px;
    transform: translateY(-50%);
}
html.land .world[data-device="iphone"] .phone .cam {
    width: 8px;
    height: 28px;
}
.dev.extra {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 500ms,
        transform 800ms var(--spring);
    pointer-events: none;
}
.world.many .dev.extra {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.world.many .dev.pad {
    transition-delay: 300ms;
}
.dev.and {
    left: 254px;
    top: 342px;
    width: 92px;
    height: 196px;
    border-radius: 14px;
    --pr: 14px;
}
.dev.pad {
    left: 92px;
    top: 84px;
    width: 176px;
    height: 246px;
    border-radius: 14px;
    --pr: 14px;
}
.dev.and .cam {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dev.pad .cam {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    top: 6px;
}
/* Wi-Fi: rings ride on the device that is on Wi-Fi */
.ripple {
    position: absolute;
    left: 50%;
    top: -12px; /* a gap between the device and its Wi-Fi arcs */
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 500ms;
    pointer-events: none;
}
.ripple.host {
    left: 810px;
    top: 162px;
}
.world.air:not(.netshare) .ripple.host,
.world.many .ripple.host,
.world.air .phone .ripple,
.world.many .pad .ripple {
    opacity: 1;
}
.ripple::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--glow);
}
.ripple i {
    --r: 7px;
    position: absolute;
    left: calc(var(--r) * -1);
    top: calc(var(--r) * -1);
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    border-radius: 50%;
    border: 2px solid var(--glow);
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    opacity: 0.3;
}
.ripple i:nth-child(2) {
    --r: 12.5px;
}
.ripple i:nth-child(3) {
    --r: 18px;
}
.world.air:not(.netshare) .ripple.host i,
.world.many .ripple.host i,
.world.air .phone .ripple i,
.world.many .pad .ripple i {
    animation: radio 1.8s ease-in-out infinite;
} /* only while shown */
.world.air .ripple i:nth-child(2),
.world.many .ripple i:nth-child(2) {
    animation-delay: 0.22s;
}
.world.air .ripple i:nth-child(3),
.world.many .ripple i:nth-child(3) {
    animation-delay: 0.44s;
}
.world.air .ripple.host i {
    animation-name: radio-in; /* the host's arcs light outside in: the signal arrives */
}
@keyframes radio-in {
    0%,
    100% {
        opacity: 0.3;
    }
    45% {
        opacity: 1;
    }
}
.world.air .ripple.host i:nth-child(1) {
    animation-delay: 1.1s;
}
.world.air .ripple.host i:nth-child(2) {
    animation-delay: 0.88s;
}
.world.air .ripple.host i:nth-child(3) {
    animation-delay: 0.66s;
}
@keyframes radio {
    0%,
    70%,
    100% {
        opacity: 0.3;
    }
    25% {
        opacity: 1;
    }
}

/* ---------- Aelin's windows */
.mirror {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--my, 5px));
    width: var(--mw);
    height: var(--mh);
    transform: translate(-50%, -50%) scale(0.94);
    border-radius: var(--mr);
    background: #111;
    padding: 2.5px;
    box-shadow: 0 16px 30px -12px rgba(25, 22, 10, 0.5);
    opacity: 0;
    pointer-events: none;
    transition:
        width 700ms var(--ease),
        height 700ms var(--ease),
        border-radius 700ms,
        opacity 350ms,
        transform 600ms var(--ease),
        left 800ms var(--ease);
}
.world.live .mirror.main {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
html.land .mirror.main,
html.land .mirror.remote {
    width: var(--lw);
    height: var(--lh);
}
.mirror.extra.and {
    left: 18%;
    --mw: 104px;
    --mh: 228px;
    --mr: 13px;
}
.mirror.extra.pad {
    left: 82%;
    --mw: 160px;
    --mh: 214px;
    --mr: 12px;
}
.world.many .mirror.extra {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
.world.many .mirror.pad {
    transition-delay: 300ms;
}
.mirror .bar {
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    border-radius: 99px;
    background: rgba(32, 32, 34, 0.92);
    color: #fff;
    white-space: nowrap;
}
.mirror .bar button {
    width: 20px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: #fff;
}
.mirror .bar button:hover {
    background: rgba(255, 255, 255, 0.18);
}
.mirror .bar svg {
    width: 11px;
    height: 11px;
}
.mirror .rec {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
    font: 600 9px var(--mono);
}
.mirror .rec i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff453a;
    animation: recdot 1s steps(1) infinite;
}
@keyframes recdot {
    50% {
        opacity: 0.2;
    }
}
.world.recording .mirror.main .rec {
    display: inline-flex;
}
.mirror .screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--mr) - 2.5px);
    overflow: hidden;
}
.lids {
    position: absolute;
    inset: 2.5px;
    border-radius: calc(var(--mr) - 2.5px);
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
}
.lids i {
    position: absolute;
    left: -15%;
    width: 130%;
    height: 56%;
    background: var(--ink);
}
.lids i:first-child {
    top: 0;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: translateY(-104%);
}
.lids i:last-child {
    bottom: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(104%);
}
.lids.blink i {
    animation: lidT 560ms cubic-bezier(0.6, 0, 0.3, 1);
}
.lids.blink i:last-child {
    animation-name: lidB;
}
@keyframes lidT {
    0% {
        transform: translateY(-104%);
    }
    40%,
    56% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-104%);
    }
}
@keyframes lidB {
    0% {
        transform: translateY(104%);
    }
    40%,
    56% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(104%);
    }
}

/* ask, toast, file */
.ask {
    position: absolute;
    right: 12px;
    top: 28px;
    width: 214px;
    padding: 10px 11px;
    border-radius: 10px;
    background: #2a2a2d;
    color: #fff;
    font-size: 9.5px;
    line-height: 1.35;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition:
        opacity 400ms,
        transform 500ms var(--spring);
    z-index: 40;
}
.ask > span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.7);
}
.ask div {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}
.ask button {
    flex: 1;
    height: 22px;
    border: 0;
    border-radius: 6px;
    font: 600 9.5px var(--sans);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}
.ask button.yes {
    background: #f2f2ef;
    color: #111;
}
.world.asking .ask button.yes {
    animation: nudge 1.6s ease-in-out infinite 1s;
}
@keyframes nudge {
    50% {
        box-shadow: 0 0 0 4px rgba(242, 242, 239, 0.35);
    }
}
.world.asking .ask {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.world[data-host="windows"] .ask {
    top: auto;
    bottom: 34px;
}
.toast {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translate(-50%, 16px);
    padding: 7px 10px;
    border-radius: 9px;
    background: #2a2a2d;
    color: #fff;
    font-size: 8.5px;
    white-space: nowrap;
    opacity: 0;
    transition:
        opacity 300ms,
        transform 400ms var(--spring);
    z-index: 40;
}
.toast b {
    display: block;
    font-size: 9.5px;
}
.toast span {
    color: rgba(255, 255, 255, 0.75);
}
.world.toasting .toast {
    opacity: 1;
    transform: translate(-50%, 0);
}
.mirror {
    z-index: 2;
}
.file {
    z-index: 1;
    position: absolute;
    left: 18px;
    top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 70px;
    text-align: center;
    font: 500 7.5px/1.25 var(--mono);
    color: var(--ink-2);
    opacity: 0;
    transform: translateY(-20px) scale(0.6);
    transition:
        opacity 300ms,
        transform 600ms var(--spring);
}
.world[data-host="linux"] .file {
    left: 34px;
}
.world[data-host="windows"] .file {
    top: 14px;
}
.file i {
    width: 28px;
    height: 36px;
    border: 1.3px solid var(--ink);
    border-radius: 3px 10px 3px 3px;
    background: linear-gradient(160deg, #3b2ea8, #6f5cf0);
    position: relative;
}
.file i::after {
    content: "MP4";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    text-align: center;
    font: 700 7px var(--mono);
    color: #fff;
}
.world.saved .file {
    opacity: 1;
    transform: none;
}
.world.file-up .file {
    z-index: 6;
    transform: translate(220px, 90px) scale(2.1);
    transition:
        opacity 300ms,
        transform 700ms var(--spring);
}
.world.file-top .file {
    z-index: 6;
}
.world.file-up .file > span {
    background: var(--paper-hi);
    border-radius: 4px;
    padding: 1px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* the computer at home: only in the shots that go there */
.homeroom {
    opacity: 0;
    transition: opacity 600ms;
}
body[data-cam="home"] .homeroom {
    opacity: 1;
}
.monitor {
    position: absolute;
    left: 1880px;
    top: 190px;
    width: 560px;
    height: 326px;
    border: var(--line) solid var(--ink);
    border-radius: 8px;
    background: var(--paper);
    --my: -2px;
}
.monitor .display {
    inset: 10px;
    background: linear-gradient(170deg, #f6f8f9, #ebeff1);
}
.monitor .mirror {
    --mw: 108px;
    --mh: 232px;
    --mr: 18px;
}
html.land .monitor .mirror {
    --lw: 460px;
    --lh: 213px;
}
.world.shared .mirror.remote {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ---------- inside the phone */
.screen {
    background: #0b0b0b;
    color: #111;
    font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    letter-spacing: -0.02em; /* tiny text scaled up by the camera: without this the system font tracks wide */
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: none;
    container-type: size;
}
.screen > .app,
.screen > .off {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.off {
    background: #0b0b0b;
}
.off::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.07) 38% 46%, transparent 46%);
}
.wall {
    position: absolute;
    inset: 0;
    background: var(--wall);
}
.app.lock {
    background: linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.18)), var(--wall);
    color: #fff;
}
.lk-q {
    position: absolute;
    bottom: 5.4cqh;
    width: 11cqw;
    height: 11cqw;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lk-q.l {
    left: 11cqw;
}
.lk-q.r {
    right: 11cqw;
}
.lk-q svg {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
.lk-ico {
    position: absolute;
    left: 50%;
    top: 8.4%;
    width: 5cqh;
    height: 5cqh;
    margin-left: -2.5cqh;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}
.sb {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 7.4cqh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6cqh 8cqw 0 10cqw;
    font-size: 2.7cqh;
    color: #fff;
    z-index: 5;
}
.sb b {
    font-weight: 600;
    letter-spacing: -0.01em;
}
.sb span {
    display: flex;
    align-items: center;
    gap: 1.3cqw;
    height: 2.4cqh;
}
.sb svg {
    height: 1.65cqh;
    fill: currentColor;
}
.sb .sig {
    width: 2.6cqh;
}
.sb .wf {
    width: 2.4cqh;
}
.sb .bat {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 3.9cqh;
    height: 1.95cqh;
    margin-right: 0.5cqh;
    padding: 0 0.35cqh;
    border-radius: 0.6cqh;
    background: #fff;
    color: #000;
    font-size: 1.5cqh;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.sb .bat::after {
    content: "";
    position: absolute;
    right: -0.55cqh;
    top: 50%;
    width: 0.35cqh;
    height: 0.7cqh;
    margin-top: -0.35cqh;
    border-radius: 0 0.3cqh 0.3cqh 0;
    background: rgba(255, 255, 255, 0.5);
}
.sb.dk {
    color: #111;
}
.sb.dk .bat {
    background: #111;
    color: #fff;
}
.sb.dk .bat::after {
    background: rgba(0, 0, 0, 0.4);
}
/* Android: Wi-Fi first, then signal, then the battery as plain "86%" */
.world[data-device="android"] .sb {
    padding: 0.6cqh 6cqw 0 7cqw;
}
.world[data-device="android"] .sb .wf {
    order: -1;
}
.world[data-device="android"] .sb .bat {
    background: none;
    color: inherit;
    font-weight: 500;
    font-size: 2.2cqh;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.world[data-device="android"] .sb .bat::after {
    content: "%";
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
}
.world[data-device="android"] .sb .bat {
    display: flex;
}
html.land .sb {
    display: none;
}
.lk-clock {
    position: absolute;
    left: 0;
    right: 0;
    top: 13.5%;
    text-align: center;
    font-size: 14.5cqh;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}
.lk-clock small {
    display: block;
    margin-bottom: 0.6cqh;
    font-size: 2.6cqh;
    font-weight: 600;
    letter-spacing: -0.01em;
    opacity: 0.9;
}
.lk-msg {
    position: absolute;
    left: 0;
    right: 0;
    top: 47%;
    text-align: center;
    font-size: 3cqh;
    font-weight: 500;
}
.lk-dots {
    position: absolute;
    left: 0;
    right: 0;
    top: 53%;
    display: flex;
    justify-content: center;
    gap: 3cqw;
    opacity: 0;
    transition: opacity 200ms;
}
.lk-dots.on {
    opacity: 1;
}
.lk-dots i {
    width: 5.5cqw;
    height: 5.5cqw;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #fff;
    transition: background 120ms;
}
.lk-dots i.f {
    background: #fff;
}
.app.home {
    color: #fff;
}
.widget {
    display: none;
}
/* two square widgets on top, like a real home screen */
.wgs {
    position: absolute;
    left: 6cqw;
    right: 6cqw;
    top: 9cqh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5cqw;
}
.wg {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6cqw;
    padding: 4.4cqw 4.6cqw;
    overflow: hidden;
    box-shadow: 0 0.6cqh 2cqh rgba(0, 0, 0, 0.12);
}
.wg span {
    display: block;
    font-size: 1.75cqh;
    font-weight: 600;
    letter-spacing: 0;
}
.wg b {
    display: block;
    font-weight: 400;
    line-height: 1;
}
.wx-w {
    background: linear-gradient(180deg, #2D8CFF, #5DB2FF);
    color: #fff;
}
.wx-w b {
    font-size: 5.6cqh;
    font-weight: 300;
    margin-top: 0.4cqh;
    letter-spacing: -0.04em;
}
.wx-w svg {
    display: block;
    width: 2.6cqh;
    height: 2.6cqh;
    margin-top: 0.5cqh;
}
.wx-w em {
    display: block;
    font-style: normal;
    font-size: 1.6cqh;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0.2cqh;
}
.cal-w {
    background: #fff;
    color: #111;
}
.cal-w span {
    color: #fa2a4a;
}
.cal-w b {
    font-size: 5.4cqh;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin: 0.2cqh 0 0.8cqh;
}
.cal-w p {
    position: relative;
    margin: 0 0 0.6cqh;
    padding-left: 2.2cqw;
    font-size: 1.6cqh;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-w p i {
    position: absolute;
    left: 0;
    top: 0.2cqh;
    bottom: 0.2cqh;
    width: 0.8cqw;
    border-radius: 1cqw;
    background: #fa2a4a;
}
.cal-w p i.g {
    background: #34c77b;
}
.cal-w small {
    display: block;
    font-size: 1.5cqh;
    font-weight: 400;
    color: #8a8a8e;
}
.icons {
    position: absolute;
    left: 5cqw;
    right: 5cqw;
    top: 35cqh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.8cqh 1cqw;
}
.ic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9cqh;
    border: 0;
    background: none;
    padding: 0;
    color: #fff;
    cursor: none;
}
.ic i,
.sb .bat,
.banner > i {
    font-style: normal;
}
.ic i {
    display: grid;
    place-items: center;
    width: 15.5cqw;
    height: 15.5cqw;
    border-radius: 4.4cqw;
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.18),
        0 0.3cqh 1cqh rgba(0, 0, 0, 0.14);
}
.ic i svg,
.banner > i svg {
    width: 62%;
    height: 62%;
    fill: none;
    stroke: var(--fg, #fff);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ic span {
    font-size: 1.75cqh;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow: 0 0 0.8cqh rgba(0, 0, 0, 0.28);
}
.dock {
    position: absolute;
    left: 3.5cqw;
    right: 3.5cqw;
    bottom: 2.4cqh;
    height: 11.6cqh;
    border-radius: 8cqw;
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
    display: flex;
    justify-content: space-around;
    align-items: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.dock .ic span {
    display: none;
}
.search {
    display: none;
}
/* Android: no dock plate, a search bar; iPad: five columns */
.world[data-device="android"] .screen:not(.x-and) .dock {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    bottom: 11cqh;
}
.world[data-device="android"] .screen:not(.x-and) .search {
    display: flex;
    align-items: center;
    position: absolute;
    left: 7cqw;
    right: 7cqw;
    bottom: 4cqh;
    height: 6.4cqh;
    padding: 0 4cqw;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.9);
}
.world[data-device="android"] .search svg {
    width: 3.6cqh;
    height: 3.6cqh;
    fill: none;
    stroke: #555;
    stroke-width: 2;
}
.world[data-device="android"] .widget {
    display: block;
    position: absolute;
    left: 8cqw;
    right: 8cqw;
    top: 10cqh;
    color: #fff;
    text-shadow: 0 0 1.2cqh rgba(0, 0, 0, 0.18);
}
.world[data-device="android"] .widget b {
    display: block;
    font-weight: 400;
    font-size: 9cqh;
    line-height: 1;
    letter-spacing: -0.03em;
}
.world[data-device="android"] .widget span {
    display: block;
    margin-top: 1cqh;
    font-size: 2cqh;
    font-weight: 500;
}
.world[data-device="android"] .wgs {
    display: none;
}
.world[data-device="android"] .screen:not(.x-and) .ic i {
    border-radius: 50%;
}
.world[data-device="ipad"] .icons {
    left: 10cqw;
    right: 10cqw;
    grid-template-columns: repeat(5, 1fr);
    top: 32cqh;
}
.world[data-device="ipad"] .ic i {
    width: 11cqw;
    height: 11cqw;
    border-radius: 2.8cqw;
}
.world[data-device="ipad"] .wgs {
    right: 54cqw;
    top: 8cqh;
    gap: 3cqw;
}
.world[data-device="ipad"] .wg {
    border-radius: 4cqw;
    padding: 3cqw;
}
.world[data-device="ipad"] .dock {
    left: 22cqw;
    right: 22cqw;
}
.hb {
    position: absolute;
    left: 50%;
    bottom: 1cqh;
    width: 34cqw;
    height: 0.8cqh;
    margin-left: -17cqw;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.85);
    z-index: 8;
    pointer-events: none;
}
.app.photos .hb,
.app.messages .hb,
.app.music .hb,
.app.notes .hb,
.app.settings .hb,
.app.clock .hb,
.app.calendar .hb,
.app.maps .hb {
    background: rgba(0, 0, 0, 0.75);
}
html.land .hb {
    width: 20cqw;
    margin-left: -10cqw;
    height: 1.4cqh;
}
.banner {
    position: absolute;
    left: 3cqw;
    right: 3cqw;
    top: 1.6cqh;
    display: flex;
    align-items: center;
    gap: 3cqw;
    padding: 2cqh 4cqw;
    border-radius: 5cqw;
    background: rgba(250, 250, 250, 0.97);
    color: #111;
    box-shadow: 0 1cqh 3cqh rgba(0, 0, 0, 0.25);
    z-index: 9;
    animation: dropin 600ms var(--spring);
    cursor: none;
}
.banner > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 9cqw;
    height: 9cqw;
    border-radius: 2.4cqw;
}
.banner div {
    flex: 1;
    min-width: 0;
    font-size: 2.6cqh;
    line-height: 1.25;
}
.banner b {
    display: block;
}
.banner span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.banner em {
    font-style: normal;
    font-size: 2.1cqh;
    color: #888;
    align-self: flex-start;
}
@keyframes dropin {
    from {
        transform: translateY(-130%);
    }
}
.app.photos,
.app.messages,
.app.music,
.app.notes,
.app.settings,
.app.clock,
.app.calendar {
    background: #fff;
}
.app h6 {
    margin: 0;
    padding: 10cqh 5cqw 2cqh;
    font-size: 5.2cqh;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.ph-scroll {
    position: absolute;
    top: 19cqh;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}
.ph-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    will-change: transform;
}
.world[data-device="ipad"] .ph-grid {
    grid-template-columns: repeat(4, 1fr);
}
.ph-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    pointer-events: auto;
}
.viewer {
    position: absolute;
    inset: 0;
    background: #000;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.viewer img {
    width: 100%;
    transition: transform 250ms var(--ease);
}
.vbar {
    position: absolute;
    left: 0;
    right: 0;
    top: 7cqh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4cqw;
    color: #fff;
    font-size: 2.6cqh;
    z-index: 6;
}
.vbar button {
    border: 0;
    background: none;
    color: #4da3ff;
    font-size: 3cqh;
    padding: 0;
    cursor: none;
}
.app.photos .viewer ~ .hb {
    background: rgba(255, 255, 255, 0.8);
}
.mh {
    position: absolute;
    left: 0;
    right: 0;
    top: 7cqh;
    height: 11cqh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5cqh;
    border-bottom: 1px solid #eee;
    font-size: 2.4cqh;
    background: #f8f8f8;
}
.mh i {
    display: grid;
    place-items: center;
    width: 5.6cqh;
    height: 5.6cqh;
    border-radius: 50%;
    background: linear-gradient(#a6b1c2, #7d889b);
    color: #fff;
    font-style: normal;
    font-size: 2.8cqh;
    font-weight: 600;
}
.thread {
    position: absolute;
    left: 0;
    right: 0;
    top: 19cqh;
    bottom: 11cqh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 4cqw 2cqh;
    overflow: hidden;
    cursor: ns-resize;
}
.thread .tw {
    display: flex;
    flex-direction: column;
    gap: 1cqh;
    transition: transform 80ms;
}
.thread small:not(:first-child) {
    margin-top: 1.4cqh;
}
.thread small {
    align-self: center;
    margin-bottom: 1cqh;
    font-size: 2cqh;
    color: #999;
}
.thread p {
    margin: 0;
    max-width: 78%;
    padding: 1.2cqh 3.4cqw;
    border-radius: 4.4cqw;
    background: #e9e9eb;
    font-size: 2.7cqh;
    line-height: 1.3;
    align-self: flex-start;
}
.thread p:last-child {
    animation: pop 300ms var(--spring);
}
.thread p.me {
    background: #1f8bff;
    color: #fff;
    align-self: flex-end;
}
@keyframes pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }
}
.compose {
    position: absolute;
    left: 3cqw;
    right: 3cqw;
    bottom: 3.6cqh;
    height: 6cqh;
    display: flex;
    align-items: center;
    padding: 0 1.6cqw 0 4cqw;
    border-radius: 99px;
    box-shadow: inset 0 0 0 1px #ddd;
    font-size: 2.7cqh;
}
.compose span {
    white-space: nowrap;
    overflow: hidden;
    max-width: 78%;
}
.compose .ph {
    color: #aaa;
}
.compose .caret {
    width: 1.5px;
    height: 3.2cqh;
    background: #1f8bff;
    margin-left: 1px;
    animation: caret 1s steps(1) infinite;
}
@keyframes caret {
    50% {
        opacity: 0;
    }
}
.compose b {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 4.6cqh;
    height: 4.6cqh;
    border-radius: 50%;
    background: #1f8bff;
    color: #fff;
    font-size: 2.6cqh;
}
.app.tv,
.app.game {
    background: #000;
}
canvas.feed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.tv-ui {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.tv-ui button {
    width: 18cqh;
    height: 18cqh;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 7cqh;
    cursor: none;
    transition: opacity 300ms;
}
.tv-ui.playing button {
    opacity: 0;
}
.tv-ui .snd {
    position: absolute;
    right: 3cqw;
    bottom: 7cqh;
    display: flex;
    align-items: center;
    gap: 1.4cqw;
    padding: 2cqh 3cqw 2cqh 2.4cqw;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    font-size: 5.6cqh;
    font-weight: 600;
    cursor: none;
    animation: nudge2 1.4s ease-in-out infinite;
}
.tv-ui .snd svg {
    width: 7cqh;
    height: 7cqh;
    fill: none;
    stroke: #111;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes nudge2 {
    50% {
        transform: scale(1.06);
    }
}
.mu {
    position: absolute;
    left: 8cqw;
    right: 8cqw;
    top: 12cqh;
    text-align: center;
}
.mu img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5cqw;
    box-shadow: 0 2cqh 4cqh rgba(0, 0, 0, 0.25);
    transition: transform 600ms var(--spring);
    transform: scale(0.86);
}
.mu img.spin {
    transform: scale(1);
}
.mu b {
    display: block;
    margin-top: 3.6cqh;
    font-size: 3.4cqh;
}
.mu > span {
    font-size: 2.6cqh;
    color: #888;
}
.prog {
    margin-top: 3cqh;
    height: 0.8cqh;
    border-radius: 9px;
    background: #e5e5e5;
    overflow: hidden;
}
.prog i {
    display: block;
    height: 100%;
    background: #111;
}
.ctl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8cqw;
    margin-top: 3cqh;
}
.ctl button {
    border: 0;
    background: none;
    font-size: 4.2cqh;
    padding: 0;
    cursor: none;
    color: #111;
}
.ctl .pp {
    font-size: 6cqh;
}
.notes {
    position: absolute;
    inset: 0;
    padding: 0 5cqw;
    font-size: 2.8cqh;
    cursor: text;
    background: #fffdf6;
}
.notes h6 {
    padding-left: 0;
}
.notes p {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.notes .caret,
.notes-caret {
    display: inline-block;
    width: 1.5px;
    height: 3.2cqh;
    margin-left: 1px;
    vertical-align: -0.5cqh;
    background: #f5b41e;
    animation: caret 1s steps(1) infinite;
}
.notes small {
    position: absolute;
    left: 5cqw;
    right: 5cqw;
    bottom: 5cqh;
    font-size: 2.1cqh;
    color: #b9ae8c;
}
.empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #999;
    font-size: 3cqh;
}
.app.recents {
    background: rgba(30, 30, 32, 0.96);
}
.rc {
    position: absolute;
    top: 14%;
    left: 50%;
    width: 62%;
    height: 70%;
    margin-left: -31%;
    transform: translateX(calc(var(--i) * 72%)) scale(calc(1 + var(--i) * 0.04));
    cursor: none;
    animation: rcin 400ms var(--ease);
}
@keyframes rcin {
    from {
        transform: translateX(0) scale(1.5);
        opacity: 0;
    }
}
.rc span {
    position: absolute;
    top: -4.2cqh;
    left: 1cqw;
    color: #fff;
    font-size: 2.6cqh;
    font-weight: 600;
}
.rc-shot {
    position: absolute;
    inset: 0;
    border-radius: 5cqw;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2cqh 5cqh rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.rc-shot .cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rc-shot .gm {
    background: linear-gradient(160deg, #15123a, #3b2a86);
}
.rc-shot .msg-th {
    background: linear-gradient(#fff 70%, #e9e9eb 70% 76%, #fff 76%);
}
.rc-shot .blank {
    background: #f4f4f4;
}
.rc-none {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #aaa;
    font-size: 3cqh;
    margin: 0;
}
.app.open {
    animation: open 380ms var(--ease);
}
@keyframes open {
    from {
        transform: scale(0.25);
        opacity: 0;
        border-radius: 30%;
    }
}
.app.close {
    animation: close 380ms var(--ease);
}
@keyframes close {
    from {
        transform: scale(1.12);
        opacity: 0;
    }
}
.app.from-r {
    animation: fromR 420ms var(--ease);
}
.app.from-l {
    animation: fromL 420ms var(--ease);
}
@keyframes fromR {
    from {
        transform: translateX(100%);
    }
}
@keyframes fromL {
    from {
        transform: translateX(-100%);
    }
}
.app.pop {
    animation: popin 300ms var(--ease);
}
@keyframes popin {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
}
.ucard {
    position: absolute;
    left: 50%;
    top: 9cqh;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 1.4cqh 3.6cqw;
    border-radius: 99px;
    background: rgba(20, 20, 22, 0.9);
    color: #fff;
    font-size: 2.6cqh;
    font-weight: 600;
    z-index: 20;
    animation: dropin 400ms var(--spring);
}
.ucard.ok::before {
    content: "✓ ";
    color: #32d74b;
}
.ucard.still {
    animation: none;
}
.touch {
    position: absolute;
    width: 11cqw;
    height: 11cqw;
    margin: -5.5cqw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 0 1.5px rgba(255, 255, 255, 0.9),
        0 0 0 4px rgba(0, 0, 0, 0.08);
    opacity: 0;
    z-index: 25;
    pointer-events: none;
    transition:
        opacity 120ms,
        transform 120ms;
}
html.land .touch {
    width: 11cqh;
    height: 11cqh;
    margin: -5.5cqh;
}
.touch.on {
    opacity: 1;
}
.touch.down {
    transform: scale(0.78);
    background: rgba(255, 255, 255, 0.65);
}
.x-and {
    background: var(--w-android);
}
.x-and::before {
    content: attr(data-time);
    position: absolute;
    left: 0;
    right: 0;
    top: 16%;
    text-align: center;
    color: #fff;
    font:
        300 12cqh/1 -apple-system,
        Roboto,
        system-ui,
        sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.x-and::after {
    content: "";
    position: absolute;
    left: 8cqw;
    right: 8cqw;
    bottom: 5cqh;
    height: 7cqh;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.85);
}
.x-and.tapped::after {
    background: #fff;
}
.x-pad {
    background-size: cover;
    background-position: center;
}
.world.many .x-pad {
    animation: kb 6s ease-in-out infinite alternate;
}
@keyframes kb {
    to {
        background-size: 118%;
    }
}

.cal {
    position: absolute;
    inset: 9cqh 5cqw 0;
}
.cal small {
    color: #f0304c;
    font-size: 2.6cqh;
    font-weight: 600;
    text-transform: uppercase;
}
.cal b {
    display: block;
    font-size: 12cqh;
    font-weight: 300;
    line-height: 1;
    margin: 0.6cqh 0 3cqh;
}
.cal p {
    position: relative;
    margin: 0 0 1.4cqh;
    padding: 1.2cqh 3cqw 1.2cqh 5cqw;
    border-radius: 2cqw;
    background: #fdecee;
    font-size: 2.6cqh;
    font-weight: 600;
}
.cal p span {
    display: block;
    font-weight: 400;
    color: #777;
    font-size: 2.2cqh;
}
.cal p i {
    position: absolute;
    left: 1.6cqw;
    top: 1.2cqh;
    bottom: 1.2cqh;
    width: 0.8cqw;
    border-radius: 9px;
    background: #f0304c;
}
.cal p i.g {
    background: #3b82f6;
}
.cal p:has(i.g) {
    background: #eaf1fe;
}
.wx {
    position: absolute;
    inset: 0;
    background: linear-gradient(#4a90e2, #82b7ee);
    color: #fff;
    text-align: center;
    padding-top: 14cqh;
}
.wx > span {
    font-size: 3.4cqh;
}
.wx b {
    display: block;
    font-size: 15cqh;
    font-weight: 200;
    line-height: 1;
}
.wx em {
    font-style: normal;
    font-size: 2.8cqh;
}
.wx div {
    display: flex;
    justify-content: space-around;
    margin: 5cqh 5cqw 0;
    padding: 2cqh 0;
    border-radius: 4cqw;
    background: rgba(255, 255, 255, 0.18);
    font-size: 2.2cqh;
}
.wx i {
    font-style: normal;
}
.map {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #e6ebdd;
    cursor: grab;
}
.map-in {
    position: absolute;
    inset: -60%;
    background:
        linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 34cqw 34cqw,
        linear-gradient(transparent 46%, #fff 46% 54%, transparent 54%) 0 0 / 30cqh 30cqh,
        linear-gradient(160deg, #eef0e6, #e2e9da);
}
.map-in::before {
    content: "";
    position: absolute;
    left: 10%;
    top: 30%;
    width: 34%;
    height: 24%;
    border-radius: 3cqw;
    background: #cfe6c2;
}
.map .me {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 5cqw;
    height: 5cqw;
    margin: -2.5cqw;
    border-radius: 50%;
    background: #2f7df6;
    box-shadow:
        0 0 0 1.2cqw rgba(47, 125, 246, 0.25),
        0 0 0 0.6cqw #fff;
}
.map-card {
    position: absolute;
    left: 4cqw;
    right: 4cqw;
    bottom: 5cqh;
    padding: 2cqh 4cqw;
    border-radius: 4cqw;
    background: #fff;
    box-shadow: 0 1cqh 3cqh rgba(0, 0, 0, 0.15);
    font-size: 2.8cqh;
}
.map-card span {
    display: block;
    font-size: 2.3cqh;
    color: #777;
}
.cam-view {
    position: absolute;
    inset: 0 0 18% 0;
    width: 100%;
    height: 82%;
    object-fit: cover;
}
.app.camera {
    background: #000;
}
.shutter {
    position: absolute;
    left: 50%;
    bottom: 5cqh;
    width: 15cqw;
    height: 15cqw;
    margin-left: -7.5cqw;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 1cqw #000,
        0 0 0 1.6cqw #fff;
    cursor: pointer;
    transition: transform 120ms;
}
.shutter:active {
    transform: scale(0.9);
}
.cam-thumb {
    position: absolute;
    left: 7cqw;
    bottom: 6.5cqh;
    width: 10cqw;
    height: 10cqw;
    border-radius: 2cqw;
    object-fit: cover;
    border: 0.5cqw solid #fff;
    animation: pop 400ms var(--spring);
}
.kbd {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    font-size: 16px;
    border: 0;
    padding: 0;
    pointer-events: none;
}
.clk {
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    text-align: center;
    font-size: 13cqh;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.clk small {
    display: block;
    font-size: 2.8cqh;
    color: #888;
    letter-spacing: 0;
}
.set {
    position: absolute;
    inset: 0;
    background: #f2f2f7;
}
.set h6 {
    padding-left: 5cqw;
}
.set p {
    display: flex;
    justify-content: space-between;
    margin: 0 4cqw;
    padding: 2cqh 3cqw;
    background: #fff;
    font-size: 2.6cqh;
    border-bottom: 1px solid #eee;
}
.set p:first-of-type {
    border-radius: 2.4cqw 2.4cqw 0 0;
}
.set p:last-of-type {
    border-radius: 0 0 2.4cqw 2.4cqw;
    border: 0;
}
.set p span {
    color: #bbb;
}
.set p[data-act] {
    cursor: pointer;
}
.sw {
    position: relative;
    width: 10cqw;
    height: 6cqw;
    border-radius: 99px;
    background: #e5e5ea;
    transition: background 200ms;
}
.sw::after {
    content: "";
    position: absolute;
    left: 0.5cqw;
    top: 0.5cqw;
    width: 5cqw;
    height: 5cqw;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.3cqw 0.8cqw rgba(0, 0, 0, 0.25);
    transition: transform 220ms var(--spring);
}
.sw.on {
    background: #34c759;
}
.sw.on::after {
    transform: translateX(4cqw);
}

/* ---------- handwritten notes: always the same size on screen (--s is the camera's scale) */
.note {
    position: absolute;
    margin: 0;
    font-family: var(--hand);
    font-size: calc(24px / var(--s, 1));
    line-height: 1.02;
    color: var(--ink-2);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 400ms;
    pointer-events: none;
}
.world.moving .note {
    opacity: 0 !important;
    transition-duration: 120ms;
} /* notes wait for the camera to land */
.note svg {
    position: absolute;
    overflow: visible;
}
.note svg path {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: calc(2.4px / var(--s, 1)); /* the same on-screen weight at every camera scale, like the note's text */
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.n-drag {
    left: 492px;
    top: 604px;
}
.n-carry {
    left: 92px;
    top: 590px;
}
.n-msg {
    left: 892px;
    top: 236px;
}
.n-game {
    left: 890px;
    top: 588px;
}
body.dragging .n-drag {
    opacity: 0 !important;
}
body[data-ch="hero"] .world:not(.plugged) .n-drag,
body[data-ch="plug"] .world:not(.plugged):not(.live) .n-drag {
    opacity: 1;
}
body[data-ch="away"] .world:not(.away) .n-carry {
    opacity: 1;
}
body[data-ch="desk"] .world.banner-up .n-msg {
    opacity: 1;
}
body[data-ch="play"] .n-game {
    opacity: 1;
}

/* the cable */
.cable {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    pointer-events: none;
    transition: opacity 500ms;
}
.world.away .cable {
    opacity: 0;
}
.world.away.many .cable {
    opacity: 1;
}
#rope {
    fill: none;
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#glow,
#spark {
    fill: none;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 400ms;
}
#glow {
    stroke: var(--glow);
    stroke-width: 11;
}
#spark {
    stroke: #fff;
    stroke-width: 2.2;
}
.world.plugged #glow {
    opacity: 0.32;
}
.world.plugged #spark {
    opacity: 1;
}
#plugA .boot,
#plugB .boot {
    fill: var(--ink);
}
#plugA .tip,
#plugB .tip {
    fill: #d9d6cc;
    stroke: var(--ink);
    stroke-width: 1.4;
}
#plugB {
    pointer-events: auto;
    cursor: grab;
}
#plugB .hit {
    fill: transparent;
}
body:not([data-ch="hero"]):not([data-ch="plug"]) #plugB {
    pointer-events: none;
}
body.dragging,
body.dragging * {
    cursor: grabbing !important;
}

/* ---------- the story text */
main {
    position: relative;
    z-index: 3;
    pointer-events: none;
}
main a,
main button,
main select,
main label,
.after {
    pointer-events: auto;
}
.hero {
    margin: 0 max(40px, 4vw);
    min-height: 100svh;
    padding-top: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 430px);
    justify-content: space-between;
    column-gap: clamp(40px, 6vw, 110px);
    align-content: start;
    align-items: center;
}
.hero .lede {
    margin-top: 0;
    font-size: 19px;
    max-width: none;
}
.hero .side {
    padding-bottom: 0.4em;
}
.ch {
    width: min(28vw, 400px);
    margin-left: max(40px, 4vw);
    position: relative;
    min-height: 110svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h1 {
    margin: 0;
    font-size: clamp(46px, 5.2vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 790;
}
.pick {
    position: relative;
    display: inline-grid;
    vertical-align: bottom;
    overflow: hidden;
    padding: 0 0.07em 0.1em 0.02em;
    margin-right: -0.05em;
    margin-bottom: -0.1em;
    color: var(--accent);
    cursor: pointer;
    transition:
        width 640ms var(--ease),
        color 600ms;
}
.pick > span {
    grid-area: 1 / 1;
    justify-self: start;
    white-space: nowrap;
    transition:
        transform 640ms var(--ease),
        opacity 400ms;
}
.pick > span.out {
    transform: translateY(-110%);
    opacity: 0;
}
.pick > span.in {
    transform: translateY(110%);
    opacity: 0;
}
.pick::after {
    content: "";
    position: absolute;
    left: 0.02em;
    right: 0;
    bottom: 0.03em;
    height: 0.05em;
    border-radius: 1em;
    background: currentColor;
    opacity: 0.25;
}
.pick::before {
    content: "";
    position: absolute;
    left: 0.02em;
    right: 0;
    bottom: 0.03em;
    height: 0.05em;
    border-radius: 1em;
    background: currentColor;
    transform-origin: left;
}
.pick.run::before {
    animation: fillbar 2.8s linear both;
}
@keyframes fillbar {
    from {
        transform: scaleX(0);
    }
}
.pick select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}
#w-host {
    color: #b8572e;
}
.lede {
    margin: 28px 0 0;
    max-width: 24em;
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.012em;
    color: var(--ink-2);
}
.hi {
    font-style: normal;
    color: var(--ink);
    font-weight: 650;
    background: linear-gradient(transparent 58%, #ffd86b 58%, #ffd86b 92%, transparent 92%);
    padding: 0 0.1em;
}
.hero .cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 24px;
}
.hero .meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.35;
}
.also {
    color: var(--ink-2);
}
.also a {
    font-weight: 650;
}
.free {
    color: var(--ink-3);
}
.ch .k {
    font: 500 12px var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.ch h2 {
    margin: 12px 0 0;
    font-size: clamp(34px, 3.2vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 770;
    text-wrap: balance;
}
.ch p {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
}
.ch p.aside {
    font-size: 15px;
    color: var(--ink-3);
}
kbd {
    display: inline-block;
    min-width: 1.3em;
    padding: 0 0.25em;
    border-radius: 0.25em;
    box-shadow:
        inset 0 0 0 1.2px var(--ink),
        0 1.5px 0 var(--ink);
    font: 600 0.85em var(--sans);
    text-align: center;
    color: var(--ink);
}

/* ---------- after the story: a plain page on solid paper */
.after {
    position: relative;
    z-index: 4;
    background: var(--paper);
    padding-top: 40px;
}
.after section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 110px 40px 0;
}
.after h2 {
    margin: 0;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 770;
    text-wrap: balance;
}
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
    border-top: 2px solid var(--ink);
}
.facts div {
    padding: 22px 24px 0 0;
    margin-right: 24px;
    border-right: 1px solid var(--hair);
}
.facts div:last-child {
    border-right: 0;
    margin-right: 0;
}
.facts b {
    font-size: clamp(24px, 2.2vw, 32px);
    letter-spacing: -0.035em;
    font-weight: 760;
    white-space: nowrap;
}
.facts p {
    margin: 10px 0 0;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-2);
}
.facts p a {
    color: var(--ink);
    font-weight: 650;
}
.oses {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    margin-top: 36px;
    border-top: 2px solid var(--ink);
}
.oses div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    font-size: 16px;
    color: var(--ink-2);
}
.oses b {
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 6px;
}
.also-android {
    margin: 24px 0 0;
    font-size: 16px;
    color: var(--ink-2);
}
.get .tabs {
    display: inline-flex;
    gap: 4px;
    margin-top: 30px;
    padding: 4px;
    border-radius: 99px;
    box-shadow: inset 0 0 0 1px var(--hair);
}
.get .tabs button {
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 99px;
    background: transparent;
    font: 600 14px var(--sans);
    color: var(--ink-2);
    cursor: pointer;
}
.get .tabs button.on {
    background: var(--ink);
    color: var(--paper);
}
.steps {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    max-width: 720px;
    counter-reset: s;
}
.steps li {
    counter-increment: s;
    display: grid;
    grid-template-columns: 44px 1fr;
    padding: 15px 0;
    border-top: 1px solid var(--hair);
    font-size: 17px;
    color: var(--ink-2);
}
.steps li::before {
    content: counter(s);
    font: 600 22px var(--sans);
    color: var(--ink-3);
}
.steps b {
    color: var(--ink);
}
.steps code {
    font: 13px var(--mono);
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(21, 21, 21, 0.06);
    color: var(--ink);
}
.get .cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
}
.get .text {
    font-weight: 650;
    text-decoration: none;
}
footer {
    max-width: 1120px;
    margin: 130px auto 0;
    padding: 26px 40px 40px;
    border-top: 1px solid var(--hair);
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-3);
}
footer a {
    text-decoration: none;
}
footer .brand {
    font-size: 16px;
    color: var(--ink);
}
footer .credits {
    max-width: 46em;
}

/* ---------- phones and small tablets: drawing on top, words below */
@media (max-width: 900px) {
    nav {
        height: 60px;
        padding: 0 18px;
    }
    nav .links a:not(.dl) {
        display: none;
    }
    .veil {
        display: none;
    }
    .stage {
        z-index: 4;
        background: var(--paper);
        transition:
            opacity 500ms,
            visibility 0s,
            --bt 900ms var(--ease),
            --bb 900ms var(--ease);
        -webkit-mask-image: linear-gradient(
            transparent var(--bt),
            #000 calc(var(--bt) + 14px),
            #000 calc(var(--bb) - 14px),
            transparent var(--bb)
        );
        mask-image: linear-gradient(
            transparent var(--bt),
            #000 calc(var(--bt) + 14px),
            #000 calc(var(--bb) - 14px),
            transparent var(--bb)
        );
    }
    body.done .stage {
        transition:
            opacity 500ms,
            visibility 0s 500ms;
    }
    .hero {
        min-height: 115svh;
    }
    .n-carry {
        display: none;
    }
    .hero,
    .ch {
        width: auto;
        margin: 0 20px;
    }
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 86px;
    }
    .hero h1 {
        line-height: 1.5;
    }
    .hero .side {
        margin-top: 16px;
        padding: 0;
    }
    .note {
        font-size: calc(16px / var(--s, 1));
    }
    h1 {
        font-size: clamp(34px, 10vw, 64px);
    } /* “Use your Android” stays on one line */
    .lede {
        font-size: 18px;
        margin-top: 16px;
    }
    .hero .cta {
        margin-top: 20px;
    }
    .hero .lede {
        font-size: 18px;
    }
    .ch {
        min-height: 100svh;
        justify-content: flex-start;
    }
    .ch h2 {
        font-size: 32px;
    }
    .ch p {
        font-size: 16.5px;
        margin-top: 12px;
    }
    .after section {
        padding: 80px 20px 0;
    }
    .facts {
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
    .facts div {
        border-right: 0;
        margin: 0;
        padding: 20px 0 6px;
    }
    .facts b {
        font-size: 24px;
    }
    .oses {
        grid-template-columns: 1fr;
    }
    .oses div {
        padding: 16px 0;
        border-bottom: 1px solid var(--hair);
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 20px 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .world {
        transition-duration: 0.6s;
    }
    .cat .tip,
    .cat .body,
    .cat .headg {
        animation: none;
    }
    .cat .zzz {
        display: none;
    }
}

/* ?film: the promo film's frame (story.js FILM) */
html.film nav,
html.film .veil,
html.film main,
html.film .note,
html.film .after {
    visibility: hidden;
}
