/*
Theme Name: Wisetica
Theme URI: https://wisetica.com
Author: Wisetica
Description: Theme for Wisetica: 24/7 CCTV remote monitoring and CCTV installation. Night "control room" design in the rahijan.com palette, with a night-shift camera feed hero.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: wisetica
*/

:root {
  /* rahijan.com palette */
  --paper: #0B1220;
  --surface: #121B2E;
  --deep: #070D18;
  --ink: #E8EDF7;
  --blue: #FFB454;
  --blue-deep: #F29A2E;
  --blue-wash: rgba(255, 180, 84, .12);
  --on-accent: #0B1220;
  --live: #2FD18A;
  --line: #22304A;
  --muted: #8B96AC;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --r-sm: 6px;
  --r-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--blue); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-sm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--blue); background: var(--blue); color: var(--on-accent); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img, .brand svg { width: 34px; height: 34px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.nav a:hover { background: var(--blue-wash); color: var(--blue); }
.header-call { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); min-height: 44px; padding: 0 14px; font: 600 15px var(--font); color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(60% 70% at 85% 40%, rgba(255,180,84,.08), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero-lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; margin: 0; padding: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* Monitoring wall: the one memorable thing */
.wall { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.wall-bar { display: flex; justify-content: space-between; align-items: center; color: #9FB0C6; font-size: 13px; padding: 2px 4px 12px; }
.wall-bar strong { color: #fff; font-weight: 600; }
.wall-status { display: inline-flex; align-items: center; gap: 7px; color: #CDEFE0; }
.wall-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(47,209,138,.18); }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; padding: 12px;
  border-radius: 8px; text-decoration: none; color: #E6EEF8; overflow: hidden;
  background: linear-gradient(160deg, #16223A, #101A2D); border: 1px solid #22304A; transition: border-color .4s, background .4s;
}
.tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.tile-top { display: flex; justify-content: space-between; font-size: 11px; color: #8DA2BD; }
.tile-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); align-self: center; }
.tile-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.tile:hover, .tile.is-active { border-color: var(--blue); background: linear-gradient(160deg, rgba(255,180,84,.22), rgba(255,180,84,.08)); color: #FFF4E3; }
.tile:hover .tile-top, .tile.is-active .tile-top { color: #FFD9A3; }

/* Services */
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.service-group h3 { font-size: 15px; font-weight: 600; color: var(--blue); padding-bottom: 12px; border-bottom: 2px solid var(--blue); margin-bottom: 8px; letter-spacing: 0; }
.service-link { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.service-link strong { display: block; font-size: 20px; margin-bottom: 4px; }
.service-link span { color: var(--muted); font-size: 16px; }
.service-link:hover strong { color: var(--blue); }

/* Process (a real sequence, so it is numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--on-accent); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); margin: 0; }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.industries li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 24px; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote--feature { grid-column: span 2; background: linear-gradient(160deg, rgba(255,180,84,.14), rgba(255,180,84,.04)), var(--surface); color: var(--ink); border-color: rgba(255,180,84,.45); }
.quote blockquote { margin: 0 0 20px; font-size: 17px; }
.quote--feature blockquote { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.quote figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: 16px; }
.quote--feature figcaption { color: var(--muted); }
.quote--feature figcaption strong { color: var(--blue); }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; color: var(--muted); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; list-style: none; margin: 0; padding: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.member img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.member h3 { font-size: 18px; margin: 0 0 2px; }
.member p { color: var(--muted); margin: 0; font-size: 15px; }
.member a { color: inherit; text-decoration: none; }
.member--founder p { color: var(--blue); font-weight: 600; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.office { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.office h3 { font-size: 22px; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 14px; }
.office a { font-weight: 600; }
.office-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 68ch; }

/* Quote form */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); }
.contact-aside p { color: var(--muted); }
.contact-aside ul { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-aside li { padding: 12px 0; border-top: 1px solid var(--line); }
.form { display: grid; gap: 16px; background: var(--surface); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: 400 16px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-wash); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 500; margin-bottom: 16px; }
.notice--ok { background: rgba(47,209,138,.12); color: #7BE6B4; border: 1px solid rgba(47,209,138,.35); }
.notice--err { background: rgba(255,77,77,.12); color: #FF9A9A; border: 1px solid rgba(255,77,77,.35); }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero p { font-size: 20px; color: var(--muted); max-width: 52ch; margin: 0; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 720px; font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-lg); }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.service-aside { position: sticky; top: 96px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.service-aside h2 { font-size: 20px; }
.service-aside ul { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service-aside li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.service-aside li a[aria-current] { color: var(--blue); font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.post-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-card div { padding: 20px; }
.post-card h2 { font-size: 21px; }
.post-card p { color: var(--muted); margin: 0; font-size: 16px; }
.post-card time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.cta-band { background: var(--blue); color: var(--on-accent); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #3A2A12; }
.cta-band .btn { background: var(--on-accent); color: var(--blue); border-color: var(--on-accent); }
.cta-band .btn:hover { background: #000; color: var(--blue); }

/* Footer */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 28px; margin-top: clamp(64px, 9vw, 112px); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h2 { color: var(--ink); font-size: 16px; margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { color: var(--ink); font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }

/* Responsive */
@media (max-width: 1020px) {
  .header-call { display: none; }
  .service-groups, .quotes { grid-template-columns: 1fr 1fr; }
  .quote--feature { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--pad) 16px; }
  .site-header .btn { display: none; }
  .hero .wrap, .contact, .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .service-groups, .quotes, .offices, .steps, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .quote--feature { grid-column: auto; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .btn { transition: none; }
}

/* ── v2.0 components (merged from Additional CSS) ───────────────── */

/* Quotes inside articles and pages */
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p { margin: 0 0 10px; font-size: 19px; line-height: 1.55; color: var(--ink); }
.prose blockquote cite { display: block; font-style: normal; font-size: 15px; color: var(--muted); }

/* Linked industry chips */
.industries li.has-link { padding: 0; border-color: rgba(255,180,84,.45); }
.industries li.has-link a { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; border-radius: 999px; }
.industries li.has-link a span { color: var(--blue); }
.industries li.has-link:hover { background: var(--blue-wash); border-color: var(--blue); }

/* UX polish v1 */
/* Header lifts once scrolled */
.site-header { transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.6); background: rgba(11,18,32,.96); }

/* Testimonials: feature quote full width, then even rows of three */
.quote--feature { grid-column: 1 / -1; }

/* Disabled button state (form sending) */
.btn[disabled] { opacity: .7; cursor: progress; }

/* Mobile action bar (hidden on larger screens) */
.action-bar { display: none; }
@media (max-width: 860px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7,13,24,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    border-radius: var(--r-sm); border: 1.5px solid var(--line); color: var(--ink);
    font-weight: 600; font-size: 15px; text-decoration: none;
  }
  .action-bar a.ab-primary { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
  .ab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

  /* Hero buttons: full width, equal */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Testimonials: swipe sideways instead of a long scroll */
  .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 10px; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote, .quote--feature { flex: 0 0 86%; scroll-snap-align: start; }
}

/* CCTV-only v1 */
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.svc-card:hover { border-color: var(--blue); color: var(--ink); }
.svc-card h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 10px; }
.svc-card p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
.svc-more { margin-top: auto; color: var(--blue); font-weight: 600; }
#process .timeline-band { margin: 0; }
#process .timeline-band h2 { font-size: clamp(30px, 4vw, 44px); }
.zone-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.zone-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.zone-card h3 { font-size: 22px; margin: 0 0 6px; }
.zone-card p { color: var(--muted); margin: 0; }
.zone-dot { position: absolute; top: 30px; right: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 5px rgba(47,209,138,.18); }
.zone-card .zone-clock { margin-top: 14px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .svc-cards, .zone-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc-card { transition: none; } }

/* Homepage: time-zone line is covered by its own section */
#process .zones { display: none; }

/* Hero feed v1: night-shift camera + response log */
.feed { margin: 0; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.feed-cam { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 70% 30%, #16233a 0%, #0b1424 60%, #070d18 100%); }
.feed-cam .vf { position: absolute; width: 18px; height: 18px; border-color: var(--blue); border-style: solid; z-index: 2; }
.feed-cam .vf.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.feed-cam .vf.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.feed-cam .vf.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.feed-cam .vf.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.feed-top { position: absolute; top: 14px; left: 36px; right: 36px; display: flex; justify-content: space-between; z-index: 2; font-size: 12px; letter-spacing: .06em; color: #9FB0C6; font-variant-numeric: tabular-nums; }
.feed-top .rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; margin-right: 6px; vertical-align: 1px; animation: feedRec 1.6s infinite; }
.feed-scene { position: absolute; inset: 12% 6% 6%; width: 88%; height: 82%; }
.feed-scene .ln { fill: none; stroke: #3a5274; stroke-width: 1.5; }
.feed-scene .ln.dim { stroke: #24364f; }
.feed-scene .dot { fill: #3a5274; }
.feed-scene .motion { fill: rgba(255,180,84,.08); stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 4; animation: feedMotion 2.4s ease-in-out infinite; }
.feed-cam .scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(to bottom, transparent, rgba(255,180,84,.06), transparent); animation: feedScan 5s linear infinite; }
.feed-cam::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.feed-log { list-style: none; margin: 14px 4px 6px; padding: 0; display: grid; gap: 6px; font-size: 14px; min-height: 154px; }
.feed-log li { display: flex; gap: 12px; color: var(--ink); }
.feed-log li time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 64px; }
.feed-log li.ok { color: var(--live); }
.feed-log.is-playing li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.feed-log.is-playing li.on { opacity: 1; transform: none; }
.feed figcaption { margin: 4px 4px 0; font-size: 12px; color: var(--muted); }
@keyframes feedRec { 50% { opacity: .25; } }
@keyframes feedMotion { 50% { opacity: .35; } }
@keyframes feedScan { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .feed-top .rec, .feed-scene .motion, .feed-cam .scan { animation: none; } .feed-cam .scan { display: none; } }
