/*
 * Qaraqoyunlu Technology — site styles ("Precision dark tech").
 * Builds on base.css (reset, layout, reveal, marquee, lightbox).
 *
 *  1. Tokens            8. Video surveillance   15. Family
 *  2. Base & type       9. Smart home (light)   16. Footer
 *  3. Primitives       10. Access control       17. Floating buttons
 *  4. Header & nav     11. Repair               18. Keyframes
 *  5. Hero             12. Process & terms      19. Reduced motion
 *  6. Ticker           13. Tender & details
 *  7. Services         14. Contact & form
 */

/* =========================================================== 1. TOKENS */

:root {
  --bg: #060B14;
  --bg-alt: #0B1422;
  --surface: #0B1422;
  --surface-2: #0F1B2D;
  --ink: #EAF2FF;
  --ink-soft: #8A9BB5;
  --line: rgba(140, 180, 255, 0.14);
  --line-strong: rgba(140, 180, 255, 0.26);
  --accent: #2F9BFF;
  --accent-hover: #5AB0FF;
  --accent-text: #2F9BFF;       /* accent used for small text (darker on light bg) */
  --accent-ink: #04101F;
  --cyan: #5CE1E6;
  --light-bg: #EEF3FA;
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 76px;
  --section: clamp(72px, 9vw, 128px);
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
}

/* ======================================================= 2. BASE & TYPE */

body {
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: 'ss01' on;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }

h1, h2, h3 { font-weight: 500; }

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.2vw + 14px, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

@media (max-width: 420px) {
  .h2 { font-size: 25px; letter-spacing: -0.03em; }
  .tender .h2 { font-size: 23px; }
}

.lead {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 0.3vw + 15px, 19px);
  line-height: 1.65;
}

/* Small uppercase label: "01 —— XİDMƏTLƏR" */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label__num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.label__num::after {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Section header: label in a narrow column, title in a wide one */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-bottom: clamp(40px, 6vw, 84px);
}
.sec-head > .label { grid-column: 1 / span 3; align-self: start; padding-top: 0.85em; }
.sec-head__main { grid-column: 4 / -1; max-width: 900px; }

.sec-head > .label { white-space: nowrap; }
/* below 1280px the narrow label column is too tight for long English labels: stack */
@media (max-width: 1279px) {
  .sec-head { display: block; }
  .sec-head > .label { padding-top: 0; margin-bottom: 22px; }
}

/* ======================================================== 3. PRIMITIVES */

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.btn .icon { transition: transform 0.45s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 32px -14px rgba(47, 155, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 16px 40px -14px rgba(47, 155, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(140, 180, 255, 0.03);
}
.btn--ghost:hover { border-color: rgba(47, 155, 255, 0.7); background: rgba(47, 155, 255, 0.08); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* Underline link */
.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out), color 0.25s;
  padding-bottom: 2px;
}
.u-link:hover { background-size: 100% 1px; color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.link-arrow .icon { width: 16px; height: 16px; color: var(--accent); transition: transform 0.45s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* Pulsing "live" dot */
.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(92, 225, 230, 0.8);
  flex-shrink: 0;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}

.rec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF4D5E;
  box-shadow: 0 0 8px rgba(255, 77, 94, 0.8);
  animation: blink 1.6s ease-in-out infinite;
}

/* Viewfinder corner brackets — the site's signature device */
.vf {
  --vf-c: var(--accent);
  --vf-l: 14px;
  --vf-w: 1.5px;
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--vf-c), var(--vf-c)) top left / var(--vf-l) var(--vf-w),
    linear-gradient(var(--vf-c), var(--vf-c)) top left / var(--vf-w) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) top right / var(--vf-l) var(--vf-w),
    linear-gradient(var(--vf-c), var(--vf-c)) top right / var(--vf-w) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom left / var(--vf-l) var(--vf-w),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom left / var(--vf-w) var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom right / var(--vf-l) var(--vf-w),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom right / var(--vf-w) var(--vf-l);
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}
.vf.is-on { opacity: 1; transform: none; }
.vf--lg { --vf-l: 26px; --vf-w: 2px; inset: 16px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-soft);
  background: rgba(140, 180, 255, 0.03);
}

/* ===================================================== 4. HEADER & NAV */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* fill-mode "backwards" only: a finished animation that keeps applying opacity
     would make the header a backdrop root, and the blur below would see nothing */
  animation: fade-in 0.8s var(--ease-out) backwards;
}
/* Blur lives on a pseudo-element so the fixed mobile menu isn't trapped */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-shrink: 0;
}
.brand__mark {
  width: 40px;
  height: auto;
  aspect-ratio: 1812 / 1422;
  fill: var(--accent);
  filter: drop-shadow(0 0 10px rgba(47, 155, 255, 0.35));
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand__sub {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a.is-current { color: var(--ink); }
.site-nav__list a:hover::after,
.site-nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-nav__num { display: none; }
.site-nav__extra { display: none; }
@media (min-width: 1181px) { .site-nav__item--menu { display: none; } }

.site-header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
}
.lang-switch button {
  min-width: 44px;
  height: 42px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  transition: background-color 0.3s, color 0.3s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: rgba(47, 155, 255, 0.18); color: var(--ink); }

.site-header__cta { font-variant-numeric: tabular-nums; }
/* icon-only call button: replaces the number button when it is hidden */
.site-header__call {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 155, 255, 0.55);
  border-radius: 10px;
  background: rgba(47, 155, 255, 0.12);
  color: var(--accent);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header__call:hover { background: rgba(47, 155, 255, 0.22); border-color: var(--accent); }
.site-header__call .icon { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-out);
}
.nav-toggle__bar:first-child { transform: translateY(-4px); }
.nav-toggle__bar:last-child { transform: translateY(4px); }
.nav-open .nav-toggle__bar:first-child { transform: rotate(45deg); }
.nav-open .nav-toggle__bar:last-child { transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .site-header__cta { display: none; }
  .site-header__call { display: inline-grid; }
  .site-header__actions { margin-left: auto; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: calc(var(--header-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.4s ease; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header::before { opacity: 0; }

  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a {
    width: 100%;
    gap: 18px;
    padding: 13px 0;
    font-family: var(--font-display);
    font-size: clamp(21px, 5.4vw, 34px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
  }
  .site-nav__list a::after { display: none; }
  .nav-open .site-nav__list a { opacity: 1; transform: none; }
  .site-nav__list li:nth-child(1) a { transition-delay: 0.08s; }
  .site-nav__list li:nth-child(2) a { transition-delay: 0.13s; }
  .site-nav__list li:nth-child(3) a { transition-delay: 0.18s; }
  .site-nav__list li:nth-child(4) a { transition-delay: 0.23s; }
  .site-nav__list li:nth-child(5) a { transition-delay: 0.28s; }
  .site-nav__list li:nth-child(6) a { transition-delay: 0.33s; }
  .site-nav__list li:nth-child(7) a { transition-delay: 0.38s; }
  .site-nav__list li:nth-child(8) a { transition-delay: 0.43s; }
  .site-nav__num {
    display: inline;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
    min-width: 22px;
  }
  .site-nav__extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.5s ease 0.35s;
  }
  .nav-open .site-nav__extra { opacity: 1; }
  .site-nav__extra .lang-switch { margin-bottom: 14px; }
  .site-nav__contact {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ink-soft);
    font-size: 15px;
    word-break: break-all;
  }
  .site-nav__contact:hover { color: var(--ink); }
}

@media (max-width: 760px) {
  .site-header__actions > .lang-switch { display: none; }
  .site-header__actions { gap: 8px; }
  .brand__mark { width: 36px; }
}

/* ============================================================== 5. HERO */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  /* +72px keeps the eyebrow at least 32px clear of the REC / CAM 01 row */
  padding: calc(var(--header-h) + 72px) 0 clamp(64px, 7vw, 84px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 74% 46%, rgba(47, 155, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(47, 155, 255, 0.07), transparent 70%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 45%, #000 25%, transparent 78%);
}
.hero__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0 80%, rgba(47, 155, 255, 0.035) 99.2%, rgba(92, 225, 230, 0.28) 99.88%, transparent 100%);
  transform: translate3d(0, -100%, 0);
  animation: scan 9s var(--ease-in-out) 1.2s infinite;
}

/* HUD frame */
.hud {
  position: absolute;
  inset: calc(var(--header-h) + 10px) clamp(10px, 1.8vw, 28px) clamp(10px, 1.8vw, 28px);
  pointer-events: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.vf--hud {
  inset: 0;
  --vf-l: 30px;
  --vf-w: 1.5px;
  --vf-c: rgba(234, 242, 255, 0.55);
  animation: vf-focus 1.1s var(--ease-out) 0.15s both;
}
.hud__row {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: fade-in 1s ease 0.6s both;
}
.hud__row--top { top: 16px; }
.hud__row--bottom { bottom: 14px; }
.hud__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.hud__time { margin-left: auto; }
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.hero__content { grid-column: 1 / span 7; position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 20, 34, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  animation: rise 0.9s var(--ease-out) 0.2s both;
}

.hero__title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.1vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  /* CSS-only, transform-only intro (no data-split, no fade): the title is the page's
     largest paint (LCP), so it must be visible in the very first frame, before any JS */
  animation: title-rise 1.1s var(--ease-out) both;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  margin-top: 28px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 0.35vw + 15px, 19px);
  line-height: 1.65;
  animation: rise 1s var(--ease-out) 0.55s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  animation: rise 1s var(--ease-out) 0.7s both;
}

/* Radar */
.hero__visual { grid-column: 8 / -1; display: grid; place-items: center; }
.radar {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  animation: radar-in 1.4s var(--ease-out) 0.1s both;
}
.radar__sweep {
  position: absolute;
  inset: 3.5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, rgba(47, 155, 255, 0.04) 300deg, rgba(47, 155, 255, 0.26) 357deg, rgba(92, 225, 230, 0.7) 359.6deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle, transparent 10%, #000 11%);
  mask-image: radial-gradient(circle, transparent 10%, #000 11%);
  animation: spin 6s linear infinite;
}
.radar__grid { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.radar__ring { stroke: rgba(140, 180, 255, 0.18); stroke-width: 1; }
.radar__ring--dash { stroke-dasharray: 2 6; }
.radar__ticks { stroke: rgba(140, 180, 255, 0.35); stroke-width: 7; stroke-dasharray: 1 14.25; }
.radar__ticks--major { stroke: rgba(140, 180, 255, 0.7); stroke-width: 12; stroke-dasharray: 1.5 150.9; }
.radar__cross { stroke: rgba(140, 180, 255, 0.12); stroke-width: 1; }
/* blips: --x / --y = position in the 600×600 grid, as a percentage of the radar */
.radar__blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1%;
  aspect-ratio: 1;
  margin: -0.5% 0 0 -0.5%;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: blip 6s linear infinite;
  animation-delay: var(--d, 0s);
}
.radar__blip--lg { width: 1.333%; margin: -0.667% 0 0 -0.667%; }

/* Logo mark as a glowing outline, revealed by a scan line. The window (.radar__reveal)
   slides down while its content slides up by the same amount, so the mark stands still
   and appears line by line: transform only, nothing is repainted while it plays.
   The 20px padding keeps the glow inside the clipping box. */
.radar__reveal {
  position: absolute;
  left: calc(26% - 20px);
  top: calc(30.4% - 20px);
  width: calc(48% + 40px);
  padding: 20px;
  overflow: hidden;
  animation: wipe-window 1.7s var(--ease-in-out) 0.35s both;
}
.radar__reveal-in { animation: wipe-content 1.7s var(--ease-in-out) 0.35s both; }
.radar__reveal::after { /* the scan line rides on the moving lower edge, then fades */
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, #fff 50%, var(--cyan) 78%, transparent);
  box-shadow: 0 0 14px 2px rgba(92, 225, 230, 0.45);
  animation: fade-out 0.6s ease 2s both;
}
.radar__mark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1812 / 1422;
  fill: rgba(47, 155, 255, 0.1);
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(47, 155, 255, 0.55));
}
.radar__label {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(6, 11, 20, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

/* Fact strip */
.hero__facts { margin-top: clamp(40px, 5vw, 64px); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts__item {
  position: relative;
  padding: 20px 24px 0 0;
}
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt {
  font-family: var(--font-display);
  font-size: clamp(13px, 0.5vw + 9px, 16px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.facts dd { margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }

/* Laptops with short screens (1366×768, 1280×800, 1024×768): the whole
   viewfinder — all four corners and the fact strip — fits in one screen */
@media (min-width: 761px) and (max-height: 860px) {
  .hero { padding-bottom: 68px; }
  .hero__title { margin-top: 22px; font-size: clamp(36px, min(5.1vw, 7.6vh), 72px); }
  .hero__lead { margin-top: 16px; font-size: 17px; }
  .hero__cta { margin-top: 24px; }
  .hero__facts { margin-top: 28px; }
  .facts__item { padding-top: 16px; }
  .radar { width: min(100%, 560px, 55vh); }
}

/* Tablets: headline and radar side by side */
@media (min-width: 761px) and (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 28px; }
  .hero__content { grid-column: 1; }
  .hero__visual { grid-column: 2; }
  .hero__title { font-size: clamp(38px, 5.6vw, 46px); }
}

/* Phones: the radar moves below the buttons, so the headline sits on a clean background */
@media (max-width: 760px) {
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero__visual { width: min(76vw, 300px); margin: 44px auto 0; }
  .radar__label { padding: 6px 10px; font-size: 10px; }
}

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { padding: 16px 16px 16px 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; }
  .facts__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .hud__cam, .hud__row--bottom, .tc-date { display: none; }
  .hud__row { left: 16px; right: 16px; }
  .hud__row--top { top: 12px; }
  .hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 40px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .hero__title { margin-top: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { margin-top: 36px; }
}

/* ============================================================ 6. TICKER */

.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 0;
}
/* block padding keeps descenders (ğ, ç, ş, y) clear of the marquee's overflow clip */
.marquee { --marquee-gap: 0px; --marquee-speed: 70s; padding-block: 4px; }
.marquee__track li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(15px, 1vw + 8px, 21px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.marquee__track li::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 clamp(24px, 3vw, 44px);
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ========================================================== 7. SERVICES */

/* Two feature cards: cameras (wide) and smart home */
.svc-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 14px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 26px 34px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s ease;
}
/* pointer spotlight (core.js sets --mx / --my) */
.svc::before,
.rcard::before,
.term::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 155, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.svc::after,
.rcard::after,
.term::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 225, 230, 0.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.svc:hover::before, .svc:hover::after,
.rcard:hover::before, .rcard:hover::after,
.term:hover::before, .term:hover::after { opacity: 1; }
.svc:hover .vf, .svc:focus-within .vf { opacity: 1; transform: none; }
.svc:hover, .svc:focus-within { border-color: rgba(47, 155, 255, 0.35); --hov: 1; --play: running; }

.svc__num {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.svc__icon {
  width: 46px;
  height: 46px;
  margin-top: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc__title {
  padding-top: 26px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.svc__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.svc__link { margin-top: 14px; align-self: flex-start; }

/* Feature cards */
.svc--cam, .svc--smart {
  background:
    linear-gradient(rgba(140, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(140, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #10203A, var(--surface) 60%);
}
.svc--cam .svc__title,
.svc--smart .svc__icon { margin-top: auto; }
.svc__lens { position: relative; align-self: flex-start; z-index: -1; }
.svc__fov {
  position: absolute;
  left: 84.5%;
  top: 52%;
  width: 600px;
  height: 400px;
  max-width: none;
  overflow: visible;
  fill: none;
  transform: translateY(-50%) rotate(calc(var(--hov, 0) * -10deg));
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 80%);
  mask-image: linear-gradient(90deg, #000 20%, transparent 80%);
}
.svc__fov-cone { opacity: 0.7; transition: opacity 0.5s; }
.svc--cam:hover .svc__fov-cone { opacity: 1; }
.svc__fov-edge { stroke: rgba(47, 155, 255, 0.45); stroke-width: 1; }
.svc__fov-arc { stroke: rgba(140, 180, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 5; }
.svc__fov-target { stroke: var(--cyan); stroke-width: 1.5; }
.svc__fov--target { animation: blink-soft 2.4s ease-in-out infinite; } /* opacity of a whole <svg>: GPU only */
.svc--cam .svc__icon { width: 88px; height: 88px; stroke-width: 0.9; stroke: var(--accent); filter: drop-shadow(0 0 16px rgba(47, 155, 255, 0.45)); }
.svc--cam .svc__title { font-size: clamp(22px, 1.4vw + 8px, 30px); letter-spacing: -0.03em; }
.svc--cam .svc__text { max-width: 44ch; font-size: 16px; }
.svc--cam .chips { margin-top: 22px; }
.svc--smart .svc__icon { width: 56px; height: 56px; stroke: var(--accent); stroke-width: 1.1; }
.svc--smart .svc__title { font-size: clamp(19px, 0.8vw + 10px, 23px); }
.svc--smart .svc__text { max-width: 46ch; }
.svc__mark { /* large line-drawn house filling the top of the smart-home card */
  position: absolute;
  z-index: -1;
  right: 22px;
  top: 34px;
  width: min(62%, 250px);
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: rgba(140, 180, 255, 0.16);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s ease;
}
.svc--smart:hover .svc__mark { stroke: rgba(47, 155, 255, 0.34); }
@media (max-width: 900px) { .svc__mark { width: 190px; top: 22px; } }
@media (max-width: 600px) { .svc__mark { width: 128px; right: 14px; top: 18px; } }

/* Icon micro-motion on hover — driven by inherited custom properties (works through <use>) */
.ic-pan { transform-box: view-box; transform-origin: 13.5px 17.7px; transform: rotate(calc(var(--hov, 0) * -10deg)); transition: transform 0.7s var(--ease-out); }
.ic-arm { transform-box: view-box; transform-origin: 7.25px 16.4px; transform: rotate(calc(var(--hov, 0) * -58deg)); transition: transform 0.8s var(--ease-out); }
.ic-card { transform: translateX(calc(var(--hov, 0) * 2.5px)); transition: transform 0.6s var(--ease-out); }
.ic-slide { transform: translateX(calc(var(--hov, 0) * -2px)); transition: transform 0.7s var(--ease-out); }
.ic-arrow { transform: translateX(calc(var(--hov, 0) * 3px)); transition: transform 0.7s var(--ease-out); }
.ic-led { stroke: var(--led, currentColor); animation: ic-blink 1s steps(1) infinite; animation-play-state: var(--play, paused); }
.ic-btn { transform-box: fill-box; transform-origin: center; transform: scale(calc(1 + var(--hov, 0) * 0.25)); transition: transform 0.5s var(--ease-out); }
.ic-rays { animation: ic-pulse 0.9s ease-in-out infinite; animation-play-state: var(--play, paused); }
.ic-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: ic-flicker 1.2s ease-in-out infinite; animation-play-state: var(--play, paused); }
.ic-wave { animation: ic-pulse 1.4s ease-in-out infinite; animation-play-state: var(--play, paused); }
.ic-wave--2 { animation-delay: 0.15s; }
.ic-wave--3 { animation-delay: 0.3s; }
.ic-scan { animation: ic-pulse 1.1s ease-in-out infinite; animation-play-state: var(--play, paused); }
.ic-shaft { animation: ic-shake 0.25s linear infinite; animation-play-state: var(--play, paused); }
.ic-bump { transform: translateX(calc(var(--hov, 0) * -2px)); transition: transform 0.6s var(--ease-out); }

/* The other ten services: a dense index in three groups */
.svc-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 44px;
  margin-top: clamp(48px, 6vw, 84px);
}
.svc-index__col { display: grid; align-content: start; row-gap: 44px; }
.svc-group__title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.svc-group__title::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 18px;
  padding: 18px 14px 18px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc-row::before {
  content: '';
  position: absolute;
  inset: 0 0 -1px;
  z-index: -1;
  background: linear-gradient(90deg, rgba(47, 155, 255, 0.1), rgba(47, 155, 255, 0.02) 70%, transparent);
  border-bottom: 1px solid rgba(47, 155, 255, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.svc-row:hover, .svc-row:focus-within { --hov: 1; --play: running; }
.svc-row:hover::before, .svc-row:focus-within::before { opacity: 1; }
.svc-row__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.svc-row__icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}
.svc-row__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.svc-row__text { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.svc-row__go {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}
.svc-row__go::after { content: ''; position: absolute; inset: 0; } /* the whole row is the link */
.svc-row__go .icon { width: 16px; height: 16px; transition: transform 0.45s var(--ease-out); }
.svc-row:hover .svc-row__num, .svc-row:focus-within .svc-row__num { color: var(--accent-text); }
.svc-row:hover .svc-row__icon, .svc-row:focus-within .svc-row__icon { stroke: var(--accent); }
.svc-row:hover .svc-row__go, .svc-row:focus-within .svc-row__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.svc-row:hover .svc-row__go .icon { transform: translateX(2px); }

@media (max-width: 900px) {
  .svc-feature { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc--smart { min-height: 300px; }
  .svc-index { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .svc-feature { gap: 12px; }
  .svc { padding: 22px; }
  .svc--cam { padding: 24px 22px 26px; }
  .svc__icon { margin-top: 22px; width: 40px; height: 40px; }
  .svc--cam .svc__icon { width: 72px; height: 72px; }
  .svc--cam .svc__lens { margin-bottom: 44px; }
  .svc--smart { min-height: 0; }
  .svc--smart .svc__icon { margin-top: 22px; }
  .svc__title { padding-top: 20px; }
  .svc-index { row-gap: 36px; margin-top: 44px; }
  .svc-index__col { row-gap: 36px; }
  .svc-row { grid-template-columns: 30px minmax(0, 1fr) 36px; column-gap: 14px; padding: 15px 0; }
  .svc-row__num { display: none; }
  .svc-row__icon { width: 30px; height: 30px; }
  .svc-row__title { font-size: 15px; }
  .svc-row__text { margin-top: 2px; font-size: 13.5px; }
  .svc-row__go { width: 36px; height: 36px; }
}

/* ================================================ 8. VIDEO SURVEILLANCE */

.video { background: linear-gradient(180deg, var(--bg), var(--bg-alt) 55%, var(--bg)); }
.video__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}

/* The clip reveal (base.css) ends on inset(0), which would keep trimming the
   caption's glyph edges and the legend's ring marker at the figure's edge: open it a little wider */
.js .cam-view[data-reveal="clip"].is-visible { clip-path: inset(-16px); }

.cam-view__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(47, 155, 255, 0.1), transparent 70%),
    linear-gradient(rgba(140, 180, 255, 0.045) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(140, 180, 255, 0.045) 1px, transparent 1px) 0 0 / 20px 20px,
    #07101D;
  isolation: isolate;
}
.cam-view__frame::after { /* scanlines + vignette */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(234, 242, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(6, 11, 20, 0.75) 100%);
}

/* Top-down plans (generated geometry; one <g class="plan"> per location) */
.plans {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan { opacity: 0; transition: opacity 0.6s ease; }
.plan.is-active { opacity: 1; transition-delay: 0.15s; }
.pl-floor { fill: rgba(140, 180, 255, 0.045); }
.pl-wall { stroke: rgba(234, 242, 255, 0.8); stroke-width: 3; }
.pl-wall--in { stroke: rgba(234, 242, 255, 0.4); stroke-width: 1.5; }
.pl-fence { stroke: rgba(140, 180, 255, 0.4); stroke-width: 1.2; stroke-dasharray: 6 5; }
.pl-path { fill: rgba(140, 180, 255, 0.06); }
.pl-car { fill: rgba(140, 180, 255, 0.12); stroke: rgba(140, 180, 255, 0.45); stroke-width: 1.2; }
.pl-tree { fill: rgba(92, 225, 230, 0.05); stroke: rgba(92, 225, 230, 0.3); stroke-width: 1; stroke-dasharray: 3 3; }
.pl-obj { fill: rgba(140, 180, 255, 0.08); stroke: rgba(140, 180, 255, 0.42); stroke-width: 1.2; }
.pl-obj--hi { fill: rgba(47, 155, 255, 0.5); stroke: none; }
.pl-mark { stroke: rgba(140, 180, 255, 0.35); stroke-width: 1.2; }
.pl-mark--dash { stroke-dasharray: 10 8; }
.pl-gate { stroke: var(--cyan); stroke-width: 3; }
.pl-gate--arm { stroke-width: 4; }

/* camera pins and their fields of view */
.cam__cone {
  fill: rgba(47, 155, 255, 0.16);
  stroke: rgba(47, 155, 255, 0.55);
  stroke-width: 1;
  transform-box: view-box;
  transform: scale(0.15);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.5s ease;
}
.plan.is-active .cam__cone {
  transform: none;
  opacity: 1;
  transition-delay: calc(0.3s + var(--i, 0) * 0.16s);
}
.cam__ring { fill: rgba(6, 11, 20, 0.9); stroke: var(--accent); stroke-width: 1.5; }
.cam__dot { fill: var(--cyan); }
.plan.is-active .cam__ring { transform-box: fill-box; transform-origin: center; animation: pin-ping 2.4s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * 0.4s); }

.cam-view__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 85%, rgba(92, 225, 230, 0.12) 98%, rgba(92, 225, 230, 0.4) 99.6%, transparent 100%);
  transform: translate3d(0, -100%, 0);
  animation: scan 5.5s linear infinite;
}
.cam-view .vf { --vf-c: rgba(234, 242, 255, 0.85); opacity: 1; transform: none; z-index: 1; }
.cam-view .vf.is-refocus { animation: vf-refocus 0.7s var(--ease-out); }
.cam-view__reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 1px solid rgba(234, 242, 255, 0.28);
  border-radius: 50%;
  opacity: 0.7;
}
.cam-view__reticle::before,
.cam-view__reticle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(234, 242, 255, 0.6);
}
.cam-view__reticle::before { width: 84px; height: 1px; margin: 0 0 0 -42px; background: linear-gradient(90deg, rgba(234, 242, 255, 0.6) 0 30%, transparent 30% 70%, rgba(234, 242, 255, 0.6) 70%); }
.cam-view__reticle::after { width: 1px; height: 84px; margin: -42px 0 0 0; background: linear-gradient(180deg, rgba(234, 242, 255, 0.6) 0 30%, transparent 30% 70%, rgba(234, 242, 255, 0.6) 70%); }

.cam-view__hud {
  position: absolute;
  z-index: 1; /* above the scanline/vignette overlay, which otherwise dims the labels below AA */
  inset: 30px 34px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.9);
  font-variant-numeric: tabular-nums;
}
.cam-view__hud > * { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.cam-view__hud .hud__rec { top: 0; left: 0; }
.cam-view__cam { top: 0; right: 0; }
.cam-view__target { bottom: 0; left: 0; gap: 10px; }
.cam-view__target b {
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.cam-view__time { bottom: 0; right: 0; }

/* caption under the frame: current location + legend */
.cam-view__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.cam-view__now { display: none; font-size: 14.5px; color: var(--ink); }
.cam-view__legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-left: auto; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ''; flex-shrink: 0; }
.lg--cam::before { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 2px #07101D, 0 0 0 3.5px var(--accent); }
.lg--fov::before { width: 16px; height: 11px; background: rgba(47, 155, 255, 0.3); border-left: 1px solid var(--accent); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.lg--note { padding-left: 18px; border-left: 1px solid var(--line-strong); letter-spacing: 0.04em; }

.loc__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.loc__list { border-top: 1px solid var(--line); }
.loc__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: padding 0.5s var(--ease-out);
}
.loc__num {
  padding-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.loc__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(17px, 0.6vw + 12px, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.loc__note { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); opacity: 0.88; transition: opacity 0.3s; }
.loc__item:hover .loc__name { color: var(--ink); }
.loc__item.is-active .loc__name { color: var(--ink); }
.loc__item.is-active .loc__num { color: var(--accent-text); }
.loc__item.is-active .loc__note { opacity: 1; }
.loc__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.loc__item.is-active .loc__bar { transform: scaleX(1); transition: transform 0.6s var(--ease-out); }
.loc.is-auto .loc__item.is-active .loc__bar { animation: grow var(--loc-dur, 4200ms) linear both; }

/* Small screens: the locations become chips above the plan, so every tap
   changes a picture that is on screen */
@media (max-width: 900px) {
  .video__grid { grid-template-columns: 1fr; gap: 22px; }
  .loc { order: -1; }
  .loc__label { margin-bottom: 14px; }
  .loc__list { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .loc__list li { display: flex; }
  .loc__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.3s, background-color 0.3s;
  }
  .loc__item.is-active { border-color: rgba(47, 155, 255, 0.7); background: rgba(47, 155, 255, 0.12); }
  .loc__num { padding-top: 0; font-size: 11px; }
  .loc__name { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
  .loc__note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .loc__bar { left: 14px; right: 14px; bottom: 6px; }
  .cam-view__now { display: block; flex: 1 1 100%; }
  .cam-view__legend { margin-left: 0; }
}
@media (max-width: 600px) {
  .cam-view__frame { aspect-ratio: 4 / 3.2; border-radius: var(--radius); }
  .cam-view__hud { inset: 22px 22px; font-size: 10px; }
  .cam-view .vf--lg { inset: 10px; --vf-l: 18px; }
  .cam-view__time { display: none !important; }
  .loc__item { padding: 0 12px; }
  .loc__num { display: none; }
}

/* ======================================================= 9. SMART HOME */

.smart {
  --ink: #0B1422;
  --ink-soft: #4A5B74;
  --line: rgba(11, 20, 34, 0.12);
  --line-strong: rgba(11, 20, 34, 0.22);
  --accent-text: #1667C9;
  background:
    linear-gradient(rgba(11, 20, 34, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(11, 20, 34, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--light-bg);
  color: var(--ink);
}
.smart ::selection { background: var(--accent); color: #fff; }

.device {
  --ink: #EAF2FF;
  --ink-soft: #8A9BB5;
  --line: rgba(140, 180, 255, 0.14);
  --line-strong: rgba(140, 180, 255, 0.26);
  --accent-text: #2F9BFF;
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0D1726, #070D17);
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(6, 11, 20, 0.9),
    0 50px 90px -40px rgba(6, 26, 60, 0.55),
    0 20px 40px -20px rgba(6, 11, 20, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.device__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.device__brand, .device__status { display: inline-flex; align-items: center; gap: 10px; }
.device__status b { color: var(--ink); font-variant-numeric: tabular-nums; }
.device__mark { width: 22px; height: auto; aspect-ratio: 1812 / 1422; fill: var(--accent); }

.device__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
}
.device__screen {
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(47, 155, 255, 0.12), transparent 65%),
    linear-gradient(rgba(140, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(140, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #0A1424;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "icon switch" "name name" "state state";
  align-items: start;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0F1B2D;
  text-align: left;
  transition: background-color 0.4s, border-color 0.4s, transform 0.3s var(--ease-out);
}
.tile:hover { border-color: var(--line-strong); }
.tile:active { transform: scale(0.98); }
.tile--wide { grid-column: span 2; min-height: 0; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name switch" "icon state switch"; column-gap: 14px; align-items: center; }
.tile__icon {
  grid-area: icon;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}
.tile__name { grid-area: name; margin-top: 18px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.tile--wide .tile__name { margin-top: 0; }
.tile__state { grid-area: state; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.tile__on { display: none; }
.tile[aria-pressed="true"] .tile__on { display: inline; color: var(--cyan); }
.tile[aria-pressed="true"] .tile__off { display: none; }
.tile__switch {
  grid-area: switch;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(140, 180, 255, 0.18);
  transition: background-color 0.4s;
}
.tile__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8A9BB5;
  transition: transform 0.45s var(--ease-out), background-color 0.4s;
}
.tile[aria-pressed="true"] {
  border-color: rgba(47, 155, 255, 0.55);
  background: linear-gradient(160deg, rgba(47, 155, 255, 0.24), rgba(47, 155, 255, 0.06) 70%), #0F1B2D;
}
.tile[aria-pressed="true"] .tile__icon { stroke: var(--ink); }
.tile[aria-pressed="true"] .tile__switch { background: var(--accent); }
.tile[aria-pressed="true"] .tile__switch::after { transform: translateX(16px); background: #fff; }

.scenes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.scenes__label {
  flex: 1 0 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scene {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.3s, border-color 0.3s;
}
.scene:hover { border-color: var(--accent); background: rgba(47, 155, 255, 0.1); }
.scene[aria-pressed="true"] { border-color: var(--accent); background: rgba(47, 155, 255, 0.2); box-shadow: inset 0 0 0 1px var(--accent); }

.smart__note {
  margin-top: 22px;
  font-size: 13.5px;
  color: #33435A; /* darker than --ink-soft: it sits inside the device's drop shadow (AA 4.5:1) */
  text-align: center;
}

/* House diagram states */
.house { width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.house__ground { stroke: rgba(140, 180, 255, 0.3); stroke-width: 1; stroke-dasharray: 2 5; }
.house__wall { fill: #0F1B2D; stroke: rgba(140, 180, 255, 0.45); stroke-width: 1.5; }
.house__roof-fill { fill: #0C1727; }
.house__roof { stroke: #EAF2FF; stroke-width: 2.5; }
.house__glass { fill: #060C16; }
.house__frame { stroke: rgba(234, 242, 255, 0.75); stroke-width: 1.5; }
.house__glow { opacity: 0; transition: opacity 0.7s ease; }
.house__curtain { transform-box: fill-box; transition: transform 1s var(--ease-in-out); }
.house__curtain--l { transform-origin: 0 50%; }
.house__curtain--r { transform-origin: 100% 50%; }
.house__doorway { fill: #060C16; stroke: rgba(234, 242, 255, 0.75); stroke-width: 1.5; }
.house__leaf { transform-box: fill-box; transform-origin: 0 50%; transition: transform 0.8s var(--ease-out); }
.house__leaf-panel { fill: #13243B; stroke: rgba(234, 242, 255, 0.75); stroke-width: 1.5; }
.house__keypad { fill: #0A1424; stroke: rgba(140, 180, 255, 0.6); stroke-width: 1; }
.house__led { fill: #8A9BB5; transition: fill 0.4s; }
.house__unit { fill: #13243B; stroke: rgba(234, 242, 255, 0.75); stroke-width: 1.5; }
.house__unit-line { stroke: rgba(140, 180, 255, 0.5); stroke-width: 1.5; }
.house__flame { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0.5); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.house__heat { stroke: rgba(92, 225, 230, 0.8); stroke-width: 1.5; opacity: 0; }
.house__pipe { stroke: rgba(140, 180, 255, 0.35); stroke-width: 4; }
.house__flow { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 3 7; opacity: 0; transition: opacity 0.4s; }
.house__valve { fill: #0F1B2D; stroke: #EAF2FF; stroke-width: 1.5; }
.house__handle { stroke: #EAF2FF; stroke-width: 2; transform-box: view-box; transition: transform 0.6s var(--ease-out), stroke 0.4s; }
.house__line--gas .house__handle { transform-origin: 48px 282px; }
.house__line--water .house__handle { transform-origin: 420px 288px; }
.house__drop { fill: var(--cyan); opacity: 0; }
.house__panel { fill: #13243B; stroke: rgba(234, 242, 255, 0.7); stroke-width: 1.2; }
.house__panel-lit { opacity: 0; transition: opacity 0.6s ease; }
.house__panel-lines { stroke: rgba(6, 11, 20, 0.55); stroke-width: 1; }
.house__sun-core { fill: rgba(140, 180, 255, 0.18); transition: fill 0.6s; }
.house__rays { stroke: #FFD27A; stroke-width: 2; opacity: 0; transform-box: view-box; transform-origin: 418px 58px; transition: opacity 0.6s; }
.house__hub circle { fill: var(--cyan); }
.house__hub-wave { stroke: var(--cyan); stroke-width: 1.5; opacity: 0.25; }

[data-light="on"] .house__glow { opacity: 0.95; }
[data-light="on"] .house__doorway { fill: #F2B24E; }
[data-curtain="on"] .house__curtain { transform: scaleX(0.14); }
[data-boiler="on"] .house__flame { opacity: 1; transform: none; animation: flicker 1.4s ease-in-out infinite; }
[data-boiler="on"] .house__heat { animation: heat 2.2s ease-out infinite; }
[data-gas="on"] .house__line--gas .house__flow { opacity: 1; animation: flow-r 0.7s linear infinite; }
[data-gas="off"] .house__line--gas .house__handle { transform: rotate(90deg); stroke: #8A9BB5; }
[data-water="on"] .house__line--water .house__flow { opacity: 1; animation: flow-l 0.7s linear infinite; }
[data-water="on"] .house__drop { animation: drop 1.4s ease-in infinite; }
[data-water="off"] .house__line--water .house__handle { transform: rotate(90deg); stroke: #8A9BB5; }
[data-lock="on"] .house__led { fill: var(--cyan); }
[data-lock="off"] .house__leaf { transform: scaleX(0.7); }
[data-solar="on"] .house__panel-lit { opacity: 0.9; }
[data-solar="on"] .house__sun-core { fill: #FFD27A; }
[data-solar="on"] .house__rays { opacity: 1; animation: spin 18s linear infinite; }
.device.is-live .house__hub-wave--1 { animation: hub 2s ease-out infinite; }
.device.is-live .house__hub-wave--2 { animation: hub 2s ease-out 0.3s infinite; }

@media (max-width: 1000px) {
  .device__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .device { padding: 8px; border-radius: 22px; }
  .device__bar { padding: 8px 8px 12px; font-size: 10px; letter-spacing: 0.12em; }
  .device__screen { padding: 18px 16px; border-radius: 14px; }
  .tiles { gap: 8px; }
  .tile { min-height: 104px; padding: 14px; }
  .tile--wide { min-height: 0; }
  .tile__name { font-size: 14px; margin-top: 14px; }
  .tile--wide .tile__name { margin-top: 0; }
}

/* =================================================== 10. ACCESS CONTROL */

.access__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.access__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.access__img {
  position: absolute;
  left: 0;
  top: -4%;
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: 58% 50%;
  filter: url(#duo) contrast(1.08); /* stock photo toned to the palette: the white padlock graphics recede */
  will-change: transform; /* own layer: the parallax shift never repaints the filtered photo */
}
.access__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0) 45%, rgba(6, 11, 20, 0.75)),
    linear-gradient(90deg, rgba(6, 11, 20, 0.35), transparent 40%);
  pointer-events: none;
}
.access__frame .vf { --vf-c: rgba(234, 242, 255, 0.8); z-index: 1; }
.access__chip {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(92, 225, 230, 0.45);
  border-radius: 6px;
  background: rgba(6, 11, 20, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.access__content .label { margin-bottom: 26px; }
.spec { margin-top: 36px; border-top: 1px solid var(--line); }
.spec__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  transition: color 0.3s;
}
.spec__row > span:last-child { transition: transform 0.5s var(--ease-out); }
.spec__code {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.spec__row:hover .spec__code { color: var(--accent-text); }
.spec__row:hover > span:last-child { transform: translateX(6px); }

@media (max-width: 900px) {
  .access__grid { grid-template-columns: 1fr; }
  .access__frame { aspect-ratio: 16 / 11; }
}
@media (max-width: 600px) {
  .access__chip { left: 20px; bottom: 20px; font-size: 10px; }
  .access__frame .vf--lg { inset: 10px; --vf-l: 18px; }
  .spec__row { grid-template-columns: 60px minmax(0, 1fr); font-size: 15px; }
}

/* ============================================================ 11. REPAIR */

.repair {
  background: linear-gradient(180deg, var(--bg), #081221);
  overflow: hidden;
}
.repair__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.repair__content .label { margin-bottom: 26px; }
.repair__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.rcard {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  isolation: isolate;
}
.rcard__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-text);
}
.rcard__title { margin-top: 22px; font-family: var(--font-display); font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }
.rcard__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.repair__visual { display: grid; place-items: center; }
.motor { width: 100%; max-width: 520px; height: auto; fill: none; overflow: visible; }
.motor__fins { stroke: rgba(140, 180, 255, 0.2); stroke-width: 12; stroke-dasharray: 3 13.23; }
.motor__case { stroke: rgba(140, 180, 255, 0.5); stroke-width: 1.5; }
.motor__lam { stroke: rgba(140, 180, 255, 0.16); stroke-width: 1; }
.motor__slot { fill: rgba(217, 139, 69, 0.14); stroke: rgba(217, 139, 69, 0.75); stroke-width: 1; }
.motor__turns { stroke: #D98B45; stroke-width: 2.4; stroke-dasharray: 1.6 4; opacity: 0.85; } /* copper windings */
.motor__line { stroke: rgba(140, 180, 255, 0.35); stroke-width: 1; }
.motor__core { fill: #0B1626; stroke: rgba(140, 180, 255, 0.4); stroke-width: 1.2; }
.motor__bars { stroke: rgba(47, 155, 255, 0.7); stroke-width: 5; stroke-linecap: round; }
.motor__shaft { fill: #13243B; stroke: rgba(234, 242, 255, 0.6); stroke-width: 1.5; }
.motor__key { fill: var(--bg); stroke: rgba(234, 242, 255, 0.6); stroke-width: 1; }
.motor__hub { fill: var(--cyan); }
.motor__cross { stroke: rgba(140, 180, 255, 0.3); stroke-width: 1; }
.motor__leader { stroke: rgba(234, 242, 255, 0.45); stroke-width: 1; }
.motor__pin { fill: var(--bg); stroke: var(--cyan); stroke-width: 1.5; }
.motor__label {
  fill: var(--ink-soft);
  stroke: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.motor__label--cu { fill: #E7A065; }
/* the rotor turns a little when the drawing comes into view, and again on hover */
.motor__rotor { transform-box: view-box; transform-origin: 200px 200px; transition: transform 2.6s var(--ease-out) 0.3s; }
.repair__visual.is-visible .motor__rotor { transform: rotate(30deg); }
.repair__visual:hover .motor__rotor { transform: rotate(75deg); transition-delay: 0s; }

@media (max-width: 900px) {
  .repair__grid { grid-template-columns: 1fr; }
  .repair__visual { order: -1; }
  .motor { max-width: 400px; }
}
@media (max-width: 600px) {
  .repair__cards { grid-template-columns: 1fr; }
  .motor { max-width: 340px; }
}

/* =================================================== 12. PROCESS & TERMS */

.steps { position: relative; }
.steps__line {
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc((100% - 96px) / 5 - 22px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(47, 155, 255, 0.12));
  transform-origin: 0 50%;
}
.js .steps__line[data-reveal] { opacity: 1; transform: scaleX(0); }
.js .steps__line[data-reveal].is-visible { transform: scaleX(1); transition: transform 2s var(--ease-out); }
.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg);
}
.step__title { margin-top: 26px; font-family: var(--font-display); font-size: 16.5px; line-height: 1.3; letter-spacing: -0.015em; }
.step__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(56px, 8vw, 104px);
}
.term {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  isolation: isolate;
}
.term__icon { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.term__value {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(36px, 2.2vw + 12px, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.18em;
}
.term__value--word { font-size: clamp(30px, 1.8vw + 12px, 42px); letter-spacing: -0.04em; padding-top: 0.15em; }
.term__dash { color: var(--ink-soft); margin: 0 0.04em; }
.term__plus { color: var(--accent); }
.term__unit { font-size: 0.32em; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.term__title { margin-top: 18px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.term__text { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

.slogan {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(40px, 5vw, 72px) 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.slogan__mark {
  width: clamp(54px, 5vw, 76px);
  height: auto;
  aspect-ratio: 1812 / 1422;
  margin: 0 auto 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 32;
  filter: drop-shadow(0 0 12px rgba(47, 155, 255, 0.5));
}
.slogan__text {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw + 6px, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.slogan__by {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .steps__line { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(47, 155, 255, 0.12)); transform-origin: 50% 0; }
  .js .steps__line[data-reveal] { transform: scaleY(0); }
  .js .steps__line[data-reveal].is-visible { transform: scaleY(1); }
  .steps__list { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; }
  .step__num { grid-row: span 2; }
  .step__title { margin-top: 10px; }
  .step__text { margin-top: 6px; }
}
@media (max-width: 600px) {
  .terms { gap: 10px; }
  .term { padding: 18px 16px; }
  .term__icon { width: 22px; height: 22px; }
  .term__value { margin-top: 18px; font-size: 30px; }
  .term__unit { flex-basis: 100%; margin-top: 6px; font-size: 13px; letter-spacing: 0.02em; }
  .term__value--word { font-size: clamp(20px, 6.8vw, 24px); } /* "Written" fits a 320px phone too */
  .term__title { margin-top: 12px; font-size: 14px; }
  .term__text { font-size: 13.5px; }
}

/* =================================================== 13. TENDER & DETAILS */

.tender { padding-top: 0; }
.tender__panel {
  position: relative;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(47, 155, 255, 0.16), transparent 60%),
    linear-gradient(rgba(140, 180, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(140, 180, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--surface);
  overflow: hidden;
}
.tender__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tender__content .label { margin-bottom: 26px; }
.ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 32px;
}
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; }
.ticks .icon { margin-top: 1px; color: var(--cyan); }
.tender__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.req {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(6, 11, 20, 0.78); /* solid enough on its own: no backdrop blur to redraw while scrolling */
}
.req::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.req__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.req__title { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.015em; }
.req__row {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.req__row:last-child { border-bottom: 0; }
.req__row dt {
  padding-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.req__row dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.req__row dd a { transition: color 0.25s; overflow-wrap: normal; } /* the e-mail breaks before "@", not inside the domain */
.req__row dd a:hover { color: var(--accent); }
.req__row--copy dd { padding-right: 44px; }
.req__row--stack dd { flex-direction: column; align-items: flex-start; }
.req__copy {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color 0.25s, background-color 0.25s;
}
.req__copy:hover { color: var(--ink); background: rgba(47, 155, 255, 0.14); }
.req__copy .icon { width: 16px; height: 16px; }
/* copy feedback lives in the button that was pressed */
.req__ic-done, .req__done { display: none; }
.is-done .req__ic-copy, .is-done .req__label { display: none; }
.is-done .req__ic-done, .is-done .req__done { display: inline-block; }
.req__copy-all.is-done { border-color: rgba(92, 225, 230, 0.6); color: var(--cyan); }
.req__copy.is-done { color: var(--cyan); background: rgba(92, 225, 230, 0.12); }


@media (max-width: 1180px) {
  .tender__grid { grid-template-columns: 1fr; }
  .req { max-width: 640px; }
}
@media (max-width: 600px) {
  .tender__panel { border-radius: 20px; padding: 26px 18px; }
  .ticks { grid-template-columns: 1fr; }
  .req { padding: 20px 16px; }
  .req__head { flex-wrap: wrap; }
  .req__row { grid-template-columns: 1fr; gap: 4px; }
  .req__row--copy dd { padding-right: 38px; font-size: 14px; }
  .tender__cta .btn { width: 100%; }
}

/* =================================================== 14. CONTACT & FORM */

.contact__promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(92, 225, 230, 0.35);
  border-radius: 999px;
  background: rgba(92, 225, 230, 0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.contact__promise .icon { color: var(--cyan); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "info form" "map map";
  column-gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.contact__info { grid-area: info; }
.contact__grid > .form { grid-area: form; }
.contact__grid > .map { grid-area: map; aspect-ratio: auto; height: clamp(300px, 26vw, 400px); margin-top: clamp(40px, 5vw, 64px); }
.clist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.clist__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.clist__icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clist__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.clist__v { margin-top: 4px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.clist__v + .clist__v { margin-top: 2px; }

.map {
  position: relative;
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(140, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(140, 180, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 50% 50%, rgba(47, 155, 255, 0.18), transparent 45%);
  color: var(--accent);
}
.map__fallback .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.map__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.92) contrast(0.9);
}
.map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 60, 130, 0.18);
  mix-blend-mode: color;
  pointer-events: none;
}
.map .vf { opacity: 1; transform: none; --vf-c: rgba(47, 155, 255, 0.9); z-index: 1; }
.map__open {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.3s;
}
.map__open:hover { border-color: var(--accent); }

.form {
  position: relative;
  padding: clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.form__title { font-family: var(--font-display); font-size: clamp(18px, 1vw + 10px, 22px); font-weight: 400; line-height: 1.6; letter-spacing: -0.02em; margin-bottom: 26px; }
.form__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field label span { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 11, 20, 0.55);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: rgba(138, 155, 181, 0.7); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(140, 180, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6, 11, 20, 0.8);
  box-shadow: 0 0 0 4px rgba(47, 155, 255, 0.18);
}
.select { position: relative; }
.select::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 44px; cursor: pointer; }
.field select option { background: #0B1422; color: #EAF2FF; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }
.form__sent {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 225, 230, 0.4);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: rgba(92, 225, 230, 0.06);
}
.form__sent .icon { color: var(--cyan); }
.form.is-sent .form__sent { display: flex; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "info" "form" "map"; row-gap: 32px; }
  .contact__grid > .map { height: auto; aspect-ratio: 16 / 10; margin-top: 0; }
}
@media (max-width: 600px) {
  .form__row--2 { grid-template-columns: 1fr; gap: 0; }
  .form__actions .btn { width: 100%; }
  .contact__grid > .map { aspect-ratio: 4 / 3.4; }
}

/* ============================================================ 15. FAMILY */

.family { padding: 0 0 clamp(72px, 9vw, 120px); }
.family__head {
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}
.family__head > .label { padding-top: 0.35em; }
.family__title { font-family: var(--font-display); font-size: clamp(20px, 1.2vw + 12px, 28px); letter-spacing: -0.03em; }
.family__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.family__list > li { display: flex; }
.fam {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--ease-out);
}
a.fam:hover { border-color: rgba(47, 155, 255, 0.45); background: var(--surface-2); transform: translateY(-3px); }
.fam__mark { width: 34px; height: auto; aspect-ratio: 1812 / 1422; fill: none; stroke: var(--ink-soft); stroke-width: 60; transition: stroke 0.3s; }
a.fam:hover .fam__mark { stroke: var(--accent); }
.fam--current { border-color: rgba(47, 155, 255, 0.35); background: linear-gradient(160deg, rgba(47, 155, 255, 0.12), transparent 60%), var(--surface); }
.fam--current .fam__mark { fill: var(--accent); stroke: none; }
.fam__name { margin-top: 22px; font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.fam__text { margin-top: 8px; margin-bottom: 22px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.fam__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.fam__link .icon { width: 15px; height: 15px; color: var(--accent); transition: transform 0.45s var(--ease-out); }
a.fam:hover .fam__link .icon { transform: translate(3px, -3px); }
.fam__link--here { color: var(--cyan); gap: 10px; }

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

/* ============================================================ 16. FOOTER */

.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 32px;
  border-top: 1px solid var(--line);
  background: #040810;
  overflow: hidden;
  isolation: isolate;
}
.footer__watermark {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -26%;
  width: min(62vw, 760px);
  height: auto;
  aspect-ratio: 1812 / 1422;
  fill: none;
  stroke: rgba(47, 155, 255, 0.1);
  stroke-width: 6;
  pointer-events: none;
}
.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(28px, 5vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.footer__cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw + 8px, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.footer__cta-side { display: grid; gap: 18px; justify-items: start; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__hours { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.footer__hours .icon { margin-top: 2px; color: var(--accent); }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
}
.footer__desc { margin-top: 22px; max-width: 34ch; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.footer__slogan { margin-top: 18px; font-family: var(--font-display); font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.footer__h {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer__links { display: grid; gap: 6px; font-size: 15px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 32px; }
.footer__links a.u-link { display: inline; padding: 6px 0 2px; line-height: 2; }
.footer__links--plain li { color: var(--ink-soft); line-height: 1.6; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer__top-link { color: var(--ink-soft); }

@media (max-width: 1000px) {
  .footer__cta { grid-template-columns: 1fr; align-items: start; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__cta-actions .btn { flex: 1 1 100%; }
}

/* ================================================== 17. FLOATING BUTTONS */

.fab {
  position: fixed;
  z-index: 90;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.4s ease, visibility 0.4s, transform 0.6s var(--ease-out);
}
.js .fab:not(.is-visible), .fab.is-tucked { opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0); }
.nav-open .fab { opacity: 0; visibility: hidden; }
.fab__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.fab__btn .icon { width: 24px; height: 24px; }
.fab__btn--wa {
  background: #25D366;
  color: #04240F;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.7);
}
.fab__btn:hover { transform: translateY(-3px); }

@media (max-width: 760px) {
  .fab__btn { width: 50px; height: 50px; border-radius: 14px; }
}

/* ======================================================== 18. KEYFRAMES */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes title-rise { from { transform: translate3d(0, 0.3em, 0); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes ping { 0% { opacity: 0.8; transform: scale(0.6); } 80%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes scan { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 18%, 0); } }
@keyframes blink-soft { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.16; } }
@keyframes wipe-window { from { transform: translate3d(0, -100%, 0); } to { transform: none; } }
@keyframes wipe-content { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes radar-in { from { opacity: 0; transform: scale(0.92) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes vf-focus {
  0% { opacity: 0; transform: scale(1.06); }
  55% { opacity: 1; transform: scale(0.992); }
  100% { opacity: 1; transform: none; }
}
@keyframes vf-refocus {
  0% { transform: scale(1); }
  35% { transform: scale(1.04); opacity: 0.5; }
  70% { transform: scale(0.99); opacity: 1; }
  100% { transform: none; }
}
@keyframes blip {
  0% { opacity: 1; transform: scale(1.6); }
  8% { opacity: 1; transform: scale(1); }
  45% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(0.94, 1.08); } 60% { transform: scale(1.05, 0.95); } }
@keyframes heat { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes flow-r { from { transform: translateX(0); } to { transform: translateX(10px); } }
@keyframes flow-l { from { transform: translateX(0); } to { transform: translateX(-10px); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes hub { 0% { opacity: 0.2; } 40% { opacity: 1; } 100% { opacity: 0.2; } }
@keyframes pin-ping { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.35); } }
@keyframes ic-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes ic-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes ic-flicker { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(0.95, 1.07); } 70% { transform: scale(1.04, 0.96); } }
@keyframes ic-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(0.6px); } }

/* Looping animations pause while their [data-pause-offscreen] container is off-screen
   (class set by core.js; base.css covers elements, this adds their ::before / ::after) */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }

/* =================================================== 19. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .hero__scan, .cam-view__scan, .radar__sweep, .radar__reveal::after { display: none; }
  .radar__reveal, .radar__reveal-in { animation: none; }
  .radar__blip { opacity: 0.6; }
  .plan, .cam__cone, .motor__rotor { transition: none !important; }
  .plan.is-active .cam__ring { animation: none; }
}
