/* ===========================================================
   HERO v3 — two-column dossier on a plain ground
   Loaded after style.css so it can refine the base hero rules.
   =========================================================== */

/* ---------- Layout ---------- */
.hero {
	width: min(1180px, 92vw);
	padding-bottom: 4.5rem; /* keeps the readout clear of the scroll cue */
}

/* a legacy global `nav { height: 17vh }` was quietly stretching this row */
.hero__socials {
	height: auto;
	justify-content: flex-start;
}

.hero__eyebrow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero__clock {
	letter-spacing: 0.18em;
	color: var(--ink-faint);
}

.hero__clock time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.62fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: end;
}

.hero__main { min-width: 0; }

/* the old stacked meta list becomes a readout column */
.hero__meta {
	margin: 0;
	max-width: none;
	gap: 0;
	padding-left: clamp(1.1rem, 2vw, 1.7rem);
	border-left: 1px solid var(--line-strong);
}

.hero__row {
	grid-template-columns: 1fr;
	gap: 0.25rem;
	padding: 0.85rem 0;
	border-top: 0;
	border-bottom: 1px solid var(--line);
}

.hero__row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__row dd { font-size: 0.98rem; line-height: 1.5; }

/* "last updated" lives in the footer: mono, with a tone dot (fresh → stale → gone) */
.footer__stamp {
	margin-top: 0.35rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	color: var(--ink-faint);
}

.footer__stamp time { color: var(--ink-dim); }

.footer__stamp time::before {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: var(--ink-faint);
	transform: translateY(-1px);
}

.footer__stamp time[data-tone="fresh"]::before { background: #43b581; }
.footer__stamp time[data-tone="aging"]::before { background: #faa61a; }
.footer__stamp time[data-tone="stale"]::before { background: #f04747; }

/* ---------- Load-in: stagger the pieces inside the grid ---------- */
.hero > .hero__grid { opacity: 1; transform: none; animation: none; }

.hero__main > :not(.name-hover-image),
.hero__meta {
	opacity: 0;
	transform: translateY(16px);
	animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__main > .hero__name    { animation-delay: 0.16s; }
.hero__main > .hero__summary { animation-delay: 0.26s; }
.hero__main > .hero__actions { animation-delay: 0.38s; }
.hero__meta                  { animation-delay: 0.34s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero__grid {
		grid-template-columns: 1fr;
		gap: 1.8rem;
		align-items: start;
	}

	.hero__meta {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--line-strong);
		max-width: 44rem;
	}

	.hero__row {
		grid-template-columns: 4.5rem 1fr;
		gap: 1rem;
		align-items: baseline;
	}
}

@media (max-width: 600px) {
	.hero__row { grid-template-columns: 1fr; gap: 0.15rem; }
	.hero__clock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__main > :not(.name-hover-image),
	.hero__meta { opacity: 1; transform: none; animation: none; }
}


/* ===========================================================
   Plain ground + typography
   The hero sits on flat near-black. The site lattice only
   starts below it, fading in over the last stretch.
   =========================================================== */
#profile { isolation: isolate; }

#profile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: -180px;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to bottom, var(--background-color) calc(100% - 180px), transparent 100%);
}

.hero__eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	color: var(--ink-faint);
	margin-bottom: clamp(2.4rem, 8vh, 4.6rem);
	border-bottom-color: var(--line);
}

.hero__name {
	font-weight: 700;
	font-size: clamp(3.4rem, 9.4vw, 7.8rem);
	line-height: 0.9;
	letter-spacing: -0.055em;
	font-optical-sizing: auto;
	font-variation-settings: "opsz" 96;
	text-rendering: optimizeLegibility;
}

.hero__summary {
	max-width: 33rem;
	margin-top: clamp(1.5rem, 3.4vh, 2.2rem);
	font-size: clamp(1.04rem, 1.45vw, 1.2rem);
	line-height: 1.65;
	font-weight: 400;
	letter-spacing: -0.005em;
	color: var(--ink-dim);
	text-wrap: pretty;
}

/* key phrases get a highlighter swatch in their section's colour: it sweeps in
   after the page loads, and fills the whole line on hover for the two that link */
.hero-highlight {
	--hl: var(--ink);
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	padding: 0 0.14em;
	margin: 0 -0.14em;
	border-radius: 3px;
	background-image: linear-gradient(color-mix(in srgb, var(--hl) 50%, transparent), color-mix(in srgb, var(--hl) 50%, transparent));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0.5em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size 0.9s cubic-bezier(0.2, 0, 0, 1), color 0.2s ease;
}

.hero-highlight--manchester { --hl: var(--hero-link-manchester); }
.hero-highlight--statics { --hl: var(--statics-brand-red); }
.hero-highlight--thales { --hl: var(--hero-link-thales); }

/* JS arms the swatch (0 width), then lights each one in turn */
.hero-highlight.hl-armed { background-size: 0% 0.5em; transition: none; }

a.hero-highlight { cursor: pointer; }
a.hero-highlight:hover,
a.hero-highlight:focus-visible {
	background-size: 100% 100%;
	transition-duration: 0.3s;
	outline: none;
}

.hero-highlight::before,
.hero-highlight::after { content: none; }

.hero__actions { margin-top: clamp(1.8rem, 4vh, 2.6rem); }

.hero__meta { border-left-color: var(--line); }

.hero__row { padding: 1rem 0; }

.hero__row dt {
	font-size: 0.64rem;
	letter-spacing: 0.24em;
	color: var(--ink-faint);
}

.hero__row dd {
	font-size: 0.96rem;
	line-height: 1.55;
	letter-spacing: -0.003em;
	color: var(--ink-dim);
}

.hero__link { font-weight: 500; }


/* ===========================================================
   Footer — quiet editorial layout instead of one long link row
   =========================================================== */
footer.site-footer {
	height: auto;
	margin: 0;
	padding: clamp(3rem, 7vw, 5rem) 0 0;
	border-top: 1px solid var(--line);
	text-align: left;
}

.site-footer__inner {
	width: min(1100px, 92vw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(2.2rem, 6vw, 5rem);
	padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.site-footer__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	letter-spacing: -0.045em;
	line-height: 1;
	color: var(--ink);
}

footer .site-footer__blurb {
	max-width: 24rem;
	margin: 0.9rem 0 0;
	font-family: var(--font-body);
	font-size: 0.98rem;
	line-height: 1.6;
	letter-spacing: 0;
	text-align: left;
	color: var(--ink-dim);
}

.site-footer__mail {
	display: inline-block;
	margin-top: 1.2rem;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--ink);
	border-bottom: 1px solid var(--line-strong);
	transition: border-color 0.2s ease;
}

.site-footer__mail:hover { border-bottom-color: var(--ink); }

.site-footer__nav {
	height: auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	justify-content: normal;
	align-items: start;
	margin: 0;
}

.site-footer__nav h2 {
	margin: 0 0 1rem;
	font-family: var(--font-mono);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.site-footer__nav a {
	font-family: var(--font-body);
	font-size: 0.96rem;
	color: var(--ink-dim);
	transition: color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: var(--ink); }

.site-footer__base {
	width: min(1100px, 92vw);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	padding: 1.1rem 0 1.7rem;
	border-top: 1px solid var(--line);
}

footer .site-footer__base p,
.site-footer__base a {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-align: left;
	color: var(--ink-faint);
}

.site-footer__base a { transition: color 0.2s ease; }
.site-footer__base a:hover { color: var(--ink); }
footer .site-footer__base .footer__stamp { margin: 0; }

@media (max-width: 760px) {
	footer.site-footer { height: auto; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 2.4rem; }
	.site-footer__nav { margin-bottom: 0; }
	.site-footer__base { flex-direction: column; align-items: flex-start; }
}


/* ===========================================================
   Hero v4 — less, but better
   No eyebrow, no labels, no hairlines: a name, one sentence,
   one action, three quiet facts.
   =========================================================== */
.hero {
	width: min(1120px, 90vw);
	padding-bottom: 3.5rem;
}

.hero__top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: clamp(3rem, 11vh, 6rem);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.hero__top .hero__live[hidden] { display: none; }

.hero__top .hero__live {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--ink-dim);
}

.hero__top .hero__clock { margin-left: auto; letter-spacing: 0.2em; }

.hero__grid {
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.62fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: end;
}

.hero__name { font-size: clamp(3.6rem, 10.2vw, 8.6rem); }

.hero__summary {
	max-width: 30rem;
	margin-top: clamp(1.6rem, 3.6vh, 2.4rem);
}

.hero__actions { margin-top: clamp(2rem, 4.5vh, 3rem); }

/* three quiet facts: lead in ink, detail in dim — no labels, no rules */
.hero__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.7rem;
	padding-bottom: 0.35rem;
	opacity: 0;
	transform: translateY(16px);
	animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.hero__facts li { display: grid; gap: 0.25rem; }

.hero__facts b {
	font-weight: 500;
	font-size: 1.02rem;
	letter-spacing: -0.012em;
	color: var(--ink);
}

.hero__facts span {
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ink-dim);
}

/* the scroll cue becomes just an arrow */
.scroll-down-container p { display: none; }

@media (max-width: 980px) {
	.hero__grid { grid-template-columns: 1fr; gap: 2.6rem; align-items: start; }
	.hero__facts { max-width: 28rem; }
}

@media (max-width: 600px) {
	.hero__top .hero__clock { display: none; }
	.hero__top { margin-bottom: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__facts { opacity: 1; transform: none; animation: none; }
}
