/**
 * GVA front page — section styles.
 *
 * Values are the prototype's *effective rendered* cascade, not the first
 * declaration in the source: several rules are declared once in an early
 * style block and then re-declared in a later one, and the later declaration
 * is the one that actually renders — see docs/REFERENCE.md §3 for how the
 * light/dark iterations resolve.
 *
 * Loaded only by front-page.php.
 */

/* ==========================================================================
   01 · Hero
   ========================================================================== */

/* The fixed header normally reserves its height in .site-main. The reference
 * hero starts behind it, so only the front page cancels that reservation. */
.front-page {
	margin-top: calc(-1 * var(--header-height));
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 170px 0 120px;
	overflow: hidden;
	background: var(--bone);
	color: var(--black);
}

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

.hero-media__img {
	position: absolute;
	top: 64px;
	right: 0;
	width: 100%;
	height: calc(100% - 64px);
	object-fit: cover;
	object-position: 42% top;
	filter: grayscale(0.86) contrast(1.16) brightness(0.97);
}

.hero-media__fade-left,
.hero-media__fade-top,
.hero-media__accent,
.hero-media__rule {
	position: absolute;
}

.hero-media__fade-left {
	inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 18, 18, 0.13) 0%, rgba(18, 18, 18, 0.05) 9%, transparent 20%),
		linear-gradient(90deg, rgba(250, 248, 248, 0.4) 0%, rgba(250, 248, 248, 0.72) 8%, rgba(250, 248, 248, 0.9) 18%, rgba(250, 248, 248, 0.88) 44%, rgba(250, 248, 248, 0.62) 55%, rgba(250, 248, 248, 0.2) 66%, transparent 76%);
}

.hero-media__fade-top {
	inset: 0;
	background: linear-gradient(180deg, var(--bone) 0%, rgba(250, 248, 248, 0.86) 4%, transparent 26%, transparent 72%, rgba(250, 248, 248, 0.5));
}

.hero-media__accent {
	top: 0;
	right: 0;
	width: 66%;
	height: 100%;
	background: radial-gradient(38% 46% at 74% 40%, rgba(238, 39, 55, 0.14), transparent 70%);
	mix-blend-mode: multiply;
}

.hero-media__rule {
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line);
}

.hero__inner {
	position: relative;
	z-index: 1;
}

.hero__copy { max-width: 640px; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 14px;
	border: 1px solid rgba(18, 18, 18, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	color: #4a4a4a;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pill::before { width: 6px; height: 6px; border-radius: 50%; background: var(--red); content: ""; }

.hero__title {
	margin-top: 30px;
	font-size: clamp(44px, 6.2vw, 74px);
	line-height: 1.02;
	letter-spacing: -0.038em;
}

.hero__title u { position: relative; text-decoration: none; white-space: nowrap; }
.hero__title u::after { position: absolute; right: 0; bottom: 0.05em; left: 0; height: 0.075em; background: var(--red); content: ""; }
.hero__title i { color: #7c7c7c; font-style: normal; }

.hero__lede { max-width: 54ch; margin-top: 26px; color: #4e4e4e; font-size: 19px; line-height: 1.55; text-wrap: pretty; }

.creds { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 38px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(18, 18, 18, 0.14); list-style: none; }
.creds__item { position: relative; padding-left: 18px; color: #555; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em; }
.creds__item::before { position: absolute; top: 0.55em; left: 0; width: 9px; height: 1px; background: var(--red); content: ""; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.scroll-hint { position: absolute; z-index: 1; bottom: 30px; left: 50%; display: flex; align-items: center; gap: 10px; margin: 0; transform: translateX(-50%); color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-hint__bar { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(18, 18, 18, 0.28), transparent); }

/* ==========================================================================
   02 · Team
   ========================================================================== */

.team-section { padding: 112px 0; background: var(--white); color: var(--black); }
.team-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.video-card { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--black); }
.video-card__frame-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 34px 34px; }
.video-card__frame-bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(238, 39, 55, 0.16), transparent 55%); }
.video-card__badges { position: absolute; z-index: 1; top: 16px; left: 16px; display: flex; gap: 8px; }
.video-badge { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.5); color: var(--white); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.video-badge--live { display: inline-flex; align-items: center; gap: 6px; border-color: var(--red); background: var(--red); }
.video-badge--live::before { width: 6px; height: 6px; border-radius: 50%; background: var(--white); content: ""; animation: gva-video-blink 1.4s infinite; }
@keyframes gva-video-blink { 50% { opacity: 0.3; } }
/* Editable Team video. The native <video> fills the framed card at the same
 * 16 / 10 geometry; a poster still (no-video state) uses the same crop. There is
 * no play glyph in the no-video state — a control that does nothing is not
 * rendered when there is no video to play. */
.video-card__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--black); }
.video-card__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Hidden until assets/js/front-page.js adds `is-video-enhanced` — no-JS
 * leaves the native controls uncovered. Enhanced, this wash + play button is
 * the whole interface; playback happens in the focused overlay below, and
 * closing it returns here, ready to reopen. */
.video-card__overlay { display: none; }
.video-card.is-video-enhanced .video-card__overlay { position: absolute; z-index: 1; display: block; inset: 0; background: radial-gradient(120% 90% at 30% 20%, rgba(238, 39, 55, 0.22), transparent 55%), linear-gradient(rgba(18, 18, 18, 0.26), rgba(18, 18, 18, 0.42)); }
.video-card__play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; padding: 0; transform: translate(-50%, -50%); appearance: none; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s var(--ease); }
.video-card__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--red-dark); }
/* The global focus ring is red on light surfaces; here it would sit red-on-red
 * over dark media, so it keeps the same geometry in white. */
.video-card__play:focus-visible { transform: translate(-50%, -50%) scale(1.08); outline: 1.5px solid var(--white); outline-offset: 3px; }
/* The reference's play mark: a solid white triangle built from borders. */
.video-card__play-icon { position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--white); }
.video-card__bar { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); }
.video-card__caption { color: var(--white); font-size: 14px; font-weight: 600; }
.video-card__time { color: #b9b9b9; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }

/* Focused-video overlay: a native <dialog>, opened modally by
 * assets/js/front-page.js, which moves the same <video> element into this
 * frame and back out again on close — one player, no duplicate to style.
 * Stretched to the viewport so a backdrop click is a real click the script
 * can act on; `::backdrop` paints the dimming. */
.video-lightbox { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; }
.video-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.video-lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
/* Blur only where it is real: unsupported, the 82% wash carries the dimming on
 * its own, and no fallback filter is worth the compositing cost. */
@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
	.video-lightbox::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
/* max-width re-expresses the vertical limit through the 16/9 box so a short
 * viewport shrinks the frame instead of cropping it. */
.video-lightbox__frame { position: relative; width: min(1200px, 90vw); max-width: calc(84vh * 16 / 9); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--black); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.video-lightbox__frame video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: var(--black); }
/* Upper-right of the video itself, clear of the native controls at the foot. */
.video-lightbox__close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 38px; height: 38px; padding: 0; appearance: none; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: rgba(0, 0, 0, 0.55); cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.video-lightbox__close:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.8); }
/* Same white-on-dark reasoning as .video-card__play:focus-visible. */
.video-lightbox__close:focus-visible { outline: 1.5px solid var(--white); outline-offset: 3px; }
.video-lightbox__close-icon, .video-lightbox__close-icon::before { position: absolute; top: 50%; left: 50%; width: 15px; height: 1.5px; background: var(--white); content: ""; }
.video-lightbox__close-icon { transform: translate(-50%, -50%) rotate(45deg); }
.video-lightbox__close-icon::before { transform: translate(-50%, -50%) rotate(-90deg); }
/* Scroll lock. The document keeps its scroll position; the gutter the vanishing
 * scrollbar leaves is measured by the script and replaced here, so the page
 * behind the wash does not shift sideways. Both are removed on close. */
.has-video-lightbox { overflow: hidden; padding-right: var(--gva-scroll-gutter, 0px); }
@keyframes gva-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gva-lightbox-frame-in { from { transform: scale(0.96); } to { transform: scale(1); } }
.video-lightbox[open], .video-lightbox[open]::backdrop { animation: gva-lightbox-in 180ms var(--ease) both; }
.video-lightbox[open] .video-lightbox__frame { animation: gva-lightbox-frame-in 210ms var(--ease) both; }

.role-tag { display: inline-block; padding: 6px 11px; border: 1px solid var(--red); color: var(--red); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.team-name { margin-top: 18px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.team-bio { max-width: 52ch; margin-top: 20px; color: #4a4a4a; font-size: 17px; line-height: 1.6; }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred-card b { display: block; color: var(--red); font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.02em; }
.cred-card span { display: block; margin-top: 6px; color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
/* LinkedIn and WhatsApp sit in one aligned row — both compact icon-only
   targets when a URL exists (see .team-link__compact below); LinkedIn's
   pending (no-URL) fallback stays inline text and just shares the row. */
.team-links { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; }
.team-link { display: flex; align-items: center; gap: 9px; color: var(--black); font-size: 14px; font-weight: 600; }
.team-link__icon { color: var(--red); }

/* Compact icon-only LinkedIn/WhatsApp treatment: the accessible name moves
   to visually-hidden text inside the link (.screen-reader-text), so the
   visible footprint is just the glyph in a small round target — still a
   real link, still focusable, still announced with its full name to
   assistive tech. */
.team-link__compact { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grey-sec); transition: background-color 150ms var(--ease); }
.team-link__compact:hover,
.team-link__compact:focus-visible { background: rgba(238, 39, 55, 0.14); }
.team-link__compact .team-link__icon { color: var(--red); }

/* ==========================================================================
   03 · What we solve
   ========================================================================== */

/* Without JavaScript the rail is an open, readable stack. The enhanced
 * horizontal accordion is gated on an explicit root class. */
.solve-section { padding: 104px 0 152px; background: var(--grey-sec); }
.solve-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.solve-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.solve-hint span { color: var(--red); }
.sym-rail { display: grid; gap: 12px; }
.sym { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.sym--dark { border-color: var(--black); background: var(--black); color: var(--white); }
/* The toggle carries only the panel's header (number, and — on desktop — the
 * spine and watermark). The diagnosis panel is a sibling element the button
 * points at with `aria-controls`, never a descendant of the control. */
.sym__toggle { position: relative; display: block; width: 100%; padding: 26px 24px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.sym__number { display: block; margin-bottom: 0; color: var(--red); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }
/* Visually hidden in the stacked layout but kept in the accessible name, so
 * each disclosure button is announced with the symptom it controls
 * ("01 Paper log") rather than a bare number. It becomes the visible vertical
 * spine label in the desktop accordion below. */
.sym__spine { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The red spine itself is not width-gated in the reference: it exists at every
 * width, scaleY(0) by default, forced to scaleY(1) below 1001px (stacked
 * panels, all always "open") and driven by `.is-active` at and above it (the
 * hover/pin accordion). Only the enhanced accordion machinery is desktop-only. */
html.has-symptom-rail .sym::before { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 2px; transform: scaleY(0); transform-origin: top; background: var(--red); content: ""; transition: transform 0.5s var(--ease-out); }
/* Stacked layout: the panel flows under the toggle with the spacing the toggle
 * used to carry (16px above, 28px below, 24px sides). Overridden wholesale in
 * the desktop accordion below. */
.sym__content { display: flex; flex-direction: column; gap: 18px; padding: 16px 24px 28px; }
.sym__headline { display: block; max-width: 26ch; font-size: clamp(21px, 2.05vw, 27px); font-weight: 700; line-height: 1.24; letter-spacing: -0.025em; text-wrap: pretty; }
.sym__headline em { color: var(--red); font-style: normal; }
/* Base measure is 40ch; 52ch applies only in the 1001-1119px range below,
 * where the panel is wide but the two-column grid hasn't started. */
.sym__diagnosis { display: block; max-width: 40ch; padding-top: 18px; border-top: 1px solid var(--line); }
.sym--dark .sym__diagnosis { border-top-color: rgba(255, 255, 255, 0.18); }
.sym__tag { display: block; margin-bottom: 10px; color: var(--red); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; }
.sym__body { display: block; color: #4a4a4a; font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
.sym--dark .sym__body { color: #b9b9b9; }
.sym__figure { display: none; }
.sym__watermark { display: none; }

@media (min-width: 1001px) {
	html.has-symptom-rail .sym-rail { display: flex; height: 396px; gap: 10px; }
	html.has-symptom-rail .sym { flex: 0 1 88px; border-color: var(--line); transition: flex-grow 0.55s var(--ease-out), border-color 0.3s ease, background 0.3s ease; }
	html.has-symptom-rail .sym--dark { border-color: var(--black); }
	html.has-symptom-rail .sym.is-active { flex-grow: 1; border-color: #d9d8d5; }
	html.has-symptom-rail .sym--dark.is-active { border-color: var(--black); }
	html.has-symptom-rail .sym.is-active::before { transform: scaleY(1); }
	html.has-symptom-rail .sym__toggle { height: 100%; padding: 0; }
	html.has-symptom-rail .sym__number { position: absolute; z-index: 2; top: 22px; left: 22px; margin: 0; color: var(--text-muted); transition: color 0.3s; }
	html.has-symptom-rail .sym.is-active .sym__number { color: var(--red); }
	html.has-symptom-rail .sym--dark .sym__number { color: #7d7d7d; }
	html.has-symptom-rail .sym--dark.is-active .sym__number { color: var(--red); }
	html.has-symptom-rail .sym__spine { position: absolute; bottom: 24px; left: 20px; display: block; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity 0.18s ease; }
	html.has-symptom-rail .sym.is-active .sym__spine { opacity: 0; }
	html.has-symptom-rail .sym__content { position: absolute; top: 62px; right: 22px; bottom: 24px; left: 22px; min-width: 400px; padding: 0; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
	html.has-symptom-rail .sym.is-active .sym__content { opacity: 1; transition-delay: 0.2s; }
	html.has-symptom-rail .sym__headline { max-width: 19ch; }
	html.has-symptom-rail .sym__figure { position: absolute; top: -10px; right: 2px; display: block; width: min(30%, 268px); color: var(--black); opacity: 0; transition: opacity 0.45s ease 0.22s; }
	html.has-symptom-rail .sym.is-active .sym__figure { opacity: 1; }
	html.has-symptom-rail .sym--dark .sym__figure { color: var(--white); }
	html.has-symptom-rail .sym__figure svg { width: 100%; height: auto; overflow: visible; }
	.sym-fig__line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
	.sym-fig__axis { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.28; }
	.sym-fig__hot { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
	.sym-fig__fill { fill: var(--red); stroke: none; }
	.sym-fig__dashed { stroke-dasharray: 5 4; }
	html.has-symptom-rail .sym__watermark { position: absolute; z-index: 0; bottom: -46px; left: 10px; display: block; color: #e7e6e3; font-size: 200px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 0.78; letter-spacing: -0.05em; opacity: 0; pointer-events: none; transition: opacity 0.5s ease 0.2s; user-select: none; }
	html.has-symptom-rail .sym.is-active .sym__watermark { opacity: 1; }
	html.has-symptom-rail .sym--dark .sym__watermark { color: rgba(255, 255, 255, 0.06); }
}

@media (min-width: 1120px) {
	html.has-symptom-rail .sym__content { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: stretch; justify-content: initial; }
	html.has-symptom-rail .sym__headline { grid-column: 1; align-self: start; max-width: none; font-size: clamp(28px, 2.3vw, 34px); }
	html.has-symptom-rail .sym__diagnosis { grid-column: 2; align-self: end; max-width: none; }
}

@media (min-width: 1001px) and (max-width: 1119px) {
	html.has-symptom-rail .sym__figure,
	html.has-symptom-rail .sym__watermark { display: none; }
	html.has-symptom-rail .sym__headline { max-width: 24ch; }
	html.has-symptom-rail .sym__diagnosis { max-width: 52ch; }
}

/* ==========================================================================
   Responsive — Hero, Team, What we solve
   ========================================================================== */

@media (max-width: 1100px) {
	.hero__copy { max-width: min(640px, 56vw); }
	.hero-media__accent { width: 72%; }
	.hero-media__fade-left { background: linear-gradient(90deg, rgba(250, 248, 248, 0.95) 0%, rgba(250, 248, 248, 0.92) 44%, rgba(250, 248, 248, 0.6) 62%, rgba(250, 248, 248, 0.1) 80%, transparent 92%); }
}

@media (max-width: 1000px) {
	.solve-head { flex-wrap: wrap; }
	.solve-hint { display: none; }
	html.has-symptom-rail .sym::before { transform: scaleY(1); }

	/* Stacked disclosure. Each panel collapses and expands independently of the
	 * others. The behaviour is gated on `has-symptom-rail`, which front-page.js
	 * adds only after every handler is bound, so without JavaScript every panel
	 * stays open and readable. The script starts every panel expanded and
	 * rewrites `aria-expanded` / `aria-hidden` as each one is collapsed. */
	html.has-symptom-rail .sym__content {
		max-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		overflow: hidden;
		transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
	}

	html.has-symptom-rail .sym.is-active .sym__content {
		max-height: 1200px;
		padding-top: 16px;
		padding-bottom: 28px;
	}
}

@media (max-width: 960px) {
	.team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.hero { min-height: auto; padding: 130px 0 90px; }
	/* Below 900px the crop is a much narrower vertical slice, so the 42%
	 * focal point tuned for the wide desktop slice misses the subject; 70%
	 * keeps him in frame from 360px to 900px (checked at 360/390/768). */
	.hero-media__img { object-position: 70% top; }
	.hero__lede { font-size: 17px; }
	.scroll-hint { display: none; }
}

@media (max-width: 620px) {
	.creds-grid { grid-template-columns: repeat(2, 1fr); }
	.video-card__badges { gap: 5px; }
	.video-badge { padding: 4px 6px; font-size: 8px; }
	.video-card__caption { font-size: 12px; }
	.video-card__time { font-size: 9px; }
	/* Near-full width on a phone; the vertical limit relaxes to 70vh because a
	 * 16 / 9 box at 94vw is nowhere near it in portrait, and holding 84vh here
	 * would only bite in landscape, where it still should. */
	.video-lightbox__frame { width: 94vw; max-width: calc(70vh * 16 / 9); border-radius: 8px; }
	.video-lightbox__close { top: 8px; right: 8px; width: 34px; height: 34px; }
	.team-section { padding: 88px 0; }
	.solve-section { padding: 88px 0; }
}

@media (max-width: 480px) {
	/* A full-height hero here would enlarge the 1926px master ~1.4x (soft,
	 * not an encoding issue), so below 480px the photo becomes a 660px band
	 * instead — downsampled, not enlarged. The mask fades its foot into the
	 * bone ground; the accent is clipped to match. `object-position` is
	 * untouched: the same 70% focal point still lands on the subject. */
	.hero-media__img {
		height: 660px;
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 84%, transparent 100%);
	}

	.hero-media__accent { height: 724px; }
}

@media (prefers-reduced-motion: reduce) {
	.video-badge--live::before { animation: none; }
	/* The play mark still grows on hover/focus so the feedback stays visible;
	 * it just arrives without a transition. There is no entrance animation to
	 * suppress — the overlay is simply there or not. */
	.video-card__play { transition: none; }
	/* The focused overlay arrives with no entrance movement at all: the frame's
	 * scale-in is exactly the "unnecessary transform" this query is for, and the
	 * fade it was paired with is not worth keeping on its own. The overlay is
	 * simply there, or not. */
	.video-lightbox[open], .video-lightbox[open]::backdrop, .video-lightbox[open] .video-lightbox__frame { animation: none; }
	.video-lightbox__close { transition: none; }
	/* The shared .reveal reduced-motion rule now lives in main.css §11. */
}

/* ==========================================================================
   05 · Industries
   ========================================================================== */

.industries-section {
	padding: 100px 0;
	background: var(--grey-sec);
}

.ind-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ind {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 230px;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #151515;
	isolation: isolate;
	transition:
		border-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}

/* The photograph sits behind the card's own stacking context, so the card
 * keeps a solid background while JavaScript is still loading the image. */
.ind::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	transform: scale(1.02);
	background-image: var(--ind-img);
	background-position: center;
	background-size: cover;
	filter: grayscale(0.22) brightness(1.06);
	content: "";
	transition:
		transform 0.5s var(--ease),
		filter 0.3s var(--ease);
}

.ind::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.12) 0%, rgba(12, 12, 12, 0.42) 58%, rgba(10, 10, 10, 0.9) 100%);
	content: "";
}

/*
 * Editable override: a card with a media-library photograph renders it as a
 * real <img> instead of the `--ind-img` background. It sits in the same place
 * as `::before` (behind the card's stacking context, under the `::after`
 * gradient) and carries the identical grayscale/zoom treatment and hover
 * response, so a card looks and behaves the same whether the photograph is
 * bundled or uploaded.
 */
.ind--has-media::before {
	display: none;
}

.ind__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	filter: grayscale(0.22) brightness(1.06);
	transition:
		transform 0.5s var(--ease),
		filter 0.3s var(--ease);
}

.ind:hover .ind__media,
html.has-gva-reveal .ind.reveal.is-revealed:hover .ind__media {
	transform: scale(1.07);
	filter: grayscale(0.06) brightness(1.1);
}

.ind--big {
	grid-column: span 2;
	min-height: 280px;
	padding: 34px;
}

/* Fixed icon slot height instead of the prototype's unsized inline-SVG line
 * box, so geometry doesn't depend on font metrics. */
.ind__icon {
	position: relative;
	display: flex;
	align-items: flex-start;
	height: 27px;
	color: var(--red);
}

.ind--big .ind__icon { height: 31px; }

/* Opts out of main.css's global `text-wrap: balance` for headings, which the
 * reference does not apply here: balancing "Pharmaceutical & Biotech" pushes
 * the ampersand onto the second line, where it starts a line on its own. */
.ind__title {
	margin-top: auto;
	color: var(--white);
	font-size: 20px;
	letter-spacing: -0.02em;
	text-wrap: wrap;
}

.ind--big .ind__title { font-size: 26px; }

.ind__tag {
	color: rgba(255, 255, 255, 0.66);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
}

/* The reveal wrapper resets `transform` at higher specificity than a bare
 * `.ind` rule, which would otherwise leave the card-lift hover dead once
 * revealed; restated here so hover behaves the same with or without the
 * reveal module running. */
html.has-gva-reveal .ind.reveal.is-revealed {
	transition:
		border-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}

.ind:hover,
html.has-gva-reveal .ind.reveal.is-revealed:hover {
	border-color: var(--red);
	transform: translateY(-3px);
}

.ind:hover::before {
	transform: scale(1.07);
	filter: grayscale(0.06) brightness(1.1);
}

/* ==========================================================================
   06 · Track record
   The card component itself (.cases / .case / .case__*) is promoted to
   main.css §9 — Related Cases on the Case Study single template needs it too.
   This section keeps only the Home-specific section wrapper.
   ========================================================================== */

.cases-section {
	padding: 104px 0;
	background: var(--bone);
}

/* ==========================================================================
   07 · How we work
   ========================================================================== */

.work-section {
	position: relative;
	padding: 104px 0;
	overflow: hidden;
	background: var(--grey-sec);
}

/* The prototype draws this as thirty empty elements: six columns of 7px on a
 * 13px gap, five rows of 3.5px dots. One tiled radial gradient on the same
 * 20 × 16.5px pitch renders identically without the nodes. */
.dot-matrix {
	position: absolute;
	top: 56px;
	right: 40px;
	width: 107px;
	height: 70px;
	background-image: radial-gradient(circle at 1.75px 1.75px, #b5b4b1 1.75px, transparent 1.75px);
	background-size: 20px 16.5px;
	pointer-events: none;
}

.steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 64px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	position: relative;
	padding-top: 46px;

	/* Drives both the numeral's size and the indent the copy needs to clear it. */
	--step-num: clamp(88px, 8.6vw, 118px);
}

.step__num {
	position: absolute;
	z-index: 0;
	top: 0;
	left: -8px;
	color: var(--red);
	font-size: var(--step-num);
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	line-height: 0.78;
	letter-spacing: -0.05em;
	user-select: none;
}

.step__body {
	position: relative;
	z-index: 1;
	padding-left: calc(var(--step-num) * 1.22 - 18px);
}

.step__title {
	max-width: 15ch;
	font-size: 24px;
	line-height: 1.14;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: pretty;
}

.step__title em {
	color: var(--red);
	font-style: normal;
}

.step__text {
	max-width: 23ch;
	margin-top: 20px;
	color: #4a4a4a;
	font-size: 18px;
	line-height: 1.55;
	text-wrap: pretty;
}

.step__kicker {
	display: flex;
	gap: 8px;
	margin-top: 22px;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.step__kicker span { color: var(--red); }

/* ==========================================================================
   Responsive — Industries, How we work
   Track record's own grid (.cases) is promoted to main.css §9 alongside the
   card component and carries its own matching breakpoints there.
   ========================================================================== */

@media (max-width: 960px) {
	.steps { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
	.dot-matrix { display: none; }
}

@media (max-width: 620px) {
	.ind-grid { grid-template-columns: 1fr; }
	.ind--big { grid-column: auto; }
	.steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   08 · Field notes
   ========================================================================== */

.notes-section {
	padding: 104px 0;
	background: var(--bone);
}

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

.notes-head .section-title {
	max-width: 660px;
	margin-top: 14px;
}

.notes-actions {
	display: flex;
	gap: 10px;
	margin: 0;
}

/* "All field notes" has no posts archive to point at until a Posts page is
 * assigned; until then it stays visually present but inert, the same
 * treatment the footer already gives an unresolved destination. */
.notes-actions .is-pending {
	cursor: default;
	opacity: 0.5;
	pointer-events: none;
}

.notes-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 24px;
}

.note {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
}

.note--feat {
	grid-row: span 2;
}

/* A single published note has no second column to fill, and the designed
   two-column grid would read as broken. It becomes a horizontal lead instead —
   the same treatment the Field Notes index gives its own lead — so one note
   still fills the section deliberately. Two notes need nothing: the featured
   card is simply the taller of the pair. */
.note--feat:only-child {
	grid-column: 1 / -1;
	grid-row: auto;
}

@media (min-width: 861px) {
	.note--feat:only-child {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	.note--feat:only-child .note__cover {
		aspect-ratio: auto;
		min-height: 300px;
		height: 100%;
		border-right: 1px solid var(--line);
		border-bottom: 0;
	}

	.note--feat:only-child .note__body {
		justify-content: center;
		padding: clamp(24px, 3vw, 40px);
	}

	/* The body is centred, so the chips must not be pushed to its bottom. */
	.note--feat:only-child .note__tags {
		margin-top: 4px;
	}
}

.note__cover {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background: #F2F1EF;
}

.note--feat .note__cover {
	aspect-ratio: 16 / 10;
}

.note__cover-link {
	position: absolute;
	inset: 0;
	display: block;
}

.note__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: grayscale(1) contrast(1.06) brightness(0.94);
}

/* Designed cover placeholder — never the prototype's empty <image-slot>.
 * Shown for a real post that has no featured image. */
.note__cover-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image:
		linear-gradient(rgba(18, 18, 18, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 18, 18, 0.05) 1px, transparent 1px);
	background-size: 22px 22px;
}

.note__cover-icon {
	width: 15%;
	min-width: 32px;
	max-width: 46px;
	height: auto;
	color: var(--text-muted);
	opacity: 0.55;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.4;
}

.note__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
}

.note__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.note__sep {
	opacity: 0.5;
}

.note__title {
	font-size: 18px;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

.note--feat .note__title {
	font-size: 24px;
}

.note__title a {
	color: inherit;
}

.note__title a:hover {
	color: var(--red);
}

.note__excerpt {
	margin: 0;
	color: #4a4a4a;
	font-size: 14px;
	line-height: 1.5;
}

.note__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.note__tags li {
	padding: 3px 7px;
	border: 1px solid var(--line);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
}

/* ==========================================================================
   09 · FAQ + Contact
   ========================================================================== */

.faq-contact-section {
	position: relative;
	overflow: hidden;
	padding: 150px 0 128px;
	background: var(--black);
	color: var(--white);
}

.faq-contact-texture {
	position: absolute;
	top: -130px;
	right: -130px;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(238, 39, 55, 0.4), rgba(238, 39, 55, 0) 60%);
	pointer-events: none;
}

.faq-contact-texture::after {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
	background-size: 14px 14px;
	-webkit-mask-image: radial-gradient(circle, #000 38%, transparent 68%);
	mask-image: radial-gradient(circle, #000 38%, transparent 68%);
	content: "";
}

.faq-contact-head {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 60px;
}

.faq-contact-head .section-title {
	color: var(--white);
}

.faq-contact-head__cta-title {
	margin-top: 20px;
	color: #cfcfcf;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.faq-contact-layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	align-items: start;
	gap: 56px;
}

/* --- FAQ accordion -------------------------------------------------- */

.faq-list {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.faq-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.faq-item__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 22px 0;
	border: 0;
	background: none;
	color: var(--white);
	text-align: left;
	cursor: pointer;
}

.faq-item__question {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.faq-item__icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	position: absolute;
	background: var(--red);
	transition: transform 0.25s;
	content: "";
}

.faq-item__icon::before {
	top: 7px;
	left: 0;
	width: 16px;
	height: 2px;
}

.faq-item__icon::after {
	top: 0;
	left: 7px;
	width: 2px;
	height: 16px;
}

.faq-item.is-open .faq-item__icon::after {
	transform: scaleY(0);
}

/* Base state: every answer stays fully visible and readable without
 * JavaScript — a plain FAQ list, not a broken accordion. The collapsing
 * behaviour only exists once the script adds `.has-faq-accordion`. */
.faq-item__panel {
	overflow: hidden;
}

.faq-item__panel p {
	margin: 0;
	padding: 0 40px 24px 0;
	color: #b9b9b9;
	font-size: 14.5px;
	line-height: 1.6;
}

html.has-faq-accordion .faq-item__panel {
	max-height: 0;
	transition: max-height 0.35s ease;
}

html.has-faq-accordion .faq-item.is-open .faq-item__panel {
	max-height: 600px;
}

/* --- Contact form ----------------------------------------------------- */

.contact-form {
	padding: 32px;
	border-radius: 10px;
	background: var(--cool);
	color: var(--black);
}

.contact-form__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.contact-form__subtitle {
	margin: 6px 0 22px;
	color: #555;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0 0 16px;
}

.contact-form__field label {
	color: #555;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.contact-form__required-mark {
	color: var(--red);
}

.contact-form__required-note {
	margin: 0 0 14px;
	color: #888;
	font-size: 11px;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
	width: 100%;
	padding: 12px 13px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 7px;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-sans);
	font-size: 15px;
}

.contact-form__field textarea {
	min-height: 96px;
	resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 2px rgba(238, 39, 55, 0.15);
}

/* Privacy notice (inc/contact.php, gva_contact_privacy_notice_markup()):
 * styled visually secondary to the fields/CTA — muted, capped measure, set
 * off by a hairline — so it reads as an aside, not more form copy. */
.contact-form__privacy-notice {
	max-width: 60ch;
	margin: 4px 0 18px;
	padding-top: 12px;
	border-top: 1px solid #e3e3e3;
	color: #555;
	font-size: 12.5px;
	line-height: 1.6;
}

.contact-form__privacy-title {
	margin: 0 0 6px;
	color: #333;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.contact-form__privacy-notice p {
	margin: 0 0 6px;
}

.contact-form__privacy-notice p:last-child {
	margin-bottom: 0;
}

.contact-form__privacy-notice strong {
	color: #333;
	font-weight: 700;
}

/* Underlined explicitly since colour alone (main.css's undecorated `a`)
 * wouldn't be enough; `--red-dark` matches legal.css's accessible link tone. */
.contact-form__privacy-notice a {
	color: var(--red-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.contact-form__privacy-notice a:hover {
	text-decoration-thickness: 2px;
}

.contact-form__submit {
	width: 100%;
}

/*
 * Fetch-enhanced submit only: the form is marked busy and the button
 * disabled while a fetch() submission is in flight (assets/js/faq-contact.js).
 * The native no-JS POST never enters this state.
 */
.contact-form[aria-busy='true'] {
	cursor: progress;
}

.contact-form__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

/*
 * Honeypot wrapper: pushed off-screen rather than `display:none` /
 * `visibility:hidden`, which a bot can detect and which would weaken the
 * trap. The field stays in the DOM and in the submitted payload; a real
 * visitor never reaches it (out of tab order, hidden from AT on the wrapper).
 */
.contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.contact-form__status {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 7px;
	background: var(--white);
	color: #333;
	font-size: 13px;
	line-height: 1.5;
}

.contact-form__status[hidden] {
	display: none;
}

.contact-form__status a {
	color: var(--red);
}

.contact-form__status--success {
	border-color: rgba(23, 130, 63, 0.4);
	background: #f2f9f4;
	color: #1c5732;
}

.contact-form__status--error {
	border-color: rgba(238, 39, 55, 0.4);
	background: #fdf3f4;
	color: #8a1f28;
}

.contact-form__status--error a {
	color: #8a1f28;
	text-decoration: underline;
}

.contact-form__micro {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	color: #555;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.03em;
	text-align: center;
}

.contact-form__micro li {
	position: relative;
	padding-left: 12px;
}

.contact-form__micro li::before {
	position: absolute;
	top: 0.45em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--red);
	content: "";
}

.contact-trust {
	margin-top: 22px;
}

.contact-trust__channels {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 12px;
}

/* One icon+label pattern for every channel row (email, LinkedIn, WhatsApp) —
   `.contact-trust__link` carries the layout, not a rule per platform. */
.contact-trust__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	color: #cfcfcf;
}

.contact-trust__link span {
	overflow-wrap: anywhere;
}

a.contact-trust__link:hover {
	color: var(--red);
}

.contact-trust__icon {
	flex: none;
	color: #7d7d7d;
}

.contact-trust__link--pending {
	color: #7d7d7d;
}

/* ==========================================================================
   Responsive — Field notes, FAQ + Contact
   ========================================================================== */

@media (max-width: 960px) {
	.faq-contact-head,
	.faq-contact-layout {
		grid-template-columns: 1fr;
	}

	.notes-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.note--feat {
		grid-row: auto;
	}
}

@media (max-width: 620px) {
	.notes-grid {
		grid-template-columns: 1fr;
	}
}
