/* UAEB site styles, light scheme. Tokens, header, home sections, inner pages, footer. */
:root {
	--white: #ffffff;
	--tint: #eef1f6;
	--tint-deep: #e1e6ee;
	--ink: #1d2129;
	--graphite: #373a3f;
	--mist: #5a606b;
	--blue: #3a4f82;
	--blue-dark: #2c3d66;
	--line: rgba(29, 33, 41, 0.14);
	--gutter: clamp(1.25rem, 5vw, 4.5rem);
	--band: clamp(3.5rem, 8vw, 7rem);
	--max: 1320px;
	--edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: "Fira Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
/* WordPress adds a top margin to every block after the first in a group.
   Home sections space themselves with grid gaps, so that margin is removed. */
.home .wp-block-group,
.home .wp-block-group > * { margin-block: 0; }
.home :is(h1, h2, h3, h4, p, figure, ul, ol) { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mail { white-space: nowrap; font-weight: 500; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.1rem var(--edge);
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; color: var(--graphite); text-decoration: none; }
.brand-mark { color: var(--blue); flex: none; }
.brand-name { margin-left: -2.05rem; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.04em; line-height: 1; }
.nav-toggle > summary { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.9875rem; padding: 0.5rem 0; display: inline-block; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { padding: 0.5rem 1.1rem; border: 1px solid var(--blue); border-radius: 2px; color: var(--blue); }
.site-nav .nav-cta:hover { background: var(--blue); color: var(--white); }
.has-sub { position: relative; }
.has-sub > ul {
	position: absolute;
	top: 100%;
	left: -1.25rem;
	min-width: 19rem;
	padding: 0.75rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 2px;
	box-shadow: 0 1rem 2rem rgba(29, 33, 41, 0.08);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s ease, visibility 0.15s;
}
.has-sub:hover > ul,
.has-sub:focus-within > ul { visibility: visible; opacity: 1; }
.has-sub > ul a { display: block; padding: 0.45rem 0; }

@media (min-width: 901px) {
	.nav-toggle > .site-nav,
	.nav-toggle:not([open]) > .site-nav { display: block; }
	.nav-toggle::details-content { content-visibility: visible; display: block; }
}
@media (max-width: 900px) {
	.nav-toggle > summary {
		display: block;
		cursor: pointer;
		list-style: none;
		padding: 0.5rem 1rem;
		border: 1px solid var(--line);
		border-radius: 2px;
		font-size: 0.9875rem;
	}
	.nav-toggle > summary::-webkit-details-marker { display: none; }
	.nav-toggle[open] > .site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 1rem var(--gutter) 2rem;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}
	.site-nav > ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
	.site-nav a { font-size: 1.125rem; padding: 0.6rem 0; }
	.has-sub > ul { position: static; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 0.5rem 1rem; border: 0; box-shadow: none; }
	.has-sub > ul a { font-size: 1rem; color: var(--mist); }
	.site-nav .nav-cta { margin-top: 0.75rem; }
}

/* ---------- Shared pieces ---------- */
.band { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); padding: var(--band) var(--edge); box-sizing: border-box; }
.band.is-tint { background: var(--tint); }
.band-title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.012em; max-width: 24ch; }
.band-intro { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--graphite); max-width: 58ch; }
.home h3 { font-weight: 400; line-height: 1.25; }
.home p { color: var(--mist); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wp-block-button__link {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	background: var(--blue);
	color: var(--white);
	border: 1px solid var(--blue);
	border-radius: 2px;
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button__link:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--line); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

/* Status: the dot is the logo's dot. Filled when the thing is flying, hollow while it is being designed. */
.home p.status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.875rem; font-weight: 500; color: var(--blue); }
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.home p.status.is-early { color: var(--mist); }
.status.is-early::before { background: transparent; box-shadow: 0 0 0 1px var(--mist); }

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding: clamp(2.5rem, 5vw, 4.5rem) var(--edge) clamp(3rem, 6vw, 5.5rem);
	box-sizing: border-box;
}
.hero-copy { display: grid; gap: 1.75rem; justify-items: start; }
.hero-title { font-size: clamp(2.25rem, 4.1vw, 3.75rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.022em; color: var(--ink); }
.home p.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--graphite); max-width: 40ch; }
/* .hero-media holds the loop diagram today; a muted looping <video> can replace the SVG later without layout changes. */
.hero-media { width: 100%; max-width: 36rem; justify-self: end; aspect-ratio: 1; }
.hero-media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.picture { display: block; width: 100%; height: auto; overflow: visible; }
.ring-faint { fill: none; stroke: var(--line); stroke-width: 1; }
.ring-main { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ring-dot { fill: var(--blue); }
.bearings path { fill: none; stroke: var(--blue); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bearings .second { stroke: var(--mist); stroke-width: 1; opacity: 0.7; }
.emitters circle { fill: var(--blue); }
.emitters .halo { fill: rgba(58, 79, 130, 0.14); }
.sensors rect { fill: var(--white); stroke: var(--graphite); stroke-width: 1.5; }
.labels text { font-family: "Fira Sans", sans-serif; font-size: 15px; fill: var(--graphite); }
@media (prefers-reduced-motion: no-preference) {
	.ring-main { animation: draw-back 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.1s both; }
	.sensors, .ring-dot { animation: appear 0.4s ease-out 1.5s both; }
	.bearings path { animation: draw 0.9s ease-out 1.9s both; }
	.bearings .second { animation-delay: 2.5s; }
	.emitters, .labels { animation: appear 0.5s ease-out 2.7s both; }
}
@keyframes draw-back { from { stroke-dashoffset: -1; } to { stroke-dashoffset: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Directions ---------- */
.direction-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.direction {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 0.75rem;
	padding: clamp(1.5rem, 2.6vw, 2.25rem);
	background: var(--white);
	border-top: 2px solid var(--blue);
	transition: box-shadow 0.15s ease;
}
.direction h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -0.01em; }
.direction h3 a { color: var(--ink); text-decoration: none; }
.direction h3 a::after { content: ""; position: absolute; inset: 0; }
.direction:hover { box-shadow: 0 1rem 2.5rem rgba(29, 33, 41, 0.1); }
.direction:hover h3 a { color: var(--blue); }

/* ---------- How it works: a real sequence, so the steps are numbered ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.steps li { counter-increment: step; display: block; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--mist); font-size: 1rem; }
.steps li::before { content: counter(step); display: block; margin-bottom: 0.5rem; font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--blue); }
.steps strong { display: inline-block; margin-bottom: 0.3rem; font-size: 1.1875rem; font-weight: 400; color: var(--ink); }
.how-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(2rem, 6vw, 6rem); padding: clamp(1.25rem, 2.4vw, 2rem); background: var(--tint); }
.how-notes p { color: var(--graphite); max-width: 52ch; }

/* ---------- Applications ---------- */
.task-list { display: grid; }
.task {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 0.5rem clamp(1.5rem, 4vw, 4rem);
	align-items: baseline;
	padding: clamp(1.25rem, 2.4vw, 2rem) 0;
	border-top: 1px solid var(--line);
}
.task:last-child { border-bottom: 1px solid var(--line); }
.task h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 300; letter-spacing: -0.01em; }
.task p { max-width: 56ch; }

/* ---------- Platforms ---------- */
.platform-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.platform { display: grid; grid-template-rows: 1fr auto auto auto auto; justify-items: start; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--tint); }
.platform .wp-block-image { width: 100%; align-self: center; margin-bottom: 1rem; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.platform .wp-block-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; aspect-ratio: auto; filter: drop-shadow(0 1.25rem 1.5rem rgba(29, 33, 41, 0.22)); }
.platform h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; letter-spacing: 0.06em; }
.platform p { max-width: 46ch; }
.home .platform p.next { color: var(--ink); }
.onboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.onboard-item { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.onboard h3 { font-size: 1.25rem; }

/* ---------- R&D principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 6vw, 6rem); }
.principle { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.principle h3 { font-size: 1.375rem; }
.principle p { max-width: 46ch; }
.home p.resident { font-weight: 500; color: var(--blue); }

/* ---------- Careers ---------- */
.careers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.careers-copy { display: grid; gap: 1.5rem; justify-items: start; }
.roles { list-style: none; padding: 0; display: grid; }
.roles li { padding: 1.1rem 0; border-top: 1px solid var(--line); font-size: 1.1875rem; }
.roles li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Contact band ---------- */
.reach { justify-items: start; gap: 1.5rem; }
.reach p { max-width: 52ch; }

/* ---------- Inner pages ---------- */
.page-main { padding: clamp(3rem, 7vw, 6rem) var(--edge) var(--band); box-sizing: border-box; }
.page-title { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 clamp(2rem, 4vw, 3.5rem); max-width: 20ch; }
.page-content > * { max-width: 68ch; }
.page-content > .alignwide, .page-content > .alignfull { max-width: none; }
.page-content h2 { font-size: clamp(1.625rem, 2.8vw, 2.25rem); font-weight: 300; margin: 2.5em 0 0.6em; }
.page-content h3 { font-size: 1.3125rem; font-weight: 400; margin: 2em 0 0.4em; }
.page-content p, .page-content li { color: var(--graphite); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint-deep); padding: clamp(3rem, 6vw, 5rem) var(--edge) 2rem; font-size: 0.9375rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 2.5rem clamp(2rem, 4vw, 4rem); }
.site-footer p { margin: 0; }
.footer-brand { display: grid; gap: 0.5rem; justify-items: start; align-content: start; }
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand .brand-name { margin-left: -2.4rem; font-size: 1.75rem; }
.footer-name { font-size: 1.1875rem; font-weight: 300; color: var(--ink); }
.footer-note, .footer-legal { color: var(--mist); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-content: start; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-contact { display: grid; gap: 1.25rem; align-content: start; color: var(--mist); }
.footer-legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-legal a { color: var(--mist); text-decoration: underline; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.solution-row { grid-template-columns: minmax(0, 1fr); }
	.stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero-media { justify-self: center; max-width: 26rem; }
	.task, .careers, .principles, .onboard, .footer-inner, .family, .scheme-notes, .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.steps, .stages { grid-template-columns: minmax(0, 1fr); }
	.labels text { font-size: 18px; }
}

/* ================= v0.3 additions ================= */
/* Loop diagram and shared SVG parts */
.flow path { fill: var(--blue); }
.nodes circle { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.labels .big { font-size: 22px; fill: var(--ink); }
.labels .center { font-size: 22px; font-weight: 300; fill: var(--graphite); }
.loop .labels text { font-size: 15px; }
.loop .labels .big, .loop .labels .center { font-size: 22px; }
@media (prefers-reduced-motion: no-preference) {
	.nodes, .flow { animation: appear 0.5s ease-out 1.6s both; }
}

/* Problem band */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.stage { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--blue); }
.stage h3 { font-size: 1.375rem; }
.home p.note { color: var(--graphite); max-width: 62ch; }

/* Solutions */
.solution-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.solution { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: start; gap: 0.7rem; padding: clamp(1.25rem, 2.2vw, 2rem); background: var(--tint); transition: box-shadow 0.15s ease; }
.is-tint .solution { background: var(--white); }
.solution > :first-child { width: 100%; aspect-ratio: 3 / 2; display: grid; place-items: center; margin-bottom: 0.5rem; }
.solution .wp-block-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 1rem 1.25rem rgba(29, 33, 41, 0.22)); }
.solution .thumb { width: 100%; height: 100%; }
.thumb .bearings path { stroke-dasharray: none; animation: none; }
.solution h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -0.01em; }
.solution h3 a { color: var(--ink); text-decoration: none; }
.solution h3 a::after { content: ""; position: absolute; inset: 0; }
.solution:hover { box-shadow: 0 1rem 2.5rem rgba(29, 33, 41, 0.12); }
.solution:hover h3 a { color: var(--blue); }

/* Inner page hero */
.page-hero { display: grid; gap: 1.25rem; justify-items: start; padding: clamp(3rem, 6vw, 5.5rem) var(--edge) clamp(2.5rem, 5vw, 4rem); }
.page-hero-title { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }
.home .page-hero p.lead { max-width: 60ch; }

/* UAV families */
.families { gap: 1.25rem; }
.family { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 3vw, 3rem); background: var(--white); }
.family-media { display: grid; place-items: center; }
.family-media img { display: block; max-height: 22rem; width: auto; max-width: 100%; filter: drop-shadow(0 1.25rem 1.5rem rgba(29, 33, 41, 0.22)); }
.family-copy { display: grid; gap: 0.75rem; justify-items: start; }
.family-name { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: 0.06em; }
.models { display: grid; gap: 0; width: 100%; margin-top: 0.75rem; }
.model { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.model h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); }
@media (max-width: 560px) { .model { grid-template-columns: minmax(0, 1fr); } }

/* Radio scheme */
.scheme-wrap { overflow-x: auto; background: var(--white); padding: clamp(0.75rem, 2vw, 1.5rem); }
.scheme { display: block; width: 100%; min-width: 46rem; height: auto; }
.scheme .bearings path { stroke-dasharray: none; animation: none; }
.scheme .bearings .second { stroke: var(--blue); opacity: 0.45; }
.link path { fill: none; stroke: var(--graphite); stroke-width: 1.25; stroke-dasharray: 3 7; }
.route path { fill: none; stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 10 6; }
.track path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.track .head { stroke-dasharray: none; stroke-width: 1.5; }
.track .arrow { fill: var(--ink); stroke: none; }
.sensors .mobile { fill: var(--tint-deep); }
.scheme .labels text { font-size: 17px; }
.scheme .labels .big { font-size: 20px; }
.scheme-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.scheme-note { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.scheme-note h3 { font-size: 1.1875rem; }

/* Facts grid */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fact { display: grid; gap: 0.5rem; align-content: start; padding: clamp(1.25rem, 2vw, 1.75rem); background: var(--white); }
.fact h3 { font-size: 1.25rem; }
@media (max-width: 1000px) and (min-width: 901px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vacancies */
.vacancies { gap: 1.25rem; }
.vacancy { display: grid; gap: 0.75rem; justify-items: start; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); }
.vacancy-title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 300; letter-spacing: -0.01em; }
.home p.vacancy-en { font-size: 0.9375rem; color: var(--mist); margin-top: -0.5rem; }
.vacancy > p { max-width: 70ch; }
.home p.vacancy-place { color: var(--ink); font-weight: 500; }
.vacancy details { width: 100%; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.vacancy summary { cursor: pointer; font-weight: 500; color: var(--blue); }
.vacancy summary:hover { color: var(--blue-dark); }
.vacancy details > * + * { margin-top: 1rem; }
.vacancy details h4 { font-size: 1.125rem; font-weight: 500; color: var(--ink); margin-top: 1.75rem; }
.vacancy details ul { padding-left: 1.2rem; max-width: 76ch; color: var(--mist); display: grid; gap: 0.35rem; }
.vacancy details p { max-width: 76ch; }

/* ---------- Narrow screens, v0.3 blocks (kept last so they win) ---------- */
@media (max-width: 1000px) {
	.solution-row, .facts { grid-template-columns: minmax(0, 1fr); }
	.stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.solution > :first-child { max-width: 22rem; }
}
@media (max-width: 900px) {
	.family, .scheme-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.stages { grid-template-columns: minmax(0, 1fr); }
	.loop .labels text { font-size: 19px; }
	.loop .labels .big, .loop .labels .center { font-size: 26px; }
}

/* ================= v0.4 additions ================= */
/* Carried over from the site's Additional CSS */
.solution .wp-block-image.is-photo { overflow: hidden; }
.solution .wp-block-image.is-photo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.loop .op-halo { fill: var(--tint); }
.loop .op-icon { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.loop .labels .op-big { font-size: 22px; font-weight: 500; fill: var(--blue); }
.home .field-photo { margin: 0; }
.home .field-photo img { display: block; width: 100%; height: auto; }
.home :is(.field-photo, .screen, .shot) figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--mist); text-align: left; }
.map-band .map-copy { display: grid; gap: 1rem; }
.map-band .map-copy p { max-width: 68ch; }
.home .screen { margin: 0; }
.screen-frame { padding: clamp(0.4rem, 1vw, 0.75rem); background: #14171c; border-radius: 6px; box-shadow: 0 1.5rem 3rem rgba(29, 33, 41, 0.22); overflow-x: auto; }
.screen-frame svg { display: block; width: 100%; min-width: 44rem; height: auto; font-family: "Fira Sans", sans-serif; }
.band:not(.is-tint) .fact { background: var(--tint); }
.task h3 a { color: var(--ink); text-decoration: none; }
.task h3 a::after { content: ""; position: absolute; inset: 0; }
.task:hover h3 a { color: var(--blue); }

/* About: text beside a photograph */
.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.is-reversed { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split-copy { display: grid; gap: 1rem; align-content: start; }
.split-copy p { max-width: 52ch; }
.home .shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }

/* Applications */
.app { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; scroll-margin-top: 1rem; }
.app-copy { display: grid; gap: 1rem; }
.app-copy p { max-width: 60ch; }
.app-links { display: grid; gap: 0.75rem; padding-top: 1rem; border-top: 2px solid var(--blue); }
.app-links h3 { font-size: 1.0625rem; font-weight: 500; }
.link-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }

/* Plain content pages: contact forms, privacy policy */
.page-main { max-width: none; }
.page-content p, .page-content li { color: var(--mist); }
.page-content a { color: var(--blue); }
.wp-block-jetpack-contact-form { display: grid; gap: 1.1rem; max-width: 40rem; margin-top: 2rem; }
.wp-block-jetpack-contact-form label { display: block; margin-bottom: 0.35rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.wp-block-jetpack-contact-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%; box-sizing: border-box; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
	background: var(--white); border: 1px solid rgba(29, 33, 41, 0.3); border-radius: 2px;
}
.wp-block-jetpack-contact-form textarea { min-height: 10rem; }
.wp-block-jetpack-contact-form :is(input, textarea):focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.wp-block-jetpack-contact-form button, .wp-block-jetpack-contact-form .wp-block-button__link {
	padding: 0.85rem 1.5rem; font: inherit; font-weight: 500; color: var(--white); background: var(--blue);
	border: 1px solid var(--blue); border-radius: 2px; cursor: pointer;
}
.wp-block-jetpack-contact-form button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

@media (max-width: 900px) {
	.split, .split.is-reversed, .app { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v0.4.1: full logo in the header ---------- */
.brand-logo { display: block; height: 4.25rem; width: auto; }
.brand-short { display: none; align-items: center; }
.site-header { padding-block: 0.9rem; }
@media (max-width: 560px) {
	.brand-logo { display: none; }
	.brand-short { display: inline-flex; }
}

/* ================= v0.5 ================= */
/* Sticky header that shrinks once the page is scrolled */
.wp-site-blocks > :has(> .site-header) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.site-header { transition: padding 0.2s ease, box-shadow 0.2s ease; }
.brand-logo { transition: height 0.2s ease; }
.is-scrolled .site-header { padding-block: 0.45rem; box-shadow: 0 0.5rem 1.5rem rgba(29, 33, 41, 0.08); }
.is-scrolled .brand-logo { height: 3.1rem; }
.home section[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 782px) { .wp-site-blocks > :has(> .site-header) { top: 0; } }

/* Reveal on scroll (classes are added by site.js, so nothing is hidden without it) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Media band directly under a page hero */
.media-band { padding-top: 0; }

/* Language switch */
.site-nav li.lang { display: flex; align-items: center; }
.site-nav a.lang-switch { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; color: var(--blue); padding: 0.3rem 0.65rem; border: 1px solid currentColor; border-radius: 999px; line-height: 1; text-decoration: none; }
.site-nav a.lang-switch:hover, .site-nav a.lang-switch:focus-visible { background: var(--blue); color: #fff; }

/* ================= v0.7: header one step darker than the tinted bands ================= */
:root { --header: #d5dce8; }
.site-header { background: var(--header); border-bottom-color: rgba(29, 33, 41, 0.18); }
@media (max-width: 900px) {
	.nav-toggle[open] > .site-nav { background: var(--header); }
	.nav-toggle > summary { border-color: rgba(29, 33, 41, 0.28); }
}

/* ================= v0.7.2: new logo proportions, mobile menu ================= */
.brand-logo { height: clamp(3rem, 4.4vw, 4.25rem); }
.is-scrolled .brand-logo { height: clamp(2.6rem, 3.4vw, 3.1rem); }
@media (max-width: 900px) {
	.has-sub > ul { background: transparent; padding: 0 0 0.5rem 1rem; }
	.has-sub > ul a { white-space: normal; overflow-wrap: anywhere; }
	.site-nav li.lang { margin-top: 1rem; }
}
