/*
 * About's opening scene (template-parts/about-scene.php). The stage is pinned
 * with position: sticky for the section's whole height, with the cards along
 * its foot. Each stop is a 150svh stretch of scroll: the camera holds for the first
 * 60svh, then moves on to the next stop (assets/js/about-scene.js, STEP and
 * HOLD).
 */

.about-scene {
	--about-scene-step: 150svh;
	--about-scene-hold: 60svh;
	position: relative;
	/* Three moves and four holds, plus the screen the stage fills. */
	height: calc(var(--about-scene-step) * 3 + var(--about-scene-hold) + 100svh);
	background: #1b2633;
}

.about-scene__stage {
	position: sticky;
	top: var(--about-scene-bar, 0px);
	height: calc(100svh - var(--about-scene-bar, 0px));
	overflow: hidden;
}

/* Logged in, the stage pins below WordPress's admin bar and is that much
   shorter, so the cards along its foot stay on screen: 32px; 46px up to 782px
   wide, where on phones (up to 600px) the bar scrolls away and nav.js follows
   its bottom edge (--justco-admin-bar). */
body.admin-bar .about-scene {
	--about-scene-bar: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .about-scene {
		--about-scene-bar: var(--justco-admin-bar, 46px);
	}
}

/* The poster sits where the scene's camera is (about-scene.js places it), so
   the scene fades in over it without a jump. Without the script it shows the
   whole building. */
.about-scene__poster {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 60%;
	transform-origin: 0 0;
}

.about-scene.is-placed .about-scene__poster {
	width: auto;
	height: auto;
	object-fit: fill;
}

.about-scene__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.about-scene.is-ready .about-scene__canvas {
	opacity: 1;
}

/* A soft shade under the white navbar, which the day sky and the cream
   facade would otherwise wash out. */
.about-scene__shade {
	position: absolute;
	inset: 0 0 auto;
	height: 160px;
	background: linear-gradient(180deg, rgba(14, 22, 34, 0.45), rgba(14, 22, 34, 0));
	pointer-events: none;
}

/* The cards (Figma 395:534): a row along the foot of the stage, one for each
   stop, standing on the row's foot. With the script, each shows only its
   title until the camera reaches its stop, when the card grows to open its
   copy, and closes again when the camera moves on (.is-current,
   about-scene.js); without it, they're all open. Clicking a card takes the
   camera to its stop. Below 1200px the row scrolls sideways, and the current
   card slides into view. */
.about-scene__cards {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: end;
	gap: 20px;
	padding: 28px;
	pointer-events: none;
}

.about-scene__card {
	--about-scene-card-ink: var(--color-walnut-brown);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 16px 20px;
	overflow: hidden;
	border-radius: 12px;
	color: var(--about-scene-card-ink);
	pointer-events: auto;
	cursor: pointer;
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.about-scene__card--1 {
	--about-scene-card-ink: var(--color-dune);
	background: var(--color-walnut-brown);
}

.about-scene__card--2 {
	--about-scene-card-ink: var(--justco-midnight);
	background: var(--color-powder-blue);
}

.about-scene__card--3 {
	background: #f6f0e4; /* The design's cream, not yet a theme colour. */
}

.about-scene__card--4 {
	background: #dcd1c3; /* The Brands section's sand. */
}

/* The copy opens from nothing to its height: the row grows from 0fr to 1fr. */
.about-scene__body {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.about-scene.is-staged .about-scene__card:not(.is-current) .about-scene__body {
	grid-template-rows: 0fr;
	transition-duration: 0.4s;
	transition-delay: 0s;
}

/* A closed card's button can't be reached by Tab: hidden once the body has
   closed, shown as it starts to open. */
.about-scene.is-staged .about-scene__card:not(.is-current) .about-scene__action {
	visibility: hidden;
	transition: visibility 0s 0.4s;
}

.about-scene__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	overflow: hidden;
}

/* 8px under the title, on the first paragraph so it closes with
   the copy (padding on the copy would stay). The first card's title has its
   own space (its leading). */
.about-scene__copy > :first-child {
	margin-top: 8px;
}

.about-scene__card--1 .about-scene__copy > :first-child {
	margin-top: 0;
}

/* A card's paragraphs (10px apart, .about-scene__paragraphs) and its button
   (card 1's Get Directions, card 4's JustCo Group), 20px apart. */
.about-scene__copy:has(> .about-scene__action) {
	gap: 20px;
}

.about-scene__title {
	margin: 0;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--about-scene-card-ink);
}

/* The title's button: the card's own type, nothing of a button's. */
.about-scene__jump {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: inherit;
	color: inherit;
}

.about-scene__jump:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.about-scene__card {
		cursor: var(--justco-cursor-interactive, pointer);
	}
}

/* The first card's title is the page's h1, at the section-title size. */
.about-scene__card--1 .about-scene__title {
	font-size: var(--justco-section-title-size);
	line-height: var(--justco-section-title-leading);
	letter-spacing: var(--justco-section-title-tracking);
}

/* Card 1's title in gold, as its button (Yuxin, 24 Nov, NEU-545). */
.about-scene__card--1 .about-scene__title {
	color: var(--justco-gold);
}

/* Card 2's title is the card's solid midnight. JCP asked for the
   midnight-to-blue gradient to go (Yuxin, 24 Nov, NEU-545). */

.about-scene__text {
	margin: 0;
	font-family: "EB Garamond", serif;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	color: color-mix(in srgb, var(--about-scene-card-ink) 90%, transparent);
}

/* The address, after Visit's pin. The pin is centred on the first line, not
   the whole address, when the address wraps. */
.about-scene__text--pin {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

/* The text's line-height is 1.3, so one line is 1.3em tall. */
.about-scene__pin {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: calc((1.3em - 16px) / 2);
	transform: translateY(0.5px);
}

/* Card 3's 16:9 image, the card's full width, 24px under the copy (with the
   copy's 10px gap), on a tint of the card's ink while it loads. */
/* One 16:9 photo on phones and tablets; on desktops (the four cards in a
   row), two squares side by side. The second isn't shown, so isn't
   loaded, below 1200px. */
.about-scene__figures {
	display: flex;
	align-self: stretch;
	gap: 10px;
	margin-top: 14px;
}

.about-scene__figure {
	flex: 1 1 0;
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: color-mix(in srgb, var(--about-scene-card-ink) 10%, transparent);
}

.about-scene__figure--desktop {
	display: none;
}

@media (min-width: 1200px) {
	.about-scene__figure {
		aspect-ratio: 1;
	}

	.about-scene__figure--desktop {
		display: block;
	}
}

.about-scene__figure picture {
	display: contents;
}

.about-scene__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Vintage film grain, a moving layer over the photo (the photo itself has
   none): a tile of fractal noise (an SVG feTurbulence, as light and dark
   grey) laid over it, that jumps to a new place about 12 times a second, with
   a faint flicker, as a projected film's grain does. It runs only while the
   card is open; with reduced motion it holds still. */
.about-scene__figure {
	position: relative;
}

.about-scene__figure::after {
	position: absolute;
	inset: -100%;
	content: "";
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2.4 0 0 0 -0.7 2.4 0 0 0 -0.7 2.4 0 0 0 -0.7 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.5;
	mix-blend-mode: overlay;
	pointer-events: none;
	animation:
		about-scene-grain 0.66s infinite,
		about-scene-flicker 0.18s infinite alternate;
	animation-play-state: paused;
}

.about-scene__card.is-current .about-scene__figure::after,
.about-scene:not(.is-staged) .about-scene__figure::after {
	animation-play-state: running;
}

/* Each frame holds, then cuts to the next (no sliding between them). */
@keyframes about-scene-grain {
	0% { transform: translate(0, 0); animation-timing-function: steps(1, end); }
	12.5% { transform: translate(-17%, 9%); animation-timing-function: steps(1, end); }
	25% { transform: translate(12%, -21%); animation-timing-function: steps(1, end); }
	37.5% { transform: translate(-26%, -7%); animation-timing-function: steps(1, end); }
	50% { transform: translate(19%, 16%); animation-timing-function: steps(1, end); }
	62.5% { transform: translate(-9%, 27%); animation-timing-function: steps(1, end); }
	75% { transform: translate(24%, -12%); animation-timing-function: steps(1, end); }
	87.5% { transform: translate(-21%, 19%); animation-timing-function: steps(1, end); }
	100% { transform: translate(0, 0); }
}

@keyframes about-scene-flicker {
	from { opacity: 0.42; }
	to { opacity: 0.58; }
}

@media (prefers-reduced-motion: reduce) {
	.about-scene__figure::after {
		animation: none;
	}
}

/* Card 1's Get Directions: the nav's Get in touch pill (style.css
   .site-nav__cta), in the card's own colours turned round so it shows on the
   walnut: dune with walnut text. The label rolls on hover, as the nav's does. */
.about-scene__action {
	margin: 0;
}

.about-scene__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 14px;
	border-radius: 1000px;
	/* Gold on card 1's walnut (Yuxin, 24 Nov, NEU-545). Cards 2 and 4 set their own. */
	background: var(--justco-gold);
	color: var(--color-walnut-brown);
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.about-scene__button {
		cursor: var(--justco-cursor-interactive, pointer);
	}
}

/* On phones, a little smaller and tighter, so the longest label (Explore the
   Directory) fits a card on screens 360px wide. */
@media (max-width: 767px) {
	.about-scene__button {
		padding: 0 12px;
		font-size: 13px;
		letter-spacing: 0.08em;
	}
}

.about-scene__button:is(:hover, :focus-visible) .site-nav__roll > span,
.about-scene__button:is(:hover, :focus-visible) .site-nav__roll::after {
	transform: translateY(-100%);
}

.about-scene__button:focus-visible {
	outline: 2px solid var(--justco-gold);
	outline-offset: 3px;
}

/* The arrow after a label whose link opens a new tab (Lucide's
   arrow-up-right): the arrow itself (the middle 10 of the icon's 24 units)
   about the label's cap height, its stroke as heavy as the bold letters, set
   off by the label's trailing letter-spacing and the icon's own margin. On hover it steps up and out a touch, toward where it goes. */
.about-scene__out {
	flex: none;
	width: 16px;
	height: 16px;
	margin-left: 1px;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-scene__button:is(:hover, :focus-visible) .about-scene__out {
	transform: translate(1.5px, -1.5px);
}

@media (prefers-reduced-motion: reduce) {
	.about-scene__out {
		transition: none;
	}
}

/* Phones: 14px (w-3.5, h-3.5). */
@media (max-width: 767px) {
	.about-scene__out {
		width: 14px;
		height: 14px;
	}
}

/* On card 2's powder blue, navy with powder-blue text, as the nav's pill is
   over the homepage's pale blue Live sky (style.css). */
.about-scene__card--2 .about-scene__button {
	background: var(--justco-navy);
	color: var(--color-powder-blue);
}

.about-scene__card--2 .about-scene__button:focus-visible {
	outline-color: var(--justco-navy);
}

/* On card 4's sand, walnut with sand text: card 1's colours turned round. */
.about-scene__card--4 .about-scene__button {
	background: var(--color-walnut-brown);
	color: #dcd1c3;
}

.about-scene__card--4 .about-scene__button:focus-visible {
	outline-color: var(--color-walnut-brown);
}

/* Card 2's arches under its copy: the site's arch (--justco-arc, ARC.svg's
   curve, style.css), as on the homepage brand cards, at 3:4, three in a row. */
.about-scene__media {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.about-scene__paragraphs {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 10px;
	min-width: 0;
}

/* Card 2's Explore the Directory, after its paragraphs: 20px below them, as
   card 1's Get Directions is. */
.about-scene__paragraphs > .about-scene__action {
	margin-top: 10px;
}

.about-scene__arches {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-self: stretch;
}

.about-scene__arch {
	position: relative;
	flex: 0 1 120px;
	/* The photos aren't links: the site's plain cursor, not the card's. */
	cursor: default;
	cursor: var(--justco-cursor-default, default);
	min-width: 0;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	-webkit-mask: var(--justco-arc) center top / 100% auto no-repeat;
	mask: var(--justco-arc) center top / 100% auto no-repeat;
}

.about-scene__arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The arches wait for the card: hidden while it's closed, then, once it has
   fully opened (the body's 0.1s delay + 0.7s), they rise in one after
   another. Closing, they go at once. Without the script (no .is-staged) they
   simply show. */
.about-scene.is-staged .about-scene__arch {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 200ms linear,
		transform 0s linear 200ms;
}

.about-scene.is-staged .about-scene__card.is-current .about-scene__arch {
	opacity: 1;
	transform: none;
	transition:
		opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: 800ms;
}

.about-scene.is-staged .about-scene__card.is-current .about-scene__arch:nth-child(2) {
	transition-delay: 920ms;
}

.about-scene.is-staged .about-scene__card.is-current .about-scene__arch:nth-child(3) {
	transition-delay: 1040ms;
}

@media (prefers-reduced-motion: reduce) {
	.about-scene.is-staged .about-scene__arch,
	.about-scene.is-staged .about-scene__card.is-current .about-scene__arch {
		transform: none;
	}
}

/* Card 4's photo stack, pinned to the card's top-right corner like a photo
   clipped to it: on desktops tilted and hanging over the card's top edge, so
   the title, copy and button keep their line and the card its height; below
   1200px (where the cards' row scrolls sideways, which would clip anything
   over the top) smaller, inside the corner. The box is the front photo's
   size; at rest, the others are turned a little behind it. (On desktops it
   overhangs by 12px, enough to read as clipped to the card.) Pointed at with a
   mouse (or tapped, or opened from the keyboard: .is-open, about-scene.js),
   the ones behind burst out round it in a ring, one after another,
   overshooting a touch as they land, the front one lifting. On desktops the
   ring opens up and to the left, into the scene above the cards (and clear
   of the screen's right edge); below 1200px, down and to the left, over the
   copy. */
.about-scene__card--4 {
	position: relative;
}

.about-scene__stack {
	--about-scene-stack-w: 80px;
	--about-scene-stack-h: 100px;
	--about-scene-stack-rx: 90px;
	--about-scene-stack-ry: 66px;
	/* Where the ring's middle is, from the stack's. */
	--about-scene-stack-dx: -46px;
	--about-scene-stack-dy: -128px;
	position: absolute;
	top: -12px;
	right: 12px;
	z-index: 1;
	display: block;
	width: var(--about-scene-stack-w);
	height: var(--about-scene-stack-h);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	rotate: 5deg;
	cursor: var(--justco-cursor-default, default);
	-webkit-tap-highlight-color: transparent;
}

/* Room beside the title for the stack, and the copy wrapping round its foot:
   an empty float at the top right of the paragraphs, as wide and as deep as
   the stack reaches into them, so only the lines beside it are shortened.
   (The paragraphs are a block here, not a flex column, for the float.) And
   on desktops the overhang shown. */
.about-scene__card--4 {
	/* As far as the stack reaches in, plus 16px of air. */
	--about-scene-room-w: 92px;
	--about-scene-room-h: 20px;
}

.about-scene__card--4 .about-scene__title {
	padding-right: 96px;
}

.about-scene__card--4 .about-scene__paragraphs {
	display: block;
}

.about-scene__card--4 .about-scene__paragraphs::before {
	content: "";
	float: right;
	width: var(--about-scene-room-w);
	height: var(--about-scene-room-h);
}

.about-scene__card--4 .about-scene__paragraphs > * + * {
	margin-top: 10px;
}

@media (min-width: 1200px) {
	.about-scene__card--4 {
		overflow: visible;
	}
}

/* On narrower desktops the card is narrower too, and beside an 80px stack
   "Singapore" no longer fits the first line, which then falls short. So
   there the photos are a little smaller, and the room for them with them. */
@media (min-width: 1200px) and (max-width: 1499px) {
	.about-scene__card--4 {
		--about-scene-room-w: 84px;
	}

	.about-scene__stack {
		--about-scene-stack-w: 72px;
		--about-scene-stack-h: 90px;
	}

	.about-scene__card--4 .about-scene__title {
		padding-right: 76px;
	}
}

@media (max-width: 1199px) {
	.about-scene__stack {
		--about-scene-stack-w: 56px;
		--about-scene-stack-h: 70px;
		--about-scene-stack-rx: 92px;
		--about-scene-stack-ry: 52px;
		--about-scene-stack-dx: -84px;
		--about-scene-stack-dy: 74px;
		top: 14px;
		right: 14px;
		rotate: 4deg;
	}

	.about-scene__card--4 {
		--about-scene-room-w: 74px;
		--about-scene-room-h: 20px;
	}

	.about-scene__card--4 .about-scene__title {
		padding-right: 74px;
	}
}

.about-scene__stack:focus-visible {
	outline: 2px solid var(--color-walnut-brown);
	outline-offset: 2px;
}

.about-scene__photo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--about-scene-stack-w);
	height: var(--about-scene-stack-h);
	margin: calc(var(--about-scene-stack-h) / -2) 0 0 calc(var(--about-scene-stack-w) / -2);
	overflow: hidden;
	border-radius: 8px;
	background: color-mix(in srgb, var(--color-walnut-brown) 12%, transparent);
	box-shadow:
		0 1px 2px rgba(76, 36, 9, 0.16),
		0 8px 16px -8px rgba(76, 36, 9, 0.45);
	transform: rotate(var(--rest));
	/* Back in, the last out first, briskly. */
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	transition-delay: calc((4 - var(--i)) * 18ms);
}

.about-scene__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-scene__stack.is-open .about-scene__photo {
	transform: translate(calc(var(--x) * var(--about-scene-stack-rx) + var(--about-scene-stack-dx)), calc(var(--y) * var(--about-scene-stack-ry) + var(--about-scene-stack-dy))) rotate(calc(var(--x) * 8deg - 5deg)) scale(0.86);
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition-delay: calc(var(--i) * 40ms);
}

.about-scene__stack.is-open .about-scene__photo--front {
	transform: scale(1.06);
}

@media (hover: hover) and (pointer: fine) {
	.about-scene__stack:hover .about-scene__photo {
		transform: translate(calc(var(--x) * var(--about-scene-stack-rx) + var(--about-scene-stack-dx)), calc(var(--y) * var(--about-scene-stack-ry) + var(--about-scene-stack-dy))) rotate(calc(var(--x) * 8deg - 5deg)) scale(0.86);
		transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
		transition-delay: calc(var(--i) * 40ms);
	}

	.about-scene__stack:hover .about-scene__photo--front {
		transform: scale(1.06);
	}
}

/* While the ring is out below 1200px, the card lets it spill past its edges
   (it clips only so the copy can close to nothing, which it isn't doing). */
.about-scene__card:has(.about-scene__stack.is-open) {
	overflow: visible;
}

@media (hover: hover) and (pointer: fine) {
	.about-scene__card:has(.about-scene__stack:hover) {
		overflow: visible;
	}
}

/* It waits for the card, as card 2's arches do: in once the card has opened,
   out at once as it closes. */
.about-scene.is-staged .about-scene__stack {
	visibility: hidden;
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 200ms linear,
		transform 0s linear 200ms,
		visibility 0s linear 200ms;
}

.about-scene.is-staged .about-scene__card.is-current .about-scene__stack {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition:
		opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0s;
	transition-delay: 800ms;
}

@media (prefers-reduced-motion: reduce) {
	.about-scene__photo,
	.about-scene__stack.is-open .about-scene__photo,
	.about-scene__stack:hover .about-scene__photo {
		transition-duration: 0.01ms;
		transition-delay: 0s;
	}

	.about-scene.is-staged .about-scene__stack,
	.about-scene.is-staged .about-scene__card.is-current .about-scene__stack {
		transform: none;
	}
}

/* The homepage arches' refraction (home-r3.css .home-r3__band): four rings
   of the same photo, the outer ones zoomed more, masked by the hero's ring
   SVGs. Only with a mouse, on hover: the rings fade in and settle outwards from
   the outermost in, and fade back in reverse. Touch screens show the plain
   photo. */
.about-scene__band {
	display: none;
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask: var(--about-scene-band) center / var(--about-scene-band-size) no-repeat;
	mask: var(--about-scene-band) center / var(--about-scene-band-size) no-repeat;
}

.about-scene__band img {
	transform: scale(var(--about-scene-band-zoom));
}

.about-scene__band--1 { --about-scene-band: url("../images/home-r3/hero-r3-band-1.svg"); --about-scene-band-size: 100% 100%; --about-scene-band-zoom: 1.27; }
.about-scene__band--2 { --about-scene-band: url("../images/home-r3/hero-r3-band-2.svg"); --about-scene-band-size: 94.357357% 95.820272%; --about-scene-band-zoom: 1.2025; }
.about-scene__band--3 { --about-scene-band: url("../images/home-r3/hero-r3-band-3.svg"); --about-scene-band-size: 88.714714% 91.640543%; --about-scene-band-zoom: 1.135; }
.about-scene__band--4 { --about-scene-band: url("../images/home-r3/hero-r3-band-4.svg"); --about-scene-band-size: 83.072092% 87.460815%; --about-scene-band-zoom: 1.0675; }

@supports (mask-image: url("")) or (-webkit-mask-image: url("")) {
	@media (hover: hover) and (pointer: fine) {
		.about-scene__band {
			display: block;
			opacity: 0;
			transform: scale(0.97);
			transition:
				opacity 380ms cubic-bezier(0.4, 0, 0.2, 1),
				transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
		}

		.about-scene__band--3 { transition-delay: 40ms; }
		.about-scene__band--2 { transition-delay: 80ms; }
		.about-scene__band--1 { transition-delay: 120ms; }

		.about-scene__arch:hover .about-scene__band {
			opacity: 1;
			transform: none;
			transition-duration: 520ms, 700ms;
		}

		.about-scene__arch:hover .about-scene__band--1 { transition-delay: 0ms; }
		.about-scene__arch:hover .about-scene__band--2 { transition-delay: 60ms; }
		.about-scene__arch:hover .about-scene__band--3 { transition-delay: 120ms; }
		.about-scene__arch:hover .about-scene__band--4 { transition-delay: 180ms; }
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
	.about-scene__band,
	.about-scene__arch:hover .about-scene__band {
		transform: none;
		transition: opacity 200ms linear;
		transition-delay: 0ms;
	}
}

@media (max-width: 1199px) {
	/* A row that scrolls sideways, each card most of the screen wide, and the
	   next one's title in view beside it. */
	.about-scene__cards {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 28px;
		scrollbar-width: none;
	}

	.about-scene__cards::-webkit-scrollbar {
		display: none;
	}

	.about-scene__card {
		flex: 0 0 min(440px, 82%);
		scroll-snap-align: start;
	}
}

@media (max-width: 767px) {
	.about-scene__cards {
		padding: 16px;
		scroll-padding-inline: 16px;
	}

	.about-scene__card--1 .about-scene__title {
		font-size: 20px;
	}

	.about-scene__title {
		font-size: 16px;
	}

	.about-scene__text {
		font-size: 17px;
	}
}

/* Pinned, the stage must also fill the screen once Safari's toolbars collapse
   on scrolling (iPhones and iPads), or the section's navy shows through below
   it. So, as with the homepage hero, it runs to the large viewport (100lvh),
   the extra height added to the cards' bottom padding: the cards keep their
   small-viewport places, and the strip below them sits under the toolbar until
   it collapses. The strip follows the toolbar actually showing (100dvh), so
   once it has collapsed the cards sit their 28px (16px) above the screen's
   foot rather than over an empty strip, which showed as a gap before the
   footer at the end of the scene. The camera frames the whole stage, leaving
   the cards' room as before. Where there are no collapsing toolbars
   (desktops), 100lvh is 100dvh and nothing changes. After every rule that
   sets the cards' padding. */
@supports (height: 100lvh) {
	.about-scene__stage {
		height: calc(100lvh - var(--about-scene-bar, 0px));
	}

	.about-scene__cards {
		padding-bottom: calc(28px + 100lvh - 100dvh);
	}

	@media (max-width: 767px) {
		.about-scene__cards {
			padding-bottom: calc(16px + 100lvh - 100dvh);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-scene__card,
	.about-scene.is-staged .about-scene__card {
		transform: none !important;
	}

	.about-scene__body {
		transition: none !important;
	}
}
