/* -----------------------------------------------------------------------
   About page (page-about.php) — full-bleed, no sidebar.
   RTL-first, logical properties only.

   Neither of the team-page layouts: one photograph and a handful of hard
   numbers, so the page opens on a cinematic image band with the figures
   riding up over its lower edge, then settles into a narrow reading column
   before the two list blocks and a dark closing vision panel.
   ----------------------------------------------------------------------- */

.about-page {
	--ab-ink: #0e1120;
	--ab-ink-deep: #070a16;
	--ab-tint: #6ebbe9;
	--ab-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ab-dur: 0.32s;
	--ab-gap: clamp(3rem, 6vw, 5rem);
	/* How far the figures float up into the hero image. */
	--ab-overlap: clamp(2rem, 5vw, 4rem);

	display: grid;
	gap: var(--ab-gap);
	/* Swallow .site-content's padding so the hero runs edge-to-edge from
	   the header down. */
	margin-block-start: calc(-1 * var(--shivuk-space));
	padding-block-end: var(--ab-gap);
}

.about-page .container {
	inline-size: 100%;
	max-inline-size: min(1240px, calc(100% - 2 * var(--shivuk-space)));
}

/* -----------------------------------------------------------------------
   Reveal-on-scroll. An animation rather than a transition so it never
   fights the hover transitions on the same elements. The hidden start
   state only exists when motion is allowed — reduced-motion visitors, and
   anyone without IntersectionObserver, see everything immediately.
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.about-page .js-reveal {
		opacity: 0;
	}

	.about-page .js-reveal.is-visible {
		animation: ab-rise 0.65s var(--ab-ease) both;
	}

	/* Stagger across the figure tiles. */
	.about-stats .js-reveal.is-visible:nth-child(2) { animation-delay: 90ms; }
	.about-stats .js-reveal.is-visible:nth-child(3) { animation-delay: 180ms; }
}

@keyframes ab-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -----------------------------------------------------------------------
   1. Hero — full-bleed photograph under a scrim
   ----------------------------------------------------------------------- */
.about-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-block-size: min(62vh, 520px);
	/* Room at the foot for the figure tiles to overlap into. */
	padding-block: clamp(3.5rem, 8vw, 6rem) calc(clamp(2.5rem, 5vw, 4rem) + var(--ab-overlap));
	background: var(--ab-ink-deep);
	color: #ffffff;
	overflow: hidden;
}

.about-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

/* A very slow push into the photograph. Long enough (28s, one direction, no
   alternate) that it never reads as movement — only as a frame that refuses
   to sit still. */
.about-hero__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
	animation: ab-kenburns 28s var(--ab-ease) both;
	will-change: transform;
}

@keyframes ab-kenburns {
	from {
		transform: scale(1.001);
	}

	to {
		transform: scale(1.12) translate3d(-1.5%, -1%, 0);
	}
}

/* Grain. Two offset dot screens at different pitches beat one: a single
   repeating dot grid moirés against the photograph underneath. */
.about-hero__grain {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.055) 0.5px, transparent 0.5px),
		radial-gradient(rgba(0, 0, 0, 0.06) 0.5px, transparent 0.5px);
	background-size: 3px 3px, 5px 5px;
	background-position: 0 0, 1px 2px;
	mix-blend-mode: overlay;
	pointer-events: none;
}

/* Layered scrim: a hard floor so the headline always has contrast, a
   softer wash from the top so the image doesn't collide with the header,
   and a brand-blue cast that ties a stock-looking photo to the site. */
.about-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(7, 10, 22, 0.95) 0%, rgba(7, 10, 22, 0.66) 38%, rgba(7, 10, 22, 0.18) 72%, transparent 100%),
		linear-gradient(to bottom, rgba(7, 10, 22, 0.55) 0%, transparent 32%),
		linear-gradient(to top, color-mix(in srgb, var(--shivuk-color-accent) 26%, transparent), transparent 48%);
}

.about-hero__inner {
	position: relative;
}

.about-hero *:focus-visible {
	outline-color: #ffffff;
}

.about-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.about-hero__kicker::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: var(--ab-tint);
	box-shadow: 0 0 10px var(--ab-tint);
}

/* Uncovered from below rather than faded in — the page's first gesture. */
.about-hero__title {
	margin: 1.1rem 0 0;
	max-inline-size: 18ch;
	font-size: clamp(2.2rem, 6vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
	animation: ab-reveal 1s var(--ab-ease) 0.1s both;
}

@keyframes ab-reveal {
	from {
		opacity: 0;
		transform: translateY(20px);
		clip-path: inset(0 0 100% 0);
	}

	to {
		opacity: 1;
		transform: translateY(0);
		clip-path: inset(0 0 -12% 0);
	}
}

/* Accent rule drawing itself under the headline, on the beat after it. */
.about-hero__rule {
	display: block;
	inline-size: 0;
	block-size: 3px;
	margin-block-start: clamp(1.1rem, 2.4vw, 1.6rem);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ab-tint), transparent);
	animation: ab-rule 1.1s var(--ab-ease) 0.55s both;
}

@keyframes ab-rule {
	from {
		inline-size: 0;
		opacity: 0;
	}

	to {
		inline-size: clamp(88px, 14vw, 180px);
		opacity: 1;
	}
}

/* -----------------------------------------------------------------------
   2. Headline figures
   ----------------------------------------------------------------------- */
.about-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	/* Pull the row up over the hero's foot — the numbers read as part of
	   the image rather than as a separate strip below it. */
	margin-block-start: calc(-1 * var(--ab-overlap) - var(--ab-gap));
}

.about-stat {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	border: 1px solid var(--shivuk-color-border);
	border-radius: var(--shivuk-radius-lg);
	background: var(--shivuk-color-bg);
	box-shadow: var(--shivuk-shadow-md);
	transition:
		transform var(--ab-dur) var(--ab-ease),
		box-shadow var(--ab-dur) var(--ab-ease),
		border-color var(--ab-dur) var(--ab-ease);
}

/* Accent bar along the tile's reading edge, growing on hover. */
.about-stat::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 3px;
	background: linear-gradient(180deg, var(--shivuk-color-accent), color-mix(in srgb, var(--shivuk-color-accent) 35%, transparent));
	transform: scaleY(0.28);
	transform-origin: block-start;
	transition: transform var(--ab-dur) var(--ab-ease);
}

.about-stat:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--shivuk-color-accent) 32%, var(--shivuk-color-border));
	box-shadow: var(--shivuk-shadow-lg);
}

.about-stat:hover::before {
	transform: scaleY(1);
}

.about-stat__icon {
	display: grid;
	place-items: center;
	inline-size: 42px;
	block-size: 42px;
	margin-block-end: 0.35rem;
	border-radius: 14px;
	background: var(--shivuk-color-accent-soft);
	color: var(--shivuk-color-accent);
	transition: transform var(--ab-dur) var(--ab-ease);
}

.about-stat:hover .about-stat__icon {
	transform: rotate(-5deg) scale(1.06);
}

.about-stat__icon svg {
	inline-size: 21px;
	block-size: 21px;
}

/* The set index, sunk into the tile's far corner. Big, very faint, and
   clipped by the tile itself — texture, not information. */
.about-stat__index {
	position: absolute;
	inset-block-start: -0.24em;
	inset-inline-end: 0.06em;
	font-size: clamp(4.5rem, 9vw, 6.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--shivuk-color-accent);
	opacity: 0.07;
	pointer-events: none;
}

.about-stat__figure {
	font-size: clamp(2.1rem, 4.5vw, 2.9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(150deg, var(--shivuk-color-accent), color-mix(in srgb, var(--shivuk-color-accent) 55%, #0c2f4c));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.about-stat__label {
	color: var(--shivuk-color-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* -----------------------------------------------------------------------
   3. Prose
   ----------------------------------------------------------------------- */
/* The story runs as a reading column with the pull quote in its own track
   beside it — an editorial spread rather than a stack. Below 900px the quote
   drops under the prose (see the responsive block). */
.about-prose {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 20rem);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: start;
	max-inline-size: min(1080px, calc(100% - 2 * var(--shivuk-space)));
	color: var(--shivuk-color-text);
	font-size: clamp(1.02rem, 1.6vw, 1.12rem);
	line-height: 1.9;
}

.about-prose p {
	margin: 0;
}

.about-prose p + p {
	margin-block-start: 1.1em;
}

/* The pull quote. Set on the accent tint with a rule along its reading edge
   and an outsized glyph behind the text — the one voice on the page that
   isn't reporting, and it looks like it. */
.about-pull {
	position: relative;
	overflow: hidden;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--shivuk-radius-lg);
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--shivuk-color-accent) 14%, transparent), transparent 62%),
		var(--shivuk-color-accent-soft);
	/* Sits a little below the first line of prose rather than level with it —
	   a hard top alignment reads as a table, not as a spread. */
	margin-block-start: 0.6rem;
}

.about-pull::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 4px;
	background: linear-gradient(180deg, var(--shivuk-color-accent), color-mix(in srgb, var(--shivuk-color-accent) 30%, transparent));
}

.about-pull::after {
	content: "”";
	position: absolute;
	inset-block-start: -0.28em;
	inset-inline-end: 0.1em;
	font-size: 8rem;
	line-height: 1;
	color: var(--shivuk-color-accent);
	opacity: 0.12;
	pointer-events: none;
}

.about-pull__text {
	position: relative;
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.42rem);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -0.015em;
	color: color-mix(in srgb, var(--shivuk-color-accent) 82%, #0c2f4c);
	text-wrap: balance;
}

/* -----------------------------------------------------------------------
   Shared section heading
   ----------------------------------------------------------------------- */
.about-section-title {
	position: relative;
	margin: 0 0 1.5rem;
	padding-inline-start: 0.75rem;
	font-size: clamp(1.3rem, 2.5vw, 1.6rem);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.about-section-title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 0.2em;
	inline-size: 4px;
	border-radius: 2px;
	background: var(--shivuk-color-accent);
}

/* -----------------------------------------------------------------------
   4. Organisation wall
   ----------------------------------------------------------------------- */
/* Two identical tracks side by side, the pair travelling exactly half their
   own width: the second lands where the first began, so the loop has no seam.
   Masked at both ends, so names enter and leave the frame instead of being
   cut off at a hard edge. */
.about-brands__marquee {
	display: flex;
	inline-size: max-content;
	gap: 0.7rem;
	animation: ab-marquee 42s linear infinite;
	will-change: transform;
}

/* The mask belongs to the section, not the moving element — a mask on an
   animated transform would travel with it. */
.about-brands {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Hovering stops the drift, so a name can actually be read on purpose. */
.about-brands:hover .about-brands__marquee {
	animation-play-state: paused;
}

@keyframes ab-marquee {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		/* Half the pair — i.e. exactly one full track, plus the gap that sits
		   between the two. */
		transform: translate3d(calc(-50% - 0.35rem), 0, 0);
	}
}

.about-brands__track {
	display: flex;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* No logo files exist for these brands, so the names are set as the mark:
   generous padding and weight give a plain word the presence a logo tile
   would have had. */
.about-brands__item {
	flex: none;
	padding: 0.85rem 1.4rem;
	border: 1px solid var(--shivuk-color-border);
	border-radius: 999px;
	background: var(--shivuk-color-surface);
	color: var(--shivuk-color-text);
	font-size: clamp(0.95rem, 1.6vw, 1.08rem);
	font-weight: 700;
	white-space: nowrap;
	transition:
		border-color var(--ab-dur) var(--ab-ease),
		background var(--ab-dur) var(--ab-ease),
		color var(--ab-dur) var(--ab-ease);
}

.about-brands__item:hover {
	border-color: transparent;
	background: var(--shivuk-color-accent);
	color: var(--shivuk-color-accent-contrast);
}

.about-brands__item--more {
	border-style: dashed;
	background: transparent;
	color: var(--shivuk-color-muted);
	font-weight: 600;
}

/* -----------------------------------------------------------------------
   5. Roles
   ----------------------------------------------------------------------- */
/* A numbered index rather than a bulleted list: nine equal items with no
   hierarchy between them read best as a set, and the numerals give the block
   a rhythm a row of dots never had. */
.about-roles__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(0.5rem, 1.4vw, 0.85rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: about-role;
}

.about-role {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid var(--shivuk-color-border);
	border-radius: var(--shivuk-radius);
	background: var(--shivuk-color-surface);
	color: var(--shivuk-color-text);
	font-size: 1rem;
	transition:
		transform var(--ab-dur) var(--ab-ease),
		border-color var(--ab-dur) var(--ab-ease),
		background var(--ab-dur) var(--ab-ease);
}

.about-role:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--shivuk-color-accent) 38%, var(--shivuk-color-border));
	background: var(--shivuk-color-bg);
}

.about-role__num {
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--shivuk-color-accent) 70%, var(--shivuk-color-muted));
}

.about-role__text {
	font-weight: 600;
	line-height: 1.4;
}

/* -----------------------------------------------------------------------
   6. Vision — dark closing panel
   ----------------------------------------------------------------------- */
.about-vision {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 7vw, 5rem);
	background:
		radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.6px) 0 0 / 18px 18px,
		radial-gradient(65% 85% at 88% -15%, color-mix(in srgb, var(--shivuk-color-accent) 42%, transparent), transparent 62%),
		radial-gradient(50% 70% at 8% 115%, color-mix(in srgb, var(--shivuk-color-accent) 20%, transparent), transparent 62%),
		linear-gradient(168deg, var(--ab-ink-deep), var(--ab-ink) 88%);
	color: #ffffff;
}

.about-vision *:focus-visible {
	outline-color: #ffffff;
}

/* Two slow washes of light drifting behind the statement, on clocks that are
   deliberately not multiples of each other so they never repeat a meeting
   point. The panel reads as lit rather than printed. */
.about-vision__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	mix-blend-mode: screen;
	pointer-events: none;
}

.about-vision__glow--a {
	inset-block-start: -30%;
	inset-inline-end: -8%;
	inline-size: min(52vw, 620px);
	block-size: min(52vw, 620px);
	background: radial-gradient(circle, var(--shivuk-color-accent), transparent 68%);
	opacity: 0.5;
	animation: ab-drift-a 31s ease-in-out infinite alternate;
}

.about-vision__glow--b {
	inset-block-end: -35%;
	inset-inline-start: -10%;
	inline-size: min(42vw, 500px);
	block-size: min(42vw, 500px);
	background: radial-gradient(circle, #2ea6a0, transparent 68%);
	opacity: 0.28;
	animation: ab-drift-b 43s ease-in-out infinite alternate;
}

@keyframes ab-drift-a {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}

	to {
		transform: translate3d(-7%, 8%, 0) scale(1.18);
	}
}

@keyframes ab-drift-b {
	from {
		transform: translate3d(0, 0, 0) scale(1.12);
	}

	to {
		transform: translate3d(9%, -7%, 0) scale(0.92);
	}
}

.about-vision__inner {
	position: relative;
	text-align: center;
}

/* Oversized quote glyph behind the heading — the vision is the one piece
   of manifesto writing on the page, so it gets set like a statement. */
.about-vision__inner::before {
	content: "”";
	position: absolute;
	inset-block-start: -0.35em;
	inset-inline: 0;
	font-size: clamp(6rem, 16vw, 11rem);
	line-height: 1;
	color: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.about-vision__title {
	position: relative;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--ab-tint);
}

.about-vision__text {
	position: relative;
	max-inline-size: 60ch;
	margin: 1.25rem auto 0;
	font-size: clamp(1.15rem, 2.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Signature line, set off by a short rule the way a statement is signed. */
.about-vision__sign {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	margin: clamp(1.35rem, 3vw, 2rem) 0 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.about-vision__sign::before {
	content: "";
	inline-size: clamp(24px, 5vw, 48px);
	block-size: 1px;
	background: linear-gradient(90deg, transparent, var(--ab-tint));
}

/* -----------------------------------------------------------------------
   7. Editor content appended below
   ----------------------------------------------------------------------- */
.about-extra .entry-content {
	max-inline-size: 760px;
	margin-inline: auto;
	font-size: 1.02rem;
	line-height: 1.85;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
/* The spread collapses to a stack before the reading column gets too narrow
   to be a reading column. */
@media (max-width: 900px) {
	.about-prose {
		grid-template-columns: minmax(0, 1fr);
		max-inline-size: min(760px, calc(100% - 2 * var(--shivuk-space)));
	}

	.about-pull {
		margin-block-start: 0;
	}
}

@media (max-width: 700px) {
	.about-hero {
		min-block-size: min(56vh, 420px);
	}

	.about-brands__item {
		padding: 0.7rem 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-stat,
	.about-stat__icon,
	.about-stat::before,
	.about-role,
	.about-brands__item {
		transition: none;
	}

	.about-stat:hover,
	.about-stat:hover .about-stat__icon,
	.about-role:hover,
	.about-brands__item:hover {
		transform: none;
	}

	/* Nothing drifts, pans or draws itself. The marquee holds its first frame,
	   which still shows the names — it is a list, not a slideshow. */
	.about-hero__media img,
	.about-hero__title,
	.about-hero__rule,
	.about-brands__marquee,
	.about-vision__glow {
		animation: none;
	}

	.about-hero__rule {
		inline-size: clamp(88px, 14vw, 180px);
	}
}
