/*
 * The place's scenes (template-parts/about-place.php): the place and its three
 * concepts by level on the R3 homepage, and Connectivity on About. On wide
 * screens each state rises over the last as you scroll (assets/js/about.js);
 * elsewhere they stack.
 */

/* Scroll progress, as on the homepage (home-r3.css): brand gold, outlined
   against the light and dark sections. */
.about-progress {
	position: fixed;
	z-index: 40;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(25, 36, 54, 0.3);
	pointer-events: none;
}

.about-progress__fill {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--justco-gold-deep);
	box-shadow: 0 0 0 1px rgba(76, 36, 9, 0.4);
	transform: scaleX(0);
	transform-origin: left center;
}

/* Every section here is dark, so the navbar is white and stays at the top. */
.about-nav {
	position: fixed;
	color: #fff;
}

.about-nav .site-nav__logo,
.about-nav .site-nav__list > a {
	color: #fff;
}

/* Desktop: a solid bar in the colour of the state under it, so the split frame
   never cuts through the logo (the client's note; about.js). Below 1024px the
   navbar is already a solid bar. */
@media (min-width: 1025px) {
	.about-nav::before {
		content: "";
		position: absolute;
		z-index: -1;
		inset: 0;
		/* Two colours split at the incoming panel's edge, which rises through the
		   bar with the panel (about.js); no transition, so it never eases. */
		background: linear-gradient(to bottom, var(--about-nav-bar-top, transparent) var(--about-nav-bar-split, 100%), var(--about-nav-bar-bottom, transparent) var(--about-nav-bar-split, 100%));
		pointer-events: none;
	}

	/* Over Connectivity, which scrolls on under the bar once the scene ends, the
	   bar fades into the section rather than cutting the copy and map off. */
	.about-nav.about-nav--olive {
		overflow: visible;
	}

	.about-nav.about-nav--olive::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		/* 32px, as the fades under the navbar on What's On and Visit. */
		height: 32px;
		background: linear-gradient(#91893b, rgba(145, 137, 59, 0));
		pointer-events: none;
	}

	/* Over the walnut intro, the brand guide's sand logo and links. The sand
	   has no token; it's Visit's arch and the day section's item copy. */
	.about-nav.about-nav--walnut .site-nav__logo,
	.about-nav.about-nav--walnut .site-nav__list > a {
		color: #d3bca7;
	}

	.about-nav.about-nav--navy .site-nav__logo,
	.about-nav.about-nav--navy .site-nav__list > a {
		color: var(--color-powder-blue);
	}
}

/* Over Connectivity, the walnut button's label takes the pale olive of the
   section's JustCo Place disc (about-connect-brand.svg). */
@media (min-width: 1025px) {
	.about-nav.about-nav--olive .site-nav__cta-wrap .site-nav__cta {
		color: #d4d2aa;
	}
}

/* Over Connectivity's olive, walnut, as its copy (about.js). */
.about-nav.about-nav--olive .site-nav__logo,
.about-nav.about-nav--olive .site-nav__list > a {
	color: var(--color-walnut-brown);
}

/* The current page's link sits back, as on the other pages. */
.about-nav .site-nav__list > a[aria-current="page"] {
	opacity: 0.5;
}

body.admin-bar .about-nav {
	top: 32px;
}

/* WordPress's admin bar is 46px tall up to 782px wide. */
@media (max-width: 782px) {
	body.admin-bar .about-nav {
		/* Following the bar as it scrolls away on phones (assets/js/nav.js). */
		top: var(--justco-admin-bar, 46px);
	}
}

/* Over the walnut place panel, Get in touch reverses so it doesn't sink into
   it; over the concepts it turns navy (about.js). Below 1024px it's already
   yellow (see the end of the file). */
@media (min-width: 1025px) {
	/* The brand guide's pairing: sand on walnut (about.js). */
	.about-nav .site-nav__cta-wrap .site-nav__cta--reversed {
		background: #d3bca7;
		color: var(--color-walnut-brown);
	}

	/* Over the concepts, the concepts' powder blue with navy text, so it
	   stands out on the navy bar (about.js). */
	.about-nav .site-nav__cta-wrap .site-nav__cta--navy {
		background: var(--color-powder-blue);
		color: var(--justco-navy);
	}
}

/* The homepage's navbar over the place and its concepts (about.js): the same
   solid bar, colours and button as About's, reaching only as far down as the
   scenes, so Work shows beneath it as they scroll away. */
@media (min-width: 1025px) {
	.site-nav--home::after {
		content: "";
		position: absolute;
		z-index: -1;
		top: 0;
		left: 0;
		right: 0;
		height: var(--about-nav-bar-end, 0px);
		background: linear-gradient(to bottom, var(--about-nav-bar-top, transparent) var(--about-nav-bar-split, 100%), var(--about-nav-bar-bottom, transparent) var(--about-nav-bar-split, 100%));
		pointer-events: none;
	}

	.site-nav--home.about-nav--walnut .site-nav__logo,
	.site-nav--home.about-nav--walnut .site-nav__list > a {
		color: #d3bca7;
	}

	.site-nav--home.about-nav--navy .site-nav__logo,
	.site-nav--home.about-nav--navy .site-nav__list > a {
		color: var(--color-powder-blue);
	}

	.site-nav--home .site-nav__cta-wrap .site-nav__cta--reversed {
		background: #d3bca7;
		color: var(--color-walnut-brown);
	}

	.site-nav--home .site-nav__cta-wrap .site-nav__cta--navy {
		background: var(--color-powder-blue);
		color: var(--justco-navy);
	}
}

/* Place / slide 2 (Figma 223:2519): equal-width panels in one full viewport. */
.about-place {
	position: relative;
}

.about-place__stage {
	position: relative;
}

.about-place__state {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	height: 100vh;
	min-height: 670px;
}

/* Progressive enhancement: without motion, both states remain in normal flow. */
.about-place--animated .about-place__stage {
	height: 100vh;
	overflow: hidden;
}

.about-place--animated .about-place__state {
	position: absolute;
	inset: 0;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.about-place--animated .about-place__state--levels,
.about-place--animated .about-place__state--connect {
	pointer-events: none;
}

/* The state in view takes pointers: the concepts, so their copy can be selected
   and inspected, and Connectivity, the top state, so its map can be dragged. */
.about-place--animated .about-place__state--levels:not([inert]),
.about-place--animated .about-place__state--connect:not([inert]) {
	pointer-events: auto;
}

.about-place__image {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.03);
}

.about-place__image img {
	/* Fills the photo's half (or its box when stacked), cropped to it. */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	/* The building's corner, as Figma frames it (the render placed 437px into
	   its 864px frame), whatever the panel's shape. */
	object-position: 59% center;
}

.about-place__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 47px 24px;
	overflow: hidden;
	background: var(--color-walnut-brown);
	color: #d4bca6;
}

/* Scroll prompt: a chevron bouncing at the foot of the first screen. It fades
   once the page moves (about.js) and only shows where the panel fills the
   screen; stacked, the page plainly carries on below. */
.about-place__panel {
	position: relative;
}

.about-place__scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	background: currentColor;
	-webkit-mask: var(--about-scroll-icon) center / contain no-repeat;
	mask: var(--about-scroll-icon) center / contain no-repeat;
	pointer-events: none;
	transition: opacity 400ms ease;
	animation: about-scroll-bounce 1.6s ease-in-out infinite;
}

.about-place__scroll.is-hidden {
	opacity: 0;
}

@keyframes about-scroll-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); }
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (max-height: 500px) {
	.about-place__scroll {
		display: none;
	}
}

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

.about-place__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 160px;
	width: 100%;
	max-width: 556px;
	text-align: center;
}

.about-place__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.about-place__title,
.about-place__location-title {
	margin: 0;
	font-family: "Sweet Sans Pro", sans-serif;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	/* Solid: no text on the site uses a gradient. */
	color: #f3ce7e;
}

.about-place__title {
	width: 100%;
	/* Breaks after LIFE, so "AND EVERYTHING BETWEEN" is the second line.
	   The first line needs 542px at 24px; see the small-laptop size below. */
	max-width: 560px;
	/* Two lines. */
	min-height: calc(2em * var(--justco-section-title-leading));
	font-size: var(--justco-section-title-size);
	line-height: var(--justco-section-title-leading);
	letter-spacing: var(--justco-section-title-tracking);
}

/* Small laptops: the panel is narrower than the 542px first line, so the
   size follows the panel (half the window, less its padding), from 20px at
   1025px to the usual 24px by about 1240px. The tracking is in em, so it
   scales too. Tablets and phones keep their own sizes. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.about-place__title {
		font-size: clamp(20px, calc((50vw - 56px) / 22.8), var(--justco-section-title-size));
	}
}

.about-place__description {
	width: 100%;
	max-width: 430px;
	margin: 0;
	font-family: "EB Garamond", serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.03em;
}

.about-place__location {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.about-place__location-title {
	font-size: 16px;
	letter-spacing: 1.92px;
}

.about-place__line {
	width: 1px;
	height: 40px;
	background: rgba(255, 255, 255, 0.4);
}

.about-place__address {
	width: 158px;
	max-width: 390px;
	min-height: 48px;
	margin: 0;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 17px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.4;
}

/* Integration / slide 3 (Figma 223:2557). */
.about-levels__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 47px 24px;
	overflow: hidden;
	background: #192436;
	color: #bed0d7;
}

.about-levels__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	width: 100%;
	max-width: 556px;
}

.about-levels__title {
	width: 100%;
	margin: 0;
	font-family: "Sweet Sans Pro", sans-serif;
	font-weight: 700;
	font-size: var(--justco-section-title-size);
	line-height: var(--justco-section-title-leading);
	letter-spacing: var(--justco-section-title-tracking);
	text-align: center;
	text-transform: uppercase;
	color: var(--color-powder-blue);
}

.about-levels__list {
	/* The client's reference (JCP-ABOUT.jpg) for the layout: a timeline down the
	   middle, each concept's copy and arch either side of its disc, swapping
	   sides each row. The reference isn't to scale, so the sizes follow the list's
	   before it: 200px arches (w-50), 48px between rows. The discs are 40px,
	   as the homepage's Work, Live and Connect lists. */
	--concept-arch: 12.5rem;
	--concept-disc: 2.5rem;
	--concept-gap: 48px;
	display: flex;
	flex-direction: column;
	gap: var(--concept-gap);
	width: 100%;
	max-width: 556px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-levels__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--concept-disc) minmax(0, 1fr);
	align-items: center;
	column-gap: 24px;
}

/* The dotted line, from this disc's centre to the next one's; the discs sit on it. */
.about-levels__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: calc(100% + var(--concept-gap));
	background: radial-gradient(circle, var(--color-powder-blue) 1.5px, transparent 2px) center top / 4px 12px repeat-y;
	transform: translateX(-50%);
	pointer-events: none;
}

/* Desktop: the whole list at 80%, type, arches, discs, gaps and the dotted
   line together (200px arches show at 160px). */
@media (min-width: 1025px) and (min-height: 900px) {
	.about-levels__list {
		zoom: 0.8;
		/* 60px apart on screen. */
		--concept-gap: 75px;
		/* 40px on screen, as the homepage's Work list. */
		--concept-disc: 3.125rem;
	}

	/* 20px on screen, in the 40px disc (over the base size, set further down). */
	.about-levels__list .about-levels__glyph {
		width: 1.5625rem;
		height: 1.5625rem;
	}
}

/* Desktop: the descriptions show at the Work list's 19px on 26.6px
   (home-r3-day.css); inside the 80% list that is 23.75px. */
@media (min-width: 1025px) {
	.about-levels__list .about-levels__description {
		font-size: 1.1875rem;
	}

	/* The arches' "Opening": 10px (text-[0.625rem]) on screen. */
	.about-levels__arch .about-levels__status {
		font-size: 0.625rem;
	}

	/* The levels ("LV 6 - 10"): 11px (text-[0.6875rem]) on screen. */
	.about-levels__heading .about-levels__floor {
		font-size: 0.6875rem;
	}
}

@media (min-width: 1025px) and (min-height: 900px) {
	.about-levels__list .about-levels__description {
		font-size: 1.484375rem;
	}

	.about-levels__arch .about-levels__status {
		font-size: 0.78125rem;
	}

	.about-levels__heading .about-levels__floor {
		font-size: 0.859375rem;
	}

	/* gap-3 (12px) on screen. */
	.about-levels__copy .about-levels__body {
		gap: 15px;
	}

	/* gap-1 (4px) on screen. */
	.about-levels__copy .about-levels__heading {
		gap: 5px;
	}
}

/* Short desktop screens (a 14" laptop's 858px): 200px arches would push the
   title under the navbar, so they hold at 160px (w-40) and the gaps under the
   title and between rows tighten to 32px. */
@media (min-width: 1025px) and (max-height: 899px) {
	.about-levels__container {
		gap: 32px;
	}

	.about-levels__list {
		--concept-arch: 10rem;
		--concept-gap: 32px;
	}
}

/* Copy left and arch right; the middle row swaps them. Both centre in their
   column, so each arch lines up with the copy above and below it. */
.about-levels__copy { grid-row: 1; grid-column: 1; justify-self: center; }
.about-levels__icon { grid-row: 1; grid-column: 2; }
.about-levels__arch { grid-row: 1; grid-column: 3; justify-self: center; }
.about-levels__item:nth-child(even) .about-levels__copy { grid-column: 3; }
.about-levels__item:nth-child(even) .about-levels__arch { grid-column: 1; }

.about-levels__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* The label, then the name, levels and line: 8px apart (gap-2). */
	gap: 8px;
	text-align: center;
	color: var(--color-powder-blue);
}

.about-levels__name {
	margin: 0;
	/* The tracking also trails the last letter; this puts it back on centre. */
	padding-left: 0.35em;
	font-family: "Sweet Sans Pro", sans-serif;
	/* 22px on a 28px line; 19px on desktop, then 18px where the columns are
	   narrowest (below). */
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.75rem;
	letter-spacing: 0.35em;
	text-transform: uppercase;
}

/* Desktop, and tablets held sideways: 19px on its 28px line
   (text-[1.1875rem]); upright tablets keep 22px. Where the panel is half a
   narrow screen, each column is narrower than "COWORKING" at 22px (229px), so
   up to 1140px the names step down again, to 18px (188px). */
@media (min-width: 1025px), (min-width: 761px) and (max-width: 1200px) and (orientation: landscape) {
	.about-levels__name {
		font-size: 1.1875rem;
	}
}

@media (min-width: 1025px) and (max-width: 1140px), (min-width: 761px) and (max-width: 1140px) and (orientation: landscape) {
	.about-levels__name {
		font-size: 1.125rem;
	}
}

/* Work, Live or Connect above the concept's name: the homepage's section
   label (home-r3-day.css), in white so it reads apart from the powder-blue
   name. */
.about-levels__label {
	margin: 0;
	/* The tracking also trails the last letter; this puts it back on centre. */
	padding-left: 0.25em;
	color: #fff;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

/* Under the label: the name and levels, then the line, in one column, 12px
   apart (gap-3), aligned as the rest of the copy. */
.about-levels__body {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	gap: 12px;
}

/* The name with its levels under it, in one column, 4px apart (gap-1),
   aligned as the rest of the copy (centred, or to the left on tablets and
   phones). */
.about-levels__heading {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	gap: 4px;
}

/* "LV 6 - 10": small, tracked italic capitals under the name. */
.about-levels__floor {
	margin: 0;
	padding-left: 0.4em;
	font-family: "Sweet Sans Pro", sans-serif;
	font-size: 0.8125rem;
	font-style: italic;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	white-space: nowrap;
}

.about-levels__description {
	max-width: 14em;
	margin: 0;
	font-family: "EB Garamond", serif;
	/* text-lg's 18px, on the earlier 1.4 leading (25.2px). */
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.4;
	text-wrap: balance;
}

/* A disc, as the homepage's Work, Live and Connect lists (home-r3-day.css):
   powder blue on the navy panel, its icon in the panel's navy. The icons are
   drawn for these discs (after the client's reference): flat-ended 2 strokes
   on a 24 grid, shown at 20px in the 40px disc, the homepage's sizes. */
.about-levels__icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--concept-disc);
	height: var(--concept-disc);
	border-radius: 1000px;
	background: var(--color-powder-blue);
}

.about-levels__glyph {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	background: #192436;
	-webkit-mask: var(--about-levels-glyph) center / contain no-repeat;
	mask: var(--about-levels-glyph) center / contain no-repeat;
}

/* The arch: ARC.svg's shape (style.css), at the reference's 370:388, with the
   opening over its photo. */
.about-levels__arch {
	position: relative;
	width: min(var(--concept-arch), 100%);
	/* The client's reference's proportion: a little taller than wide. */
	aspect-ratio: 370 / 388;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	container-type: inline-size;
	-webkit-mask: var(--justco-arc) center top / 100% auto no-repeat;
	mask: var(--justco-arc) center top / 100% auto no-repeat;
}

.about-levels__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* A light navy wash, so the white opening reads on the paler photos. */
.about-levels__arch::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(19, 36, 56, 0.2);
	pointer-events: none;
}

.about-levels__opening {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	/* Below the curve's shoulders, as the reference sets it. */
	padding-top: 12cqi;
	font-family: "Sweet Sans Pro", sans-serif;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.about-levels__status {
	display: block;
	margin-bottom: 6cqi;
	padding-left: 0.3em;
	font-size: max(9px, 4cqi);
	font-weight: 500;
	letter-spacing: 0.3em;
}

.about-levels__date {
	display: block;
	padding-left: 0.3em;
	font-size: max(15px, 10.5cqi);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.3em;
}

.about-levels__image {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: #192436;
}

.about-levels__image > img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 100%;
	/* Figma's 864 × 900 frame. The render is cropped upright around the whole
	   building, so wider frames trim only sky and road. */
	aspect-ratio: 864 / 900;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

/* Connectivity / slide 4 (Figma 223:2589): the arch on the left, the copy and
   the stations either side of the place on the right, both on olive. */
.about-place__state--connect {
	color: var(--color-walnut-brown);
}

.about-connect__media,
.about-connect__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	background: #91893b;
}

.about-connect__panel {
	flex-direction: column;
	padding: 47px 24px;
}

/* 527 × 631, in ARC.svg's arch (style.css), as the homepage's. On short
   screens it shrinks to leave 32px above and below. The map inside it is
   assets/css/arch-map.css, shared with Visit. */
.about-connect__arch {
	flex: none;
	width: min(527px, 100%, calc((100vh - 64px) * 527 / 631));
}

.about-connect__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 100px;
	width: 100%;
	max-width: 556px;
	text-align: center;
}

.about-connect__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.about-connect__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.about-connect__eyebrow,
.about-connect__title {
	margin: 0;
	font-family: "Sweet Sans Pro", sans-serif;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	/* Even lines, so a title never leaves one word on its own (Orchard Road). */
	text-wrap: balance;
}

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

.about-connect__title {
	width: 100%;
	font-size: 30px;
}

.about-connect__description {
	width: 100%;
	max-width: 390px;
	margin: 0;
	color: color-mix(in srgb, var(--color-walnut-brown) 80%, transparent);
	font-family: "EB Garamond", serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
}

/* The stations, with the place between them on a dashed line that runs from
   the first station's icon to the last's. */
.about-connect__route {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
}

.about-connect__line {
	position: absolute;
	top: 50%;
	left: 40px;
	width: calc(100% - 80px);
	height: 1px;
	/* A margin, not a transform, so the 1px line lands on a whole pixel. */
	margin-top: -0.5px;
}

.about-connect__brand {
	position: relative;
	display: block;
	flex: none;
	width: 80px;
	height: 80px;
}

.about-connect__station {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.about-connect__name,
.about-connect__time {
	margin: 0;
	font-size: 15px;
	line-height: 1.25;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.about-connect__name {
	font-family: "Sweet Sans Pro", sans-serif;
	font-weight: 500;
}

.about-connect__time {
	font-family: "EB Garamond", serif;
	font-style: italic;
	font-weight: 600;
}

.about-connect__mrt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 1000px;
	background: #ab2408;
}

.about-connect__mrt > img {
	display: block;
	width: 16px;
	height: 18px;
}

/* Side by side, the arch and the copy close in on the centre line, a gutter
   either side of it, so they don't drift apart on wide screens. Just above
   tablet width the gutter narrows, keeping the stations in a row. */
@media (min-width: 1025px) {
	.about-connect__media,
	.about-connect__panel {
		--about-connect-gutter: clamp(24px, (100vw - 1024px) / 4, 64px);
	}

	.about-connect__media {
		justify-content: flex-end;
		padding: 0 var(--about-connect-gutter) 0 24px;
	}

	.about-connect__panel {
		align-items: flex-start;
		padding-left: var(--about-connect-gutter);
	}
}

@media (max-width: 1024px) {
	.about-connect__media {
		padding: 64px 24px 0;
	}

	.about-connect__panel {
		padding: 64px 24px;
	}

	.about-connect__container {
		gap: 64px;
	}
}

/* Sideways, the copy can run taller than the screen, so the arch holds still
   beside it instead of centring in the whole column. */
@media (max-width: 1024px) and (orientation: landscape) {
	/* The arch holds just under the navbar, 48px of olive above and below,
	   sized to the screen with Safari's toolbar showing (svh), so it still
	   fits when the toolbar comes back. The whole state is olive, so nothing
	   shows beside the shorter column as the toolbar hides. */
	.about-place__state--connect {
		background: #91893b;
	}

	.about-connect__media {
		position: sticky;
		top: var(--site-nav-height);
		align-self: start;
		height: calc(100vh - var(--site-nav-height));
		height: calc(100svh - var(--site-nav-height));
		padding: 48px 24px;
	}

	.about-connect__panel {
		padding: 96px 24px 48px;
	}
}

/* Narrower panels close the stations up (the row is 545px at Figma's 32px
   gaps); on phones, held either way, four won't fit in a row, so the place
   sits above them in a two-by-two grid and the line goes. */
.about-connect__panel {
	container: about-connect / inline-size;
}

@container about-connect (max-width: 544px) {
	.about-connect__route {
		gap: 20px;
	}
}

@container about-connect (max-width: 500px) {
	.about-connect__title {
		font-size: 24px;
	}

	.about-connect__route {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
		width: 100%;
	}

	.about-connect__line {
		display: none;
	}

	.about-connect__brand {
		grid-column: 1 / -1;
		order: -1;
		justify-self: center;
	}
}

/* Responsive: follows R1's hero breakpoints. */
@media (max-width: 1024px) {
	/* Tablets and smaller screens read both states without a pinned scene. */
	.about-place__state {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		min-height: 0;
	}

	.about-place__image {
		aspect-ratio: 864 / 900;
	}

	.about-place__panel,
	.about-levels__panel {
		padding: 64px 24px;
	}

	.about-place__container {
		gap: 80px;
	}

}

@media (max-width: 600px), (max-width: 760px) and (max-height: 520px) {
	/* Wider phones (the iPhone Duo's inner screen): the map arch stops at
	   420px, about its size on a 440px phone, centred in the olive. */
	.about-connect__arch {
		width: min(420px, 100%, calc((100vh - 64px) * 527 / 631));
	}

	/* Phones: 32px either side of the intro and Getting Here's map and copy
	   (px-8), 24px on tablets. */
	.about-place__panel,
	.about-connect__media,
	.about-connect__panel {
		padding-inline: 32px;
	}

	/* Phones: 48px (gap-12) between the intro copy and the location, 80px on tablets. */
	.about-place__container {
		gap: 48px;
	}

	/* Phones: the Location label at 15px (text-[0.9375rem]). */
	.about-place__location-title {
		font-size: 0.9375rem;
	}

	.about-place__title {
		max-width: none;
		min-height: 0;
		/* Phones: 22px (text-[1.375rem]), a step under the shared 24px. */
		font-size: 1.375rem;
		line-height: 1.5;
	}

	/* Phones: too narrow for copy and arch either side, so the timeline runs
	   down the left, each disc beside its copy, the arch below the copy. */
	.about-levels__item {
		grid-template-columns: var(--concept-disc) minmax(0, 1fr);
		align-items: start;
		column-gap: 20px;
		row-gap: 20px;
	}

	.about-levels__item:not(:last-child)::after {
		top: calc(var(--concept-disc) / 2);
		left: calc(var(--concept-disc) / 2);
	}

	.about-levels__icon,
	.about-levels__item:nth-child(even) .about-levels__icon {
		grid-row: 1;
		grid-column: 1;
	}

	.about-levels__copy,
	.about-levels__item:nth-child(even) .about-levels__copy {
		grid-row: 1;
		grid-column: 2;
		justify-self: start;
		align-items: flex-start;
		padding-top: 10px;
		text-align: left;
	}

	.about-levels__arch,
	.about-levels__item:nth-child(even) .about-levels__arch {
		grid-row: 2;
		grid-column: 2;
		justify-self: start;
	}

	.about-levels__label,
	.about-levels__name,
	.about-levels__floor {
		padding-left: 0;
	}

	/* The timeline as a block centred on the phone (disc, gap, then the 200px
	   arch and its copy), rather than hugging the left with the right empty. */
	.about-levels__list {
		width: 100%;
		max-width: 300px;
		margin-inline: auto;
	}

	/* Phones: 40px (gap-10) between Getting Here's copy and its stations. */
	.about-connect__container {
		gap: 40px;
	}

	/* Phones: the two columns of stations meet in the middle (gap-x-0). */
	.about-connect__route {
		column-gap: 0;
	}

	/* Phones: the concepts heading at 22px (text-[1.375rem]), as the intro's. */
	.about-levels__title {
		font-size: 1.375rem;
		/* The intro heading's leading (1.5, 33px at 22px). */
		line-height: 1.5;
	}

	/* Phones: the Getting Here heading at 22px too (text-[1.375rem]). */
	.about-connect__title {
		font-size: 1.375rem;
	}

	/* Phones: the eyebrow at 15px, as the intro's Location label. */
	.about-connect__eyebrow {
		font-size: 0.9375rem;
	}

	/* Phones: the description closer under the heading (gap-4). */
	.about-connect__intro {
		gap: 16px;
	}


	/* Phones: the concept names a step down, to 17px (text-[1.0625rem]). */
	.about-levels__name {
		font-size: 1.0625rem;
	}
}

/* Upright phones: the full-width photos stop growing taller past a 500px
   phone, so on the iPhone Duo's inner screen each fills well under a screen. */
@media (max-width: 600px) and (orientation: portrait) {
	.about-place__image {
		aspect-ratio: auto;
		height: min(100vw * 900 / 864, 520px);
	}

	.about-levels__image > img {
		height: min(100vw * 900 / 864, 520px);
		min-height: 0;
		aspect-ratio: auto;
	}

	/* Upright phones: Getting Here's copy closer under the arch (pt-10). */
	.about-connect__panel {
		padding-top: 40px;
	}
}

/* Tablets and phones held sideways: photo and copy stay side by side, as on
   desktop, but each state grows with its copy instead of pinning. Stacked,
   the full-width photos would each run two or three screens tall. */
@media (max-width: 1024px) and (orientation: landscape) {
	.about-place__state {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 100vh;
		min-height: 100svh;
	}

	.about-place__image {
		aspect-ratio: auto;
	}

	.about-levels__image > img {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}
}

/* Tablets on their side: 28px (px-7) either side of the intro copy beside
   the photo, in line with the navbar's and footer's edges. More would
   re-wrap the copy on the iPhone Duo (about 950px wide). */
@media (max-width: 1024px) and (orientation: landscape) and (min-height: 501px) {
	.about-place__panel {
		padding-inline: 28px;
	}
}

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
	.about-place__panel,
	.about-levels__panel {
		padding: 96px 24px 48px;
	}

	.about-place__container {
		gap: 48px;
	}
}

/* Tablets and phones: the navbar's buttons sit over the walnut panel or the
   photo, so they take the scrolled bar's yellow from the start. */
@media (max-width: 1024px) {
	.about-nav .site-nav__cta-wrap .site-nav__cta,
	.about-nav .site-nav__menu-button {
		background: var(--color-sunlit-yellow);
		color: var(--color-walnut-brown);
	}
}

/* Sideways, the arch fits the sticky column above: its height less the 48px
   either side. Last, so it also overrides the phone width above. */
@media (max-width: 1024px) and (orientation: landscape) {
	.about-connect__arch {
		width: min(527px, 100%, calc((100vh - var(--site-nav-height) - 96px) * 527 / 631));
		width: min(527px, 100%, calc((100svh - var(--site-nav-height) - 96px) * 527 / 631));
	}
}

/* Phones held sideways (the folded iPhone Duo, about 380px tall): 24px either
   side, so the arch keeps a usable size. */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
	.about-connect__media {
		padding-block: 24px;
	}

	.about-connect__arch {
		width: min(527px, 100%, calc((100vh - var(--site-nav-height) - 48px) * 527 / 631));
		width: min(527px, 100%, calc((100svh - var(--site-nav-height) - 48px) * 527 / 631));
	}
}
