/**
 * SMA Technology — main stylesheet.
 *
 * Single stylesheet, no build step, no framework. Everything is custom
 * properties + modern CSS, which keeps the payload small enough that CSS never
 * becomes the render-blocking bottleneck.
 *
 * Contents
 *   1.  Tokens
 *   2.  Reset & base
 *   3.  Layout primitives
 *   4.  Typography
 *   5.  Buttons & links
 *   6.  Header & navigation
 *   7.  Hero
 *   8.  Sections
 *   9.  Cards
 *   10. Stats, process, features, FAQ
 *   11. Product (hardware)
 *   12. Forms
 *   13. Footer
 *   14. Utilities & WordPress core classes
 *   15. Motion & print
 */

/* =========================================================================
 * 1. Tokens
 * ====================================================================== */

:root {
	/* Surfaces — matched to the Next.js project's ink scale */
	--bg:              #08080b;
	--bg-elev:         #101016;
	--surface:         rgba(255, 255, 255, 0.035);
	--surface-hover:   rgba(255, 255, 255, 0.06);
	--border:          rgba(255, 255, 255, 0.10);
	--border-strong:   rgba(255, 255, 255, 0.20);

	/* Ink */
	--text:            #ffffff;
	--text-2:          #c2c2c2;
	--muted:           #8a8a8a;

	/*
	 * Brand green, carried over from the Next.js project so the two properties
	 * read as one company. 400 is the accent on dark; 500 is the deep step that
	 * can carry white text if a light section ever needs it.
	 */
	--brand-300:       #6fe0b4;
	--brand-400:       #34c99a;
	--brand-500:       #0b8261;
	--brand-600:       #096b4f;

	--accent:          #34c99a;
	--accent-hover:    #6fe0b4;
	--accent-deep:     #0b8261;
	--accent-ink:      #04231a;
	--accent-soft:     rgba(52, 201, 154, 0.12);

	/* Alert red, for detection states only. */
	--alert:           #f5333f;

	/* Geometry */
	--radius-sm:       8px;
	--radius:          14px;
	--radius-lg:       22px;
	--maxw:            1240px;
	--maxw-narrow:     760px;
	--gutter:          clamp(20px, 5vw, 48px);

	/* Rhythm */
	--section-y:       clamp(64px, 9vw, 128px);

	/*
	 * Type — the same three faces as the SMA Trace project. Outfit sets every
	 * heading, Plus Jakarta Sans carries body copy, JetBrains Mono handles
	 * numerals and the small uppercase labels.
	 */
	--font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	/* Motion */
	--ease:            cubic-bezier(0.22, 1, 0.36, 1);
	--speed:           260ms;
}

/*
 * Fonts live in assets/fonts/fonts.css (generated by tools/fetch-fonts.mjs) and
 * are enqueued separately in inc/enqueue.php.
 *
 * Not @import-ed: an @import is only valid before any other rule, and it makes
 * the browser fetch this file first and only then discover the font CSS —
 * serialising two round trips on the critical path. A second <link> downloads
 * in parallel.
 */

/* =========================================================================
 * 2. Reset & base
 * ====================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Offset for the sticky header when jumping to an anchor. */
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

/*
 * There is deliberately NO `img[width][height] { height: auto }` rule here.
 *
 * It looks harmless and it is what most resets do, but its specificity is 0-2-1
 * - two attribute selectors plus the element - which beats a component rule
 * like `.kit__media img` at 0-1-1. Any component that sets an explicit height
 * silently loses, and the image renders at its intrinsic aspect ratio and
 * overflows its container.
 *
 * The base `img { height: auto }` above already prevents distortion, and at
 * 0-0-1 any component rule can override it, which is the behaviour we want.
 */

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--accent);
	color: var(--accent-ink);
}

/* =========================================================================
 * 3. Layout primitives
 * ====================================================================== */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: var(--maxw-narrow);
}

.site-main {
	display: block;
	min-height: 40vh;
}

.section {
	padding-block: var(--section-y);
}

.section + .section {
	padding-top: 0;
}

/* Sections that carry their own surface need their padding back. */
.section--stats,
.section--cta,
.section--statement {
	padding-top: var(--section-y);
}

.section__head {
	max-width: 720px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.section__more {
	margin-top: 40px;
}

/* =========================================================================
 * 4. Typography
 * ====================================================================== */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.15em;
}

p:last-child {
	margin-bottom: 0;
}

.hero__title {
	font-size: clamp(2.4rem, 6.2vw, 4.4rem);
	letter-spacing: -0.035em;
	font-weight: 600;
}

.section__title {
	font-size: clamp(1.75rem, 3.4vw, 2.6rem);
	letter-spacing: -0.03em;
}

.section__subtitle,
.hero__subtitle {
	color: var(--text-2);
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.hero__kicker,
.card__kicker,
.entry__kicker,
.product__kicker {
	margin: 0 0 14px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.statement {
	font-size: clamp(1.3rem, 2.6vw, 1.9rem);
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: var(--text);
	margin-bottom: 36px;
	text-wrap: pretty;
}

.outcome {
	position: relative;
	padding-left: 24px;
	border-left: 3px solid var(--accent);
	font-size: clamp(1.15rem, 2.1vw, 1.5rem);
	line-height: 1.5;
	letter-spacing: -0.015em;
	color: var(--text);
}

/* =========================================================================
 * 5. Buttons & links
 * ====================================================================== */

a {
	color: var(--text);
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-color: var(--accent);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--speed) var(--ease),
	            border-color var(--speed) var(--ease),
	            transform var(--speed) var(--ease),
	            color var(--speed) var(--ease);
}

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

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn--primary:hover {
	background: var(--accent-hover);
	color: var(--accent-ink);
}

/* White pill, the way the reference header's "Let's Talk" reads. */
.btn--light {
	background: #fff;
	color: #0a0a0a;
}

.btn--light:hover {
	background: #fff;
	color: #0a0a0a;
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border-strong);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.btn--sm {
	padding: 10px 20px;
	font-size: 0.88rem;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.link-arrow::after {
	content: "→";
	transition: transform var(--speed) var(--ease);
}

.link-arrow:hover::after {
	transform: translateX(4px);
}

/* Chips ------------------------------------------------------------------ */

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color var(--speed) var(--ease),
	            color var(--speed) var(--ease),
	            background var(--speed) var(--ease);
}

a.chip:hover {
	border-color: var(--accent);
	color: var(--text);
	background: var(--accent-soft);
}

.chip--static {
	cursor: default;
}

/* =========================================================================
 * 6. Header & navigation
 * ====================================================================== */

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 200;
	padding: 12px 20px;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 16px;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	position: absolute;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 10, 0.86);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	color: var(--text);
}

.brand__logo {
	max-height: 40px;
	width: auto;
}

.brand--mark {
	gap: 12px;
}

.brand--mark .brand__logo {
	max-height: 52px;
	width: auto;
	flex-shrink: 0;
	transition: max-height 260ms var(--ease);
}

/* Company name beside the mark, set in the display face. */
.brand__name {
	font-family: var(--font-display);
	font-size: 1.16rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--text);
	white-space: nowrap;
}

.brand__name-mark {
	color: var(--accent);
}

/* Tightens once the bar goes solid, so the header takes less of the screen. */
.site-header:not(.is-top) .brand--mark .brand__logo {
	max-height: 42px;
}

@media (max-width: 600px) {
	/*
	 * Below this the name competes with the burger for the same row. The mark
	 * alone still identifies the site, and the name is in the footer and the
	 * document title.
	 */
	.brand__name {
		display: none;
	}
}

/*
 * Floating pill navigation, centred over the page.
 *
 * The nav is absolutely centred rather than laid out between the logo and the
 * actions: with flex, the pill drifts whenever the button label changes length,
 * which is exactly the kind of wobble that makes a header feel unconsidered.
 */
@media (min-width: 1025px) {
	/*
	 * The OPAQUE state is the default, and .is-top removes it.
	 *
	 * Written this way round on purpose. If the JS never runs - blocked, failed,
	 * or a browser that does not fire the scroll handler - the header stays
	 * solid with its bottom rule, and body text scrolling underneath is hidden
	 * rather than colliding with the nav. Defaulting to transparent and adding
	 * the background later means any JS failure produces an unreadable header.
	 */
	.site-header {
		background: rgba(8, 8, 11, 0.88);
		backdrop-filter: saturate(160%) blur(14px);
		-webkit-backdrop-filter: saturate(160%) blur(14px);
		border-bottom: 1px solid var(--border);
		transition: background 260ms var(--ease),
		            border-color 260ms var(--ease),
		            padding 260ms var(--ease);
	}

	.site-header.is-top {
		padding-top: 14px;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-bottom-color: transparent;
	}

	.site-header__inner {
		position: relative;
	}

	.nav {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		flex: 0 0 auto;
	}

	.nav__list {
		gap: 2px;
		padding: 6px;
		border-radius: 999px;
		background: rgba(20, 20, 26, 0.82);
		backdrop-filter: saturate(160%) blur(14px);
		-webkit-backdrop-filter: saturate(160%) blur(14px);
		border: 1px solid var(--border);
	}

	.nav__link {
		border-radius: 999px;
		padding: 9px 18px;
	}

	/* Current section reads as the selected pill. */
	.nav__item.is-current > .nav__link {
		background: #fff;
		color: #0a0a0a;
	}

	.nav__item.is-current > .nav__link:hover {
		background: #fff;
	}

	.nav__panel {
		top: calc(100% + 14px);
	}
}

.brand__text {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.brand__mark {
	color: var(--accent);
}

/* Nav --------------------------------------------------------------------- */

.nav {
	flex: 1;
	min-width: 0;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__item {
	position: relative;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: 0.94rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav__link:hover,
.nav__item.is-current > .nav__link {
	color: var(--text);
	background: var(--surface);
}

.nav__toggle {
	position: absolute;
	right: -2px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	color: var(--muted);
	border-radius: 4px;
}

.nav__chevron {
	width: 14px;
	height: 14px;
	transition: transform var(--speed) var(--ease);
}

.nav__item--has-children > .nav__link {
	padding-right: 26px;
}

.nav__panel {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 10;
	min-width: 300px;
	padding: 10px;
	background: var(--bg-elev);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);

	/* Hidden by default; opened on hover (desktop) or by the toggle. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--speed) var(--ease),
	            transform var(--speed) var(--ease),
	            visibility var(--speed);
}

.nav__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__sublink {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: 0.92rem;
	text-decoration: none;
	transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.nav__sublink:hover {
	color: var(--text);
	background: var(--surface-hover);
}

@media (hover: hover) and (min-width: 1025px) {
	.nav__item--has-children:hover > .nav__panel,
	.nav__item--has-children:focus-within > .nav__panel {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav__item--has-children:hover > .nav__toggle .nav__chevron {
		transform: rotate(180deg);
	}
}

/* Toggle-driven state, used on touch and by keyboard. */
.nav__item.is-open > .nav__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__item.is-open > .nav__toggle .nav__chevron {
	transform: rotate(180deg);
}

/* Header actions ---------------------------------------------------------- */

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	flex-shrink: 0;
}

.nav-burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	place-items: center;
}

.nav-burger__bars,
.nav-burger__bars::before,
.nav-burger__bars::after {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--text);
	transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-burger__bars {
	position: relative;
}

.nav-burger__bars::before,
.nav-burger__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-burger__bars::before { top: -6px; }
.nav-burger__bars::after  { top: 6px; }

.nav-burger[aria-expanded="true"] .nav-burger__bars {
	background: transparent;
}

.nav-burger[aria-expanded="true"] .nav-burger__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.nav-burger {
		display: grid;
	}

	.nav {
		position: fixed;
		inset: 72px 0 0;
		z-index: 90;
		padding: 24px var(--gutter) 48px;
		background: var(--bg);
		overflow-y: auto;
		overscroll-behavior: contain;

		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--speed) var(--ease),
		            transform var(--speed) var(--ease),
		            visibility var(--speed);
	}

	.nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav__item {
		border-bottom: 1px solid var(--border);
	}

	.nav__link {
		padding: 16px 4px;
		font-size: 1.05rem;
	}

	.nav__item--has-children > .nav__link {
		padding-right: 48px;
	}

	.nav__toggle {
		right: 4px;
		width: 44px;
		height: 44px;
	}

	.nav__chevron {
		width: 18px;
		height: 18px;
	}

	/* On mobile the panel is inline, not floating. */
	.nav__panel {
		position: static;
		min-width: 0;
		padding: 0 0 12px 12px;
		background: none;
		border: 0;
		box-shadow: none;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav__item.is-open > .nav__panel {
		display: block;
	}
}

/* =========================================================================
 * 6a. Motion vocabulary
 *
 * Ported from the Next.js project so both properties move the same way.
 * Every animation here is decorative; section 15 disables the lot under
 * prefers-reduced-motion.
 * ====================================================================== */

/* Headline lines pushed up from below their own mask. */
@keyframes rise {
	from { transform: translateY(115%); }
	to   { transform: translateY(0); }
}

/* Everything that is not a headline: scale + blur in. */
@keyframes tag-in {
	from { opacity: 0; transform: scale(0.82) translateY(14px); filter: blur(6px); }
	to   { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
}

/* A tag answering a reader: the ring expands away from the antenna. */
@keyframes wave {
	0%   { transform: scale(0.6); opacity: 0; }
	20%  { opacity: 0.7; }
	100% { transform: scale(2.3); opacity: 0; }
}

/* Specular sweep across a button on hover. */
@keyframes shine {
	from { transform: translateX(-120%) skewX(-20deg); }
	to   { transform: translateX(320%) skewX(-20deg); }
}

/* Soft glow breathing behind accent type. */
@keyframes glow {
	0%, 100% { text-shadow: 0 0 18px rgba(52, 201, 154, 0.35); }
	50%      { text-shadow: 0 0 32px rgba(52, 201, 154, 0.6); }
}

@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Scroll hint: a dot falling down its track. */
@keyframes scroll-cue {
	0%   { transform: translateY(0);    opacity: 0; }
	25%  { opacity: 1; }
	75%  { opacity: 1; }
	100% { transform: translateY(14px); opacity: 0; }
}

@keyframes shimmer {
	from { background-position: -180% 0; }
	to   { background-position: 180% 0; }
}

/* Entrance helpers ------------------------------------------------------- */

/* The mask each headline line rises out of. */
.rise-mask {
	display: block;
	overflow: hidden;
}

.rise {
	display: block;
	animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tag-in {
	animation: tag-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/*
 * Stagger steps, so the hero resolves in sequence rather than all at once.
 *
 * Doubled up with .rise/.tag-in for specificity on purpose. A plain `.d3` loses
 * to any later rule that sets the `animation` shorthand, because the shorthand
 * silently resets animation-delay to 0 — which is exactly what dropped the
 * stagger on the gradient headline line.
 */
.rise.d1, .tag-in.d1, .d1 { animation-delay: 60ms; }
.rise.d2, .tag-in.d2, .d2 { animation-delay: 140ms; }
.rise.d3, .tag-in.d3, .d3 { animation-delay: 260ms; }
.rise.d4, .tag-in.d4, .d4 { animation-delay: 400ms; }
.rise.d5, .tag-in.d5, .d5 { animation-delay: 540ms; }
.rise.d6, .tag-in.d6, .d6 { animation-delay: 680ms; }

/* Button shine ----------------------------------------------------------- */

.btn--primary {
	position: relative;
	overflow: hidden;
}

.btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: translateX(-120%) skewX(-20deg);
	pointer-events: none;
}

.btn--primary:hover::after {
	animation: shine 0.9s ease-out;
}

/* =========================================================================
 * 6b. Home hero — media-led
 * ====================================================================== */

.hero--home,
.hero--statement {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 96px) 0;
}

/* Centred statement hero ------------------------------------------------- */

.hero--statement {
	/* Clears the transparent floating header. */
	padding-top: clamp(96px, 13vw, 190px);
	text-align: center;
}

.hero__statement {
	position: relative;
	z-index: 1;
}

.hero__headline {
	max-width: 17ch;
	margin: 0 auto;
	font-size: clamp(2.6rem, 7.4vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	font-weight: 500;
	/* Words are individually masked spans, so the line has to flow as inline. */
	display: block;
}

.hero__headline .rise-mask {
	display: inline-block;
	vertical-align: bottom;
	/* Room for descenders; overflow:hidden on a tight box clips the g and y. */
	padding-bottom: 0.08em;
	margin-right: 0.24em;
}

/* Highlight chips --------------------------------------------------------- */

.hero__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	max-width: 30ch;
	margin: clamp(28px, 4vw, 44px) auto 0;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.6vw, 2.6rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.hero__chips-lead {
	color: var(--muted);
}

.hero__chips-plus {
	color: var(--text-2);
}

/*
 * The chip itself. Solid brand fill with dark text - the same treatment the
 * reference uses for its accent words, in our green rather than its orange.
 */
.chip-hl {
	display: inline-block;
	padding: 0.1em 0.42em 0.16em;
	border-radius: 0.22em;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: none;
	transition: background 260ms var(--ease), transform 260ms var(--ease);
}

.chip-hl:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

.hero__actions--centre {
	justify-content: center;
}

.hero__facts--centre {
	justify-content: center;
}

/* Product stage ----------------------------------------------------------- */

.hero__stage {
	position: relative;
	display: grid;
	place-items: center;
	max-width: 620px;
	margin: clamp(36px, 6vw, 72px) auto 0;
}

.hero__stage-img {
	position: relative;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.65));
	animation: float 6s ease-in-out infinite;
}

/* The decorative background is a separate layer so nothing in it can ever
   intercept a pointer event or land in the accessibility tree. */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	animation: drift 16s ease-in-out infinite;
}

.orb--1 {
	inset: 4% auto auto -12%;
	width: 34rem;
	height: 34rem;
	background: rgba(52, 201, 154, 0.22);
}

.orb--2 {
	inset: 28% -10% auto auto;
	width: 30rem;
	height: 30rem;
	background: rgba(52, 201, 154, 0.12);
	animation-delay: -5s;
}

.orb--3 {
	inset: auto auto -10% 32%;
	width: 28rem;
	height: 28rem;
	background: rgba(120, 90, 220, 0.10);
	animation-delay: -9s;
}

/* Faint 64px technical grid, masked to fade before it reaches the edges so it
   never reads as a hard-edged texture rectangle. */
.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(to right, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px),
		repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px);
	-webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 40%, transparent 100%);
}

@keyframes drift {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	33%      { transform: translate3d(3%, -4%, 0) scale(1.06); }
	66%      { transform: translate3d(-3%, 3%, 0) scale(0.96); }
}

.hero--home .hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
	padding-bottom: clamp(40px, 6vw, 72px);
}

.hero--home .hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-2);
	letter-spacing: 0.1em;
	margin-bottom: 24px;
}

.hero__pulse {
	position: relative;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

.hero__pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
	0%   { transform: scale(1); opacity: 0.7; }
	100% { transform: scale(3.2); opacity: 0; }
}

.hero__title-lead,
.hero__title-accent {
	display: block;
}

.hero__title-accent {
	background: linear-gradient(96deg, var(--accent) 0%, #a8efcf 55%, var(--accent) 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: gradient-pan 8s ease infinite;
}

/*
 * The accent line needs both animations: it rises in like every other line,
 * and then the gradient pans across it forever. Declared as a two-item list
 * because a second `animation` shorthand would simply replace the first, which
 * is what silently dropped the entrance.
 */
.hero__title-accent.rise {
	animation-name: rise, gradient-pan;
	animation-duration: 0.9s, 8s;
	animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease;
	animation-iteration-count: 1, infinite;
	animation-fill-mode: both, none;
	/* Longhand throughout, so the stagger class below can still set the delay. */
}

@keyframes gradient-pan {
	0%, 100% { background-position: 0% center; }
	50%      { background-position: 100% center; }
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero__facts li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.hero__facts li::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.7;
}

/* Scroll cue -------------------------------------------------------------- */

.hero__cue {
	display: grid;
	place-items: start center;
	width: 22px;
	height: 34px;
	margin-top: 40px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	padding-top: 6px;
}

.hero__cue span {
	display: block;
	width: 3px;
	height: 6px;
	border-radius: 999px;
	background: var(--accent);
	animation: scroll-cue 2.2s ease-in-out infinite;
}

/* Product render ---------------------------------------------------------- */

.hero__product {
	position: relative;
}

/*
 * RFID read rings pulsing off the reader. Three rings on staggered delays so
 * there is always one mid-flight - one ring on its own reads as a glitch.
 */
.hero__waves {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	z-index: -1;
}

.hero__waves span {
	position: absolute;
	width: 46%;
	aspect-ratio: 1;
	border: 1px solid rgba(52, 201, 154, 0.45);
	border-radius: 50%;
	animation: wave 3.6s ease-out infinite;
}

.hero__waves span:nth-child(2) { animation-delay: 1.2s; }
.hero__waves span:nth-child(3) { animation-delay: 2.4s; }

/* A glow bed under the cut-out, so the render sits on the background instead
   of floating over it. The source render's own cast shadow went with its
   backdrop when it was cut out. */
.hero__product-glow {
	position: absolute;
	inset: -8%;
	z-index: -1;
	border-radius: 50%;
	background: rgba(52, 201, 154, 0.16);
	filter: blur(60px);
}

.hero__product-img {
	width: 100%;
	max-width: 688px;
	height: auto;
	margin-inline: auto;
	filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.65));
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-14px); }
}

/* Capability rail --------------------------------------------------------- */

.hero__rail {
	position: relative;
	border-top: 1px solid var(--border);
}

.rail {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rail__item + .rail__item {
	border-left: 1px solid var(--border);
}

.rail__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	text-decoration: none;
	color: var(--text-2);
	transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.rail__link:hover {
	color: var(--text);
	background: var(--surface);
}

.rail__num {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--accent);
	opacity: 0.8;
}

.rail__name {
	font-size: 0.92rem;
	font-weight: 500;
}

.rail__arrow {
	margin-left: auto;
	color: var(--border-strong);
	transition: transform var(--speed) var(--ease), color var(--speed) var(--ease);
}

.rail__link:hover .rail__arrow {
	transform: translateX(4px);
	color: var(--accent);
}

@media (max-width: 1024px) {
	.rail { grid-template-columns: repeat(2, 1fr); }
	.rail__item:nth-child(n+3) { border-top: 1px solid var(--border); }
	.rail__item:nth-child(odd) { border-left: 0; }
}

@media (max-width: 860px) {
	.hero--home .hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__product {
		order: -1;
		max-width: 420px;
		margin-inline: auto;
	}

	.rail { grid-template-columns: 1fr; }
	.rail__item { border-left: 0; }
	.rail__item + .rail__item { border-top: 1px solid var(--border); }
}

/* =========================================================================
 * 6b-2. Marquee band
 * ====================================================================== */

.marquee {
	position: relative;
	overflow: hidden;
	border-block: 1px solid var(--border);
	background: var(--bg-elev);
	padding-block: 18px;
	/* Fade both ends so items enter and leave rather than being cut off. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
	gap: 0;
	animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding-inline: 26px;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--muted);
	white-space: nowrap;
}

.marquee__item::after {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.6;
}

/* =========================================================================
 * 6b-3. Pillar panels (services archive)
 * ====================================================================== */

.panels {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.panel {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 4vw, 40px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: border-color 320ms var(--ease), background 320ms var(--ease);
}

.panel:hover {
	border-color: rgba(52, 201, 154, 0.4);
	background: var(--surface-hover);
}

.panel__num {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--accent);
}

.panel__title {
	margin: 10px 0 8px;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.panel__text {
	margin: 0;
	max-width: 42ch;
	color: var(--muted);
	font-size: 0.95rem;
}

/*
 * The pillar render, bled into the top-right corner. Decorative, so it is
 * aria-hidden and sits behind the list rather than taking grid space.
 */
.panel__art {
	position: absolute;
	top: -10%;
	right: -8%;
	width: 42%;
	max-width: 240px;
	opacity: 0.16;
	pointer-events: none;
	transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.panel__art img {
	width: 100%;
	height: auto;
}

.panel:hover .panel__art {
	opacity: 0.28;
	transform: scale(1.04);
}

.panel__list {
	position: relative;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.panel__list li + li {
	border-top: 1px solid var(--border);
}

.panel__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 2px;
	color: var(--text-2);
	font-size: 1rem;
	text-decoration: none;
	transition: color 260ms var(--ease), padding-left 260ms var(--ease);
}

.panel__list a:hover {
	color: var(--text);
	padding-left: 8px;
}

.panel__arrow {
	margin-left: auto;
	color: var(--border-strong);
	transition: transform 260ms var(--ease), color 260ms var(--ease);
}

.panel__list a:hover .panel__arrow {
	transform: translateX(4px);
	color: var(--accent);
}

/* =========================================================================
 * 6b-4. Download gate
 * ====================================================================== */

.gate {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(70% 120% at 0% 0%, rgba(52, 201, 154, 0.12) 0%, rgba(52, 201, 154, 0) 60%),
		var(--surface);
}

.gate .sma-form {
	background: rgba(0, 0, 0, 0.28);
}

.gate .hero__facts {
	margin-top: 22px;
}

@media (max-width: 860px) {
	.gate { grid-template-columns: 1fr; }
}

.sma-form__download {
	margin-top: 12px;
}

/* =========================================================================
 * 6c. Hardware kit strip
 * ====================================================================== */

.kit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kit__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 24px 16px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	text-decoration: none;
	color: var(--text-2);
	transition: border-color var(--speed) var(--ease),
	            background var(--speed) var(--ease),
	            transform var(--speed) var(--ease);
}

.kit__link:hover {
	border-color: var(--accent);
	background: var(--surface-hover);
	color: var(--text);
	transform: translateY(-3px);
}

/*
 * A plain block, NOT a centred grid.
 *
 * With `display:grid; place-items:center` the image is no longer stretched, so
 * its `height:100%` has nothing to resolve against and it falls back to its own
 * aspect ratio - rendering 88px tall inside a 62px box and spilling 26px over
 * the label beneath it. A block box plus object-fit:contain constrains the
 * image properly and centres it at the same time.
 */
.kit__media {
	display: block;
	width: 100%;
	/* Fixed box so a mixed set of render aspect ratios cannot shift the grid. */
	height: 110px;
}

/*
 * Explicit 100%/100% + object-fit, NOT auto sizing with max-height.
 *
 * `width:auto; height:auto; max-height:100%` collapses to 0x0 inside a
 * fixed-height grid container: the percentage max-height resolves against the
 * grid area while auto sizing has nothing to resolve against, and the image
 * disappears entirely. object-fit does the letterboxing instead.
 */
.kit__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
	transition: transform var(--speed) var(--ease);
}

.kit__link:hover .kit__media img {
	transform: scale(1.06);
}

.kit__label {
	font-size: 0.85rem;
	text-align: center;
}

/* =========================================================================
 * 6d. Video panel
 * ====================================================================== */

.video-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 44px);
	align-items: center;
}

@media (max-width: 860px) {
	.video-panel { grid-template-columns: 1fr; }
}

.video-panel__frame {
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #000;
	/* Reserve the box before metadata loads, so the video cannot shift layout. */
	aspect-ratio: 16 / 9;
}

.video-panel__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* A sensor sweep over the footage. Purely decorative. */
.video-panel__scan {
	position: absolute;
	inset-inline: 0;
	height: 18%;
	background: linear-gradient(to bottom, transparent, rgba(52, 201, 154, 0.22), transparent);
	animation: scan 4.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
	pointer-events: none;
}

@keyframes scan {
	0%   { transform: translateY(-20%); opacity: 0; }
	12%, 88% { opacity: 1; }
	100% { transform: translateY(560%); opacity: 0; }
}

.video-panel__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	color: #fff;
}

.video-panel__rec {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f5333f;
	animation: rec-blink 1.4s steps(1) infinite;
}

@keyframes rec-blink {
	0%, 49%   { opacity: 1; }
	50%, 100% { opacity: 0.15; }
}

.video-panel__points {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.video-panel__points li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.5;
}

.video-panel__tick {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--accent);
}

/* =========================================================================
 * 7. Hero
 * ====================================================================== */

.hero {
	padding-block: clamp(56px, 8vw, 110px);
	position: relative;
	overflow: hidden;
}

/* A soft accent wash behind the hero, echoing AlphaVenture's dark gradient. */
.hero::before {
	content: "";
	position: absolute;
	inset: -30% -10% auto -10%;
	height: 520px;
	background: radial-gradient(
		60% 60% at 20% 0%,
		rgba(52, 201, 154, 0.14) 0%,
		rgba(52, 201, 154, 0) 70%
	);
	pointer-events: none;
	z-index: 0;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.hero--has-image .hero__inner {
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero__content {
	max-width: 46ch;
}

/*
 * The home hero sets its measure on the title, not on the wrapper. Constraining
 * the wrapper would drag the subtitle to the same narrow column, which reads as
 * a mistake rather than as emphasis.
 */
.hero--home .hero__content {
	max-width: 62ch;
}

.hero--home .hero__title {
	max-width: 17ch;
}

.hero--home .hero__subtitle {
	max-width: 54ch;
}

.hero__subtitle {
	margin-top: 22px;
	margin-bottom: 0;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.hero__media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	/* Reserve the box so the hero image cannot shift the layout. */
	aspect-ratio: 16 / 9;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Cut-out artwork sits on the page directly: no frame, no fixed aspect box. */
.hero__media--cutout {
	position: relative;
	border: 0;
	overflow: visible;
	aspect-ratio: auto;
	display: grid;
	place-items: center;
}

.hero__cutout {
	width: 100%;
	max-width: 520px;
	height: auto;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
	animation: float 7s ease-in-out infinite;
}

.hero--archive,
.hero--page {
	padding-bottom: clamp(36px, 5vw, 64px);
}

@media (max-width: 860px) {
	.hero--has-image .hero__inner {
		grid-template-columns: 1fr;
	}

	.hero--home .hero__content {
		max-width: none;
	}
}

/* Breadcrumbs ------------------------------------------------------------- */

.breadcrumbs {
	padding-top: 22px;
	font-size: 0.85rem;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	margin-right: 8px;
	color: var(--border-strong);
}

.breadcrumbs__link {
	color: var(--muted);
	text-decoration: none;
	/* Pads the hit area to a comfortable target without moving the text. */
	display: inline-block;
	padding-block: 6px;
}

.breadcrumbs__link:hover {
	color: var(--accent);
}

.breadcrumbs__current {
	color: var(--text-2);
}

/* =========================================================================
 * 8. Sections
 * ====================================================================== */

.section--statement {
	border-top: 1px solid var(--border);
}

.section--stats {
	background: var(--bg-elev);
	border-block: 1px solid var(--border);
}

.section--problem .feature {
	border-left: 2px solid rgba(52, 201, 154, 0.4);
}

/* CTA --------------------------------------------------------------------- */

.cta {
	padding: clamp(40px, 6vw, 72px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(80% 140% at 100% 0%, rgba(52, 201, 154, 0.16) 0%, rgba(52, 201, 154, 0) 60%),
		var(--surface);
	text-align: center;
}

.cta__title {
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	max-width: 20ch;
	margin-inline: auto;
}

.cta__text {
	max-width: 56ch;
	margin-inline: auto;
	color: var(--text-2);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.cta__phone {
	color: var(--text-2);
	font-weight: 600;
	text-decoration: none;
}

.cta__phone:hover {
	color: var(--accent);
}

/* =========================================================================
 * 9. Cards
 * ====================================================================== */

.cards {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cards--compact {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	overflow: hidden;
	transition: border-color 320ms var(--ease),
	            background 320ms var(--ease),
	            transform 320ms var(--ease),
	            box-shadow 320ms var(--ease);
}

/*
 * A brand-tinted wash that fades up from the bottom on hover. Cheap to
 * animate (opacity only) and it gives the card somewhere to go beyond simply
 * lifting.
 */
.card::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	background: linear-gradient(to top, rgba(52, 201, 154, 0.10), transparent);
	opacity: 0;
	transition: opacity 320ms var(--ease);
	pointer-events: none;
}

.card:hover {
	border-color: rgba(52, 201, 154, 0.45);
	background: var(--surface-hover);
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.card:hover::before {
	opacity: 1;
}

.card__title {
	transition: color 320ms var(--ease);
}

.card:hover .card__title {
	color: var(--accent);
}

.card__more {
	transition: transform 320ms var(--ease);
}

.card:hover .card__more {
	transform: translateX(4px);
}

.card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}

.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease);
}

.card:hover .card__image {
	transform: scale(1.03);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.card__title {
	font-size: 1.18rem;
	margin-bottom: 10px;
	letter-spacing: -0.02em;
}

.card__text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 18px;
}

.card__metric {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 18px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.card__metric-value {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--accent);
}

.card__metric-label {
	font-size: 0.82rem;
	color: var(--muted);
	line-height: 1.35;
}

.card__more {
	margin-top: auto;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--accent);
}

/*
 * Title-only cards.
 *
 * Two shapes share this: the grid card (title inside .card__body) and the
 * related-strip card (title as a direct child, no body wrapper). Both are
 * handled, so the row layout does not silently miss one of them.
 */
.card--tight .card__body,
.card--compact.card--tight {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
}

.card--tight .card__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.35;
	/* Flex items refuse to shrink below their content width without this, so a
	   long title pushes the arrow out past the edge of the card. */
	min-width: 0;
	overflow-wrap: anywhere;
}

.card--tight .card__kicker,
.card--tight .card__text {
	display: none;
}

.card--tight .card__more {
	margin: 0 0 0 auto;
	font-size: 1.05rem;
	flex-shrink: 0;
}

/* Pillars ----------------------------------------------------------------- */

.pillars {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pillar {
	padding: 32px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.pillar__title {
	font-size: 1.35rem;
	color: var(--accent);
}

.pillar__text {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 22px;
}

.pillar__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.pillar__list li {
	border-bottom: 1px solid var(--border);
}

.pillar__list a {
	display: block;
	padding: 13px 0;
	color: var(--text-2);
	font-size: 0.95rem;
	text-decoration: none;
	transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}

.pillar__list a:hover {
	color: var(--text);
	padding-left: 8px;
}

.pillar__more {
	margin-top: 18px;
	font-size: 0.85rem;
}

/* Quotes ------------------------------------------------------------------ */

.quotes {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote {
	margin: 0;
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.quote__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	letter-spacing: -0.01em;
	color: var(--text);
}

.quote__text::before {
	content: "“";
	color: var(--accent);
	font-size: 2rem;
	line-height: 0;
	vertical-align: -0.35em;
	margin-right: 4px;
}

.quote__author {
	margin-top: 18px;
	font-size: 0.85rem;
	color: var(--muted);
}

/* =========================================================================
 * 10. Stats, process, features, FAQ
 * ====================================================================== */

.stats {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 22px;
	border-top: 1px solid var(--border-strong);
}

.stat__index {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--accent);
	letter-spacing: 0.06em;
}

.stat__value {
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.stat__label {
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.5;
	text-wrap: pretty;
}

/* Features ---------------------------------------------------------------- */

.features {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.feature__icon {
	width: 26px;
	height: 26px;
	color: var(--accent);
	margin-bottom: 18px;
}

.feature__title {
	font-size: 1.12rem;
	margin-bottom: 10px;
}

.feature__text {
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.62;
	margin: 0;
	text-wrap: pretty;
}

/* Process ----------------------------------------------------------------- */

.process {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: process;
	border-top: 1px solid var(--border);
}

.process__step {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 24px;
	padding-block: 30px;
	border-bottom: 1px solid var(--border);
	align-items: start;
}

.process__number {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent);
	padding-top: 6px;
	letter-spacing: 0.06em;
}

.process__title {
	font-size: 1.28rem;
	margin-bottom: 8px;
}

.process__text {
	color: var(--muted);
	font-size: 0.98rem;
	margin: 0;
	max-width: 70ch;
	text-wrap: pretty;
}

@media (max-width: 620px) {
	.process__step {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.process__number {
		padding-top: 0;
	}
}

/* Use cases --------------------------------------------------------------- */

.use-cases {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.use-case {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text-2);
	font-size: 0.95rem;
}

.use-case__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--accent);
}

/* Facts (case studies) ---------------------------------------------------- */

.facts {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0;
	padding-block: 30px;
	border-block: 1px solid var(--border);
}

.facts__label {
	font-size: 0.76rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}

.facts__value {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

.story + .story {
	margin-top: 40px;
}

.story__title {
	font-size: 1.5rem;
}

.story__text {
	color: var(--text-2);
	margin: 0;
	text-wrap: pretty;
}

/* FAQ --------------------------------------------------------------------- */

.faqs {
	border-top: 1px solid var(--border);
}

.faq {
	border-bottom: 1px solid var(--border);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	font-size: 1.08rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	cursor: pointer;
	list-style: none;
	transition: color var(--speed) var(--ease);
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question:hover {
	color: var(--accent);
}

.faq__marker {
	position: relative;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.faq__marker::before,
.faq__marker::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1.5px;
	background: var(--accent);
	transition: transform var(--speed) var(--ease);
}

.faq__marker::after {
	transform: rotate(90deg);
}

.faq[open] .faq__marker::after {
	transform: rotate(0deg);
}

.faq__answer {
	padding-bottom: 24px;
	color: var(--muted);
	max-width: 78ch;
}

.faq__answer p {
	margin: 0;
	text-wrap: pretty;
}

/* =========================================================================
 * 11. Product (hardware)
 * ====================================================================== */

.product {
	padding-block: clamp(36px, 5vw, 64px);
}

.product__inner {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.product__media {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-elev);
}

.product__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	padding: 24px;
}

.product__thumbs {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 12px;
	list-style: none;
	border-top: 1px solid var(--border);
	overflow-x: auto;
}

.product__thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
}

.product__title {
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	letter-spacing: -0.035em;
}

.product__ident {
	display: flex;
	gap: 12px;
	align-items: center;
	color: var(--muted);
	font-size: 0.95rem;
}

.product__model {
	font-family: var(--font-mono);
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.82rem;
}

.product__lede {
	color: var(--text-2);
	font-size: 1.05rem;
}

.product__features {
	margin: 26px 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.product__features li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	color: var(--text-2);
	font-size: 0.96rem;
}

.product__tick {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--accent);
}

.product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

@media (max-width: 860px) {
	.product__inner {
		grid-template-columns: 1fr;
	}
}

/* Spec table -------------------------------------------------------------- */

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.specs th,
.specs td {
	padding: 15px 18px;
	text-align: left;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.specs th {
	width: 42%;
	font-weight: 500;
	color: var(--muted);
	font-size: 0.92rem;
}

.specs td {
	color: var(--text);
	font-size: 0.96rem;
}

.specs tr:first-child th,
.specs tr:first-child td {
	border-top: 1px solid var(--border);
}

/* =========================================================================
 * 12. Forms
 * ====================================================================== */

.sma-form {
	padding: clamp(26px, 4vw, 40px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.sma-form__title {
	font-size: 1.6rem;
	margin-bottom: 10px;
}

.sma-form__intro {
	color: var(--muted);
	margin-bottom: 26px;
}

.sma-form__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sma-form__field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.sma-form__field--full {
	grid-column: 1 / -1;
}

.sma-form__field label {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-2);
}

.sma-form__req {
	color: var(--accent);
}

.sma-form input[type="text"],
.sma-form input[type="email"],
.sma-form input[type="tel"],
.sma-form select,
.sma-form textarea,
.search-form__input {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text);
	font-size: 0.96rem;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.sma-form input::placeholder,
.sma-form textarea::placeholder,
.search-form__input::placeholder {
	color: #6c6c6c;
}

.sma-form input:focus,
.sma-form select:focus,
.sma-form textarea:focus,
.search-form__input:focus {
	border-color: var(--accent);
	background: rgba(0, 0, 0, 0.55);
	outline: none;
}

.sma-form textarea {
	resize: vertical;
	min-height: 130px;
}

.sma-form__consent {
	margin: 22px 0 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.sma-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

/*
 * 24px minimum. The consent box is required, so a 16px target is the single
 * most likely thing to fail a mis-tap on a phone and it sits between the user
 * and every enquiry.
 */
.sma-form__consent input {
	margin-top: 2px;
	accent-color: var(--accent);
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* The whole label is the target, not just the box. */
.sma-form__consent label {
	padding: 4px 0;
}

/*
 * Honeypot. Kept in the layout but visually and semantically removed, so a
 * bot filling every field trips it while nobody real can reach it.
 */
.sma-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sma-form__actions {
	margin: 26px 0 0;
}

.sma-form__privacy {
	margin: 14px 0 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.sma-form__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.sma-form__status:empty {
	display: none;
}

.sma-form__status,
.form-notice {
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	margin-bottom: 22px;
	font-size: 0.94rem;
	border: 1px solid var(--border);
}

.sma-form__status.is-success,
.form-notice--success {
	border-color: rgba(76, 200, 120, 0.4);
	background: rgba(76, 200, 120, 0.1);
	color: #9de8b8;
}

.sma-form__status.is-error,
.form-notice--error {
	border-color: rgba(240, 90, 90, 0.4);
	background: rgba(240, 90, 90, 0.1);
	color: #f5a3a3;
}

/* NAP block --------------------------------------------------------------- */

.sma-nap {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding: 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	margin-block: 32px;
}

.sma-nap__heading {
	font-size: 0.76rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.sma-nap__address {
	font-style: normal;
	color: var(--text-2);
	font-size: 0.95rem;
	line-height: 1.6;
}

.sma-nap__link {
	display: block;
	color: var(--text-2);
	font-size: 0.95rem;
	text-decoration: none;
	padding: 3px 0;
}

.sma-nap__link:hover {
	color: var(--accent);
}

.sma-nap__text {
	color: var(--text-2);
	font-size: 0.95rem;
	margin: 0;
}

.sma-map {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	margin-top: 24px;
}

/* Search form ------------------------------------------------------------- */

.search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 36px;
}

.search-again {
	max-width: 560px;
}

/* =========================================================================
 * 13. Footer
 * ====================================================================== */

.site-footer {
	margin-top: var(--section-y);
	padding-block: clamp(48px, 6vw, 80px) 32px;
	border-top: 1px solid var(--border);
	background: var(--bg-elev);
}

.footer__grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1.4fr 1fr 1.2fr;
}

@media (max-width: 860px) {
	.footer__grid {
		grid-template-columns: 1fr;
	}
}

.footer__tagline {
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 38ch;
}

.footer__heading {
	font-size: 0.76rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 18px;
}

.footer__menu,
.footer__links,
.footer__social,
.footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__menu a,
.footer__links a,
.footer__social a,
.footer__legal a {
	display: inline-block;
	padding: 5px 0;
	color: var(--text-2);
	font-size: 0.94rem;
	text-decoration: none;
}

.footer__menu a:hover,
.footer__links a:hover,
.footer__social a:hover,
.footer__legal a:hover {
	color: var(--accent);
}

.footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 22px;
}

.footer__address {
	font-style: normal;
	color: var(--text-2);
	font-size: 0.94rem;
	line-height: 1.65;
	margin-bottom: 16px;
}

.footer__hours {
	margin-top: 14px;
	color: var(--muted);
	font-size: 0.88rem;
}

.footer__note {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.9rem;
}

.footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.footer__copy {
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* WhatsApp float ---------------------------------------------------------- */

.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 95;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #0a0a0a;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	transition: transform var(--speed) var(--ease);
}

.whatsapp-float:hover {
	transform: scale(1.06);
}

/* =========================================================================
 * 14. Utilities & WordPress core classes
 * ====================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.empty {
	color: var(--muted);
	padding-block: 40px;
}

/* Editorial content ------------------------------------------------------- */

.entry__content {
	font-size: 1.06rem;
	line-height: 1.75;
	color: var(--text-2);
}

.entry__content > * + * {
	margin-top: 1.3em;
}

.entry__content h2 {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	color: var(--text);
	margin-top: 2em;
}

.entry__content h3 {
	font-size: 1.25rem;
	color: var(--text);
	margin-top: 1.8em;
}

.entry__content strong {
	color: var(--text);
	font-weight: 600;
}

.entry__content a {
	color: var(--accent);
	text-decoration-color: rgba(52, 201, 154, 0.45);
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.3em;
}

.entry__content li + li {
	margin-top: 0.55em;
}

.entry__content li::marker {
	color: var(--accent);
}

.entry__content blockquote {
	margin: 2em 0;
	padding-left: 24px;
	border-left: 3px solid var(--accent);
	font-size: 1.15rem;
	color: var(--text);
}

.entry__content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
}

.entry__content pre {
	padding: 20px;
	border-radius: var(--radius-sm);
	background: #000;
	border: 1px solid var(--border);
	overflow-x: auto;
}

.entry__content img,
.entry__content figure {
	border-radius: var(--radius);
}

.entry__content table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
}

.entry__header {
	padding-top: clamp(32px, 5vw, 56px);
}

.entry__title {
	font-size: clamp(2rem, 4.6vw, 3.2rem);
	letter-spacing: -0.035em;
}

.entry__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	color: var(--muted);
	font-size: 0.9rem;
}

.entry__media {
	margin-block: 36px;
}

.entry__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.entry__tags {
	margin-top: 40px;
}

/* WordPress alignment and caption classes --------------------------------- */

.alignwide {
	width: min(100vw - (var(--gutter) * 2), 1100px);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.alignleft {
	float: left;
	margin: 0 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: 0 0 1.2em 1.6em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 10px;
	text-align: center;
}

.sticky,
.bypostauthor {
	/* Declared for theme-check compliance. */
	position: relative;
}

/* Pagination -------------------------------------------------------------- */

.pagination {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--border);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text-2);
	text-decoration: none;
	font-size: 0.92rem;
	transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--text);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}

/* Comments ---------------------------------------------------------------- */

.comment-list {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
}

.comment-body {
	padding: 22px 0;
	border-bottom: 1px solid var(--border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.35);
	color: var(--text);
}

/* Widgets ----------------------------------------------------------------- */

.widget {
	margin-bottom: 36px;
}

.widget__title {
	font-size: 0.78rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget a {
	color: var(--text-2);
	text-decoration: none;
	display: inline-block;
	padding: 5px 0;
}

.widget a:hover {
	color: var(--accent);
}

/* Admin bar offset -------------------------------------------------------- */

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .nav {
		inset-block-start: 118px;
	}
}

/* =========================================================================
 * 14b. Mobile compaction
 *
 * The desktop scale is too generous on a phone: everything fitted, but the
 * homepage ran to several screens of half-empty cards. This tightens type,
 * padding and rhythm, and puts the short cards two-up, so meaningfully more
 * content is visible per screen without anything shrinking below a comfortable
 * reading or tapping size.
 * ====================================================================== */

@media (max-width: 700px) {
	:root {
		/* Was a 64px floor; on a 812px-tall screen that is 16% of the viewport
		   spent on whitespace between every pair of sections. */
		--section-y: 44px;
		--radius-lg: 16px;
	}

	body {
		font-size: 16px;
		line-height: 1.6;
	}

	/* Headings ---------------------------------------------------------- */

	.hero__headline {
		font-size: clamp(1.9rem, 8.6vw, 2.4rem);
		line-height: 1.04;
		max-width: none;
	}

	.hero__chips {
		font-size: 1.15rem;
		gap: 7px 8px;
		max-width: none;
		margin-top: 22px;
	}

	.section__title {
		font-size: 1.45rem;
	}

	.section__head {
		margin-bottom: 22px;
	}

	.section__subtitle,
	.hero__subtitle {
		font-size: 0.98rem;
	}

	.statement {
		font-size: 1.15rem;
		margin-bottom: 24px;
	}

	.hero--statement {
		padding-top: 96px;
	}

	/* The product stage was taking most of a screen on its own. */
	.hero__stage {
		max-width: 260px;
		margin-top: 28px;
	}

	.hero__facts {
		gap: 6px 14px;
		margin-top: 22px;
		font-size: 0.66rem;
	}

	/* Cards and grids ---------------------------------------------------- */

	/* Title-only cards are short enough to sit two-up, which roughly halves
	   the height of the industries and related strips. */
	.cards--compact,
	.cards--industries {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.card--tight .card__body,
	.card--compact.card--tight {
		padding: 14px 14px;
		gap: 8px;
	}

	.card--tight .card__title {
		font-size: 0.88rem;
	}

	.card__body {
		padding: 18px;
	}

	.card__title {
		font-size: 1.05rem;
	}

	.pillar,
	.panel {
		padding: 18px 20px;
	}

	.pillar__title {
		font-size: 1.1rem;
		margin-bottom: 6px;
	}

	.pillar__list a,
	.panel__list a {
		padding: 10px 0;
		font-size: 0.92rem;
	}

	/*
	 * The fourth service in each pillar is hidden on mobile and the "+N more"
	 * link picks it up instead. Four pillars listing three services each was
	 * the single tallest block on the page.
	 */
	.pillar__list li:nth-child(n+3) {
		display: none;
	}

	.pillar__more {
		margin-top: 12px;
		/* Was 22px tall - under the tap-target minimum. */
		padding-block: 6px;
		display: inline-flex;
	}

	.panel__art {
		width: 34%;
		opacity: 0.12;
	}

	/* Footer: two columns rather than one long stack. */
	.footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}

	.footer__menu a,
	.footer__links a,
	.footer__social a,
	.footer__legal a {
		font-size: 0.88rem;
		padding: 6px 0;
	}

	.footer__tagline {
		font-size: 0.88rem;
		margin-top: 12px;
	}

	.footer__address {
		font-size: 0.86rem;
	}

	.feature {
		padding: 20px;
	}

	.feature__icon {
		margin-bottom: 12px;
	}

	/* Three across rather than two: these are small renders with a label. */
	.kit {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.kit__link {
		padding: 14px 8px 12px;
		gap: 8px;
	}

	.kit__media {
		height: 62px;
	}

	.kit__label {
		font-size: 0.72rem;
	}

	/* Rail --------------------------------------------------------------- */

	.rail__link {
		padding: 13px 4px;
	}

	.rail__name {
		font-size: 0.88rem;
	}

	/* Stats, process, quotes --------------------------------------------- */

	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.stat__value {
		font-size: 1.7rem;
	}

	.stat__label {
		font-size: 0.78rem;
	}

	.process__step {
		padding-block: 18px;
	}

	.process__title {
		font-size: 1.08rem;
	}

	.quotes {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.quote {
		padding: 20px;
	}

	.quote__text {
		font-size: 0.96rem;
	}

	/* Content, CTA, footer ------------------------------------------------ */

	.entry__content {
		font-size: 1rem;
	}

	.cta {
		padding: 26px 20px;
	}

	.cta__title {
		font-size: 1.4rem;
	}

	.site-footer {
		padding-block: 40px 24px;
	}

	.footer__grid {
		gap: 26px;
	}

	.footer__bar {
		margin-top: 28px;
	}

	/* Keep the float clear of the thumb zone without dominating it. */
	.whatsapp-float {
		right: 14px;
		bottom: 14px;
		width: 48px;
		height: 48px;
	}
}

/* =========================================================================
 * 15. Motion & print
 * ====================================================================== */

/*
 * Reveal-on-scroll. The .is-visible class is added by main.js; without JS the
 * @media query below never applies the hidden state, so content is always
 * readable. This is why the hidden state lives here rather than in the base
 * rule — a JS failure must not blank the page.
 */
.js .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms var(--ease), transform 600ms var(--ease);
	will-change: opacity, transform;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.whatsapp-float,
	.section--cta,
	.breadcrumbs,
	.sma-form {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}
