/* ==========================================================================
   Pixart — "Oil, dirt and 1800s diesel"
   Mobile first, 360px and up. Tokens first, then components, then layout.
   ========================================================================== */

:root {
	--soot: #17140F;
	--soot-2: #1E1A14;
	--iron: #2B2824;
	--ink: #1A1A2E;
	--black: #0B0B12;
	--parchment: #E8DFC8;
	--parchment-2: #D4C9A8;
	--parchment-3: #B8AE90;
	--parchment-deep: #F4EDDA;
	--parchment-line: #8A7A55;
	--parchment-ink: #3A3020;
	--parchment-dim: #5A4E36;
	--brass: #B8952A;
	--brass-hi: #F6DC8E;
	--brass-mid: #E2C267;
	--brass-lo: #8A6E1E;
	--brass-edge: #4D3C0A;
	--brass-shadow: #3A2D07;
	--brass-dark: #5E4A10;
	--brass-dial: #D9B54E;
	--copper: #B5651D;
	--copper-hi: #F0B07A;
	--copper-lo: #4A250E;
	--copper-dk: #3E1F0B;
	--blueprint: #0F2A5C;
	--red: #B23A2A;
	--red-dk: #5A1A12;
	--red-hi: #FF8A70;
	--red-ink: #A33224; /* red on parchment: 5.0:1 */
	--steel: #5A606C;
	--steel-2: #3A3F48;
	--steel-3: #22252C;
	--steel-dk: #2C3038;
	--lamp: #F2B33D;
	--lamp-green: #8FD16A;
	--lamp-red: #E2553F;
	--hazard: #E2B53A;
	--hazard-dk: #14141F;

	--font-deco: 'Rye', Georgia, 'Times New Roman', serif;
	--font-stencil: 'Saira Stencil One', Impact, 'Arial Narrow', sans-serif;
	--font-body: 'Old Standard TT', Georgia, 'Times New Roman', serif;

	--gutter: clamp(16px, 4vw, 56px);
	--max: 1320px;
	--brass-grad: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
	--steel-grad: linear-gradient(180deg, var(--steel), var(--steel-dk));
	--steel-grad-soft: linear-gradient(180deg, var(--steel-2), var(--steel-3));

	/* Throttle — set per position on <html data-throttle>, read by every moving part. */
	--prop-dur: .5s;
	--piston-dur: .75s;
	--smoke-dur: 2.4s;
	--wheel-dur: 6s;
	--needle: 8deg;
}
html[data-throttle="idle"]   { --prop-dur: 1.4s;  --piston-dur: 1.8s; --smoke-dur: 4.2s; --wheel-dur: 14s;  --needle: -100deg; }
html[data-throttle="cruise"] { --prop-dur: .5s; --piston-dur: .75s; --smoke-dur: 2.4s; --wheel-dur: 6s;   --needle: 8deg; }
html[data-throttle="boost"]  { --prop-dur: .22s; --piston-dur: .32s; --smoke-dur: 1.1s; --wheel-dur: 1.6s; --needle: 114deg; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--parchment);
	background-color: var(--soot);
	background-image:
		radial-gradient(ellipse 420px 260px at 12% 18%, rgba(0, 0, 0, .55), transparent 70%),
		radial-gradient(ellipse 300px 200px at 82% 42%, rgba(40, 26, 8, .6), transparent 70%),
		radial-gradient(ellipse 520px 300px at 30% 78%, rgba(0, 0, 0, .5), transparent 70%);
	overflow-x: hidden;
	min-height: 100vh;
	position: relative;
}
body.has-dialog { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brass-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass-hi); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }

.skip {
	position: absolute; left: 16px; top: -100px; z-index: 50;
	padding: 12px 18px; background: var(--brass-grad); color: var(--ink); border-radius: 6px;
}
.skip:focus { top: 16px; color: var(--ink); }

/* Soot overlay: a static, tiled grain (assets/img/grime.webp) with the old
   multiply-at-55% look baked into its alpha, so no blend mode and no live SVG
   filter. The tile is 256px drawn at 64px, so the specks are a quarter of a CSS
   pixel: fine grain rather than visible blocks. It spans the document rather
   than being fixed, so scrolling and the animations beneath it never force a
   full-screen re-blend. */
body::before {
	content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
	background: url(/assets/img/grime.webp) 0 0 / 64px 64px repeat;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.deco { font-family: var(--font-deco); font-weight: 400; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.stencil { font-family: var(--font-stencil); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.kicker { font-size: 13px; color: var(--brass-mid); letter-spacing: .3em; }
.accent { color: var(--brass-mid); }
.lede { font-size: 18px; line-height: 1.65; color: var(--parchment-2); max-width: 34em; }
.lede a { color: var(--brass-hi); }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; color: var(--parchment); }
.hero__title { font-size: clamp(42px, 6.4vw, 92px); line-height: .98; color: var(--parchment); }
.hero__title--hangar { font-size: clamp(42px, 6vw, 84px); }
.hero__title--page { font-size: clamp(38px, 5.2vw, 72px); }

/* --------------------------------------------------------------------------
   Plates (cast iron with rivets)
   -------------------------------------------------------------------------- */
.plate {
	position: relative;
	background-color: var(--iron);
	background-image:
		radial-gradient(ellipse 140px 70px at 18% 80%, rgba(5, 4, 2, .55), transparent 70%),
		radial-gradient(ellipse 90px 50px at 86% 22%, rgba(60, 40, 10, .45), transparent 70%),
		linear-gradient(180deg, rgba(255, 240, 200, .06), rgba(0, 0, 0, .28));
	border: 2px solid var(--black);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 14px 28px rgba(0, 0, 0, .5);
}
.plate::before, .plate::after {
	content: ""; position: absolute; left: 12px; right: 12px; height: 8px; pointer-events: none;
	background: radial-gradient(circle, #C3C8CF 0 1.8px, var(--steel-2) 2.2px 3px, transparent 3.4px) 0 0 / 26px 8px repeat-x;
}
.plate::before { top: 7px; }
.plate::after { bottom: 7px; }
.plate--bar { border-radius: 0; border-left: 0; border-right: 0; }

/* --------------------------------------------------------------------------
   Lamps, pipes, hazard tape, oil
   -------------------------------------------------------------------------- */
.lamp {
	width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block;
	background: var(--lamp); box-shadow: 0 0 10px 2px rgba(242, 179, 61, .8);
}
.status .lamp { animation: flicker 2.8s infinite; }
.lamp--amber { background: var(--lamp); }
.lamp--green { background: var(--lamp-green); box-shadow: 0 0 10px 2px rgba(143, 209, 106, .7); }
.lamp--red { background: var(--lamp-red); box-shadow: 0 0 10px 2px rgba(226, 85, 63, .8); }
.lamp--off { background: #4A4232; box-shadow: none; animation: none; }
/* Menu switches (desktop valves and the telegraph orders) carry proper bulbs: a
   domed glass with a highlight, a dark bezel and a glow; unlit ones are dark glass. */
.lamp { --bulb: var(--lamp); --glow: rgba(242, 179, 61, .8); }
.lamp--green { --bulb: var(--lamp-green); --glow: rgba(143, 209, 106, .75); }
.lamp--red { --bulb: var(--lamp-red); --glow: rgba(226, 85, 63, .8); }
.valve .lamp, .order-link .lamp {
	width: 14px; height: 14px;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .45) 16%, var(--bulb) 40%, color-mix(in srgb, var(--bulb), #000 55%) 100%);
	box-shadow: 0 0 0 2px #1A1612, 0 0 0 3px rgba(255, 255, 255, .08), 0 0 12px 3px var(--glow);
}
.valve .lamp--off, .order-link .lamp--off {
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35) 0, rgba(255, 255, 255, .08) 16%, #3A3222 40%, #15120C 100%);
	box-shadow: 0 0 0 2px #1A1612, 0 0 0 3px rgba(255, 255, 255, .08);
}

.pipe {
	height: 24px;
	background: linear-gradient(180deg, var(--copper-lo) 0%, var(--copper) 22%, var(--copper-hi) 42%, var(--copper) 62%, var(--copper-dk) 100%);
	box-shadow: 0 8px 12px rgba(0, 0, 0, .45);
}
.pipe-v {
	width: 24px;
	background: linear-gradient(90deg, var(--copper-lo) 0%, var(--copper) 22%, var(--copper-hi) 42%, var(--copper) 62%, var(--copper-dk) 100%);
	box-shadow: 8px 0 12px rgba(0, 0, 0, .45);
}
.pipe-strip { position: relative; height: 24px; z-index: 2; }
.pipe-strip .pipe { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
/* A drop from the main feed on every page: it falls from the pipe, turns at a
   brass-collared elbow and runs exactly to the right-hand edge of the page, so
   it leads somewhere without ever overflowing the viewport. Shown from 600px. */
.pipe-drop {
	position: absolute; top: 14px; right: 0; width: calc(12% + 24px); height: 80px; display: none; pointer-events: none;
	box-shadow: none;
	background: linear-gradient(90deg, var(--copper-lo) 0%, var(--copper) 22%, var(--copper-hi) 42%, var(--copper) 62%, var(--copper-dk) 100%) 0 0 / 24px 100% no-repeat;
}
.pipe-drop::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border-radius: 12px 0 0 0;
	background: linear-gradient(180deg, var(--copper-lo) 0%, var(--copper) 22%, var(--copper-hi) 42%, var(--copper) 62%, var(--copper-dk) 100%);
	box-shadow: 0 8px 12px rgba(0, 0, 0, .45);
}
.pipe-drop::after {
	content: ""; position: absolute; left: -7px; top: 30px; width: 38px; height: 16px; border-radius: 3px;
	background: linear-gradient(180deg, #6B5212, var(--brass-mid) 45%, var(--brass-lo));
	box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}
.flange {
	position: absolute; top: -7px; width: 16px; height: 38px; border-radius: 3px; z-index: 3;
	background: linear-gradient(90deg, #6B5212, var(--brass-mid) 45%, var(--brass-lo));
	box-shadow: 0 4px 8px rgba(0, 0, 0, .5);
}
/* Oil drips: a thin trail that starts behind the pipe and its collar (lower
   z-index, top inside the pipe) and ends in a glossy teardrop bead. */
.drip {
	position: absolute; top: 12px; width: 6px; height: var(--drip-h, 40px); z-index: 1; border-radius: 0 0 3px 3px; pointer-events: none;
	background: linear-gradient(90deg, #0A0805, #2E2618 40%, #0A0805);
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08);
}
.drip::after {
	content: ""; position: absolute; left: 50%; bottom: -13px; width: 14px; height: 14px; margin-left: -7px;
	border-radius: 0 50% 50% 50%; transform: rotate(45deg);
	background: radial-gradient(circle at 35% 35%, #5C5038, #0A0805 62%);
	box-shadow: 1px 1px 2px rgba(0, 0, 0, .6);
}
.hazard { height: 16px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 16px, var(--hazard-dk) 16px 32px); }
.oil {
	position: absolute; border-radius: 50%; pointer-events: none;
	background: radial-gradient(ellipse at 40% 35%, rgba(70, 60, 40, .35), rgba(8, 6, 3, .75) 55%, transparent 72%);
}
.blueprint {
	background-color: var(--blueprint);
	background-image: linear-gradient(rgba(232, 223, 200, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 223, 200, .09) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* --------------------------------------------------------------------------
   Buttons and valves
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 14px 24px; border-radius: 8px; text-decoration: none;
	font-size: 16px; cursor: pointer; border: 2px solid; transition: transform .12s, box-shadow .12s;
}
.btn .stencil { font-size: inherit; }
.btn--brass {
	color: var(--ink); background: var(--brass-grad); border-color: var(--brass-edge);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--brass-shadow), 0 12px 20px rgba(0, 0, 0, .5);
}
.btn--brass:hover, .btn--brass:focus-visible {
	color: var(--ink); transform: translateY(3px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--brass-shadow), 0 6px 10px rgba(0, 0, 0, .5);
}
.btn--steel {
	color: var(--parchment); background: var(--steel-grad); border-color: var(--black);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 5px 0 var(--black), 0 12px 20px rgba(0, 0, 0, .5);
}
.btn--steel:hover, .btn--steel:focus-visible {
	color: var(--brass-hi); transform: translateY(3px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 var(--black);
}
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ctas .btn { flex: 1 1 auto; }

.valve {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px;
	border-radius: 6px; text-decoration: none; color: var(--ink);
	background: var(--brass-grad); border: 2px solid var(--brass-edge);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 0 var(--brass-shadow), 0 8px 14px rgba(0, 0, 0, .45);
	transition: transform .12s, box-shadow .12s;
}
.valve:hover, .valve:focus-visible {
	color: var(--ink); transform: translateY(2px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--brass-shadow), 0 4px 8px rgba(0, 0, 0, .45);
}
.valve--on { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4); transform: translateY(2px); }
.valve__text { display: flex; flex-direction: column; line-height: 1.05; }
.valve__name { font-size: 15px; }
.valve__cap { font-size: 11px; opacity: .75; }

.notch {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px;
	border-radius: 6px; border: 2px solid var(--black); text-align: left; cursor: pointer;
	background: var(--steel-grad-soft); color: var(--parchment-2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 var(--black);
	transition: transform .12s, box-shadow .12s, background .2s;
}
.notch .stencil { font-size: 15px; }
.notch .lamp { opacity: .2; }
.notch[aria-pressed="true"] { background: var(--brass-grad); color: var(--ink); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); transform: translateY(2px); }
.notch[aria-pressed="true"] .lamp { opacity: 1; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead { z-index: 3; padding: 20px var(--gutter); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand__name { font-size: 28px; line-height: 1; color: var(--brass-hi); letter-spacing: .04em; }
.brand__sub { font-size: 9px; color: var(--parchment-2); letter-spacing: .26em; white-space: nowrap; }
.valves { display: none; flex-wrap: wrap; gap: 12px; }
.wheel-btn {
	width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--iron); border: 2px solid var(--black); box-shadow: 0 4px 0 var(--black); cursor: pointer; padding: 0;
}
.wheel-btn__svg { width: 44px; height: 44px; }
.wheel-btn:hover .wheel-btn__svg, .wheel-btn:focus-visible .wheel-btn__svg { transform: rotate(30deg); transition: transform .3s; }

/* --------------------------------------------------------------------------
   Engine-order telegraph (phone menu)
   -------------------------------------------------------------------------- */
.telegraph {
	width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0;
	border: 0; padding: 0; color: var(--parchment); background: var(--soot);
	background-image: radial-gradient(ellipse 260px 200px at 20% 10%, rgba(0, 0, 0, .6), transparent 70%), radial-gradient(ellipse 240px 160px at 85% 90%, rgba(40, 26, 8, .65), transparent 70%);
	overflow: auto;
}
.telegraph::backdrop { background: rgba(0, 0, 0, .65); }
.telegraph__in { display: flex; flex-direction: column; min-height: 100%; }
.telegraph__top { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 0; }
.telegraph__brand { font-size: 27px; color: var(--brass-hi); }
.telegraph__close {
	width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--iron); border: 2px solid var(--black); box-shadow: 0 4px 0 var(--black); color: var(--brass-mid); cursor: pointer; padding: 0;
}
.telegraph__label { font-size: 11px; color: var(--parchment-2); letter-spacing: .28em; text-align: center; padding: 18px 16px 10px; }
.dial { width: 320px; max-width: calc(100% - 32px); height: auto; margin: 0 auto; }
.dial__handle { transform-origin: 160px 160px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.dial__wedge { transform-origin: 160px 160px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.orders { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; margin-top: -40px; }
.order-link {
	display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 18px; border-radius: 8px;
	text-decoration: none; border: 2px solid var(--black); color: var(--parchment);
	background: var(--steel-grad-soft); box-shadow: 0 4px 0 var(--black);
}
.order-link__name { font-size: 19px; flex: 1; }
.order-link__cap { font-size: 14px; color: var(--parchment-3); }
.order-link--on { background: var(--brass-grad); color: var(--ink); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .3); }
.order-link--on .order-link__cap { color: var(--ink); }
.telegraph__tape { margin-top: auto; height: 14px; }
.telegraph__tape { margin-top: 24px; }
.telegraph__in { padding-bottom: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 40px var(--gutter) 64px; overflow: hidden; }
.oil--a { left: -40px; bottom: 30px; width: 300px; height: 80px; }
.oil--b { right: -20px; bottom: 10px; width: 240px; height: 60px; }
.hero__in { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--parchment-2); }
.hero__text { }
.throttle { padding: 26px 18px 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; max-width: 560px; }
.gauge { width: 150px; height: 150px; flex: none; margin: 0 auto; }
.gauge__needle { transform-origin: 80px 80px; transform: rotate(var(--needle)); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1); }
.throttle__notches { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.throttle__label { font-size: 12px; color: var(--parchment-2); letter-spacing: .2em; }

.hero__feature { flex: 1 1 100%; min-width: 0; max-width: 600px; margin: 0 auto; position: relative; width: 100%; }
.porthole-wrap { position: relative; }
.porthole {
	/* The ring is a true circle: the glass and its picture are pinned inside the
	   square with absolute insets, so a portrait image can never stretch it tall. */
	position: relative; z-index: 6; /* above the soot layer: the picture stays clean */
	width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; contain: paint;
	background: radial-gradient(circle at 35% 30%, var(--brass-hi), var(--brass) 45%, var(--brass-dark) 100%);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 0 0 6px rgba(0, 0, 0, .25);
}
.porthole__bolts { position: absolute; inset: 0; width: 100%; height: 100%; }
.porthole__glass {
	position: absolute; inset: 7%; border-radius: 50%; overflow: hidden;
	box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 40px rgba(0, 0, 0, .8);
	display: flex; align-items: center; justify-content: center;
}
.porthole__glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.porthole__empty { font-size: 12px; color: var(--parchment-2); text-align: center; padding: 20px; }
.nameplate {
	display: block; margin: -26px auto 0; width: max-content; max-width: 92%; padding: 18px 24px;
	text-align: center; position: relative; z-index: 7; text-decoration: none;
}
.nameplate__label { display: block; font-size: 11px; color: var(--parchment-2); letter-spacing: .24em; }
.nameplate__title { display: block; font-size: 24px; color: var(--brass-hi); margin-top: 4px; }
/* Bare blades spinning over the top of the picture, centred just inside the brass ring. */
.prop { position: absolute; left: 50%; top: 8%; width: 26%; max-width: 140px; transform: translateX(-50%); z-index: 7; }
.prop__blades { transform-box: view-box; transform-origin: 50% 50%; animation: spin var(--prop-dur) linear infinite; } /* spin about the hub, not the blades' lopsided bounding box */

.steam {
	position: absolute; width: 46px; height: 46px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(232, 223, 200, .55), rgba(232, 223, 200, 0) 70%);
	animation: puff var(--smoke-dur) ease-out infinite;
}
.steam--a { top: -10px; right: 16%; }
.steam--b { top: -10px; right: 16%; animation-delay: -1.1s; }
.steam--c { top: -4px; right: 19%; width: 34px; height: 34px; animation-name: puff-right; animation-delay: -.5s; }
.steam--d { top: 2px; right: 14%; width: 56px; height: 56px; animation-delay: -1.7s; animation-duration: calc(var(--smoke-dur) * 1.3); }
.steam--e { top: -14px; right: 17%; width: 28px; height: 28px; animation-name: puff-right; animation-delay: -2.3s; animation-duration: calc(var(--smoke-dur) * .8); }
.steam--late { animation-delay: -1.2s; }
.steam--late2 { animation-name: puff-right; animation-delay: -2s; width: 34px; height: 34px; }

/* --------------------------------------------------------------------------
   Brass band / ticker
   -------------------------------------------------------------------------- */
.band__brass { background: var(--brass); padding: 12px 0; overflow: hidden; contain: paint; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -3px 0 rgba(0, 0, 0, .35); }
.ticker { display: flex; width: max-content; gap: 32px; font-size: 15px; color: var(--ink); letter-spacing: .14em; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker__star { opacity: .8; }

/* --------------------------------------------------------------------------
   Sections, grids, tiles, frames
   -------------------------------------------------------------------------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head__text { display: flex; flex-direction: column; gap: 10px; }
.arrivals { padding: 64px var(--gutter); position: relative; }
.arrivals__rack { position: relative; }
/* Full-bleed: the feed runs from one edge of the viewport to the other, not just the content column. */
.arrivals__pipe { position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); top: 46%; opacity: .9; }
.grid { position: relative; display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid--arrivals { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.grid--bays { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }

.tile { display: flex; flex-direction: column; gap: 14px; padding: 26px 16px 24px; text-decoration: none; color: var(--parchment); top: 0; transition: top .15s; }
.tile:hover { top: -3px; color: var(--parchment); }
.tile__head { display: flex; justify-content: space-between; align-items: center; }
.tile__bay { font-size: 13px; color: var(--brass-mid); }
.tile__kind { font-size: 11px; color: var(--parchment-3); border: 1px solid var(--brass-dark); border-radius: 3px; padding: 2px 6px; }
.tile__title { font-size: 22px; line-height: 1.2; color: var(--brass-hi); }
.tile__more { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--parchment-2); }

.frame {
	position: relative; z-index: 6; /* above the soot layer: the picture stays clean */
	aspect-ratio: 4 / 3; border-radius: 6px; border: 3px solid var(--ink); padding: 5%;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	background-color: var(--blueprint);
	background-image: linear-gradient(rgba(232, 223, 200, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 223, 200, .09) 1px, transparent 1px);
	background-size: 20px 20px;
	box-shadow: inset 0 0 0 2px var(--brass-lo), inset 0 0 30px rgba(0, 0, 0, .45);
	transition: background-color .3s;
}
.frame img { width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 10px 14px rgba(0, 0, 0, .5); }
.frame--large { aspect-ratio: auto; min-height: 240px; padding: 4%; }
.frame--large img { max-height: 70vh; width: auto; max-width: 100%; margin: 0 auto; }
.frame--wide { aspect-ratio: 21 / 9; padding: 0; }
.frame--wide img { object-fit: cover; height: 100%; box-shadow: none; }
html[data-frame="proof"] .frame { background-color: var(--parchment); background-image: none; box-shadow: inset 0 0 0 2px var(--brass-lo), inset 0 0 40px rgba(60, 40, 10, .35); }
html[data-frame="proof"] .frame img { box-shadow: 0 8px 10px rgba(0, 0, 0, .35); }

/* --------------------------------------------------------------------------
   Engine room
   -------------------------------------------------------------------------- */
.engine-room { padding: 64px var(--gutter); background: var(--soot-2); border-top: 3px solid var(--black); border-bottom: 3px solid var(--black); }
.engine-room__in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.engine-room__copy { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.engine-room__copy .btn { align-self: flex-start; }
.engine-room__plate { flex: 1 1 100%; min-width: 0; }
.engine { padding: 36px 16px 24px; overflow: hidden; }
.engine__stacks { display: flex; justify-content: center; gap: 46px; margin-bottom: 4px; }
.stack { position: relative; width: 22px; height: 46px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--copper-dk), var(--copper) 40%, var(--copper-dk)); }
.stack .steam { top: -40px; left: -12px; }
.engine__cyls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; contain: paint; }
.cyl { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.cyl__bore {
	width: 100%; max-width: 110px; height: 130px; border-radius: 10px 10px 4px 4px; border: 3px solid var(--black);
	background: repeating-linear-gradient(180deg, var(--steel) 0 9px, var(--steel-dk) 9px 14px); position: relative; overflow: hidden;
}
.cyl__slot { position: absolute; left: 22%; right: 22%; top: 10px; bottom: 10px; background: var(--black); border-radius: 4px; }
.cyl__piston {
	position: absolute; left: 26%; right: 26%; top: 14px; height: 56px; border-radius: 4px;
	background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi) 45%, var(--brass-lo));
	animation: pump var(--piston-dur) ease-in-out infinite;
	animation-delay: calc(var(--phase, 0) * var(--piston-dur) / -4);
}
.cyl__text { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cyl__no { font-size: 22px; color: var(--brass-mid); }
.cyl__title { font-size: 12px; color: var(--parchment); }
.cyl__body { font-size: 13px; line-height: 1.4; color: var(--parchment-3); display: none; }
.pipe--engine { margin: 22px -16px 0; height: 18px; }

/* --------------------------------------------------------------------------
   Works order (forms)
   -------------------------------------------------------------------------- */
.works { padding: 64px var(--gutter); }
.works__in { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.works__copy { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.works__form { flex: 1 1 100%; min-width: 0; }
.wireless { padding: 24px 20px; display: flex; gap: 20px; align-items: center; }
.wireless__wheel { width: 84px; height: 84px; flex: none; }
.wireless__text { font-size: 15px; line-height: 1.6; color: var(--parchment-2); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin var(--wheel-dur) linear infinite; }

.order {
	position: relative; background: var(--parchment); color: var(--ink); border-radius: 6px;
	padding: 28px 18px; border: 2px solid var(--parchment-line); display: flex; flex-direction: column; gap: 18px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .55);
}
.order__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px double var(--parchment-line); padding-bottom: 14px; }
.order__title { font-size: 22px; color: var(--ink); }
.order__dept { font-size: 13px; color: var(--parchment-dim); }
.order__stamp { transform: rotate(-8deg); border: 3px solid var(--red-ink); color: var(--red-ink); padding: 5px 10px; border-radius: 4px; font-size: 13px; flex: none; }
.order__fields { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label, .field__check { font-family: var(--font-stencil); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--parchment-ink); }
.field__check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.field__check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.field__radios { display: flex; flex-direction: column; gap: 2px; }
.field__help { font-size: 13px; color: var(--parchment-dim); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.field__radios + .field__help, .field__check + .field__help { margin-top: 2px; }
.order__req { color: var(--red-ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
	font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 4px; width: 100%;
	border: 2px solid var(--parchment-line); background: var(--parchment-deep); color: var(--ink);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.order__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.order__note { font-size: 13px; color: var(--parchment-dim); }
.push {
	display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 26px 0 10px; border-radius: 40px;
	border: 3px solid var(--ink); background: var(--ink); color: var(--brass-hi); cursor: pointer; letter-spacing: .1em; font-size: 16px; width: 100%; justify-content: center;
}
.push__button { width: 40px; height: 40px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, var(--red-hi), var(--red) 60%, #6E1C12); box-shadow: 0 3px 0 #3A0E08; transition: transform .1s, box-shadow .1s; }
.push:hover .push__button, .push:active .push__button { transform: translateY(2px); box-shadow: 0 1px 0 #3A0E08; }
.push[disabled] { opacity: .6; cursor: wait; }
.order__msg { margin: 0; padding: 12px 14px; border-radius: 4px; font-size: 15px; background: var(--parchment-deep); border: 2px solid var(--parchment-line); }
.order__msg.is-ok { border-color: #4F7A2E; color: #2E4F18; }
.order__msg.is-error { border-color: var(--red); color: var(--red-dk); }

/* --------------------------------------------------------------------------
   The Hangar
   -------------------------------------------------------------------------- */
.hangar-hero { padding: 48px var(--gutter) 40px; }
.hangar-hero__in { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.hangar-hero__copy { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.selector { flex: 1 1 100%; max-width: 520px; padding: 30px 16px 24px; display: flex; flex-direction: column; gap: 18px; margin: 0 auto; }
.selector__dial { position: relative; width: 100%; max-width: 360px; aspect-ratio: 3 / 2; margin: 0 auto; }
.pos {
	position: absolute; transform: translate(-50%, -50%); min-height: 44px; padding: 0 12px; border-radius: 22px;
	border: 2px solid var(--black); display: flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none;
	font-size: 12px; background: #1E1A14; color: var(--parchment-2); cursor: pointer; transition: background .2s, color .2s;
}
.pos .lamp { opacity: .15; }
.pos--on { background: var(--brass-grad); color: var(--ink); }
.pos--on .lamp { opacity: 1; }
.pos:hover { color: var(--brass-hi); }
.pos--on:hover { color: var(--ink); }
.knob { position: absolute; left: 29.2%; top: 46.7%; width: 41.7%; height: auto; aspect-ratio: 1; }
.knob__rotor { transform-origin: 80px 80px; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.selector__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 2px solid var(--black); padding-top: 18px; }
.readout { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; background: var(--black); border-radius: 4px; border: 2px solid var(--brass-dark); min-width: 150px; }
.readout__label { font-size: 10px; color: var(--parchment-3); letter-spacing: .2em; }
.readout__value { font-size: 20px; color: var(--lamp-green); }
.switch { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 6px 0; min-height: 44px; text-align: left; cursor: pointer; color: var(--parchment); }
.switch__housing { position: relative; width: 34px; height: 58px; border-radius: 6px; background: var(--black); border: 2px solid var(--brass-dark); display: block; flex: none; }
.switch__lever { position: absolute; left: 50%; width: 10px; height: 30px; margin-left: -5px; top: 2px; border-radius: 5px; background: linear-gradient(90deg, #8A8F99, #E8E8E8 45%, #8A8F99); transition: top .25s; }
.switch__pivot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--steel-2); }
html[data-frame="proof"] .switch__lever { top: 22px; }
.switch__text { display: flex; flex-direction: column; gap: 2px; }
.switch__text .stencil { font-size: 13px; }
.switch__state { font-size: 14px; color: var(--parchment-3); }
@media (max-width: 479px) {
	.pos { font-size: 11px; padding: 0 9px; min-height: 40px; gap: 5px; letter-spacing: .05em; }
	/* Shorter random drips under the header pipe so they clear the hero's status line. */
	.pipe-strip .drip { height: var(--drip-s, 24px); }
	.hero { padding-top: 56px; }
}
.bays { padding: 48px var(--gutter) 90px; }
.bays__empty { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Artwork
   -------------------------------------------------------------------------- */
.artwork { padding: 32px var(--gutter) 90px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--parchment-3); margin-bottom: 24px; }
.crumbs a { color: var(--brass-mid); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.artwork__in { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.artwork__figure { flex: 1 1 100%; min-width: 0; margin: 0; padding: 26px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.artwork__figcap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.artwork__cat { font-size: 12px; color: var(--parchment-3); border: 1px solid var(--brass-dark); border-radius: 3px; padding: 4px 8px; }
.switch--small .switch__housing { transform: scale(.8); margin: -6px -3px; }
.artwork__info { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.artwork__title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; color: var(--brass-hi); }
.artwork__caption { font-size: 17px; color: var(--parchment-2); }
.neighbours { display: flex; flex-wrap: wrap; gap: 12px; }
.valve--nav { flex: 1 1 200px; }
.valve--nav .valve__cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

/* --------------------------------------------------------------------------
   Standard page and prose
   -------------------------------------------------------------------------- */
.page { padding: 40px var(--gutter) 64px; }
.page__in { display: flex; flex-direction: column; gap: 28px; }
.page__head { display: flex; flex-direction: column; gap: 10px; }
.preview-flag { font-size: 11px; color: var(--lamp-red); letter-spacing: .2em; }
.banner { padding: 14px; }
.page__copy { padding: 34px 18px 30px; }
.copy { font-size: 17px; color: var(--parchment-2); }
.copy h1, .copy h2, .copy h3, .copy h4 { font-family: var(--font-deco); color: var(--brass-hi); line-height: 1.15; margin: 1.2em 0 .5em; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.copy h1 { font-size: clamp(30px, 4vw, 44px); }
.copy h2 { font-size: clamp(26px, 3.4vw, 38px); }
.copy h3 { font-size: clamp(22px, 2.6vw, 28px); }
.copy > :first-child { margin-top: 0; }
.copy strong { color: var(--parchment); }
.copy em { color: var(--parchment); }
.copy a { color: var(--brass-mid); }
.copy ul, .copy ol { padding-left: 1.4em; margin: 0 0 1em; }
.copy li { margin-bottom: .4em; }
.copy ol { list-style: none; counter-reset: order; padding-left: 0; }
.copy ol li { counter-increment: order; position: relative; padding-left: 2.2em; }
.copy ol li::before { content: counter(order, decimal-leading-zero); position: absolute; left: 0; top: .1em; font-family: var(--font-stencil); color: var(--brass-mid); font-size: 15px; }
.copy img { height: auto; border-radius: 6px; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--brass-lo), 0 12px 20px rgba(0, 0, 0, .5); background: var(--blueprint); }
.copy img.img_left, .copy img.img_right { max-width: 100%; margin: 0 0 16px; }
.copy blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--copper); background: rgba(0, 0, 0, .25); font-style: italic; }
.copy table { width: 100%; border-collapse: collapse; }
.copy td, .copy th { border: 1px solid var(--brass-dark); padding: 8px 10px; text-align: left; }
.copy-inline p { margin-bottom: .8em; }
.page__engine { }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot__plate { padding: 48px var(--gutter) 40px; }
.foot__in { display: flex; flex-direction: column; gap: 28px; }
.foot__brand { display: flex; flex-direction: column; gap: 12px; }
.foot__name { font-size: 30px; color: var(--brass-hi); }
.makers { display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 16px; border: 2px solid var(--brass-lo); border-radius: 4px; background: var(--ink); width: max-content; max-width: 100%; }
.makers__label { font-size: 11px; color: var(--parchment-2); letter-spacing: .2em; }
.makers__serial { font-size: 14px; color: var(--brass-mid); }
.foot__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 17px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__credit { font-size: 14px; color: var(--parchment-3); max-width: 28em; line-height: 1.6; }
.foot__credit p { margin: 0 0 .5em; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(44px); } }
@keyframes puff { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 20% { opacity: .8; } 100% { transform: translate(-26px, -110px) scale(2); opacity: 0; } }
@keyframes puff-right { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 20% { opacity: .7; } 100% { transform: translate(22px, -130px) scale(2.2); opacity: 0; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Animated sections get is-offscreen from app.js when scrolled out of view, and
   html gets is-hidden while the tab is in the background: nothing runs unseen. */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after,
html.is-hidden *, html.is-hidden *::before, html.is-hidden *::after { animation-play-state: paused !important; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .5; } 53% { opacity: 1; } }

/* Everything that moves stops when the visitor asks it to. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.ticker { flex-wrap: wrap; width: auto; justify-content: center; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .ticker { flex-wrap: wrap; width: auto; justify-content: center; }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
	.brand__mark { width: 56px; height: 56px; }
	.brand__name { font-size: 36px; }
	.brand__sub { font-size: 11px; letter-spacing: .32em; }
	.hero { padding: clamp(40px, 6vw, 88px) var(--gutter) 96px; }
	.order { padding: 40px clamp(20px, 3vw, 40px); }
	.order__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field--wide { grid-column: 1 / -1; }
	.push { width: auto; }
	.ctas .btn { flex: 0 1 auto; }
	.cyl__bore { height: 190px; }
	.cyl__piston { height: 96px; }
	.cyl__body { display: block; }
	.cyl__no { font-size: 26px; }
	.cyl__title { font-size: 14px; }
	.engine { padding: 40px 28px 34px; }
	.pipe--engine { margin: 26px -28px 0; }
	.foot__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 16px; }
	.foot__in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
	.page__copy { padding: 44px clamp(24px, 4vw, 56px) 40px; }
	.copy img.img_right { float: right; max-width: 45%; margin: 0 0 16px 24px; }
	.copy img.img_left { float: left; max-width: 45%; margin: 0 24px 16px 0; }
	.page__copy::after { content: ""; display: block; clear: both; }
	.artwork__figure { padding: 30px 24px 24px; }
	.tile { padding: 30px 22px 28px; }
	.ticker { font-size: 18px; gap: 48px; }
	.band__brass { padding: 14px 0; }
	.pipe-drop { display: block; }
	.selector { padding: 34px 28px 30px; }
	.pos { font-size: 13px; }
}

@media (min-width: 900px) {
	.valves { display: flex; }
	.wheel-btn { display: none; }
	.masthead { padding: 26px var(--gutter); }
	.hero__copy { flex: 1 1 460px; gap: 28px; }
	.hero__feature { flex: 1 1 400px; }
	.engine-room__copy { flex: 1 1 380px; }
	.engine-room__plate { flex: 1 1 480px; }
	.engine-room, .arrivals, .works, .bays { padding-top: 96px; padding-bottom: 96px; }
	.works__copy { flex: 1 1 360px; }
	.works__form { flex: 1 1 480px; }
	.hangar-hero { padding: 72px var(--gutter) 40px; }
	.hangar-hero__copy { flex: 1 1 400px; }
	.selector { flex: 0 1 520px; margin: 0; }
	.artwork__figure { flex: 1 1 520px; }
	.artwork__info { flex: 1 1 360px; }
	.page { padding: 64px var(--gutter) 96px; }
	.grid--arrivals { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 36px; }
	.grid--bays { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px; }
	.telegraph { max-width: 440px; margin-left: auto; }
}

@media (min-width: 1200px) {
	.hero__title { line-height: .96; }
	.page__in { max-width: 1100px; }
}
