/* Security service page (design plan: service opener = typographic + framed cluster "monitor wall"). */

/* ---------- opener ---------- */
.sec-opener { position: relative; overflow: clip; isolation: isolate; padding: calc(var(--head-h) + clamp(24px, 4vh, 48px)) 0 clamp(24px, 3vh, 40px); min-height: min(80vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.opener-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.opener-copy h1 { font-size: clamp(2.2rem, 3.7vw, 3.9rem); line-height: 1; margin-bottom: .45em; }
.opener-copy h1 em { display: block; }
.feed-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: min(52vh, 520px); }
.feed { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #060c11; isolation: isolate; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.feed-img { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); visibility: hidden; }
.feed-img.is-on { clip-path: inset(0 0 0 0); z-index: 1; visibility: visible; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; animation: feed-push 14s ease-in-out infinite alternate; filter: saturate(.85) contrast(1.05); }
.feed:nth-child(2) .feed-img img { animation-delay: -4s; } .feed:nth-child(3) .feed-img img { animation-delay: -8s; } .feed:nth-child(4) .feed-img img { animation-delay: -11s; }
@keyframes feed-push { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-2%, 1%); } }
.feed::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("../img/texture-scan.svg") 0 0 / 8px 4px repeat, linear-gradient(180deg, rgba(6,12,17,.5), rgba(6,12,17,0) 30%, rgba(6,12,17,0) 60%, rgba(6,12,17,.75)); }
.feed-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: var(--sodium); box-shadow: 0 0 18px 4px rgba(242,163,58,.55); opacity: 0; pointer-events: none; }
.feed figcaption { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: #fff; }
.feed-cam { color: var(--sodium); font-weight: 750; letter-spacing: .04em; }
.feed-time { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.feed-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e2463a; animation: blink 1.6s steps(2) infinite; }
.facts { list-style: none; margin: clamp(26px, 4vh, 44px) 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.22); transform-origin: left; transform: scaleX(var(--line, 1)); }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--display); font-size: 1rem; line-height: 1.35; color: rgba(255,255,255,.82); }
.facts b { display: block; color: #fff; font-weight: 750; font-stretch: 108%; font-size: 1.1rem; }
.facts svg { width: 26px; height: 26px; color: var(--sodium); flex: none; margin-top: 2px; }

/* ---------- what we can cover: list + fixed preview pane ---------- */
.cover-split { display: grid; grid-template-columns: minmax(0, 1fr) min(36vw, calc(var(--media-cap) * .72)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.cover-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.cover-list li { border-bottom: 1px solid var(--line-light); }
.cover-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 14px; align-items: start; padding: 10px 4px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); position: relative; isolation: isolate; }
.cover-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(242,163,58,.18), rgba(242,163,58,0)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); border-radius: var(--r); }
.cover-item.is-active::before, .cover-item:hover::before, .cover-item:focus-visible::before { transform: scaleX(1); }
.cover-n { font-weight: 700; color: var(--sodium-deep); font-size: 1rem; padding-top: 4px; }
.cover-t strong { display: block; font-family: var(--display); font-stretch: 110%; font-weight: 760; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.2; }
.cover-t span { display: block; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); margin-top: 2px; }
.cover-go { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--rb); background: #E4E8E3; transition: background-color .4s; }
.cover-item svg { width: 20px; height: 20px; color: var(--sodium-deep); transform: translateX(-4px); opacity: .5; transition: transform .4s var(--ease), opacity .4s; }
.cover-item.is-active svg, .cover-item:hover svg { transform: none; opacity: 1; }
.cover-item.is-active .cover-go { background: var(--sodium); }
.cover-item.is-active .cover-go svg { color: var(--ink); }
.cover-pane { width: 100%; justify-self: start; position: sticky; top: calc(var(--head-h) + 16px); }
.cover-pane .cover-stage { aspect-ratio: 4 / 4.4; max-height: min(58vh, 580px); position: relative; background: var(--night); }
.cover-shot { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); visibility: hidden; }
.cover-shot.is-on { clip-path: inset(0 0 0 0); z-index: 1; visibility: visible; }
.cover-shot img { width: 100%; height: 100%; object-fit: cover; }
.cover-stage::after { z-index: 2; }

/* ---------- tabs ---------- */
.tabs { margin-top: clamp(18px, 2.4vw, 30px); }
.tab-list { position: relative; display: inline-flex; gap: 6px; padding: 6px; background: rgba(255,255,255,.7); border: 1px solid var(--line-light); border-radius: var(--r); margin-bottom: clamp(22px, 3vw, 36px); }
.tab-list button { position: relative; z-index: 1; min-height: 48px; padding: 0 22px; background: none; border: 0; border-radius: calc(var(--r) - 3px); font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 1.02rem; color: var(--ink-soft); cursor: pointer; transition: color .4s; }
.tab-list button[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: 120px; background: var(--ink); border-radius: calc(var(--r) - 3px); }
.tab-panel { display: grid; grid-template-columns: min(46vw, 640px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-frame { width: 100%; justify-self: start; }
.tab-frame .frame-img { aspect-ratio: 16 / 10.5; }
.tab-frame img { height: 100%; }
.tab-copy h3 { font-size: clamp(1.5rem, 2.1vw, 2.1rem); margin-bottom: .45em; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-family: var(--display); font-weight: 560; font-size: 1.05rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 4px; background: var(--sodium) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314202A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- pinned site plan ---------- */
.plan-scene { position: relative; overflow: clip; isolation: isolate; color: #fff; }
.plan-stage { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 20px) 0 32px; }
.plan-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.plan-copy h2 { margin-bottom: .5em; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 12px 14px; border-radius: var(--r); transition: background-color .5s; }
.plan-steps li .num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); border: 1.5px solid rgba(255,255,255,.3); font-weight: 750; color: rgba(255,255,255,.75); transition: background-color .5s, color .5s, border-color .5s; }
.plan-steps h3 { margin: 6px 0 4px; font-size: clamp(1.1rem, 1.35vw, 1.35rem); color: rgba(255,255,255,.6); transition: color .5s; }
.plan-steps p { margin: 0; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.78); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.plan-steps li.is-on { background: rgba(255,255,255,.06); }
.plan-steps li.is-on .num { background: var(--sodium); border-color: var(--sodium); color: var(--ink); }
.plan-steps li.is-on h3 { color: #fff; }
.plan-steps li.is-on p { max-height: 8em; opacity: 1; }
.plan-map { position: relative; }
.site-plan { width: 100%; height: auto; max-height: min(66vh, 620px); border-radius: var(--r); background: rgba(6,16,20,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.plan-blocks rect { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.plan-blocks text, .plan-gate text { fill: rgba(255,255,255,.7); font-family: var(--display); font-weight: 650; font-size: 18px; text-anchor: middle; }
.plan-fence { fill: none; stroke: #fff; stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 2 0; }
.plan-gate rect { fill: var(--sodium); }
.plan-zones circle { fill: url(#zone-grad); }
.plan-route { fill: none; stroke: var(--sodium); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.plan-checks circle { fill: var(--petrol); stroke: var(--sodium); stroke-width: 3; }
.po-dot { fill: #fff; stroke: var(--sodium); stroke-width: 4; }
.po-glow { fill: rgba(242,163,58,.35); }
.plan-cap { margin: 12px 0 0; display: flex; gap: 14px; align-items: baseline; font-family: var(--display); font-weight: 700; color: var(--sodium); font-variant-numeric: tabular-nums; }
.plan-cap-t { color: rgba(255,255,255,.85); font-weight: 600; }

/* ---------- honest quote ---------- */
.honest-grid { display: grid; grid-template-columns: min(40vw, calc(var(--media-cap) * .9)) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.honest-grid .frame { justify-self: start; width: 100%; }
.honest-grid .frame .frame-img { aspect-ratio: 4 / 3.6; }
.honest-grid .frame::before { inset: 14px 14px -14px -14px; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: clamp(18px, 2.4vw, 30px); align-items: start; }
.faq-item { background: #fff; border-radius: var(--r); box-shadow: 0 12px 30px rgba(14,27,36,.07); overflow: hidden; }
.faq-item h3 { margin: 0; font-size: 1.12rem; font-stretch: 106%; }
.faq-item button { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.faq-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: var(--rb); background: var(--mist); color: var(--ink); transition: transform .5s var(--ease), background-color .4s; }
.faq-ico svg { width: 18px; height: 18px; }
.faq-item button[aria-expanded="true"] .faq-ico { transform: rotate(45deg); background: var(--sodium); }
.faq-a { padding: 0 20px; }
.faq-a p { margin: 0 0 18px; }
.js .faq-a { height: 0; overflow: hidden; }
.js .faq-item.is-open .faq-a { height: auto; }
.rm .faq-a, .no-js .faq-a { height: auto; }

/* ---------- photo CTA band ---------- */
.cta-band { position: relative; overflow: clip; isolation: isolate; padding: clamp(96px, 14vw, 180px) 0; color: #fff; }
.cta-photo { position: absolute; inset: -12% 0; z-index: -2; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,58,64,.94), rgba(18,58,64,.7) 55%, rgba(18,58,64,.35)); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 360px at var(--cx, 70%) 40%, rgba(255,190,110,.22), transparent 70%); animation: cta-torch 9s ease-in-out infinite alternate; }
@keyframes cta-torch { 0% { --cx: 62%; transform: translateX(0); } 100% { transform: translateX(-12%); } }
.cta-inner .lede { max-width: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .opener-grid, .cover-split, .tab-panel, .plan-grid, .honest-grid, .faq { grid-template-columns: 1fr; }
  .feed-wall { height: min(40vh, 380px); }
  .cover-pane { position: relative; top: 0; order: -1; width: min(100%, 520px); }
  .cover-pane .cover-stage { aspect-ratio: 16 / 10; }
  .plan-stage { padding-top: calc(var(--head-h) + 8px); }
  .plan-copy h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: .3em; }
  .site-plan { max-height: 34vh; }
  .plan-steps li { padding: 6px 8px; gap: 10px; grid-template-columns: 34px 1fr; }
  .plan-steps li .num { width: 32px; height: 32px; }
  .plan-steps h3 { margin: 4px 0 2px; font-size: 1.02rem; }
  .plan-steps p { font-size: .95rem; }
  .plan-map { order: -1; }
  .honest-grid .frame, .tab-frame { width: min(100%, 560px); }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .feed-wall { gap: 8px; }
  .feed figcaption { font-size: .78rem; left: 8px; right: 8px; bottom: 6px; gap: 5px; }
  .feed-time { display: none; }
  .tab-list { display: flex; }
  .tab-list button { flex: 1; padding: 0 10px; }
}

/* reduced motion / no JS: everything shown, nothing moving */
.rm .feed-img img, .rm .cta-band::after, .rm .feed-time::before { animation: none; }
.rm .plan-steps p, .no-js .plan-steps p { max-height: none; opacity: 1; }
.rm .plan-officer, .no-js .plan-officer { display: none; }

/* opener text waits for the web fonts so the wide display face never reflows it (head script adds .fonts-in, 1.5 s net) */
.js:not(.fonts-in) .opener-copy { opacity: 0; }
.opener-copy { transition: opacity .4s ease; }
.rm .plan-cap-t { display: none; }
