/* ===========================================================================
 * HOME PAGE
 *
 * The opening band is the reference for every other page: a light building
 * display stand, the product as the one visual centre, and one deep-teal
 * action. Everything here reads from the tokens in style.css — no literal
 * colour belongs in this file.
 *
 * The opening band is built in layers and each layer is moved separately by
 * hero.js. Nothing about that is written here beyond the states a layer can
 * be in (.is-current, .is-leaving, .is-entering), because the band also has
 * to be complete with the script absent.
 * ======================================================================== */

/* ---------------------------------------------------------------------------
 * 1. The opening band
 *
 * Layers, from the back forwards:
 *   .hero-backs      one backdrop per slide, crossfading on its own clock
 *   .hero-copy       one text group per slide (title, description, points)
 *   .hero-products   one product per slide, each with its own floor shadow
 *   .hero-controls   the range picker, the progress read-out and pause
 *
 * The controls and the actions never move, because they sit outside the
 * layers that animate.
 * ------------------------------------------------------------------------ */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
	isolation: isolate;
}

/* A pale wash at the top and a whisper of sand at the foot keep the band from
   reading as one flat rectangle without introducing a second colour. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		linear-gradient(to bottom, var(--surface) 0%, transparent 42%),
		radial-gradient(120% 80% at 78% 86%, var(--sand) 0%, transparent 62%);
	pointer-events: none;
}

/* The engineer's grid — the drawing-sheet note that carries through the site,
   kept very quiet so it never competes with the product. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 6rem 6rem;
	opacity: 0.5;
	mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
	pointer-events: none;
}

/* ---------------------------------------------------------------------------
 * 2. Backdrop layer
 * ------------------------------------------------------------------------ */

.hero-backs {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero-back {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 900ms cubic-bezier(0.33, 0.5, 0.25, 1);
}

.hero-back.is-current {
	opacity: 1;
}

/* Only a slight change in tone and light between the two slides: enough that
   the band feels alive as it changes, never enough to distract from the
   product standing on it. */
.hero-back[data-glow="soft"] {
	background: radial-gradient(58% 52% at 70% 58%, var(--accent-soft) 0%, transparent 72%);
}

.hero-back[data-glow="deep"] {
	background: radial-gradient(58% 52% at 70% 58%, #DDEAE6 0%, transparent 72%);
}

/* Two architectural rules and one faint orbit: the geometry that makes the
   band read as a measured drawing rather than an empty block. */
.hero-rule {
	position: absolute;
	background: var(--line);
	opacity: 0.85;
}

.hero-rule--v {
	top: 12%;
	bottom: 12%;
	left: 42%;
	width: 1px;
}

.hero-rule--h {
	left: 0;
	right: 0;
	bottom: 26%;
	height: 1px;
}

.hero-orbit {
	position: absolute;
	right: 6%;
	bottom: 14%;
	width: min(34rem, 46vw);
	aspect-ratio: 61 / 30;
	border: 1px solid var(--line);
	border-radius: 50%;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * 3. The stage: words left, product right
 * ------------------------------------------------------------------------ */

.hero-stage {
	position: relative;
	display: grid;
	gap: var(--space-lg);
	align-content: center;
	padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.75rem, 6vw, 4rem);
	min-height: clamp(34rem, 78vh, 46rem);
}

.hero-copy {
	display: grid;
	gap: var(--space-sm);
	align-content: center;
	max-width: 34rem;
}

.hero-kicker {
	margin: 0;
	color: var(--accent-deep);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: var(--lh-label);
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * 4. Text layer
 *
 * The wrapper keeps its full height whatever slide is showing, so switching
 * never nudges the band or the controls underneath. Only the outgoing group
 * and the incoming group are ever painted.
 * ------------------------------------------------------------------------ */

.hero-slides {
	position: relative;
	display: grid;
}

.hero-slide {
	grid-area: 1 / 1;
	margin: 0;
}

.hero-slide[hidden] {
	display: none;
}

.hero-title {
	margin: 0 0 var(--space-2xs);
	color: var(--ink);
	font-size: clamp(2.1rem, 3.4vw + 1rem, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-wrap: balance;
}

.hero-lede {
	margin: 0;
	max-width: 44ch;
	color: var(--ink-soft);
	font-size: clamp(1rem, 0.4vw + 0.95rem, 1.1875rem);
	line-height: var(--lh-lead);
}

/* The three information lines. A tick in the accent colour, one short line
   each, so they can be read at a glance. */
.hero-points {
	display: grid;
	gap: var(--space-2xs);
	margin: var(--space-xs) 0 0;
	padding: 0;
	list-style: none;
}

.hero-point {
	position: relative;
	padding-left: 1.5rem;
	color: var(--ink);
	font-size: var(--text-small);
	line-height: var(--lh-small);
}

.hero-point::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: 50%;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-xs);
}

/* ---------------------------------------------------------------------------
 * 5. Product layer
 *
 * The frame is a fixed box. Every product is drawn inside it with
 * object-fit: contain, so no cut-out is ever cropped and neither product can
 * change the height of the band when the carousel moves between them.
 * ------------------------------------------------------------------------ */

.hero-products {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(16rem, 34vw, 26rem);
}

.hero-product {
	position: relative;
	grid-area: 1 / 1;
	display: grid;
	place-items: center;
	margin: 0;
}

.hero-product[hidden] {
	display: none;
}

/* A faint outline on the floor showing the footprint the product stands on.
   It is what makes the band read as a display stand, and it stays put while
   the product above it changes. */
.hero-product__frame {
	position: absolute;
	left: 6%;
	right: 6%;
	bottom: 6%;
	height: 46%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(to bottom, transparent, var(--accent-soft));
	opacity: 0.55;
}

.hero-shot {
	position: relative;
	display: block;
	width: 100%;
	max-width: 36rem;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	object-position: center bottom;
}

/* The soft floor shadow. A sibling of the image, not a child, so it can fade
   on the product clock without the words riding along with it. */
.hero-product__shadow {
	position: absolute;
	left: 14%;
	right: 14%;
	bottom: 4%;
	height: 2.25rem;
	background: radial-gradient(50% 50% at 50% 50%, rgba(23, 43, 43, 0.22) 0%, transparent 72%);
	filter: blur(2px);
}

/* Names the file to supply. Not shown to visitors — a note to the owner
   sitting inside the box the real image will occupy. */
.hero-product__note {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1.75rem;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * 6. Controls
 *
 * Two named entries and a progress read-out. Deliberately not bare dots: a
 * buyer looking for the capsule range should be able to read the words.
 * ------------------------------------------------------------------------ */

.hero-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding-top: var(--space-md);
	border-top: var(--hairline);
}

.hero-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-2xs);
	flex: 1 1 22rem;
	max-width: 34rem;
}

.hero-tab {
	display: grid;
	gap: var(--space-3xs);
	min-height: var(--tap);
	padding: var(--space-xs) var(--space-sm) var(--space-sm);
	background: var(--surface);
	border: var(--hairline);
	border-radius: var(--radius);
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.hero-tab:hover {
	border-color: var(--edge);
}

.hero-tab.is-current {
	border-color: var(--accent);
}

.hero-tab__num {
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	letter-spacing: 0.1em;
}

.hero-tab.is-current .hero-tab__num {
	color: var(--accent-deep);
}

.hero-tab__name {
	font-size: var(--text-small);
	font-weight: 600;
	line-height: var(--lh-small);
}

.hero-tab.is-current .hero-tab__name {
	color: var(--accent-deep);
}

/* The thin bar under each entry is that slide's own clock, so the pause and
   the wait are both visible rather than guessed at. */
.hero-tab__bar {
	display: block;
	height: 2px;
	margin-top: var(--space-3xs);
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
}

.hero-tab__bar i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left center;
}

.hero-meter {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.hero-progress {
	margin: 0;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: var(--text-small);
	letter-spacing: 0.08em;
}

.hero-progress__now {
	color: var(--ink);
	font-weight: 600;
}

.hero-play {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: 0 var(--space-sm);
	background: var(--surface);
	border: var(--hairline);
	border-radius: var(--radius);
	color: var(--ink);
	font: inherit;
	font-size: var(--text-small);
	cursor: pointer;
	transition: border-color 180ms ease;
}

.hero-play:hover {
	border-color: var(--edge);
}

/* Two small bars, turning into a triangle when the carousel is held. */
.hero-play__icon {
	position: relative;
	width: 0.65rem;
	height: 0.65rem;
	flex: none;
}

.hero-play__icon::before,
.hero-play__icon::after {
	content: "";
	position: absolute;
	background: var(--accent-deep);
}

.hero-play__icon::before {
	inset: 0 0.42rem 0 0;
}

.hero-play__icon::after {
	inset: 0 0 0 0.42rem;
}

.hero-play[aria-pressed="true"] .hero-play__icon::before {
	inset: 0;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hero-play[aria-pressed="true"] .hero-play__icon::after {
	display: none;
}

/* ---------------------------------------------------------------------------
 * 7. The one-time swipe hint
 * ------------------------------------------------------------------------ */

.hero-hint {
	position: absolute;
	left: 50%;
	bottom: 0.5rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	margin: 0;
	padding: var(--space-2xs) var(--space-sm);
	background: var(--surface);
	border: var(--hairline);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	color: var(--ink-soft);
	font-size: var(--text-label);
	line-height: var(--lh-label);
	transform: translateX(-50%);
	pointer-events: none;
}

.hero-hint[hidden] {
	display: none;
}

/* A small point travelling left and right, the direction the gesture goes. */
.hero-hint__finger {
	position: relative;
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	border-radius: 50%;
	border: 1px solid var(--accent);
	background: var(--accent-soft);
	animation: hero-hint 2.2s cubic-bezier(0.45, 0, 0.55, 1) 2;
}

@keyframes hero-hint {

	0%,
	100% {
		transform: translateX(-0.4rem);
	}

	50% {
		transform: translateX(0.4rem);
	}
}

/* ---------------------------------------------------------------------------
 * 8. Motion
 *
 * The outgoing layer keeps its place for the length of its own animation and
 * the incoming layer takes over once it has gone, so the two are never
 * painted on top of each other in a half-faded state. Directions flip on
 * “back”: a layer leaving to the right comes back in from the left.
 *
 * Durations: product 650–800 ms, backdrop 900 ms, words 350–450 ms, the three
 * information lines staggered 70–100 ms apart. All of it decelerates — no
 * bounce, no scaling, no flash.
 * ------------------------------------------------------------------------ */

@media ( prefers-reduced-motion: no-preference ) {

	/* --- words: a short lift and fade --------------------------------- */

	.js .hero-slide.is-leaving {
		animation: hero-copy-out 400ms cubic-bezier(0.4, 0, 0.3, 1) forwards;
	}

	.js .hero-slide.is-entering {
		animation: hero-copy-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	.js .hero-slide.is-entering .hero-title {
		animation: hero-line-in 400ms cubic-bezier(0.2, 0.7, 0.2, 1) 40ms backwards;
	}

	.js .hero-slide.is-entering .hero-lede {
		animation: hero-line-in 400ms cubic-bezier(0.2, 0.7, 0.2, 1) 130ms backwards;
	}

	.js .hero-slide.is-entering .hero-point {
		animation: hero-line-in 380ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
		animation-delay: calc(220ms + (var(--point, 0) * 85ms));
	}

	/* --- product: a sideways handover --------------------------------- */

	.js .hero-product.is-leaving {
		animation: hero-product-out 720ms cubic-bezier(0.33, 0.5, 0.25, 1) forwards;
	}

	.js .hero-product.is-entering {
		animation: hero-product-in 760ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	.js .hero-product.is-leaving .hero-product__shadow,
	.js .hero-product.is-entering .hero-product__shadow {
		animation: hero-shadow 760ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	/* The outline on the floor drifts a little the other way, which is what
	   gives the product its sense of standing on a surface rather than
	   sliding across the screen. */
	.js .hero-product.is-leaving .hero-product__frame,
	.js .hero-product.is-entering .hero-product__frame {
		animation: hero-frame 760ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
	}

	/* The first paint, before the carousel has taken over: the tone and the
	   product arrive together so the band is never seen empty. */
	.js .hero-back.is-current,
	.js .hero-product.is-current .hero-shot,
	.js .hero-product.is-current .hero-product__shadow {
		animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
	}

	.js .hero-kicker {
		opacity: 0;
		animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 60ms forwards;
	}
}

@keyframes hero-copy-out {

	to {
		opacity: 0;
		transform: translateY(-0.75rem);
	}
}

@keyframes hero-copy-in {

	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hero-line-in {

	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hero-product-out {

	from {
		opacity: 1;
		transform: translateX(0);
	}

	to {
		opacity: 0;
		transform: translateX(calc(var(--drift, 80px) * -1));
	}
}

@keyframes hero-product-in {

	from {
		opacity: 0;
		transform: translateX(var(--drift, 80px));
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hero-shadow {

	from {
		opacity: 0;
		transform: scaleX(0.72);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hero-frame {

	from {
		opacity: 0.55;
		transform: translateX(calc(var(--drift, 80px) * 0.16));
	}

	to {
		opacity: 0.55;
		transform: none;
	}
}

@keyframes hero-rise {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Each information line carries its own step. */
.hero-point:nth-child(1) {
	--point: 0;
}

.hero-point:nth-child(2) {
	--point: 1;
}

.hero-point:nth-child(3) {
	--point: 2;
}

/* Reduced motion: no autoplay (hero.js decides that too), no sideways travel,
   no stagger. The slides still change — they simply cross-fade. */
@media ( prefers-reduced-motion: reduce ) {

	.hero-back,
	.hero-slide,
	.hero-product,
	.hero-product__shadow,
	.hero-product__frame,
	.hero-kicker {
		animation: none !important;
		opacity: 1;
		transform: none;
		transition: opacity 220ms ease !important;
	}

	.hero-hint {
		display: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * 9. Buttons
 *
 * Two strengths only: the solid teal action, and a quiet outlined companion
 * that is visibly weaker so the pair never competes.
 * ------------------------------------------------------------------------ */

.button--solid {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--surface);
	letter-spacing: 0.04em;
}

.button--solid:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: var(--surface);
}

.button--quiet {
	background: transparent;
	border-color: var(--edge);
	color: var(--accent-deep);
	letter-spacing: 0.04em;
}

.button--quiet:hover {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-deep);
}

/* The dark statement bands keep their own pair: white text, no fill. */
.band--dark .button--quiet {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--on-night-strong);
}

.band--dark .button--quiet:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--on-night-strong);
	color: var(--on-night-strong);
}

.band--dark .button--solid {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-night-strong);
}

.band--dark .button--solid:hover {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: var(--on-night-strong);
}

/* ---------------------------------------------------------------------------
 * 10. Bands and their headings
 * ------------------------------------------------------------------------ */

.band {
	padding-block: var(--section-y);
}

.band--tint {
	background: var(--surface);
	border-block: var(--hairline);
}

.band--dark {
	position: relative;
	background: var(--night);
	color: var(--on-night);
}

.band--dark h2,
.band--dark h3 {
	color: var(--on-night-strong);
}

.band--dark .lede {
	color: var(--on-night);
}

.band--dark .band-kicker {
	color: var(--signal);
}

.band--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--night-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--night-grid) 1px, transparent 1px);
	background-size: 6rem 6rem;
	pointer-events: none;
}

.band--dark > .wrap {
	position: relative;
}

.band-head {
	max-width: var(--wrap-narrow);
	margin-bottom: var(--space-lg);
}

.band-head h2 {
	margin-bottom: var(--space-2xs);
}

.band-kicker {
	margin: 0 0 var(--space-2xs);
	color: var(--accent-deep);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: var(--lh-label);
	text-transform: uppercase;
}

.band-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

/* ---------------------------------------------------------------------------
 * 11. The product cards that carry a photograph
 * ------------------------------------------------------------------------ */

.range-grid {
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.card--media {
	padding: 0;
	overflow: hidden;
}

.card--media .card-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	padding: var(--space-md);
}

.card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--accent-soft);
	overflow: hidden;
}

.card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card--media:hover .card-media img {
	transform: scale(1.04);
}

.card-specs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	line-height: var(--lh-label);
}

/* ---------------------------------------------------------------------------
 * 12. Reasons and process
 * ------------------------------------------------------------------------ */

.reason-grid,
.process-grid {
	display: grid;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 640px ) {
	.reason-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( min-width: 1000px ) {
	.reason-grid,
	.process-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media ( min-width: 640px ) and ( max-width: 999px ) {
	.process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.reason,
.process-step {
	padding-top: var(--space-sm);
	border-top: 2px solid var(--accent);
}

.band--dark .process-step {
	border-top-color: var(--signal);
}

.reason h3,
.process-step h3 {
	margin: var(--space-2xs) 0 var(--space-2xs);
	font-size: var(--text-lead);
	line-height: var(--lh-small);
}

.reason p,
.process-step p {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--text-small);
	line-height: var(--lh-small);
}

.band--dark .process-step p {
	color: var(--on-night);
}

.reason-num,
.process-num {
	font-family: var(--font-mono);
	font-size: var(--text-label);
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--accent-deep);
}

.band--dark .process-num {
	color: var(--signal);
}

/* ---------------------------------------------------------------------------
 * 13. Certification badges
 * ------------------------------------------------------------------------ */

.badge-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--space-2xs);
	margin: 0 0 var(--space-md);
	padding: 0;
	list-style: none;
}

.badge {
	display: grid;
	gap: var(--space-3xs);
	padding: var(--space-sm) var(--space-md);
	background: var(--paper);
	border: var(--hairline);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
}

.badge strong {
	font-family: var(--font-mono);
	font-size: var(--text-small);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.badge span {
	color: var(--ink-soft);
	font-size: var(--text-label);
	line-height: var(--lh-label);
}

/* ---------------------------------------------------------------------------
 * 14. Closing band
 * ------------------------------------------------------------------------ */

.band--closing .band-closing__inner {
	display: grid;
	gap: var(--space-lg);
	align-items: center;
}

.band-closing__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

@media ( min-width: 900px ) {
	.band--closing .band-closing__inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.band-closing__actions {
		justify-content: flex-end;
	}
}

/* ---------------------------------------------------------------------------
 * 15. Scroll reveals
 *
 * Every reveal is opt-in: an element only animates once the script has marked
 * the document .js, so if the script never loads the page is simply still.
 * ------------------------------------------------------------------------ */

@media ( prefers-reduced-motion: no-preference ) {

	.js .reveal {
		opacity: 0;
		transform: translateY(1.5rem);
		transition:
			opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
			transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.js .reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* The stagger for anything marked .reveal inside a grid. */
.reveal[data-reveal-delay="1"] {
	transition-delay: 90ms;
}

.reveal[data-reveal-delay="2"] {
	transition-delay: 180ms;
}

.reveal[data-reveal-delay="3"] {
	transition-delay: 270ms;
}

.reveal[data-reveal-delay="4"] {
	transition-delay: 360ms;
}

.reveal[data-reveal-delay="5"] {
	transition-delay: 450ms;
}

@media ( prefers-reduced-motion: reduce ) {

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
 * 16. Wide screens: words left, product right
 * ------------------------------------------------------------------------ */

@media ( min-width: 900px ) {

	.hero-stage {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: center;
		column-gap: var(--space-xl);
	}

	.hero-copy {
		order: 1;
	}

	.hero-products {
		order: 2;
	}

	/* The controls span both columns, so they sit under the pair rather than
	   under one of them. */
	.hero-controls {
		grid-column: 1 / -1;
	}
}

/* On a phone the product sits under the words, so the band stays one column
   and nothing has to be re-ordered. */
@media ( max-width: 899px ) {

	.hero-controls {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-sm);
	}

	.hero-meter {
		justify-content: space-between;
	}

	.hero-product__note {
		bottom: -1.25rem;
	}
}

/* ---------------------------------------------------------------------------
 * 17. Small screens
 * ------------------------------------------------------------------------ */

@media ( max-width: 639px ) {

	.hero-stage {
		min-height: 0;
		padding-block: clamp(2rem, 8vw, 3rem) clamp(2.5rem, 9vw, 3.5rem);
	}

	.hero-title {
		font-size: clamp(1.85rem, 8.5vw, 2.5rem);
	}

	.hero-lede {
		max-width: 34ch;
	}

	.hero-actions .button {
		flex: 1 1 100%;
	}

	.band-closing__actions .button {
		flex: 1 1 100%;
	}

	.hero-tabs {
		grid-template-columns: 1fr;
	}

	.hero-rule--v,
	.hero-orbit {
		display: none;
	}
}
