/*
 * OAX home sections (patterns oax-child/home-*.php). Uses the FAJR Solar Kit tokens (tokens.css):
 * light = :root, dark = [data-theme="dark"]. Class prefix .oaxh- (never .oax-, which belongs to the datasheet).
 * Animations: transform/opacity (plus small glow filters on 2px connector lines), paused for
 * prefers-reduced-motion.
 * r2 (speed): every animation is transform/opacity only (compositor, no repaint), the hero ones stop after a few
 * cycles, everything pauses off-screen (.is-offscreen from kit.js, contract K5), no backdrop blur on animated chips
 * or on opaque panels, and none at all below 760 px.
 */

/* ---------- Shared ---------- */
.oaxh-page .fajr-main > .wp-block-post-content { margin-block-start: 0 !important; }
.oaxh-page .wp-block-post-content > * { margin-block: 0; }

/* ---------- 1. Hero ---------- */
.wp-block-post-content > .oaxh-hero,
.oaxh-hero {
	--hh: var(--fajr-header-h, 86px);
	position: relative; isolation: isolate; overflow: hidden;
	margin-top: calc(-1 * var(--hh)) !important;
	padding-top: calc(var(--hh) + clamp(36px, 6vw, 84px)) !important;
	padding-bottom: clamp(48px, 7vw, 104px) !important;
	background:
		radial-gradient(52% 62% at 82% 38%, rgba(255, 158, 74, .26), transparent 70%),
		radial-gradient(40% 46% at 6% 62%, rgba(243, 211, 74, .18), transparent 70%),
		linear-gradient(180deg, #F8F4EA 0%, var(--bg) 100%);
}
[data-theme="dark"] .oaxh-hero {
	background:
		radial-gradient(50% 60% at 80% 40%, rgba(255, 122, 26, .20), transparent 70%),
		radial-gradient(38% 44% at 6% 62%, rgba(96, 165, 250, .07), transparent 70%),
		linear-gradient(180deg, #0F110F 0%, var(--bg) 100%);
}
/* faint blueprint grid, fading out at the edges */
.oaxh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(to right, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(to bottom, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
	-webkit-mask: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%); mask: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.oaxh-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.oaxh-hero__inner > * { margin: 0 !important; min-width: 0; }
.oaxh-hero__content > * { margin-block: 0; }

.oaxh-badge {
	position: relative;
	display: inline-flex; align-items: center; gap: 10px; width: fit-content;
	padding: 7px 14px 7px 12px; border-radius: var(--radius-pill);
	font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
	color: var(--text);
	background: var(--glass); border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
	box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .oaxh-badge { border-color: rgba(255, 255, 255, .1); }
.oaxh-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--energy); }
.oaxh-badge::after { /* ping ring over the dot: transform + opacity, 10 pings */
	content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
	background: rgba(255, 122, 26, .55); pointer-events: none; opacity: 0;
	animation: oaxh-ping 2.2s ease-out 10;
}
.oaxh-hero__title {
	margin-top: var(--space-5) !important;
	font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.9rem) !important;
	font-weight: 600; line-height: .98 !important; letter-spacing: -.045em !important;
	text-wrap: balance;
}
.oaxh-hero__soft {
	display: block;
	background: linear-gradient(90deg, var(--energy-ink), color-mix(in srgb, var(--text) 55%, transparent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .oaxh-hero__soft { background-image: linear-gradient(90deg, #FFB070, color-mix(in srgb, var(--text) 62%, transparent)); }
.oaxh-hero__lead { margin-top: var(--space-5) !important; max-width: 52ch; font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.oaxh-hero__buttons { margin-top: var(--space-6) !important; gap: 10px; }
.oaxh-checks { list-style: none; margin: var(--space-6) 0 0 !important; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: var(--muted); }
.oaxh-checks li { position: relative; margin: 0; padding-left: 24px; }
.oaxh-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
	background: color-mix(in srgb, var(--eco) 18%, transparent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%232E9E5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
[data-theme="dark"] .oaxh-checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%234CC38A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Visual: product photo card + glass chips */
.oaxh-hero__visual { position: relative; padding: 28px 0 40px; }
.oaxh-hero__visual > * { margin: 0 !important; }
.oaxh-hero__visual::before { /* soft charging glow behind the card (soft gradient instead of a blur filter) */
	content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 6%; bottom: 6%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 122, 26, .36), rgba(255, 122, 26, .14) 55%, transparent);
	opacity: .55;
	animation: oaxh-breathe 6s ease-in-out 4;
}
.oaxh-hero__photo { position: relative; border-radius: var(--radius-panel); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #ECE8E1; }
[data-theme="dark"] .oaxh-hero__photo { border-color: rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 122, 26, .12); }
.oaxh-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1134 / 578; object-fit: cover; }
.oaxh-hero__photo::after { /* energy line along the bottom edge (static) */
	content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--energy) 20%, var(--energy) 80%, transparent);
	box-shadow: 0 0 14px rgba(255, 122, 26, .8);
}
.oaxh-hero__photo::before { /* light band gliding along the line: transform only, 6 passes */
	content: ""; position: absolute; z-index: 1; left: 10%; bottom: 0; width: 16%; height: 2px; pointer-events: none;
	background: linear-gradient(90deg, transparent, #FFE7C2, transparent); opacity: 0;
	animation: oaxh-shine 4s linear 6;
}
.oaxh-chip { /* r2: no backdrop blur (a moving blurred surface re-blurs every frame) – near-opaque glass instead */
	position: absolute; z-index: 2;
	display: flex; flex-direction: column; gap: 2px;
	padding: 12px 16px; border-radius: 16px;
	font-size: 12px; line-height: 1.25; color: var(--muted);
	background: rgba(255, 255, 255, .86); border: 1px solid var(--glass-border);
	box-shadow: var(--shadow-md);
	animation: oaxh-float 7s ease-in-out 3;
}
[data-theme="dark"] .oaxh-chip { background: rgba(20, 23, 20, .86); border-color: rgba(255, 255, 255, .1); }
.oaxh-chip strong { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.oaxh-chip--a { left: -18px; top: 6px; }
.oaxh-chip--b { right: -12px; bottom: 18px; animation-delay: -3.5s; }
.oaxh-chip--b strong { color: var(--energy-ink); }
.oaxh-hero__model { position: absolute; left: 22px; bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- 2. System diagram (orange linking) ---------- */
.oaxh-flow__track {
	--g: clamp(28px, 3.4vw, 52px); --cycle: 3.2s; --y: 47px;
	position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g);
	margin-top: var(--space-8) !important;
}
.oaxh-flow__track > * { margin: 0 !important; min-width: 0; }
.oaxh-node {
	position: relative; padding: 24px 22px 26px;
	border-radius: 22px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 84%, transparent));
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}
[data-theme="dark"] .oaxh-node {
	background: linear-gradient(180deg, #1b1e1b, #121412);
	border-color: rgba(255, 255, 255, .08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
/* "lit" pulse when the electricity arrives: a glow overlay that only fades (opacity), drawn by the text's ::after */
.oaxh-node__text::after {
	content: ""; position: absolute; inset: -1px; border-radius: 22px; pointer-events: none; opacity: 0;
	border: 1px solid color-mix(in srgb, var(--energy) 70%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--energy) 35%, transparent), 0 0 36px -8px rgba(255, 122, 26, .5);
	animation: oaxh-lit var(--cycle) ease-out infinite;
}
.oaxh-node:nth-child(2) .oaxh-node__text::after { animation-delay: calc(var(--cycle) * .25); }
.oaxh-node:nth-child(3) .oaxh-node__text::after { animation-delay: calc(var(--cycle) * .5); }
.oaxh-node:nth-child(4) .oaxh-node__text::after { animation-delay: calc(var(--cycle) * .75); }
.oaxh-node > * { margin: 0 !important; }
.oaxh-node__tag {
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: 46px; padding-left: 58px;
	font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--energy-ink);
}
.oaxh-node__tag::before { /* icon tile */
	content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px;
	background: color-mix(in srgb, var(--energy) 12%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--energy) 35%, transparent);
}
.oaxh-node__tag::after { /* icon glyph */
	content: ""; position: absolute; left: 11px; top: 11px; width: 24px; height: 24px;
	background: var(--text);
	-webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.oaxh-node--solar { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 13h16l-2 8H6l-2-8Z'/%3E%3Cpath d='M9.3 13 8.6 21M14.7 13l.7 8M4.9 17h14.2'/%3E%3Ccircle cx='12' cy='6' r='2.4'/%3E%3Cpath d='M12 1.5v1M16.5 6h1M6.5 6h1M15.2 2.8l-.7.7M8.8 2.8l.7.7'/%3E%3C/svg%3E"); }
.oaxh-node--inverter { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Crect x='8' y='6' width='8' height='5' rx='1'/%3E%3Cpath d='M9 15.5c.8-1.3 1.7-1.3 2.5 0s1.7 1.3 2.5 0M8 21v1.5M16 21v1.5'/%3E%3C/svg%3E"); }
.oaxh-node--battery { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='5' rx='1.4'/%3E%3Crect x='3' y='10' width='18' height='5' rx='1.4'/%3E%3Crect x='3' y='16' width='18' height='5' rx='1.4'/%3E%3Cpath d='M14 6.5h3M14 12.5h3M14 18.5h3'/%3E%3C/svg%3E"); }
.oaxh-node--home { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3.5 11 12 4l8.5 7'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='m12.6 11.5-2.3 3.4h3.2l-2.2 3.4'/%3E%3C/svg%3E"); }
.oaxh-node__title { margin-top: 18px !important; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem) !important; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.oaxh-node__text { margin-top: 8px !important; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
/* battery node: highlighted + charge meter */
.oaxh-node--battery { border-color: color-mix(in srgb, var(--energy) 45%, transparent); }
[data-theme="dark"] .oaxh-node--battery { border-color: rgba(255, 138, 43, .45); }
.oaxh-node--battery .oaxh-node__title { position: relative; }
.oaxh-node--battery .oaxh-node__title::after { /* track */
	content: ""; display: block; height: 6px; margin-top: 12px; border-radius: 6px;
	background: color-mix(in srgb, var(--text) 10%, transparent);
}
.oaxh-node--battery .oaxh-node__title::before { /* charge level: scaleX (compositor) instead of an animated width */
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; border-radius: 6px;
	background: linear-gradient(90deg, var(--eco), var(--energy));
	transform-origin: 0 50%; transform: scaleX(.72);
	animation: oaxh-charge 6s ease-in-out infinite;
}

/* connectors: line + joint dots (::before, blinking glow) and travelling spark (::after) */
.oaxh-node + .oaxh-node::before {
	content: ""; position: absolute; z-index: 2; pointer-events: none;
	top: var(--y); left: calc(-1 * var(--g) - 6px); width: calc(var(--g) + 12px); height: 12px; margin-top: -6px;
	background:
		radial-gradient(circle at 6px 50%, var(--energy) 0 3.5px, transparent 4.5px),
		radial-gradient(circle at calc(100% - 6px) 50%, var(--energy) 0 3.5px, transparent 4.5px),
		linear-gradient(var(--energy), var(--energy)) center / calc(100% - 12px) 2px no-repeat;
	filter: drop-shadow(0 0 3px rgba(255, 122, 26, .9));
	animation: oaxh-blink 1.8s ease-in-out infinite;
}
.oaxh-node + .oaxh-node::after {
	content: ""; position: absolute; z-index: 3; pointer-events: none;
	top: var(--y); left: calc(-1 * var(--g)); width: 16px; height: 3px; margin-top: -1.5px; border-radius: 3px;
	background: linear-gradient(90deg, transparent, #FFF3DE, transparent);
	box-shadow: 0 0 10px 2px rgba(255, 176, 112, .9);
	opacity: 0;
	animation: oaxh-spark-x var(--cycle) linear infinite;
}
.oaxh-node:nth-child(3)::after { animation-delay: calc(var(--cycle) * .25); }
.oaxh-node:nth-child(4)::after { animation-delay: calc(var(--cycle) * .5); }

/* ---------- 3. Features (3 datasheet columns) ---------- */
.oaxh-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.oaxh-features__grid > * { margin: 0 !important; min-width: 0; }
.oaxh-feature {
	position: relative; padding: 30px 28px 30px;
	border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line);
	transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.oaxh-feature:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--energy) 35%, transparent); }
.oaxh-feature > * { margin: 0 !important; }
.oaxh-feature::before {
	content: ""; display: block; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px;
	background: color-mix(in srgb, var(--sun) 24%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 45%, transparent);
}
.oaxh-feature::after {
	content: ""; position: absolute; left: 36px; top: 38px; width: 40px; height: 40px;
	background: var(--text);
	-webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.oaxh-feature--performance { --glyph: url("../img/feat-performance.svg"); }
.oaxh-feature--safe { --glyph: url("../img/feat-safe.svg"); }
.oaxh-feature--user { --glyph: url("../img/feat-user.svg"); }
.oaxh-feature__title { font-size: var(--fs-xl) !important; font-weight: 600; letter-spacing: -.02em; }
.oaxh-feature__list { list-style: none; margin-top: 16px !important; padding: 0; display: grid; gap: 12px; }
.oaxh-feature__list li { position: relative; margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.oaxh-feature__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--energy); box-shadow: var(--energy-glow); }

/* ---------- 4. Mounting options ---------- */
.oaxh-mount__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.oaxh-mount__grid > * { margin: 0 !important; min-width: 0; }
.oaxh-mount__card {
	padding: 18px 18px 26px; border-radius: var(--radius-card);
	background: var(--surface); border: 1px solid var(--line);
	transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.oaxh-mount__card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--energy) 35%, transparent); }
.oaxh-mount__card > * { margin: 0 !important; }
.oaxh-mount__art { border-radius: 14px; overflow: hidden; background: radial-gradient(80% 90% at 50% 100%, color-mix(in srgb, var(--energy) 10%, transparent), transparent 70%), color-mix(in srgb, var(--text) 3%, transparent); }
.oaxh-mount__art img { display: block; width: 100%; height: auto; aspect-ratio: 280 / 200; padding: 10px 6% 0; transition: transform .6s var(--ease-out); }
.oaxh-mount__card:hover .oaxh-mount__art img { transform: translateY(-4px) scale(1.02); }
.oaxh-mount__title { margin-top: 20px !important; padding-inline: 8px; font-size: var(--fs-xl) !important; font-weight: 600; letter-spacing: -.02em; }
.oaxh-mount__text { margin-top: 6px !important; padding-inline: 8px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.oaxh-mount__facts {
	list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.oaxh-mount__facts li {
	margin: 0; padding: 7px 14px; border-radius: var(--radius-pill);
	font-size: 13px; font-weight: 500; color: var(--text);
	background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line);
}

/* ---------- 5. Technical highlights ---------- */
.oaxh-tech__panel { /* r2: no backdrop blur – the panel background is (near) opaque in both modes */
	padding: 22px 24px 10px !important; border-radius: var(--radius-panel);
	background: var(--glass); border: 1px solid var(--glass-border);
	box-shadow: var(--shadow-lg);
}
:root:not([data-theme="dark"]) .oaxh-tech__panel { background: color-mix(in srgb, var(--surface) 82%, transparent); border-color: var(--line); }
[data-theme="dark"] .oaxh-tech__panel { background: linear-gradient(180deg, #1a1d1a, #121412); border-color: rgba(255, 255, 255, .08); }
.oaxh-tech__panel > * { margin: 0 !important; }
.oaxh-tech__head { gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.oaxh-tech__head > * { margin: 0 !important; }
.oaxh-tech__model { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.015em; }
.oaxh-tech__table { margin: 0 !important; overflow-x: auto; }
.oaxh-tech__table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.oaxh-tech__table :is(th, td) { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.oaxh-tech__table tr:last-child :is(th, td) { border-bottom: 0; }
.oaxh-tech__table th { width: 46%; padding-right: 16px; font-weight: 400; color: var(--muted); }
.oaxh-tech__table td { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Motion ---------- */
@keyframes oaxh-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
@keyframes oaxh-breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .7; transform: scale(1.04); } }
@keyframes oaxh-shine { 0% { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateX(400%); opacity: 0; } }
@keyframes oaxh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes oaxh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes oaxh-spark-x {
	0% { opacity: 0; transform: translateX(0); }
	3% { opacity: 1; }
	22% { opacity: 1; }
	25% { opacity: 0; transform: translateX(calc(var(--g) - 16px)); }
	100% { opacity: 0; transform: translateX(calc(var(--g) - 16px)); }
}
@keyframes oaxh-spark-y {
	0% { opacity: 0; transform: translateY(0); }
	3% { opacity: 1; }
	22% { opacity: 1; }
	25% { opacity: 0; transform: translateY(calc(var(--g) - 16px)); }
	100% { opacity: 0; transform: translateY(calc(var(--g) - 16px)); }
}
@keyframes oaxh-lit { 0% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes oaxh-charge { 0%, 100% { transform: scaleX(.38); } 50% { transform: scaleX(.96); } }

@media (prefers-reduced-motion: reduce) {
	.oaxh-hero__visual::before, .oaxh-chip, .oaxh-node__text::after,
	.oaxh-node + .oaxh-node::before, .oaxh-node--battery .oaxh-node__title::before { animation: none !important; }
	.oaxh-node + .oaxh-node::after, .oaxh-badge::after, .oaxh-hero__photo::before { display: none; }
}
/* Off-screen sections do not animate (kit.js toggles .is-offscreen, contract K5). */
.is-offscreen::before, .is-offscreen::after, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* Phones: no backdrop blur at all (the badge gets a little more opacity instead). */
@media (max-width: 759.98px) {
	.oaxh-badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 78%, transparent); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.oaxh-flow__track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--g); }
	/* 2 x 2: hide the connector that would jump from the end of row 1 to the start of row 2 */
	.oaxh-node:nth-child(3)::before, .oaxh-node:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
	.oaxh-hero__inner { grid-template-columns: 1fr; }
	.oaxh-hero__visual { max-width: 640px; }
	.oaxh-features__grid, .oaxh-mount__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto !important; }
	.oaxh-mount__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
	.oaxh-mount__title { font-size: var(--fs-lg) !important; }
}
@media (max-width: 760px) {
	/* vertical diagram: cards in one column, connectors on a left rail */
	.oaxh-flow__track { grid-template-columns: 1fr; --g: 34px; max-width: 520px; margin-inline: auto !important; }
	.oaxh-node:nth-child(3)::before { display: block; }
	.oaxh-node:nth-child(3)::after { display: block; }
	.oaxh-node + .oaxh-node::before {
		top: calc(-1 * var(--g) - 6px); left: 45px; width: 12px; height: calc(var(--g) + 12px); margin: 0;
		background:
			radial-gradient(circle at 50% 6px, var(--energy) 0 3.5px, transparent 4.5px),
			radial-gradient(circle at 50% calc(100% - 6px), var(--energy) 0 3.5px, transparent 4.5px),
			linear-gradient(var(--energy), var(--energy)) center / 2px calc(100% - 12px) no-repeat;
	}
	.oaxh-node + .oaxh-node::after {
		top: calc(-1 * var(--g)); left: 49.5px; width: 3px; height: 16px; margin: 0;
		background: linear-gradient(180deg, transparent, #FFF3DE, transparent);
		animation-name: oaxh-spark-y;
	}
	.oaxh-mount__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto !important; }
	.oaxh-tech__table th { width: 50%; }
}
@media (max-width: 600px) {
	.oaxh-chip { padding: 9px 12px; }
	.oaxh-chip strong { font-size: 1.05rem; }
	.oaxh-chip--a { left: 8px; top: 0; }
	.oaxh-chip--b { right: 8px; bottom: 24px; }
	.oaxh-hero__visual { padding: 20px 0 34px; }
	.oaxh-hero__model { left: 10px; bottom: 4px; }
	.oaxh-checks { flex-direction: column; gap: 8px; }
	.oaxh-feature { padding: 24px 22px; }
	.oaxh-feature::after { left: 30px; top: 32px; }
	.oaxh-tech__panel { padding: 18px 16px 6px !important; }
	.oaxh-tech__table th { width: 48%; }
}

/* ---------- Editor canvas ---------- */
.editor-styles-wrapper .oaxh-hero { margin-top: 0 !important; padding-top: 72px !important; }

/* Footer note "OAX batteries are available from FAJR" (plugin footer, oax brand) */
.fajr-footer__about.fajr-footer__from { margin-top: 8px !important; }
.fajr-footer__from a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--energy) 70%, transparent); text-underline-offset: 3px; }
.fajr-footer__from a:hover { color: var(--energy-ink); }

/* ---------- Hero background photo (2026-10-15; Pexels 4626268, see sites/media/SOURCES.md) ---------- */
/* Layers inside the hero (isolated): photo z-3 < veil (::after) z-2 < blueprint grid (::before) z-1 < content. */
.oaxh-hero__bg { position: absolute !important; inset: 0; z-index: -3; margin: 0 !important; max-width: none !important; width: 100% !important; height: 100%; }
.oaxh-hero__bg img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 62% 50%; }
.oaxh-hero:has(.oaxh-hero__bg)::after {
	content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background:
		radial-gradient(52% 62% at 82% 38%, rgba(255, 158, 74, .16), transparent 70%),
		linear-gradient(90deg, rgba(248, 244, 234, .97) 0%, rgba(248, 244, 234, .9) 38%, rgba(248, 244, 234, .5) 72%, rgba(248, 244, 234, .3) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 26%);
}
[data-theme="dark"] .oaxh-hero:has(.oaxh-hero__bg)::after {
	background:
		radial-gradient(50% 60% at 80% 40%, rgba(255, 122, 26, .14), transparent 70%),
		linear-gradient(90deg, rgba(11, 13, 11, .95) 0%, rgba(11, 13, 11, .85) 40%, rgba(11, 13, 11, .45) 75%, rgba(11, 13, 11, .3) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@media (max-width: 1080px) {
	.oaxh-hero:has(.oaxh-hero__bg)::after { background: linear-gradient(180deg, rgba(248, 244, 234, .92) 0%, rgba(248, 244, 234, .8) 55%, var(--bg) 100%); }
	[data-theme="dark"] .oaxh-hero:has(.oaxh-hero__bg)::after { background: linear-gradient(180deg, rgba(11, 13, 11, .88) 0%, rgba(11, 13, 11, .76) 55%, var(--bg) 100%); }
}
.editor-styles-wrapper .oaxh-hero__bg { z-index: -3; }
