/* MS COMPUTER - route 3. Every size comes from the film.
   Desktop: 1rem = 100 px of the film's 1920 x 1080 frame, so .19rem is the film's 19 px, at any window size.
   Elements are anchored to the edge they sit on in the film, so other window shapes only change the distances between them.
   Mobile (portrait): 1rem = 100 px of a 390 x 780 screen. */

@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/SpaceGrotesk-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: block; }

:root {
    --lilac: #D8C8E2;      /* light violet: titles and highlights */
    --grey: #9C95A3;       /* grey: text that is not a highlight (the drawings' label grey) (client, 13/11/2026) */
    --ink: #120E15;        /* text on a lilac pill */
    --accent: #8F63FF;     /* the drawings' one accent */
    --line: rgba(216, 200, 226, .62);
    --pill-line: rgba(216, 200, 226, .55);
    --sans: "Space Grotesk", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --slide: 6.4rem;       /* how far the Host panels travel */
}

html { font-size: min(calc(100vw / 19.2), calc(100vh / 10.8)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: var(--lilac); font: 400 .19rem/.26rem var(--sans); letter-spacing: -.01em; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a:focus-visible, button:focus-visible { outline: .02rem solid var(--lilac); outline-offset: .04rem; }

.stage { position: fixed; inset: 0; overflow: hidden; isolation: isolate; background: #000; touch-action: none; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: 0; opacity: .05; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------------------------------- pages */
.pages, .scroller { position: absolute; inset: 0; }
.pages { z-index: 2; }
.scroller { will-change: transform; }
.page { position: absolute; left: 0; width: 100%; height: 100%; }
.page:nth-child(2) { top: 100%; }
.page:nth-child(3) { top: 200%; }

.dots { position: absolute; inset: 0; background-image: radial-gradient(circle at center, rgba(118, 112, 124, .647) .013rem, transparent .017rem); background-size: .12rem .12rem; background-position: center;
    -webkit-mask-image: radial-gradient(ellipse 9.6rem 6.7rem at 50% 48.15%, #000 0, rgba(0, 0, 0, .73) 20%, rgba(0, 0, 0, .49) 40%, rgba(0, 0, 0, .28) 60%, rgba(0, 0, 0, .105) 80%, transparent 100%);
    mask-image: radial-gradient(ellipse 9.6rem 6.7rem at 50% 48.15%, #000 0, rgba(0, 0, 0, .73) 20%, rgba(0, 0, 0, .49) 40%, rgba(0, 0, 0, .28) 60%, rgba(0, 0, 0, .105) 80%, transparent 100%); }

.iso { position: absolute; left: 50%; top: 50%; width: 19.2rem; height: 10.8rem; margin: -5.4rem 0 0 -9.6rem; overflow: visible; pointer-events: none; }
.plate-label { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.cmd { font-family: var(--mono); font-size: 19px; fill: var(--lilac); letter-spacing: 0; }

.title { position: absolute; left: 1.4282rem; bottom: 1.146rem; font: 700 2.3rem/1 var(--sans); letter-spacing: -.04em; white-space: nowrap; color: var(--lilac); }
.title--c { left: 1.465rem; }
.title .u { display: inline-block; will-change: transform, opacity; }

.block { position: absolute; right: 1.58rem; bottom: 1.4rem; width: 5.6rem; }
[data-page="connect"] .block { bottom: 1.45rem; }
/* type hierarchy (client, 13/11/2026): ms.computer bold 700 / highlights and subtitles medium 500 / body text regular 400 /
   sub-texts light 300 */
.head { font: 500 .26rem/.32rem var(--sans); letter-spacing: -.01em; }
.block > .head { margin-bottom: .07rem; }
.head-line { display: flex; align-items: center; gap: .18rem; margin-bottom: .18rem; }
.head b { font-weight: 700; }                    /* the name, "ms.computer", in bold */
.head-line .head { font-weight: 400; }           /* a phrase with the name: regular, the name bold (client, 13/11/2026) */
.tagline { font: 500 .21rem/.28rem var(--sans); margin-bottom: .117rem; }
.desc { color: var(--grey); margin-bottom: .196rem; }   /* not a highlight: grey */
.para { margin-bottom: .036rem; }
.block hr { border: 0; height: .01rem; background: var(--lilac); opacity: .48; margin: 0 0 .165rem; }
.row { display: grid; grid-template-columns: 1.7rem 3.7rem; column-gap: .2rem; margin-bottom: .165rem; }
.row strong { font-weight: 500; }
.row > span { color: var(--grey); font-weight: 300; }  /* sub-text: light, grey. Only the explanation: the labels (highlights)
                                                        stay light violet on every page (client, 13/11/2026) */
.close { font-weight: 500; }
.ln { display: block; }
.ln .u { display: block; white-space: pre; will-change: transform, opacity; }

.tabs { position: relative; display: flex; gap: .1rem; height: .38rem; margin-bottom: .2rem; }
.tab, .tab-pill-labels span { font: 500 .18rem/.38rem var(--sans); letter-spacing: -.01em; padding: 0 .17rem; height: .38rem; white-space: nowrap; }
.tab { border-radius: .19rem; box-shadow: inset 0 0 0 .012rem var(--pill-line); }
.tab-pill { position: absolute; left: 0; top: 0; height: .38rem; border-radius: .19rem; background: var(--lilac); overflow: hidden; pointer-events: none; }
.tab-pill-labels { position: absolute; left: 0; top: 0; display: flex; gap: .1rem; color: var(--ink); }
.panels { position: relative; display: grid; overflow: hidden; margin: -.14rem -.14rem -.36rem; padding: .14rem .14rem .36rem; }
.panel { grid-area: 1 / 1; align-self: end; min-width: 0; }

.pill { position: relative; display: inline-flex; align-items: center; height: .34rem; padding: 0 .15rem; font: 500 .13rem var(--mono); letter-spacing: .02em; white-space: nowrap; }
.pill i { position: absolute; inset: 0; border-radius: .17rem; box-shadow: inset 0 0 0 .012rem var(--pill-line); }
.pill b { position: relative; font-weight: 500; }
.pill--soon { height: .3rem; padding: 0 .14rem; letter-spacing: .04em; }
.pill--soon i { border-radius: .15rem; }
/* Connect: "Sign up" in place of "Coming soon" (client, 12/11/2026): the header button's gradient, white type; goes to the waiting list */
.signup { display: inline-flex; align-items: center; flex: none; height: .32rem; padding: 0 .15rem .015rem; box-sizing: border-box; border-radius: .16rem; color: #fff; font: 400 .19rem/1 var(--sans); letter-spacing: -.03em; white-space: nowrap;
    background: linear-gradient(90deg, transparent 30%, rgba(19, 0, 51, .62)), linear-gradient(180deg, #4E0067, #87519B); transition: filter .3s ease; }
.signup:hover { filter: brightness(1.18); }
.tags { display: flex; gap: .1rem; margin-top: .19rem; height: .34rem; }

/* ---------------------------------------- the column */
.column { position: absolute; z-index: 3; left: 0; top: calc(50% + .02rem); width: 3rem; height: 0; }
.col-item { position: absolute; left: 1.5626rem; display: block; font: 400 .21rem/.3rem var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.col-item:nth-of-type(1) { top: -.937rem; }
.col-item:nth-of-type(2) { top: -.597rem; }
.col-item:nth-of-type(3) { top: -.257rem; }
.col-label { display: inline-block; position: relative; }
.col-label small { position: absolute; left: .925rem; bottom: .062rem; font: 400 .12rem/1 var(--mono); letter-spacing: 0; }
.col-dot-rise { position: absolute; left: 1.58rem; top: -.86rem; width: .18rem; height: .18rem; }
.col-dot { display: block; width: .18rem; height: .18rem; border-radius: 50%; background: var(--lilac); }

/* ---------------------------------------- frame, header, socials */
.frame { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.fl { position: absolute; background: var(--line); }
.fl-t, .fl-b { left: -30%; right: -30%; height: .015rem; }
.fl-l, .fl-r { top: -30%; bottom: -30%; width: .015rem; }
.fl-t { top: .412rem; } .fl-b { bottom: .412rem; }
.fl-l { left: .901rem; } .fl-r { right: .907rem; }
.fc { position: absolute; width: .35rem; height: .35rem; margin: -.175rem 0 0 -.175rem;
    background: linear-gradient(var(--lilac), var(--lilac)) center / 100% .09rem no-repeat, linear-gradient(var(--lilac), var(--lilac)) center / .09rem 100% no-repeat; }
.fc-tl, .fc-bl { left: .909rem; } .fc-tr, .fc-br { left: calc(100% - .915rem); }
.fc-tl, .fc-tr { top: .42rem; } .fc-bl, .fc-br { top: calc(100% - .42rem); }

.top { position: absolute; z-index: 5; inset: 0 0 auto 0; height: 0; }
.logo { position: absolute; left: 1.58rem; top: 1.18rem; width: .72rem; display: block; }
.logo svg { display: block; width: 100%; height: auto; }
.login { position: absolute; right: 1.68rem; top: 1.235rem; width: .91rem; height: .4rem; border-radius: .2rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .23rem; letter-spacing: -.04em; padding-bottom: .02rem; box-sizing: border-box;
    background: linear-gradient(90deg, transparent 30%, rgba(19, 0, 51, .62)), linear-gradient(180deg, #4E0067, #87519B); }

.socials { position: absolute; z-index: 5; left: 0; bottom: 0; height: 0; width: 4rem; }
.socials a { position: absolute; display: block; color: var(--lilac); }
.socials svg { display: block; width: 100%; height: 100%; }
.s-discord { left: 1.5805rem; bottom: .6rem; width: .4615rem; height: .52rem; }
.s-github { left: 2.2181rem; bottom: .6695rem; width: .4352rem; height: .4352rem; }
.s-x { left: 2.8608rem; bottom: .6833rem; width: .45rem; height: .4065rem; }

/* ---------------------------------------- hero */
.hero-title { position: absolute; z-index: 5; left: 1.58rem; top: calc(50% - 1.12rem); font-size: .65rem; letter-spacing: -.05em; line-height: .76rem; white-space: nowrap; pointer-events: none; }
.hero-title span { display: block; }
.hero-title .l1 { font-weight: 700; font-size: .72rem; }                 /* "ms.computer:", in bold and a little larger than the rest */
.hero-title .l2 { font-weight: 400; font-size: .6rem; line-height: .64rem; }   /* the phrase of the name: regular, tighter lines */
.hero-title .l1 + .l2 { margin-top: -.04rem; }
.hero-title .w { display: inline-block; white-space: pre; }
.pc { position: absolute; z-index: 6; right: 0; bottom: 0; width: 19.2rem; height: 10.8rem; pointer-events: none; will-change: transform; }
.pc canvas { display: block; width: 100%; height: 100%; }

/* the scroll cue (client, 12/11/2026): on the hero once the code is typed, then on Host and Run once their drawing is built;
   never on Connect, the last page. A thin lilac ring, the arrow sliding down through it. A click goes on, like a scroll. */
.scroll-cue { position: absolute; z-index: 7; left: 50%; bottom: .62rem; width: .56rem; height: .56rem; margin-left: -.28rem; border-radius: 50%; overflow: hidden;
    box-shadow: inset 0 0 0 .015rem rgba(216, 200, 226, .6); opacity: 0; transition: opacity .6s cubic-bezier(.78, 0, .22, 1); pointer-events: none; }
.scroll-cue.on { opacity: 1; pointer-events: auto; }
.scroll-cue svg { position: absolute; left: 50%; top: 50%; width: .26rem; height: .26rem; margin: -.13rem 0 0 -.13rem; fill: none; stroke: var(--lilac); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    animation: cue 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.scroll-cue:hover { box-shadow: inset 0 0 0 .015rem var(--lilac); }
@keyframes cue { 0% { transform: translateY(-.3rem); } 40%, 60% { transform: translateY(0); } 100% { transform: translateY(.3rem); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
.film .scroll-cue { display: none; }
.zoom-canvas { position: absolute; z-index: 6; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }

.cursor { position: absolute; z-index: 7; left: 0; top: 0; width: .28rem; height: .4rem; display: none; pointer-events: none; transform-origin: 0 0; overflow: visible; }
.film .cursor { display: block; }

/* ---------------------------------------- mobile (portrait)
   1rem = 100 px of a 390 px wide screen; shorter screens scale everything down so a page always fits.
   The product nav sits in the header, in one row, so each page keeps its whole height for itself.
   Each drawing is centred above its title by site.js (fitIso). */
@media (max-aspect-ratio: 1/1) {
    html { font-size: min(calc(100vw / 3.9), calc(100vh / 6.8)); }
    @supports (height: 100svh) { html { font-size: min(calc(100vw / 3.9), calc(100svh / 6.8)); } }
    :root { --line: rgba(216, 200, 226, .5); }
    body { font-size: .09rem; line-height: 1.5; }

    .fl-t { top: .18rem; } .fl-b { bottom: .18rem; }
    .fl-l { left: .16rem; } .fl-r { right: .16rem; }
    .fl-t, .fl-b { height: .01rem; } .fl-l, .fl-r { width: .01rem; }
    .fc { width: .15rem; height: .15rem; margin: -.075rem 0 0 -.075rem; background-size: 100% .04rem, .04rem 100%; }
    .fc-tl, .fc-bl { left: .165rem; } .fc-tr, .fc-br { left: calc(100% - .165rem); }
    .fc-tl, .fc-tr { top: .185rem; } .fc-bl, .fc-br { top: calc(100% - .185rem); }

    .logo { left: .34rem; top: .4rem; width: .44rem; }
    .login { right: .34rem; top: .41rem; width: .62rem; height: .28rem; border-radius: .14rem; font-size: .155rem; padding-bottom: .01rem; }

    .socials { width: 100%; }
    .s-discord { left: .34rem; bottom: .29rem; width: .24rem; height: .27rem; }
    .s-github { left: .67rem; bottom: .325rem; width: .215rem; height: .215rem; }
    .s-x { left: .985rem; bottom: .33rem; width: .215rem; height: .195rem; }

    /* the product nav: one row in the header, between the logo and login; the dot slides to the current page */
    .column { top: .41rem; left: calc(50% - .09rem); width: auto; height: .28rem; display: flex; align-items: center; transform: translateX(-50%); }   /* centred between the logo and login */
    .col-item { position: relative; left: auto; top: auto !important; padding-left: .13rem; margin-right: .1rem; font-size: .13rem; line-height: .28rem; }
    .col-item:last-of-type { margin-right: 0; }
    .col-label { transform: none !important; }
    .col-label small { position: static; margin-left: .04rem; font-size: .08rem; }
    .col-dot-rise { left: 0; top: .1rem; width: .08rem; height: .08rem; }
    .col-dot { width: .08rem; height: .08rem; }

    /* pages: the drawing in the upper part, then the title and the text.
       One text size (--t), one line height (1.5), one spacing step (--gap) everywhere; a row's label sits above its text. */
    .page { --t: .09rem; --gap: .11rem; --row-gap: .035rem; display: flex; flex-direction: column; box-sizing: border-box; padding: .84rem .34rem .66rem; }
    .dots { background-size: .1rem .1rem; background-image: radial-gradient(circle at center, rgba(118, 112, 124, .647) .009rem, transparent .012rem);
        -webkit-mask-image: radial-gradient(ellipse 2.4rem 2rem at var(--iso-x, 50%) var(--iso-y, 32%), #000 0, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .2) 70%, transparent 100%);
        mask-image: radial-gradient(ellipse 2.4rem 2rem at var(--iso-x, 50%) var(--iso-y, 32%), #000 0, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .2) 70%, transparent 100%); }
    .iso-wrap { position: relative; flex: 1 1 auto; min-height: 1.2rem; margin: 0 -.34rem var(--gap); }
    .iso { margin: 0; }

    .title { position: static; font-size: .48rem; letter-spacing: -.04em; line-height: .48rem; margin: 0 0 var(--gap) -.025rem; }
    .title--c { left: auto; }
    .block { position: static; width: auto; flex: 0 0 auto; font-size: var(--t); line-height: 1.5; }
    .block p, .block h3, .row > strong, .row > span { font-size: var(--t); line-height: 1.5; }
    .head, .head-line .head { font-size: .11rem; line-height: 1.5; white-space: nowrap; }
    .block > .head, .head-line, .tagline, .desc, .para, .block hr, .row { margin: 0 0 var(--gap); }
    .head-line { gap: .06rem; }
    .row { display: block; }
    .desc:not(.para), .block hr, .row { margin-bottom: var(--row-gap); }   /* Host and Run: the rows close together */
    .row > strong, .row > span { display: block; }
    .close { margin: 0; }
    .tabs { height: .24rem; gap: .06rem; margin-bottom: var(--gap); }
    .tab, .tab-pill-labels span { font-size: var(--t); line-height: .24rem; height: .24rem; padding: 0 .09rem; }
    .tab, .tab-pill { border-radius: .12rem; }
    .tab-pill { height: .24rem; }
    .tab-pill-labels { gap: .06rem; }
    .panels { margin: -.08rem -.34rem -.1rem; padding: .08rem .34rem .1rem; }
    .pill { height: .2rem; padding: 0 .075rem; font-size: .072rem; }
    .pill i { border-radius: .1rem; }
    .pill--soon { height: .18rem; padding: 0 .06rem; letter-spacing: .02em; flex: none; }
    .pill--soon i { border-radius: .09rem; }
    .signup { height: .17rem; padding: 0 .075rem .005rem; border-radius: .085rem; font-size: .095rem; letter-spacing: -.01em; }
    .tags { flex-wrap: wrap; gap: .05rem; height: auto; margin: 0; }

    /* hero: the headline halfway between the header and the monitor; the computer seen from the front, centred */
    .hero-title { left: .34rem; top: calc(50% - 2.17rem); font-size: .36rem; line-height: .44rem; }
    .hero-title .l1 { font-size: .4rem; }
    .hero-title .l2 { font-size: .31rem; line-height: .34rem; }
    .hero-title .l1 + .l2 { margin-top: -.02rem; }
    .pc { width: 8.83rem; height: 4.97rem; right: auto; left: calc(50% - 4.523rem); bottom: -.3rem; }   /* the pedestal's front runs off the bottom edge, as on desktop */
    .pc canvas { will-change: transform; }
    .scroll-cue { left: auto; right: .34rem; bottom: .265rem; width: .32rem; height: .32rem; margin-left: 0; box-shadow: inset 0 0 0 .01rem rgba(216, 200, 226, .6); }   /* on the socials' row, under "start" */
    .scroll-cue svg { width: .15rem; height: .15rem; margin: -.075rem 0 0 -.075rem; }
    @keyframes cue { 0% { transform: translateY(-.2rem); } 40%, 60% { transform: translateY(0); } 100% { transform: translateY(.2rem); } }
    @keyframes cue { from { transform: translateY(0); } to { transform: translateY(.36rem); } }
}

/* Keep the page hidden until the initial animation state is ready. */
.stage.booting { opacity: 0; }
