/* ==========================================================================
   RLW Technology — stylesheet
   Palette, type and layout tokens live in :root. Change them in one place
   and the whole site follows.
   ========================================================================== */

:root {
  /* Colour */
  --ink:        #0A1526;   /* deepest navy — hero + footer */
  --navy:       #11253F;   /* panels on dark */
  --blue:       #1A6FD4;   /* primary brand blue */
  --blue-light: #2E8BFF;   /* highlights on dark */
  --orange:     #F2591F;   /* action colour — used sparingly */
  --paper:      #FFFFFF;
  --mist:       #EEF2F7;   /* section tint */
  --line:       #D7E0EA;   /* hairlines on light */
  --line-dark:  rgba(255,255,255,.14);
  --steel:      #56697F;   /* body text on light */
  --slate:      #B7C6D8;   /* body text on dark */

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --gutter: 24px;
  --max: 1180px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; max-width: 72ch; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  padding: 14px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d84812; color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--slate);
  font-size: .86rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 42px; flex-wrap: wrap;
}
.topbar-hours { display: flex; align-items: center; gap: 9px; }
.topbar-hours svg { flex: none; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar a { color: var(--slate); }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 12px; align-items: center; }
.socials a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.09);
}
.socials a:hover { background: var(--blue); }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); letter-spacing: -.02em; display: block;
}
.brand-tag { font-size: .72rem; color: var(--steel); letter-spacing: .04em; }

.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font-weight: 500; color: var(--ink); font-size: .98rem;
  padding: 6px 0; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform .2s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--blue); }

.header-call { display: flex; align-items: center; gap: 11px; }
.header-call .ring {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--blue); display: grid; place-items: center; flex: none;
}
.header-call-text { line-height: 1.25; }
.header-call .call-label { display: block; font-size: .74rem; color: var(--steel); }
.header-call strong {
  font-family: var(--display); font-size: 1.1rem; color: var(--ink);
  letter-spacing: -.01em;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/flair-duo.png");
  background-repeat: no-repeat;
  background-position: 105% 40%;
  background-size: 1100px auto;
  opacity: .16;
  mask-image: linear-gradient(100deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.hero .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 56px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-lead {
  font-size: 1.12rem; color: var(--slate); max-width: 48ch; margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-dark);
}
.hero-facts li {
  padding: 18px 20px 4px 0; font-size: .92rem; color: var(--slate);
  border-right: 1px solid var(--line-dark);
}
.hero-facts li:last-child { border-right: 0; }
.hero-facts strong {
  display: block; font-family: var(--display); font-weight: 700;
  color: #fff; font-size: 1.02rem; margin-bottom: 2px;
}

/* Hero schematic */
.schematic { width: 100%; height: auto; }
.sweep {
  transform-box: view-box;
  transform-origin: 250px 210px;
  animation: sweep 8s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.4s ease-out infinite;
}
.pulse-2 { animation-delay: 1.05s; }
.pulse-3 { animation-delay: 2.1s; }
@keyframes pulse {
  0%   { opacity: .85; transform: scale(.35); }
  100% { opacity: 0;   transform: scale(1.25); }
}

/* ---------- Section furniture ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--slate); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service tiles ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.tile {
  background: var(--paper); padding: 34px 30px 30px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s ease;
  position: relative;
}
.tile:hover { background: #F8FAFC; }
.tile h3 { margin: 0; }
.tile p { font-size: .96rem; margin: 0; color: var(--steel); }
.tile .icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 8px; color: var(--blue);
  transition: border-color .2s ease, color .2s ease;
}
.tile:hover .icon { border-color: var(--orange); color: var(--orange); }
.tile-feature {
  grid-column: 1 / -1;
  background: var(--navy); color: var(--slate);
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 14px 46px; align-items: center; padding: 40px 34px;
}
.tile-feature .tile-link { margin-top: 14px; padding-top: 0; }
.tile-feature:hover { background: #163055; }
.tile-feature h3 { color: #fff; font-size: 1.5rem; }
.tile-feature p { color: var(--slate); max-width: 52ch; }
.tile-feature .icon { border-color: var(--line-dark); color: var(--blue-light); }
.tile-feature:hover .icon { border-color: var(--orange); color: var(--orange); }
.tile-link {
  margin-top: auto; padding-top: 16px; font-weight: 600; font-size: .92rem;
  color: var(--blue);
}
.tile-feature .tile-link { color: var(--blue-light); }

/* ---------- Split panel (mission / who we serve) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.rule-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: baseline;
}
.rule-list li:first-child { border-top: 1px solid var(--line); }
.rule-list b {
  font-family: var(--display); color: var(--ink); font-size: 1.02rem;
  min-width: 132px; flex: none;
}
.rule-list span { font-size: .96rem; }
.section-dark .rule-list li { border-color: var(--line-dark); }
.section-dark .rule-list b { color: #fff; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value {
  border-left: 3px solid var(--blue); padding: 4px 0 4px 20px;
}
.value:nth-child(3n+2) { border-left-color: var(--orange); }
.value h3 { font-size: 1.08rem; margin-bottom: 4px; }
.value p { font-size: .94rem; margin: 0; }

/* ---------- Detailed service blocks (services page) ---------- */
.detail {
  scroll-margin-top: 110px;
  display: grid; grid-template-columns: 300px 1fr; gap: 48px;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.detail:last-child { border-bottom: 1px solid var(--line); }
.detail-head h2 { font-size: 1.75rem; margin-bottom: 10px; }
.detail-head .icon-lg { color: var(--blue); margin-bottom: 18px; }
.detail-body p { margin-bottom: 18px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.checks li {
  position: relative; padding-left: 26px; font-size: .95rem;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px; border-radius: 2px;
  background: var(--blue);
}
.checks li:nth-child(even)::before { background: var(--orange); }

/* ---------- Page banner ---------- */
.banner {
  background: var(--ink); color: #fff; padding: 66px 0 60px;
  position: relative; overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/flair-orange.png");
  background-repeat: no-repeat;
  background-position: 115% 50%;
  background-size: 780px auto;
  opacity: .14;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}
.banner .container { position: relative; }
.banner h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 12px; }
.banner p { color: var(--slate); max-width: 56ch; margin: 0; }
.crumb { font-size: .86rem; color: var(--slate); margin-bottom: 16px; }
.crumb a { color: var(--slate); }
.crumb a:hover { color: #fff; }

/* ---------- CTA strip ---------- */
.cta {
  background: var(--blue); color: #fff; padding: 62px 0;
}
.cta .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.88); margin: 0; }
.cta .btn-primary:hover { background: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(26,111,212,.14);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .84rem; margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

.info-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; background: var(--mist);
}
.info-card + .info-card { margin-top: 20px; }
.info-list li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .icon { color: var(--blue); flex: none; margin-top: 3px; }
.info-list b { display: block; color: var(--ink); font-family: var(--display); }
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 20px; line-height: 0;
}
.map-frame iframe { width: 100%; height: 280px; border: 0; }

.alert {
  padding: 16px 18px; border-radius: var(--radius); margin-bottom: 26px;
  border-left: 4px solid var(--blue); background: var(--mist); font-size: .95rem;
}
.alert-good { border-left-color: #1E9E62; }
.alert-bad { border-left-color: var(--orange); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--slate); padding: 68px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px;
}
.footer h4 {
  color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--display);
}
.footer a { color: var(--slate); font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 10px; }
.footer-brand img { height: 52px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: .86rem;
}


/* ---------- DN-Guard (product identity: cyan + magenta on ink) ---------- */
:root {
  --dng-cyan: #22D3EE;
  --dng-magenta: #E879F9;
  --dng-blue: #3B82F6;
}

.dng {
  background: var(--ink);
  color: var(--slate);
  position: relative; overflow: hidden;
}
.dng::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(232,121,249,.16), transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(34,211,238,.14), transparent 45%);
}
.dng::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/flair-navy.png") no-repeat 6% 118% / 620px auto;
  opacity: .5;
}
.dng .container { position: relative; z-index: 1; }
.dng h2 { color: #fff; }
.dng-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.dng-mark {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: 2.1rem;
  letter-spacing: .14em; margin: 0 0 18px;
  background: linear-gradient(95deg, var(--dng-blue) 0%, var(--dng-magenta) 42%, var(--dng-blue) 66%, var(--dng-magenta) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.dng-mark span { font-weight: 600; }

.btn-dng { background: var(--dng-cyan); color: #06222A; }
.btn-dng:hover { background: #fff; color: var(--ink); }

.dng-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
}
.dng-stats li { background: var(--ink); padding: 26px 22px; }
.dng-stats b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.85rem; color: var(--dng-cyan); line-height: 1.1; margin-bottom: 6px;
}
.dng-stats span { font-size: .9rem; color: var(--slate); }
.dng-note { font-size: .86rem; margin: 16px 0 0; color: #8698AC; }

/* DN-Guard page specifics */
.dng-hero { padding: 76px 0 70px; }
.dng-hero .dng-mark { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.dng-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.dng-hero p { color: var(--slate); }
.dng-hero .crumb { color: var(--slate); }

.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.deploy-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; background: var(--paper);
}
.deploy-card h3 { margin-bottom: 6px; }
.deploy-card .tag {
  font-size: .82rem; color: var(--blue); font-weight: 600; margin-bottom: 14px; display: block;
}
.deploy-card ul li {
  padding: 9px 0 9px 24px; position: relative; font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.deploy-card ul li:last-child { border-bottom: 0; }
.deploy-card ul li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--blue);
}

.spec-list li {
  display: grid; grid-template-columns: 210px 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem;
}
.spec-list li:first-child { border-top: 1px solid var(--line-dark); }
.spec-list b { font-family: var(--display); color: #fff; font-weight: 700; }

/* ---------- Partners ---------- */
.partners {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.partners li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 18px; font-size: .92rem; color: var(--ink);
  background: var(--paper);
  transition: border-color .18s ease, background .18s ease;
}
.partners li:has(a):hover { border-color: var(--orange); background: #FFF6F2; }
.partners li a { color: var(--ink); font-weight: 500; }
.partners li a:hover { color: var(--orange); }

/* ---------- DN-Guard flow diagram (replaces the intro video) ---------- */
.dng-flow-wrap {
  max-width: 760px; margin: 0 auto; padding: 34px 20px 10px;
  position: relative; z-index: 1;
}
.dng-flow { width: 100%; height: auto; overflow: visible; }
.dng-flow .rail {
  fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round;
}
.dng-flow .node-box {
  fill: rgba(255,255,255,.045); stroke: rgba(255,255,255,.22); stroke-width: 1.2;
}
.dng-flow .node-label {
  font-family: var(--body); font-size: 12.5px; fill: var(--slate);
}
.dng-flow .hub-ring { fill: none; stroke: var(--dng-cyan); stroke-width: 1.6; }
.dng-flow .hub-ring-dim { opacity: .35; }

.dng-flow .icon-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.dng-flow .icon-device { stroke: var(--slate); }
.dng-flow .icon-hub { stroke: var(--dng-cyan); }

.dng-flow .mark-blocked {
  stroke: var(--orange); opacity: .3; transform-box: fill-box; transform-origin: center;
  animation: dngBlockedFlash 4.2s ease-in-out infinite;
}
.dng-flow .mark-allowed {
  stroke: #34D399; opacity: .3; transform-box: fill-box; transform-origin: center;
  animation: dngAllowedFlash 4.2s ease-in-out infinite;
}

.dng-flow .dot {
  transform-box: fill-box; transform-origin: center;
}
.dng-flow .dot-blocked {
  fill: var(--orange);
  offset-path: path("M52,120 L232,120 C270,120 270,58 300,58");
  animation: dngDotBlocked 4.2s ease-in-out infinite;
}
.dng-flow .dot-allowed {
  fill: #34D399;
  offset-path: path("M52,120 L232,120 L560,120");
  animation: dngDotAllowed 4.2s ease-in-out infinite;
  animation-delay: .35s;
}

@keyframes dngDotBlocked {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  46%  { offset-distance: 100%; opacity: 1; }
  52%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dngDotAllowed {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  62%  { offset-distance: 100%; opacity: 1; }
  70%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dngBlockedFlash {
  0%, 40% { opacity: .3; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.15); }
  62%, 100% { opacity: .3; transform: scale(1); }
}
@keyframes dngAllowedFlash {
  0%, 56% { opacity: .3; transform: scale(1); }
  66%     { opacity: 1;  transform: scale(1.15); }
  78%, 100% { opacity: .3; transform: scale(1); }
}

/* ---------- Video ---------- */
.video-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 24px 60px -30px rgba(10,21,38,.45);
}
.video-frame video { width: 100%; height: auto; display: block; }
.video-frame.ratio-4-3 video { aspect-ratio: 4 / 3; }
.video-frame.ratio-16-9 video { aspect-ratio: 16 / 9; }
.video-caption { font-size: .88rem; color: var(--steel); margin: 14px 2px 0; }
.section-dark .video-caption, .dng .video-caption { color: var(--slate); }
.video-frame.on-dark { border-color: var(--line-dark); }

/* ---------- Document downloads ---------- */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; background: var(--paper);
  transition: border-color .18s ease;
}
.doc:hover { border-color: var(--orange); }
.doc svg { flex: none; color: var(--orange); margin-top: 2px; }
.doc b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.02rem; }
.doc span { font-size: .88rem; color: var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .dng-grid { grid-template-columns: 1fr; gap: 42px; }
  .deploy { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .header .container { flex-wrap: wrap; min-height: 70px; }
  .header-call { margin-left: auto; }
  .nav {
    flex-basis: 100%; display: none; order: 4;
    border-top: 1px solid var(--line); padding: 10px 0 18px;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 14px 2px; }
  .nav-list a::after { display: none; }
  .topbar-hours { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 62px 0 70px; }
  .values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .tile-feature { padding: 32px 26px; }
  .values { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .rule-list li { flex-direction: column; gap: 4px; }
  .dng-stats { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .header-call-text { display: none; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.02rem; }
  .brand img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
