/* Realistic mock-ups on the art stage. The stage is a size container; each mock is a 32em x 22em box centred in it,
   so 1em = 10 units of the old 320x220 line-art box and everything scales with the stage. */
#art { container-type: size; }
.art.mock { left: 50%; top: 50%; right: auto; bottom: auto; width: 32em; height: 22em; margin: -11em 0 0 -16em;
  font-size: calc(min(100cqw, 145.45cqh) / 32); font-family: Arial, Helvetica, sans-serif; color: #202124; line-height: 1.25; }
.mock p { margin: 0; }
.mock svg { display: block; }
.mock .win { position: absolute; background: #fff; border-radius: .9em; overflow: hidden;
  box-shadow: 0 1.6em 4em rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- Google results ---------- */
.serp { left: 2.4em; top: .3em; width: 26em; height: 21.4em; }
.g-top { display: flex; align-items: center; gap: 1em; padding: .9em 1.1em .55em; }
.glogo { font: 600 1.55em/1 'Product Sans', Arial, sans-serif; letter-spacing: -.04em; }
.glogo b { font-weight: 600; } .glogo b:nth-child(1), .glogo b:nth-child(4) { color: #4285f4; }
.glogo b:nth-child(2), .glogo b:nth-child(6) { color: #ea4335; } .glogo b:nth-child(3) { color: #fbbc05; } .glogo b:nth-child(5) { color: #34a853; }
.gbox { flex: 1; display: flex; align-items: center; gap: .6em; height: 2.3em; padding: 0 .9em; border: 1px solid #dfe1e5; border-radius: 1.15em;
  box-shadow: 0 1px .5em rgba(32,33,36,.18); font-size: .95em; white-space: nowrap; }
.gbox span { flex: 1; }
.gbox .ic { width: 1.15em; height: 1.15em; flex: none; } .gbox .mag { color: #9aa0a6; }
.gtabs { display: flex; gap: 1.4em; padding: 0 1.1em 0 4.4em; border-bottom: 1px solid #ebebeb; font-size: .78em; color: #70757a; }
.gtabs span { padding: .3em 0 .6em; } .gtabs .on { color: #1a73e8; box-shadow: inset 0 -3px #1a73e8; }
.gbody { padding: .6em 1.1em; }
.ghead { font-size: 1.1em; margin-bottom: .4em !important; }
.gmap { position: relative; height: 3.4em; border-radius: .6em; overflow: hidden; margin-bottom: .2em; }
.gmap > svg:first-child { width: 100%; height: 100%; }
.mock .pin { position: absolute; width: 1.1em; height: 1.45em; color: #ea4335; }
.mock .pin.gold { color: #5cb8f5; width: 1.4em; height: 1.85em; filter: drop-shadow(0 0 .3em rgba(143,211,255,.9)); }
.places { position: relative; height: 9.9em; overflow: hidden; }
.place { display: flex; justify-content: space-between; align-items: center; height: 3.3em; border-bottom: 1px solid #ebebeb; background: #fff; }
.pn { font-size: .95em; color: #1a0dab; margin-bottom: .1em !important; }
.pr, .ph { font-size: .72em; color: #70757a; }
.pr i { font-style: normal; color: #fbbc04; letter-spacing: -.08em; }
.ph em { font-style: normal; color: #188038; }
.pa { display: flex; gap: .4em; }
.pa span { display: flex; align-items: center; gap: .35em; font-size: .68em; color: #1a73e8; border: 1px solid #dadce0; border-radius: 1.2em; padding: .35em .75em; }
.pa svg { width: 1.15em; height: 1.15em; }
/* scene 2: the query types itself, then the results drop in */
.typed { clip-path: inset(0 100% 0 0); }
.art.on .typed { animation: typeIn .9s steps(15) both .5s; }
@keyframes mockIn { from { transform: translateY(-1em); opacity: 0; } to { opacity: 1; } }
@keyframes typeIn { to { clip-path: inset(0 0 0 0); } }
.mock .r { opacity: 0; }
.art.on .r { animation: mockIn .5s var(--ease) both; animation-delay: calc(1.5s + var(--k) * 140ms); }
/* scene 6: your business climbs from below the list to first; the others step down */
.place.you { position: relative; z-index: 1; box-shadow: inset .25em 0 #8FD3FF; padding-left: .7em; margin-left: -.7em; background: #f2f9ff; }
.art.on .place.you { animation: climbList 1.2s cubic-bezier(.2,.8,.2,1) both .5s; }
.art.on .place.shift { animation: stepDown 1.2s cubic-bezier(.2,.8,.2,1) both .5s; }
@keyframes climbList { from { transform: translateY(9.9em); } }
@keyframes stepDown { from { transform: translateY(-3.3em); } }

/* notes beside the windows */
/* notes, panels and notifications always sit above the windows (the highlighted result row has its own z-index) */
.mock .note, .mock .panel, .mock .notif { z-index: 5; }
.mock .win { z-index: 1; isolation: isolate; }
.mock .note { position: absolute; display: grid; gap: .25em; padding: .8em 1em; border-radius: .7em; background: #0c0c0e;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 1em 2.4em rgba(0,0,0,.5); color: #f5f5f7; font-family: 'Schibsted Grotesk', sans-serif; }
.note b { font: 400 .62em 'Geist Mono', monospace; letter-spacing: .16em; color: var(--gold); }
.note span { font-size: .95em; }
.note.missing { right: -1em; bottom: 1.4em; border: 1px dashed var(--gold); }
.art.on .note.missing { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both 2.3s, blinkSoft 1.8s ease-in-out infinite 2.8s; }
@keyframes blinkSoft { 50% { border-color: rgba(143,211,255,.25); } }   /* the border breathes; the note stays opaque */
.note.found { right: -1em; top: 6.3em; border-color: rgba(143,211,255,.6); box-shadow: 0 0 2em rgba(143,211,255,.25); }
.art.on .note.found { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both 1.6s; }
.note.timer { right: -1em; bottom: .6em; grid-template-columns: auto auto; align-items: center; gap: .7em; }
.note.timer > svg { width: 1.8em; height: 1.8em; color: #ff4e42; }
.note.timer div { display: grid; gap: .1em; }
.note.timer b { font: 600 1.6em 'Schibsted Grotesk', sans-serif; letter-spacing: -.02em; color: #f5f5f7; }
.note.timer.late b { color: #ff4e42; }
.note.timer .secs { font-size: 1em; }
.note.timer span { font-size: .72em; color: #a1a1a6; }
.note.timer.ok > svg { color: #0cce6b; }
.note.timer.ok b { color: #0cce6b; }

/* ---------- browser window ---------- */
.browser { left: 2.4em; top: .5em; width: 27.6em; height: 20.6em; background: #fff; }
.tabstrip { height: 2.2em; background: #dee1e6; padding: .45em .6em 0; }
.tab { display: flex; align-items: center; gap: .55em; width: 11em; height: 100%; padding: 0 .7em; background: #fff; border-radius: .6em .6em 0 0; font-size: .75em; color: #3c4043; white-space: nowrap; }
.tab span { flex: 1; overflow: hidden; }
.tab svg { width: 1em; height: 1em; color: #5f6368; }
.tspin { width: 1.1em; height: 1.1em; border-radius: 50%; border: .18em solid #c6dafc; border-top-color: #1a73e8; animation: spin .9s linear infinite; }
.fav { display: grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: .3em; background: #14302a; color: #f0d9a4; font: 700 .8em Arial; font-style: normal; }
.fav.psi-f { background: conic-gradient(#0cce6b 0 35%, #1a73e8 0 100%); border-radius: 50%; }
.toolbar { position: relative; display: flex; align-items: center; gap: .7em; height: 2.5em; padding: 0 .8em; border-bottom: 1px solid #dadce0; }
.toolbar .nav { width: 1.05em; height: 1.05em; color: #5f6368; flex: none; }
.url { flex: 1; display: flex; align-items: center; gap: .45em; height: 1.8em; padding: 0 .9em; border-radius: .9em; background: #f1f3f4; font-size: .78em; color: #202124; }
.url .lock { width: 1em; height: 1em; color: #5f6368; }
.prog { position: absolute; left: 0; bottom: -1px; height: .2em; width: 100%; background: #1a73e8; transform-origin: left; transform: scaleX(0); }
.art.on .prog.stall { animation: stall 7s cubic-bezier(.1,.7,.2,1) both .4s; }
@keyframes stall { 0% { transform: scaleX(0); } 30% { transform: scaleX(.42); } 100% { transform: scaleX(.58); } }
.art.on .prog.zip { animation: zipFade .7s cubic-bezier(.5,0,.1,1) both .3s; }
@keyframes zipFade { 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.page { position: absolute; left: 0; right: 0; top: 4.7em; bottom: 0; overflow: hidden; }

/* scene 3: the slow page */
.page.slow { padding: 1em 1.4em; }
.sk i { display: block; background: #eceef1; border-radius: .3em; }
.sk.navs { display: flex; gap: .8em; margin-bottom: .9em; } .sk.navs i { height: .7em; width: 3.4em; } .sk.navs i:first-child { width: 6em; margin-right: auto; }
.chunky { height: 8.2em; border-radius: .4em; background: #eceef1; overflow: hidden; }
.chunky i { display: block; height: 100%; filter: blur(.5em); transform: scale(1.1);
  background: linear-gradient(180deg, #8fb4d8 0%, #c9dbe8 38%, #e9d8b8 55%, #b98f62 75%, #7a5a3c 100%); clip-path: inset(0 0 100% 0); }
.art.on .chunky i { animation: chunks 6s steps(1) both .9s; }
@keyframes chunks { 0% { clip-path: inset(0 0 100% 0); } 12% { clip-path: inset(0 0 82% 0); } 30% { clip-path: inset(0 0 66% 0); } 60%, 100% { clip-path: inset(0 0 58% 0); } }
.sk.lines { display: grid; gap: .55em; margin-top: 1em; } .sk.lines i { height: .7em; } .sk.lines i:nth-child(1) { width: 70%; } .sk.lines i:nth-child(2) { width: 88%; } .sk.lines i:nth-child(3) { width: 52%; }
.bigspin { position: absolute; left: 50%; top: 42%; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%;
  border: .32em solid rgba(26,115,232,.18); border-top-color: #1a73e8; animation: spin 1s linear infinite; }
/* the visitor gives up: the back button gets tapped */
.toolbar .back { border-radius: 50%; }
.art.on .toolbar .back { animation: backTap 6s ease both infinite 4.5s; }
@keyframes backTap { 0%, 6% { background: transparent; } 3% { background: rgba(26,115,232,.25); box-shadow: 0 0 0 .4em rgba(26,115,232,.25); } }

/* scene 7: the fast page */
.page.fast { background: #faf7f2; font-family: 'Schibsted Grotesk', Arial, sans-serif; }
.sh { display: flex; align-items: center; gap: 1.2em; padding: .9em 1.4em; font-size: .72em; color: #3d4b46; }
.sh b { font-size: 1.25em; color: #14302a; margin-right: auto; letter-spacing: -.02em; }
.sh em { font-style: normal; background: #14302a; color: #fff; padding: .45em .9em; border-radius: .4em; }
.shero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2em; padding: .4em 1.4em 0; align-items: center; }
.shero h4 { font: 600 1.45em/1.1 'Schibsted Grotesk', sans-serif; letter-spacing: -.03em; color: #14302a; margin: 0 0 .4em; }
.shero p { font-size: .75em; color: #55625d; }
.sbtns { display: flex; align-items: center; gap: .7em; margin-top: .8em; font-size: .68em; }
.sbtns em { font-style: normal; background: #c9752e; color: #fff; padding: .55em 1em; border-radius: .4em; }
.sbtns span { color: #14302a; } .sbtns i { font-style: normal; color: #fbbc04; }
.sphoto { height: 7.4em; border-radius: .6em; background:
  radial-gradient(60% 50% at 70% 30%, rgba(212,238,255,.9), transparent 70%),
  linear-gradient(160deg, #e9d2ad 0%, #c98b55 45%, #6e4a33 100%); position: relative; overflow: hidden; }
.sphoto::after { content: ""; position: absolute; inset: 45% 10% 0 30%; border-radius: 1em 1em 0 0; background: linear-gradient(180deg, rgba(20,48,42,.85), #14302a); }
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; padding: 1em 1.4em; }
.scards div { display: flex; align-items: center; gap: .6em; padding: .7em; border-radius: .5em; background: #fff; box-shadow: 0 .1em .4em rgba(20,48,42,.12); font-size: .7em; color: #14302a; }
.scards i { width: 1.6em; height: 1.6em; border-radius: .4em; background: #e7efe9; flex: none; }
.mock .pop { opacity: 0; }
.art.on .pop { animation: pop .4s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(.45s + var(--k) * 60ms); }

/* ---------- phones ---------- */
.iphone { position: absolute; top: .3em; width: 10.6em; height: 21.4em; border-radius: 1.9em; background: #1d1d1f; padding: .42em;
  box-shadow: 0 0 0 1px #48484a, 0 1.6em 4em rgba(0,0,0,.6); }
.iphone .island { position: absolute; left: 50%; top: .75em; width: 3.2em; height: .95em; margin-left: -1.6em; border-radius: .5em; background: #000; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 1.5em; overflow: hidden; background: #fff; }
.status { display: flex; justify-content: space-between; align-items: center; height: 1.9em; padding: 0 1.1em 0 1.2em; font-size: .62em; }
.status b { font-weight: 600; }
.sig { display: flex; align-items: flex-end; gap: .12em; height: .8em; } .sig i { width: .22em; background: #000; border-radius: .05em; }
.sig i:nth-child(1) { height: 35%; } .sig i:nth-child(2) { height: 55%; } .sig i:nth-child(3) { height: 75%; } .sig i:nth-child(4) { height: 100%; }

/* scene 4: a desktop page squeezed onto a phone */
.iphone.bad { left: 3.6em; }
.art.on .iphone.bad { animation: tipIn .9s cubic-bezier(.2,.9,.25,1.2) both .3s; }
.desk { width: 22em; font: .3em/1.35 'Times New Roman', serif; color: #000; padding: .6em; }
.art.on .desk { animation: drift 3.2s ease-in-out infinite alternate 1.2s; }
@keyframes drift { to { transform: translateX(-38%); } }
.desk .dh { display: flex; gap: 1em; align-items: center; background: #003366; color: #fff; padding: .6em; }
.desk .dh b { font-size: 1.5em; margin-right: 1em; } .desk .dh span { text-decoration: underline; }
.desk .dban { font-size: 3.2em; color: #003366; text-align: center; padding: .3em 0; font-style: italic; }
.desk .dcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.desk .dcols p { font-size: 1em; } .desk u { color: #00e; }
.desk .dfoot { margin-top: 1.2em; display: flex; gap: .8em; }
.cookie { position: absolute; left: 0; right: 0; bottom: 0; padding: .8em .9em 1.2em; background: #333; color: #ddd; font-size: .42em; line-height: 1.35; }
.cookie span { display: inline-block; margin-left: .3em; padding: .1em .4em; background: #777; color: #fff; }
.finger { position: absolute; left: 62%; top: 80%; width: 2.2em; height: 2.2em; margin: -1.1em; border-radius: 50%;
  background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 .2em .8em rgba(0,0,0,.35); opacity: 0; }
.art.on .finger { animation: tapMiss 2.2s ease-out infinite 1.6s; }
@keyframes tapMiss { 0% { opacity: 0; transform: scale(1.6); } 20% { opacity: 1; transform: scale(1); } 32% { transform: scale(.85); } 45% { transform: scale(1); }
  70% { opacity: 1; transform: translate(-1.6em, -.6em) scale(1); } 80% { transform: translate(-1.6em, -.6em) scale(.85); } 100% { opacity: 0; transform: translate(-1.6em, -.6em) scale(1.2); } }
.panel.usab { position: absolute; left: 15.4em; top: 4.6em; width: 16.6em; padding: 1em 1.1em; border-radius: .8em; background: #fff;
  box-shadow: 0 1.4em 3.4em rgba(0,0,0,.55); font-family: Arial, sans-serif; }
.usab .ph { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .7em; margin-bottom: .3em !important; border-bottom: 1px solid #e8eaed; font-size: .9em; color: #202124; }
.usab .ph span { color: #d93025; font-size: .85em; }
.usab .iss { display: flex; align-items: center; gap: .7em; padding: .62em 0; border-bottom: 1px solid #f1f3f4; font-size: .82em; color: #3c4043; }
.usab .iss:last-child { border-bottom: 0; }
.usab .iss svg { width: 1.35em; height: 1.35em; color: #d93025; flex: none; }
.art.on .panel.usab { animation: pop .5s cubic-bezier(.3,1.4,.5,1) both .9s; }
.usab .iss { opacity: 0; }
.art.on .usab .iss { animation: mockIn .45s var(--ease) both; animation-delay: calc(1.4s + var(--k) * 380ms); }

/* scene 8: the site that's easy to contact, and the enquiry arriving */
.iphone.good { left: 3.6em; }
.iphone.good .screen { background: #faf7f2; font-family: 'Schibsted Grotesk', Arial, sans-serif; }
.mh { display: flex; justify-content: space-between; align-items: center; padding: .1em .9em .5em; }
.mh b { font-size: .72em; color: #14302a; letter-spacing: -.02em; }
.burger { display: grid; gap: .22em; } .burger i { width: 1em; height: .12em; background: #14302a; border-radius: .1em; }
.mhero { margin: 0 .6em; height: 4.2em; border-radius: .6em; display: flex; align-items: flex-end; padding: .55em .65em;
  background: linear-gradient(180deg, transparent 30%, rgba(20,48,42,.85)), linear-gradient(160deg, #e9d2ad 0%, #c98b55 45%, #6e4a33 100%); }
.mhero b { color: #fff; font-size: .82em; letter-spacing: -.02em; }
.mrate { font-size: .52em; color: #3d4b46; padding: .8em 1.15em .5em; } .mrate i { font-style: normal; color: #fbbc04; }
.mb { position: relative; display: flex; align-items: center; justify-content: center; gap: .45em; height: 1.85em; margin: 0 .6em .38em; border-radius: .45em; font-size: .66em; font-weight: 600; overflow: hidden; }
.mb svg { width: 1.15em; height: 1.15em; }
.mb.call { background: #14302a; color: #fff; } .mb.wa { background: #25d366; color: #fff; } .mb.enq { background: #fff; color: #14302a; box-shadow: inset 0 0 0 1.5px #14302a; }
.tapr { position: absolute; left: 50%; top: 50%; width: 2em; height: 2em; margin: -1em; border-radius: 50%; background: rgba(20,48,42,.25); transform: scale(0); }
.art.on .tapr { animation: ripple 5s ease-out infinite .9s; }
@keyframes ripple { 0% { transform: scale(0); opacity: 1; } 10% { transform: scale(7); opacity: 0; } 100% { transform: scale(7); opacity: 0; } }
.mhours { display: flex; align-items: center; gap: .45em; font-size: .5em; color: #3d4b46; padding: .4em 1.25em .6em; }
.mhours i { width: .6em; height: .6em; border-radius: 50%; background: #188038; }
.mmap { position: relative; margin: 0 .6em; height: 2.4em; border-radius: .45em; overflow: hidden; }
.mmap > svg:first-child { width: 100%; height: 100%; }
.mmap .pin { left: 45%; top: 8%; width: 1em; height: 1.3em; }
.notif { position: absolute; left: 15.4em; top: 4.2em; width: 16.6em; display: flex; gap: .75em; padding: .85em .9em; border-radius: 1.2em;
  background: rgba(242,242,247,.96); box-shadow: 0 1.2em 3em rgba(0,0,0,.55); font-family: -apple-system, 'Schibsted Grotesk', Arial, sans-serif; opacity: 0; }
.appic { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .55em; background: linear-gradient(180deg, #c4e9ff, #6cc3f5); color: #06324f; }
.appic svg { width: 1.4em; height: 1.4em; }
.notif > div { flex: 1; min-width: 0; }
.nh { display: flex; justify-content: space-between; font-size: .62em; color: #8e8e93; letter-spacing: .04em; margin-bottom: .25em !important; }
.nh b { font-weight: 500; }
.nt { font-size: .82em; font-weight: 700; color: #000; }
.nb { font-size: .78em; color: #1c1c1e; margin-top: .15em !important; }
.art.on .notif { animation: notify 5s cubic-bezier(.2,.9,.3,1.1) infinite 1.3s; }
@keyframes notify { 0% { opacity: 0; transform: translateY(-1.4em) scale(.96); } 8%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-.6em) scale(.98); } }

/* ---------- scene 9: PageSpeed Insights ---------- */
.page.psi { padding: 1em 1.4em; text-align: center; }
.psih { display: flex; justify-content: center; align-items: center; gap: .5em; font-size: 1.05em; color: #202124; }
.psih svg { width: 1.5em; height: 1.5em; }
.psis { font-size: .72em; color: #5f6368; margin: .35em 0 1em !important; }
.psi .gauges { display: flex; justify-content: center; gap: 2.2em; }
.psi .gauge { display: grid; justify-items: center; gap: .2em; }
.psi .gauge .ring { width: 5.6em; margin-bottom: .45em; }
.psi .gauge circle { stroke-width: 8; }
.psi .gauge .trk { stroke: rgba(255,164,0,.16); fill: rgba(255,164,0,.1); }
.psi .gauge .val, .psi .gauge.done .val { stroke: #ffa400; filter: none; stroke-linecap: butt; }
.psi .gauge b { font: 400 1.7em Arial, sans-serif; letter-spacing: 0; color: #c33300; }
.psi .gauge[data-band="g"] .trk { stroke: rgba(12,206,107,.16); fill: rgba(12,206,107,.1); }
.psi .gauge[data-band="g"] .val { stroke: #0cce6b; }
.psi .gauge[data-band="g"] b { color: #008800; }
.psi .gauge .gl { font-size: .78em; color: #202124; line-height: 1.3; }
.psi .gauge .was { font: .58em 'Geist Mono', monospace; letter-spacing: .08em; color: #80868b; opacity: 0; transition: opacity .4s; }
.psi .gauge.done .was { opacity: 1; }   /* "up from 64" only once the count-up has finished, so it never reads "64, was 64" */
.legend { display: flex; justify-content: center; gap: 1.4em; margin-top: 1em !important; font-size: .68em; color: #5f6368; }
.legend span { display: flex; align-items: center; gap: .45em; }
.legend i { display: block; width: .8em; height: .8em; }
.legend .tri { width: 0; height: 0; border: .45em solid transparent; border-bottom: .8em solid #ff4e42; border-top: 0; }
.legend .sq { background: #ffa400; } .legend .dot { background: #0cce6b; border-radius: 50%; }

/* wide screens: the copy column and the art stage sit side by side, clear of each other and of the section rail */
@media (min-aspect-ratio: 4/5) {
  #ch2 .copy, #ch3 .copy, #ch4 .copy, #ch6 .copy { width: min(600px, 40vw); }
  #art { right: max(clamp(170px, 15vw, 210px), calc(var(--frame) - 150px)); width: min(40vw, 720px); }
}
@media (max-aspect-ratio: 4/5) { #ch6 .copy { width: 100%; } #art { z-index: 6; } .serp, .browser { left: 1em; } }   /* above the copy's dark fade */
