/*
 * Home page: the AIRGLOW 2027 launch block.
 *
 * Only the sections in template-parts/home/airglow-launch.php. Everything is
 * under .uha-, so nothing here can reach the rest of the home page, which keeps
 * style-2026-lp.css exactly as it is.
 *
 * The collection page's own stylesheet is deliberately not reused: it is 33 KB
 * with its own fonts and reset, written for a standalone page.
 */

.uha-hero,
.uha-claims,
.uha-range,
.uha-film,
.uha-craft,
.uha-cta {
	--uha-ink: #0b0b0c;
	--uha-paper: #ffffff;
	--uha-muted: #6d7177;
	--uha-line: #e4e6e9;
	--uha-signal: #0e8fcc;
	box-sizing: border-box;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uha-hero *,
.uha-claims *,
.uha-range *,
.uha-film *,
.uha-craft *,
.uha-cta * {
	box-sizing: inherit;
}

/*
 * The theme's own column, read from the theme's own variables rather than
 * copied as numbers: .ugs-container (style-header-footer.css) is
 * --container wide with --gutter-m of padding, and --gutter-d from 1024px up.
 * Today that is 1440 / 24 / 40.
 *
 * The AIRGLOW block started on 1360 with a flat 24px, which left its headings
 * 40px right of "Everyday Performance" and the rest of the page on any screen
 * wider than 1440, and 16px right of it from 1024 up. Reading the variables
 * means every heading down the page starts on one line, and stays on it if
 * the theme ever changes the column.
 */
.uha-wrap {
	max-width: var(--container, 1440px);
	margin: 0 auto;
	padding: 0 var(--gutter-m, 24px);
}

/* ---------- shared type ---------- */

.uha-kicker {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

.uha-kicker--dark {
	color: var(--uha-muted);
}

.uha-h2 {
	margin: 0;
	font-size: clamp(26px, 3.4vw, 46px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--uha-ink);
}

.uha-h2--light {
	color: #fff;
}

.uha-lede {
	margin: 14px 0 0;
	max-width: 54ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--uha-muted);
}

.uha-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.uha-head__aside {
	display: flex;
	align-items: center;
	gap: 18px;
}

.uha-link {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--uha-ink);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	transition: color .22s ease;
}

.uha-link:hover {
	color: var(--uha-signal);
}

/* ---------- buttons ---------- */

.uha-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 26px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

/*
 * The theme sets `.ugs-2026-lp a { color: inherit }`, which is (0,2,0) and beat
 * a single class here: the solid buttons inherited the hero's white and came
 * out white on white. Each button rule below is written with three classes so
 * it wins on specificity rather than on load order or !important.
 */
.uha-hero .uha-btn.uha-btn--solid,
.uha-cta .uha-btn.uha-btn--solid {
	background: #fff;
	color: #0b0b0c;
}

.uha-hero .uha-btn.uha-btn--solid:hover,
.uha-cta .uha-btn.uha-btn--solid:hover {
	background: var(--uha-signal);
	color: #fff;
}

.uha-hero .uha-btn.uha-btn--ghost,
.uha-cta .uha-btn.uha-btn--ghost {
	border-color: rgba(255, 255, 255, .6);
	color: #fff;
}

.uha-hero .uha-btn.uha-btn--ghost:hover,
.uha-cta .uha-btn.uha-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

/* ---------- 1. hero ---------- */

.uha-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(92vh, 860px);
	padding: 0 0 64px;
	background: #07070a;
	overflow: hidden;
}

.uha-hero__media,
.uha-hero__media picture,
.uha-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.uha-hero__media img {
	object-fit: cover;
	object-position: 50% 42%;
}

.uha-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 5, 8, .55) 0%, rgba(5, 5, 8, .15) 38%, rgba(5, 5, 8, .82) 100%);
}

.uha-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--container, 1440px);
	margin: 0 auto;
	padding: 0 var(--gutter-m, 24px);
	color: #fff;
}

/*
 * The wider gutter from 1024px up, same breakpoint and same variable the
 * theme's own .ugs-container uses. It sits here, after both rules it changes,
 * because .uha-wrap and .uha-hero__inner are single classes like the
 * selectors in it: equal weight, so document order decides which one wins.
 */
@media (min-width: 1024px) {

	.uha-wrap,
	.uha-hero__inner {
		padding: 0 var(--gutter-d, 40px);
	}
}

.uha-hero__title {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* The AIRGLOW wordmark, written exactly as on /airglow/ (3 Dec 2026, Dinesh):
   "AIR" in Space Grotesk 500, "GLOW" in the Doto dot face with the collection's
   iridescent gradient. Same fonts, same --iri stops as css/airglow-2027.css, which
   this page does not load, so the two faces are declared here. Only these two
   weights are pulled in (13 KB + 4 KB), and only on this page. */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../font/airglow/space-grotesk-latin-500-normal.woff2) format("woff2");
}

@font-face {
	font-family: "Doto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../font/airglow/doto-latin-700-normal.woff2) format("woff2");
}

.uha-wordmark {
	font-family: "Space Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
	font-size: clamp(52px, 9vw, 128px);
	line-height: .86;
	font-weight: 500;
	letter-spacing: -.045em;
	text-transform: uppercase;
	color: #f4f5f7;
}

.uha-wordmark span {
	font-family: "Doto", "JetBrains Mono", ui-monospace, monospace;
	font-weight: 700;
	letter-spacing: -.01em;
	background: linear-gradient(90deg, #6c45c9 0%, #8a6cf0 28%, #7fb6e8 52%, #4fb79a 76%, #1f5c66 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.uha-hero__line {
	font-size: clamp(17px, 2.1vw, 26px);
	font-weight: 400;
	letter-spacing: -.01em;
	color: rgba(255, 255, 255, .9);
}

.uha-hero__sub {
	margin: 0 0 26px;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .72);
}

.uha-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 38px;
}

.uha-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	margin: 0;
	padding: 22px 0 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.uha-hero__facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.uha-hero__facts strong {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.uha-hero__facts span {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}

.uha-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 18px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 14px;
}

.uha-hero__scroll span {
	position: absolute;
	left: 50%;
	top: 9px;
	width: 3px;
	height: 7px;
	margin-left: -1.5px;
	background: #fff;
	border-radius: 2px;
	animation: uhaScroll 1.8s ease-in-out infinite;
}

@keyframes uhaScroll {
	0%, 100% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(13px); opacity: .2; }
}

/* ---------- shared horizontal scroller ---------- */

/*
 * The strips run the full width of the window and stay that way: the inset is
 * only here so a card's title and caption are never cut off against the edge
 * of the screen. Keep it small and FIXED. Tying it to the 1360px content
 * column was tried and reverted: on a 2500px display it worked out at 594px
 * and pushed the whole strip into the middle of the window.
 *
 * scroll-padding-inline matters as much as padding here. With scroll-snap-type
 * and scroll-snap-align: start, the browser snaps a card's edge to the start of
 * the SNAPPORT, which ignores ordinary padding: the strip settled at
 * scrollLeft = 24 on load, cancelling the inset and putting the first card's
 * title hard against x = 0. Giving the snapport the same inset makes the two
 * agree.
 */
.uha-scroller {
	--uha-inset: 20px;
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--uha-inset);
	scroll-behavior: smooth;
	padding: 4px var(--uha-inset) 26px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.uha-scroller::-webkit-scrollbar {
	height: 3px;
}

.uha-scroller::-webkit-scrollbar-thumb {
	background: var(--uha-line);
}

.uha-scroller > * {
	scroll-snap-align: start;
	flex: 0 0 auto;
}

.uha-scroller:focus-visible {
	outline: 2px solid var(--uha-signal);
	outline-offset: 2px;
}

.uha-scroller__nav {
	display: flex;
	gap: 8px;
}

.uha-scroller__btn {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 15px;
	background: transparent;
	border: 1px solid var(--uha-line);
	color: var(--uha-ink);
	cursor: pointer;
	transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

.uha-scroller__btn:hover {
	background: var(--uha-ink);
	border-color: var(--uha-ink);
	color: #fff;
}

.uha-scroller__btn[disabled] {
	opacity: .3;
	cursor: default;
}

/* ---------- 2. hold it to the light ---------- */

.uha-claims {
	padding: 86px 0 34px;
	background: var(--uha-paper);
}

.uha-real {
	width: min(78vw, 420px);
	margin: 0;
}

.uha-real__media {
	overflow: hidden;
	background: #f2f3f5;
}

.uha-real__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .5s ease;
}

.uha-real:hover .uha-real__media img {
	transform: scale(1.04);
}

.uha-real__title {
	margin: 16px 0 6px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--uha-ink);
}

.uha-real__line {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--uha-muted);
}

/* ---------- 3. the range ---------- */

.uha-range {
	padding: 70px 0 20px;
	background: var(--uha-paper);
}

.uha-card {
	width: min(62vw, 300px);
}

.uha-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.uha-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #f2f3f5;
	overflow: hidden;
}

.uha-card__pic,
.uha-card__pic img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.uha-card__pic img {
	object-fit: cover;
}

.uha-card__pic--back {
	opacity: 0;
	transition: opacity .35s ease;
}

.uha-card__link:hover .uha-card__pic--back,
.uha-card__link:focus-visible .uha-card__pic--back {
	opacity: 1;
}

.uha-card__cat {
	margin: 14px 0 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--uha-muted);
}

.uha-card__name {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--uha-ink);
}

.uha-card__meta {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
	font-size: 13px;
}

.uha-card__price {
	font-weight: 800;
	color: var(--uha-ink);
}

.uha-card__price del {
	font-weight: 400;
	opacity: .5;
}

.uha-card__soon {
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: 11px;
	color: var(--uha-signal);
}

.uha-card__wt {
	font-size: 11px;
	color: var(--uha-muted);
}

.uha-card--all .uha-card__link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	height: 100%;
	min-height: 320px;
	padding: 26px;
	background: var(--uha-ink);
	color: #fff;
	transition: background-color .22s ease;
}

.uha-card--all .uha-card__link:hover {
	background: var(--uha-signal);
}

.uha-card__allnum {
	font-size: 54px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.04em;
}

.uha-card__alltext {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.uha-card__arrow {
	font-size: 20px;
}

/* ---------- 4. film ---------- */

.uha-film {
	padding: 78px 0 86px;
	background: #07070a;
	color: #fff;
	text-align: center;
}

.uha-film .uha-wrap {
	margin-bottom: 34px;
}

.uha-film__frame {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.uha-film .vbox {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.uha-film .vbox picture,
.uha-film .vbox img,
.uha-film video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uha-film .vbox .play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	transition: transform .25s ease, background-color .25s ease;
}

.uha-film .vbox:hover .play {
	transform: scale(1.08);
	background: #fff;
}

.uha-film .vbox .play i {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-left: 18px solid #0b0b0c;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
}

.uha-film .vbox .dur {
	position: absolute;
	right: 14px;
	bottom: 12px;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	background: rgba(0, 0, 0, .6);
	color: #fff;
}

/* ---------- 5. craft ---------- */

.uha-craft {
	padding: 78px 0 24px;
	background: #f6f7f8;
}

.uha-detail {
	width: min(72vw, 360px);
	margin: 0;
}

.uha-detail picture,
.uha-detail img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Each close-up links to the piece it is a detail of. The picture is the link;
 * the caption repeats it so the words are clickable too. No underline and no
 * colour change: these read as photographs, not as links, and the hover is
 * what says they are one.
 */
.uha-detail__link {
	display: block;
	text-decoration: none;
	color: inherit;
	/* Clips the hover zoom below, or the picture grows out of its own box and
	   over the next one in the strip. */
	overflow: hidden;
}

.uha-detail__link img {
	transition: opacity .25s ease, transform .4s ease;
}

.uha-detail__link:hover img,
.uha-detail__link:focus-visible img {
	opacity: .92;
	transform: scale(1.015);
}

.uha-detail__link:focus-visible {
	outline: 2px solid var(--uha-ink);
	outline-offset: 3px;
}

.uha-detail figcaption {
	margin-top: 12px;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--uha-muted);
}

.uha-detail figcaption a {
	color: inherit;
	text-decoration: none;
}

.uha-detail figcaption a:hover {
	color: var(--uha-ink);
}

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

	.uha-detail__link img {
		transition: none;
	}

	.uha-detail__link:hover img,
	.uha-detail__link:focus-visible img {
		transform: none;
	}
}

/* ---------- 6. closing CTA ---------- */

.uha-cta {
	padding: 92px 0;
	background: #0b0b0c;
	color: #fff;
	text-align: center;
}

.uha-cta__line {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.uha-cta__sub {
	margin: 16px auto 28px;
	max-width: 56ch;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .7);
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* ---------- phones ---------- */

@media (max-width: 700px) {
	.uha-hero {
		min-height: 88vh;
		padding-bottom: 54px;
	}

	.uha-hero__facts {
		gap: 12px 26px;
	}

	/*
	 * The four facts wrap to two rows on a phone, which puts the bottom row
	 * under the scroll chevron. Nobody needs to be told a phone scrolls, so
	 * the chevron goes rather than the facts.
	 */
	.uha-hero__scroll {
		display: none;
	}

	.uha-hero__facts strong {
		font-size: 18px;
	}

	.uha-hero__cta .uha-btn {
		flex: 1 1 calc(50% - 6px);
		padding: 0 14px;
	}

	.uha-claims,
	.uha-range,
	.uha-craft {
		padding-top: 58px;
	}

	.uha-head__aside .uha-scroller__nav {
		display: none;
	}

	.uha-film,
	.uha-cta {
		padding: 58px 0;
	}
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.uha-hero__scroll span {
		animation: none;
	}

	.uha-scroller {
		scroll-behavior: auto;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.uha-real__media img,
	.uha-card__pic--back {
		transition: none;
	}
}

/* ==========================================================================
   The header, sitting on the hero
   --------------------------------------------------------------------------
   Added by the body class `uha-on-hero`, which homepage-airglow-lp.php puts
   on this page only. Three jobs:

     1. let the hero run to the very top of the window, behind the fixed
        header and topbar, instead of starting below them;
     2. make the header and topbar transparent while the hero is under them;
     3. turn the logo, the icons and the text white so they read on the photo.

   None of it applies once the header picks up `is-scrolled`: past the hero it
   goes back to the theme's white bar with dark icons, untouched.
   ========================================================================== */

/*
 * old-style.css holds `body .ugs-wrapper main#ugs-main { padding-top: 70px }`
 * to clear the fixed bars. That is an ID selector, so the override has to
 * carry the id too, not just the body class.
 */
body.uha-on-hero .ugs-wrapper main#ugs-main,
body.uha-on-hero .ugs-main {
	padding-top: 0;
}

.uha-on-hero .ugs-header:not(.is-scrolled),
.uha-on-hero .ugs-topbar:not(.is-hidden) {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

/*
 * A soft wash under the two bars. Without it a pale patch of the photograph
 * can leave the icons unreadable, and the hero's own scrim starts lower.
 */
.uha-on-hero .ugs-header:not(.is-scrolled)::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -40px;
	bottom: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(5, 5, 8, .55) 0%, rgba(5, 5, 8, .28) 55%, rgba(5, 5, 8, 0) 100%);
}

.uha-on-hero .ugs-header:not(.is-scrolled) > * {
	position: relative;
	z-index: 1;
}

/* The icons draw with `stroke="currentColor"`, so colour carries them. */
.uha-on-hero .ugs-header:not(.is-scrolled),
.uha-on-hero .ugs-header:not(.is-scrolled) a,
.uha-on-hero .ugs-header:not(.is-scrolled) button,
.uha-on-hero .ugs-header:not(.is-scrolled) .ugs-txtbtn,
.uha-on-hero .ugs-header:not(.is-scrolled) .ugs-iconbtn,
.uha-on-hero .ugs-topbar:not(.is-hidden),
.uha-on-hero .ugs-topbar:not(.is-hidden) a {
	color: #fff;
}

.uha-on-hero .ugs-header:not(.is-scrolled) svg {
	stroke: currentColor;
}

/*
 * The wordmark is a black PNG. The theme ships a white one at the same size,
 * so swap it; the filter is there for anything that ignores `content`, and it
 * leaves the white file white, so the two cannot fight.
 */
.uha-on-hero .ugs-header:not(.is-scrolled) .ugs-logo__img {
	content: url("../images/UGLOW-LOGO-WHITE.png");
	filter: brightness(0) invert(1);
}

/* The cart count sits in a filled pill; keep it legible on the photograph. */
.uha-on-hero .ugs-header:not(.is-scrolled) .ugs-cart__count {
	background: #fff;
	color: #0b0b0c;
}

/* The hero now starts at y=0, so its content needs to clear the two bars. */
.uha-on-hero .uha-hero__inner {
	padding-top: 96px;
}

@media (max-width: 700px) {
	.uha-on-hero .uha-hero__inner {
		padding-top: 76px;
	}
}

/* ==========================================================================
   The backlit strip on very wide screens
   --------------------------------------------------------------------------
   This applies to .uha-claims ONLY. The range and the craft strips stay
   full-bleed at every width; Dinesh confirmed those read correctly as they
   are, so nothing here touches them.

   The backlit strip is fine up to 1600px too. Past that it caps and centres,
   so there is equal space either side instead of one long run of pictures.

   The cap is 1600, Dinesh's own figure, chosen on 2 Dec over the 1440 of the
   page's text column. It means the strip is 80px wider than its heading on
   each side, so the first picture starts a little outside the first letter;
   that is his call, and it reads as a wider band of pictures under a heading
   rather than one boxed column. To put the two back on one column, this is
   var(--container) instead.

   The inset below stays on the page's gutter so the gap inside the band
   matches the page's own margin.

   max-width on the scroller is what does it, not padding. Padding alone moves
   where the cards START but the track still fills the window, so the cards
   run off the right edge and the block never reads as centred.
   ========================================================================== */

@media (min-width: 1600px) {

	.uha-claims .uha-scroller {
		max-width: 1600px;
		margin-inline: auto;
		--uha-inset: var(--gutter-d, 40px);
	}
}

/* ==========================================================================
   "The edit. For everyone." — the category cards, two to a row
   --------------------------------------------------------------------------
   Dinesh, 2 Dec 2026: two per row, bigger pictures, something more interesting
   and more to click. The old grid was four across, so each card was about
   320px wide on a 1440 screen and the picture read as a thumbnail.

   Everything here is scoped to .ugs-catgrid--edit, which only this template
   puts on the grid. The base .ugs-catcard rules live in style-2026-lp.css and
   are shared with the other landing page, so they are left alone.

   On a desktop the cards are 4/5, the exact ratio of the source pictures, so
   nothing is cropped and Romain's compositions arrive whole. Phones keep two
   columns at 3/4, where a single column of four would be a very long scroll;
   that crop is 6% off the height, taken from --cat-focus.
   ========================================================================== */

.ugs-catgrid--edit {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.ugs-catgrid--edit .ugs-catcard {
	aspect-ratio: 3/4;
	/* No transform on hover: the stagger below is a transform and the two
	   would fight. The shadow does the lifting instead. */
	transition: box-shadow .45s var(--uha-ease, ease);
}

.ugs-catgrid--edit .ugs-catcard:hover {
	box-shadow: 0 20px 54px rgba(0, 0, 0, .22);
}

.ugs-catgrid--edit .ugs-catcard:focus-visible {
	outline: 2px solid #0b0b0c;
	outline-offset: 4px;
}

/* <picture> is not a replaced element, so it needs the box itself. */
.ugs-catgrid--edit .ugs-catcard__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.ugs-catgrid--edit .ugs-catcard__media img {
	object-position: var(--cat-focus, 50% 40%);
}

/*
 * A deeper, later gradient than the shared one: the cards are much taller now,
 * so the fade can start lower and still leave the name and the button legible.
 */
.ugs-catgrid--edit .ugs-catcard::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .12) 58%, rgba(0, 0, 0, .8) 100%);
}

/* The number, as a chip in the top corner instead of a line above the name. */
.ugs-catgrid--edit .ugs-catcard__chip {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 7px 11px;
	font-family: "Lato", sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(10, 10, 12, .5);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ugs-catgrid--edit .ugs-catcard__cap {
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
}

.ugs-catgrid--edit .ugs-catcard__name {
	font-size: clamp(20px, 1.5vw + 12px, 38px);
	line-height: 1.04;
}

/*
 * The click target Dinesh asked for: a button, not a 36px arrow box.
 *
 * On a phone the card is about 158px wide and a bordered pill fills nearly all
 * of it, so there it is an underlined line of text instead. The whole card is
 * the link either way; this only says so.
 */
.ugs-catgrid--edit .ugs-catcard__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Lato", sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .7);
	padding-bottom: 4px;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.ugs-catgrid--edit .ugs-catcard:hover .ugs-catcard__go,
.ugs-catgrid--edit .ugs-catcard:focus-visible .ugs-catcard__go {
	border-color: #fff;
}

@media (hover: hover) and (min-width: 768px) {

	.ugs-catgrid--edit .ugs-catcard:hover .ugs-catcard__go,
	.ugs-catgrid--edit .ugs-catcard:focus-visible .ugs-catcard__go {
		background: #fff;
		color: #0b0b0c;
		text-shadow: none;
	}
}

@media (min-width: 768px) {

	.ugs-catgrid--edit {
		gap: 28px;
	}

	.ugs-catgrid--edit .ugs-catcard {
		/* 4/5 is the source ratio, so nothing is cropped. */
		aspect-ratio: 4/5;
	}

	.ugs-catgrid--edit .ugs-catcard__chip {
		top: 22px;
		left: 22px;
		padding: 9px 14px;
		font-size: 11px;
	}

	.ugs-catgrid--edit .ugs-catcard__cap {
		gap: 18px;
		padding: 30px;
	}

	.ugs-catgrid--edit .ugs-catcard__go {
		gap: 10px;
		padding: 13px 22px;
		border: 1px solid rgba(255, 255, 255, .6);
		font-size: 12px;
		letter-spacing: .14em;
	}
}

/*
 * The stagger. The right-hand column drops half a gap, which is what stops two
 * big squares reading as a table. The grid gets the same amount of padding at
 * the bottom so the last card does not hang over what follows.
 */
@media (min-width: 1024px) {

	.ugs-catgrid--edit .ugs-catcard:nth-child(2n) {
		transform: translateY(56px);
	}

	.ugs-catgrid--edit {
		padding-bottom: 56px;
	}
}

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

	.ugs-catgrid--edit .ugs-catcard__media img,
	.ugs-catgrid--edit .ugs-catcard:hover .ugs-catcard__media img {
		transition: none;
		transform: none;
	}
}
