/*
 * EXPERIENCE-001 — home page, «مسار الهواء» (the air path). Loaded on the home page only, after style.css.
 *
 * One idea: a single engineered line. It is drawn once over the intro photo, bends into a rail down the
 * side of the page, fills as the visitor moves through the sections, joins the start steps and ends at
 * the closing call. Identity unchanged (navy, blue, IBM Plex Sans Arabic, Inter).
 *
 * Motion, each with one job (tokens in style.css):
 *  - line draw (intro, once, CSS): directs attention from the text to the way down the page;
 *  - air flow (intro, wide screens, runs only while the intro is on screen, site.js): the signature;
 *  - rail fill and steps line (CSS scroll timelines): show progress and sequence;
 *  - reveals (CSS scroll timelines): pace the sections. Nothing is hidden unless the browser supports
 *    them, so no JavaScript is involved and text is never waiting for a script;
 *  - slides (manual, home.js): a short geometric wipe, instant with reduced motion;
 *  - hover and focus responses: short, transform and opacity only.
 * prefers-reduced-motion removes all of it; the drawn line stays as a still image.
 */

/* ------------------------------------------------------------------ Intro */
.home-a .home-hero {
	position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 0; container-type: inline-size;
	background-color: var(--primary);
	background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 96px 96px;
}
.home-a .home-hero .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; z-index: 1; }
.home-a .home-hero .hero-text { padding-block: 40px 36px; }
.home-a .home-hero h1 { font-size: 38px; line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
.home-a .home-hero .stripe { width: 72px; margin-block-start: 20px; }
.home-a .home-hero .lead { margin-block-start: 20px; max-width: 36rem; }
.home-a .hero-actions { margin-block-start: 28px; gap: 12px 16px; }
.home-a .home-figure { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 0; display: block; overflow: hidden; clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); }
.home-a .home-figure::before { content: none; }
.home-a .home-figure::after { content: ""; position: absolute; inset: 0; width: auto; height: auto; background: linear-gradient(90deg, rgba(26, 19, 110, .08), rgba(26, 19, 110, .34)); pointer-events: none; } /* Ties the photo to the band and keeps the line readable on its light walls. */
.home-a .home-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; pointer-events: none; }
.home-slides { position: relative; height: 264px; background: var(--primary); color: #E0E5F7; touch-action: pan-y; }
.home-slide { position: absolute; inset: 0; }
.home-slide.is-active { z-index: 1; }
.home-slide.is-entering { animation: slide-wipe 420ms var(--ease-out) both; }
.slide-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0; padding: 8px var(--gutter); background: rgba(17, 16, 68, .86); color: var(--white); font-size: 14px; line-height: 1.6; }
.slide-captions { display: grid; flex: 1 1 12rem; min-width: 0; }
.slide-caption { grid-area: 1 / 1; visibility: hidden; }
.slide-caption.is-active { visibility: visible; }
.slider-controls { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.slider-controls[hidden] { display: none; }
.slider-btn, .slider-dot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--white); font: 400 20px/1 var(--font-en); cursor: pointer; }
.slider-dot { width: 28px; }
.slider-dot::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--white); transition: background-color var(--t-fast) linear; }
.slider-dot[aria-current="true"]::before { background: var(--white); }
.slider-btn:hover { color: #A9D4FF; }
.home-a .slider-btn:focus-visible, .home-a .slider-dot:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }
.home-a .hero-secondary { margin-block-start: 24px; padding-block-start: 16px; border-block-start: 1px solid rgba(255, 255, 255, .22); justify-content: space-between; }
.home-a .hero-secondary a { text-decoration: none; gap: 10px; }
.home-a .hero-secondary a::after { content: "←"; font-family: var(--font-en); transition: transform var(--t-fast) var(--ease-out); }
.home-a .hero-secondary a:hover::after { transform: translateX(-5px); }
@media (min-width: 400px) { .home-a .home-hero h1 { font-size: 42px; } .home-slides { height: 300px; } }
@media (max-width: 359px) { .home-a .home-hero h1 { font-size: 33px; } }
@media (min-width: 768px) { .home-a .home-hero h1 { font-size: 52px; } .home-slides { height: 420px; } .home-a .home-hero .hero-text { padding-block: 56px 48px; } }
@media (min-width: 1024px) {
	.home-a .home-hero .hero-inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); min-height: min(calc(100svh - 120px), 760px); }
	.home-a .home-hero .hero-text { align-self: center; padding-block: 64px 104px; padding-inline-end: 56px; }
	.home-a .home-hero h1 { font-size: clamp(50px, 4.7vw, 70px); line-height: 1.2; }
	.home-a .home-hero .lead { font-size: 19px; }
	/* The photo runs to the edge of the screen, with one cut corner. */
	.home-a .hero-visual { position: relative; align-self: stretch; margin-inline-end: calc(-1 * var(--gutter) - max(0px, (100cqw - var(--wrap) - 2 * var(--gutter)) / 2)); } /* cqw: the band's width, without the scrollbar that 100vw includes. */
	.home-a .home-figure { position: absolute; inset: 0; margin: 0; clip-path: polygon(0 0, calc(100% - 112px) 0, 100% 112px, 100% 100%, 0 100%); }
	.home-a .home-figure img { object-position: 54% 45%; }
	.home-slides { height: 100%; }
	.slide-foot { position: absolute; inset-block-end: 0; inset-inline: 0; padding-inline: 32px 24px; }
}

/* The line over the intro: wide screens only (a straight, lighter intro on phones). */
.air-path { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.air-path path { fill: none; vector-effect: non-scaling-stroke; }
.air-line { stroke: #7CC0FF; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.air-flow { stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .006 .07; opacity: 0; }
@media (min-width: 1200px) { .air-path { display: block; } }

/* ------------------------------------------------------------------ The rail down the page */
.home-flow { position: relative; view-timeline: --home-flow block; }
.air-rail { display: none; position: absolute; inset-block: 0; inset-inline-start: 3.333%; z-index: 3; width: 1.5px; pointer-events: none; background: rgba(0, 117, 244, .24); }
.air-rail::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
@media (min-width: 1200px) { .air-rail { display: block; } }

/* ------------------------------------------------------------------ Sections */
.home-a .band { padding-block: 56px; }
@media (min-width: 768px) { .home-a .band { padding-block: 80px; } }
@media (min-width: 1024px) { .home-a .band { padding-block: 112px; } }
.home-a h2 { letter-spacing: 0; text-wrap: balance; }
@media (min-width: 1024px) { .home-a h2 { font-size: 44px; line-height: 1.28; } }

/* The project entry: one board. Choices on one side; the drawing, text and action on the other, all following
   the checked radio through :has(), so no script is involved. The results share one grid cell, so the
   board holds its height and still grows with long texts. Without :has(): every path listed, no drawing. */
.home-a .entry-band { background: var(--surface); }
.entry-head { max-width: 46rem; }
.home-a .entry-band h2 { margin: 0; }
.entry-head .lead { margin: 12px 0 0; }
.entry-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block-start: 28px; }
.entry-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.entry-choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px; background: var(--white); border: 1px solid var(--border); color: var(--primary); font-weight: 600; font-size: 18px; cursor: pointer; transition: border-color var(--t-fast) linear; }
.entry-choice:hover { border-color: var(--accent); }
.entry-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.entry-num { flex: none; font: 600 14px/1 var(--font-en); color: var(--link); }
.entry-choice:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--white); }
.entry-choice:has(input:checked) .entry-num { color: #A9D4FF; }
.entry-choice:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.entry-stage { position: relative; display: flex; flex-direction: column-reverse; overflow: hidden; background-color: var(--primary); background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 48px 48px; color: #E0E5F7; }
.entry-art { display: none; width: 100%; height: auto; max-height: 150px; }
.entry-art path, .entry-art ellipse { fill: none; stroke: rgba(255, 255, 255, .62); stroke-width: 1.2; }
.entry-art .entry-ground { stroke: rgba(255, 255, 255, .14); }
.entry-art .entry-top { fill: rgba(124, 192, 255, .16); }
.entry-art .entry-duct, .entry-art .entry-air, .entry-art .entry-unit { stroke: #A9D4FF; stroke-width: 1.8; }
.entry-art .entry-flange { stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; }
.entry-dot { fill: #A9D4FF; }
.entry-art .entry-flow { stroke: #7CC0FF; stroke-width: 2.5; stroke-dasharray: 1; }
.entry-results { display: grid; gap: 20px; padding: 22px 20px; }
.entry-result p { margin: 0; font-size: 16px; line-height: 1.85; color: #E0E5F7; }
.home-a .entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-block-start: 16px; }
.entry-actions .button { background: var(--white); color: var(--primary); }
.entry-actions .button:hover { background: #E6EDFC; color: var(--primary); }
.entry-actions .text-link, .entry-actions .text-link:hover { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
.home-a .entry-stage :focus-visible { outline-color: var(--white); }
.entry-subs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.entry-sub { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .4); color: var(--white); cursor: pointer; }
.entry-sub input { margin: 0; accent-color: var(--white); }
.entry-sub:has(input:checked) { background: var(--white); color: var(--primary); }
.entry-sub:has(input:checked) input { accent-color: var(--primary); }
.entry-sub:has(input:focus-visible) { outline: 2px solid var(--white); outline-offset: 2px; }
.entry-sub-actions { display: grid; }
@media (max-width: 479px) { .entry-actions .button { width: 100%; } .entry-actions .text-link { justify-content: center; width: 100%; } }
@supports selector(:has(*)) {
	.entry-art { display: block; }
	.entry-results, .entry-sub-actions { gap: 0; }
	.entry-result, .entry-sub-actions .entry-actions { grid-area: 1 / 1; visibility: hidden; }
	.entry-scene { visibility: hidden; }
	.entry-board:has([value="project"]:checked) [data-need="project"], .entry-board:has([value="home"]:checked) [data-need="home"], .entry-board:has([value="service"]:checked) [data-need="service"],
	.entry-board:has([value="project"]:checked) [data-scene="project"], .entry-board:has([value="home"]:checked) [data-scene="home"], .entry-board:has([value="service"]:checked) [data-scene="service"] { visibility: visible; }
	.entry-result[data-need="service"] .entry-actions[data-sub] { visibility: hidden; }
	.entry-board:has([value="service"]:checked):has([value="maintenance"]:checked) .entry-actions[data-sub="maintenance"], .entry-board:has([value="service"]:checked):has([value="duct"]:checked) .entry-actions[data-sub="duct"] { visibility: visible; }
	.entry-flow[data-sub] { visibility: hidden; }
	.entry-board:has([value="service"]:checked):has([value="maintenance"]:checked) .entry-flow[data-sub="maintenance"], .entry-board:has([value="service"]:checked):has([value="duct"]:checked) .entry-flow[data-sub="duct"] { visibility: visible; }
	/* The part that goes with the chosen service stands out. */
	.entry-board:has([value="maintenance"]:checked) .entry-part-duct, .entry-board:has([value="duct"]:checked) .entry-part-unit { opacity: .5; }
}
@media (min-width: 768px) {
	.entry-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.entry-stage { flex-direction: column; }
	.entry-art { max-height: 280px; margin-block-start: 12px; }
	.entry-results { padding: 24px 32px 30px; }
	.entry-result p { font-size: 17px; }
}
@media (min-width: 1200px) {
	.entry-board { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 28px; margin-block-start: 40px; align-items: start; }
	.entry-choices { grid-template-columns: minmax(0, 1fr); gap: 0; border-block-start: 1px solid var(--border); }
	.entry-choice { min-height: 88px; padding-inline: 20px; border-width: 0 0 1px; background: none; font-size: 21px; }
	.entry-choice:hover { background: var(--white); }
	/* The blue line leaves the chosen row, crosses the gap and enters the drawing. */
	.entry-choice::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-end: -28px; width: 28px; height: 2.500px; background: #7CC0FF; transform: scaleX(0); transform-origin: right; }
	.entry-choice:has(input:checked)::after { transform: scaleX(1); }
	.entry-art { margin: 0; max-height: none; }
}

/* About: the introduction stays; three points change one paragraph. The image is clean: frame, moving line
   and the sentence are layers over it. Wide screens: the image runs to the edge and stays beside the text. */
.home-a .band.about-a { background: var(--white); container-type: inline-size; overflow: clip; }
.about-a-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.about-eyebrow { margin: 0 0 10px; color: var(--link); font-weight: 600; font-size: 15px; }
.home-a .about-a h2 { margin: 0; }
.about-a .stripe { width: 72px; margin-block-start: 20px; }
.home-a .about-a .lead { margin: 20px 0 0; font-size: 18px; line-height: 1.9; color: var(--text); }
.about-more { margin: 14px 0 0; font-size: 16px; line-height: 1.9; color: var(--muted); }
.about-page-link { color: var(--link); font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.about-points { margin-block-start: 28px; border-block-end: 1px solid var(--border); }
.about-point summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-block-start: 1px solid var(--border); font-weight: 600; color: var(--primary); list-style: none; cursor: pointer; }
.about-point summary::-webkit-details-marker { display: none; }
.about-point summary:focus-visible { outline-offset: -2px; }
.about-point-panel { padding-block-end: 18px; }
.about-point-panel p { margin: 0; font-size: 16px; line-height: 1.85; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 0; }
.about-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 479px) { .about-actions .button { width: 100%; } }
.about-figure { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.about-photo { position: relative; height: 300px; background: var(--primary); clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 19, 110, .08), rgba(26, 19, 110, .24)); pointer-events: none; }
.about-figure { view-timeline: --about-view block; }
.about-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.about-frame path { fill: none; vector-effect: non-scaling-stroke; }
.about-frame-line { stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.about-frame-air { stroke: #7CC0FF; stroke-width: 2.5; stroke-dasharray: .16 .84; stroke-dashoffset: 1; opacity: 0; }
.about-quote { position: relative; overflow: hidden; display: block; padding: 22px var(--gutter); background: var(--primary); color: var(--white); font-size: 18px; font-weight: 600; line-height: 1.7; }
.about-quote img { position: absolute; inset-block-end: -18px; inset-inline-end: -12px; width: 132px; height: auto; opacity: .1; }
.about-quote span { position: relative; }
.about-figure.no-image .about-photo { height: 200px; }
@media (min-width: 768px) {
	.about-photo { height: 420px; }
	.about-points { display: grid; grid-template-columns: repeat(var(--count, 3), auto) minmax(0, 1fr); column-gap: 16px; border: 0; }
	@supports selector(::details-content) {
		.about-point { display: contents; }
		.about-point summary { position: relative; min-height: 48px; padding: 0 6px; border-block: 0 3px solid var(--border); border-block-end-color: transparent; color: var(--muted); }
		.about-point[open] summary { border-block-end-color: var(--accent); color: var(--primary); }
		.about-point summary:hover { color: var(--primary); }
		.about-point .service-open { display: none; }
		.about-point::details-content { display: none; }
		.about-point[open]::details-content { display: contents; }
		.about-point-panel { grid-row: 2; grid-column: 1 / -1; min-height: 128px; padding-block: 16px 0; border-block-start: 1px solid var(--border); margin-block-start: -1px; }
	}
}
@media (min-width: 1024px) {
	.about-a-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
	.home-a .about-a .lead { font-size: 19px; }
	.about-figure { position: sticky; inset-block-start: calc(var(--header-h) + 32px); align-self: start; margin: 0; margin-inline-end: calc(-1 * var(--gutter) - max(0px, (100cqw - var(--wrap) - 2 * var(--gutter)) / 2)); }
	.about-photo, .about-figure.no-image .about-photo { height: 720px; clip-path: polygon(0 0, calc(100% - 96px) 0, 100% 96px, 100% 100%, 0 100%); }
	.about-quote { position: absolute; z-index: 2; inset-block-end: 40px; inset-inline-start: -32px; width: min(78%, 420px); padding: 26px 28px; font-size: 20px; }
}
.about-a-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-block-start: 40px; }
.home-a .about-a-value { background: none; border: 0; border-block-start: 1px solid var(--input); border-radius: 0; padding: 18px 0 0; }
@media (min-width: 768px) { .about-a-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.home-a .home-services { background: var(--surface); scroll-margin-block-start: var(--header-h); }

/* Services: each opens its explanation, what to prepare and its action. An accordion by default; on wide
   screens the list stays on one side and the open service fills the other (only where ::details-content
   can be arranged; otherwise the accordion stays, so nothing depends on this). */
.home-services .section-head .lead { margin-block-start: 16px; max-width: 42rem; }
.home-a .service-cards-a { display: block; border-block-end: 1px solid var(--border); }
.home-a .service-card-a { display: block; padding: 0; }
.home-a .service-card-a summary { position: relative; display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) 24px; gap: 0 12px; align-items: center; min-height: 72px; padding: 14px 0; list-style: none; cursor: pointer; }
.home-a .service-card-a summary::-webkit-details-marker { display: none; }
.home-a .service-card-a summary::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out); }
.home-a .service-card-a summary:hover::before, .home-a .service-card-a[open] summary::before { transform: scaleX(1); }
.home-a .service-card-a summary:focus-visible { outline-offset: -2px; }
.home-a .service-card-a .service-icon { width: 36px; height: 36px; stroke-width: 1.6; transition: stroke var(--t-fast) linear; }
.home-a .service-card-a summary:hover .service-icon, .home-a .service-card-a[open] .service-icon { stroke: var(--accent); }
.home-a .service-num { color: var(--muted); }
.home-a .service-card-a h3 { margin: 0; font-size: 20px; }
.service-open { position: relative; width: 16px; height: 16px; justify-self: end; }
.service-open::before, .service-open::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline: 0; height: 2px; background: var(--primary); transition: transform var(--t-fast) var(--ease-out); }
.service-open::after { transform: rotate(90deg); }
[open] > summary .service-open::after { transform: none; }
.service-panel { padding: 0 0 24px; }
.service-panel .service-desc { margin: 0; font-size: 16px; line-height: 1.85; }
.service-prep { margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--border); }
.service-prep h4 { margin: 0; font-size: 16px; color: var(--primary); }
.service-prep p { margin: 4px 0 0; font-size: 16px; line-height: 1.8; }
.service-link { margin: 20px 0 0; }
@media (max-width: 479px) { .service-link .button { width: 100%; } }
@media (min-width: 1024px) {
	.home-services .section-head .lead { font-size: 18px; }
	.home-a .service-card-a h3 { font-size: 21px; }
	.service-panel { padding-block-end: 32px; }
	.service-panel .service-desc, .service-prep p { font-size: 17px; }
	@supports selector(::details-content) {
		.home-a .service-cards-a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-rows: auto; gap: 0 56px; align-items: start; border: 0; }
		.home-a .service-card-a { display: contents; }
		.home-a .service-card-a summary { grid-column: 1; min-height: 80px; border-block-start: 1px solid var(--border); }
		.home-a .service-card-a:last-child summary { border-block-end: 1px solid var(--border); }
		.home-a .service-card-a[open] summary { color: var(--primary); }
		.home-a .service-card-a[open] .service-open { display: none; }
		.home-a .service-card-a::details-content { display: none; }
		.home-a .service-card-a[open]::details-content { display: contents; }
		.service-panel { grid-column: 2; grid-row: 1 / span var(--rows, 6); align-self: stretch; padding: 40px; background: var(--surface); border-block-start: 3px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 56px 100%, 0 calc(100% - 56px)); }
	}
}

/* Works: the projects' own dark band; the band of proof. */
.home-a .band.works { background: var(--primary); color: #E0E5F7; }
.home-a .band.works::before { content: none; }
.home-a .works h2 { color: var(--white); margin: 0; max-width: 34rem; }
.home-a .works .band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-block-end: 32px; }
.home-a .works .band-link { color: var(--white); font-weight: 600; font-size: 16px; text-underline-offset: 6px; display: inline-flex; align-items: center; min-height: 44px; }
.home-a .works :focus-visible, .home-a .closing :focus-visible { outline-color: var(--white); }
.home-a .works .cards { gap: 0 48px; grid-template-columns: minmax(0, 1fr); border-block-end: 1px solid rgba(255, 255, 255, .22); }
@media (min-width: 768px) { .home-a .works .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-a .works .cards:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); }
.home-a .works .project-card { background: none; border: 0; border-block-start: 1px solid rgba(255, 255, 255, .22); border-radius: 0; overflow: visible; }
.home-a .works .project-card::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; width: auto; height: 2px; background: #7CC0FF; opacity: 1; transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out); }
.home-a .works .project-card:hover::before, .home-a .works .project-card:focus-within::before { transform: scaleX(1); }
.home-a .works .project-card .card-body { padding: 24px 0 28px; gap: 6px; }
.home-a .works .project-card .card-title { padding: 0; font-size: 22px; }
.home-a .works .project-card .card-title a, .home-a .works .project-card:hover .card-title a { color: var(--white); text-decoration: none; }
.home-a .works .project-card .card-meta { padding: 0; color: #A9D4FF; }
.home-a .works .project-card .card-scope, .home-a .works .project-card .card-text, .home-a .works .project-card .card-scope .label { color: #D6DCF2; }
.home-a .works .project-card .card-more { color: #A9D4FF; }
.home-a .works .project-card .card-more::after { transition: transform var(--t-fast) var(--ease-out); }
.home-a .works .project-card:hover .card-more::after { transform: translateX(-6px); }
.home-a .works .card:focus-within { outline-color: var(--white); }
.home-a .works .test-note { color: #D6DCF2; }
.home-a .works-ask { margin-block-start: 32px; color: var(--white); }
.home-a .works-ask .button { background: var(--white); color: var(--primary); }
.home-a .works-ask .button:hover { background: #E6EDFC; color: var(--primary); }
@media (min-width: 1024px) {
	.home-a .works .band-head { margin-block-end: 48px; }
	.home-a .works .project-card .card-title { font-size: 25px; }
	.home-a .works-ask { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
	.home-a .works-ask p { margin: 0; }
}

/* Start: three stations on one line with duct-like bends, read right to left; upright on phones. The line
   draws as the section comes in and only lights the stations: it says nothing about a request's state. */
.start-head { max-width: 46rem; }
.home-a .start-head h2 { margin: 0; }
.start-head .lead { margin: 16px 0 0; }
.start-path { position: relative; list-style: none; margin: 36px 0 0; padding: 0; view-timeline: --start-view block; }
.start-line { display: none; }
.start-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; padding-block-end: 28px; }
.start-step:not(:last-child)::before { content: ""; position: absolute; inset-block: 56px 0; inset-inline-start: 27px; width: 2px; background: var(--border); }
.start-tile { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--white); border: 2px solid var(--accent); color: var(--primary); }
.start-tile .service-icon { width: 32px; height: 32px; }
.start-num { display: block; font: 600 14px/1.4 var(--font-en); color: var(--link); }
.start-body h3 { margin: 2px 0 0; font-size: 21px; }
.start-body > p { margin: 8px 0 0; font-size: 16px; line-height: 1.85; }
.start-note { margin-block-start: 8px; }
.start-note summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-inline-start: -8px; padding-inline: 8px; font-weight: 600; color: var(--primary); list-style: none; cursor: pointer; }
.start-note summary::-webkit-details-marker { display: none; }
.start-note p { margin: 0; padding: 12px 14px; background: var(--surface); border-inline-start: 3px solid var(--accent); font-size: 15px; line-height: 1.8; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-block-start: 12px; padding: 22px 24px; background: var(--surface); }
.start-actions p { margin: 0; flex: 1 1 18rem; font-size: 16px; }
.start-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.start-links .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 479px) { .start-links, .start-links .button { width: 100%; } .start-links .text-link { justify-content: center; width: 100%; } }
@media (min-width: 768px) {
	.start-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; align-items: start; margin-block-start: 48px; }
	.start-line { display: block; position: absolute; inset-block-start: 0; inset-inline: 0; width: 100%; height: 136px; overflow: visible; pointer-events: none; }
	.start-line path { fill: none; stroke: var(--border); stroke-width: 2; vector-effect: non-scaling-stroke; }
	.start-line-fill path { stroke: var(--accent); }
	.start-step { display: block; padding-block-end: 0; }
	.start-step:not(:last-child)::before { content: none; }
	.start-step:nth-of-type(2) { padding-block-start: 40px; }
	.start-step:nth-of-type(3) { padding-block-start: 80px; }
	.start-body { margin-block-start: 14px; }
	.start-note .service-open { width: 14px; height: 14px; }
	.start-actions { margin-block-start: 40px; }
}

/* What the form takes (optional, off by default): three points in one calm panel. */
.prepare-a { margin-block-start: 32px; padding: 28px 24px; background: var(--surface); }
.prepare-a h2 { margin: 0 0 16px; font-size: 24px; }
.prepare-a-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.prepare-a-list h3 { margin: 0; font-size: 18px; }
.prepare-a-list p { margin: 4px 0 0; font-size: 16px; line-height: 1.8; }
@media (min-width: 768px) {
	.prepare-a { padding: 36px 40px; }
	.prepare-a-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) { .home-a .prepare-a h2 { font-size: 28px; line-height: 1.4; margin-block-end: 24px; } }

/* Devices: an introduction on a navy panel beside a few cards. The panels share one grid cell, so a change of type
   holds the height. Everything reads the same with images or with the drawn panel. */
.dev-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dev-intro { padding: 28px 24px; background-color: var(--primary); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px); color: #E0E5F7; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.dev-intro .about-eyebrow { color: #A9D4FF; }
.home-a .dev-intro h2 { margin: 0; color: var(--white); }
.dev-lead { margin: 12px 0 0; color: #E0E5F7; font-size: 16px; line-height: 1.85; }
.dev-links { margin: 16px 0 0; }
.dev-intro a { color: var(--white); text-underline-offset: 5px; }
.dev-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.dev-note { margin: 12px 0 0; padding-block-start: 12px; border-block-start: 1px solid rgba(255, 255, 255, .22); font-size: 15px; line-height: 1.7; }
.dev-note a { display: inline-block; padding-block: 6px; }
.home-a .dev-intro :focus-visible { outline-color: var(--white); }
.dev-types { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.dev-type { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--input); background: var(--white); color: var(--primary); font-weight: 600; cursor: pointer; transition: border-color var(--t-fast) linear; }
.dev-type:hover { border-color: var(--accent); }
.dev-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dev-type:has(input:checked) { background: var(--primary); border-color: var(--primary); color: var(--white); }
.dev-type:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.dev-panels { display: grid; min-width: 0; }
.dev-panel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.dev-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; background: var(--white); border: 1px solid var(--border); border-block-start: 3px solid var(--primary); transition: border-color var(--t-fast) linear; }
.dev-card:hover, .dev-card:focus-within { border-color: var(--accent); }
.dev-brand { margin: 0; color: var(--link); font: 600 14px/1.4 var(--font-en); }
.dev-card h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.5; }
.dev-model { margin: 2px 0 0; font: 600 13px/1.5 var(--font-en); color: var(--muted); overflow-wrap: anywhere; text-align: start; }
.dev-media { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 4 / 3; margin-block: 12px; background: var(--white); }
.dev-media img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); } /* The file's own margin is 8%: the product is never cut. */
.dev-media.is-drawn { gap: 14px; background-color: var(--surface); background-image: linear-gradient(rgba(26, 19, 110, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 19, 110, .05) 1px, transparent 1px); background-size: 24px 24px; color: var(--primary); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.dev-media svg { width: 42%; max-width: 96px; height: auto; }
.dev-media .dev-air { stroke: var(--accent); }
.dev-media span { font-weight: 600; font-size: 18px; }
.dev-specs { margin: 0; flex: 1; }
.dev-specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-start: 1px solid var(--border); font-size: 14px; line-height: 1.6; }
.dev-specs dt { flex: none; color: var(--muted); }
.dev-specs dd { margin: 0; text-align: end; font-weight: 600; color: var(--primary); min-width: 0; overflow-wrap: anywhere; }
.dev-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 0; }
.dev-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 600; font-size: 15px; }
.home-a .dev-actions .button::after { content: none; }
@supports selector(:has(*)) {
	.dev-panel { grid-area: 1 / 1; visibility: hidden; }
	.dev-list:not(:has(.dev-types)) .dev-panel, .dev-list:has([value="all"]:checked) [data-type="all"], .dev-list:has([value="split"]:checked) [data-type="split"], .dev-list:has([value="window"]:checked) [data-type="window"] { visibility: visible; }
}
@media (min-width: 768px) {
	.dev-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.dev-card h3 { min-height: 3em; } /* A one-line and a two-line name keep the images level. */
	.dev-intro { padding: 36px 40px; }
}
@media (min-width: 1200px) {
	.dev-board { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 32px; align-items: stretch; }
	.dev-intro { display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }
	.home-a .dev-intro h2 { font-size: 36px; line-height: 1.35; }
}

/* Closing: the line's end. The rail stops at this section's top edge; here it runs on to a node and branches to the three
   ways of getting in touch. Decoration only, tied to the section's own scroll position, so a fast scroll or
   opening at the end shows the right state; the links are plain and ready from the start. */
.home-a .home-closing { position: relative; overflow: hidden; overflow: clip; container-type: inline-size; view-timeline: --closing block; }
.closing-head { max-width: 46rem; }
.closing-head .about-eyebrow { color: #A9D4FF; }
.home-closing h2 { margin: 0; }
.closing-lead { margin: 12px 0 0; color: #E0E5F7; font-size: 17px; line-height: 1.85; }
.contact-options { --line: #7CC0FF; --stub: 28px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-block-start: 28px; }
.contact-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; align-items: center; min-height: 96px; padding: 16px 18px; background: var(--white); border: 2px solid var(--white); color: var(--primary); text-decoration: none; transition: border-color var(--t-fast) linear, box-shadow var(--t-fast) linear; }
.contact-card.is-request { background: transparent; border-color: rgba(255, 255, 255, .5); color: var(--white); }
.contact-card:hover { color: var(--primary); }
.contact-card.is-request:hover { color: var(--white); }
.contact-icon { grid-row: 1 / span 3; width: 44px; height: 44px; color: var(--accent); overflow: visible; }
.contact-card.is-chat .contact-icon { color: #128C4A; }
.contact-card.is-request .contact-icon { color: #A9D4FF; }
.contact-card h3 { margin: 0; font-size: 19px; line-height: 1.45; color: inherit; }
.contact-help { font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-card.is-request .contact-help { color: #D6DCF2; }
.contact-action { font-weight: 600; font-size: 16px; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.contact-action.is-number { font: 700 22px/1.3 var(--font-en); color: var(--primary); text-decoration: none; }
.contact-card.is-request .contact-action { color: var(--white); }
.home-a .contact-card:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
/* Each card's stub, and a sweep that crosses it once as the line arrives. */
.contact-card::before { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: calc(var(--gutter) / -2); width: calc(var(--gutter) / 2); height: 2px; background: var(--line); transform-origin: right; transition: opacity var(--t-fast) linear, background-color var(--t-fast) linear; }
.contact-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 40%, rgba(124, 192, 255, .28) 50%, transparent 60%); }
.air-end { position: absolute; inset: 0; pointer-events: none; transition: opacity var(--t-fast) linear; }
.air-end i { position: absolute; display: block; background: var(--line); }
.air-end-rail { inset-block: -1600px 48px; inset-inline-start: calc(var(--gutter) / -2); width: 2px; transform-origin: top; }
.air-end-trunk { display: none; }
.air-end-node { inset-block-start: 40px; inset-inline-start: calc(var(--gutter) / -2 - 5px); width: 12px; height: 12px; transform: rotate(45deg); box-shadow: 0 0 0 2px rgba(124, 192, 255, .22); }
.air-end-node::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--line); opacity: 0; }
/* Above 1200 the rail exists, and this line sits exactly on it; below, it keeps to the page margin, clear of the text. */
@media (min-width: 1200px) { .home-closing .contact-options { --x: calc(3.333cqw - var(--edge)); } }
@media (min-width: 900px) {
	.contact-options { --edge: calc(var(--gutter) + max(0px, (100cqw - var(--wrap) - 2 * var(--gutter)) / 2)); --x: calc(var(--gutter) / 2 - var(--edge)); grid-template-columns: repeat(var(--count, 3), minmax(0, 1fr)); gap: 20px; margin-block-start: 76px; padding: 0; }
	.contact-card { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 6px; min-height: 216px; padding: 26px 24px; }
	.contact-icon { grid-row: auto; margin-block-end: 8px; }
	.contact-card h3 { font-size: 22px; }
	.contact-action { margin-block-start: auto; padding-block-start: 10px; }
	.contact-action.is-number { font-size: 26px; }
	.contact-card::before { inset-block-start: calc(-1 * var(--stub) - 2px); inset-inline-start: 50%; width: 2px; height: var(--stub); transform-origin: top; }
	.air-end-rail { inset-block: -1600px calc(100% + var(--stub)); inset-inline-start: var(--x); }
	.air-end-trunk { display: block; inset-block-start: calc(-1 * var(--stub) - 2px); inset-inline-start: var(--x); inset-inline-end: calc(100% / var(--count, 3) / 2); height: 2px; transform-origin: right; }
	.air-end-node { inset-block-start: calc(-1 * var(--stub) - 9px); inset-inline-start: calc(var(--x) - 7px); width: 16px; height: 16px; box-shadow: 0 0 0 4px rgba(124, 192, 255, .22); }
}
@media (hover: hover) {
	.contact-card:hover { border-color: #7CC0FF; box-shadow: 0 0 0 2px #7CC0FF; }
}
.contact-card:focus-visible { border-color: #7CC0FF; }
/* The chosen path stands out, the other drawn lines step back. Texts and buttons stay as they are. */
.contact-options:has(.contact-card:hover) .air-end, .contact-options:has(.contact-card:focus-visible) .air-end { opacity: .55; }
.contact-options:has(.contact-card:hover) .contact-card:not(:hover)::before, .contact-options:has(.contact-card:focus-visible) .contact-card:not(:focus-visible)::before { opacity: .4; }
.contact-card:hover::before, .contact-card:focus-visible::before { background: var(--white); }

/* Before you start: questions that open in place; the open one's short summary beside them on wide screens.
   Faint diagonal lines from the footer's family; reading comes first. */
.home-a .ask-band { background-image: repeating-linear-gradient(135deg, rgba(26, 19, 110, .03) 0 1px, transparent 1px 72px); }
.ask-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-block-start: 28px; }
.ask-list { border-block-end: 1px solid var(--input); }
.ask-q { border-block-start: 1px solid var(--input); }
.ask-q summary { display: grid; grid-template-columns: 12px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 6px; color: var(--primary); font-weight: 600; font-size: 17px; line-height: 1.6; list-style: none; cursor: pointer; }
.ask-q summary::-webkit-details-marker { display: none; }
.ask-q summary:focus-visible { outline-offset: -2px; }
.ask-mark { width: 10px; height: 10px; border: 1.5px solid var(--input); transform: rotate(45deg) scale(.8); transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast) linear, border-color var(--t-fast) linear; }
.ask-q summary:hover .ask-mark { border-color: var(--accent); }
.ask-q[open] .ask-mark { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(1); }
.ask-answer { padding-block-end: 18px; padding-inline-start: 30px; }
.ask-answer p { margin: 0; font-size: 16px; line-height: 1.9; }
.ask-side { display: none; }
.ask-end { margin: 24px 0 0; font-weight: 600; color: var(--primary); }
@media (min-width: 1024px) {
	.ask-board { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; margin-block-start: 40px; }
	.ask-q summary { font-size: 19px; min-height: 68px; }
	.ask-answer p { font-size: 17px; }
	@supports selector(:has(*)) {
		.ask-side { display: block; position: sticky; inset-block-start: calc(var(--header-h) + 24px); padding: 26px 28px 28px; background: var(--white); border-block-start: 3px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%); }
		.ask-side-title { margin: 0 0 16px; font-weight: 600; color: var(--primary); font-size: 18px; }
		.ask-sums { display: grid; }
		.ask-sum { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; visibility: hidden; }
		.ask-sum li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 12px; padding-block: 10px; border-block-start: 1px solid var(--border); font-size: 16px; line-height: 1.6; }
		.ask-sum svg { width: 26px; height: 26px; color: var(--link); }
		.ask-board:has(.ask-q:nth-child(1)[open]) .ask-sum[data-for="1"], .ask-board:has(.ask-q:nth-child(2)[open]) .ask-sum[data-for="2"], .ask-board:has(.ask-q:nth-child(3)[open]) .ask-sum[data-for="3"], .ask-board:has(.ask-q:nth-child(4)[open]) .ask-sum[data-for="4"], .ask-board:has(.ask-q:nth-child(5)[open]) .ask-sum[data-for="5"], .ask-board:has(.ask-q:nth-child(6)[open]) .ask-sum[data-for="6"], .ask-board:has(.ask-q:nth-child(7)[open]) .ask-sum[data-for="7"] { visibility: visible; animation: entry-text 220ms var(--ease-out) both; }
	}
}
@media (prefers-reduced-motion: no-preference) {
	/* One small movement of the chosen option's icon; it plays once and nothing follows the pointer. */
	@media (hover: hover) {
		.contact-card.is-call:hover .ic-move { animation: ic-call 420ms var(--ease-out); transform-origin: 24px 24px; }
		.contact-card.is-chat:hover .ic-move { animation: ic-chat 420ms var(--ease-out); }
		.contact-card.is-request:hover .ic-move { animation: ic-form 360ms var(--ease-out); }
	}
	.contact-card.is-call:focus-visible .ic-move { animation: ic-call 420ms var(--ease-out); transform-origin: 24px 24px; }
	.contact-card.is-chat:focus-visible .ic-move { animation: ic-chat 420ms var(--ease-out); }
	.contact-card.is-request:focus-visible .ic-move { animation: ic-form 360ms var(--ease-out); }
	@supports (interpolate-size: allow-keywords) {
		.ask-list { interpolate-size: allow-keywords; }
		.ask-q::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
		.ask-q[open]::details-content { block-size: auto; }
	}
}

/* Arrow on the home page's solid buttons: moves on hover (a response, not decoration). */
.home-a .button::after { content: "←"; font-family: var(--font-en); font-weight: 400; transition: transform var(--t-fast) var(--ease-out); }
.home-a .button:hover::after { transform: translateX(-5px); }

/* ------------------------------------------------------------------ Motion (only with the full feature set) */
@media (prefers-reduced-motion: no-preference) {
	/* A choice: the line runs from it into the drawing, and the scene and text settle. Applied only to the chosen
	   ones, so each choice plays it afresh; the frame of the board does not move. */
	@supports selector(:has(*)) {
		.entry-board:has([value="project"]:checked) [data-scene="project"], .entry-board:has([value="home"]:checked) [data-scene="home"], .entry-board:has([value="service"]:checked) [data-scene="service"] { animation: entry-scene 320ms var(--ease-out) both; }
		.entry-board:has([value="project"]:checked) [data-scene="project"] .entry-flow, .entry-board:has([value="home"]:checked) [data-scene="home"] .entry-flow, .entry-board:has([value="service"]:checked) [data-scene="service"] .entry-flow { animation: entry-flow 560ms var(--ease-out) 120ms both; }
		.entry-board:has([value="project"]:checked) [data-need="project"], .entry-board:has([value="home"]:checked) [data-need="home"], .entry-board:has([value="service"]:checked) [data-need="service"] { animation: entry-text 240ms var(--ease-out) both; }
		.entry-choice:has(input:checked)::after { animation: entry-stub 160ms linear both; }
		.dev-list:has([value="all"]:checked) [data-type="all"], .dev-list:has([value="split"]:checked) [data-type="split"], .dev-list:has([value="window"]:checked) [data-type="window"] { animation: dev-in 260ms var(--ease-out) both; }
	}
	@media (min-width: 1200px) {
		.air-line { stroke-dashoffset: 1; animation: air-draw 1.8s var(--ease-out) .15s forwards; }
		.air-flow { animation: air-flow 16s linear infinite paused; }
		.home-hero.is-live .air-flow { animation-play-state: running; opacity: .9; }
	}
	@supports (animation-timeline: view()) {
		@media (min-width: 1200px) {
			.air-rail::before { animation: rail-fill linear both; animation-timeline: --home-flow; animation-range: entry 40% exit 0%; }
		}
		/* The line's end, in order as the section comes in: down to the node, one pulse, along the branch, into each card. */
		.air-end-rail { animation: end-down linear both; animation-timeline: --closing; animation-range: entry 0% entry 45%; }
		.air-end-node { animation: end-node linear both; animation-timeline: --closing; animation-range: entry 38% entry 52%; }
		.air-end-node::after { animation: end-pulse linear both; animation-timeline: --closing; animation-range: entry 50% entry 72%; }
		.air-end-trunk { animation: end-along linear both; animation-timeline: --closing; animation-range: entry 50% entry 74%; }
		.contact-card::before { animation: end-stub linear both; animation-timeline: --closing; animation-range: entry 70% entry 86%; }
		.contact-card::after { animation: end-sweep linear both; animation-timeline: --closing; animation-range: entry 80% entry 100%; }
		@media (max-width: 899px) { .contact-card::before { animation-name: end-along; } }
		/* The air line runs once round the image's frame as the section comes in. */
		.about-frame-air { opacity: 1; animation: about-air linear both; animation-timeline: --about-view; animation-range: entry 20% cover 50%; }
		@media (min-width: 768px) {
			.start-line-fill { animation: start-draw linear both; animation-timeline: --start-view; animation-range: entry 35% cover 55%; }
		}
		.start-tile { animation: start-lit linear both; animation-timeline: view(); animation-range: entry 30% entry 100%; }
		/* A short rise while each block enters; a smaller one on phones. */
		.home-a .works .project-card, .home-a .section-head, .home-a .about-a-main, .home-a .about-a-value, .prepare-a, .dev-intro, .dev-list {
			animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
		}
		/* Focus never lands on a half-shown block: it is complete at once. */
		.home-a .works .project-card:focus-within, .home-a .section-head:focus-within, .home-a .about-a-main:focus-within, .home-a .about-a-value:focus-within, .prepare-a:focus-within, .dev-intro:focus-within, .dev-list:focus-within { animation: none; }
	}
}
@keyframes air-draw { to { stroke-dashoffset: 0; } }
@keyframes air-flow { to { stroke-dashoffset: -.76; } }
@keyframes about-air { from { stroke-dashoffset: 1.16; } to { stroke-dashoffset: .16; } }
@keyframes rail-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes end-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes end-node { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes end-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
@keyframes end-along { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes end-stub { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes end-sweep { 0%, 100% { opacity: 0; background-position: 100% 0; } 50% { opacity: 1; } }
@keyframes ic-call { 25% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } }
@keyframes ic-chat { 40% { opacity: .35; } }
@keyframes ic-form { 40% { transform: translateX(-3px); } }
@keyframes entry-scene { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes entry-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dev-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes entry-text { from { opacity: 0; } to { opacity: 1; } }
@keyframes entry-stub { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes start-draw { from { clip-path: inset(-4px -4px -4px 100%); } to { clip-path: inset(-4px -4px -4px 0); } }
@keyframes start-lit { from { border-color: var(--border); } to { border-color: var(--accent); } }
@keyframes slide-wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(-30% 0, 100% 0, 100% 100%, 0 100%); } }
@media (prefers-reduced-motion: reduce) {
	.home-a *, .home-a *::before, .home-a *::after { transition: none !important; }
	.home-slide.is-entering, .ask-sum { animation: none !important; }
}
