/* The OpenPera website: Newsreader headlines, IBM Plex Mono for typed requests, the film's green-black stage, amber as the
   only action colour. Fonts and captures in media/ are named by content hash. Font licences: licences/. */
@font-face{font-family:News;font-weight:400 500;font-display:swap;src:url(media/newsreader.888c5d70.woff2) format("woff2")}
@font-face{font-family:News;font-weight:400 500;font-style:italic;font-display:swap;src:url(media/newsreader-italic.4b08c58c.woff2) format("woff2")}
@font-face{font-family:Plex;font-weight:400;font-display:swap;src:url(media/ibm-plex-sans-400.3b646991.woff2) format("woff2")}
@font-face{font-family:Plex;font-weight:500;font-display:swap;src:url(media/ibm-plex-sans-500.0717336f.woff2) format("woff2")}
@font-face{font-family:Plex;font-weight:600;font-display:swap;src:url(media/ibm-plex-sans-600.8960851d.woff2) format("woff2")}
@font-face{font-family:PlexMono;font-weight:400;font-display:swap;src:url(media/ibm-plex-mono-400.08949f72.woff2) format("woff2")}
@font-face{font-family:PlexMono;font-weight:500;font-display:swap;src:url(media/ibm-plex-mono-500.01d28544.woff2) format("woff2")}
@font-face{font-family:Plex;font-weight:400;src:url(media/rupee-sans-400.163ceb51.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:Plex;font-weight:500;src:url(media/rupee-sans-500.c97cf26c.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:PlexMono;font-weight:400;src:url(media/rupee-mono-400.5b015f46.woff2) format("woff2");unicode-range:U+20B9}
@font-face{font-family:PlexMono;font-weight:500;src:url(media/rupee-mono-500.240d56fe.woff2) format("woff2");unicode-range:U+20B9}

:root{color-scheme:dark;
  --stage:#050807;--bg:#0a0f0c;--bg2:#0b110e;--bg3:#121b15;--line:#1c2a21;--line2:#2b4132;--edge:#2f4a3b;
  --head:#e4f3e8;--soft:#b4dabf;--fg2:#9fc3ab;--fg3:#78a086;--acc:#ffb454;--acc-hover:#ffc579;
  --gutter:clamp(20px,5vw,72px);--max:1296px;--bar:72px;--ease:cubic-bezier(.16,1,.3,1)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:var(--bar)}
body{margin:0;background:var(--stage);color:var(--fg2);font:400 17px/1.6 Plex,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img,video{display:block;max-width:100%;height:auto}
h1,h2{margin:0;color:var(--head);font-family:News,Georgia,serif;font-weight:500;text-wrap:balance}
h1 em,h2 em{font-style:italic;font-weight:400;color:var(--soft)}
p{margin:0;text-wrap:pretty}
a{color:var(--head);text-decoration-color:var(--fg3);text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--acc);outline-offset:3px;border-radius:2px}
.wrap{width:100%;max-width:calc(var(--max) + 2 * var(--gutter));margin-inline:auto;padding-inline:var(--gutter)}
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:12px;z-index:20;background:var(--bg3);padding:8px 14px}

/* header */
.bar{position:sticky;top:0;z-index:10;background:var(--stage);border-bottom:1px solid transparent;transition:border-color .3s}
.past .bar,.page .bar{border-color:var(--line)}
.top{display:flex;align-items:center;gap:16px;height:var(--bar)}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-right:auto;font:500 27px/1 News,Georgia,serif;color:var(--head);text-decoration:none}
.brand img{width:32px;height:32px}
.top nav{display:flex;gap:clamp(18px,3vw,36px);font-size:15px}
.top nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--fg2);text-decoration:none;transition:color .15s}
.top nav a:hover,.top nav a[aria-current]{color:var(--head)}
.top nav a[aria-current]{text-decoration:underline;text-underline-offset:.45em}
/* the header offers the download only after the first one has scrolled away */
.top .cta{display:none;min-height:40px;padding:0 18px;font-size:15px}
.past:not(.closing) .top .cta{display:inline-flex;animation:rise .5s var(--ease)}
.is-phone .top .cta{display:none}

/* the one amber action */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border:0;border-radius:8px;background:var(--acc);color:var(--stage);font:600 17px/1 Plex,system-ui,sans-serif;text-decoration:none;cursor:pointer;transition:background-color .15s,transform .15s var(--ease)}
.btn:hover{background:var(--acc-hover)}
.btn:active{transform:scale(.97)}
.get{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
.get .all{display:inline-flex;align-items:center;min-height:44px;font-size:15px}
.get .meta{flex-basis:100%;font:400 13.5px/1.6 PlexMono,monospace;color:var(--fg3)}
/* phones cannot install: the address and a share button instead */
.phone{display:none}
.phone p{max-width:34ch}
.phone .addr{display:block;margin:6px 0 16px;font:500 19px/1.4 PlexMono,monospace;color:var(--head)}
.phone .btn[hidden]{display:none}
@media (pointer:coarse) and (max-width:820px){.get,.past .top .cta{display:none!important}.phone{display:block}}
.is-phone .get{display:none}.is-phone .phone{display:block}

/* a typed request */
.ask{font:500 clamp(16px,1.55vw,21px)/1.65 PlexMono,monospace;color:var(--head)}
.ask>span:first-child::after{content:"";position:absolute;width:2px;height:1.15em;margin:.22em 0 0 2px;background:var(--acc)}
.ask .rest{opacity:0}

/* a real capture, and the loop that plays over it */
.shot{position:relative;margin:0}
.shot img,.shot video{width:100%;border:1px solid var(--edge);border-radius:8px;background:var(--bg)}
.shot video{position:absolute;inset:0;height:100%;object-fit:cover;opacity:0;transition:opacity .5s}
.shot video.on{opacity:1}
.shot button{position:absolute;right:0;top:100%;min-width:64px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--fg3);font:400 13px/1 PlexMono,monospace;text-align:right;cursor:pointer}
.shot button:hover{color:var(--head)}

/* hero: the offer on the left, the first request and its whole result on the right */
.hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:1fr auto auto auto 1fr;grid-template-areas:". show" "title show" "lead show" "offer show" ". show";column-gap:48px;min-height:min(calc(100svh - var(--bar)),880px);padding-block:8px 40px}
h1{grid-area:title;font-size:clamp(60px,7.4vw,118px);line-height:.96;letter-spacing:-.03em}
h1 em{display:block}
.lead{grid-area:lead;margin-top:28px;font-size:clamp(18px,1.55vw,21px);line-height:1.55;max-width:34ch}
.offer{grid-area:offer;margin-top:28px}
.show{grid-area:show;align-self:center;justify-self:end;width:min(100%,max(420px,calc((100svh - var(--bar) - 190px) * 1.364)))}
.show .ask{margin-bottom:18px}

.film{margin:0;aspect-ratio:16/9;display:grid;place-content:center;justify-items:center;gap:8px;padding:20px;text-align:center;border:1px dashed var(--edge);border-radius:12px;background:var(--bg)}
.film span{font:400 clamp(24px,3.4vw,48px)/1.2 News,Georgia,serif;color:var(--soft)}
.film small{font:400 13px/1.6 PlexMono,monospace;color:var(--fg3)}
.reel{padding-top:clamp(64px,8vw,128px)}

/* the five other requests, each laid out for what it shows */
.turn{padding-top:clamp(112px,15vw,224px)}
.turn h2,.band h2{font-size:clamp(44px,6vw,92px);line-height:1;letter-spacing:-.026em}
.turn .ask,.band .ask{margin-bottom:24px}
.turn h2+p,.band h2+p{margin-top:20px;max-width:36ch;font-size:clamp(17px,1.45vw,20px)}
.stagehead{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);align-items:end;gap:20px 48px;margin-bottom:clamp(40px,5vw,64px)}
.stagehead p:last-child{margin-bottom:6px}
.stage .shot{max-width:1120px;margin-inline:auto}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
.reply{margin-top:40px}
.reply p{display:none}
.centre{text-align:center}
.centre .ask>span:first-child::after{margin-left:2px}
.centre h2+p{margin-inline:auto}
.centre .shot{margin-top:clamp(40px,5vw,72px)}
.band{margin-top:clamp(112px,15vw,224px);padding-block:clamp(72px,9vw,144px);background:var(--bg2);border-block:1px solid var(--line)}
.band .split{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.band .words{order:2}
.watch .ask{font-size:clamp(19px,2.6vw,36px);line-height:1.5;margin-bottom:48px}
.watch .shot{max-width:900px;margin:0 auto 56px}

.closer{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:min(88svh,860px);padding-top:clamp(112px,14vw,200px)}
.closer h2{margin-top:32px;font-size:clamp(76px,15vw,232px);line-height:.92;letter-spacing:-.038em}
.closer h2 em{display:block}
.closer .get{justify-content:center;margin-top:56px}
.closer .phone{margin-top:48px}
.closer .phone p{margin-inline:auto}

/* downloads and privacy: a heading column, the facts beside it */
.head{padding-block:clamp(24px,5vw,72px) clamp(32px,4vw,56px)}
.head h1{font-size:clamp(52px,8vw,120px);line-height:.98}
.head h1 em{display:inline}
.head p{margin-top:20px;max-width:52ch;font-size:19px}
.head+.phone{margin-bottom:48px}
.systems{display:flex;flex-direction:column}
.os,.prose section{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:24px 48px;padding-block:40px;border-top:1px solid var(--line2)}
.os h2{font-size:clamp(36px,3.6vw,52px);line-height:1.05;letter-spacing:-.02em}
.name p{margin-top:8px;font-size:15px;color:var(--fg3)}
.files{list-style:none;margin:0;padding:0}
.files li{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(132px,auto);gap:24px;align-items:center;padding-block:16px;border-bottom:1px solid var(--line)}
.files li:first-child{padding-top:0}
.files b{font-weight:600;color:var(--head);margin-right:14px}
.files div span{font-size:15px}
.files code{display:block;margin-top:2px;font:400 13px/1.6 PlexMono,monospace;color:var(--fg3)}
.size{font:400 14px/1 PlexMono,monospace;color:var(--fg2);font-variant-numeric:tabular-nums;text-align:right}
.files a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--fg3);border-radius:8px;font-weight:500;font-size:15px;text-decoration:none;transition:border-color .15s,background-color .15s}
.files a:hover{border-color:var(--head)}
/* the visitor's system: first, with the one amber button */
.mine .main a{background:var(--acc);border-color:var(--acc);color:var(--stage);font-weight:600}
.mine .main a:hover{background:var(--acc-hover)}
details{margin-top:12px;font-size:15px}
summary{cursor:pointer;color:var(--head);min-height:44px;display:flex;align-items:center;gap:10px}
summary::-webkit-details-marker{display:none}
summary::before{content:"+";font:400 18px/1 PlexMono,monospace;color:var(--fg3)}
details[open] summary::before{content:"−"}
details p{max-width:62ch;padding-bottom:4px}
code{font-family:PlexMono,monospace;font-size:.92em;color:var(--head);overflow-wrap:anywhere}
.prose h2{font-size:clamp(28px,2.6vw,38px);line-height:1.15;letter-spacing:-.012em}
.prose section>div{max-width:68ch}
.prose p+p,.prose p+ul,.prose ul+p,.prose table,.prose table+p{margin-top:16px}
.prose ul{padding-left:1.15em;margin-bottom:0}
.prose li+li{margin-top:8px}
.prose li::marker{color:var(--fg3)}
.prose a{overflow-wrap:anywhere}
table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
th,td{text-align:left;vertical-align:top;padding:12px 16px 12px 0;border-bottom:1px solid var(--line)}
thead th{font-weight:500;color:var(--fg3)}
tbody th{font-weight:500;color:var(--head);width:44%}
mark{background:none;color:var(--acc);border:1px dashed var(--acc);border-radius:4px;padding:1px 8px;font:500 .92em PlexMono,monospace;white-space:nowrap}
.lost{min-height:60svh}
.lost .btn{margin-top:36px}

footer{margin-top:clamp(80px,10vw,144px);border-top:1px solid var(--line);padding-block:24px 40px;font-size:15px}
footer .wrap{display:flex;flex-wrap:wrap;gap:0 32px}
footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--fg2)}
footer a:first-child{margin-right:auto;color:var(--head);text-decoration:none}

@media (max-width:999px){
  .hero{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"title" "lead" "offer" "show";min-height:0;padding-top:24px}
  .show{justify-self:center;width:min(100%,max(420px,calc((100svh - 540px) * 1.364)));margin-top:48px}
  .stagehead,.split,.band .split,.os,.prose section{grid-template-columns:minmax(0,1fr)}
  .split{gap:56px}
  .band .words{order:0}
}
/* phones: the result before the address, captures edge to edge */
@media (max-width:700px){
  .hero{grid-template-areas:"title" "lead" "show" "offer"}
  .show{width:100%;margin-top:32px}
  .offer{margin-top:56px}
  .shot{margin-inline:calc(-1 * var(--gutter))}
  .shot img,.shot video{border-width:1px 0;border-radius:0}
  .shot button{right:var(--gutter)}
  .watch .shot{margin-inline:calc(-1 * var(--gutter))}
  .reply img{display:none}
  .reply p{display:block;padding:18px 0 0;border-top:1px solid var(--line2);color:var(--head)}
}
@media (max-width:600px){
  .files li{grid-template-columns:minmax(0,1fr) auto}
  .files li>div{grid-column:1/-1}
  .size{text-align:left;align-self:center}
}
/* phones: the files are listed, nothing to download */
@media (pointer:coarse) and (max-width:820px){.files a,.files code,.os details{display:none}.files li{grid-template-columns:minmax(0,1fr) auto}.files li>div{grid-column:auto}}
.is-phone .files a,.is-phone .files code,.is-phone .os details{display:none}.is-phone .files li{grid-template-columns:minmax(0,1fr) auto}.is-phone .files li>div{grid-column:auto}

/* motion: only opacity and transform; pera.js hides nothing that is already on screen */
@keyframes rise{from{opacity:0;translate:0 14px}}
@keyframes grow{from{scale:.92}to{scale:1}}
.moving [data-reveal]{transition:opacity .8s var(--ease),translate 1s var(--ease)}
.moving [data-reveal].wait{opacity:0;translate:0 36px}
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .hero h1,.hero .lead,.hero .offer,.hero .show,.head,.closer>img{animation:rise 1s var(--ease) both}
  .hero .lead{animation-delay:.08s}
  .hero .offer{animation-delay:.16s}
  .hero .show{animation-delay:.12s}
  @supports (animation-timeline:view()){
    .grow{animation:grow linear both;animation-timeline:view();animation-range:entry 0% cover 42%}
    .closer h2{animation:grow linear both;animation-timeline:view();animation-range:entry 0% cover 45%}
  }
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
