/* ==========================================================================
   DAHAI SOLAR Romania: base styles (every page).

   Palette from the vector logo (05-assets/brand/colours.md). Contrast, measured:
   navy on paper 9.87:1; #4A5E80 5.91:1; #5B6B86 4.87:1 (body text minimum);
   #8A96A8 2.70:1, so lines only. On deep navy #06275A: white 14.5:1, amber 6.32:1,
   green 5.49:1, so on the dark band both brand accents may carry text.
   Green and amber never carry text on paper (2.07 and 2.39:1).
   ========================================================================== */

@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	--paper: #f5f3ee;
	--paper-2: #edeae2;
	--line: #d6d0c2;
	--line-2: #c4bdac;
	--ink: #093a7e;
	--ink-2: #4a5e80;
	--ink-3: #5b6b86;
	--dim: #8a96a8;
	--deep: #06275a;
	--deep-2: #041c42;
	--on-deep: #ffffff;
	--on-deep-2: #c9d3e3;
	--on-deep-3: #94a3bf;
	--green: #7bae2d;
	--green-t: #537b01;
	--amber: #e49d12;
	--amber-t: #966602;

	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--fs-h1: clamp(2.5rem, 1.55rem + 4.2vw, 5.4rem);
	--fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.6rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	--fs-mono: 0.75rem;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--spring: cubic-bezier(0.34, 1.4, 0.64, 1);

	--gutter: clamp(20px, 4.2vw, 64px);
	--maxw: 1320px;
	--rail-x: clamp(22px, 2.4vw, 40px);
	--hdr-h: 72px;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	color-scheme: light;
}

/* -------------------------------------------------------------------------- Reset */

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--fs-body);
	line-height: 1.55;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--deep-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible,
.hdr[data-tone="film"][data-state="docked"] :focus-visible,
.sheet :focus-visible { outline-color: var(--amber); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: calc(var(--safe-top) + 8px);
	left: 8px;
	z-index: 100;
	padding: 10px 14px;
	background: var(--deep);
	color: #fff;
	font: 500 0.875rem/1 var(--mono);
	transform: translateY(-160%);
	transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* -------------------------------------------------------------------------- Type */

.h1, .h2, h1, h2, h3 { font-weight: 560; letter-spacing: -0.018em; text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.02; font-stretch: 88%; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.05; font-stretch: 92%; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
p { text-wrap: pretty; }
strong { font-weight: 620; }
.mono {
	font-family: var(--mono);
	font-size: var(--fs-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.figure {
	font-weight: 600;
	font-stretch: 76%;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	line-height: 0.95;
}

/* Section marker: symbol · number · eyebrow (Redwood's markers, drawn as SLD nodes). */
.marker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: var(--fs-mono);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.marker__sym { width: 22px; height: 22px; color: var(--ink); }
.marker__n { color: var(--ink); }
.marker__n::after { content: "·"; margin-left: 10px; color: var(--dim); }
.on-dark .marker, .on-dark .marker__n { color: var(--on-deep-2); }
.on-dark .marker__sym { color: var(--amber); }

/* Symbols: IEC-style strokes. */
.sym {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.sym-blade { transition: transform 0.6s var(--spring); transform-origin: 9.3px 19.3px; }

/* -------------------------------------------------------------------------- Layout */

.wrap {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(72px, 9vw, 150px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.on-dark { background: var(--deep); color: var(--on-deep); }
.on-dark .lead { color: var(--on-deep-2); }

/* Film grain over a full-screen picture: the home page's film, the Growatt page's hero. */
.grain {
	position: absolute;
	inset: -8%; /* just enough overscan for the ±3 % jitter: a 180 % layer was 2.4× the pixels to draw */
	opacity: 0.1;
	mix-blend-mode: overlay;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
	0% { transform: translate(0, 0); }
	20% { transform: translate(-3%, 2%); }
	40% { transform: translate(2%, -3%); }
	60% { transform: translate(-2%, -1%); }
	80% { transform: translate(3%, 3%); }
	100% { transform: translate(0, 0); }
}

/* "Scroll" at the foot of a full-screen hero (29.09: visitors didn't see the page goes on).
   It stands at the foot of the first screen: the hero's own foot, or the screen's when the
   words run a little past it (a laptop). `translate` lifts it by its own height and leaves
   `transform` to the arrival. ui.js shows it only where it clears the words, and adds
   .is-gone once the page has moved. */
.scue {
	position: absolute;
	top: min(100%, 100svh);
	left: 0;
	right: 0;
	translate: 0 calc(-100% - 18px - var(--safe-bottom));
	z-index: 3;
	display: grid;
	justify-items: center;
	gap: 8px;
	width: max-content;
	margin-inline: auto;
	padding: 6px 12px;
	color: var(--on-deep-2);
	cursor: pointer;
	transition: opacity 0.4s var(--ease), color 0.25s var(--ease);
}
.scue:hover { color: #fff; }
.scue.is-gone { opacity: 0; pointer-events: none; }
.scue__label { font-size: 0.66rem; letter-spacing: 0.14em; }
.scue__line { position: relative; width: 1px; height: 30px; overflow: hidden; background: rgba(255, 255, 255, 0.28); }
.scue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
	.scue { animation: scue-in 0.9s 1.4s var(--ease) backwards; }
	.scue__line::after { animation: scue-run 1.9s var(--ease-in-out) infinite; }
}
@media (max-width: 767.98px) {
	.scue { translate: 0 calc(-100% - 12px - var(--safe-bottom)); }
	.scue__line { height: 22px; }
}
@keyframes scue-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes scue-run {
	from { transform: translateY(-100%); }
	to { transform: translateY(250%); }
}

/* -------------------------------------------------------------------------- Buttons and links */

.btn {
	--btn-bg: var(--ink);
	--btn-fg: #fff;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--btn-bg);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-weight: 560;
	font-size: 0.975rem;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* The "current": an amber line runs under the label on hover. */
.btn::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 11px;
	height: 1.5px;
	background: var(--amber);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
	z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn .sym { width: 18px; height: 18px; stroke-width: 1.8; transition: transform 0.3s var(--ease); }
.btn:hover .sym { transform: translateX(3px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--small::after { left: 18px; right: 18px; bottom: 9px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--deep); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { border-color: #fff; }
/* Amber fill with navy text: 4.76:1 (colours.md). */
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--deep-2); }
.btn--amber::after { background: var(--deep-2); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 560;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.link-arrow::after {
	content: "→";
	transition: transform 0.3s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* The switch on a form's submit button: open, it half-closes on hover, and shuts when
   the request is sent (the page's circuit closes with it). */
.btn .lead-form__switch { width: 28px; height: 28px; margin: -4px -8px 0 -2px; stroke-width: 1.6; }
.btn:hover .lead-form__switch { transform: none; }
.lead-form__submit:hover .sym-blade,
.lead-form__submit:focus-visible .sym-blade { transform: rotate(12deg); }
.lead-form.is-closing .lead-form__submit { --btn-bg: var(--green-t); border-color: var(--green-t); }
.lead-form.is-closing .sym-blade { transform: rotate(30deg); }

/* -------------------------------------------------------------------------- Logo */

.logo { width: 100%; height: auto; }
.logo .logo__n { fill: var(--ink); transition: fill 0.3s var(--ease); }
.logo .logo__g { fill: var(--green); }
.logo .logo__a { fill: var(--amber); }

/* ==========================================================================
   Header: docked, float (desktop capsule / mobile island), tuck, live
   ========================================================================== */

.hdr {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	padding-top: var(--safe-top);
	pointer-events: none;
	color: var(--ink);
}
.hdr__shell {
	position: relative;
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.2vw, 36px);
	width: 100%;
	height: var(--hdr-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	transition:
		width 0.6s var(--spring),
		height 0.45s var(--ease),
		margin-top 0.45s var(--ease),
		padding 0.45s var(--ease),
		border-radius 0.45s var(--ease),
		background-color 0.35s var(--ease),
		border-color 0.35s var(--ease),
		box-shadow 0.35s var(--ease),
		transform 0.45s var(--ease);
}
.hdr__brand { display: block; width: clamp(128px, 11vw, 158px); flex: none; }
.hdr__nav { margin-left: auto; }
.hdr__list { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.hdr__item { position: relative; }
.hdr__link {
	display: block;
	padding: 10px 0;
	font-size: 0.94rem;
	font-weight: 520;
	text-decoration: none;
	opacity: 0.92;
}
.hdr__link:hover { opacity: 1; text-decoration: underline; }
.hdr__sub {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 250px;
	padding: 10px 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 18px 40px -24px rgba(6, 39, 90, 0.45);
	color: var(--ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0.2s;
}
.hdr__sub a { display: block; padding: 8px 18px; font-size: 0.92rem; text-decoration: none; }
.hdr__sub a:hover { background: var(--paper-2); }
.hdr__item.has-sub:hover .hdr__sub,
.hdr__item.has-sub:focus-within .hdr__sub { opacity: 1; visibility: visible; transform: none; }
.hdr__actions { display: flex; align-items: center; gap: 16px; }
.hdr__lang { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.06em; white-space: nowrap; }
.hdr__lang-ro { opacity: 0.45; }
.hdr__lang-en { text-decoration: underline; text-underline-offset: 3px; }
.hdr__menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}
.hdr__menu .sym { width: 26px; height: 26px; }
.hdr__island { display: none; }
.hdr__progress {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: -1px;
	height: 2px;
	background: var(--amber);
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

/* Docked over the film: everything reversed to white; the logo keeps its green and amber. */
.hdr[data-tone="film"][data-state="docked"] { color: #fff; }
.hdr[data-tone="film"][data-state="docked"] .logo__n { fill: #fff; }
.hdr[data-tone="film"][data-state="docked"] .hdr__cta { --btn-bg: #fff; --btn-fg: var(--deep); }
.hdr[data-tone="film"][data-state="docked"] .hdr__sub a { color: var(--ink); }
.hdr[data-tone="paper"][data-state="docked"] .hdr__shell { border-bottom-color: var(--line); }

/* Desktop: the capsule. */
@media (min-width: 1100px) {
	.hdr[data-state="float"] .hdr__shell,
	.hdr[data-state="tuck"] .hdr__shell,
	.hdr[data-state="live"] .hdr__shell {
		width: min(1120px, calc(100% - 48px));
		height: 58px;
		margin-top: 12px;
		padding: 0 10px 0 22px;
		border-radius: 16px;
		border-color: var(--line);
		background: rgba(245, 243, 238, 0.94);
		box-shadow: 0 14px 40px -26px rgba(6, 39, 90, 0.55);
	}
	.hdr[data-state="float"] .hdr__brand,
	.hdr[data-state="tuck"] .hdr__brand,
	.hdr[data-state="live"] .hdr__brand { width: 120px; }
	.hdr[data-state="float"] .hdr__progress,
	.hdr[data-state="tuck"] .hdr__progress,
	.hdr[data-state="live"] .hdr__progress { opacity: 1; }
	.hdr[data-state="float"] .hdr__lang,
	.hdr[data-state="tuck"] .hdr__lang,
	.hdr[data-state="live"] .hdr__lang { display: none; }
}

/* Mobile and tablet: the island. */
@media (max-width: 1099.98px) {
	:root { --hdr-h: 64px; }
	.hdr__nav, .hdr__cta { display: none; }
	.hdr__menu { display: inline-flex; }
	.hdr__actions { margin-left: auto; gap: 6px; }
	.hdr__brand { width: 132px; }

	.hdr[data-state="float"] .hdr__shell,
	.hdr[data-state="tuck"] .hdr__shell,
	.hdr[data-state="live"] .hdr__shell {
		width: var(--island-w, 250px);
		height: 48px;
		margin-top: 10px;
		padding: 0 4px 0 12px;
		gap: 10px;
		border-radius: 24px;
		background: var(--deep);
		border-color: rgba(255, 255, 255, 0.08);
		box-shadow: 0 16px 34px -18px rgba(4, 28, 66, 0.7);
		color: #fff;
	}
	/* The logo stays in the island, reversed with the island's own colour (white on navy,
	   navy on the paper island, white on "Sent"); the padding makes it a full-height tap target. */
	.hdr[data-state="float"] .hdr__brand,
	.hdr[data-state="tuck"] .hdr__brand,
	.hdr[data-state="live"] .hdr__brand { width: 88px; padding-block: 14px; }
	.hdr:is([data-state="float"], [data-state="tuck"], [data-state="live"]) .logo__n { fill: currentColor; }
	.hdr[data-state="float"] .hdr__lang,
	.hdr[data-state="tuck"] .hdr__lang,
	.hdr[data-state="live"] .hdr__lang { display: none; }
	.hdr[data-state="float"] .hdr__island,
	.hdr[data-state="tuck"] .hdr__island,
	.hdr[data-state="live"] .hdr__island {
		display: flex;
		align-items: center;
		min-width: 0;
		flex: 1;
		overflow: hidden;
	}
	/* Reading progress runs along the island's bottom edge, on its flat part. */
	.hdr[data-state="float"] .hdr__progress,
	.hdr[data-state="tuck"] .hdr__progress,
	.hdr[data-state="live"] .hdr__progress { opacity: 1; left: 24px; right: 24px; }
	.hdr[data-state="float"] .hdr__actions,
	.hdr[data-state="tuck"] .hdr__actions,
	.hdr[data-state="live"] .hdr__actions { margin-left: 0; }
	.hdr[data-state="float"] .hdr__menu,
	.hdr[data-state="tuck"] .hdr__menu,
	.hdr[data-state="live"] .hdr__menu { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.08); }
	.hdr[data-state="tuck"] .hdr__chapter { opacity: 0; }
	.hdr[data-state="live"][data-live="sent"] .hdr__shell { background: var(--green-t); }
	.hdr[data-state="live"][data-live="sent"] .logo__g { fill: #fff; }
	.hdr[data-state="live"][data-live="sent"] .hdr__progress { opacity: 0; }
	.hdr[data-tone="film"][data-state="docked"] .hdr__menu { background: rgba(255, 255, 255, 0.12); }

	/* Over a navy band (quality, footer) the island turns paper. */
	.hdr[data-over="dark"]:is([data-state="float"], [data-state="tuck"], [data-state="live"]:not([data-live="sent"])) .hdr__shell {
		background: var(--paper);
		border-color: rgba(9, 58, 126, 0.14);
		color: var(--ink);
		box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.55);
	}
	.hdr[data-over="dark"]:is([data-state="float"], [data-state="tuck"], [data-state="live"]) .hdr__menu { background: rgba(9, 58, 126, 0.08); }
}

/* After the logo, behind a hairline so the two don't read as one name. On the base rule,
   not a state rule, so header.js's measurer (same class, outside the header) counts it. */
.hdr__chapter {
	display: inline-flex;
	gap: 8px;
	align-items: baseline;
	min-width: 0;
	padding: 3px 0 3px 10px;
	border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	font: 500 0.78rem/1 var(--mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: opacity 0.25s var(--ease);
}
.hdr__chapter-n { color: var(--amber); }
.hdr__chapter-n:empty { display: none; }
.hdr__chapter-label { overflow: hidden; text-overflow: ellipsis; }
.hdr__chapter.is-swapping { opacity: 0; }

/* ==========================================================================
   Menu sheet: grows out of the island (clip-path set by header.js)
   ========================================================================== */

.sheet {
	--ct: 0px; --cr: 0px; --cb: 0px; --cl: 0px; --cr-rad: 0px;
	position: fixed;
	inset: 0;
	z-index: 70;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--deep);
	color: #fff;
	clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--cr-rad));
	transition: clip-path 0.55s var(--ease-in-out);
}
.sheet__inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: calc(var(--safe-top) + 14px) var(--gutter) calc(var(--safe-bottom) + 28px);
}
.sheet__top { display: flex; align-items: center; justify-content: space-between; }
.sheet__brand { width: 132px; }
.sheet .logo__n { fill: #fff; }
.sheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
}
.sheet__close .sym { width: 24px; height: 24px; }
.sheet__list { display: grid; gap: 4px; }
.sheet__link {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 8px 0;
	font-size: clamp(1.9rem, 7vw, 3rem);
	font-weight: 560;
	font-stretch: 88%;
	letter-spacing: -0.02em;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sheet__n { font: 500 0.75rem/1 var(--mono); color: var(--amber); letter-spacing: 0.06em; }
.sheet__sub { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0 14px 30px; }
.sheet__sub a { color: var(--on-deep-2); font-size: 0.95rem; text-decoration: none; }
.sheet__sub a:hover { color: #fff; text-decoration: underline; }
.sheet__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.sheet__company { font: 400 0.75rem/1.6 var(--mono); color: var(--on-deep-3); letter-spacing: 0.03em; }
.sheet__item { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.sheet.is-open .sheet__item { opacity: 1; transform: none; }
.sheet.is-open .sheet__item:nth-child(2) { transition-delay: 0.04s; }
.sheet.is-open .sheet__item:nth-child(3) { transition-delay: 0.08s; }
.sheet.is-open .sheet__item:nth-child(4) { transition-delay: 0.12s; }
.sheet.is-open .sheet__item:nth-child(5) { transition-delay: 0.16s; }
.sheet.is-open .sheet__item:nth-child(6) { transition-delay: 0.2s; }
.sheet.is-open .sheet__item:nth-child(7) { transition-delay: 0.24s; }
html.has-sheet { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr { background: var(--deep-2); color: var(--on-deep-2); padding: clamp(56px, 7vw, 96px) 0 calc(var(--safe-bottom) + 40px); }
.ftr__inner {
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin: 0 auto;
	padding-inline: var(--gutter);
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
}
@media (min-width: 900px) {
	.ftr__inner { grid-template-columns: 0.9fr 1.6fr; }
	.ftr__legal { grid-column: 1 / -1; }
}
.ftr__logo { width: 170px; }
.ftr .logo__n { fill: #fff; }
.ftr__line { margin-top: 18px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.ftr__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.ftr__h { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-deep-3); margin-bottom: 14px; }
.ftr__col ul { display: grid; gap: 8px; }
.ftr__col a { color: #fff; text-decoration: none; font-size: 0.95rem; }
.ftr__col a:hover { text-decoration: underline; }
.ftr__legal { display: grid; gap: 8px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; }
.ftr__company { color: #fff; }
.ftr__note, .ftr__copy { font: 400 0.75rem/1.6 var(--mono); color: var(--on-deep-3); }

/* ==========================================================================
   Forms
   ========================================================================== */

.lead-form { display: grid; gap: 22px; }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field__hint { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.field__input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 1rem;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input::placeholder { color: var(--ink-3); opacity: 0.85; }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(9, 58, 126, 0.14); }
textarea.field__input { min-height: 96px; resize: vertical; }
select.field__input {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 40px;
}

/* Dropdowns (select.js, 29.09): the site's own list instead of the operating system's. The
   native select stays inside, hidden, and is what the form sends; the button copies its
   classes, so a select's own look (.field__input, the News year pill) carries over. */
.select { position: relative; min-width: 0; }
.select.is-open { z-index: 30; }
.select > .select__native {
	position: absolute;
	width: 1px; height: 1px;
	min-width: 0; min-height: 0;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	pointer-events: none;
}
.select__btn { position: relative; display: flex; align-items: center; padding-right: 40px; text-align: left; }
.select__btn:hover { border-color: var(--ink); }
.select__btn:disabled { cursor: default; opacity: 0.6; }
.select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__btn.is-placeholder .select__value { color: var(--ink-3); }
.select__chev { position: absolute; top: 50%; right: 12px; width: 18px; height: 18px; margin-top: -9px; stroke-width: 1.8; transition: transform 0.2s var(--ease); }
.select.is-open .select__btn { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(9, 58, 126, 0.14); }
.select.is-open .select__chev { transform: rotate(180deg); }
.select__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	max-height: var(--select-max, 320px);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	box-shadow: 0 18px 40px -24px rgba(6, 39, 90, 0.45);
	color: var(--ink);
	scrollbar-width: thin;
	scrollbar-color: var(--line-2) transparent;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.select.is-up .select__list { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; }
.select__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
}
.select__opt.is-active { background: var(--paper-2); }
.select__opt[aria-selected="true"] { font-weight: 560; }
.select__opt[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.select__tick { width: 18px; height: 18px; stroke-width: 2; visibility: hidden; }
.select__opt[aria-selected="true"] .select__tick { visibility: visible; }
@media (pointer: coarse) { .select__opt { min-height: 44px; } }
@media (forced-colors: active) { .select__opt.is-active { outline: 2px solid Highlight; outline-offset: -2px; } }

.field.is-invalid .field__input { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	font-size: 0.93rem;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip--small span { min-height: 34px; padding: 0 12px; font-size: 0.85rem; }
.counties { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow-y: auto; padding: 4px 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.lead-form__privacy { font-size: 0.85rem; color: var(--ink-3); max-width: 34em; }
.lead-form__submit { min-height: 54px; padding: 0 26px; }
.lead-form__status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink-2); }
.lead-form__status.is-error { color: #b3261e; }
.lead-form__thanks { padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
/* Inside a form card the card is the frame: no box within the box. */
.contact__form .lead-form__thanks, .formsec__form .lead-form__thanks { padding: 6px 0; border: 0; background: none; }
.lead-form__thanks-h { font-size: var(--fs-h3); font-weight: 560; margin-bottom: 8px; }
.lead-form.is-sent > :not(.lead-form__thanks) { display: none; }
.lead-form.is-sent .lead-form__thanks { display: block; }
.lead-form.is-sending .lead-form__submit { opacity: 0.7; pointer-events: none; }
.lead-form.is-closing .lead-form__submit { pointer-events: none; }
.field__hint--below { font-size: 0.85rem; margin-top: -2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* -------------------------------------------------------------------------- Photos open larger (every page since 28.09, assets/js/ui.js) */

.lightbox { width: fit-content; max-width: min(92vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 28, 66, 0.88); }
.lightbox img { display: block; max-width: min(92vw, 1400px); max-height: 84vh; width: auto; height: auto; border-radius: 8px; }
/* The caption never widens the dialog: it takes the picture's width and wraps (width 0 + min-width 100%). */
.lightbox__cap { width: 0; min-width: 100%; margin-top: 12px; color: #fff; font: 500 0.8rem/1.5 var(--mono); text-align: center; text-wrap: balance; }
.lightbox__close {
	position: absolute;
	top: -52px;
	right: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
}
.lightbox__close .sym { width: 20px; height: 20px; }
