/* the home page; type, colours, top bar, buttons and footer are in theme.css */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 21; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: 0 50%; }

/* the scroll story */
.story { position: relative; height: 1540vh; }
#radio { opacity: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: radial-gradient(ellipse 90% 80% at 58% 55%, transparent 55%, rgba(0, 0, 0, .65) 100%);
}
/* darkens the left side under the arguments once the opening landscape has gone */
.shade {
    position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
    background: radial-gradient(ellipse 50% 72% at 12% 24%, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, 0) 100%);
}
.glow {
    position: absolute; left: 66%; top: 52%; width: 95vmin; height: 95vmin;
    transform: translate(-50%, -50%);
    pointer-events: none; opacity: 0;
    animation: breathe 7s ease-in-out infinite;
    /* its own layer: the breathing and the fades are then the compositor's job, not a repaint of the page
       (measured: the glows were costing about 15 frames a second on a phone profile) */
    will-change: transform, opacity;
}
.g-amber { background: radial-gradient(circle, rgba(255, 181, 71, .13) 0%, rgba(255, 181, 71, .04) 38%, transparent 66%); opacity: 1; }
.g-blue { background: radial-gradient(circle, rgba(59, 130, 255, .18) 0%, rgba(59, 130, 255, .05) 38%, transparent 66%); }
.g-violet { background: radial-gradient(circle, rgba(139, 92, 246, .17) 0%, rgba(139, 92, 246, .05) 38%, transparent 66%); }
.g-cyan { background: radial-gradient(circle, rgba(34, 211, 238, .15) 0%, rgba(34, 211, 238, .04) 38%, transparent 66%); }
@keyframes breathe { 50% { scale: 1.08; } }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* drawing */
.ln-faint { fill: none; stroke: var(--faint); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Nothing is outlined: objects are painted surfaces, lit (m0, m1) or in shade (m2, m3).
   --n goes from 0 (day) to 1 (night) with the sky, and every surface darkens with it. */
#city, .gateway { --n: .25; } #dc { --n: .9; }
#world, #scene defs, #city, .gateway, #dc {
    --d: calc(var(--n, .25) * 62%);
    --m0: color-mix(in srgb, #101a2e var(--d), #f3f6fa);
    --m1: color-mix(in srgb, #101a2e var(--d), #bac4d2);
    --m2: color-mix(in srgb, #101a2e var(--d), #8894a7);
    --m3: color-mix(in srgb, #101a2e var(--d), #4d596d);
    --dev: color-mix(in srgb, #101a2e var(--d), #dbe2eb);
    --wool: color-mix(in srgb, #101a2e var(--d), #f1ebde);
    --wool2: color-mix(in srgb, #101a2e var(--d), #cfc5b2);
    --face: color-mix(in srgb, #101a2e var(--d), #4a3b33);
}
.s0 { stop-color: var(--m0); } .s1 { stop-color: var(--m1); } .s2 { stop-color: var(--m2); } .s3 { stop-color: var(--m3); }
.mt0 { fill: var(--m0); } .mt1 { fill: var(--m1); } .mt2 { fill: var(--m2); } .mt3 { fill: var(--m3); }
.dev { fill: var(--dev); }
.devtxt { fill: none; stroke: var(--m2); stroke-width: 1.6; stroke-linecap: round; }
.steel { fill: none; stroke: var(--m2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steel.thin { stroke-width: 1.8; } .steel.dark { stroke: var(--m3); } .steel.lattice { stroke-width: 2.6; }
.plates { fill: none; stroke: var(--m0); stroke-width: 4; stroke-linecap: round; }
.plates.fine { stroke-width: 2.4; }
.lamparm { fill: none; stroke: var(--m2); stroke-width: 4.6; stroke-linejoin: round; }
.tyre { fill: var(--m1); stroke: #141922; stroke-width: 3.4; }
.wood { fill: none; stroke: #6d5540; stroke-width: 2.6; stroke-linecap: round; opacity: .75; }
.louver { fill: none; stroke: var(--m3); stroke-width: 2; }
.band { fill: none; stroke: rgba(10, 16, 28, .3); stroke-width: 1.6; }
.radiator { fill: none; stroke: #8390a5; stroke-width: 3; opacity: .7; }
.furn { fill: none; stroke: #8a7257; stroke-width: 3; }
.chairline { fill: none; stroke: #4d5d7a; stroke-width: 3; stroke-linecap: round; }
.chair { fill: #4d5d7a; } .counter { fill: #594a3b; } .books { fill: #7b8fb5; } .screen { fill: #5579b8; }
.fixture { fill: none; stroke: #b5c2d6; stroke-width: 2; opacity: .5; }
.potplant { fill: none; stroke: #4c9a68; stroke-width: 2.4; stroke-linecap: round; } .pot { fill: #93654a; }
.wooddoor { fill: #5d4736; }
.frame { fill: none; stroke: #56647c; stroke-width: 4; }
.meter { fill: #0b111c; }
.parapet { fill: #46546e; }
.carline { fill: none; stroke: rgba(10, 16, 28, .28); stroke-width: 1; }
.psignbg { fill: #2563eb; }
.hay { fill: none; stroke: #d9b45a; stroke-width: 1.8; stroke-linecap: round; }
.tablet { fill: #7dd3fc; } .troughwater { fill: #2fb4e0; }.cornice { fill: #33425e; } .farhill { opacity: .45; }
.vent { fill: #1d2533; }
.dcwall { fill: url(#dcG); }
.rack { fill: #090d15; } .rack.yours { stroke: var(--blue); stroke-width: 2; }
.server { fill: #202a3c; } .slot { fill: none; stroke: #43516b; stroke-width: 2; stroke-linecap: round; }
.wool { fill: var(--wool); } .wool2 { fill: var(--wool2); } .curl { fill: none; stroke: var(--wool2); stroke-width: 1.8; stroke-linecap: round; }
.face, .leg { fill: var(--face); } .ear { fill: color-mix(in srgb, var(--face) 70%, #000); } .leg.far { fill: color-mix(in srgb, var(--face) 65%, #000); }
.panel { fill: #0d121d; } .panelbar { fill: #19202f; } .panelside { fill: #111826; }
.cyanline { fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.amberline { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.amberline.thin { stroke-width: 1.6; opacity: .8; }
.grnline { fill: none; stroke: var(--green); stroke-width: 1.8; opacity: .75; }
.volts { font: 700 15px "Inter", sans-serif; fill: #a7f3d0; text-anchor: middle; }
.led { fill: var(--blue); }
.led.amber { fill: var(--amber); } .led.cyan { fill: var(--cyan); } .led.green { fill: var(--green); } .led.violet { fill: var(--violet); } .led.red { fill: var(--red); }
.gled { fill: rgba(255, 255, 255, .25); }
.halo { opacity: 0; }
.wave { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; opacity: 0; }
.ripple { fill: none; stroke-width: 1.2; opacity: 0; }
.pk { fill: #9cc0ff; } .pk.cy { fill: var(--cyan); }
.dl { fill: var(--amber); }
#packets, #downlinkG, .rackglow { opacity: 0; }
.beam { fill: none; stroke: var(--violet); stroke-width: 1; stroke-dasharray: 3 5; opacity: .45; }
.spray { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 2 4; opacity: .7; }
.collar { stroke: var(--blue); stroke-width: 3.4; stroke-linecap: round; }
.psign { font: 600 17px "Inter", sans-serif; fill: #fff; text-anchor: middle; }
.stalk { fill: none; stroke: #3f9d5c; stroke-width: 1.7; stroke-linecap: round; }
.leaf { fill: #4fc274; }
.leaf.back { fill: #2f8f52; }
.win { fill: rgba(255, 255, 255, .05); }
.win.on { fill: rgba(255, 181, 71, .55); }
.win.onb { fill: rgba(120, 170, 255, .5); }

.lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; fill: rgba(255, 255, 255, .38); text-anchor: middle; }
.lbl.l { text-anchor: start; }
.lbl.amber { fill: rgba(255, 181, 71, .85); } .lbl.cyan { fill: rgba(34, 211, 238, .85); } .lbl.green { fill: rgba(52, 211, 153, .85); }
.lbl.violet { fill: rgba(167, 139, 250, .9); } .lbl.blue { fill: rgba(120, 170, 255, .95); }
.lbl.strong { font-weight: 700; }
.ulbl { opacity: 0; }
.val { font: 600 14px "Inter", sans-serif; }
.val.amber { fill: var(--amber); }

/* dashboard */
.dotr { fill: #f87171; } .doty { fill: #fbbf24; } .dotg { fill: #34d399; }
.tiny { font: 500 10px var(--mono); fill: rgba(255, 255, 255, .45); text-anchor: middle; letter-spacing: .04em; }
.tiny.l { text-anchor: start; }
.nav { fill: rgba(255, 255, 255, .12); } .navon { fill: rgba(59, 130, 255, .8); }
.tile { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.tlabel { font: 500 9px var(--mono); fill: rgba(255, 255, 255, .45); letter-spacing: .12em; }
.tval { font: 600 20px "Inter", sans-serif; letter-spacing: -.02em; }
.tunit { font: 500 11px "Inter", sans-serif; fill: rgba(255, 255, 255, .5); }
.spark { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gridl { stroke: rgba(255, 255, 255, .07); stroke-width: 1; stroke-dasharray: 3 5; }
.axis { font: 500 9px var(--mono); fill: rgba(255, 255, 255, .35); }
.tipbox { fill: rgba(12, 16, 26, .95); stroke: rgba(255, 255, 255, .18); }
.tipdot { fill: #000; stroke: var(--cyan); stroke-width: 2.4; }
.tipval { font: 600 15px "Inter", sans-serif; fill: #fff; }
.legend { font: 500 10px "Inter", sans-serif; fill: rgba(255, 255, 255, .6); }

/* phone and hand */
.phone { fill: #06080c; stroke: #4a5467; stroke-width: 4; }
.screenbg { fill: #090c13; }
.notch { fill: #000; }
.palm, .finger, .thumbfill { fill: url(#skin); }
.thumbline { fill: none; stroke: rgba(60, 30, 18, .35); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nail { fill: #dcae94; opacity: .7; }
.panelf { fill: #17305f; }
.cellg { fill: none; stroke: rgba(160, 195, 250, .4); stroke-width: 1; }
.wing { fill: #dbe5f5; stroke: #dbe5f5; stroke-width: .7; stroke-linejoin: round; }
.wing.far { fill: #8fa2c2; stroke: #8fa2c2; }
.gull { fill: #eef3fb; stroke: #eef3fb; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
#birds { opacity: 0; }
.hilledge { fill: none; stroke: rgba(74, 222, 128, .22); stroke-width: 1; }
.facade { fill: url(#facade); }
.sideface { fill: url(#facadeSide); }
.roof { fill: #2c384e; }
.carbody { fill: url(#carBody); } .carbody.two { fill: url(#carTwo); }
.shadow { fill: rgba(0, 0, 0, .4); }
.sidewin { fill: rgba(110, 150, 220, .2); }
.nightwin.nightfloor { fill: rgba(255, 190, 110, .2); }
.nightwin.nightfloor.bright { fill: rgba(255, 205, 130, .42); }
.spandrel { fill: #25314a; }
.pane { fill: rgba(150, 190, 240, .07); }
.cglass { fill: #1a2740; }
.nightwin.hl { fill: #ffe9b0; }
.bubble { fill: rgba(8, 12, 20, .88); stroke-width: 1; }
.val.cyan { fill: var(--cyan); } .val.blue { fill: #7fb0ff; } .val.red { fill: var(--red); } .val.green { fill: var(--green); }
.hatchin { fill: #12151b; }
.hatchpart { fill: #b9822f; }
.hatch { fill: url(#poleG); stroke: rgba(0, 0, 0, .22); stroke-width: .45; }
.hivis { fill: none; stroke: #fde68a; stroke-width: 1.6; }
.toolbox { fill: #dc2626; }
.batbox { stroke: rgba(52, 211, 153, .75); }
.batcase { fill: none; stroke: #d6e2f5; stroke-width: 1.1; stroke-linecap: round; }
.batfill { fill: #34d399; }
.batpct { font: 600 11px "Inter", sans-serif; fill: #d1fae5; }
.evcable { fill: none; stroke: #22d3ee; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.evscreen { fill: #0e7490; }
.doorleaf { fill: rgba(140, 180, 240, .3); stroke: #56647c; stroke-width: 1.6; }
.fan { fill: none; stroke: var(--m2); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.fanring { fill: #222b3a; }
.cup, .vanefill { fill: var(--m0); }
.vane { fill: none; stroke: var(--m1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plimb { stroke: rgba(8, 12, 22, .3); stroke-width: .7; }
.plimb.dim { opacity: .72; }
.phead { fill: #c9a487; }
.phair { fill: #2b2118; }
.nstar { fill: #fff; }
.constel { fill: none; stroke: rgba(160, 190, 255, .35); stroke-width: .8; }
#nightStars { opacity: 0; }
.wash { opacity: 0; }
.daywin { fill: url(#winSky); opacity: 0; }
.eye { fill: #fff; }
.pipe { fill: url(#pipeFill); }
.coupling { fill: none; stroke: #4d596d; stroke-width: 2.4; }
.pipe-thin { fill: none; stroke: var(--m2); stroke-width: 4; stroke-linecap: round; }
#skyDuskR { opacity: 0; }
.glint { fill: url(#glintGrad); opacity: 0; }
.moon { fill: #e6ecff; }
#moonG { opacity: 0; }
.blades { fill: none; stroke-width: .9; stroke-linecap: round; }
.blades.b0 { stroke: #1f7a43; } .blades.b1 { stroke: #3fae68; } .blades.b2 { stroke: #7fd694; }
#hillShade { fill: #03100c; opacity: 0; }
.kerb { fill: none; stroke: rgba(200, 212, 230, .45); stroke-width: 1; }
.lane { fill: none; stroke: rgba(230, 236, 245, .4); stroke-width: .9; stroke-dasharray: 14 12; }
.bay { fill: none; stroke: rgba(235, 240, 248, .6); stroke-width: 1.2; }
.lampcone { fill: url(#lampCone); opacity: 0; }
.bulb { fill: #ffe2a3; opacity: .25; }
.nightwin { fill: rgba(255, 196, 110, .38); opacity: 0; }
#clouds, #rain, #bolt { opacity: 0; }
.drop { stroke: rgba(170, 212, 255, .5); stroke-width: .7; stroke-linecap: round; }
.drop.far { stroke: rgba(170, 212, 255, .26); stroke-width: .45; }
.bolt { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; filter: drop-shadow(0 0 10px #9cc0ff); }
.flash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 30% 60%, rgba(190, 210, 255, .28), rgba(190, 210, 255, .08)); }
.val.violet { fill: var(--violet); }
.val.mid { text-anchor: middle; }
#insight, #aiBand { opacity: 0; }
.aiband { fill: rgba(167, 139, 250, .12); stroke: rgba(167, 139, 250, .35); stroke-dasharray: 3 4; }
.aicard { fill: rgba(13, 15, 28, .97); stroke: rgba(167, 139, 250, .6); stroke-width: 1.2; filter: drop-shadow(0 10px 30px rgba(120, 90, 255, .35)); }
.aistar { fill: #a78bfa; }
.aititle { font: 600 10px var(--mono); letter-spacing: .14em; fill: #c4b5fd; }
.aitext { font: 500 12.5px "Inter", sans-serif; fill: #fff; }
.aitext.dim { fill: rgba(255, 255, 255, .62); font-weight: 400; }
.aibtn { fill: #8b5cf6; }
.aibtn2 { fill: none; stroke: rgba(255, 255, 255, .3); }
.aibtnt { font: 600 11.5px "Inter", sans-serif; fill: #fff; text-anchor: middle; }
.radio { fill: none; stroke-width: 1.2; stroke-linecap: round; opacity: .55; }
.rp { filter: drop-shadow(0 0 4px currentColor); }
.lbl.r { text-anchor: end; }
.pt { font-family: "Inter", sans-serif; fill: #fff; }
.pt-h { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.pt-s { font-size: 11px; fill: rgba(255, 255, 255, .5); }
.pt-m { font-size: 12.5px; font-weight: 500; }
.pt-v { font-size: 12px; font-weight: 600; text-anchor: end; }
.pt-big { font-size: 34px; font-weight: 600; letter-spacing: -.03em; text-anchor: middle; }
.pt-c { text-anchor: middle; }
.pt-stat { font: 500 9.5px var(--mono); fill: rgba(255, 255, 255, .7); }
.prow { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .07); }
.pcard { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .1); }
.pbtn { fill: var(--blue); }
.ptrack { fill: rgba(255, 255, 255, .18); }
.pknob { fill: #fff; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 12; }
.ring { fill: none; stroke: var(--cyan); stroke-width: 12; stroke-linecap: round; }
.pbar { fill: rgba(34, 211, 238, .55); }
.pdots circle { fill: rgba(255, 255, 255, .25); }
.pdots circle.on { fill: #fff; }

/* arguments */
.args { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.arg {
    position: absolute; left: 6vw; top: calc(66px + 8vh);       /* every argument starts at the same height, above the scene */
    width: min(500px, 31vw);
    display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
    opacity: 0; visibility: hidden;
}
.arg.hero { opacity: 1; visibility: visible; }
.arg.top { width: min(820px, 56vw); }
.arg.top .lead { max-width: 600px; }
.arg a, .arg button { pointer-events: auto; }
/* the journey: a play triangle; clicked before the opening has finished its first day, the button says so
   and fills up with the day (the two labels share one cell, so the button keeps its width) */
.journey { gap: 11px; position: relative; overflow: hidden; }
.journey i { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.journey .jt { display: grid; }
.journey .jt > span { grid-area: 1 / 1; text-align: center; }
.journey .jw, .journey.wait .jl { visibility: hidden; }
.journey.wait .jw { visibility: visible; }
.journey .jbar { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(255, 255, 255, .16); opacity: 0; pointer-events: none; }
.journey.wait .jbar { opacity: 1; }
.journey.wait i { opacity: .45; }
.journey.wait:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
h1 { font-size: clamp(36px, 3.4vw, 60px); }
h2 { font-size: clamp(28px, 2.6vw, 46px); }
.lead { max-width: 440px; }
.actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

.arg.proof { width: min(540px, 34vw); }
/* the footer lies over the bottom of the last tableau: the globe and the closing words stay where they are */
body:has(.story) { position: relative; }
body:has(.story) .foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.logos { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; align-items: center; width: 100%; max-width: 480px; }
.logos img { width: 100%; max-height: 34px; object-fit: contain; object-position: left center; opacity: .72; }

#globe { position: absolute; z-index: 0; right: 3vw; top: 46%; width: min(78vh, 52vw); height: min(78vh, 52vw); translate: 0 -50%; opacity: 0; pointer-events: none; }

.scroll-hint {
    position: absolute; left: 50%; bottom: 30px; z-index: 3; transform: translateX(-50%);
    display: none; flex-direction: column; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--fg), transparent); transform-origin: top; animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
    /* the dark under the texts starts below the labels of the ground line, never over them */
    .stage::after { background: linear-gradient(180deg, transparent 61%, rgba(0, 0, 0, .9) 78%); }
    .glow { left: 50%; top: 34%; }
    .arg, .arg.top, .arg.proof { left: 6vw; right: 6vw; width: auto; top: auto; bottom: 6vh; display: block; }
    /* the opening's text sits a step lower, clear of the labels under the horizon */
    .arg.hero { bottom: 2.5vh; }
    #globe { right: auto; left: 50%; top: 21%; width: 64vw; height: 64vw; translate: -50% -50%; }
    .lead { margin-top: 14px; }
    .eyebrow { margin-bottom: 14px; }
    .actions { margin-top: 24px; }
    /* the last tableau: clear of the footer lying over the bottom, under a smaller globe, tighter type */
    .arg.proof { bottom: calc(2vh + 104px); }
    .arg.proof h2 { font-size: 26px; }
    .arg.proof .lead { font-size: 14px; }
    .arg.proof .actions { margin-top: 20px; }
    .arg.proof .logos { margin-top: 24px; gap: 12px 22px; max-width: 300px; }
    .arg.proof .logos img { max-height: 24px; }
    .logos { grid-template-columns: repeat(3, 1fr); gap: 16px 22px; }
    .scroll-hint { display: none; }
    /* half the travel of before: a slow swipe still moves the story along */
    .story { height: 600vh; }
}

/* adaptive quality (set by home.js when the machine struggles) */
.q-med .glow { animation: none; }
.q-med .arg { filter: none !important; }
.q-low .ripple, .q-low #birds { display: none; }

@media (prefers-reduced-motion: reduce) {
    .glow, .scroll-hint i { animation: none; }
}
