/* =============================================================================
   G-MAG ENERGY - styles.css
   Light-futurist liquid-glass design system.

   Palette: ice-white base, white glass surfaces, deep harbor-navy ink,
   brand green #36B02D (from the logo) paired with a cool aqua #00A9C2.
   Type:    Clash Display (display), Satoshi (body), JetBrains Mono (data).
   Motion:  transform/opacity only, so every device composites at 60fps.
            Idle loops live on elements (never on the page background) and
            are paused per-section when scrolled out of view.
   ============================================================================= */

/* ---------------------------------------------------------------- tokens --- */
:root {
  /* color */
  --bg: #F5F8FB;
  --bg-2: #EDF3F8;
  --ink: #0B1B2B;
  --ink-2: #33475C;
  --muted: #5A6E82;
  --line: rgba(11, 27, 43, 0.08);
  --line-strong: rgba(11, 27, 43, 0.14);

  --green: #36B02D;          /* brand, decorative use */
  --green-deep: #1B7E14;     /* AA text/buttons */
  --aqua: #00A9C2;           /* decorative */
  --aqua-deep: #007A94;      /* AA text */
  --teal-deep: #067D74;

  --grad-brand: linear-gradient(115deg, #279D1E, #0090AC);
  --grad-cta: linear-gradient(135deg, #1B7E14, #067D74);

  /* glass */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.75);
  --card: rgba(255, 255, 255, 0.72);

  /* elevation (navy-tinted, soft) */
  --shadow-s: 0 2px 10px rgba(11, 27, 43, 0.05), 0 10px 28px rgba(11, 27, 43, 0.06);
  --shadow-m: 0 4px 16px rgba(11, 27, 43, 0.06), 0 22px 52px rgba(11, 27, 43, 0.09);
  --shadow-l: 0 8px 26px rgba(11, 27, 43, 0.08), 0 34px 80px rgba(11, 27, 43, 0.12);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* type */
  --display: "Clash Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Satoshi", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  /* layout */
  --maxw: 1320px;
  --r-s: 14px;
  --r-m: 20px;
  --r-l: 28px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.68, 0.28, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}

/* ----------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* NOTE: no scroll-behavior: smooth here; Chromium can silently drop fragment
   navigation with it enabled, so main.js drives smooth anchor scrolling instead */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* static ambient wash: soft green/aqua tints on ice white; deliberately NOT
   animated - the life of the page comes from its elements, not its backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52rem 34rem at 12% -6%, rgba(54, 176, 45, 0.07), transparent 60%),
    radial-gradient(60rem 40rem at 96% 12%, rgba(0, 169, 194, 0.08), transparent 62%),
    radial-gradient(50rem 36rem at 50% 115%, rgba(0, 169, 194, 0.06), transparent 58%),
    linear-gradient(180deg, #F7FAFC, #F2F6FA);
}

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--aqua-deep); text-decoration: none; }
ul, ol { padding: 0; }
::selection { background: rgba(0, 169, 194, 0.22); }

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10001;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 14px; }

/* ------------------------------------------------------------- utilities --- */
.container {
  width: min(var(--maxw), 100% - 48px);
  margin-inline: auto;
}

.section { padding: clamp(84px, 10vw, 140px) 0; }

/* keep anchor-jump targets clear of the floating nav */
[id] { scroll-margin-top: 110px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.section-head--split .section-lead { max-width: 38ch; }
.section-lead-col { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* glass chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* the idle status dot inside a chip: same breathing halo as .live-dot */
.chip__dot {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.chip__dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(54, 176, 45, 0.35);
  animation: livePulse 2.4s var(--ease-out) infinite;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out), filter 0.3s var(--ease-out);
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(17, 106, 63, 0.28), var(--inset-hi);
}
/* travelling sheen: sweeps across on its own every few seconds */
/* (previous hover-triggered version snapshotted in _revert/2026-07-07-cta-sheen-on-hover) */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.34) 50%, transparent 68%);
  transform: translateX(-110%);
  animation: ctaSheen 4.5s ease-in-out infinite;
}
/* one ~0.8s sweep, then ~3.7s of rest before the next pass */
@keyframes ctaSheen {
  0%, 8% { transform: translateX(-110%); }
  26%, 100% { transform: translateX(110%); }
}
/* hover: the button brightens and glows instead of replaying the sheen */
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.14) saturate(1.06);
  box-shadow:
    0 16px 34px rgba(17, 106, 63, 0.36),
    0 0 20px rgba(54, 176, 45, 0.5),
    0 0 44px rgba(0, 169, 194, 0.32),
    var(--inset-hi);
}
.btn--primary:active { transform: translateY(0); }

.btn--glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: var(--shadow-s), var(--inset-hi);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
.btn--glass:hover, .btn--glass:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m), var(--inset-hi);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--quiet:hover, .btn--quiet:focus-visible {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
  transform: translateY(-2px);
}

/* checkmark tick */
.tick {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(54, 176, 45, 0.14);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: rotate(42deg);
}

/* live status dot: breathing halo loop */
.live-dot {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.live-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(54, 176, 45, 0.35);
  animation: livePulse 2.4s var(--ease-out) infinite;
}
@keyframes livePulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* gentle idle float, used on decorative cards and the flagship render */
.float-bob { animation: floatBob 5s ease-in-out infinite alternate; }
@keyframes floatBob {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

/* scroll reveal: hidden only when JS is present, so no-JS still reads fine */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* site-wide scroll-drifting halo */
/* The rotating ring that used to sit behind the flagship render, enlarged,
   blurred, and made translucent as a whole-site background ornament. Created
   by main.js, which drives its horizontal glide from scroll progress: hidden
   over the hero, entering from the left just past it, reaching the right by
   the bottom of the page. (Snapshot: _revert/2026-07-07-global-halo-background) */
.bg-halo {
  --halo-size: clamp(680px, 92vw, 1440px);
  position: fixed;
  top: 50%;
  left: 0;
  z-index: -1;
  width: var(--halo-size);
  height: var(--halo-size);
  margin-top: calc(var(--halo-size) / -2);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
/* an elongated ELLIPSE, not a circle: rotating it swings the whole shape
   around like an orbiting swoosh, instead of colors sliding along a static
   ring. Blur and rotation time are the client-confirmed final values
   (chosen 2026-07-08 via the temporary tuning panel, since removed). */
.bg-halo__ring {
  position: absolute;
  inset: 0 18%; /* 64% wide x 100% tall: elongated enough that the rotation stays visible */
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(126, 214, 104, 0.95),
    rgba(96, 208, 228, 0.95),
    rgba(126, 214, 104, 0.18),
    rgba(126, 214, 104, 0.95));
  -webkit-mask: radial-gradient(closest-side, transparent 60%, #000 65%, #000 100%);
  mask: radial-gradient(closest-side, transparent 60%, #000 65%, #000 100%);
  filter: blur(40px);
  animation: bgHaloSpin 38s linear infinite;
}
@keyframes bgHaloSpin { to { transform: rotate(360deg); } }
/* fully faded out: stop painting and spinning */
.bg-halo.is-idle { visibility: hidden; }
.bg-halo.is-idle .bg-halo__ring { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .bg-halo { display: none; } }

/* ------------------------------------------------------- scroll progress --- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9000;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* -------------------------------------------------------------------- nav --- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

/* pill spans the same width as .container, and stays clearly see-through:
   low white fill + strong blur/saturation so the glass reads as real glass */
.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(var(--maxw), 100%);
  padding: 10px 12px 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.nav.is-scrolled .nav__pill {
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-m), var(--inset-hi);
}

.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 30px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { flex: 0 0 auto; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: var(--r-l);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-l), var(--inset-hi);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 12px 16px;
  border-radius: var(--r-s);
  font-weight: 500;
  color: var(--ink);
}
.nav__mobile a:not(.btn):hover { background: rgba(11, 27, 43, 0.05); }
.nav__mobile .btn { margin-top: 10px; }

/* ------------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
/* host for the liquid-water WebGL reveal (liquid-reveal.js fills it with its
   canvas); sits over the static photo, under the readability veil */
.hero__bleed { position: absolute; inset: 0; }

/* deliberately light, like the original hero: the photo (and the water effect
   on it) stays visible behind the copy; only a soft wash keeps text readable
   and the bottom edge blends into the page */
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 248, 251, 0.42) 0%, rgba(245, 248, 251, 0.22) 40%, rgba(245, 248, 251, 0.05) 66%, rgba(245, 248, 251, 0) 100%),
    linear-gradient(180deg, rgba(245, 248, 251, 0.22) 0%, rgba(245, 248, 251, 0) 20%, rgba(245, 248, 251, 0) 74%, var(--bg) 100%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrows {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.9rem, 6.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 47ch;
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1.5px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--aqua-deep));
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}
.hero__scroll-text {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- marquee --- */
.marquee {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  /* soft fade at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeMove 36s linear infinite;
}
/* pausable by mouse hover and by keyboard focus (WCAG 2.2.2) */
.marquee:hover .marquee__track,
.marquee:focus-visible .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marqueeMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.marquee__group {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 56px;
  padding-right: 56px;
}
.marquee__group li {
  position: relative;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__group li::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--grad-brand);
  opacity: 0.55;
}

/* ------------------------------------------------------------------ stats --- */
.glance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.stat {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-m), var(--inset-hi); }
.stat__num {
  display: flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__unit { color: var(--aqua-deep); margin-left: 2px; }
.stat__pulse {
  display: block;
  width: 44px;
  height: 3px;
  margin: 16px 0 14px;
  border-radius: 3px;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  animation: statBreathe 3.6s ease-in-out infinite alternate;
}
@keyframes statBreathe {
  from { transform: scaleX(0.45); opacity: 0.6; }
  to { transform: scaleX(1); opacity: 1; }
}
.stat__label { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------ bento cards --- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "design design mfg install"
    "design design ai ai"
    "control maint spares lifecycle";
  gap: 18px;
}
.bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.bento__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m), var(--inset-hi); }
.bento__card:nth-child(1) { grid-area: design; }
.bento__card:nth-child(2) { grid-area: mfg; }
.bento__card:nth-child(3) { grid-area: install; }
.bento__card:nth-child(4) { grid-area: control; }
.bento__card:nth-child(5) { grid-area: ai; }
.bento__card:nth-child(6) { grid-area: maint; }
.bento__card:nth-child(7) { grid-area: spares; }
.bento__card:nth-child(8) { grid-area: lifecycle; }

.bento__card h3 {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento__card p { font-size: 0.93rem; color: var(--muted); line-height: 1.55; }

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border-radius: 14px;
  color: var(--aqua-deep);
  background: linear-gradient(145deg, rgba(54, 176, 45, 0.10), rgba(0, 169, 194, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--inset-hi);
  transition: transform 0.35s var(--ease-spring);
}
.bento__icon svg { width: 22px; height: 22px; }
.bento__card:hover .bento__icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

.bento__chips { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.bento__chips span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--green-deep);
  background: rgba(54, 176, 45, 0.10);
}

/* featured design card: real photo */
/* The photo fills the card's top two-thirds and its lower edge dissolves
   into the glass via a mask (theme-proof: the card simply shows through).
   A very slow scale drift keeps the card alive at near-zero cost. */
.bento__card--design { min-height: 340px; justify-content: flex-end; }
.bento__photo {
  position: absolute;
  inset: 0 0 34%;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
.bento__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  animation: photoDrift 22s ease-in-out infinite alternate;
}
@keyframes photoDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateX(-1.5%); }
}
[data-theme="dark"] .bento__photo img { filter: brightness(0.82) saturate(0.95); }

/* featured AI card */
.bento__card--ai {
  background: linear-gradient(135deg, rgba(54, 176, 45, 0.10), rgba(0, 169, 194, 0.14)), var(--card);
}
.bento__wave {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 42%;
  opacity: 0.75;
  pointer-events: none;
}
.bento__wave svg { width: 100%; height: 44px; }
.bento__wave-line {
  stroke: var(--aqua-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 46 434;
  animation: waveRun 3.2s linear infinite;
}
@keyframes waveRun {
  from { stroke-dashoffset: 480; }
  to { stroke-dashoffset: 0; }
}
.bento__link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--aqua-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento__link::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>') center / contain no-repeat;
  transition: transform 0.3s var(--ease-spring);
}
.bento__card--ai:hover .bento__link::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- process --- */
.process__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  list-style: none;
}
/* connecting rail behind the steps */
.process__list::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 3%;
  right: 3%;
  height: 2px;
  background: linear-gradient(90deg, rgba(54, 176, 45, 0.3), rgba(0, 169, 194, 0.3));
  border-radius: 2px;
}
.process__step {
  position: relative;
  padding: 82px 18px 22px;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.process__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-m), var(--inset-hi); }
.process__num {
  position: absolute;
  top: 26px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--aqua-deep);
  background: #fff;
  border: 1.5px solid rgba(0, 169, 194, 0.35);
  transition: color 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}
/* the live step: cycled by main.js while the section is in view */
.process__step.is-live .process__num {
  color: #fff;
  background: var(--grad-cta);
  border-color: transparent;
  transform: scale(1.12);
}
.process__step.is-live::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(54, 176, 45, 0.3);
  animation: livePulse 1.8s var(--ease-out) infinite;
  pointer-events: none;
}
.process__step h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.process__step p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------- monitoring --- */
.monitor__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.monitor__benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 34px;
}
.monitor__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}
.monitor__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the glass dashboard */
.dash {
  position: relative;
  padding: 26px;
  border-radius: var(--r-l);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-l), var(--inset-hi);
}
.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash__id { display: flex; align-items: center; gap: 12px; }
.dash__id strong { font-family: var(--display); font-weight: 600; font-size: 1.05rem; display: block; }
.dash__sub { font-size: 0.78rem; color: var(--muted); }
.dash__badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--green-deep);
  background: rgba(54, 176, 45, 0.12);
  border: 1px solid rgba(54, 176, 45, 0.25);
}

.dash__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dash__metric {
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}
.dash__k {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash__v { font-family: var(--mono); font-size: 0.98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash__v b { font-weight: 600; }
.dash__v i { font-style: normal; font-size: 0.7rem; color: var(--muted); }

.dash__main {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.dash__gauge { position: relative; width: 132px; height: 132px; }
.gauge { transform: rotate(-90deg); }
.gauge__bg, .gauge__fg { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge__bg { stroke: rgba(11, 27, 43, 0.07); }
.gauge__fg {
  stroke: url(#gaugeGrad);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.dash__gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash__gauge-label strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash__pct { font-size: 1rem; color: var(--aqua-deep); }
.dash__gauge-label > span { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }

.dash__chart { min-width: 0; }
.spark { width: 100%; height: 90px; margin-top: 6px; }
.spark__line { stroke: var(--aqua-deep); stroke-width: 2; stroke-linecap: round; }

.dash__alerts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dash__alerts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.dash__alerts li.is-new { animation: alertIn 0.5s var(--ease-out); }
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.dash__al { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dash__al--ok { background: var(--green); }
.dash__al--info { background: var(--aqua); }
.dash__time { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* ---------------------------------------------------------- product range --- */
.range__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-m), var(--inset-hi); }
.prod__media {
  position: relative;
  aspect-ratio: 1 / 0.82;
  background: radial-gradient(120% 90% at 50% 88%, rgba(0, 169, 194, 0.10), transparent 60%), linear-gradient(180deg, #FDFEFF, #EFF5F9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod__img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(11, 27, 43, 0.16));
  transition: transform 0.5s var(--ease-spring);
}
.prod:hover .prod__img { transform: translateY(-6px) scale(1.04); }
.prod__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.prod__body h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.prod__body p { font-size: 0.87rem; color: var(--muted); line-height: 1.5; }
.prod__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.prod__specs span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--aqua-deep);
  background: rgba(0, 169, 194, 0.08);
}

/* --------------------------------------------------------------- flagship --- */
.flagship__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-l);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-l), var(--inset-hi);
  overflow: hidden;
}
.flagship__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.flagship__img {
  position: relative;
  width: min(380px, 88%);
  height: auto; /* the width/height attributes would otherwise stretch it */
  border-radius: var(--r-l);
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-m), var(--inset-hi);
}
.flagship__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  color: var(--aqua-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s);
}
.flagship__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.flagship__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 28px 0 30px;
}
.spec strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.spec span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* ----------------------------------------------------------- global reach --- */
.reach__map {
  padding: clamp(18px, 2.6vw, 34px);
  border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(230, 242, 248, 0.9), rgba(214, 233, 242, 0.85));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-m), var(--inset-hi);
  margin-bottom: 34px;
}
.reach__globe { position: relative; }
.reach__world { width: 100%; height: auto; }
.reach__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }

/* route spotlight (final, client-confirmed 2026-07-08 at speed x1.2) */
/* The web of routes stays faint; one route lights up at a time while a
   caption pill pops in at its destination. Line and pill share the same
   10s clock and 1.25s-per-route delays (12s and 1.5s at x1.2), so they can
   never drift apart. Pill positions are chosen so no pill overlaps its own
   route (verified point-by-point against the path geometry).
   The other six styles trialled via the temporary panel are archived in
   _revert/2026-07-08-reach-fx-styles/all-seven-styles.css. */
.arc {
  stroke: var(--aqua-deep);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.1;
  animation: spotGlow 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.25s);
}
.arc:nth-child(1) { --i: 0; }
.arc:nth-child(2) { --i: 1; }
.arc:nth-child(3) { --i: 2; }
.arc:nth-child(4) { --i: 3; }
.arc:nth-child(5) { --i: 4; }
.arc:nth-child(6) { --i: 5; }
.arc:nth-child(7) { --i: 6; }
.arc:nth-child(8) { --i: 7; }
@keyframes spotGlow {
  0% { opacity: 0.1; }
  3% { opacity: 0.8; }
  10% { opacity: 0.8; }
  15%, 100% { opacity: 0.1; }
}

/* caption pills: pop in (small rise with a soft overshoot, then settle) and
   pop away before the next route lights */
.spot-label {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: spotPop 10s ease infinite;
  animation-delay: calc(var(--i) * 1.25s);
}
.spot-label:nth-child(1) { --i: 0; }
.spot-label:nth-child(2) { --i: 1; }
.spot-label:nth-child(3) { --i: 2; }
.spot-label:nth-child(4) { --i: 3; }
.spot-label:nth-child(5) { --i: 4; }
.spot-label:nth-child(6) { --i: 5; }
.spot-label:nth-child(7) { --i: 6; }
.spot-label:nth-child(8) { --i: 7; }
@keyframes spotPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.86); }
  3% { opacity: 1; transform: translateY(-2px) scale(1.03); }
  4.5% { transform: translateY(0) scale(1); }
  10% { opacity: 1; transform: translateY(0) scale(1); }
  13%, 100% { opacity: 0; transform: translateY(6px) scale(0.92); }
}
.spot-label__box {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(11, 27, 43, 0.1);
}
.spot-label__name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  fill: var(--ink);
  text-anchor: middle;
}
.spot-label__meta {
  font-size: 11.5px;
  fill: var(--muted);
  text-anchor: middle;
}

.mk { cursor: pointer; outline-offset: 4px; }
.mk__hit { fill: transparent; }
.mk__dot {
  fill: var(--c, var(--aqua-deep));
  stroke: #fff;
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.25s var(--ease-spring);
}
.mk__halo {
  fill: var(--c, var(--aqua-deep));
  opacity: 0.25;
  transform-origin: center;
  transform-box: fill-box;
  animation: mkPulse 2.8s ease-out infinite;
}
.mk:nth-child(odd) .mk__halo { animation-delay: 1.2s; }
.mk:hover .mk__dot, .mk:focus-visible .mk__dot { transform: scale(1.25); }
@keyframes mkPulse {
  0% { transform: scale(0.5); opacity: 0.45; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}
.mk--hub .mk__dot { stroke-width: 2.5; }

.reach__tooltip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  padding: 14px 16px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-m);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  font-size: 0.82rem;
  line-height: 1.45;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}
.reach__tooltip strong { font-family: var(--display); font-size: 0.95rem; display: block; }
.reach__tooltip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aqua-deep);
  display: block;
  margin: 2px 0 6px;
}
.reach__tooltip span { color: var(--muted); display: block; }

.reach__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 16px;
}
.reach__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.reach__legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c, var(--aqua-deep));
}

.reach__table {
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  overflow: hidden;
}
.reach__row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1.4fr;
  gap: 20px;
  padding: 15px 24px;
  font-size: 0.9rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  transition: background-color 0.25s var(--ease-out);
}
.reach__row:not(.reach__row--head):hover { background: rgba(0, 169, 194, 0.05); }
.reach__row--head {
  border-top: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(11, 27, 43, 0.025);
}
.reach__market { font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- quality --- */
.quality__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.qcard {
  padding: 28px;
  border-radius: var(--r-m);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.qcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-m), var(--inset-hi); }
.qcard h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.qcard p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.qcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qcard__chips span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--green-deep);
  background: rgba(54, 176, 45, 0.10);
}

/* ---------------------------------------------------------------- contact --- */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
  margin-top: 34px;
}
.contact__k {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 8px;
}
.contact__block p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.6; }
.contact__block a { font-weight: 600; }
.contact__reply {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-l);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-l), var(--inset-hi);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #5F7386; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--aqua-deep);
  box-shadow: 0 0 0 3px rgba(0, 169, 194, 0.15);
}
.field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235A6E82" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* honeypot: visually gone, still present in the POST for bots to fill */
.form__honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__submit { position: relative; }
.form__submit.is-loading { pointer-events: none; opacity: 0.85; }
.form__submit.is-loading > span { visibility: hidden; }
.form__submit.is-loading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.75s var(--ease-out);
}
.form__status.is-fading { opacity: 0; }
/* red per client request 2026-07-08 (was var(--green-deep)) */
.form__status.is-ok { color: #C0392B; }
[data-theme="dark"] .form__status.is-ok { color: #FF9B93; }
.form__status.is-err { color: #B4382E; }
.form__status a { font-weight: 700; text-decoration: underline; }

/* ----------------------------------------------------------------- footer --- */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  padding-top: clamp(50px, 6vw, 80px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: 50px;
}
.footer__logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer__name { font-family: var(--display); font-weight: 600; display: block; margin-bottom: 10px; }
.footer__brand p { font-size: 0.9rem; color: var(--muted); max-width: 34ch; }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__h {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 14px;
}
.footer__nav a {
  display: block;
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.footer__nav a:hover { color: var(--ink); transform: translateX(3px); }
.footer__nav p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.footer__office-contact { margin-top: 10px; }
.footer__office-contact a { color: var(--ink-2); font-weight: 600; }

.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--ink-2); font-weight: 500; }
.footer__legal a:hover { color: var(--ink); }

/* dedicated contact page: clears the fixed nav (the section brings its own
   vertical padding) */
.contact-page { padding-top: clamp(3rem, 5vw, 4.5rem); }

/* ------------------------------------------------------------ legal pages --- */
.legal { padding-top: clamp(7.5rem, 11vw, 10rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.legal__wrap { max-width: 820px; margin-inline: auto; }
.legal__head { margin-bottom: 36px; }
.legal__head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal__updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.legal__body {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-s), var(--inset-hi);
}
.legal__body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.legal__body p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 14px; }
.legal__body ul { margin: 0 0 14px 20px; }
.legal__body li { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 6px; }
.legal__body a { font-weight: 600; }

/* ------------------------------------------------------------ back to top --- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8500;
  width: 52px;
  height: 52px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-strong);
  box-shadow: var(--shadow-m), var(--inset-hi);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  visibility: hidden; /* also removes the invisible button from the tab order */
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-spring),
    box-shadow 0.3s var(--ease-out), visibility 0.4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.to-top:hover { box-shadow: var(--shadow-l), var(--inset-hi); }
.to-top__arrow { width: 18px; height: 18px; transition: transform 0.3s var(--ease-spring); }
.to-top:hover .to-top__arrow { transform: translateY(-2px); }
.to-top__ring {
  position: absolute;
  inset: 3px;
  transform: rotate(-90deg);
}
.to-top__track, .to-top__fill { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: rgba(11, 27, 43, 0.08); }
.to-top__fill {
  stroke: var(--aqua-deep);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
/* hover hint pill */
.to-top__hint {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.to-top__hint::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink);
}
.to-top:hover .to-top__hint, .to-top:focus-visible .to-top__hint {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* theme toggle switch */
/* Created by main.js inside the nav pill, left of the CTA (the CTA stays
   rightmost); visible at every breakpoint. Knob-over-track design: both
   mode icons sit as muted ghosts on the glass track, and a circular knob
   (overhanging the track, sized level with the 50px nav CTA) slides across
   to cover the active side, carrying the active icon: green sun in light,
   aqua moon in dark. Icons are centered geometrically (inset 0 + margin
   auto), so nothing sits off-axis.
   (Earlier versions quoted in _revert/2026-07-08-dark-mode) */
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 83px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: var(--glass);
  box-shadow: var(--shadow-s), var(--inset-hi);
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease-out);
}
.theme-toggle:hover { box-shadow: var(--shadow-m), var(--inset-hi); }

/* ghost icons on the track; the knob covers the active one */
.theme-toggle__ghost {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  opacity: 0.55;
  pointer-events: none;
}
.theme-toggle__ghost svg { width: 100%; height: 100%; }
.theme-toggle__ghost--sun { left: 10px; }   /* centered under the knob's light rest point */
.theme-toggle__ghost--moon { left: 56px; }  /* centered under the knob's dark rest point */

/* the overhanging knob; offsets are measured from inside the track's 1px
   border, so -5.5px puts the 45px knob dead-center on the 36px track */
.theme-toggle__thumb {
  position: absolute;
  top: -5.5px;
  left: -5.5px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(11, 27, 43, 0.1);
  box-shadow: 0 4px 12px rgba(11, 27, 43, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(0);
  transition: transform 0.45s var(--ease-spring), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(47px);
  background: rgba(30, 46, 68, 0.97);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.theme-toggle__thumb svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}
.theme-toggle__sun { color: var(--green-deep); opacity: 1; }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle__moon { color: var(--aqua-deep); opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

/* ------------------------------------------------------- idle-loop pausing --- */
/* main.js toggles .idle-paused on sections outside the viewport so infinite
   loops cost nothing off screen; this is scoped pausing, not device gating */
.idle-paused *, .idle-paused *::before, .idle-paused *::after { animation-play-state: paused !important; }

/* -------------------------------------------------------------- responsive --- */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "design design"
      "mfg install"
      "ai ai"
      "control maint"
      "spares lifecycle";
  }
  .bento__card--design { min-height: 300px; }
  .glance__grid { grid-template-columns: 1fr 1fr; }
  .range__grid { grid-template-columns: 1fr 1fr; }
  .quality__grid { grid-template-columns: 1fr 1fr; }
  .process__list { grid-template-columns: repeat(3, 1fr); }
  .process__list::before { display: none; }
  .monitor__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .flagship__card { grid-template-columns: 1fr; }
  .flagship__media { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: 0; }
  /* with the links hidden, the theme switch takes the auto margin so it
     sits right-aligned beside the menu button instead of mid-pill */
  .theme-toggle { margin-left: auto; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(var(--maxw), 100% - 36px); }
  .section { padding: 72px 0; }
  .glance__grid { grid-template-columns: 1fr; }
  .range__grid { grid-template-columns: 1fr; }
  .quality__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "design" "mfg" "install" "ai" "control" "maint" "spares" "lifecycle";
  }
  .dash__metrics { grid-template-columns: 1fr 1fr; }
  .flagship__specs { grid-template-columns: 1fr 1fr; }
  .dash__main { grid-template-columns: 1fr; justify-items: center; }
  .monitor__benefits { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .reach__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .reach__row--head { display: none; }
  .hero { padding-top: 120px; }
  .hero__title br { display: none; }
  .hero__scroll { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}

/* dark mode */
/* Activated only by the visitor via the nav toggle (light stays the brand
   default); the choice persists in localStorage and is applied pre-paint by
   a one-line head snippet on every page. Token overrides do most of the
   work; the rules after them re-tint the few hardcoded light surfaces.
   Product image areas deliberately stay light: the renders carry baked
   white backgrounds, so light "photo plates" read as intentional.
   (Snapshot to undo: _revert/2026-07-08-dark-mode) */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0B1420;
  --bg-2: #0F1A29;
  --ink: #EAF2F8;
  --ink-2: #C6D4E0;
  --muted: #8CA0B3;
  --line: rgba(234, 242, 248, 0.08);
  --line-strong: rgba(234, 242, 248, 0.16);

  --green-deep: #4FCB45;
  --aqua-deep: #3BC5DF;
  --teal-deep: #2FB3A8;
  --grad-brand: linear-gradient(115deg, #43C438, #25B7D6);

  --glass: rgba(18, 30, 46, 0.55);
  --glass-strong: rgba(20, 32, 50, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card: rgba(20, 32, 48, 0.72);

  --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.25), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-m: 0 4px 16px rgba(0, 0, 0, 0.28), 0 22px 52px rgba(0, 0, 0, 0.34);
  --shadow-l: 0 8px 26px rgba(0, 0, 0, 0.32), 0 34px 80px rgba(0, 0, 0, 0.42);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(52rem 34rem at 12% -6%, rgba(54, 176, 45, 0.06), transparent 60%),
    radial-gradient(60rem 40rem at 96% 12%, rgba(0, 169, 194, 0.07), transparent 62%),
    radial-gradient(50rem 36rem at 50% 115%, rgba(0, 169, 194, 0.05), transparent 58%),
    linear-gradient(180deg, #0D1725, #0A1220);
}
[data-theme="dark"] .loader { background: #0B1420; }
[data-theme="dark"] .loader__bar { background: rgba(234, 242, 248, 0.1); }

/* hero: gently dim the bright photo and swap the white veil for a navy one
   (lightened per client request 2026-07-08; previous heavier values are in
   the dark-mode revert README) */
[data-theme="dark"] .hero__bg { filter: brightness(0.95) saturate(0.97); }
[data-theme="dark"] .hero__veil {
  background:
    linear-gradient(90deg, rgba(11, 20, 32, 0.55) 0%, rgba(11, 20, 32, 0.28) 40%, rgba(11, 20, 32, 0.04) 66%, rgba(11, 20, 32, 0) 100%),
    linear-gradient(180deg, rgba(11, 20, 32, 0.12) 0%, rgba(11, 20, 32, 0) 20%, rgba(11, 20, 32, 0) 74%, var(--bg) 100%);
}
[data-theme="dark"] .hero__scroll-line::after { background: var(--bg); }

[data-theme="dark"] .nav__pill { background: rgba(16, 26, 40, 0.5); }
[data-theme="dark"] .nav.is-scrolled .nav__pill { background: rgba(16, 26, 40, 0.75); }
[data-theme="dark"] .nav__mobile a:not(.btn):hover { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .skip-link { background: var(--bg-2); color: var(--ink); }

[data-theme="dark"] .marquee { background: rgba(13, 23, 37, 0.5); }
[data-theme="dark"] .process__num { background: var(--bg-2); }
[data-theme="dark"] .bento__icon { border-color: rgba(255, 255, 255, 0.08); }

[data-theme="dark"] .dash__metric,
[data-theme="dark"] .dash__alerts li { background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .gauge__bg { stroke: rgba(255, 255, 255, 0.08); }

/* product image plates stay light on purpose (baked white renders) */
[data-theme="dark"] .flagship__tag { background: rgba(18, 30, 46, 0.92); }

[data-theme="dark"] .reach__map { background: linear-gradient(165deg, rgba(20, 34, 52, 0.9), rgba(14, 24, 38, 0.85)); }
[data-theme="dark"] .reach__tooltip { background: rgba(18, 30, 46, 0.94); }
[data-theme="dark"] .reach__row--head { background: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .reach__row:not(.reach__row--head):hover { background: rgba(59, 197, 223, 0.06); }
[data-theme="dark"] .spot-label__box { fill: rgba(18, 30, 46, 0.95); stroke: rgba(255, 255, 255, 0.12); }

/* background-color (not the background shorthand), so the select keeps its
   no-repeat chevron positioning from the base rule */
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: rgba(140, 160, 179, 0.7); }
[data-theme="dark"] .field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238CA0B3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
}

[data-theme="dark"] .footer { background: rgba(13, 23, 37, 0.6); }
[data-theme="dark"] .to-top__track { stroke: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .to-top__hint { color: #0B1420; }

/* ---------------------------------------------------------- reduced motion --- */
/* Honors the visitor's own OS accessibility setting (a user choice, not a
   device capability gate): loops stop, reveals appear instantly. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
