/*
 * NextGen Automation - theme.css
 *
 * Hand-written styles that theme.json cannot express. Colors come from the
 * theme.json palette (--wp--preset--color--*); short aliases are defined in
 * section 1 so the rules stay readable.
 *
 * Sections:
 *   1. Tokens and base
 *   2. Shared pieces (eyebrow, tags, buttons, section heads, LED)
 *   3. Emergency bar and header
 *   4. Hero and the animated HMI screen
 *   5. Tag strip (marquee)
 *   6. Services bento grid
 *   7. How a call works
 *   8. Machine design (copy, brief card, render slots)
 *   9. Why NextGen
 *  10. Service area map
 *  11. Closing call to action
 *  12. Footer and mobile call bar
 *  13. Reveal on scroll
 *  14. Reduced motion
 *  15. Inner pages (Services, About, Contact, Privacy) and the contact form
 *
 * Design rules (docs/DESIGN-SYSTEM.md): orange is the action color; orange
 * text on light backgrounds uses orange-700 (AA); dark sections use ink/navy
 * with a faint blueprint grid; no stock photos; nothing wider than the screen.
 */

/* 1. Tokens and base ---------------------------------------------------- */
:root {
	--ink: var(--wp--preset--color--ink);
	--navy: var(--wp--preset--color--navy);
	--navy-600: var(--wp--preset--color--navy-600);
	--orange: var(--wp--preset--color--orange);
	--orange-700: var(--wp--preset--color--orange-700);
	--char: var(--wp--preset--color--char);
	--cream: var(--wp--preset--color--cream);
	--steel: var(--wp--preset--color--steel);
	--slate: var(--wp--preset--color--slate);
	--text: var(--wp--preset--color--text);
	--mono: var(--wp--preset--font-family--mono);
	--gutter: clamp(1rem, 5vw, 3rem);
	--radius: 14px;
	--grid-line: rgba(143, 160, 255, 0.07);
	--blueprint: linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px;
}
html { scroll-behavior: smooth; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; }
:where(main) > .wp-block-group.alignfull { margin-block: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 6rem; }

/* 2. Shared pieces ------------------------------------------------------- */
.ng-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
	letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--orange); margin: 0 0 1rem;
}
.ng-eyebrow--dark { color: var(--orange-700); }
.ng-tag {
	display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate);
	border: 1px solid currentColor; border-radius: 4px; padding: 0.15rem 0.45rem; line-height: 1.4;
}
.ng-tag--orange { color: var(--orange); }
.ng-led {
	width: 10px; height: 10px; border-radius: 50%; flex: none;
	background: #30A46C; box-shadow: 0 0 0 0 rgba(48, 164, 108, 0.6);
	animation: ng-pulse 2s infinite;
}
@keyframes ng-pulse {
	0% { box-shadow: 0 0 0 0 rgba(48, 164, 108, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(48, 164, 108, 0); }
	100% { box-shadow: 0 0 0 0 rgba(48, 164, 108, 0); }
}
.ng-accent { color: var(--orange); }

.ng-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
	padding: 0.95rem 1.45rem; border-radius: 8px; border: 2px solid transparent;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	min-height: 48px;
}
.ng-btn:hover { transform: translateY(-1px); }
.ng-btn--call { background: var(--orange); color: var(--char); }
.ng-btn--call:hover { background: #FF8642; color: var(--char); }
.ng-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.ng-btn--ghost:hover { border-color: #fff; color: #fff; }
.ng-btn--dark { background: var(--navy); color: #fff; }
.ng-btn--dark:hover { background: var(--ink); color: #fff; }

.ng-section { padding-block: var(--wp--preset--spacing--60); }
.ng-head { max-width: 46rem; margin: 0 auto var(--wp--preset--spacing--40); text-align: center; }
.ng-head--left { text-align: left; margin-inline: 0; }
.ng-h2 {
	font-size: var(--wp--preset--font-size--x-large); font-weight: 800;
	line-height: 1.06; letter-spacing: -0.025em; color: var(--navy); margin: 0 0 1rem;
	text-wrap: balance;
}
.ng-h2--light { color: #fff; }
.ng-head__lede { font-size: var(--wp--preset--font-size--medium); color: var(--slate); line-height: 1.55; margin: 0; text-wrap: pretty; }
.ng-more { text-align: center; margin-top: var(--wp--preset--spacing--40); font-weight: 700; }
.ng-more a { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.ng-more a:hover { color: var(--orange-700); }
.ng-hide-sm { display: inline; }

/* 3. Emergency bar and header -------------------------------------------- */
.ng-alert { background: var(--char); color: #F5E9E1; font-size: 0.9rem; }
.ng-alert__in {
	max-width: 78rem; margin: 0 auto; padding: 0.55rem var(--gutter);
	display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; text-align: center;
}
.ng-alert__tel { color: var(--orange); font-weight: 800; text-decoration: none; white-space: nowrap; }
.ng-alert__tel:hover { color: #FF8642; text-decoration: underline; }

.ng-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid rgba(29, 33, 82, 0.08);
	padding-block: 0.8rem; transition: box-shadow 0.2s ease;
}
body.is-scrolled .ng-header { box-shadow: 0 6px 24px rgba(14, 17, 48, 0.08); }
.admin-bar .ng-header { top: 32px; }
.ng-header__row { gap: 1rem; }
.ng-logo { display: block; line-height: 0; flex: none; }
.ng-logo img { width: clamp(170px, 22vw, 230px); height: auto; }
.ng-header .wp-block-navigation a { color: var(--navy); text-decoration: none; }
.ng-header .wp-block-navigation a:hover { color: var(--orange-700); }
.ng-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open a { color: #fff; font-size: 1.4rem; }
.ng-header__call { padding: 0.65rem 1.1rem; min-height: 44px; }
@media (max-width: 599px) {
	.ng-header__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ng-header__call { padding: 0.6rem; width: 44px; }
	.ng-hide-sm { display: none; }
	.admin-bar .ng-header { top: 0; }
}

/* 4. Hero ------------------------------------------------------------------ */
.ng-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(60rem 30rem at 85% 20%, rgba(243, 108, 33, 0.16), transparent 60%),
		radial-gradient(50rem 30rem at 0% 100%, rgba(63, 80, 200, 0.28), transparent 60%),
		var(--blueprint), var(--ink);
	padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7rem);
}
.ng-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.ng-hero__title {
	font-size: var(--wp--preset--font-size--display); font-weight: 900; line-height: 0.98;
	letter-spacing: -0.035em; color: #fff; margin: 0 0 1.25rem; text-wrap: balance;
}
.ng-hero__lede { font-size: var(--wp--preset--font-size--medium); color: var(--steel); line-height: 1.55; max-width: 36rem; margin: 0 0 2rem; }
.ng-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.ng-hero__facts {
	display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; padding: 0; margin: 2.25rem 0 0;
	font-size: 0.9rem; color: var(--steel);
}
.ng-hero__facts li { display: flex; align-items: center; gap: 0.5rem; }
.ng-hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); }
.ng-hero__facts strong { color: #fff; }

.ng-hero__visual { position: relative; }
.ng-hmi {
	border-radius: 18px; padding: 10px;
	background: linear-gradient(145deg, #2A2F6E, #12153A);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
	transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
	transition: transform 0.6s ease;
}
.ng-hero__visual:hover .ng-hmi { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.ng-hmi__svg { display: block; width: 100%; height: auto; }
.ng-hmi__h { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: #F2F3F5; letter-spacing: 0.06em; }
.ng-hmi__h--sm { font-size: 10.5px; }
.ng-hmi__h--dim { fill: #B9BCC1; }
.ng-hmi__tab { font-family: var(--mono); font-size: 9.5px; fill: #4A4E55; letter-spacing: 0.06em; }
.ng-hmi__tab--on { fill: #111; font-weight: 600; }
.ng-hmi__tag { font-family: var(--mono); font-size: 10px; font-weight: 500; fill: #2B2E33; letter-spacing: 0.04em; }
.ng-hmi__tag--sm { font-size: 9px; }
/* Fill valve SV-102: white and paused flow when closed. */
.ng-hmi.is-inlet-closed :is(.ng-hmi__sv2-body, .ng-hmi__sv2-coil) { fill: #ECEDEF; }
.ng-hmi.is-inlet-closed .ng-hmi__coil-s2 { fill: #4A4E55; }
.ng-hmi.is-inlet-closed .ng-hmi__inflow { animation-play-state: paused; opacity: 0.35; }
.ng-hmi.is-inlet-closed .ng-hmi__stream { opacity: 0; }
.ng-hmi__stream { transition: opacity 0.3s ease; }
.ng-hmi__isa { font-family: var(--mono); font-size: 8.5px; fill: #2B2E33; }
.ng-hmi__val { font-family: var(--mono); font-size: 13px; font-weight: 500; fill: #111; }
.ng-hmi__val--lg { font-size: 17px; }
.ng-hmi__unit { font-family: var(--mono); font-size: 9.5px; fill: #3B3F45; }
.ng-hmi__lbl { font-family: var(--mono); font-size: 9.5px; fill: #4A4E55; }
.ng-hmi__lbl--b { fill: #111; font-weight: 500; }
.ng-hmi__gauge-n { font-family: var(--mono); font-size: 7px; fill: #2B2E33; }
.ng-hmi__gauge-u { font-family: var(--mono); font-size: 6.5px; fill: #4A4E55; letter-spacing: 0.08em; }
.ng-hmi__coil-s { font-family: var(--mono); font-size: 9px; font-weight: 600; fill: #fff; }
.ng-hmi__motor-txt { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: #fff; }
.ng-hmi__run-txt { fill: #1F7A4D; font-weight: 500; }
/* States below are toggled by assets/js/site.js (one simulation loop).
 * Running/open = green fill; stopped/closed = light fill (ISA-101: color
 * only where it means something). Active level switch = amber. */
.ng-hmi__sw.is-on { fill: #F2C94C; stroke: #8A6A00; }
.ng-hmi.is-pump-off .ng-hmi__motor,
.ng-hmi.is-pump-off .ng-hmi__sv-body,
.ng-hmi.is-pump-off .ng-hmi__sv-coil { fill: #ECEDEF; }
.ng-hmi.is-pump-off :is(.ng-hmi__motor-txt, .ng-hmi__coil-s) { fill: #4A4E55; }
.ng-hmi.is-pump-off .ng-hmi__flow { animation-play-state: paused; opacity: 0.35; }
.ng-hmi__flow { stroke-dasharray: 6 10; animation: ng-flow 1.2s linear infinite; }
/* Inlet: the tank always fills, so this flow never stops (unlike the pump lines). */
.ng-hmi__inflow { stroke-dasharray: 5 6; animation: ng-flow 0.9s linear infinite; }
@keyframes ng-flow { to { stroke-dashoffset: -16; } }
.ng-hero__chip {
	position: absolute; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
	background: rgba(14, 17, 48, 0.85); border: 1px solid rgba(143, 160, 255, 0.3); color: #fff;
	padding: 0.45rem 0.7rem; border-radius: 8px;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	animation: ng-float 6s ease-in-out infinite;
}
.ng-hero__chip span { color: var(--orange); margin-right: 0.35rem; }
.ng-hero__chip--a { top: -14px; left: 8%; }
.ng-hero__chip--b { bottom: -16px; right: 6%; animation-delay: -3s; }
@keyframes ng-float { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
	.ng-hero__grid { grid-template-columns: 1fr; }
	.ng-hmi { transform: none; }
	.ng-hero__visual:hover .ng-hmi { transform: none; }
}
@media (max-width: 480px) {
	.ng-hero__actions .ng-btn { width: 100%; }
	.ng-hero__chip { font-size: 0.68rem; }
}

/* 5. Tag strip ------------------------------------------------------------- */
.ng-tags { background: var(--orange); color: var(--char); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.12); }
.ng-tags__track { display: flex; width: max-content; animation: ng-marquee 45s linear infinite; }
.ng-tags:hover .ng-tags__track { animation-play-state: paused; }
.ng-tags__list { display: flex; list-style: none; margin: 0; padding: 0.95rem 0; }
.ng-tags__list li {
	font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem;
	padding: 0 1.4rem; display: flex; align-items: center; gap: 1.4rem; white-space: nowrap;
}
.ng-tags__list li::after { content: ""; width: 8px; height: 8px; background: var(--char); transform: rotate(45deg); margin-left: 1.4rem; }
@keyframes ng-marquee { to { transform: translateX(-50%); } }

/* 6. Services bento -------------------------------------------------------- */
.ng-services { background: #fff; }
.ng-bento {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-flow: dense;
}
.ng-tile {
	position: relative; display: flex; flex-direction: column;
	background: #F7F7FB; border: 1px solid #E6E7F0; border-radius: var(--radius);
	padding: clamp(1.25rem, 2.2vw, 1.75rem);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ng-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(14, 17, 48, 0.35); border-color: #D3D6EA; }
.ng-tile h3 { font-size: 1.2rem; margin: 1.1rem 0 0.5rem; color: var(--navy); }
.ng-tile p { margin: 0; color: var(--slate); font-size: 0.98rem; line-height: 1.6; }
.ng-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ng-tile__icon { color: var(--orange-700); }
.ng-tile--wide { grid-column: span 2; }
.ng-tile--tall { grid-row: span 2; }
.ng-tile--dark, .ng-tile--navy { color: #fff; border-color: transparent; }
.ng-tile--dark { background: var(--blueprint), var(--ink); }
.ng-tile--navy { background: radial-gradient(30rem 16rem at 100% 0%, rgba(243, 108, 33, 0.25), transparent 60%), var(--navy); }
.ng-tile--dark h3, .ng-tile--navy h3 { color: #fff; font-size: 1.45rem; }
.ng-tile--dark p, .ng-tile--navy p { color: var(--steel); }
.ng-tile--dark .ng-tile__icon, .ng-tile--navy .ng-tile__icon { color: var(--orange); }
.ng-tile--dark .ng-tag, .ng-tile--navy .ng-tag { color: var(--steel); }
.ng-tile--orange { background: var(--orange); border-color: transparent; color: var(--char); }
.ng-tile--orange h3 { color: var(--char); font-size: 1.6rem; }
.ng-tile--orange p { color: #3B1A0C; }
.ng-tile--orange .ng-tile__icon, .ng-tile--orange .ng-tag { color: var(--char); }
.ng-ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.45rem; font-size: 0.92rem; font-weight: 600; }
.ng-ticks li { display: flex; gap: 0.6rem; align-items: baseline; }
.ng-ticks li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg) translateY(-1px); }
.ng-tile--orange .ng-ticks li::before { background: var(--char); }
.ng-tile--dark .ng-ticks, .ng-tile--navy .ng-ticks { color: #fff; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ng-tile--orange .ng-ticks { margin-top: auto; padding-top: 1.25rem; }
@media (max-width: 1024px) {
	.ng-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ng-tile--tall { grid-row: auto; }
	/* 2 columns: 5 single tiles + svc-08 as a single = even rows, no hole. */
	.ng-bento > .ng-tile--wide:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
	.ng-bento { grid-template-columns: 1fr; }
	.ng-tile--wide { grid-column: auto; }
	.ng-tile--dark .ng-ticks, .ng-tile--navy .ng-ticks { grid-template-columns: 1fr; }
}

/* 7. How a call works ------------------------------------------------------ */
.ng-process { background: var(--cream); }
.ng-steps {
	list-style: none; padding: 0; margin: 0; counter-reset: none;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; position: relative;
}
.ng-step {
	position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem;
	border: 1px solid #F0DCC8;
}
.ng-step__n {
	display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
	font-family: var(--mono); font-weight: 500; color: #fff; background: var(--navy);
	box-shadow: 0 0 0 6px var(--cream);
}
.ng-step:not(:last-child)::after {
	content: ""; position: absolute; top: 3.5rem; right: -1rem; width: 1rem; height: 2px; background: var(--orange);
}
.ng-step h3 { margin: 1.1rem 0 0.5rem; font-size: 1.2rem; }
.ng-step p { margin: 0; color: var(--slate); }
@media (max-width: 860px) {
	.ng-steps { grid-template-columns: 1fr; }
	.ng-step:not(:last-child)::after { top: auto; bottom: -1rem; right: auto; left: 3.25rem; width: 2px; height: 1rem; }
}

/* 8. Machine design ---------------------------------------------------------- */
.ng-machine {
	color: #fff;
	background: radial-gradient(50rem 26rem at 100% 100%, rgba(243, 108, 33, 0.14), transparent 60%), var(--blueprint), var(--navy);
}
/* Showcase: copy + brief on the left, the machine on a dark "studio" card
 * on the right, then a row of deliverables (cabinet, drawings, PLC). */
.ng-machine__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ng-machine__cta { margin-top: 1.75rem; }
/* Studio card: product-launch look. Dark spotlight, animated gradient rim,
 * light sweep, reflection on the floor, floating glass chips. All motion
 * stops under prefers-reduced-motion (section 14). */
@property --ng-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ng-studio {
	margin: 0; position: relative; isolation: isolate; border-radius: 22px; overflow: hidden;
	background:
		radial-gradient(55% 40% at 50% 92%, rgba(243, 108, 33, 0.35), transparent 70%),
		radial-gradient(70% 55% at 50% 35%, #5A62B8 0%, #2A2F6E 45%, #0E1130 100%);
	padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem;
	box-shadow: 0 50px 100px -35px rgba(0, 0, 0, 0.75), 0 0 80px -20px rgba(243, 108, 33, 0.35);
}
/* animated rim: a conic gradient masked to a 1.5px border */
.ng-studio::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
	background: conic-gradient(from var(--ng-angle), rgba(143, 160, 255, 0.15), #F36C21, rgba(255, 255, 255, 0.9), #8FA0FF, rgba(143, 160, 255, 0.15) 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: ng-rim 8s linear infinite;
}
/* floor line */
.ng-studio::after {
	content: ""; position: absolute; left: 12%; right: 12%; bottom: 3.6rem; height: 1px; z-index: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.ng-tilt {
	position: relative; z-index: 1; width: min(100%, 360px); aspect-ratio: 560 / 887; margin: 0 auto;
	filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55)) brightness(1.06) contrast(1.05);
	-webkit-box-reflect: below 2px linear-gradient(transparent 82%, rgba(255, 255, 255, 0.22));
	animation: ng-float 7s ease-in-out infinite;
}
.ng-tilt img { display: block; width: 100%; height: 100%; }
/* Sprite layer, shown only after site.js has loaded the sprite. */
.ng-tilt__seq { position: absolute; inset: 0; display: none; background-repeat: no-repeat; background-size: 600% 400%; }
.ng-tilt.is-ready img { visibility: hidden; }
.ng-tilt.is-ready .ng-tilt__seq { display: block; }
/* Gloss: a bright band that sweeps across the machine only (the layer is
 * masked with the same sprite frame, kept in step by site.js). */
.ng-tilt__gloss {
	position: absolute; inset: 0; display: none; pointer-events: none;
	-webkit-mask-image: var(--ng-sprite); mask-image: var(--ng-sprite);
	-webkit-mask-size: 600% 400%; mask-size: 600% 400%;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.5) 46%, rgba(190, 205, 255, 0.25) 50%, transparent 58%) 0 0 / 300% 100% no-repeat;
	mix-blend-mode: screen; animation: ng-gloss 5.5s ease-in-out infinite;
}
.ng-tilt.is-ready .ng-tilt__gloss { display: block; }
@keyframes ng-gloss { 0%, 45% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* Pointer spotlight + slight 3D lean toward the pointer (site.js sets the
 * custom properties; mouse/trackpad only). */
.ng-studio { --mx: 50%; --my: 38%; --rx: 0deg; --ry: 0deg; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.35s ease-out; }
.ng-studio__spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(26rem 20rem at var(--mx) var(--my), rgba(160, 175, 255, 0.32), transparent 62%); }
/* Pedestal: glowing turntable under the machine. */
.ng-studio__pedestal { position: absolute; left: 50%; bottom: 2.2rem; width: min(86%, 420px); height: auto; transform: translateX(-50%); z-index: 0; overflow: visible; pointer-events: none; }
.ng-ped__glow { fill: rgba(243, 108, 33, 0.28); filter: blur(14px); }
.ng-ped__ring { fill: rgba(14, 17, 48, 0.55); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.2; }
.ng-ped__orbit { fill: none; stroke: rgba(143, 160, 255, 0.7); stroke-width: 1.2; stroke-dasharray: 2 9; animation: ng-orbit 12s linear infinite; }
@keyframes ng-orbit { to { stroke-dashoffset: -220; } }
.ng-studio__shine {
	position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
	transform: translateX(-60%); animation: ng-shine 6.5s ease-in-out infinite;
}
.ng-studio__chip {
	position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
	padding: 0.45rem 0.75rem; border-radius: 999px;
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
	animation: ng-float 6s ease-in-out infinite;
}
.ng-studio__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.ng-studio__chip--a { top: 1.4rem; left: 1.4rem; }
.ng-studio__chip--b { top: 1.4rem; right: 1.4rem; animation-delay: -2s; }
.ng-studio__chip--c { bottom: 5.2rem; left: 1.4rem; animation-delay: -4s; }
.ng-studio figcaption {
	position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0.85rem 1.1rem;
	font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--steel); background: rgba(14, 17, 48, 0.75); border-top: 1px solid rgba(143, 160, 255, 0.18);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ng-studio figcaption span { color: var(--orange); margin-right: 0.6rem; }
@keyframes ng-rim { to { --ng-angle: 360deg; } }
@keyframes ng-shine { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.ng-deliver { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ng-deliver__item {
	position: relative; border-radius: 16px; overflow: hidden;
	background: linear-gradient(160deg, rgba(90, 98, 184, 0.28), rgba(14, 17, 48, 0.7) 55%);
	border: 1px solid rgba(143, 160, 255, 0.25);
	box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.8);
	transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.ng-deliver__item::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
	transform: translateX(-120%); transition: transform 0.9s ease;
}
.ng-deliver__item:hover { transform: translateY(-6px); border-color: rgba(243, 108, 33, 0.7); box-shadow: 0 40px 70px -30px rgba(243, 108, 33, 0.35); }
.ng-deliver__item:hover::after { transform: translateX(120%); }
.ng-deliver__img { display: block; box-sizing: border-box; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #FFFFFF, #E4E8F2); overflow: hidden; border-bottom: 1px solid rgba(143, 160, 255, 0.25); }
.ng-deliver__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.ng-deliver__item:hover .ng-deliver__img img:not(.ng-door) { transform: scale(1.03); }
/* Cabinet card: the closed-door render sits on top of the open render and
 * swings open on its left hinge, waits, then closes. Reduced motion: the
 * door stays hidden and the open back panel shows. */
.ng-deliver__img--door { position: relative; perspective: 1200px; }
.ng-door {
	position: absolute; inset: 0; transform-origin: 19% 50%; backface-visibility: hidden;
	animation: ng-door 9s ease-in-out infinite;
}
@keyframes ng-door {
	0%, 18% { transform: rotateY(0deg); opacity: 1; }
	38%, 80% { transform: rotateY(-105deg); opacity: 0; }
	100% { transform: rotateY(0deg); opacity: 1; }
}
/* PLC card: ladder screenshot shown as a lit screen. */
.ng-deliver__img--screen { background: radial-gradient(80% 80% at 50% 30%, #2D3270, #0E1130); padding: 0.7rem; }
/* The screenshot is cropped to 4:3 so it fills the screen frame. */
.ng-deliver__img--screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.ng-deliver__img--screen img { border-radius: 8px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: perspective(900px) rotateY(-6deg) rotateX(3deg); }
.ng-deliver__item:hover .ng-deliver__img--screen img { transform: perspective(900px) rotateY(0deg); }
.ng-deliver__item h3 { color: #fff; font-size: 1.05rem; margin: 1.1rem 1.2rem 0.35rem; }
.ng-deliver__item h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.55rem; border-radius: 2px; background: var(--orange); transform: rotate(45deg) translateY(-2px); }
.ng-deliver__item p { color: var(--steel); font-size: 0.9rem; line-height: 1.5; margin: 0 1.2rem 1.3rem; }
@media (max-width: 700px) { .ng-deliver { grid-template-columns: 1fr; } }
.ng-machine__lede { color: var(--steel); font-size: var(--wp--preset--font-size--medium); line-height: 1.55; margin: 0 0 2rem; }
.ng-brief {
	background: rgba(14, 17, 48, 0.55); border: 1px solid rgba(143, 160, 255, 0.22); border-radius: var(--radius);
	padding: 1.5rem;
}
.ng-brief h3 { color: #fff; margin: 0.85rem 0 1rem; font-size: 1.25rem; }
.ng-brief dl { margin: 0; display: grid; gap: 0.85rem; }
.ng-brief dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
.ng-brief dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); padding-top: 0.2rem; }
.ng-brief dd { margin: 0; color: var(--steel); }
@media (max-width: 900px) {
	.ng-machine__grid { grid-template-columns: 1fr; }
	.ng-tilt { width: min(100%, 300px); }
}
@media (max-width: 600px) {
	/* stack the top chips so they never overlap on phones */
	.ng-studio__chip--b { top: 4.4rem; right: auto; left: 1.4rem; }
	.ng-studio { padding-top: 7rem; }
}
@media (max-width: 420px) {
	.ng-brief dl > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* 9. Why NextGen ----------------------------------------------------------- */
.ng-why { background: #fff; }
.ng-why__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ng-why .ng-head { margin-bottom: 0; }
.ng-why .ng-head__lede { margin-bottom: 1.75rem; }
.ng-reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.ng-reasons li { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.ng-reasons .ng-tag { color: var(--orange-700); }
.ng-reasons h3 { margin: 0.9rem 0 0.4rem; font-size: 1.2rem; }
.ng-reasons p { margin: 0; color: var(--slate); }
@media (max-width: 900px) { .ng-why__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ng-reasons { grid-template-columns: 1fr; } }

/* 10. Service area --------------------------------------------------------- */
.ng-area { background: linear-gradient(180deg, #fff, var(--cream)); }
.ng-area__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ng-cities { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ng-cities li {
	font-weight: 700; font-size: 0.92rem; color: var(--navy); background: #fff;
	border: 1px solid #E7CDB4; border-radius: 999px; padding: 0.45rem 0.95rem;
}
.ng-cities li:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.ng-map svg { width: 100%; height: auto; max-height: 420px; display: block; margin-inline: auto; }
.ng-map__pts circle { fill: var(--navy); }
.ng-map__pts text, .ng-map__hq { font-family: var(--mono); font-size: 11px; fill: var(--slate); letter-spacing: 0.04em; }
.ng-map__hq { fill: var(--navy); font-weight: 500; font-size: 12.5px; }
.ng-map__state { font-family: var(--mono); font-size: 13px; letter-spacing: 0.4em; fill: #D9B597; }
.ng-map__pulse { fill: var(--orange); opacity: 0.35; transform-origin: 348px 206px; animation: ng-ring 2.4s ease-out infinite; }
@keyframes ng-ring { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(2.6); opacity: 0; } }
@media (max-width: 900px) { .ng-area__grid { grid-template-columns: 1fr; } .ng-map svg { max-height: 360px; } }

/* 11. Closing call to action ----------------------------------------------- */
.ng-cta {
	background: var(--orange); color: var(--char);
	background-image: repeating-linear-gradient(135deg, rgba(28, 13, 10, 0.07) 0 14px, transparent 14px 28px);
	padding-block: clamp(3rem, 7vw, 5rem);
}
.ng-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ng-cta__kicker { font-weight: 700; margin: 0 0 0.25rem; font-size: var(--wp--preset--font-size--medium); }
.ng-cta__title { font-size: var(--wp--preset--font-size--x-large); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 0; color: var(--char); }
.ng-cta__tel {
	display: inline-block; font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.02em;
	color: #fff; background: var(--char); text-decoration: none; border-radius: 12px; padding: 0.6rem 1.25rem;
	transition: transform 0.15s ease;
}
.ng-cta__tel:hover { transform: translateY(-2px); color: var(--orange); }
.ng-cta__actions p { margin: 0.75rem 0 0; font-weight: 600; }
.ng-cta__actions a:not(.ng-cta__tel) { color: var(--char); }

/* 12. Footer and mobile call bar ------------------------------------------ */
.ng-footer { background: var(--ink); color: var(--steel); padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 1.5rem; font-size: 0.95rem; }
.ng-footer__in { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 0.7fr; gap: 2rem; }
.ng-footer a { color: #fff; text-decoration: none; }
.ng-footer a:hover { color: var(--orange); text-decoration: underline; }
.ng-footer p { margin: 0 0 1rem; }
.ng-footer .ng-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem; }
.ng-logo--rev img { width: 230px; }
.ng-footer__tag { margin-top: 1rem; }
.ng-footer__tel { font-size: 1.35rem; font-weight: 800; }
.ng-footer .ng-footer__legal { max-width: 78rem; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(185, 192, 224, 0.15); font-size: 0.8rem; }
.ng-footer__col a[href^="mailto"] { overflow-wrap: anywhere; }
/* Site credit (Jorge, 2026-12-03): links to his software company, Red Soil Stack. */
.ng-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.ng-credit { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.ng-credit:hover, .ng-credit:focus-visible { opacity: 1; text-decoration: underline; }
.ng-credit__mark { flex: none; }
@media (max-width: 960px) { .ng-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ng-footer__in { grid-template-columns: 1fr; } }

.ng-callbar { display: none; }
@media (max-width: 782px) {
	.ng-callbar {
		position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 60;
		display: flex; align-items: center; justify-content: center; gap: 0.6rem;
		background: var(--orange); color: var(--char); font-weight: 800; text-decoration: none;
		padding: 0.95rem 1rem; border-radius: 12px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.45);
	}
	.ng-footer { padding-bottom: 6rem; }
	/* Hidden while the page's own Call button is on screen (site.js part 6). */
	.ng-callbar { transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s; }
	.ng-callbar-wait .ng-callbar { transform: translateY(calc(100% + 1.5rem)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s; }
	/* The tawk.to bubble is lifted above this bar in inc/live-chat.php
	 * (Tawk_API.customStyle); CSS can't move it reliably. */
}

/* 13. Reveal on scroll ---------------------------------------------------
 * CSS scroll-driven animations: content is fully visible by default; browsers
 * that support animation-timeline fade cards up as they enter the screen.
 * No JavaScript, nothing hidden for crawlers or old browsers. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		:is(.ng-head, .ng-tile, .ng-step, .ng-reasons li, .ng-brief, .ng-map, .ng-deliver__item, .ng-svc__items li) {
			animation: ng-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
	}
}
@keyframes ng-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 14. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ng-tags__track { flex-wrap: wrap; width: auto; }
	.ng-tags__list[aria-hidden="true"] { display: none; }
	.ng-tags__list { flex-wrap: wrap; justify-content: center; }
	.ng-hmi { transform: none; }
	.ng-door { display: none; }
	.ng-tilt__seq, .ng-tilt__gloss { display: none !important; }
	.ng-studio { transform: none; }
	.ng-tilt.is-ready img { visibility: visible; }
}

/* 15. Inner pages (Services, About, Contact, Privacy) ----------------------- */
/* Page head: a shorter version of the hero band. */
.ng-pagehead {
	color: #fff;
	background: radial-gradient(50rem 24rem at 90% 0%, rgba(243, 108, 33, 0.16), transparent 60%), var(--blueprint), var(--ink);
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.ng-pagehead--short { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.ng-pagehead__in > * { max-width: 50rem; }
.ng-pagehead__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.2rem, 5vw, 3.6rem)); font-weight: 900; line-height: 1.02;
	letter-spacing: -0.03em; color: #fff; margin: 0 0 1rem; text-wrap: balance;
}
.ng-pagehead__lede { font-size: var(--wp--preset--font-size--medium); color: var(--steel); line-height: 1.55; margin: 0; max-width: 40rem; }
.ng-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.ng-jump a {
	color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.45rem 0.9rem;
}
.ng-jump a:hover { border-color: var(--orange); color: var(--orange); }
.ng-link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }
.ng-link:hover { color: var(--orange-700); }
.ng-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 0.35rem; }

/* Services: one row per group, intro left, items right. */
.ng-svcs { background: #fff; }
.ng-svc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--navy); }
.ng-svc:first-child { border-top: 0; padding-top: 0; }
.ng-svc__title { font-size: var(--wp--preset--font-size--large, 1.75rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 0.9rem 0 0.75rem; line-height: 1.1; }
.ng-svc__head p { color: var(--slate); margin: 0 0 1rem; }
.ng-svc__items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ng-svc__items li { background: #F7F7FB; border: 1px solid #E6E7F0; border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.ng-svc__items li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ng-svc__items h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--navy); }
.ng-svc__items p { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 900px) { .ng-svc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ng-svc__items { grid-template-columns: 1fr; } }

/* About. */
.ng-about { background: #fff; }
.ng-about__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.ng-about .ng-head { margin-bottom: 0; }
.ng-prose { font-size: 1.08rem; line-height: 1.7; color: var(--text); }
.ng-prose p { margin: 0 0 1.1rem; }
.ng-why .ng-reasons--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ng-facts { color: #fff; background: var(--blueprint), var(--navy); }
.ng-facts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ng-facts .ng-head { margin-bottom: 0; }
.ng-head__lede--light { color: var(--steel); margin-bottom: 1.75rem; }
.ng-dl { margin: 0; display: grid; gap: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(185, 192, 224, 0.2); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.ng-dl > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(185, 192, 224, 0.15); }
.ng-dl > div:last-child { border-bottom: 0; }
.ng-dl dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); padding-top: 0.2rem; }
.ng-dl dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.ng-dl a { color: #fff; }
@media (max-width: 1024px) { .ng-why .ng-reasons--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ng-about__grid, .ng-facts__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ng-why .ng-reasons--4 { grid-template-columns: 1fr; } .ng-dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Contact. */
.ng-contact { background: var(--cream); }
.ng-contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ng-reach { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.ng-reach__opt { background: #fff; border: 1px solid #F0DCC8; border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--text); }
.ng-reach__opt a { color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.ng-reach__opt--call { background: var(--navy); border-color: var(--navy); color: var(--steel); }
.ng-reach__opt--call .ng-label { color: var(--orange); }
.ng-reach__big { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; text-decoration: none; margin-bottom: 0.2rem; }
.ng-reach__opt--call .ng-reach__big { color: #fff; }
.ng-reach__opt--call .ng-reach__big:hover { color: var(--orange); }
.ng-formcard { background: #fff; border-radius: 18px; padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: 0 24px 60px -32px rgba(14, 17, 48, 0.35); border: 1px solid #F0DCC8; }
.ng-formcard__title { font-size: 1.5rem; margin: 0 0 1.25rem; color: var(--navy); }

/* Form. */
.ng-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; align-items: end; }
.ng-field { margin: 0 0 1rem; display: flex; flex-direction: column; }
.ng-field--wide { grid-column: 1 / -1; }
.ng-field label { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.35rem; }
.ng-field label span { color: var(--orange-700); }
.ng-field :is(input, select, textarea) {
	font: inherit; font-size: 1rem; color: var(--text); width: 100%; box-sizing: border-box;
	background: #F7F7FB; border: 1px solid #CDD0DE; border-radius: 8px; padding: 0.75rem 0.85rem; min-height: 48px;
}
.ng-field textarea { resize: vertical; min-height: 9rem; }
.ng-field :is(input, select, textarea):focus { outline: 3px solid var(--orange); outline-offset: 1px; background: #fff; }
.ng-check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; color: var(--slate); margin: 0.25rem 0 1rem; }
.ng-check input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--orange-700); }
.ng-check a, .ng-form__note a { color: var(--navy); }
.ng-form__note { font-size: 0.85rem; color: var(--slate); margin: 0 0 1.25rem; }
.ng-form .ng-btn { cursor: pointer; }
.ng-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ng-notice { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; }
.ng-notice p { margin: 0; }
.ng-notice--ok { background: #E6F4EC; border: 1px solid #9CD1B3; color: #14432B; }
.ng-notice--error { background: #FDECEA; border: 1px solid #F1A9A0; color: #6B1A10; }
.ng-notice a { color: inherit; font-weight: 700; }
@media (max-width: 900px) { .ng-contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ng-form-grid { grid-template-columns: 1fr; } }

/* Privacy policy. */
.ng-legal { background: #fff; }
.ng-prose--legal { font-size: 1rem; }
.ng-prose--legal > * { max-width: 46rem; }
.ng-prose--legal h2 { font-size: 1.35rem; color: var(--navy); margin: 2.25rem 0 0.75rem; }
.ng-prose--legal ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.ng-prose--legal li { margin-bottom: 0.5rem; }
.ng-prose--legal a { color: var(--navy); }

/* 16. Service pages and the machine design page (0.3.0) -------------------- */
.ng-crumbs { font-size: 0.85rem; color: var(--steel); margin: 0 0 1rem; }
.ng-crumbs a { color: var(--steel); text-decoration: none; }
.ng-crumbs a:hover { color: var(--orange); }
.ng-pagehead__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
/* Images on a white section: plain framed cards, 1 or 2 per row. */
.ng-detail .ng-deliver { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.ng-detail .ng-deliver--1 { grid-template-columns: minmax(0, 36rem); }
.ng-detail .ng-deliver--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ng-detail .ng-deliver__item { background: #F7F7FB; border-color: #E6E7F0; box-shadow: none; }
.ng-detail__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; border-top: 2px solid var(--navy); padding-top: clamp(2rem, 4vw, 3rem); }
.ng-detail__box { background: var(--cream); border: 1px solid #F0DCC8; border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.ng-h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0 0 1rem; letter-spacing: -0.01em; }
.ng-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ng-checklist li { position: relative; padding-left: 1.6rem; color: var(--text); line-height: 1.5; }
.ng-checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45rem; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.ng-faq { margin-top: clamp(2rem, 4vw, 3rem); }
.ng-faq > * { max-width: 50rem; }
.ng-faq details { border-bottom: 1px solid #E6E7F0; padding: 0.9rem 0; }
.ng-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.ng-faq details p { margin: 0.6rem 0 0; color: var(--slate); }
.ng-related { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.ng-related .ng-eyebrow { width: 100%; margin: 0; }
.ng-related a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }
.ng-related a:hover { color: var(--orange-700); }
.ng-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ng-steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ng-steps--5 .ng-step::after { display: none; } }
@media (max-width: 860px) { .ng-steps--5 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ng-detail__cols, .ng-detail .ng-deliver--2 { grid-template-columns: 1fr; } }
