@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
	--bg-page: #ffffff;
	--bg-glow: rgba(0, 0, 0, 0.03);
	--surface: #ffffff;
	--surface-strong: #ffffff;
	--surface-soft: #f6f7f9;
	--text-strong: #000000;
	--text-body: #000000;
	--text-muted: rgba(0, 0, 0, 0.58);
	--border-soft: rgba(0, 0, 0, 0.14);
	--border-strong: #000000;
	--border-subtle: rgba(0, 0, 0, 0.1);
	--accent: #000000;
	--accent-deep: #000000;
	--accent-soft: rgba(0, 0, 0, 0.08);
	--nav-bg: rgba(255, 255, 255, 0.98);
	--nav-border: rgba(0, 0, 0, 0.1);
	--nav-hover: rgba(0, 0, 0, 0.06);
	--nav-active-bg: #000000;
	--nav-active-text: #ffffff;
	--button-primary-bg: #000000;
	--button-primary-text: #ffffff;
	--button-secondary-border: rgba(0, 0, 0, 0.16);
	--button-secondary-hover: rgba(0, 0, 0, 0.06);
	--button-secondary-bg: #ffffff;
	--contact-bg: #000000;
	--contact-text: #ffffff;
	--contact-selection-bg: rgba(255, 255, 255, 0.35);
	--contact-primary-bg: #ffffff;
	--contact-primary-text: #000000;
	--contact-secondary-border: #ffffff;
	--contact-secondary-hover: rgba(255, 255, 255, 0.12);
	--contact-secondary-active: rgba(255, 255, 255, 0.2);
	--timeline-line-start: rgba(0, 0, 0, 0.9);
	--timeline-line-end: rgba(0, 0, 0, 0.18);
	--timeline-dot-ring: rgba(0, 0, 0, 0.08);
	--overlay-backdrop: rgba(0, 0, 0, 0.92);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.07);
	--shadow-md: 0 14px 32px rgba(0, 0, 0, 0.05);
}

:root[data-theme='dark'] {
	--bg-page: #0d1117;
	--bg-glow: rgba(255, 255, 255, 0.07);
	--surface: #121923;
	--surface-strong: #0f151e;
	--surface-soft: #18212d;
	--text-strong: #f5f7fb;
	--text-body: rgba(245, 247, 251, 0.94);
	--text-muted: rgba(245, 247, 251, 0.68);
	--border-soft: rgba(255, 255, 255, 0.14);
	--border-strong: rgba(255, 255, 255, 0.22);
	--border-subtle: rgba(255, 255, 255, 0.1);
	--accent: #f5f7fb;
	--accent-deep: #f5f7fb;
	--accent-soft: rgba(255, 255, 255, 0.12);
	--nav-bg: rgba(13, 17, 23, 0.94);
	--nav-border: rgba(255, 255, 255, 0.12);
	--nav-hover: rgba(255, 255, 255, 0.08);
	--nav-active-bg: #f5f7fb;
	--nav-active-text: #0d1117;
	--button-primary-bg: #f5f7fb;
	--button-primary-text: #0d1117;
	--button-secondary-border: rgba(255, 255, 255, 0.18);
	--button-secondary-hover: rgba(255, 255, 255, 0.08);
	--button-secondary-bg: transparent;
	--contact-bg: #f5f7fb;
	--contact-text: #0d1117;
	--contact-selection-bg: rgba(13, 17, 23, 0.18);
	--contact-primary-bg: #0d1117;
	--contact-primary-text: #f5f7fb;
	--contact-secondary-border: #0d1117;
	--contact-secondary-hover: rgba(13, 17, 23, 0.08);
	--contact-secondary-active: rgba(13, 17, 23, 0.14);
	--timeline-line-start: rgba(245, 247, 251, 0.85);
	--timeline-line-end: rgba(245, 247, 251, 0.16);
	--timeline-dot-ring: rgba(255, 255, 255, 0.12);
	--overlay-backdrop: rgba(4, 7, 12, 0.94);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
	--shadow-md: 0 14px 32px rgba(0, 0, 0, 0.24);
}

body {
	background:
		radial-gradient(circle at top left, var(--bg-glow), transparent 32%),
		var(--bg-page);
	background-attachment: fixed;
	color: var(--text-body);
	font-family: 'IBM Plex Sans', sans-serif;
	transition: background-color 0.25s ease, color 0.25s ease;
}

body,
input,
select,
textarea {
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--text-body);
}

@media screen and (min-width: 981px) {
	html {
		font-size: 90%;
	}

	body,
	input,
	select,
	textarea {
		font-size: 12.6pt;
	}

	#wrapper {
		width: min(1062px, calc(100% - 3rem));
	}
}

@media screen and (min-width: 1681px) {
	body,
	input,
	select,
	textarea {
		font-size: 15.3pt;
	}
}

@media screen and (min-width: 981px) and (max-width: 1280px) {
	body,
	input,
	select,
	textarea {
		font-size: 10.8pt;
	}
}

a:hover,
strong,
b,
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-strong);
}

h1,
h2,
h3,
h4,
h5,
h6,
#nav ul li a,
.nav-toggle,
.button {
	font-family: 'Space Grotesk', sans-serif;
	letter-spacing: -0.04em;
}

#wrapper {
	width: min(1180px, calc(100% - 3rem));
}

#header.alt {
	padding: 6.5em 0 3.5em 0;
}

.hero-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
	gap: 3rem;
	align-items: center;
	padding: 0 1rem;
}

.hero-copy {
	max-width: 42rem;
	text-align: left;
}

.eyebrow {
	margin-bottom: 1rem;
	color: var(--text-strong);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

#header h1 {
	margin-bottom: 0.5rem;
	font-size: clamp(3.5rem, 7vw, 5.8rem);
	line-height: 0.95;
	letter-spacing: -0.06em;
}

.hero-lead {
	max-width: 42rem;
	margin-bottom: 1rem;
	color: var(--text-strong);
	font-size: clamp(1.28rem, 1.8vw, 1.65rem);
	line-height: 1.32;
}

.hero-summary {
	max-width: 42rem;
	margin-bottom: 2rem;
	color: var(--text-muted);
	font-size: 1.02rem;
}

.hero-actions,
.hero-signals,
.proof-tags,
.proof-links,
.link-list,
.contact-actions {
	list-style: none;
	padding-left: 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
	margin: 0 0 1.75rem 0;
}

.hero-actions li {
	margin: 0;
}

.hero-signals {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 0;
}

.hero-signals li {
	padding: 0.72rem 0.95rem;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-body);
	font-size: 0.92rem;
	text-align: center;
}

.hero-visual {
	display: grid;
	gap: 1rem;
}

.hero-portrait {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border-strong);
	border-radius: 1.25rem;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
}

.hero-portrait img {
	display: block;
	width: 100%;
	/* Taller than 4:3 so less vertical crop; bottom anchor keeps feet in frame */
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 75% bottom;
}

.hero-note {
	padding: 1.15rem 1.2rem;
	border: 1px solid var(--border-strong);
	border-radius: 1.25rem;
	background: var(--surface);
}

.hero-note .label {
	margin-bottom: 0.55rem;
	color: var(--text-strong);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

#nav {
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	width: auto;
	max-width: none;
	background: var(--nav-bg);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--nav-border);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
	color: var(--text-body);
}

.nav-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
}

#nav .nav-links {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: min(100%, 34rem);
}

#nav .nav-links li {
	margin: 0;
}

#nav input,
#nav select,
#nav textarea,
#nav a:hover,
#nav strong,
#nav b,
#nav h1,
#nav h2,
#nav h3,
#nav h4,
#nav h5,
#nav h6 {
	color: var(--text-body);
}

#nav.alt {
	background: var(--nav-bg);
}

#nav ul li a {
	color: var(--text-body);
	padding: 0 1rem;
	white-space: nowrap;
}

#nav ul li a:hover {
	color: var(--text-strong);
	background-color: var(--nav-hover);
}

#nav ul li a.active {
	background: var(--nav-active-bg);
	color: var(--nav-active-text) !important;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0 1rem;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-strong) !important;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
	background: var(--button-secondary-hover);
}

.nav-toggle:focus-visible {
	outline: 2px solid var(--text-strong);
	outline-offset: 3px;
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 2.6rem;
	padding: 0 1rem;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-strong) !important;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
		transform 0.2s ease;
}

.theme-toggle:hover {
	background: var(--button-secondary-hover);
}

.theme-toggle:focus-visible {
	outline: 2px solid var(--text-strong);
	outline-offset: 3px;
}

.theme-toggle-dot {
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--text-strong) 0%, var(--surface) 100%);
	box-shadow: inset 0 0 0 1px var(--button-secondary-border);
}

#main {
	overflow: hidden;
	border-radius: 1.6rem;
	box-shadow: var(--shadow-lg);
	background-color: var(--surface);
	background-image: none;
	color: var(--text-body);
}

#main input,
#main select,
#main textarea,
#main a:hover,
#main strong,
#main b {
	color: var(--text-body);
}

#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
	color: var(--text-strong);
}

#main > .main {
	position: relative;
	padding: 5.4rem 5rem;
	border-top-color: var(--border-subtle);
}

#main > .main + .main {
	border-top: 1px solid var(--border-soft);
}

#main > .main + .main:before {
	content: '';
	position: absolute;
	top: 0;
	left: 5rem;
	width: 6rem;
	height: 3px;
	background: var(--accent-deep);
}

#main > .main:nth-child(odd) {
	background: var(--surface);
}

#main > .main:nth-child(even) {
	background: var(--surface-strong);
}

.custom-section {
	color: var(--text-body);
}

.section-heading {
	max-width: 48rem;
	margin-bottom: 2.6rem;
}

.section-heading.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.section-heading h2 {
	color: var(--text-strong);
	font-size: clamp(2rem, 4vw, 3.35rem);
	line-height: 1.02;
}

.section-heading p:last-child {
	margin-bottom: 0;
}

.overview-grid,
.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
	gap: 2rem;
}

.journey-wrap {
	max-width: 100%;
}

.journey-intro {
	margin-bottom: 2rem;
}

.overview-copy p:last-child,
.content-copy p:last-child,
.journey-intro p:last-child {
	margin-bottom: 0;
}

.overview-panel,
.content-panel,
.proof-card,
.focus-card {
	border: 1px solid var(--border-strong);
	border-radius: 1.5rem;
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.overview-panel,
.content-panel {
	padding: 1.6rem;
}

.fact-list li {
	display: grid;
	gap: 0.35rem;
	padding: 1rem 0;
	border-top: 1px solid var(--border-subtle);
}

.fact-list li:first-child {
	padding-top: 0.2rem;
	border-top: 0;
}

.fact-label {
	color: var(--text-muted);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fact-value {
	color: var(--text-strong);
	font-size: 1rem;
}

.metric-band {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2.2rem;
}

.metric-band .metric-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.3rem 1.4rem;
	border-radius: 1.35rem;
	border: 1px solid var(--border-strong);
	background: var(--surface);
	box-shadow: var(--shadow-md);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.metric-band .metric-card:hover {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	border-color: var(--text-strong);
}

.metric-band .metric-card:focus-visible {
	outline: 2px solid var(--text-strong);
	outline-offset: 3px;
}

#proof-building-energy,
#proof-nutrition {
	scroll-margin-top: 5.5rem;
}

.metric-band strong {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--text-strong);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 2rem;
	line-height: 1;
}

.metric-band .metric-card-desc {
	color: var(--text-muted);
	flex: 1 1 auto;
}

.metric-band .metric-card-cta {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--border-soft);
	width: 100%;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-strong);
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.metric-band .metric-card-cta::after {
	content: '→';
	font-size: 1.05rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

.metric-band .metric-card:hover .metric-card-cta::after {
	transform: translateX(4px);
}

.focus-grid,
.proof-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.2rem;
}

.focus-card,
.proof-card {
	padding: 1.6rem;
	min-width: 0;
}

.card-index,
.proof-type {
	margin-bottom: 0.85rem;
	color: var(--accent-deep);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.focus-card h3,
.proof-card h3,
.overview-panel h3,
.content-panel h3 {
	color: var(--text-strong);
	font-size: 1.35rem;
	line-height: 1.05;
}

.featured-proof {
	background: var(--surface);
}

.publication-figure {
	margin: 1.25rem 0 0;
	max-width: 100%;
	min-width: 0;
}

.publication-figure img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border-soft);
	border-radius: 0.85rem;
	box-shadow: var(--shadow-md);
}

.publication-figure figcaption {
	margin-top: 0.55rem;
	font-size: 0.84rem;
	line-height: 1.35;
	color: var(--text-muted);
	text-align: center;
}

.proof-tags,
.proof-links,
.link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 1.2rem 0 0 0;
}

.proof-tags li {
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--border-soft);
	background: var(--surface);
	color: var(--text-strong);
	font-size: 0.86rem;
	font-weight: 500;
}

.proof-card .button {
	margin-top: 1.35rem;
}

.proof-links a,
.link-list a {
	display: inline-block;
	padding-bottom: 0.18rem;
	border-bottom: 1px solid var(--border-strong);
	color: var(--text-strong);
}

.journey-interleaved-main {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

.journey-interleaved-main .timeline-item {
	margin-bottom: 0;
	padding-left: 1.25rem;
}

.journey-interleaved-main > .timeline-item:last-child {
	padding-bottom: 0;
}

.journey-media-cell--empty {
	display: none;
}

.journey-media-cell .journey-figure {
	margin: 0;
}

.journey-figure {
	margin: 0;
}

/* Frame only the photo so long captions do not shrink the image area (Radix vs graduation rows). */
.journey-media-cell .journey-image-frame {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-md);
}

/* Square Radix photo: show full frame (incl. T-shirt logo) — no crop; letterbox sides inside 3:2 */
.journey-media-cell .journey-image-frame--contain {
	background: var(--surface-soft);
}

.journey-image-frame--contain .journey-image {
	object-fit: contain;
}

.journey-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.journey-figure figcaption {
	margin-top: 0.55rem;
	font-size: 0.84rem;
	line-height: 1.35;
	color: var(--text-muted);
	text-align: center;
}

/* Institution logos — same card width as photos; PhD: UQ + SAAFE side-by-side (both landscape wordmarks) */
.journey-figure--institution {
	margin: 0;
}

.journey-logo-stack {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	aspect-ratio: 3 / 2;
	padding: 0.65rem 0.85rem;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-md);
	background: var(--surface-soft);
	border: 1px solid var(--border-subtle);
	min-height: 0;
}

/* Equal columns: UQ (horizontal lockup) and SAAFE are both wide; scale with object-fit: contain */
.journey-logo-stack .journey-logo-frame {
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media screen and (max-width: 520px) {
	.journey-logo-stack {
		flex-direction: column;
		justify-content: center;
		gap: 0.45rem;
		padding: 0.55rem 0.65rem;
	}

	.journey-logo-stack .journey-logo-frame {
		flex: 0 1 auto;
		max-width: 100%;
		width: 100%;
	}
}

.journey-logo-frame--single {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.1rem 1.25rem;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-md);
	background: var(--surface);
	border: 1px solid var(--border-subtle);
}

.journey-logo-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: center;
}

/* Landscape wordmarks: fill frame width, cap height so both marks stay legible in the 3:2 card */
.journey-logo-img--uq-wide,
.journey-logo-img--saafe {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Square / stacked UQ mark (uq-logo.png) — portrait content; same contain rules, may letterbox horizontally */
.journey-logo-img--uq-stacked {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.timeline {
	position: relative;
	padding-left: 1.25rem;
}

.timeline:before {
	content: '';
	position: absolute;
	top: 0.4rem;
	bottom: 0.4rem;
	left: 0.2rem;
	width: 2px;
	background: linear-gradient(180deg, var(--timeline-line-start), var(--timeline-line-end));
}

.timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(6.5rem, 7.5rem) minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1.4rem;
	padding: 0.15rem 0 0.9rem 0;
}

.timeline-item:before {
	content: '';
	position: absolute;
	top: 0.45rem;
	left: -1.15rem;
	width: 0.8rem;
	height: 0.8rem;
	border: 2px solid var(--surface);
	border-radius: 50%;
	background: var(--accent-deep);
	box-shadow: 0 0 0 5px var(--timeline-dot-ring);
}

.timeline-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.timeline-year {
	color: var(--accent-deep);
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.95rem;
}

.content-panel {
	background: var(--surface);
}

.content-panel h3,
.content-panel a {
	color: var(--text-strong);
}

.content-panel .link-list a {
	border-bottom-color: var(--border-soft);
}

/* Connect: #main .button / #main h* from main.css beat .section-contact — scope with #main #contact */
#main #contact.section-contact {
	background: var(--contact-bg) !important;
	color: var(--contact-text);
}

#main #contact.section-contact .eyebrow,
#main #contact.section-contact .section-heading h2,
#main #contact.section-contact .section-heading p {
	color: var(--contact-text) !important;
}

#main #contact.section-contact .section-heading h2 {
	background-color: transparent !important;
}

#main #contact.section-contact header.major h2::after,
#main #contact.section-contact .section-heading h2::after {
	display: none !important;
	content: none !important;
}

#main #contact.section-contact ::selection {
	background: var(--contact-selection-bg);
	color: var(--contact-text);
}

#main #contact.section-contact .button.primary,
#main #contact.section-contact .button.primary:hover,
#main #contact.section-contact .button.primary:active {
	background-color: var(--contact-primary-bg) !important;
	background-image: none !important;
	color: var(--contact-primary-text) !important;
	box-shadow: none !important;
}

#main #contact.section-contact .button:not(.primary),
#main #contact.section-contact .button:not(.primary):hover,
#main #contact.section-contact .button:not(.primary):active {
	background-color: transparent !important;
	box-shadow: inset 0 0 0 2px var(--contact-secondary-border) !important;
	color: var(--contact-text) !important;
}

#main #contact.section-contact .button:not(.primary):hover {
	background-color: var(--contact-secondary-hover) !important;
}

#main #contact.section-contact .button:not(.primary):active {
	background-color: var(--contact-secondary-active) !important;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
	margin: 0;
}

.button {
	border-radius: 999px;
	padding: 0 1.3rem;
	box-shadow: none;
}

.button:not(.primary) {
	box-shadow: inset 0 0 0 1px var(--button-secondary-border);
	color: var(--text-strong) !important;
}

.button:not(.primary):hover {
	background: var(--button-secondary-hover);
}

.hero-actions .button:not(.primary) {
	box-shadow: inset 0 0 0 1px var(--border-strong);
	color: var(--text-strong) !important;
	background: var(--surface);
}

.hero-actions .button:not(.primary):hover {
	background: var(--button-secondary-hover);
}

.button.primary {
	background: var(--button-primary-bg) !important;
	color: var(--button-primary-text) !important;
}

#main .button.primary,
#main .button.primary:hover,
#main .button.primary:active {
	background: var(--button-primary-bg) !important;
	color: var(--button-primary-text) !important;
}

.button:hover {
	transform: translateY(-1px);
}

#footer {
	padding-bottom: 2rem;
}

#footer .copyright {
	color: var(--text-muted);
}

@media screen and (min-width: 981px) {
	.journey-interleaved-main {
		display: grid;
		grid-auto-flow: row dense;
		grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
		column-gap: 2rem;
		row-gap: 1.4rem;
		align-items: start;
		position: relative;
	}

	/* Timeline spine aligned with column 2 (matches .timeline line position on other pages) */
	.journey-interleaved-main::before {
		content: '';
		position: absolute;
		top: 0.4rem;
		bottom: 0.4rem;
		left: calc((100% - 2rem) * (1.15 / 2.15) + 2rem + 0.2rem);
		width: 2px;
		background: linear-gradient(180deg, var(--timeline-line-start), var(--timeline-line-end));
		pointer-events: none;
		z-index: 0;
	}

	.journey-interleaved-main > .journey-media-cell,
	.journey-interleaved-main > .timeline-item {
		position: relative;
		z-index: 1;
	}

	.journey-interleaved-main > .journey-media-cell {
		grid-column: 1;
	}

	.journey-interleaved-main > .timeline-item {
		grid-column: 2;
	}

	.journey-media-cell--empty {
		display: block;
	}
}

@media screen and (max-width: 980px) {
	#nav {
		width: auto;
	}

	.nav-shell {
		justify-content: center;
	}

	#nav .nav-links {
		min-width: 0;
	}

	.hero-shell,
	.overview-grid,
	.content-grid,
	.focus-grid,
	.proof-grid,
	.metric-band {
		grid-template-columns: 1fr;
	}

	#header.alt {
		padding: 4.5rem 0 2.5rem 0;
	}

	#main > .main {
		padding: 4rem 3rem;
	}

	#main > .main + .main:before {
		left: 3rem;
	}

	.hero-lead {
		max-width: none;
	}

	.timeline-item {
		grid-template-columns: 1fr;
		gap: 0.45rem;
	}

	.journey-interleaved-main {
		gap: 0;
	}

	.journey-interleaved-main > .timeline-item:nth-child(2n-1) {
		padding-bottom: 0.1rem;
		margin-bottom: 0.15rem;
	}

	.journey-interleaved-main > .journey-media-cell:not(.journey-media-cell--empty):nth-child(2n) {
		margin-bottom: 1.65rem;
	}

	.journey-interleaved-main > .journey-media-cell:not(.journey-media-cell--empty):last-child {
		margin-bottom: 0;
	}

	.journey-interleaved-main > .timeline-item:last-child {
		margin-bottom: 0;
		padding-bottom: 0;
	}

	#journey .journey-wrap {
		padding-bottom: 1.25rem;
	}
}

@media screen and (max-width: 736px) {
	#nav {
		display: block;
		position: fixed;
		top: 0.75rem;
		right: 0.75rem;
		left: auto;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		backdrop-filter: none;
		z-index: 10001;
	}

	#nav.alt {
		position: fixed;
		top: 0.75rem;
		right: 0.75rem;
		margin: 0;
		box-shadow: none;
		background: transparent;
		border-radius: 0;
	}

	#nav + #main {
		padding-top: 0;
	}

	.nav-shell {
		width: auto;
		position: relative;
		display: flex;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 0.5rem;
	}

	#nav .nav-links {
		display: none;
		position: absolute;
		top: calc(100% + 0.6rem);
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
		min-width: min(16rem, calc(100vw - 1.5rem));
		max-height: calc(100dvh - 5rem);
		margin: 0;
		padding: 0.5rem;
		overflow-y: auto;
		border: 1px solid var(--nav-border);
		border-radius: 1rem;
		background: var(--nav-bg);
		backdrop-filter: blur(12px);
		box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
	}

	#nav.is-open .nav-links {
		display: flex;
	}

	#nav .nav-links li {
		width: 100%;
	}

	#nav ul li a {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		height: auto;
		min-height: 2.5rem;
		padding: 0.7rem 0.8rem;
		line-height: 1.2;
		text-align: left;
	}

	.nav-toggle {
		display: inline-flex;
		background: var(--nav-bg);
		backdrop-filter: blur(12px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	}

	.theme-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		margin: 0;
		min-height: 2.6rem;
		min-width: 2.6rem;
		padding: 0;
		border-radius: 999px;
		background: var(--nav-bg);
		backdrop-filter: blur(12px);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	}

	.theme-toggle-label {
		display: none;
	}

	.theme-toggle-dot {
		width: 1rem;
		height: 1rem;
	}

	#wrapper {
		width: calc(100% - 1.5rem);
	}

	#header.alt {
		padding: 3.5rem 0 2rem 0;
	}

	.hero-shell {
		padding: 0;
	}

	#header h1 {
		font-size: clamp(2.6rem, 12vw, 4rem);
	}

	#main {
		border-radius: 1.1rem;
	}

	#main > .main {
		padding: 3rem 1.6rem;
	}

	#main > .main + .main:before {
		left: 1.6rem;
		width: 4.5rem;
	}

	.hero-signals li,
	.metric-band .metric-card,
	.focus-card,
	.proof-card,
	.overview-panel,
	.content-panel {
		border-radius: 1.1rem;
	}
}

@media screen and (max-width: 480px) {
	#nav,
	#nav.alt {
		top: 0.6rem;
		right: 0.6rem;
	}

	.theme-toggle {
		min-height: 2.4rem;
		min-width: 2.4rem;
	}

	.nav-toggle {
		min-height: 2.4rem;
		padding: 0 0.85rem;
	}
}

/* Tap / click to open fullscreen photo viewer; pinch or Ctrl/Cmd+wheel to zoom, drag / one finger to pan when zoomed */
.photo-zoomable {
	cursor: zoom-in;
	touch-action: manipulation;
}

.photo-zoom-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	box-sizing: border-box;
}

.photo-zoom-modal[hidden] {
	display: none !important;
}

.photo-zoom-backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: none;
	background: var(--overlay-backdrop);
	cursor: pointer;
	z-index: 0;
}

.photo-zoom-close {
	position: absolute;
	top: max(0.65rem, env(safe-area-inset-top));
	right: max(0.65rem, env(safe-area-inset-right));
	z-index: 2;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	color: #ffffff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.photo-zoom-close:hover,
.photo-zoom-close:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 2px;
}

.photo-zoom-viewport {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(3rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
		max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	pointer-events: none;
	overflow: hidden;
}

.photo-zoom-stage {
	pointer-events: auto;
	transform-origin: center center;
	will-change: transform;
}

.photo-zoom-img {
	display: block;
	max-width: min(100vw - 2rem, 100%);
	max-height: min(100dvh - 5rem, 100%);
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
