/* Security Solutions (premium, grammar "Site walk"). Shared chrome: ../premium/premium.css. */
:root {
  --gate-ar: 2752 / 1536;
  --wh-ar: 3168 / 1344;
  --amber-soft: rgb(242 168 29 / 0.2);
  --amber-line: #E09A12;
  --plan-dim: rgb(22 23 26 / 0.16);
}
@media (max-aspect-ratio: 3/4) { :root { --gate-ar: 1152 / 2048; } }

/* ------------------------------------------------------------ site plan ---- */
.plan__svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan .p-ground { fill: #FFFFFF; }
.plan .p-fence { fill: none; stroke: var(--plan-dim); stroke-width: 1.6; stroke-dasharray: 3 2; transition: stroke 500ms var(--sc-ease-out); }
.plan .p-gate { stroke: var(--plan-dim); stroke-width: 2.4; stroke-linecap: round; }
.plan .p-bldg { fill: #F1F1EF; stroke: rgb(22 23 26 / 0.22); stroke-width: 0.8; }
.plan .p-door { fill: var(--plan-dim); transition: fill 400ms var(--sc-ease-out); }
.plan .p-cone { fill: var(--sc-accent); opacity: 0; transition: opacity 500ms var(--sc-ease-out); }
.plan .p-sensor { fill: var(--plan-dim); transition: fill 400ms var(--sc-ease-out); }
.plan .p-fire { fill: var(--plan-dim); transition: fill 400ms var(--sc-ease-out); }
.plan .p-here { fill: var(--sc-ink); stroke: #FFFFFF; stroke-width: 1.6; transform: translate(var(--hx, 110px), var(--hy, 132px)); transition: transform 600ms var(--sc-ease-out); }
.lit-fence .plan .p-fence { stroke: var(--amber-line); stroke-dasharray: none; }
.lit-fence .plan .p-gate { stroke: var(--sc-ink); }
.lit-door .plan .p-door { fill: var(--amber-line); }
.cam-1 .plan .p-cone--1, .cam-2 .plan .p-cone--2, .cam-3 .plan .p-cone--3, .cam-4 .plan .p-cone--4 { opacity: 0.42; }
.lit-layers .plan .p-sensor { fill: var(--sc-ink); }
.lit-layers .plan .p-fire { fill: #C23B22; }

.plan--mini {
  position: fixed; z-index: 50; left: 1rem; top: 50%; margin-top: -9rem;
  width: 7.25rem; padding: 0.6rem; border-radius: 14px;
  background: rgb(255 255 255 / 0.9); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--sc-e3), var(--sc-edge);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity 300ms var(--sc-ease-out), translate 300ms var(--sc-ease-out), visibility 0s linear 300ms;
}
.show-plan .plan--mini { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.plan__stops { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.plan__stops a { display: block; padding: 0.2rem 0.15rem; }
.plan__stops a { font-size: 0.74rem; font-weight: 500; color: var(--sc-ink-soft); text-decoration: none; }
.plan__stops a[aria-current="step"] { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .plan__stops a:hover { color: var(--sc-ink); } }

/* ------------------------------------------------------------ the gate ---- */
.gate [data-sc-stage] { background: #EEF1F2; overflow: hidden; }
.gate { --push: calc(1 + var(--sc-p, 0) * 0.05); }
.layer { position: absolute; inset: 0; }
.scene--gate {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 100svh * 2752 / 1536); aspect-ratio: var(--gate-ar);
  translate: -50% -50%;
  transform: translate3d(calc(var(--mx, 0) * 6px), 0, 0) scale(var(--push, 1)); transform-origin: 50% 70%;
}
@media (max-aspect-ratio: 3/4) { .scene--gate { width: max(100vw, 100svh * 1152 / 2048); } }
.scene--gate img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* the wall + gate as its own plane: same plate, clipped below the wall top, and it
   only ever travels upward so the plate's own wall edge never shows beneath it */
.wall .scene--gate {
  clip-path: polygon(0 54.6%, 38.8% 50%, 40% 50%, 40% 46.6%, 65.9% 46.6%, 65.9% 42%, 100% 42%, 100% 100%, 0 100%);
  transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--sc-p, 0) * -46px), 0) scale(var(--push, 1));
}
@media (max-aspect-ratio: 3/4) { .wall .scene--gate { clip-path: polygon(0 71.4%, 37.6% 71.4%, 37.6% 72.2%, 71% 72.2%, 71% 73.4%, 100% 73.4%, 100% 100%, 0 100%); } }
.haze { background: linear-gradient(to bottom, rgb(255 255 255 / 0) 30%, rgb(244 246 247 / 0.35) 52%, rgb(255 255 255 / 0) 64%); pointer-events: none; }
.gate .fg { position: absolute; z-index: 4; right: -3vw; bottom: -9vh; width: clamp(15rem, 27vw, 27rem); pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--sc-p, 0) * -120px), 0); }
.gate .fg img { width: 100%; height: auto; max-width: none; filter: blur(2.5px); }
.gate .wash { position: absolute; inset: 0 34% 22% 0; z-index: 5; pointer-events: none;
  background: radial-gradient(115% 100% at 0% 10%, rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.9) 48%, rgb(255 255 255 / 0) 82%); }
.gate-copy { position: absolute; z-index: 20; left: var(--gut); top: calc(var(--head-h) + clamp(2rem, 7vh, 5rem)); max-width: 40rem; }
.gate-copy .eyebrow { margin-bottom: 1rem; color: #8A5A00; }
.gate-copy h1 { font-size: clamp(2.6rem, 1.4rem + 3.3vw, 4.9rem); max-width: 12ch; }
.gate-copy .lede { margin-top: 1.25rem; max-width: 36ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); line-height: 1.55; color: #33363C; }
.cred { margin-top: 1.5rem; display: flex; gap: 0.5rem; align-items: flex-start; max-width: 40ch; font-size: 0.9rem; line-height: 1.45; color: #33363C; }
.cred svg { flex: none; margin-top: 0.1rem; color: #8A5A00; }
.gate-actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ----------------------------------------------------------- the fence ---- */
.fence { position: relative; padding-block: clamp(5rem, 12vh, 9rem); background: #FFFFFF; overflow: hidden; }
.trace { position: absolute; left: 0; right: 0; top: clamp(2.5rem, 6vh, 4rem); width: 100%; height: 40px; }
.trace path { fill: none; stroke: var(--amber-line); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - min(1, var(--sc-p, 0) * 2.2) * 1000); }
.trace path:nth-child(2) { stroke-dashoffset: calc(1000 - min(1, var(--sc-p, 0) * 2.0) * 1000); opacity: 0.7; }
.trace path:nth-child(3) { stroke-dashoffset: calc(1000 - min(1, var(--sc-p, 0) * 1.8) * 1000); opacity: 0.45; }
.fence__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.fence h2, .entrance h2, .layers h2 { font-size: clamp(2.1rem, 1.3rem + 2.5vw, 3.6rem); max-width: 13ch; }
.fence__copy > p, .entrance__copy > p { margin-top: 1.25rem; max-width: 38ch; font-size: 1.1rem; line-height: 1.6; color: #3A3D44; }
.svc { margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid var(--sc-ink); max-width: 38ch; }
.svc h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.svc p { margin-top: 0.45rem; color: var(--sc-ink-soft); line-height: 1.55; }
.fence__fig, .entrance__fig { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--sc-e3); }
.fence__fig { aspect-ratio: 16 / 10; }
.fence__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 92% 18%; transform: scale(1.9); transform-origin: 88% 22%; }

/* -------------------------------------------------------- the entrance ---- */
.entrance { padding-block: clamp(4rem, 10vh, 8rem); background: #FFFFFF; }
.entrance__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.entrance__fig { aspect-ratio: 4 / 3; }
.entrance__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------- inside: aim the cameras ---- */
.inside [data-sc-stage] { background: #F2F2F0; overflow: hidden; }
.wh { position: absolute; inset: 0; }
.wh__scene {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 100svh * 3168 / 1344); aspect-ratio: var(--wh-ar);
  translate: calc(-50% + var(--pan-x, 0px)) -50%;
  transition: translate 900ms var(--sc-ease-out);
}
.wh__scene > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(0.92); }
.wh__cones { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cone { fill: var(--amber-soft); stroke: rgb(224 154 18 / 0.75); stroke-width: 0.15; vector-effect: non-scaling-stroke;
  opacity: 0; transform-origin: var(--ox) var(--oy); transform: scale(0.2); transition: opacity 500ms var(--sc-ease-out), transform 900ms var(--sc-ease-out); }
.cone[data-cam="1"] { --ox: 63%; --oy: 24%; } .cone[data-cam="2"] { --ox: 47%; --oy: 30%; }
.cone[data-cam="3"] { --ox: 76.5%; --oy: 22%; } .cone[data-cam="4"] { --ox: 55%; --oy: 40%; }
.cone.is-on { opacity: 1; transform: none; }
.mount {
  position: absolute; left: var(--x); top: var(--y); width: 2.75rem; height: 2.75rem; translate: -50% -50%;
  border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: transparent;
}
.mount::before { content: ""; position: absolute; inset: 0.55rem; border-radius: 50%; background: rgb(255 255 255 / 0.92); box-shadow: 0 0 0 1.5px var(--sc-ink), var(--sc-e2); }
.mount::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.55rem; height: 0.55rem; translate: -50% -50%; border-radius: 50%; background: var(--sc-ink); }
.mount:not(.is-on)::before { animation: beacon 2.2s var(--sc-ease-in-out) infinite; }
@keyframes beacon { 50% { box-shadow: 0 0 0 1.5px var(--sc-ink), 0 0 0 9px rgb(242 168 29 / 0.28); } }
.mount.is-on::before { background: var(--sc-accent); box-shadow: 0 0 0 1.5px #8A5A00, var(--sc-e2); }
.mount.is-on { cursor: default; }
.wash--inside { position: absolute; z-index: 5; inset: 0 auto 0 0; width: 52%; pointer-events: none;
  background: linear-gradient(to right, rgb(255 255 255 / 0.93), rgb(255 255 255 / 0.82) 55%, rgb(255 255 255 / 0)); }
.inside-copy { position: absolute; z-index: 20; left: var(--gut); top: calc(var(--head-h) + clamp(2rem, 7vh, 5rem)); max-width: 30rem; }
.inside-copy h2 { font-size: clamp(2.3rem, 1.3rem + 2.9vw, 4.2rem); max-width: 11ch; }
.inside-copy { display: grid; grid-template-rows: auto auto; }
.inside-lede { grid-area: 2 / 1; margin-top: 1.25rem; max-width: 32ch; font-size: 1.1rem; line-height: 1.55; color: #33363C; }

.monitor {
  position: absolute; z-index: 20; right: var(--gut); bottom: clamp(1.25rem, 4vh, 2.5rem); width: min(25rem, 34vw);
  padding: 1rem; border-radius: 18px; background: rgb(255 255 255 / 0.94); box-shadow: var(--sc-e3), var(--sc-edge);
}
.monitor__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.82rem; font-weight: 600; }
.monitor__note { font-weight: 500; color: var(--sc-ink-soft); font-size: 0.75rem; }
.tiles { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #2A2C31;
}
.tile::before {
  content: ""; position: absolute; inset: 0; background: var(--wh-img) var(--fx) var(--fy) / calc(var(--z) * 100%) auto no-repeat;
  filter: grayscale(0.25) contrast(1.05); opacity: 0; transition: opacity 600ms var(--sc-ease-out);
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent 55%); }
.tile.is-on::before { opacity: 1; }
.tile__name { position: absolute; z-index: 1; left: 0.5rem; bottom: 0.4rem; font-size: 0.7rem; font-weight: 600; color: #FFFFFF; }
.tile:not(.is-on) .tile__name { color: rgb(255 255 255 / 0.7); }
.tile__tag { position: absolute; z-index: 1; right: 0.4rem; top: 0.4rem; font-size: 0.64rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 999px;
  background: var(--sc-accent); color: var(--sc-ink); opacity: 0; translate: 0 -4px; transition: opacity 400ms var(--sc-ease-out), translate 400ms var(--sc-ease-out); }
.is-ai .tile.is-on .tile__tag { opacity: 1; translate: 0 0; }
.monitor__readout { margin-top: 0.8rem; font-size: 0.92rem; color: var(--sc-ink-soft); }
.monitor__readout b { color: var(--sc-ink); font-weight: 600; }
.all-cams .monitor__readout b { color: #8A5A00; }
.monitor__ai { margin-top: 0.6rem; font-size: 0.86rem; line-height: 1.5; color: var(--sc-ink-soft); }
.monitor__ai strong { color: var(--sc-ink); }

/* ---------------------------------------------------------- the layers ---- */
.layers { padding-block: clamp(5rem, 12vh, 9rem) clamp(4rem, 8vh, 6rem); background: #FFFFFF; }
.layers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.layers__lede { margin-top: 1rem; color: var(--sc-ink-soft); font-size: 1.1rem; max-width: 30ch; line-height: 1.55; }
.layers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.layers__list li { padding-top: 1.25rem; border-top: 2px solid var(--sc-ink); }
.layers__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: #FFF4DE; color: #8A5A00; margin-bottom: 1rem; }
.layers__list h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.layers__list p { margin-top: 0.5rem; color: var(--sc-ink-soft); line-height: 1.55; }

/* ------------------------------------------------------------ the team ---- */
.team [data-sc-stage] { background: var(--sc-surface); display: flex; align-items: center; overflow: hidden; }
.rail { display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--gut) 18vw; width: max-content; }
.rail__item { flex: none; width: clamp(16rem, 24vw, 22rem); }
.rail__item--head { width: clamp(20rem, 34vw, 30rem); align-self: center; padding-right: clamp(1rem, 3vw, 3rem); }
.rail__item--head h2 { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem); max-width: 11ch; }
.rail__item--head p { margin-top: 1.25rem; color: #3A3D44; font-size: 1.1rem; line-height: 1.6; max-width: 32ch; }
.rail__item--photo { margin: 0; width: clamp(22rem, 36vw, 34rem); border-radius: 18px; overflow: hidden; box-shadow: var(--sc-e3); }
.rail__item--photo img { width: 100%; height: 100%; object-fit: cover; }
.step { background: #FFFFFF; border-radius: 18px; padding: 1.5rem; box-shadow: var(--sc-e2); display: flex; flex-direction: column; min-height: 20rem; box-sizing: border-box; }
.step__n { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A5A00; }
.step h3 { margin-top: auto; padding-top: 3rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 0.6rem; color: var(--sc-ink-soft); line-height: 1.55; }
.step--keep { width: clamp(19rem, 28vw, 26rem); }
.step--keep h3 { padding-top: 1.5rem; }
.step--keep ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.step--keep li { color: var(--sc-ink-soft); line-height: 1.45; font-size: 0.95rem; }
.step--keep b { color: var(--sc-ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .rail__item:not(:first-child) { opacity: max(0.55, min(1, calc(var(--sc-p, 0) * 9 - (var(--k, 0) - 1) * 0.9 + 0.9))); }
}

/* ------------------------------------------------------------ the close ---- */
.close { background: #FFFFFF; position: relative; z-index: 2; }
.covered { padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.plan--big { padding: clamp(1rem, 2vw, 1.5rem); border-radius: 22px; background: var(--sc-surface); }
.covered h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); max-width: 12ch; }
.covered .lead { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.6; color: var(--sc-ink-soft); max-width: 40ch; }
.why { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.why li { padding-left: 1.4rem; position: relative; color: var(--sc-ink-soft); line-height: 1.5; }
.why li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sc-accent); }
.why b { color: var(--sc-ink); font-weight: 600; }
.close .consult { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ------------------------------------------------------ tablet & phone ---- */
@media (min-width: 1281px) {
  .fence .wrap, .entrance .wrap, .layers .wrap { padding-left: max(var(--gut), 9.75rem); }
  .inside-copy { left: max(var(--gut), 9.75rem); }
  .rail { padding-left: max(var(--gut), 9.75rem); }
}
@media (max-width: 1280px) { .plan--mini { display: none; } }
@media (max-width: 1080px) {
  .monitor { width: min(22rem, 42vw); }
}
@media (max-width: 760px) {
  .gate .wash { inset: 0 0 36% 0; background: linear-gradient(to bottom, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0)); }
  .gate-copy { right: var(--gut); top: calc(var(--head-h) + 1.25rem); }
  .gate-copy h1 { font-size: 2.45rem; }
  .gate-copy .lede { font-size: 1rem; }
  .cred { font-size: 0.82rem; }
  .gate .fg { width: 9.5rem; right: -8vw; bottom: -6vh; }
  .fence__grid, .entrance__grid, .layers__grid, .covered { grid-template-columns: 1fr; }
  .entrance__fig { order: 2; }
  .layers__list { grid-template-columns: 1fr; }
  .trace { top: 1.5rem; }

  .wh__scene { top: calc(var(--head-h) + 10.75rem); translate: calc(-50% + var(--pan-x, 0px)) 0; width: auto; height: 40svh; }
  .wash--inside { display: none; }
  .inside-copy { top: calc(var(--head-h) + 0.75rem); right: var(--gut); }
  .inside-copy h2 { font-size: 1.9rem; max-width: none; }
  .inside-lede { font-size: 0.95rem; margin-top: 0.5rem; }
  .monitor { left: var(--gut); right: var(--gut); width: auto; bottom: 1rem; padding: 0.75rem; }
  .monitor__ai { display: none; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: 1; }
  .tile__name { font-size: 0.6rem; left: 0.35rem; right: 0.3rem; }
  .tile__tag { display: none; }

  .rail__item { width: 78vw; }
  .rail__item--head { width: 84vw; }
  .rail__item--photo { width: 84vw; }
  .step { min-height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene--gate, .wall .scene--gate, .gate .fg { transform: none !important; }
  .cone, .tile::before, .tile__tag, .plan .p-here, .wh__scene { transition-duration: 1ms !important; }
  .mount::before { animation: none !important; }
  .trace path { stroke-dashoffset: 0 !important; }
}

.plan .p-label { font: 600 6px/1 var(--sc-font-text); fill: var(--sc-ink-soft); letter-spacing: 0.04em; }
