/* Websites on a screen on the home page (assets/js/ux/screen.js), before the folders. After the 21st.dev
   "Container Scroll Animation": the screen leans back (--lean 1) and stands up (--lean 0) as it comes into view. Inside, four tabs: two websites as films and two free places as wireframes.
   Sizes follow the stage width (cqw). Without JavaScript the screen stands upright. */
.screen { --tilt: 20; --zoom: 1.05; --depth: 1000; --lean: 0;
  position: relative; z-index: 2; height: 100vh; height: 100svh; min-height: 600px; overflow: clip; }
.screen[data-pose="tilted"] { --lean: 1; }
.screen__head { position: absolute; z-index: 2; left: var(--margin); right: var(--margin); top: 13vh;
  display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.screen__head h2 { font: 800 clamp(30px, 4vw, 64px)/.95 var(--sans); letter-spacing: -.04em; }
.screen__head .mono { color: var(--ink-faint); }
/* Holds the motion in the screen (screen.js; not there under reduced motion): two bars, a triangle while held. */
.screen__head .mono:has(+ .screen__pause) { margin-left: auto; }
.screen__pause { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -8px 0 -6px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.screen__pause::before { content: ''; width: 10px; height: 12px;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.screen__pause[aria-pressed="true"]::before { width: 11px; margin-left: 2px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.screen__pause:hover { border-color: var(--gold); color: var(--gold); }
.screen__foot { position: absolute; z-index: 2; left: var(--margin); right: var(--margin); bottom: 6vh;
  display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.screen__link { display: grid; gap: 4px; padding: 10px 14px; margin: -10px -14px; border-radius: 6px; text-decoration: none; }
.screen__link b { font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--sans); letter-spacing: -.015em; }
.screen__link span { color: var(--ink-soft); }
.screen__link:hover b { color: var(--gold); }
.screen__link--free { text-align: right; justify-items: end; }

/* The stage holds the card, in the middle of the section, so the heading clears the masthead. */
.screen__stage { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%;
  width: min(84vw, 1040px, 92vh); aspect-ratio: 16 / 10.4; container-type: inline-size; }
@supports (height: 1svh) { .screen__stage { width: min(84vw, 1040px, 92svh); } }
.screen--live .screen__stage { pointer-events: none; }
.screen--live[data-pose="upright"] .screen__stage { pointer-events: auto; }

.screen__card { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 1.1cqw 1.1cqw;
  border: max(2px, .3cqw) solid #2E2E33; border-radius: 2.2cqw; background: #141416;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 0 0 1px rgb(255 255 255 / .06), 0 30px 60px -20px rgb(0 0 0 / .9), 0 0 120px -30px rgb(255 255 255 / .08);   /* short enough for the section's clip */
  transform: perspective(calc(var(--depth) * 1px)) rotateX(calc(var(--tilt) * var(--lean) * 1deg)) scale(calc(1 + (var(--zoom) - 1) * var(--lean)));
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }

/* Browser bar: three dots, the tabs (screen.js) and the address. The open tab joins the page below it. */
.screen__bar { flex: none; display: flex; align-items: end; gap: 1.2cqw; height: max(30px, 4.2cqw); padding: 0 .4cqw; }
.screen__dots { flex: none; display: flex; gap: .7cqw; align-self: center; }
.screen__dots i { width: max(6px, .9cqw); aspect-ratio: 1; border-radius: 50%; background: #3A3A3F; }
.screen__tabs { display: flex; gap: .3cqw; min-width: 0; }
.screen__tab { position: relative; min-width: 0; padding: 0 max(10px, 1.4cqw); height: max(24px, 3.2cqw); border: 0;
  border-radius: .8cqw .8cqw 0 0; background: transparent; color: #9DA3AE; cursor: pointer;
  font: 500 max(11px, 1.1cqw)/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__tab:hover { color: #FFFFFF; }
.screen__tab[aria-selected="true"] { background: #FFFFFF; color: #17191D; }
/* How long the open tab still shows before the next (screen.js sets --p from 0 to 1). */
.screen__tab::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; background: var(--gold-deep);
  transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
.screen__tab[aria-selected="true"]::after { opacity: 1; }
.screen__tab:focus-visible { outline-offset: -2px; }
.screen__url { margin-left: auto; align-self: center; padding: .35cqw 1.2cqw; border-radius: 99px; background: #1F1F22;
  color: #9DA3AE; font-size: max(9px, 1cqw); line-height: 1.2; letter-spacing: .02em; text-transform: none; white-space: nowrap; }

/* Inside the screen the pages are light: the wireframes keep the light palette of a website, scoped to the view. */
.screen__view { --anthracite: #17191D; --anthracite-700: #30343C; --stage: #EDEFF2; --line: #D2D6DD; --white: #FFFFFF;
  --slate-600: #545A66; --slate-500: #80868F; --cobalt: #315CFF; --cobalt-600: #2346E0;
  position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 1.2cqw 1.2cqw 1.2cqw; background: var(--white); color: var(--anthracite); }
.screen__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.screen__slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }

/* A website as a film of the live page over its first frame; the film shows once it plays (screen.js). */
.screen__shot img, .screen__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen__film { opacity: 0; transition: opacity .3s; }
.screen__film.is-ready { opacity: 1; }
.screen__tag { position: absolute; left: 1.6cqw; bottom: 1.6cqw; padding: .6cqw 1.2cqw; border-radius: 99px;
  background: rgb(10 10 11 / .86); color: #FFFFFF; font-size: max(9px, .95cqw); }

/* Free places: a website and a web app as wireframes, with the offer in the place of their headline. */
.screen__offer { display: grid; justify-items: start; align-content: center; gap: 1.3cqw; min-width: 0; }
.screen__offer p { margin: 0; }
.screen__offer .mono { color: var(--cobalt-600); }
.screen__claim { font: 700 clamp(20px, 4.4cqw, 54px)/1.02 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.screen__sub { max-width: 24em; font-size: clamp(13px, 1.45cqw, 18px); line-height: 1.45; color: var(--slate-600); }
.screen__offer .btn { margin-top: .6cqw; }
.wire__logo { flex: none; width: 2.2cqw; aspect-ratio: 1; background: var(--cobalt); }
.wire__media { display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 1cqw; color: var(--slate-500);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(210 214 221 / .35) 14px 15px); }

.screen__site { display: grid; grid-template: "nav nav" auto "offer media" 1fr "cards cards" auto / 1.1fr 1fr;
  gap: 2.6cqw 3.4cqw; padding: 2.2cqw 3.4cqw 3cqw; background: var(--white); }
.wire__nav { grid-area: nav; display: flex; align-items: center; gap: 1.8cqw; }
.wire__nav b { width: 6cqw; height: .7cqw; border-radius: 99px; background: var(--line); }
.wire__nav b:first-of-type { margin-left: auto; }
.wire__nav s { width: 9cqw; height: 2.8cqw; border-radius: .5cqw; background: var(--anthracite); }
.screen__site .screen__offer { grid-area: offer; }
.screen__site .wire__media { grid-area: media; }
.wire__cards { grid-area: cards; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; }
.wire__cards i { height: 6cqw; border-radius: .8cqw; background: var(--stage); }

.screen__app { display: grid; grid-template: "side offer tiles" auto "side chart chart" 1fr / 14cqw 1.15fr 1fr;
  gap: 2.4cqw 3cqw; padding-right: 3cqw; background: var(--stage); }
.wire__side { grid-area: side; display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.4cqw 1.8cqw; background: var(--anthracite); }
.wire__side .wire__logo { margin-bottom: 1.6cqw; }
.wire__side b { height: .8cqw; border-radius: 99px; background: var(--anthracite-700); }
.wire__side b:nth-of-type(2) { background: var(--cobalt); width: 70%; }
.screen__app .screen__offer { grid-area: offer; padding-top: 3.4cqw; }
.wire__tiles { grid-area: tiles; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; padding-top: 3.4cqw; }
.wire__tiles i { min-height: 9cqw; border-radius: 1cqw; background: var(--white);
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--anthracite), var(--anthracite));
  background-size: 40% .7cqw, 55% 1.8cqw; background-position: 1.4cqw 1.6cqw, 1.4cqw 4cqw; background-repeat: no-repeat; }
.wire__tiles i + i { background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--cobalt), var(--cobalt)); }
.wire__chart { grid-area: chart; display: flex; align-items: end; gap: 1.2cqw; padding: 2.4cqw 2.4cqw 0; border-radius: 1cqw 1cqw 0 0; background: var(--white); }
.wire__chart i { flex: 1; height: 40%; border-radius: .5cqw .5cqw 0 0; background: var(--line); transform-origin: bottom; }
.wire__chart i:nth-child(2) { height: 55%; } .wire__chart i:nth-child(3) { height: 48%; } .wire__chart i:nth-child(4) { height: 70%; }
.wire__chart i:nth-child(5) { height: 62%; } .wire__chart i:nth-child(6) { height: 78%; } .wire__chart i:nth-child(7) { height: 74%; }
.wire__chart i:nth-child(8) { height: 92%; background: var(--cobalt); }
/* The bars grow in as the web app comes up. */
.screen--live .screen__app.is-active .wire__chart i { animation: screen-grow .9s cubic-bezier(.16, 1, .3, 1) both; }
.wire__chart i:nth-child(n) { animation-delay: calc(var(--n, 0) * 60ms); }
.wire__chart i:nth-child(2) { --n: 1; } .wire__chart i:nth-child(3) { --n: 2; } .wire__chart i:nth-child(4) { --n: 3; }
.wire__chart i:nth-child(5) { --n: 4; } .wire__chart i:nth-child(6) { --n: 5; } .wire__chart i:nth-child(7) { --n: 6; } .wire__chart i:nth-child(8) { --n: 7; }
@keyframes screen-grow { from { transform: scaleY(0); } }

/* Phones: heading, screen and links in a column (the section grows past the screen if it must, the screen stays in
   the middle). The screen becomes a phone: upright 1 : 2, a narrow frame with round corners, a status
   bar with the time and an island above the page, a home bar below it. The websites show their phone view (films
   filmed at 390 × 760, the page area below the status bar); the wireframes stack. The tabs leave the frame and stand
   as pills below the phone, in the room the stage keeps under it. */
@media (max-width: 640px) {
  .screen { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    gap: 16px; padding: 13vh var(--margin) 8vh; }
  .screen__head, .screen__foot { position: static; }
  /* The phone lands in the middle of the screen; its height leaves room above it for the masthead (74px) and the
     heading with its pause button (16px gap, 18px line, 8px overhang, 8px air), so the heading shows on small phones
     too: half the screen minus 124px. */
  .screen__stage { position: relative; left: auto; top: auto; translate: none; flex: none; margin: 0 auto 72px;
    width: min(62vw, 290px, 34vh, 50vh - 124px); aspect-ratio: 1 / 2; }
  .screen__card { padding: 2.8cqw; border-width: max(2px, .8cqw); border-radius: 14cqw; }
  /* A side button on the frame, and the home bar over the foot of the page. */
  .screen__card::before { content: ''; position: absolute; right: calc(-1 * max(2px, .8cqw) - 1.2cqw); top: 30cqw;
    width: 1.2cqw; height: 18cqw; border-radius: 0 .6cqw .6cqw 0; background: #3A3A3F; }
  .screen__card::after { content: ''; position: absolute; z-index: 1; left: 50%; bottom: 5cqw; translate: -50% 0;
    width: 34cqw; height: 1.4cqw; border-radius: 99px; background: rgb(23 25 29 / .82); pointer-events: none; }
  .screen__dots, .screen__url { display: none; }
  .screen__bar { position: absolute; left: 50%; top: calc(100% + 18px); translate: -50% 0; width: min(100vw - 2 * var(--margin), 360px);
    height: auto; padding: 0; justify-content: center; }
  .screen__tabs { flex: none; gap: clamp(4px, 1.5vw, 6px); }
  /* Narrower pills on the smallest phones (320px), so all four fit between the margins. */
  .screen__tab { flex: none; height: 30px; padding: 0 clamp(7px, 2.6vw, 12px); border: 1px solid var(--line-strong); border-radius: 10px;
    color: var(--ink-soft); font-size: 11px; }
  .screen__tab:hover { color: var(--ink); }
  .screen__tab[aria-selected="true"] { border-color: rgb(255 255 255 / .3); background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05)); color: var(--ink); }
  .screen__tab::after { left: 12px; right: 12px; bottom: 5px; }
  /* Four full names do not fit the bar here: the short name shows, the full one stays the tab's name for screen readers. */
  .screen__tab[data-short] { font-size: 0; }
  .screen__tab[data-short]::before { content: attr(data-short); font-size: 11px; }
  /* Status bar: the time on the left, signal and battery on the right, the island in the middle; the page below it. */
  .screen__view { border-radius: 11cqw; }
  .screen__view::before { content: '9:41'; position: absolute; z-index: 2; inset: 0 0 auto; height: 12cqw; display: flex; align-items: center;
    padding: .6cqw 0 0 11cqw; background: var(--white) no-repeat right 8cqw center / 16cqw auto
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 22'%3E%3Cg fill='%2317191D'%3E%3Crect x='0' y='13' width='4' height='6' rx='1'/%3E%3Crect x='6' y='10' width='4' height='9' rx='1'/%3E%3Crect x='12' y='7' width='4' height='12' rx='1'/%3E%3Crect x='18' y='4' width='4' height='15' rx='1'/%3E%3Crect x='33' y='5' width='26' height='13' rx='3.5' fill='none' stroke='%2317191D' stroke-width='1.6' opacity='.45'/%3E%3Crect x='35.5' y='7.5' width='17' height='8' rx='1.8'/%3E%3Crect x='60.5' y='9.5' width='2' height='4' rx='1' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--anthracite); font: 600 4.6cqw/1 var(--sans); letter-spacing: -.01em; }
  .screen__view::after { content: ''; position: absolute; z-index: 3; left: 50%; top: 2.4cqw; translate: -50% 0;
    width: 29cqw; height: 8.4cqw; border-radius: 99px; background: #0B0C0E; }
  .screen__slide { top: 12cqw; }
  .screen__tag { left: 4cqw; bottom: 10cqw; padding: 1.6cqw 3cqw; font-size: min(9px, 4.2cqw); white-space: nowrap; }
  .wire__logo { width: 5cqw; }
  .screen__site { grid-template: "nav" auto "offer" auto "media" 1fr / 1fr; gap: 6cqw; padding: 5cqw 6cqw 6cqw; }
  .wire__nav { gap: 3cqw; }
  .wire__nav b { width: 9cqw; height: 1.6cqw; }
  .wire__nav s { width: 16cqw; height: 6.4cqw; border-radius: 1.2cqw; }
  .wire__cards { display: none; }
  .screen__offer { gap: 3cqw; }
  .screen__claim { font-size: clamp(22px, 9cqw, 34px); }
  .screen__sub { font-size: 13px; }
  .screen__app { grid-template: "offer" auto "tiles" auto "chart" 1fr / 1fr; gap: 5cqw; padding: 0 6cqw; }
  .wire__side { display: none; }
  .screen__app .screen__offer, .wire__tiles { padding-top: 0; }
  .screen__app .screen__offer { padding-top: 6cqw; }
  .wire__tiles { gap: 3cqw; }
  .wire__tiles i { min-height: 18cqw; border-radius: 2.4cqw; background-size: 40% 1.6cqw, 55% 4cqw; background-position: 3cqw 3.6cqw, 3cqw 8.6cqw; }
  .wire__chart { gap: 2.4cqw; padding: 5cqw 5cqw 0; border-radius: 2.4cqw 2.4cqw 0 0; }
  .screen__link--free { text-align: left; justify-items: start; }   /* the links stack here */
}
@media (max-width: 640px) { @supports (height: 1svh) { .screen__stage { width: min(62vw, 290px, 34svh, 50svh - 124px); } } }

@media (prefers-reduced-motion: reduce) {
  .screen__card, .screen__slide, .screen__slide.is-active { transition: none; }
  .screen--live .screen__app.is-active .wire__chart i { animation: none; }
}
