/* Every position is on a fixed 1920 x 1080 stage. Keep them in step with js/choreography.js. */

/* Title */
.s-title .wordmark { position: absolute; left: 112px; top: 76px; font-size: 340px; }
.promise { position: absolute; left: 130px; top: 440px; color: #fff; font: 800 106px/.9 var(--voice); font-stretch: 75%; }
.slogan { position: absolute; left: 118px; top: 694px; padding: 30px 52px; transform: rotate(-2deg); font: 400 60px/1 var(--hand); }
.slogan .tape { left: 42%; top: -8px; width: 140px; height: 30px; }
.byline { position: absolute; left: 130px; top: 900px; color: #fff; font-size: 34px; font-weight: 700; }
.mascot { position: absolute; left: 1700px; top: 800px; width: 190px; }

/* Our inspiration: Roblox, a marketplace of games, and the same idea for the planet */
.s-inspo { color: #fff; }
.s-inspo .kicker { position: absolute; left: 104px; top: 64px; color: var(--sun); transform: rotate(-3deg); font-size: 66px; }
.s-inspo .roblox { position: absolute; left: 100px; top: 168px; width: 760px; filter: brightness(0) invert(1); }
.s-inspo h2 { position: absolute; left: 96px; top: 338px; font-size: 118px; }
.stats { position: absolute; left: 100px; top: 610px; width: 820px; }
.stats li { margin-bottom: 26px; font-size: 38px; line-height: 1.1; }
.stats b { display: block; color: var(--sun); font: 800 104px/.95 var(--voice); font-stretch: 75%; }
.s-problem .source { position: absolute; z-index: 2; left: 92px; top: 1006px; padding: 6px 14px; border-radius: 10px; background: #22160FD9; color: #F4E7CF; font-size: 24px; }
.s-inspo .source { position: absolute; left: 104px; top: 1000px; color: #B9CFDC; font-size: 24px; }
.flow { position: absolute; left: 1004px; top: 150px; display: flex; align-items: center; gap: 16px; }
.flow.ours { top: 640px; }
.flow i { color: var(--sun); font: 800 56px/1 var(--voice); font-style: normal; }
.flow .box { display: flex; align-items: center; justify-content: center; width: 232px; height: 220px; padding: 18px; border-radius: 26px; background: var(--paper); color: var(--ink); font-size: 34px; font-weight: 700; line-height: 1.12; text-align: center; }
.flow .box.real { background: var(--sun); }
.flow .hub { display: flex; align-items: center; justify-content: center; width: 220px; height: 220px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px var(--sun); }
.flow .hub img { width: 176px; }
.flow .hub .wordmark.small { font-size: 66px; }
.flow .hub .wordmark.small > span { -webkit-text-stroke-width: 7px; }
.s-inspo .same { position: absolute; left: 1328px; top: 440px; color: #7EE08C; transform: rotate(-4deg); font-size: 64px; text-align: center; }

/* The platform: a shelf of eco-games, then the ones others will add */
.s-platform { color: #fff; }
.s-platform h2 { position: absolute; left: 96px; top: 88px; font-size: 128px; }
.s-platform .line { position: absolute; left: 100px; top: 360px; font-size: 44px; }
.s-platform .note { position: absolute; left: 100px; top: 600px; color: var(--sun); transform: rotate(-4deg); font-size: 70px; }
.shelf { position: absolute; left: 870px; top: 96px; display: grid; grid-template-columns: repeat(3, 300px); gap: 40px 34px; }
.shelf li { height: 440px; padding: 12px; border-radius: 30px; background: var(--paper); color: var(--ink); text-align: center; }
.shelf li:nth-child(odd) { transform: rotate(-1.5deg); }
.shelf li:nth-child(even) { transform: rotate(1.5deg); }
.shelf img { width: 100%; height: 290px; border-radius: 20px; object-fit: cover; object-position: top; }
.shelf b { display: block; margin-top: 14px; font-size: 34px; line-height: 1; }
.shelf li p { margin-top: 8px; font-size: 23px; line-height: 1.2; color: #102C3ACC; }
.shelf .add { display: flex; flex-direction: column; justify-content: center; border: 7px dashed #fff; background: #ffffff1f; color: #fff; }
.shelf .add span { font: 800 180px/.8 var(--voice); color: var(--sun); }
.shelf .add b { margin: 30px 16px 0; font-size: 36px; }

/* The problem */
.s-problem { color: var(--paper); }
.s-problem h2 { position: absolute; left: 110px; top: 72px; font-size: 80px; line-height: 1; }
.s-problem .huge { display: block; margin-bottom: 18px; color: var(--sun); font-size: 244px; line-height: .86; }
.fact { position: absolute; left: 1530px; top: 384px; width: 350px; transform: rotate(-4deg); font-size: 66px; text-align: center; }
.fact b { color: #7EE08C; font: 400 136px/1 var(--hand); white-space: nowrap; }
.ten { position: absolute; left: 110px; top: 560px; height: 400px; display: flex; align-items: flex-end; gap: 22px; }
.ten img { height: 330px; }
.ten .lost { width: 105px; object-fit: contain; filter: grayscale(1) sepia(.5) brightness(.62); transform: translateY(var(--d)) rotate(var(--r)); }
.ten .saved { width: 150px; height: 360px; margin-left: 30px; object-fit: contain; }
.ring { position: absolute; left: 1250px; top: 565px; width: 220px; height: 420px; fill: none; stroke: #7EE08C; stroke-width: 7; stroke-linecap: round; }
.smog { position: absolute; left: 1580px; top: 745px; width: 280px; }

/* Why kids: the child's handwriting talks to the tree */
.s-kids > div { position: absolute; inset: 0; }
.s-kids h2 { position: absolute; left: 96px; top: 62px; color: #fff; }
.s-kids [data-only="3"] h2 { color: var(--forest); }
.s-kids .hand { position: absolute; }
.old-note { left: 120px; top: 560px; color: #fff; transform: rotate(-4deg); }
.old-arrow { left: 570px; top: 500px; color: #fff; }
.young-note { left: 112px; top: 500px; transform: rotate(-3deg); }
.young-arrow { display: none; }
.s-kids .game-note { left: 110px; top: 420px; color: var(--sun); transform: rotate(-4deg); font-size: 160px; }
.home-note { left: 110px; top: 440px; color: var(--forest); transform: rotate(-3deg); }
.arrow { position: absolute; width: 220px; height: 120px; fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* A to Z: the camera travels over the EcoWorld */
.map {
  position: absolute;
  left: 0;
  top: 0;
  width: 1024px;
  height: 1536px;
  transform-origin: 0 0;
  transform: translate(1100px, -26px) scale(.74);
  transition: transform 1.25s cubic-bezier(.65, 0, .25, 1);
}
.map img {
  width: 100%;
  height: 100%;
  -webkit-mask: radial-gradient(ellipse 56% 50% at 50% 49%, #000 80%, transparent 100%);
}
.s-journey:not([data-step="0"]) .map img { -webkit-mask: none; }
/* The painting is 1024 wide. Each stop puts its building at the left of the stage. */
[data-step="1"] .map { transform: translate(-869px, -1030px) scale(1.7); }
[data-step="2"] .map { transform: translate(-969px, -1150px) scale(1.82); }
[data-step="3"] .map { transform: translate(-116px, -154px) scale(1.7); }
[data-step="4"] .map { transform: translate(-750px, -171px) scale(1.7); }
[data-step="5"] .map { transform: translate(-116px, -953px) scale(1.7); }
.route { position: absolute; inset: 0; fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 3 25; transition: opacity .4s; }
.s-journey:not([data-step="0"]) .route { opacity: 0; }

.overview, .stop { position: absolute; inset: 0; }
.overview h2 { position: absolute; left: 100px; top: 88px; color: #fff; }
.overview .line { position: absolute; left: 106px; top: 382px; color: #fff; font-size: 46px; }
.steps { position: absolute; left: 100px; top: 548px; display: flex; gap: 22px; }
.steps li { width: 176px; color: #fff; font: 800 62px/1 var(--voice); font-stretch: 75%; text-align: center; }
.steps img { width: 176px; height: 176px; margin-bottom: 18px; border: 6px solid #fff; border-radius: 50%; object-fit: cover; }
.steps li:nth-child(even) { transform: translateY(96px); }
.place { position: absolute; padding: 10px 24px; background: var(--paper); transform: translateX(-50%) rotate(-3deg); font: 400 50px/1 var(--hand); white-space: nowrap; }
.place.station { left: 1670px; top: 762px; }
.place.workshop { left: 1342px; top: 334px; }
.place.arena { left: 1618px; top: 342px; }
.place.forest { left: 1342px; top: 730px; }

.sheet {
  position: absolute;
  left: 805px;
  top: -600px;
  width: 1700px;
  height: 2280px;
  background: var(--tone);
  clip-path: polygon(1.2% 0, .2% 5%, 1.5% 10%, .5% 15%, 1.7% 20%, .3% 25%, 1.2% 29%, 0 33%, 1.4% 37%, .4% 41%, 1.6% 45%, .2% 49%, 1.1% 53%, .1% 57%, 1.5% 61%, .5% 65%, 1.3% 69%, 0 74%, 1.4% 80%, .4% 87%, 1.3% 94%, .2% 100%, 100% 100%, 100% 0);
}
.stop.scan { --tone: #0B4A68; color: #fff; }
.stop.sort { --tone: #F4E7CF; }
.stop.create { --tone: #D3A56C; }
.stop.play { --tone: #2B2158; color: #fff; }
.stop.grow { --tone: #124B31; color: #fff; }
.track { position: absolute; left: 880px; top: 48px; display: flex; gap: 38px; font-size: 32px; font-weight: 700; }
.track li { opacity: .5; }
.track .past { opacity: .8; }
.track .here { position: relative; opacity: 1; }
.track .here::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -12px; height: 7px; border-radius: 4px 9px; background: var(--sun); transform: rotate(-2deg); }
.stop h2 { position: absolute; left: 876px; top: 140px; font-size: 110px; }
.stop .line { position: absolute; left: 880px; top: 360px; font-size: 35px; line-height: 1.22; }
.aside { position: absolute; left: 872px; top: 640px; font-size: 54px; color: var(--sun); transform: rotate(-5deg); }
.stop.sort .aside, .stop.create .aside { color: var(--forest); }
.stop .phone { --w: 342px; }
.stop .phone.one { --w: 410px; left: 1440px; top: 140px; }
.stop .phone.back { --w: 290px; left: 1262px; top: 488px; transform: rotate(-7deg); }
.stop .phone.front { left: 1550px; top: 270px; transform: rotate(3deg); }
.polaroid { position: absolute; left: 1192px; top: 540px; width: 336px; padding: 15px 15px 48px; background: #fff; transform: rotate(-5deg); }
.polaroid img { width: 100%; }
.polaroid .tape { left: 118px; top: -20px; width: 136px; height: 40px; transform: rotate(3deg); }

/* Demo video */
.s-demo { display: flex; align-items: center; justify-content: center; }
.s-demo video { max-width: 1920px; max-height: 1080px; }
.s-demo video.portrait { height: 1080px; }
.s-demo video.landscape { width: 1920px; }

/* 5G */
.s-network { color: #fff; }
.s-network h2 { position: absolute; left: 88px; top: 92px; font-size: 148px; }
.built-with { position: absolute; left: 92px; top: 620px; color: #fff; font-size: 32px; line-height: 1.3; }
.built-with b { display: block; margin-top: 22px; color: var(--sun); }
.signal { position: absolute; inset: 0; width: 1920px; height: 1080px; fill: none; stroke-linecap: round; }
.mast { stroke: #fff; stroke-width: 8; }
.tip { fill: var(--sun); }
.waves { stroke: var(--sun); stroke-width: 8; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.five-g { position: absolute; left: 1468px; top: 18px; color: var(--sun); font: 800 144px/1 var(--voice); font-stretch: 75%; }
.beam path { stroke: #2F6B8E; stroke-width: 7; }
.beam .data { opacity: 0; stroke: var(--sun); stroke-width: 13; stroke-dasharray: 2 30; }
.beam.now .data { opacity: 1; animation: send .7s linear infinite; }
@keyframes send { to { stroke-dashoffset: -32; } }
.use { position: absolute; top: 382px; width: 372px; height: 690px; transition: transform .4s ease; text-align: center; }
.use.play { left: 744px; }
.use.see { left: 1154px; }
.use.compete { left: 1564px; }
.use .phone { --w: 232px; left: 70px; top: 0; transition: box-shadow .3s; }
.use.now { transform: translateY(-14px) scale(1.06); }
/* A clip covers the still image only once it has loaded. */
.use .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.use .clip.ready { opacity: 1; }
.use.now .phone { box-shadow: 0 0 0 7px var(--sun); }
.use .focus b { font-size: 18px; }
.use .shutter { width: 38px; height: 38px; margin-left: -19px; border-width: 5px; }
.use h3 { position: absolute; left: 0; right: 0; top: 500px; font-size: 62px; line-height: 1; }
.use.now h3 { color: var(--sun); }
.use p { position: absolute; left: 0; right: 0; top: 572px; color: #D5E8F2; font-size: 31px; }

/* What makes it different */
.s-unique h2 { position: absolute; left: 100px; top: 92px; font-size: 146px; }
.proof { position: absolute; left: 104px; top: 590px; width: 790px; }
.proof li { margin-bottom: 30px; font-size: 36px; }
.proof b { display: block; font: 800 62px/1.1 var(--voice); font-stretch: 75%; }
.loop { position: absolute; inset: 0; width: 1920px; height: 1080px; fill: none; stroke: #4C2710; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.loop circle { stroke-dasharray: 3 24; animation: send 1.6s linear infinite; }
.centre { position: absolute; left: 1395px; top: 520px; transform: translate(-50%, -50%); font-size: 126px; }
.centre > span { -webkit-text-stroke-width: 11px; }
.node { position: absolute; width: 256px; transform: translateX(-50%); }
.node div { height: 256px; overflow: hidden; border: 9px solid var(--paper); border-radius: 50%; background: #FDF3E2; }
.node img { width: 100%; height: 100%; object-fit: cover; }
.node img.contain { padding: 24px; object-fit: contain; }
.node .arena-art { background: url(../assets/world/map.webp) -454px -234px / 840px 1260px no-repeat; }
.node figcaption { position: absolute; left: 50%; top: 226px; padding: 8px 22px; background: var(--paper); transform: translateX(-50%) rotate(-3deg); font: 400 50px/1 var(--hand); white-space: nowrap; }
.n1 { left: 1395px; top: 46px; }
.n2 { left: 1725px; top: 392px; }
.n3 { left: 1395px; top: 752px; }
.n4 { left: 1065px; top: 392px; }

/* Impact on children */
.s-impact h2 { position: absolute; left: 96px; top: 50px; color: var(--forest); font-size: 124px; }
.goals { position: absolute; left: 846px; top: 140px; }
.goals li { display: flex; align-items: center; gap: 38px; height: 280px; }
.goals li:nth-child(2) { margin-left: 70px; }
.goals img { width: 226px; height: 226px; }
.goals h3 { margin-bottom: 12px; color: #082D1C; font-size: 76px; line-height: .96; }
.goals p { color: #082D1C; font-size: 34px; }

/* Business: tickets on the workshop's table */
.s-business h2 { position: absolute; left: 96px; top: 56px; color: #fff; font-size: 116px; }
.ticket {
  position: absolute;
  display: flex;
  -webkit-mask:
    radial-gradient(circle 26px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 26px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat;
}
.ticket .stub { flex: none; overflow: hidden; border-right: 5px dashed #10283338; }
.ticket .stub img { width: 100%; height: 100%; object-fit: cover; }
.ticket .stub img.contain { padding: 22px; object-fit: contain; }
.ticket .body { flex: 1; padding: 24px 40px; }
.ticket h3 { line-height: .95; }
.free { left: 640px; top: 320px; width: 760px; height: 220px; background: var(--paper); transform: rotate(-2deg); }
.free .stub { width: 206px; }
.free h3 { font-size: 88px; }
.free p { margin-top: 10px; font-size: 34px; }
.plus { left: 692px; top: 576px; width: 1168px; height: 460px; background: var(--sun); transform: rotate(1.2deg); }
.plus .stub { width: 372px; }
.plus h3 { font-size: 112px; }
.plus .who { margin: 4px 0 12px; font: 400 50px/1 var(--hand); }
.plus p { font-size: 33px; line-height: 1.24; }
.cast { display: flex; gap: 12px; margin-top: 14px; }
.cast img { width: 80px; height: 80px; border-radius: 50%; }

/* Perspectives: the same tree, green, in flower, in fruit */
.s-next h2 { position: absolute; left: 96px; top: 52px; color: #fff; font-size: 124px; }
.stage-of { position: absolute; top: 820px; width: 620px; height: 250px; padding-top: 22px; transform: translateX(-50%); color: #fff; text-align: center; opacity: .78; transition: opacity .3s; }
.stage-of.now { opacity: 1; }
.stage-of h3 { font-size: 64px; line-height: 1; }
.stage-of.now h3 { color: var(--sun); }
.stage-of p { margin-top: 18px; font-size: 33px; }
.today { left: 330px; }
.operator { left: 960px; }
.schools { left: 1590px; }

/* Conclusion */
.last-words { position: absolute; left: 100px; top: 70px; color: var(--forest); font: 800 140px/.9 var(--voice); font-stretch: 75%; }
.invite { position: absolute; left: 108px; top: 650px; color: var(--forest); transform: rotate(-3deg); font-size: 78px; }
.demo-tag { position: absolute; left: 96px; top: 510px; width: 786px; height: 400px; transform: rotate(-1.5deg); }
.tag-shape { position: absolute; inset: 0; background: var(--forest); clip-path: polygon(62px 0, 100% 0, 100% 100%, 62px 100%, 0 80%, 0 20%); }
.hole { position: absolute; left: 24px; top: 178px; width: 44px; height: 44px; border: 9px solid var(--kraft); border-radius: 50%; background: #0A2E1E; }
.twine { position: absolute; z-index: 1; left: -46px; top: 92px; width: 120px; height: 130px; fill: none; stroke: #F2D7A6; stroke-width: 7; stroke-linecap: round; }
.code { position: absolute; left: 92px; top: 26px; width: 348px; height: 348px; border-radius: 26px; background: #FFF7E5; }
.code img { width: 100%; height: 100%; }
.see-demo { position: absolute; left: 486px; top: 52px; color: #fff; font: 800 112px/.86 var(--voice); font-stretch: 75%; }
.scan-me { position: absolute; left: 530px; top: 258px; color: var(--sun); transform: rotate(-5deg); }
.to-code { position: absolute; left: 462px; top: 310px; width: 150px; height: 70px; fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.signature { position: absolute; left: 104px; top: 952px; display: flex; align-items: center; gap: 30px; color: #fff; font-size: 36px; font-weight: 700; }

/* The platform: each game card zooms in, plays its demo, then zooms back out */
.s-platform { overflow: hidden; }
.s-platform .cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.shelf .game { transition: box-shadow .3s ease, translate .3s ease; }
.s-platform:not([data-step="0"]):not([data-step="4"]) .shelf .game.now { box-shadow: 0 0 0 8px var(--sun); translate: 0 -10px; }
.s-platform .player {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #000c; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.s-platform .player.on { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.s-platform .player video { display: none; max-width: 1920px; max-height: 1080px; height: 1080px; }
.s-platform .player video.landscape { width: 1920px; height: auto; }
.s-platform .player video.current { display: block; }
.s-platform .player .missing {
  display: none; padding: 60px 90px; border: 7px dashed #fff; border-radius: 30px;
  color: #fff; text-align: center; font-size: 44px;
}
.s-platform .player .missing b { display: block; margin-bottom: 18px; font-size: 90px; color: var(--sun); }
.s-platform .player .missing code { font-size: 32px; opacity: .8; }
.s-platform .player.empty .missing { display: block; }

/* 5G: zoom into the lit phone and show what 5G SA adds */
.s-network { overflow: hidden; }
.s-network .lens { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.s-network .sa {
  position: absolute; left: 1000px; top: 200px; width: 800px; padding: 50px 60px;
  border-radius: 34px; background: var(--ink); box-shadow: 0 0 0 6px var(--sun); color: #fff;
}
.slide.active .sa[data-only].on { transition: opacity .4s ease .6s, visibility 0s; }
.sa .sa-tag { color: var(--sun); font: 800 40px/1 var(--voice); font-stretch: 75%; letter-spacing: .02em; }
.sa h3 { margin: 22px 0 26px; font-size: 96px; line-height: .9; }
.sa p { font-size: 36px; line-height: 1.3; }
.s-network .use { transition: transform .4s ease, opacity .5s ease; }
.s-network .use h3, .s-network .use p { transition: opacity .4s ease; }
.lens.zoomed .use:not(.now) { opacity: .2; }
.lens.zoomed .use h3, .lens.zoomed .use p { opacity: 0; }
