/* ===================================================================
   ZONE GROUP SMART & AUTOMATION
   -------------------------------------------------------------------
   THE RULE OF THIS PAGE: nothing moves until it is triggered.

   Its sibling site, Zone Real Estate, is liquid — everything drifts
   all the time, and it overshoots when it lands. A building system is
   the opposite: it sits still, waits for a trigger, propagates along a
   path, then settles exactly. So here the easings do not bounce, the
   ambient layer is a plan grid that does not move at all, and every
   animation is a response to something — a scroll, a pointer, a tap.

   PALETTE is fixed by the brand:
     background #100D18   surface #19142A   primary #876CFF
     secondary  #48D4E8   text    #F4F1FF
   Every colour below is one of those five or a derivative of them.
   =================================================================== */

:root {
  /* --- Brand tokens. Change a colour here and it changes everywhere. */
  --background:  #100D18;
  --surface:     #19142A;
  --primary:     #876CFF;
  --secondary:   #48D4E8;
  --text:        #F4F1FF;

  /* --- Derived. Do not introduce new hex values below this line. */
  --surface-2:      #211A38;
  --surface-sunk:   #14101F;

  --foreground:     var(--text);
  --text-mid:       rgba(244, 241, 255, 0.66);
  --text-dim:       rgba(244, 241, 255, 0.44);
  --text-faint:     rgba(244, 241, 255, 0.26);

  --line:           rgba(244, 241, 255, 0.085);
  --line-strong:    rgba(244, 241, 255, 0.17);

  --primary-soft:   rgba(135, 108, 255, 0.14);
  --primary-line:   rgba(135, 108, 255, 0.42);
  --primary-glow:   rgba(135, 108, 255, 0.30);
  --secondary-soft: rgba(72, 212, 232, 0.12);
  --secondary-line: rgba(72, 212, 232, 0.40);

  --accent: linear-gradient(100deg, var(--primary), var(--secondary));

  /* --- Type. Archivo carries the architectural weight, Outfit does
         the reading, JetBrains Mono is the instrumentation voice. */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --shell: 1200px;
  --gutter: 24px;

  /* --- Motion. No overshoot anywhere: systems settle, they don't wobble. */
  --settle: cubic-bezier(0.16, 1, 0.30, 1);
  --signal: cubic-bezier(0.65, 0, 0.35, 1);

  --radius:    18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--background);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: top 0.25s var(--signal);
}
.skiplink:focus { top: 16px; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===================================================================
   AMBIENT FIELD
   A plan grid that never moves, two soft masses far behind it, and a
   presence highlight that follows the pointer. The grid is the whole
   architectural idea: the page is drawn on a technical drawing.
   =================================================================== */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.field__mass {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}

.field__mass--violet {
  width: 62vw; height: 62vw;
  left: -14vw; top: -18vh;
  background: radial-gradient(circle at 50% 50%, var(--primary), transparent 66%);
  opacity: 0.20;
}

.field__mass--cyan {
  width: 46vw; height: 46vw;
  right: -12vw; top: 34vh;
  background: radial-gradient(circle at 50% 50%, var(--secondary), transparent 66%);
  opacity: 0.10;
}

/* 48px plan grid, plus a heavier 240px module line — the way a
   drawing has both a fine grid and a structural grid. */
.field__grid,
.field__presence {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244, 241, 255, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 255, 0.42) 1px, transparent 1px),
    linear-gradient(to right, rgba(244, 241, 255, 0.85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 241, 255, 0.85) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 240px 240px, 240px 240px;
}

.field__grid { opacity: 0.035; }

/* Presence: the same grid, brighter, revealed only near the pointer.
   The page registers that someone is in the room. */
.field__presence {
  opacity: 0;
  background-image:
    linear-gradient(to right, var(--secondary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--secondary) 1px, transparent 1px),
    linear-gradient(to right, var(--primary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--primary) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), #000 0%, transparent 72%);
  mask-image: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), #000 0%, transparent 72%);
  transition: opacity 0.9s var(--signal);
}

.field__presence.is-live { opacity: 0.16; }

/* ===================================================================
   SIGNATURE — status rail
   One node per section, down the right edge. The active node lights
   and a charge runs the bus to it. Reads as a system status column.
   =================================================================== */
.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
}

.rail__line {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.rail__charge {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0%;
  background: linear-gradient(180deg, transparent, var(--primary) 40%, var(--secondary));
  transition: height 0.55s var(--settle);
}

.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.rail__item { position: relative; display: flex; align-items: center; }

.rail__dot {
  position: relative;
  display: block;
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--background);
  transform: rotate(45deg);
  transition: border-color 0.4s var(--signal), background 0.4s var(--signal), box-shadow 0.4s var(--signal);
}

.rail__item:hover .rail__dot,
.rail__dot:focus-visible { border-color: var(--secondary-line); }

.rail__item.is-on .rail__dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.rail__tag {
  position: absolute;
  right: 22px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.35s var(--signal), transform 0.35s var(--settle);
}

.rail__item:hover .rail__tag,
.rail__item.is-on .rail__tag { opacity: 1; transform: none; }
.rail__item.is-on .rail__tag { color: var(--text-mid); }

@media (max-width: 1180px) { .rail { display: none; } }

/* ===================================================================
   REVEAL — content arrives on scroll, once, and stops
   No blur, no bounce: it slides a short distance and locks.
   =================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--signal), transform 0.9s var(--settle);
}

.reveal[data-delay="1"].is-in { transition-delay: 0.08s; }
.reveal[data-delay="2"].is-in { transition-delay: 0.16s; }
.reveal[data-delay="3"].is-in { transition-delay: 0.24s; }
.reveal[data-delay="4"].is-in { transition-delay: 0.32s; }
.reveal[data-delay="5"].is-in { transition-delay: 0.40s; }

/* ===================================================================
   BRAND
   The sibling site's wordmark has a falling droplet. This one has a
   status node: a small square that holds steady and blinks once in a
   while, the way a device LED does.
   =================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__node {
  position: relative;
  width: 9px; height: 9px;
  flex: none;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: node-blink 6.5s var(--signal) infinite;
}

@keyframes node-blink {
  0%, 88%, 100% { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
  92%           { background: var(--secondary); box-shadow: 0 0 0 7px var(--secondary-soft); }
}

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.20em;
}

.brand__bottom {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ===================================================================
   TOP BAR
   =================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 13, 24, 0.72);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--signal), background 0.4s var(--signal);
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(16, 13, 24, 0.88);
}

.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navlink {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: var(--radius-pill);
  transition: color 0.35s var(--signal);
}

.navlink::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--settle);
}

.navlink:hover { color: var(--foreground); }
.navlink:hover::after { transform: scaleX(1); }
.navlink.is-on { color: var(--foreground); }
.navlink.is-on::after { transform: scaleX(1); }

.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--foreground);
  place-items: center;
  transition: border-color 0.35s var(--signal);
}

.burger:hover { border-color: var(--primary-line); }
.burger__bars { display: grid; gap: 5px; }
.burger__bars i {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--settle), opacity 0.3s var(--signal);
}
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .mainnav { display: none; }
  .burger { display: grid; }
  .topbar__actions { margin-left: auto; }
}

/* .btn sets display later in this file, so this needs the extra
   specificity or the button stays visible and crowds the burger. */
@media (max-width: 359px) {
  .topbar .topbar__quote { display: none; }
}

@media (max-width: 520px) {
  .brand__bottom { font-size: 7.5px; letter-spacing: 0.16em; }
  .brand__top { font-size: 15px; }
  .topbar__quote { padding: 9px 14px; font-size: 11.5px; }
  .topbar__inner { gap: 12px; padding: 12px var(--gutter); }
}

/* --- Drawer ------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 39;
  padding: 96px var(--gutter) 40px;
  background: rgba(16, 13, 24, 0.97);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.drawer[hidden] { display: none; }

.drawer__nav { display: grid; gap: 2px; }

.drawerlink {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(12px);
}

.drawer.is-open .drawerlink {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--signal), transform 0.5s var(--settle);
}

.drawer.is-open .drawerlink:nth-child(1) { transition-delay: 0.04s; }
.drawer.is-open .drawerlink:nth-child(2) { transition-delay: 0.08s; }
.drawer.is-open .drawerlink:nth-child(3) { transition-delay: 0.12s; }
.drawer.is-open .drawerlink:nth-child(4) { transition-delay: 0.16s; }
.drawer.is-open .drawerlink:nth-child(5) { transition-delay: 0.20s; }
.drawer.is-open .drawerlink:nth-child(6) { transition-delay: 0.24s; }
.drawer.is-open .drawerlink:nth-child(7) { transition-delay: 0.28s; }
.drawer.is-open .drawerlink:nth-child(8) { transition-delay: 0.32s; }

.drawerlink__no {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.drawer__foot { display: grid; gap: 14px; justify-items: start; padding-top: 32px; }

.drawer__phone {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-mid);
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.4s var(--settle), box-shadow 0.4s var(--signal),
              border-color 0.4s var(--signal), color 0.4s var(--signal);
}

.btn--sm { padding: 10px 18px; font-size: 12.5px; }

.btn--primary {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 8px 26px rgba(135, 108, 255, 0.24);
}

/* Hover slides a cyan wash across from the left — signal arriving,
   not a colour swap. */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--primary), var(--secondary));
  transform: translateX(-101%);
  transition: transform 0.55s var(--signal);
}

.btn--primary:hover::before { transform: none; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(135, 108, 255, 0.34); }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary { z-index: 0; }

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

.btn--ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(72, 212, 232, 0.14);
}

.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ===================================================================
   TRACE — the section join
   A hairline with a node on it, and a charge that runs the line
   occasionally. This replaces the sibling site's water waves: the
   join between sections is wiring, not a shoreline.
   =================================================================== */
.trace {
  position: relative;
  z-index: 2;
  height: 64px;
  margin-top: -32px;
  pointer-events: none;
  overflow: hidden;
}

.trace::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--line) 12%, var(--line-strong) 50%, var(--line) 88%, transparent);
}

.trace::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1px solid var(--primary-line);
  border-radius: 1px;
  background: var(--background);
  transform: rotate(45deg);
}

.trace__pulse {
  position: absolute;
  left: -20%; top: 50%;
  width: 20%; height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity: 0.5;
  animation: charge 11s var(--signal) infinite;
}

@keyframes charge {
  0%        { transform: translateX(0); opacity: 0; }
  8%        { opacity: 0.55; }
  46%, 100% { transform: translateX(600%); opacity: 0; }
}

.trace--flip { margin-top: 0; }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 104px 0;
}

.section--surface {
  background: linear-gradient(180deg, transparent, var(--surface-sunk) 12%, var(--surface-sunk) 88%, transparent);
}

.section--quote { padding-bottom: 120px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
}

.sechead {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.sechead--left { text-align: left; margin-left: 0; }
.sechead--left .eyebrow { justify-content: flex-start; }

.sechead__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 16px;
}

.sechead__text {
  color: var(--text-mid);
  font-size: 16.5px;
  margin: 0;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  z-index: 2;
  padding: 76px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero .eyebrow { color: var(--secondary); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}

.hero__line { display: block; }

/* The one place violet and cyan run together across a large area,
   and even here it is inside letterforms rather than behind them. */
.hero__line--flow {
  background: linear-gradient(96deg, var(--primary) 8%, var(--secondary) 62%, var(--primary) 96%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.6s var(--signal);
}

.hero__title:hover .hero__line--flow { background-position: 100% 50%; }

.hero__tagline {
  max-width: 520px;
  color: var(--text-mid);
  font-size: 17px;
  margin: 0 0 32px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Three columns that stay aligned rather than wrapping raggedly —
   values are allowed to run onto a second line inside their column. */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 48px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.fact { margin: 0; }

.fact dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mid);
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 56px; }
}

/* -------------------------------------------------------------------
   HERO THESIS — the control panel
   Not a photograph of a house. The actual object the company sells:
   one surface from which the whole space is run. It is live, and it
   only moves when the visitor taps a scenario.
   ------------------------------------------------------------------- */
.panel { position: relative; justify-self: end; width: 100%; max-width: 440px; }

.panel__frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 36px 80px rgba(6, 3, 14, 0.6);
}

/* A hairline of brand gradient along the top edge only — the panel
   reads as an instrument with a status strip, not a glowing box. */
.panel__frame::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: -1px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.panel__glow {
  position: absolute;
  inset: 12% 8%;
  z-index: 0;
  background: radial-gradient(circle, var(--primary-glow), transparent 68%);
  filter: blur(56px);
  opacity: 0.5;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel__room {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.panel__scene {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-top: 4px;
}

.panel__clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.panel__rows { list-style: none; margin: 0; padding: 14px 0 4px; display: grid; gap: 15px; }

.prow { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; }

.prow__icon { color: var(--text-dim); display: grid; place-items: center; transition: color 0.6s var(--signal); }
.prow.is-active .prow__icon { color: var(--secondary); }

.prow__main { min-width: 0; }

.prow__label {
  display: block;
  font-size: 12.5px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.prow__track {
  height: 3px;
  border-radius: 2px;
  background: rgba(244, 241, 255, 0.08);
  overflow: hidden;
}

.prow__bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1.1s var(--settle);
}

.prow__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}

.prow__state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  transition: color 0.5s var(--signal), border-color 0.5s var(--signal), background 0.5s var(--signal);
}

.prow__state.is-on {
  color: var(--secondary);
  border-color: var(--secondary-line);
  background: var(--secondary-soft);
}

.panel__scenes { padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); }

.panel__scenes-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 11px;
}

.panel__chips { display: flex; flex-wrap: wrap; gap: 7px; }

.pchip {
  position: relative;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  transition: color 0.4s var(--signal), border-color 0.4s var(--signal);
}

.pchip span { position: relative; z-index: 1; }

.pchip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateX(-101%);
  transition: transform 0.5s var(--signal);
}

.pchip:hover { color: var(--foreground); border-color: var(--primary-line); }

.pchip.is-on { color: var(--background); border-color: transparent; }
.pchip.is-on::before { transform: none; }

@media (max-width: 960px) {
  .panel { justify-self: stretch; max-width: 480px; }
}

/* ===================================================================
   SERVICE CARDS
   =================================================================== */
/* min() guard: without it the 310px track floor is wider than the
   available column on a 320px phone and the page scrolls sideways. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.55s var(--settle), border-color 0.45s var(--signal),
              box-shadow 0.5s var(--signal), background 0.45s var(--signal);
}

/* A gradient hairline wakes along the top edge on hover: the card
   comes online rather than lifting off the page. */
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--signal);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 22px 48px rgba(6, 3, 14, 0.5);
}

.card:hover::before { transform: scaleX(1); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  color: var(--primary);
  transition: color 0.45s var(--signal), background 0.45s var(--signal), border-color 0.45s var(--signal);
}

.card:hover .card__icon {
  color: var(--secondary);
  background: var(--secondary-soft);
  border-color: var(--secondary-line);
}

.card__code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}

.card__text {
  font-size: 14.5px;
  color: var(--text-mid);
  margin: 0 0 18px;
  flex: 1;
}

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

/* ===================================================================
   INTEGRATION DIAGRAM
   Nodes are HTML so they reflow at any width; the wires are drawn by
   JS from measured positions, so the drawing is never wrong.
   =================================================================== */
.diagram {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 66px);
  justify-items: center;
  padding: 8px 0;
}

.diagram__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wire {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.wire--live {
  stroke: var(--primary);
  stroke-width: 1.4;
  opacity: 0.75;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}

.diagram.is-on .wire--live {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.85s var(--signal);
  transition-delay: var(--wire-delay, 0s);
}

.wire--out { stroke: var(--secondary); }

.diagram__tier { display: grid; gap: 12px; width: 100%; }
.diagram__tier--sources { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.diagram__tier--outputs { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }

.node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 16px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  opacity: 0.55;
  transition: opacity 0.5s var(--signal), border-color 0.5s var(--signal),
              transform 0.5s var(--settle), box-shadow 0.5s var(--signal);
}

.diagram.is-on .node { opacity: 1; transition-delay: var(--node-delay, 0s); }
.diagram.is-on .node--src { border-color: var(--primary-line); }
.diagram.is-on .node--out { border-color: var(--secondary-line); }

.node__icon { color: var(--text-dim); transition: color 0.5s var(--signal); }
.diagram.is-on .node--src .node__icon { color: var(--primary); transition-delay: var(--node-delay, 0s); }
.diagram.is-on .node--out .node__icon { color: var(--secondary); transition-delay: var(--node-delay, 0s); }

.node__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-mid);
}

.diagram__hub {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--primary-line);
  box-shadow: 0 0 0 1px rgba(135, 108, 255, 0.08), 0 24px 60px rgba(6, 3, 14, 0.55);
  text-align: center;
}

/* The hub is the only thing on the page that breathes continuously,
   and it does so almost imperceptibly. It is the running system. */
.diagram.is-on .diagram__hub::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--secondary-line);
  opacity: 0;
  animation: hub-ring 5.5s var(--signal) infinite;
  animation-delay: 1.4s;
  pointer-events: none;
}

@keyframes hub-ring {
  0%        { opacity: 0; transform: scale(1); }
  22%       { opacity: 0.5; }
  70%, 100% { opacity: 0; transform: scale(1.035); }
}

.hub__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2.4vw, 19px);
  letter-spacing: 0.1em;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 880px) {
  .diagram__tier--sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diagram__tier--outputs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .node { padding: 13px 6px 12px; }
  .node__label { font-size: 10px; }
  .diagram__hub { padding: 20px 24px; }
}

@media (max-width: 460px) {
  .diagram__tier--sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagram__tier--outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================================================================
   SPLIT LAYOUT
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.split--reverse .split__text { order: 2; }

.split__text .sechead__title { margin-bottom: 14px; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__text { order: 0; }
}

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

.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text-mid);
}

/* Bullet is a small node on a stub of wire, not a dot */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--secondary-line);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 12px; top: 8.5px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--primary);
  transform: rotate(45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }

.chips span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: var(--surface);
}

/* ===================================================================
   SMART HOME — the room
   =================================================================== */
.room {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.room__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.rtab {
  flex: 1 1 auto;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: color 0.4s var(--signal), border-color 0.4s var(--signal), background 0.4s var(--signal);
}

.rtab:hover { color: var(--foreground); border-color: var(--primary-line); }

.rtab.is-on {
  color: var(--background);
  background: var(--primary);
  border-color: transparent;
}

.room__stage {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
}

.room__svg {
  display: block;
  width: 100%;
  height: auto;
  --lampcolor: #F4F1FF;
}

/* Room parts. Everything transitions on the same slow curve so a
   scenario change reads as one coordinated action, not eight. */
.room__wall      { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.room__floor     { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.room__floorplane{ fill: rgba(244, 241, 255, 0.02); stroke: var(--line); stroke-width: 1; }
.room__window    { fill: rgba(72, 212, 232, 0.03); stroke: var(--line-strong); stroke-width: 1; }
.room__mullion   { stroke: var(--line-strong); stroke-width: 1; fill: none; }

.room__daylight  { transition: opacity 1.2s var(--signal); }

.room__blind {
  fill: var(--surface-2);
  stroke: none;
  transform-box: fill-box;
  transform-origin: top;
  transition: transform 1.4s var(--settle);
}

.room__cord      { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.room__shade     { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.room__pool      { transition: opacity 1.2s var(--signal); opacity: 0; }

.room__object    { fill: rgba(244, 241, 255, 0.05); stroke: rgba(244, 241, 255, 0.30); stroke-width: 1.1; }
.room__objectline{ stroke: rgba(244, 241, 255, 0.18); stroke-width: 1; fill: none; }
.room__plant     { stroke: var(--secondary-line); stroke-width: 1.2; fill: none; }

.room__panel     { fill: var(--surface-2); stroke: var(--primary-line); stroke-width: 1; }
.room__panelui   { stroke: var(--text-faint); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.room__panelled  { fill: var(--secondary); transition: fill 0.6s var(--signal); }

.room__thermobox { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.room__temp {
  fill: var(--foreground);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.room__sensordot { fill: var(--text-faint); transition: fill 0.5s var(--signal); }
.room__sensorring{ fill: none; stroke: var(--secondary); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* Fires once per scenario change: the sensor registers the event. */
.room__sensor.is-ping .room__sensordot { fill: var(--secondary); }
.room__sensor.is-ping .room__sensorring { animation: ping 1.1s var(--signal) 1; }

@keyframes ping {
  0%   { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0;   transform: scale(4.5); }
}

.room__doorline  { stroke: var(--line); stroke-width: 1; fill: none; }
.room__shieldbody{
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: stroke 0.7s var(--signal), fill 0.7s var(--signal);
}

.room__shield.is-armed .room__shieldbody {
  stroke: var(--secondary);
  fill: var(--secondary-soft);
}

.room__note {
  font-size: 14px;
  color: var(--text-mid);
  margin: 16px 4px 0;
  min-height: 44px;
}

.room__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 4px; }

.room__steps li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--secondary);
  background: var(--secondary-soft);
  border: 1px solid var(--secondary-line);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}

/* ===================================================================
   BUILDING — image + BMS point list
   =================================================================== */
.shot {
  margin: 0 0 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}

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

.points {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px 8px;
}

.points__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.points__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.points__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.points__live i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.7;
}

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

.points__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.points__list li:last-child { border-bottom: none; }

.points__dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--secondary);
}

.points__dot--watch { background: var(--primary); }

.points__label { color: var(--text-mid); }

.points__value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: right;
}

/* ===================================================================
   ENERGY BARS
   =================================================================== */
.bars {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 20px;
}

.bars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.bars__row { display: grid; gap: 8px; }

.bars__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bars__label { font-size: 14px; color: var(--text-mid); }

.bars__pct {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.bars__track {
  height: 6px;
  border-radius: 3px;
  background: rgba(244, 241, 255, 0.06);
  overflow: hidden;
}

.bars__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 1.1s var(--settle);
  transition-delay: var(--bar-delay, 0s);
}

.bars__note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ===================================================================
   WHY GRID
   =================================================================== */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why__item {
  background: var(--surface);
  padding: 26px 24px;
  transition: background 0.45s var(--signal);
}

.why__item:hover { background: var(--surface-2); }

.why__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 14px;
}

.why__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 7px;
}

.why__text { font-size: 14px; color: var(--text-mid); margin: 0; }

/* ===================================================================
   PROCESS
   A real sequence, so it is numbered, and the numbers sit on a wire
   that runs the length of it.
   =================================================================== */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 4px;
  max-width: 860px;
  margin-inline: auto;
}

.steps::before {
  content: "";
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary-line), var(--secondary-line));
  opacity: 0.4;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 16px 0;
}

.step__no {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.5s var(--signal), border-color 0.5s var(--signal), background 0.5s var(--signal);
}

.step.is-in .step__no {
  color: var(--primary);
  border-color: var(--primary-line);
  background: var(--surface-2);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 9px 0 5px;
}

.step__text { font-size: 14.5px; color: var(--text-mid); margin: 0; }

@media (max-width: 560px) {
  .step { grid-template-columns: 38px 1fr; gap: 14px; }
  .step__no { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }
  .steps::before { left: 18px; }
}

/* ===================================================================
   QUOTE FORM
   =================================================================== */
.quote {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--accent);
}

.quote .sechead { max-width: 620px; margin-bottom: 36px; }

.form { display: grid; gap: 20px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

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

.field-group { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }

.label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0;
}

.hint { font-size: 12.5px; color: var(--text-faint); margin: -2px 0 4px; }

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.35s var(--signal), background 0.35s var(--signal), box-shadow 0.35s var(--signal);
}

.input::placeholder { color: var(--text-faint); }

.input:hover { border-color: var(--line-strong); }

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--background);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.input--area { resize: vertical; min-height: 108px; line-height: 1.6; }

.input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
  cursor: pointer;
}

.input--select option { background: var(--surface); color: var(--foreground); }

.input.is-bad { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.err {
  margin: 0;
  font-size: 12.5px;
  color: var(--primary);
  min-height: 0;
  display: none;
}

.err.is-shown { display: block; }

.picks { display: flex; flex-wrap: wrap; gap: 8px; }

.pick { position: relative; }

.pick input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.pick span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-sunk);
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.35s var(--signal), border-color 0.35s var(--signal), background 0.35s var(--signal);
}

.pick span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--text-faint);
  transition: background 0.35s var(--signal);
}

.pick span:hover { color: var(--foreground); border-color: var(--primary-line); }

.pick input:checked + span {
  color: var(--foreground);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.pick input:checked + span::before { background: var(--secondary); }

.pick input:focus-visible + span { outline: 2px solid var(--secondary); outline-offset: 3px; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.form__note { margin: 4px 0 0; font-size: 14px; color: var(--text-mid); }

.form__phone {
  font-family: var(--font-mono);
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary-line);
  padding-bottom: 1px;
}

.form__privacy { margin: 0; font-size: 12.5px; color: var(--text-faint); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { position: relative; z-index: 2; padding: 56px 0 40px; }

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.brand--footer { margin-bottom: 18px; }

.footer__note { margin: 0; max-width: 460px; font-size: 14px; color: var(--text-mid); }

.footer__contact { display: grid; gap: 12px; justify-items: start; }

.footer__phone {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--foreground);
  transition: color 0.35s var(--signal);
}

.footer__phone:hover { color: var(--secondary); }

.footer__mail { font-family: var(--font-mono); font-size: 14px; color: var(--text-mid); }
.footer__mail:hover { color: var(--secondary); }

.footer__sister {
  font-size: 13.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.35s var(--signal), border-color 0.35s var(--signal);
}

.footer__sister:hover { color: var(--primary); border-color: var(--primary-line); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===================================================================
   TIGHTENING FOR SMALL SCREENS
   =================================================================== */
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .section { padding: 76px 0; }
  .sechead { margin-bottom: 40px; }
  .hero__facts { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 420px) {
  .btn { padding: 13px 20px; font-size: 12.5px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .card { padding: 22px 20px; }
  .quote { border-radius: 22px; }
}

/* ===================================================================
   REDUCED MOTION
   The rule of this page is that nothing moves unless triggered, so
   there is little to switch off — but everything ambient stops, and
   all content stays visible and in place.
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .field__presence { display: none; }
  .field__mass { opacity: 0.12; }
  .diagram .wire--live { stroke-dashoffset: 0; }
  .diagram .node { opacity: 1; }
  .card:hover { transform: none; }
}
