/* V3 Case: As seen on (Nov 8, third round; replaces the 3D cabin). A flat line drawing of a row of seat backs, the film
   on the middle seat's screen, and "As seen on" with the airline's logo beside it. Second pass (Sean, Nov 9: "get rid
   of this blue... the only blue block on the whole website", the film "a little bit bigger"): on the site's ink, and
   cropped in on the middle seat so its screen is about 40% bigger.
   Loaded only on pages that use the block (functions.php). Behavior: v3/screen.js. */
.bkA-screen { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 120px) 0; background: var(--ink); color: #fff; }
.bkA-screen .bkA__head::after { opacity: .35; }
.bkA-screen__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.bkA-screen__asof { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0 0 clamp(28px, 3.4vw, 48px); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.bkA-screen__logo { display: block; width: clamp(150px, 14vw, 210px); height: auto; }
.bkA-screen__title { font-family: "Inter Tight", sans-serif; font-weight: 700; font-size: clamp(36px, 4.2vw, 68px); line-height: .95; letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.bkA-screen__title span { font-family: var(--font3), serif; font-weight: 400; letter-spacing: 0; }
.bkA-screen__text { max-width: 440px; margin-top: 24px; font-size: 17px; line-height: 1.6; opacity: .88; }
.bkA-screen__cap { margin-top: 24px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }

/* The drawing: 600 x 430 units (the middle seat's headrest and screen, the edges of the seats either side), the film
   placed over the middle seat's glass by the same numbers (viewBox -110 0 600 430 in case_screen.php). Cropped above
   the tray table so the screen leads and nothing runs past the fold (Sean, Nov 10: "so much negative space"). */
.bkA-seatart { position: relative; width: min(100%, calc((100vh - var(--bkHdr) - 160px) * 600 / 430)); margin: 0 0 0 auto; aspect-ratio: 600 / 430; overflow: hidden; }
.bkA-seatart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.bkA-seatart .ln { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bkA-seatart .bkA-seatart__shell { fill: rgba(255, 255, 255, .03); }
.bkA-seatart .bkA-seatart__bezel { fill: #050505; }
.bkA-seatart__glass { fill: #0a0a0a; }
.bkA-seatart__seat:not(.--main) { opacity: .38; }
.bkA-seatart__screen { position: absolute; top: 47.442%; left: 29.333%; width: 41.333%; height: 32.442%; overflow: hidden; border-radius: 3px; background: #0a0a0a; }
.bkA-seatart__poster, .bkA-seatart__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bkA-seatart__video { opacity: 0; transition: opacity .6s var(--ease); }
.bkA-seatart__video.is-playing { opacity: 1; }

/* The lines draw in once as the block arrives (screen.js adds .is-drawing, then .is-in); the screen and the mark
   come on at the end. */
.bkA-screen.is-drawing .bkA-seatart .ln { stroke-dashoffset: 1; }
.bkA-screen.is-drawing.is-in .bkA-seatart .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.6, .05, .25, 1); }
.bkA-screen.is-drawing .bkA-seatart__screen, .bkA-screen.is-drawing .bkA-seatart__mark { opacity: 0; transition: opacity .8s var(--ease) 1.4s; }
.bkA-screen.is-drawing.is-in .bkA-seatart__screen, .bkA-screen.is-drawing.is-in .bkA-seatart__mark { opacity: 1; }

@media (max-width: 767px) {
	.bkA-screen__grid { grid-template-columns: 1fr; gap: 40px; }
	.bkA-seatart { margin: 0 calc(-1 * var(--gut)); }
}
