/* SentinelX — site.css
   Swiss / International Typographic Style: one grotesque family, a strict
   12-column grid, flush-left text, hairline rules, black + white + one red. */

:root {
    --ink: #111111;
    --paper: #ffffff;
    --grey: #6b6b6b;
    --rule: #dcdcdc;
    --plate: #ececec;
    --red: #e2231a;
    --green: #17a34a;

    --max: 1440px;
    --gut: clamp(16px, 3.2vw, 48px);
    --gap: clamp(16px, 2vw, 24px);
    --section: clamp(88px, 11vw, 168px);

    --f: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f);
    font-size: 17px;
    line-height: 1.5;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* ── Layout ─────────────────────────────────────────── */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section--rule { border-top: 1px solid var(--ink); padding-top: 24px; }

/* Section head: index label in the first three columns, heading in the rest */
.head { padding-top: 20px; border-top: 1px solid var(--ink); margin-bottom: clamp(48px, 7vw, 96px); }
.head .label { grid-column: 1 / span 3; }
.head .h2 { grid-column: 4 / -1; }
.head .lead { grid-column: 4 / span 7; margin-top: 28px; }

/* ── Type ───────────────────────────────────────────── */

.display {
    font-size: clamp(56px, 11.5vw, 184px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.h2 {
    font-size: clamp(34px, 5vw, 76px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.h3 {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
}

.label b { color: var(--ink); font-weight: 600; }

.muted { color: var(--grey); }
.red { color: var(--red); }

/* ── Header ─────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand { display: block; line-height: 0; }
.brand img { height: 16px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.nav .btn { color: var(--paper); }
.nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--paper); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px 0;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--red); border-color: var(--red); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.5; cursor: wait; }

.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--red); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── Hero ───────────────────────────────────────────── */

.hero { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); }
.hero .label { margin-bottom: clamp(28px, 4vw, 48px); }
.hero .display { margin-left: -0.04em; }

.hero-meta { margin-top: clamp(40px, 6vw, 88px); align-items: end; }
.hero-meta .lead { grid-column: 1 / span 6; }
.hero-meta .facts { grid-column: 8 / -1; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 12px 0 0; }
.facts dt { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.facts dd { margin: 8px 0 0; font-size: 13px; color: var(--grey); }

.plate { background: var(--plate); overflow: hidden; }
.plate img { width: 100%; }

.caption { display: flex; justify-content: space-between; gap: 24px; margin-top: 12px; }

/* ── Statement ──────────────────────────────────────── */

.statement { grid-column: 4 / -1; }
.statement .h2 { max-width: 15em; }
.statement p + p { margin-top: 24px; }
.statement .lead { max-width: 34em; margin-top: 36px; }

/* ── Steps (4-up) ───────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); }
.step { border-top: 1px solid var(--ink); padding-top: 16px; }
.step .num { font-size: clamp(48px, 5vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: clamp(32px, 5vw, 72px); }
.step .h3 { margin-bottom: 12px; }
.step p { color: var(--grey); max-width: 22em; }
.step--accent .num { color: var(--red); }

/* Table of contents (platform hero) */
.hero-meta .toc { grid-column: 8 / -1; border-top: 1px solid var(--ink); }
.toc a { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; }
.toc a span { color: var(--grey); font-weight: 400; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--red); }

.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps--5 .num { font-size: clamp(32px, 3.4vw, 52px); }

/* ── Rows (index lists) ─────────────────────────────── */

.rows { border-bottom: 1px solid var(--rule); }
.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding: 22px 0;
    border-top: 1px solid var(--rule);
    align-items: baseline;
}
.row:first-child { border-top-color: var(--ink); }
.row .label { grid-column: 1 / span 3; }
.row .h3 { grid-column: 4 / span 4; }
.row p { grid-column: 8 / -1; color: var(--grey); }

/* From → to comparison rows */
.shift .from { grid-column: 4 / span 4; color: var(--grey); text-decoration: line-through; text-decoration-thickness: 1px; }
.shift .to { grid-column: 8 / -1; font-weight: 600; }
.shift .label { grid-column: 1 / span 3; }

/* ── Product tiles ──────────────────────────────────── */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); row-gap: 56px; }
.tile { text-decoration: none; display: block; }
.tile .plate { aspect-ratio: 4 / 3; }
.tile .plate img { height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .plate img { transform: scale(1.03); }
.tile-body { border-top: 1px solid var(--ink); margin-top: 16px; padding-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.tile-body .h3 { grid-column: 1; }
.tile-body .label { grid-column: 2; grid-row: 1; }
.tile-body p { grid-column: 1 / -1; color: var(--grey); }

/* ── Product feature (platform page) ────────────────── */

.product { padding-top: 20px; border-top: 1px solid var(--ink); scroll-margin-top: 80px; }
.product + .product { margin-top: var(--section); }
.product .label { grid-column: 1 / span 3; }
.product-title { grid-column: 4 / -1; }
.product-media { grid-column: 1 / -1; margin: clamp(32px, 5vw, 64px) 0; }
.product-media--narrow { grid-column: 4 / -1; }
.product-copy { grid-column: 4 / span 4; }
.product-copy p + p { margin-top: 16px; }
.product-spec { grid-column: 9 / -1; }

.spec { border-top: 1px solid var(--ink); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.spec li span:first-child { color: var(--grey); }
.spec li span:last-child { text-align: right; font-weight: 500; }

.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.plain-list li:first-child { border-top: 1px solid var(--ink); }
.plain-list b { font-weight: 600; }

/* Colourway switcher */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--rule);
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
}
.swatch i { width: 16px; height: 16px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch:hover { border-color: var(--ink); }

.swap-img { transition: opacity 0.25s; }
.swap-img.is-loading { opacity: 0.2; }

/* ── Table ──────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { border-top: 1px solid var(--ink); border-bottom-color: var(--ink); font-size: 13px; font-weight: 500; color: var(--grey); }
.table td:first-child { width: 40%; }
.table .yes { font-weight: 600; }
.table .yes::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; vertical-align: 1px; }
.table .no { color: var(--grey); }

/* ── Big stats ──────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
.stat { border-top: 1px solid var(--ink); padding-top: 16px; }
.stat b { display: block; font-size: clamp(56px, 7vw, 112px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.stat span { display: block; margin-top: 14px; color: var(--grey); font-size: 15px; max-width: 18em; }

/* ── Story (about) ──────────────────────────────────── */

.story .row .h3 { grid-column: 4 / span 3; }
.story .row p { grid-column: 7 / -1; color: var(--ink); }
.story .row p + p { margin-top: 0; }
.story .row .text { grid-column: 7 / -1; }
.story .row .text p + p { margin-top: 14px; }

.quote { grid-column: 4 / -1; }
.quote blockquote { margin: 0; }
.quote cite { display: block; margin-top: 28px; font-style: normal; }

.photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); align-items: start; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--plate); }
.photos figure { margin: 0; }
.photos figure:first-child img { aspect-ratio: auto; height: 100%; }

.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border: 1px solid currentColor; }
.badge--done { color: var(--ink); }
.badge--doing { color: var(--red); }
.badge--next { color: var(--grey); }

/* ── CTA band ───────────────────────────────────────── */

.cta { background: var(--ink); color: var(--paper); padding: var(--section) 0; }
.cta .label { color: rgba(255,255,255,0.55); grid-column: 1 / span 3; }
.cta .h2 { grid-column: 4 / -1; }
.cta .actions { grid-column: 4 / -1; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.cta .btn--line { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }

/* ── Forms ──────────────────────────────────────────── */

.form-layout .intro { grid-column: 1 / span 5; }
.form-layout .form-col { grid-column: 7 / -1; }

.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend { font-size: 13px; font-weight: 500; color: var(--grey); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    padding: 8px 0 10px;
    font: inherit;
    font-size: 19px;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder { color: #b3b3b3; }
.input:focus { outline: none; border-bottom: 2px solid var(--red); padding-bottom: 9px; }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.45; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 12px 14px; border: 1px solid var(--rule); font-size: 15px; cursor: pointer; }
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.notice { margin-top: 24px; padding: 18px 20px; border-left: 2px solid var(--red); background: #f6f6f6; font-size: 15px; }
.notice b { display: block; margin-bottom: 6px; }
.notice a { font-weight: 600; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.form-error { color: var(--red); font-size: 14px; }

.success { border-top: 1px solid var(--ink); padding-top: 20px; }
.success .h2 { margin-bottom: 20px; }

.perks { counter-reset: perk; }
.perks li { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-top: 1px solid var(--rule); }
.perks li:first-child { border-top-color: var(--ink); }
.perks li::before { counter-increment: perk; content: counter(perk, decimal-leading-zero); font-size: 13px; color: var(--grey); padding-top: 3px; }
.perks b { display: block; font-weight: 600; margin-bottom: 4px; }
.perks p { color: var(--grey); font-size: 15px; }

.contact-lines { margin-top: 48px; border-top: 1px solid var(--ink); }
.contact-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-lines a { font-weight: 500; }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { padding: 40px 0 32px; border-top: 1px solid var(--ink); font-size: 14px; }
.site-footer .grid { row-gap: 32px; }
.site-footer .f-brand { grid-column: 1 / span 3; }
.site-footer .f-brand img { height: 14px; width: auto; }
.site-footer .f-brand p { margin-top: 14px; color: var(--grey); max-width: 16em; }
.site-footer .f-col { grid-column: span 3; }
.site-footer .f-col .label { margin-bottom: 10px; }
.site-footer .f-col li { padding: 2px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer .f-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--grey); font-size: 13px; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 991px) {
    .head .label, .head .h2, .head .lead,
    .row .label, .row .h3, .row p,
    .shift .from, .shift .to,
    .statement, .quote,
    .product .label, .product-title, .product-media--narrow, .product-copy, .product-spec,
    .cta .label, .cta .h2, .cta .actions,
    .hero-meta .lead, .hero-meta .facts, .hero-meta .toc,
    .form-layout .intro, .form-layout .form-col,
    .story .row .h3, .story .row p, .story .row .text { grid-column: 1 / -1; }

    .head .h2, .product-title, .cta .h2 { margin-top: 16px; }
    .row .h3, .shift .from { margin-top: 8px; }
    .row p, .shift .to { margin-top: 8px; }
    .story .row .text { margin-top: 12px; }
    .hero-meta .facts, .hero-meta .toc { margin-top: 40px; }
    .steps--5 { grid-template-columns: repeat(3, 1fr); }
    .product-spec { margin-top: 40px; }
    .form-layout .form-col { margin-top: 56px; }

    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .site-footer .f-brand { grid-column: 1 / -1; }
    .site-footer .f-col { grid-column: span 4; }
}

@media (max-width: 767px) {
    .menu-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gut) 24px;
        background: var(--paper);
        border-bottom: 1px solid var(--ink);
        font-size: 22px;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
    .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }

    .steps, .steps--5, .tiles, .stats { grid-template-columns: 1fr; }
    .stat + .stat { margin-top: 40px; }
    .facts { grid-template-columns: repeat(3, 1fr); }
    .photos { grid-template-columns: 1fr 1fr; }
    .photos figure:first-child { grid-column: 1 / -1; }
    .fields, .choices { grid-template-columns: 1fr; }
    .site-footer .f-col { grid-column: 1 / -1; }
    .site-footer .f-base { flex-direction: column; }
    .caption { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ══════════════════════════════════════════════════════
   Motion — only active when JS has added .js to <html>,
   so content is never hidden if scripts fail.
   ══════════════════════════════════════════════════════ */

:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* Fade-up reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Display headline: each line rises out of a mask */
.js .lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .lines .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .lines.in .line > span { transform: none; }

/* Section headings: word by word */
.js .words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .words .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .words.in .w > span { transform: none; }

/* Hairline rules draw in from the left */
.js .draw { position: relative; border-top-color: transparent !important; }
.js .draw::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .draw.in::before { transform: scaleX(1); }
.cta .draw::before { background: rgba(255,255,255,0.5); }

/* Images wipe up, then settle */
.js .wipe img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.8s var(--ease), opacity 0.25s; }
.js .wipe.in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Hover life on index rows */
.rows .row .h3 { transition: transform 0.5s var(--ease), color 0.3s; }
.rows .row:hover .h3 { transform: translateX(10px); color: var(--red); }
.rows .row .label { transition: color 0.3s; }
.rows .row:hover .label { color: var(--ink); }

/* Header hides on scroll down, returns on scroll up */
.site-header { transition: transform 0.45s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* ── Kinetic ticker ── */
.ticker { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: var(--section); }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span { font-size: clamp(56px, 9vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.1; padding-right: 0.35em; white-space: nowrap; }
.ticker-track .red { color: var(--red); }
.ticker-track .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Live REC dot ── */
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ── Zone demo (home) ── */
.demo { align-items: stretch; }
.demo-view { grid-column: 1 / span 8; background: var(--plate); position: relative; align-self: start; }
.demo-view svg { display: block; width: 100%; height: auto; font-family: var(--f); }
.demo-panel { grid-column: 9 / -1; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }

/* Steps, synced to the animation; the active one opens */
.dstep { position: relative; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); opacity: 0.38; transition: opacity 0.4s; }
.dstep.is-active { opacity: 1; }
.dnum { font-size: 13px; color: var(--grey); padding-top: 6px; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.dstep.is-active .dnum { color: var(--red); }
.dtitle { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.dstep p { color: var(--grey); font-size: 15px; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.6s var(--ease); }
.dstep.is-active p { max-height: 8em; opacity: 1; margin-top: 6px; }
.dstep::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
.dstep.is-active::after { opacity: 1; }

/* Response strip: four cells in one row */
.demo-resp { margin-top: auto; padding-top: 28px; }
.demo-resp .label { padding-bottom: 10px; }
.demo-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.demo-list li { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 10px 0; border-top: 1px solid var(--ink); font-size: 14px; }
.demo-list li span { font-weight: 500; white-space: nowrap; }
.demo-list li b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--grey); transition: color 0.2s; }
.demo-list li b::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--green); border: 1px solid var(--green); transition: background 0.2s, border-color 0.2s; }
.demo-list li.on { border-top-color: var(--red); }
.demo-list li.on b { color: var(--red); }
.demo-list li.on b::before { background: var(--red); border-color: var(--red); }

/* SVG states */
.demo .z-fill { fill: rgba(226,35,26,0); transition: fill 0.3s; }
.demo .z-line { stroke: var(--ink); transition: stroke 0.3s; }
.demo .z-handles rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.demo.breach .z-fill { fill: rgba(226,35,26,0.14); }
.demo.breach .z-line { stroke: var(--red); }
.demo.breach .z-label { fill: var(--red); }
.demo .flash { fill: #fff; opacity: 0; pointer-events: none; }
.demo.breach .flash { animation: flash 0.9s ease-out 3; }
@keyframes flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
.demo.breach .p-box { stroke: var(--red); }
.demo.breach .p-tag-bg { fill: var(--red); }
.demo .face { transition: opacity 0.3s; }
.demo .face.x { opacity: 0.3; }
.demo .face.m .f-frame { stroke: var(--ink); stroke-width: 3; }

/* Platform loop: cycles through See → Keep */
.steps--5.is-cycling .step { transition: opacity 0.4s; }
.steps--5.is-cycling .step:not(.is-active) { opacity: 0.3; }
.steps--5.is-cycling .step.is-active .num { color: var(--red); }

@media (max-width: 991px) {
    .demo-view, .demo-panel { grid-column: 1 / -1; }
    .demo-panel { margin-top: 16px; border-top: 0; }
    .dstep { padding: 10px 0; }
    .dtitle { font-size: 18px; }
    .dnum { padding-top: 3px; }
    .dstep p { font-size: 14px; }
    .demo-resp { padding-top: 16px; }
}
@media (max-width: 479px) {
    .demo-list { gap: 4px; }
    .demo-list li { font-size: 12px; padding-right: 2px; }
    .demo-list li b { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal, .js .lines .line > span, .js .words .w > span, .js .wipe img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .js .draw::before { transform: none !important; }
    .ticker-track, .rec, .demo.breach .flash, .fs-scr.alert::after, .al-person { animation: none !important; }
    .dstep p { transition: none; }
}

/* Keep the tile hover zoom working after the wipe has run */
.js .tile:hover .wipe.in img { transform: scale(1.03); }
.demo .rec { animation: blink 1.2s steps(2, start) infinite; }
.section + .ticker { margin-top: 0; }

/* ══════════════════════════════════════════════════════
   Key Fob page
   ══════════════════════════════════════════════════════ */

.fob-hero .grid { align-items: end; }
.fob-hero-copy { grid-column: 1 / span 7; }
.fob-hero-copy .lead { margin-top: clamp(32px, 4vw, 56px); max-width: 30em; }
.fob-hero-copy .facts { margin-top: 40px; max-width: 560px; }
.fob-hero-stage { grid-column: 9 / -1; }
.fob-shot { position: relative; background: var(--plate); }
.fob-shot img { width: 100%; }

/* ── The fob screen: a live UI, sized off its own width (cqw) ── */
.fs {
    background: #000;
    color: #fff;
    overflow: hidden;
    container-type: size;
    font-family: var(--f);
    position: relative;
    -webkit-font-smoothing: antialiased;
}
.fs--on-render { position: absolute; left: 34.3%; top: 16.6%; width: 31.9%; height: 25.3%; border-radius: 13% / 11%; }

.fs-scr { position: absolute; inset: 0; border-radius: inherit; padding: 8cqw 8cqw 7cqw; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(5cqw) scale(0.98); transition: opacity 0.22s, transform 0.22s, visibility 0s linear 0.22s; }
/* the old screen leaves first, then the new one comes in, so two layouts never overlap */
.fs-scr.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s 0.24s, transform 0.55s var(--ease) 0.24s, visibility 0s linear 0.24s; }
.fs-bar { display: flex; justify-content: space-between; align-items: center; font-size: 6.4cqw; color: #8a8a8a; margin-bottom: 5cqw; font-variant-numeric: tabular-nums; }
.fs-batt { display: inline-flex; align-items: center; gap: 1.5cqw; }
.fs-batt::after { content: ""; width: 7cqw; height: 3.6cqw; border: 0.6cqw solid #8a8a8a; border-radius: 0.8cqw; background: linear-gradient(90deg, #8a8a8a 80%, transparent 80%); }
.fs-title { font-size: 9.5cqw; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 3cqw; }
.fs-sub { font-size: 6.2cqw; color: #8a8a8a; }
.fs-red { color: var(--red); }

/* standby clock */
.fs-time { font-size: 31cqw; font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; margin-top: auto; font-variant-numeric: tabular-nums; }
.fs-date { font-size: 7cqw; color: #8a8a8a; margin-top: 3cqw; }
.fs-brand { margin-top: auto; font-size: 5.6cqw; letter-spacing: 0.18em; color: #5a5a5a; font-weight: 600; }

/* launcher */
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5cqw; flex: 1; }
.fs-tile { background: #191919; border-radius: 5cqw; padding: 5cqw; display: flex; flex-direction: column; justify-content: space-between; font-size: 6.8cqw; font-weight: 500; transition: background 0.25s, transform 0.25s; }
.fs-tile svg { width: 11cqw; height: 11cqw; }
.fs-tile.hit { background: var(--red); transform: scale(0.96); }
.fs-dots { display: flex; justify-content: center; gap: 2cqw; margin-top: 4cqw; }
.fs-dots i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #444; }
.fs-dots i:first-child { background: #fff; }

/* switches */
.fs-row { display: flex; justify-content: space-between; align-items: center; padding: 3.4cqw 0; border-bottom: 0.4cqw solid #222; font-size: 7cqw; }
.fs-sw { flex: none; width: 15cqw; height: 8.4cqw; border-radius: 8cqw; background: #333; position: relative; transition: background 0.25s; }
.fs-sw::after { content: ""; position: absolute; top: 1.2cqw; left: 1.2cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.fs-sw.on { background: var(--red); }
.fs-sw.on::after { transform: translateX(6.6cqw); }
.fs-allbtn { margin-top: auto; text-align: center; padding: 3.5cqw; border-radius: 4cqw; background: #191919; font-size: 6.4cqw; font-weight: 500; transition: background 0.25s; }
.fs-allbtn.hit { background: var(--red); }

/* intruder alert: full-bleed camera feed + a sheet underneath */
.fs-scr.alert { padding: 0; background: #000; }
.fs-scr.alert::after { content: ""; position: absolute; inset: 2cqw; border-radius: inherit; border: 1.2cqw solid var(--red); pointer-events: none; animation: al-pulse 0.9s ease-in-out infinite alternate; }
@keyframes al-pulse { from { opacity: 0.2; } to { opacity: 1; } }
.al-feed { position: relative; flex: 0 0 60%; overflow: hidden; }
.al-feed svg { display: block; width: 100%; height: 100%; font-family: var(--f); }
.al-feed::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px); pointer-events: none; }
.al-person { transform: translate(66px, 80px) scale(0.86); animation: al-walk 5s ease-in-out infinite alternate; }
@keyframes al-walk { to { transform: translate(80px, 83px) scale(1); } }
.al-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 6.5cqw 7cqw 9cqw; font-size: 5cqw; font-weight: 600; letter-spacing: 0.06em; background: linear-gradient(rgba(0,0,0,0.7), transparent); font-variant-numeric: tabular-nums; }
.al-live { display: inline-flex; align-items: center; gap: 1.8cqw; }
.al-live::before { content: ""; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, start) infinite; }
.al-sheet { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.4cqw; padding: 4cqw 7cqw 5cqw; }
.al-kicker { font-size: 5cqw; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.al-title { font-size: 13cqw; font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; }
.al-sub { font-size: 5.6cqw; color: #8a8a8a; }

/* air mouse pads */
.fs-pads { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 3cqw; flex: 1; }
.fs-pad { background: #191919; border-radius: 4cqw; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4cqw; font-size: 5.6cqw; color: #8a8a8a; transition: background 0.2s; position: relative; }
.fs-pad.mid { color: #fff; }
.fs-pad.mid::before { content: ""; position: absolute; top: 34%; left: 50%; width: 10cqw; height: 10cqw; margin-left: -5cqw; border: 0.7cqw solid var(--red); border-radius: 50%; }
.fs-pad.hit { background: var(--red); color: #fff; }

/* clicker */
.fs-next { flex: 1; border-radius: 5cqw; background: #191919; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2cqw; transition: background 0.2s; }
.fs-next b { font-size: 13cqw; font-weight: 600; letter-spacing: -0.03em; }
.fs-next span { font-size: 6cqw; color: #8a8a8a; }
.fs-next.hit { background: var(--red); }
.fs-next.hit span { color: #fff; }
.fs-split { display: flex; justify-content: space-between; margin-top: 4cqw; font-size: 6.4cqw; font-variant-numeric: tabular-nums; }

/* game control: gas / steering meter / brake */
.fs-scr[data-s="wheel"] { padding: 6.5cqw 6cqw 6cqw; gap: 3cqw; }
.gc-head { display: flex; justify-content: space-between; align-items: center; font-size: 6.2cqw; font-weight: 600; }
.gc-mode { font-size: 4.6cqw; font-weight: 500; color: #9a9a9a; border: 0.4cqw solid #3a3a3a; border-radius: 4cqw; padding: 0.6cqw 2.6cqw; }
.gc-zone { flex: 1; border-radius: 5cqw; background: #161616; display: flex; flex-direction: column; justify-content: center; padding: 0 6cqw; transition: background 0.2s; }
.gc-zone b { font-size: 10cqw; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.gc-zone span { font-size: 4.6cqw; color: #7a7a7a; margin-top: 1cqw; transition: color 0.2s; }
.gc-zone.on { background: var(--red); }
.gc-zone.on span { color: rgba(255,255,255,0.8); }
.gc-steer { padding: 1cqw 1cqw 2cqw; }
.gc-read { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3cqw; }
.gc-read b { font-size: 12cqw; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.gc-read span { width: 9cqw; height: 9cqw; border: 0.5cqw solid #3a3a3a; border-radius: 2cqw; display: flex; align-items: center; justify-content: center; font-size: 5cqw; font-weight: 600; color: #7a7a7a; transition: all 0.15s; }
.gc-read span.on { background: var(--red); border-color: var(--red); color: #fff; }
.gc-track { position: relative; height: 4cqw; background: repeating-linear-gradient(90deg, #4a4a4a 0 0.5cqw, transparent 0.5cqw 8cqw) 0 0 / 100% 100%; border-bottom: 0.5cqw solid #4a4a4a; }
.gc-track::before { content: ""; position: absolute; left: 50%; top: -1.5cqw; bottom: 0; width: 0.6cqw; margin-left: -0.3cqw; background: #fff; }
.gc-track i { position: absolute; top: -2.5cqw; left: 50%; width: 2.2cqw; height: 7cqw; margin-left: -1.1cqw; border-radius: 1cqw; background: var(--red); box-shadow: 0 0 3cqw rgba(226,35,26,0.7); }

/* volume ring (SVG) */
.fs-ring { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.fs-ring svg { width: 78cqw; height: 78cqw; overflow: visible; }

/* ── Device mock (scarlet body, live screen on top) ── */
.device { background: var(--red); border-radius: 18% / 11%; padding: 9% 8% 70%; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45); }
.device .fs { width: 100%; aspect-ratio: 31 / 36; border-radius: 12% / 10%; }

/* ── Real fob cutout with a live screen ── */
.fob-cut { position: relative; filter: drop-shadow(0 24px 30px rgba(0,0,0,0.22)); }
.fob-cut img { width: 100%; height: auto; display: block; }
.fs--on-cut { position: absolute; left: 10.8%; top: 4.3%; width: 79.7%; height: 36.1%; border-radius: 15% / 13%; }

/* ── Home demo ── */
.home-view { display: grid; grid-template-columns: minmax(0, 1fr) 22%; gap: 5%; align-items: center; padding: 5%; }
.plan { width: 100%; height: auto; display: block; font-family: var(--f); }
.room rect { fill: #fff; stroke: #111; stroke-width: 1.5; transition: fill 0.5s; }
.room.lit rect { fill: #fff7d6; }
.bulb .b { fill: #fff; stroke: #111; stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.bulb .glow { fill: #f3c623; opacity: 0; transition: opacity 0.5s; }
.room.lit .bulb .b { fill: #f3c623; stroke: #c99a00; }
.room.lit .bulb .glow { opacity: 0.28; }
.fan .blades path { fill: #111; }
#fob-home.alerting #gate-bar { stroke: var(--red); }
#fob-home.alerting #gate-label { fill: var(--red); }

/* ── Office + play demos ── */
.fob-demo .demo-view svg, .play-view canvas { display: block; width: 100%; height: auto; }

/* ── Volume dial ── */
.dial-layout { align-items: center; }
.dial-wrap { grid-column: 1 / span 6; }
.dial-copy { grid-column: 8 / -1; }
.dial { display: block; width: 100%; max-width: 440px; height: auto; touch-action: none; cursor: grab; font-family: var(--f); margin: 0 auto; }
.dial:active { cursor: grabbing; }
.dial-ticks-on { stroke: var(--ink); }
.dial line { transition: stroke 0.15s; }
.dial-hint { text-align: center; margin-top: 16px; }

/* ── Battery bars ── */
.bars { border-bottom: 1px solid var(--rule); }
.bar-row { display: grid; grid-template-columns: 3fr 7fr 2fr; column-gap: var(--gap); align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.bar-row:first-child { border-top-color: var(--ink); }
.bar-row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 28px; background: var(--plate); }
.bar i { display: block; height: 100%; width: var(--w); min-width: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.bar-row:first-child .bar i { background: var(--red); }
.bars.in .bar i, html:not(.js) .bar i { transform: scaleX(1); }
.bar-row:nth-child(2) .bar i { transition-delay: 0.15s; }
.bar-row:nth-child(3) .bar i { transition-delay: 0.3s; }
.bar-row:nth-child(4) .bar i { transition-delay: 0.45s; }

/* ── Finishes lineup + specs ── */
.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.lineup figure { margin: 0; }
.lineup figcaption { margin-top: 12px; border-top: 1px solid var(--ink); padding-top: 10px; }
.spec-col { grid-column: span 6; }

@media (max-width: 991px) {
    .fob-hero-copy, .fob-hero-stage, .dial-wrap, .dial-copy, .spec-col { grid-column: 1 / -1; }
    .fob-hero-stage { margin-top: 48px; max-width: 520px; }
    .dial-copy { margin-top: 40px; }
    .spec-col + .spec-col .spec, .spec-col + .spec-col { border-top: 0; }
    .lineup { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .bar-row { grid-template-columns: 1fr auto; row-gap: 8px; }
    .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ══════════════════════════════════════════════════════
   Camera + Hub pages
   ══════════════════════════════════════════════════════ */

/* camera hero HUD */
.cam-hero { position: relative; }
.cam-hud { position: absolute; left: 20px; top: 20px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cam-hud span { background: rgba(17,17,17,0.82); color: #fff; padding: 6px 10px; }
.cam-hud-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; animation: blink 1.2s steps(2, start) infinite; }

/* camera identity demo */
#cam-id svg { font-family: var(--f); }
#cam-id .cz-fill { fill: rgba(226,35,26,0); transition: fill 0.3s; }
#cam-id .cz-line { stroke: var(--ink); transition: stroke 0.3s; }
#cam-id.alarm .cz-fill { fill: rgba(226,35,26,0.13); }
#cam-id.alarm .cz-line { stroke: var(--red); }
#cam-id.alarm .cz-label { fill: var(--red); }
#cam-id.alarm .flash { animation: flash 0.9s ease-out 3; }
.trk .tb { fill: none; stroke-width: 2; }
.trk .tl { font-size: 12px; font-weight: 600; fill: #fff; }
.id-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--grey); }
.id-key li { display: flex; align-items: center; gap: 8px; }
.id-key i { width: 10px; height: 10px; display: block; }

/* evidence timeline */
.ev { background: var(--plate); }
.ev canvas { display: block; width: 100%; height: auto; }

/* "it asks you first" */
.ask { align-items: center; }
.ask-copy { grid-column: 1 / span 6; }
.ask-phone { grid-column: 8 / -1; display: flex; justify-content: center; }
.phone { width: 100%; max-width: 340px; background: #0b0b0b; color: #fff; border-radius: 36px; padding: 22px 18px 26px; box-shadow: 0 40px 70px -40px rgba(0,0,0,0.5); }
.phone-bar { display: flex; justify-content: space-between; font-size: 12px; color: #8a8a8a; padding: 0 6px 16px; }
.phone-bar span:first-child { color: #fff; font-weight: 600; }
.bubble { background: #1c1c1c; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.4; margin-bottom: 8px; max-width: 92%; }
.js .ask.in .bubble, .js .ask .bubble { animation: none; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.phone-btns span { text-align: center; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.phone-btns .yes { background: var(--red); }
.phone-btns .no { background: #2a2a2a; }
.phone-wait { margin-top: 14px; font-size: 12px; color: #8a8a8a; display: flex; align-items: center; gap: 4px; justify-content: center; }
.phone-wait i { width: 4px; height: 4px; border-radius: 50%; background: #8a8a8a; animation: wait 1.2s infinite; }
.phone-wait i:nth-child(2) { animation-delay: 0.2s; }
.phone-wait i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wait { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.lineup--wide { grid-template-columns: repeat(2, 1fr); }

/* hub hero relay strip */
.hub-stage { align-self: end; }
.relay-strip { margin-top: 16px; border-top: 1px solid var(--ink); padding-top: 12px; }
.relay-strip-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.relay-online { color: var(--green); }
.relay-online::before { content: "● "; }
.relay-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.relay-cell { border: 1px solid var(--rule); padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.relay-cell b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relay-cell span { color: var(--grey); font-variant-numeric: tabular-nums; }
.relay-cell.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.relay-cell.on span { color: var(--green); }
.relay-cell.alert.on { background: var(--red); border-color: var(--red); }
.relay-cell.alert.on span { color: #fff; }

/* hub network + lockdown demos */
#hub-net svg, #hub-lock svg { font-family: var(--f); }
.lock-panel { justify-content: flex-start; padding-top: 20px; }
.lock-switch { display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.lock-track { flex: none; width: 88px; height: 44px; border: 2px solid var(--ink); position: relative; transition: background 0.25s, border-color 0.25s; }
.lock-knob { position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; background: var(--ink); transition: transform 0.35s var(--ease), background 0.25s; }
.lock-switch[aria-checked="true"] .lock-track { background: var(--red); border-color: var(--red); }
.lock-switch[aria-checked="true"] .lock-knob { transform: translateX(44px); background: #fff; }
.lock-text b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.lock-text span { font-size: 14px; color: var(--grey); }
.lock-switch[aria-checked="true"] .lock-text span { color: var(--red); }

/* routines */
.routine { align-items: center; }
.routine-input { grid-column: 1 / span 6; }
.routine-card { grid-column: 8 / -1; border-top: 1px solid var(--ink); padding-top: 16px; transition: opacity 0.4s, transform 0.5s var(--ease); }
.routine-card.swap { opacity: 0; transform: translateY(10px); }
.r-bar { display: flex; align-items: center; min-height: 72px; border-bottom: 2px solid var(--ink); font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -0.02em; padding-bottom: 8px; }
.r-text { white-space: pre-wrap; }
.r-caret { width: 2px; height: 1.1em; background: var(--red); margin-left: 3px; animation: blink 1s steps(2, start) infinite; }
.r-mic { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: radial-gradient(circle, var(--red) 0 5px, transparent 6px); }
.r-head { display: flex; justify-content: space-between; align-items: center; }
.r-tag { font-size: 12px; font-weight: 500; border: 1px solid var(--ink); padding: 2px 8px; }
.r-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 20px; }
.r-times { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); border-top: 1px solid var(--rule); padding-top: 14px; }
.r-times b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.r-days { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.r-days span { width: 40px; text-align: center; padding: 6px 0; font-size: 12px; font-weight: 500; border: 1px solid var(--rule); color: var(--grey); }
.r-days span.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* usage chart */
.usage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.usage-chart { grid-column: 1 / span 8; }
.usage-stats { grid-column: 9 / -1; display: grid; gap: 28px; }
.usage-stats .stat b { font-size: clamp(44px, 4.6vw, 72px); }
.usage-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 320px; align-items: end; border-bottom: 1px solid var(--ink); }
.ubar { display: flex; flex-direction: column-reverse; height: 100%; position: relative; }
.ubar .seg { width: 100%; transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.usage.in .ubar .seg, html:not(.js) .ubar .seg { transform: scaleY(1); }
.ubar .day { position: absolute; bottom: -26px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--grey); }
.ubar .tot { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 44px; font-size: 13px; color: var(--grey); }
.usage-legend li { display: flex; align-items: center; gap: 8px; }
.usage-legend i { width: 10px; height: 10px; display: block; }

/* status light row */
.led-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); padding-top: 20px; }
.led-row div { display: grid; grid-template-columns: 28px 1fr; row-gap: 2px; align-items: center; }
.led-row b { font-weight: 600; }
.led-row span { grid-column: 2; font-size: 14px; color: var(--grey); }
.led { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; }
.led-blue { background: #2f6bff; animation: blink 0.8s steps(2, start) infinite; }
.led-orange { background: #f08a00; animation: blink 1s steps(2, start) infinite; }
.led-green { background: var(--green); box-shadow: 0 0 10px rgba(23,163,74,0.6); }
.led-red { background: var(--red); animation: led-slow 2.4s ease-in-out infinite; }
@keyframes led-slow { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

@media (max-width: 991px) {
    .ask-copy, .ask-phone, .routine-input, .routine-card, .usage-chart, .usage-stats { grid-column: 1 / -1; }
    .ask-phone, .routine-card { margin-top: 48px; }
    .usage-stats { margin-top: 64px; grid-template-columns: repeat(3, 1fr); }
    .led-row { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}
@media (max-width: 767px) {
    .lineup--wide { grid-template-columns: 1fr; }
    .relay-cells { grid-template-columns: repeat(2, 1fr); }
    .usage-stats { grid-template-columns: 1fr; }
    .usage-bars { height: 220px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .cam-hud-live::before, .phone-wait i, .r-caret, .led { animation: none !important; }
}
.hub-stage { grid-column: 8 / -1; }
@media (max-width: 991px) { .hub-stage { grid-column: 1 / -1; } }

/* ── Cloud & Olly page (cloud.html) ─────────────────── */
.cl-stage { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.cl-bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; min-height: 58px; }
.cl-name { font-size: 15px; font-weight: 600; color: var(--red); }
.cl-heard { flex: 1; min-width: 0; font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-heard:empty::before { content: "Turn off the ceiling light and fan"; color: #a3a3a3; }
.cl-wave { display: none; align-items: center; gap: 3px; height: 24px; }
.cl-wave i { width: 3px; height: 100%; background: var(--red); border-radius: 2px; animation: clwave 0.9s ease-in-out infinite; }
.cl-wave i:nth-child(2) { animation-delay: .15s; } .cl-wave i:nth-child(3) { animation-delay: .3s; } .cl-wave i:nth-child(4) { animation-delay: .45s; } .cl-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes clwave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.cl-mic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, color .2s; }
.cl-mic svg { width: 18px; height: 18px; }
.cl-stage.listening .cl-wave { display: inline-flex; }
.cl-stage.listening .cl-mic { background: var(--red); border-color: var(--red); color: #fff; }
.cl-stage.listening .cl-mic::before, .cl-stage.listening .cl-mic::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--red); animation: clring 1.6s var(--ease) infinite; }
.cl-stage.listening .cl-mic::after { animation-delay: .8s; }
@keyframes clring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.cl-hint { font-size: 13px; color: var(--grey); min-height: 1.4em; margin: -6px 0 0; }
.cl-hint b { color: var(--red); font-weight: 500; }
.cl-reply { display: flex; align-items: center; gap: 12px; min-height: 2.8em; margin: 0; font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.cl-reply #cl-reply-text { transition: opacity .3s, transform .5s var(--ease); }
.cl-reply.out #cl-reply-text { opacity: 0; transform: translateY(8px); }
.cl-talk { display: none; gap: 3px; height: 18px; align-items: center; flex: none; }
.cl-talk i { width: 3px; height: 100%; background: var(--red); border-radius: 2px; animation: clwave .8s ease-in-out infinite; }
.cl-talk i:nth-child(2) { animation-delay: .15s; } .cl-talk i:nth-child(3) { animation-delay: .3s; }
.cl-reply.talking .cl-talk { display: inline-flex; }
.cl-node { background: var(--paper); border: 1px solid var(--rule); margin-top: auto; }
.cl-node-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.cl-node-head b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.cl-online { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 13px; }
.cl-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: clbreath 2.4s ease-in-out infinite; }
@keyframes clbreath { 50% { opacity: .35; } }
.cl-count { margin-left: auto; color: var(--grey); font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-relays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-relay { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-right: 1px solid var(--rule); transition: background .3s; position: relative; }
.cl-relay:last-child { border-right: 0; }
.cl-ico { width: 34px; height: 34px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--grey); transition: color .3s, border-color .3s, background .3s, box-shadow .4s; }
.cl-ico svg { width: 18px; height: 18px; }
.cl-rn { font-size: 15px; font-weight: 500; line-height: 1.2; }
.cl-rn small { display: block; font-size: 12px; color: var(--grey); font-weight: 400; margin-top: 2px; }
.cl-sw { width: 44px; height: 24px; border: 1.5px solid var(--ink); position: relative; flex: none; transition: background .25s, border-color .25s; }
.cl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: var(--ink); transition: transform .3s var(--ease), background .25s; }
.cl-sw.on, .cl-relay.on .cl-sw { background: var(--green); border-color: var(--green); }
.cl-sw.on::after, .cl-relay.on .cl-sw::after { transform: translateX(20px); background: #fff; }
.cl-relay.on.pop { animation: clpop .45s var(--ease); }
@keyframes clpop { 40% { background: rgba(23,163,74,.10); } }
.t-light.on .cl-ico { color: #f2a900; border-color: #f2a900; box-shadow: 0 0 18px rgba(242,169,0,.45); }
.t-fan.on .cl-ico { color: #2f7ff0; border-color: #2f7ff0; }
.t-fan.on .cl-ico svg { animation: clspin 1.2s linear infinite; }
.t-outlet.on .cl-ico { color: #8b5cf6; border-color: #8b5cf6; }
.t-lock.on .cl-ico { color: var(--green); border-color: var(--green); }
@keyframes clspin { to { transform: rotate(360deg); } }

/* 02: the 16-channel board */
.cl-split { align-items: start; }
.cl-board { grid-column: 1 / span 7; background: var(--plate); padding: clamp(16px, 2.4vw, 32px); }
.cl-split--rev .cl-rt { grid-column: 1 / span 7; }
.cl-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cl-board-head b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-right: 12px; }
.cl-grid16 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cl-grid16 .cl-relay { background: var(--paper); border: 0; padding: 12px; flex-direction: row; align-items: center; gap: 10px; }
.cl-grid16 .cl-relay.on { background: #f3fbf5; }
.cl-grid16 .cl-ico { width: 28px; height: 28px; }
.cl-grid16 .cl-ico svg { width: 15px; height: 15px; }
.cl-grid16 .cl-rn { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-grid16 .cl-sw { width: 30px; height: 17px; }
.cl-grid16 .cl-sw::after { width: 9px; height: 9px; top: 2.5px; left: 2.5px; }
.cl-grid16 .cl-relay.on .cl-sw::after { transform: translateX(13px); }
.cl-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--grey); }
.cl-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; }
.cl-legend .t-light::before { background: #f2a900; } .cl-legend .t-fan::before { background: #2f7ff0; } .cl-legend .t-outlet::before { background: #8b5cf6; } .cl-legend .t-lock::before { background: var(--green); }
.cl-feats { grid-column: 9 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cl-feats li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cl-feats b { display: block; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.cl-feats span { display: block; margin-top: 6px; color: var(--grey); font-size: 15px; line-height: 1.45; }

/* 03: routines */
.cl-rt { background: var(--plate); padding: clamp(16px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; min-height: 460px; }
.cl-rt-bar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: -0.02em; min-height: 52px; }
.cl-rt-bar #cl-rt-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-caret { width: 2px; height: 1.1em; background: var(--red); flex: none; animation: clblink 1s steps(1) infinite; }
@keyframes clblink { 50% { opacity: 0; } }
.cl-rt-mic { margin-left: auto; }
.cl-rt-mic.listening { background: var(--red); border-color: var(--red); color: #fff; }
.cl-rt-mic.listening::before, .cl-rt-mic.listening::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--red); animation: clring 1.6s var(--ease) infinite; }
.cl-rt-mic.listening::after { animation-delay: .8s; }
.cl-rt-go.hit { background: var(--red); }
.cl-rt-prev { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--red); padding: 16px 18px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); }
.cl-rt-prev.in { opacity: 1; transform: none; }
.cl-rt-prev p { margin: 6px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.cl-rt-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; font-size: 14px; }
.cl-rt-ghost { padding: 8px 14px; border: 1px solid var(--rule); }
.cl-rt-go { padding: 8px 14px; background: var(--ink); color: var(--paper); transition: background .2s; }
.cl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-card { background: var(--paper); border: 1px solid var(--rule); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; font-size: 14px; animation: clin .6s var(--ease) both; }
.cl-card b { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.cl-card small { display: block; color: var(--grey); font-size: 12px; margin-top: 2px; }
.cl-card p { grid-column: 1 / -1; margin: 0; color: var(--grey); font-size: 13px; border-top: 1px solid var(--rule); padding-top: 8px; }
.cl-card.new { border-color: var(--green); }
@keyframes clin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.cl-rt-rows { grid-column: 9 / -1; }
.cl-rt-rows .row .label, .cl-rt-rows .row .h3, .cl-rt-rows .row p { grid-column: 1 / -1; }
.cl-rt-rows .row .h3 { margin-top: 6px; }
.cl-rt-rows .row p { margin-top: 6px; }

/* 04: voice */
.cl-voice { grid-column: 4 / span 7; border-top: 1px solid var(--ink); }
.cl-vrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.cl-vrow .label { font-size: 15px; color: var(--ink); }
.cl-seg { display: inline-flex; border: 1px solid var(--ink); }
.cl-seg button { font: inherit; font-size: 14px; padding: 9px 16px; background: transparent; color: var(--ink); border: 0; border-left: 1px solid var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.cl-seg button:first-child { border-left: 0; }
.cl-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cl-seg button:hover:not([aria-pressed="true"]) { background: var(--plate); }
.cl-vplay { justify-content: flex-start; border-bottom: 0; padding-top: 24px; }
.cl-vplay .label { color: var(--grey); font-size: 13px; }
.cl-play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
#cl-hear.playing .cl-play { width: 10px; height: 10px; border: 0; background: currentColor; }

@media (max-width: 991px) {
    .cl-board, .cl-feats, .cl-split--rev .cl-rt, .cl-rt-rows, .cl-voice { grid-column: 1 / -1; }
    .cl-feats, .cl-rt-rows { margin-top: 32px; }
}
@media (max-width: 767px) {
    .cl-relays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-relay:nth-child(2) { border-right: 0; }
    .cl-relay:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
    .cl-grid16 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-grid16 .cl-relay { padding: 10px; gap: 8px; }
    .cl-cards { grid-template-columns: 1fr; }
    .cl-rt { min-height: 0; }
    .cl-vrow { flex-wrap: wrap; }
    .cl-heard { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-wave i, .cl-talk i, .t-fan.on .cl-ico svg, .cl-online::before, .cl-caret { animation: none; }
}

/* ── Nav dropdown: Our products ── */
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.nav-drop-btn:hover, .nav-drop-btn[data-current], .nav-drop.is-open .nav-drop-btn { color: var(--red); }
.nav-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease); }
.nav-drop.is-open .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 22px); left: -20px; min-width: 220px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.35s var(--ease), visibility 0.2s; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 23px; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { padding: 11px 20px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; transition: color 0.15s, background 0.15s, padding 0.3s var(--ease); }
.nav-drop-menu a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.3s var(--ease); }
.nav-drop-menu a:hover { background: var(--plate); color: var(--ink); }
.nav-drop-menu a:hover::after { opacity: 1; transform: none; color: var(--red); }
@media (hover: hover) and (min-width: 768px) {
    .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-drop:hover .nav-caret { transform: translateY(1px) rotate(-135deg); }
}
@media (max-width: 767px) {
    .nav-drop { border-bottom: 1px solid var(--rule); }
    .nav-drop-btn { width: 100%; justify-content: space-between; padding: 12px 0; }
    .nav-drop-menu { position: static; display: none; min-width: 0; border: 0; padding: 0 0 8px 16px; opacity: 1; visibility: visible; transform: none; }
    .nav-drop-menu::before { display: none; }
    .nav-drop.is-open .nav-drop-menu { display: flex; }
    .nav-drop-menu a { padding: 10px 0; font-size: 18px; border-bottom: 0; }
    .nav-drop-menu a:hover { background: none; }
}

/* ── Controller: simple scenes (tap → hub → device; lockdown) ── */
.tap-view, .lk-view { padding: clamp(18px, 2.6vw, 36px); }
.tap-scene, .lk-scene { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; transition: opacity .5s; }
.tap-scene.fade { opacity: 0; }
.tap-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.tap-col { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.tap-head { font-size: 12px; font-weight: 500; color: var(--grey); letter-spacing: 0.02em; text-transform: uppercase; }
.tap-card { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--rule); padding: 12px 14px; position: relative; transition: border-color .3s, background .3s, opacity .3s; }
.tap-ico { flex: none; width: 38px; height: 38px; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: color .3s, border-color .3s, box-shadow .4s, background .3s; }
.tap-ico svg { width: 20px; height: 20px; }
.tap-txt b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.tap-txt small { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; transition: color .3s; }
.tap-card.press { animation: tappress .5s var(--ease); }
.tap-card.press::after { content: ""; position: absolute; left: 30px; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(226,35,26,.35); animation: tapripple .6s ease-out forwards; pointer-events: none; }
@keyframes tappress { 30% { transform: scale(.96); border-color: var(--ink); } }
@keyframes tapripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.tap-src.due { border-color: var(--ink); }
.tap-src.due small { color: var(--red); font-weight: 600; }
.tap-src.notify::before { content: "Water pump isn’t answering"; position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px); background: var(--red); color: #fff; font-size: 12px; font-weight: 500; padding: 7px 10px; animation: clin .5s var(--ease) both; }
.tap-mid { align-items: center; }
.tap-hub { background: var(--ink); color: #fff; padding: 18px 20px; min-width: 150px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: background .3s; }
.tap-hub b { font-size: 17px; font-weight: 600; }
.tap-hub span { font-size: 12px; color: #a8a8a8; min-height: 1.3em; }
.tap-hub::before { content: ""; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tap-hub.ping { animation: hubping .6s var(--ease); }
.tap-hub.bad span { color: #ff8a80; }
.tap-hub.bad::before { background: var(--red); }
@keyframes hubping { 40% { transform: scale(1.04); } }
.tap-devs { display: flex; flex-direction: column; gap: 10px; }
.tap-dev .tap-st { font-weight: 500; }
.tap-dev.on { border-color: var(--green); }
.tap-dev.on .tap-st { color: var(--green); }
.d-light.on .tap-ico, .d-lights.on .tap-ico { color: #f2a900; border-color: #f2a900; background: #fff8e1; box-shadow: 0 0 22px rgba(242,169,0,.55); }
.d-fan.on .tap-ico { color: #2f7ff0; border-color: #2f7ff0; }
.d-fan.on .tap-ico svg { animation: clspin 1s linear infinite; }
.d-lock .shackle, .d-door .shackle { transition: transform .4s var(--ease); }
.d-lock:not(.on) .shackle, .d-door:not(.on) .shackle { transform: translate(4px, -2.5px); }
.d-lock.on .tap-ico, .d-door.on .tap-ico { color: var(--green); border-color: var(--green); }
.d-pump.on .tap-ico { color: #2f7ff0; border-color: #2f7ff0; }
.d-pump.on .tap-ico svg { animation: drip 1.4s ease-in-out infinite; }
@keyframes drip { 50% { transform: translateY(2px); } }
.tap-dev.lost { opacity: .6; border-color: var(--red); border-style: dashed; }
.tap-dev.lost .tap-st { color: var(--red); }
.tap-caption { margin: 22px 0 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; min-height: 1.4em; }
.tap-caption.in { animation: clin .5s var(--ease) both; }

/* Lockdown scene */
.lk-scene { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: stretch; }
.lk-out { display: flex; flex-direction: column; justify-content: center; gap: 10px; position: relative; z-index: 1; }
.lk-house { border: 2px solid var(--ink); background: rgba(255,255,255,.5); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; transition: border-color .3s; }
.lk-inside { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 28px clamp(28px, 4vw, 56px); align-items: center; }
.lk-hub { grid-column: 1; grid-row: 1; }
#lk-local { grid-column: 1; grid-row: 2; }
.lk-devs { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; }
.lk-mini { width: 34px; height: 18px; border: 1.5px solid #777; position: relative; margin-top: 4px; transition: background .3s, border-color .3s; }
.lk-mini i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; background: #bbb; transition: transform .35s var(--ease), background .3s; }
.locked .lk-mini { background: var(--red); border-color: var(--red); }
.locked .lk-mini i { transform: translateX(16px); background: #fff; }
.locked #lk-hubstate { color: #ff8a80; }
.lk-shield { position: absolute; left: -16px; top: 50%; margin-top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s var(--ease); }
.lk-shield svg { width: 18px; height: 18px; }
.locked .lk-shield { opacity: 1; transform: none; }
.lk-hub.refuse { animation: refuse .5s; }
@keyframes refuse { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.lk-result { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.lk-result.in { animation: clin .4s var(--ease) both; }
.lk-result.ok { color: var(--green); }
.lk-result.no { color: var(--red); }
.lk-points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.lk-points li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 15px; }
.lk-points b { font-weight: 600; }
.lk-points span { color: var(--grey); }

/* Routines: the mic listens while the words appear */
.r-wave { display: none; align-items: center; gap: 3px; height: 22px; margin-right: 12px; flex: none; }
.r-wave i { width: 3px; height: 100%; background: var(--red); border-radius: 2px; animation: clwave .9s ease-in-out infinite; }
.r-wave i:nth-child(2) { animation-delay: .15s; } .r-wave i:nth-child(3) { animation-delay: .3s; } .r-wave i:nth-child(4) { animation-delay: .45s; } .r-wave i:nth-child(5) { animation-delay: .6s; }
.r-bar .r-mic { position: relative; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .25s, border-color .25s, color .25s; }
.r-bar .r-mic svg { width: 18px; height: 18px; }
.r-bar.listening .r-wave { display: inline-flex; }
.r-bar.listening .r-mic { background: var(--red); border-color: var(--red); color: #fff; }
.r-bar.listening .r-mic::before, .r-bar.listening .r-mic::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--red); animation: clring 1.6s var(--ease) infinite; }
.r-bar.listening .r-mic::after { animation-delay: .8s; }
.r-bar.listening .r-caret { display: none; }
.r-status { transition: color .3s; }
.r-bar.listening + .r-status { color: var(--red); }

@media (max-width: 767px) {
    .tap-scene { grid-template-columns: 1fr 1fr; gap: 16px; }
    .tap-mid { grid-column: 1 / -1; grid-row: 2; }
    .tap-scene > .tap-col:last-child { grid-column: 2; grid-row: 1; }
    .tap-card { padding: 10px; gap: 8px; }
    .tap-ico { width: 32px; height: 32px; }
    .tap-txt b { font-size: 13px; }
    .tap-txt small { font-size: 12px; }
    .lk-scene { grid-template-columns: 1fr; gap: 36px; }
    .lk-inside { grid-template-columns: 1fr 1fr; gap: 16px; }
    .lk-points li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .r-wave i, .d-fan.on .tap-ico svg, .d-pump.on .tap-ico svg { animation: none; }
}

/* ── Camera 04: always protecting ── */
.ow-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); grid-template-rows: auto auto; gap: 36px clamp(28px, 4vw, 60px); align-items: center; transition: opacity .5s; }
.ow-scene.fade { opacity: 0; }
.ow-cam { grid-column: 1; grid-row: 1; position: relative; z-index: 1; background: var(--paper); border: 2px solid var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ow-view { position: relative; aspect-ratio: 16 / 9; background: #1b1b1b; overflow: hidden; }
.ow-view::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: #2a2a2a; }
.ow-person { position: absolute; bottom: 14%; left: -20%; width: 26px; height: 58px; transition: left 1.4s var(--ease); }
.ow-person i { position: absolute; left: 7px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #d9d9d9; }
.ow-person b { position: absolute; left: 3px; top: 14px; width: 20px; height: 34px; border-radius: 6px 6px 2px 2px; background: #d9d9d9; }
.ow-box { position: absolute; bottom: calc(14% - 6px); left: calc(55% - 10px); width: 46px; height: 74px; border: 2px solid var(--red); font-size: 0; opacity: 0; transition: opacity .15s; }
.ow-scene.seen .ow-box { transition: opacity .3s .8s; }
.ow-box::before { content: "Intruder"; position: absolute; top: -18px; left: -2px; background: var(--red); color: #fff; padding: 1px 5px; font-size: 10px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.ow-scene.seen .ow-person { left: 55%; }
.ow-scene.seen .ow-box { opacity: 1; }
.ow-rec { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 600; color: var(--red); letter-spacing: .04em; animation: recblink 1.2s steps(2, start) infinite; }
@keyframes recblink { to { visibility: hidden; } }
.ow-cam .tap-txt b { font-size: 17px; }
.ow-cam .tap-txt small { font-size: 14px; min-height: 1.3em; }
.ow-scene.seen .ow-cam .tap-txt small { color: var(--red); font-weight: 500; }
.ow-rcvs, .ow-devs { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.ow-rcvs { grid-column: 3; grid-row: 1; }
.ow-devs { grid-column: 3; grid-row: 2; }
.ow-hub { grid-column: 2; grid-row: 1 / span 2; align-self: center; z-index: 1; min-width: 0; padding: 16px; }
.ow-hub span { max-width: 92px; line-height: 1.3; }
.ow-scene .ow-status { grid-column: 1; grid-row: 2; align-self: end; margin: 0; }
.ow-rcv { transition: opacity .4s, border-color .3s; }
.ow-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) scale(.8); background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; opacity: 0; transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.ow-rcv.alerting { border-color: var(--red); animation: buzz .45s 2; }
.ow-rcv.alerting .ow-badge { opacity: 1; transform: translateY(-50%); }
.ow-rcv.alerting small { color: var(--red); }
.ow-rcv.down { opacity: .45; border-style: dashed; }
.ow-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; border: 1px solid var(--rule); color: var(--grey); }
.ow-tag.ok { border-color: var(--green); color: var(--green); }
.ow-badge { font-size: 0; padding: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.ow-badge::before { content: "!"; font-size: 13px; font-weight: 700; }
.ow-rcvs .tap-card { padding: 10px 12px; }
.ow-rcv.down small { color: var(--red); }
@keyframes buzz { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.d-siren.on { border-color: var(--red); }
.d-siren.on .tap-ico { color: #fff; background: var(--red); border-color: var(--red); animation: sirenpulse .7s ease-in-out infinite; }
.d-siren.on .tap-st { color: var(--red); }
@keyframes sirenpulse { 50% { box-shadow: 0 0 0 8px rgba(226,35,26,.18); } }
.ow-cut { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(.6); background: var(--paper); border: 1.5px solid var(--red); color: var(--red); font-size: 12px; font-weight: 600; padding: 5px 10px; opacity: 0; transition: opacity .3s, transform .4s var(--ease); z-index: 3; white-space: nowrap; }
.ow-scene.offline .ow-cut { opacity: 1; transform: translate(-50%, -50%); }
.ow-status { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.ow-status b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.025em; transition: color .3s; }
.ow-status b.warn { color: #b77400; }
.ow-status b.ok { color: var(--green); }
.ow-status span { color: var(--grey); font-size: 15px; }
@media (max-width: 767px) {
    .ow-scene { grid-template-columns: 1fr; gap: 28px; }
    .ow-cam, .ow-rcvs, .ow-hub, .ow-devs { grid-column: 1; grid-row: auto; }
    .ow-cut { top: 30%; }
}
@media (prefers-reduced-motion: reduce) { .ow-rec, .d-siren.on .tap-ico { animation: none; } }

/* ── Camera 03: decentralised recording ── */
.dr-scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); transition: opacity .5s; }
.dr-scene.fade { opacity: 0; }
.dr-side { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--rule); padding: 14px; }
.dr-sx { border-color: var(--ink); }
.dr-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-cam { display: flex; flex-direction: column; gap: 2px; font-size: 12px; transition: opacity .4s; }
.dr-cam b { font-size: 13px; font-weight: 600; margin-top: 4px; }
.dr-cam small { color: var(--grey); font-size: 11px; line-height: 1.3; min-height: 2.6em; transition: color .3s; }
.dr-sx .dr-cam small { color: var(--green); }
.dr-view { position: relative; aspect-ratio: 16 / 10; background: #1d1d1d; overflow: hidden; }
.dr-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #2b2b2b; }
.dr-rec { position: absolute; top: 5px; left: 6px; font-size: 9px; font-weight: 600; color: var(--red); z-index: 1; animation: recblink 1.2s steps(2, start) infinite; }
.dr-t { position: absolute; bottom: 4px; right: 6px; font-size: 9px; color: #bbb; font-variant-numeric: tabular-nums; z-index: 1; }
.dr-cam.lost .dr-view, .dr-cam.gone .dr-view { background: #3a3a3a; }
.dr-cam.lost .dr-view::before, .dr-cam.gone .dr-view::before { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 22px; z-index: 2; }
.dr-cam.lost .dr-rec, .dr-cam.gone .dr-rec { display: none; }
.dr-cam.lost small, .dr-cam.gone small { color: var(--red) !important; }
.dr-cam.lost { opacity: .7; }
.dr-cam.seen .dr-view { box-shadow: inset 0 0 0 2px var(--red); }
.dr-cam.seen .dr-view::before { content: "Person"; position: absolute; top: 5px; right: 6px; background: var(--red); color: #fff; font-size: 9px; padding: 1px 4px; z-index: 2; }
.dr-wires { display: grid; grid-template-columns: repeat(4, 1fr); height: 18px; margin: -4px 0; }
.dr-wires i { justify-self: center; width: 0; border-left: 1.5px dashed #9a9a9a; transition: border-color .3s; }
.broken .dr-wires i { border-color: var(--red); }
.dr-box, .dr-dash { border: 1.5px solid var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; transition: opacity .5s, transform .5s var(--ease), border-color .3s; }
.dr-box b, .dr-dash b { font-size: 14px; font-weight: 600; }
.dr-box small, .dr-dash small { font-size: 12px; color: var(--grey); }
.dr-box { background: #111; color: #fff; }
.dr-box small { color: #aaa; }
.dr-box.taken { opacity: .15; transform: translateY(14px) scale(.95); }
.dr-out { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.dr-out.in { animation: clin .4s var(--ease) both; }
.dr-out.ok { color: var(--green); }
.dr-out.no { color: var(--red); }
.dr-thief { position: absolute; left: 0; top: 0; width: 26px; height: 60px; z-index: 5; opacity: 0; transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, 0, .2, 1); pointer-events: none; }
.dr-thief.in { opacity: 1; }
.dr-thief i { position: absolute; left: 7px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--red); }
.dr-thief b { position: absolute; left: 2px; top: 15px; width: 22px; height: 38px; border-radius: 7px 7px 3px 3px; background: var(--red); }
@media (max-width: 767px) { .dr-scene { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dr-rec { animation: none; } }

/* Camera 04: motion */
.ow-wrap { position: relative; overflow: hidden; }
.ow-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 78% 72%, rgba(226,35,26,.28), transparent 55%); }
.ow-flash.on { animation: owflash .7s ease-in-out infinite; }
@keyframes owflash { 50% { opacity: 1; } }
.ow-scene.lit .ow-devs::before { content: ""; position: absolute; inset: -18px; background: radial-gradient(circle at 30% 50%, rgba(242,169,0,.22), transparent 70%); z-index: -1; animation: clin .8s var(--ease) both; }
.ow-scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07) 80%, rgba(255,255,255,.22)); animation: owscan 2.6s linear infinite; z-index: 1; pointer-events: none; }
@keyframes owscan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.ow-scene.seen .ow-scan { background: linear-gradient(to bottom, transparent, rgba(226,35,26,.12) 80%, rgba(226,35,26,.4)); animation-duration: 1.1s; }
.ow-scene.seen .ow-box { animation: owlock .5s .8s var(--ease) both; }
@keyframes owlock { from { transform: scale(1.5); } to { transform: none; } }
.ow-scene.seen .ow-cam { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226,35,26,.12); transition: border-color .3s, box-shadow .3s; }
.sig-ring { transform-box: fill-box; transform-origin: center; animation: sigring .75s ease-out forwards; }
@keyframes sigring { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.ow-rings { position: absolute; inset: 0; pointer-events: none; }
.ow-rings::before, .ow-rings::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--green); opacity: 0; }
.ow-hub.acting .ow-rings::before, .ow-hub.acting .ow-rings::after { animation: owring 1.6s ease-out infinite; }
.ow-hub.acting .ow-rings::after { animation-delay: .8s; }
@keyframes owring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.ow-hub.acting { box-shadow: 0 0 0 1px var(--green); }
.ow-hub.acting span { color: #9be3b1; }
.ow-cut { display: inline-flex; align-items: center; gap: 6px; top: 16%; left: 66%; }
.ow-cut svg { width: 16px; height: 16px; }
.ow-scene.offline .ow-cut { animation: owcut .5s var(--ease); }
@keyframes owcut { 0% { transform: translate(-50%, -50%) scale(.6); } 60% { transform: translate(-50%, -50%) scale(1.08) rotate(-2deg); } 100% { transform: translate(-50%, -50%); } }
.ow-rcv.down .tap-ico { animation: owflicker 1.8s steps(1) infinite; }
@keyframes owflicker { 0%, 100% { opacity: 1; } 8% { opacity: .3; } 12% { opacity: 1; } 55% { opacity: .4; } 58% { opacity: 1; } }
.ow-status.in b, .ow-status.in span { animation: clin .5s var(--ease) both; }
.ow-status.in span { animation-delay: .08s; }
.ow-scene:not(.fade) .tap-card { animation: clin .6s var(--ease) both; }
.ow-rcvs .tap-card:nth-child(3), .ow-devs .tap-card:nth-child(3) { animation-delay: .06s; }
.ow-rcvs .tap-card:nth-child(4), .ow-devs .tap-card:nth-child(4) { animation-delay: .12s; }
.ow-rcvs .tap-card:nth-child(5) { animation-delay: .18s; }
.ow-rcv.alerting { animation: buzz .45s 2 !important; }
.ow-rcvs .tap-txt b { font-size: 14px; }
.ow-rcvs .tap-txt small { font-size: 12px; }
.ow-tag { font-size: 9px; padding: 0 5px; }
@media (max-width: 991px) {
    .ow-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .ow-cam { grid-column: 1; grid-row: 1; }
    .ow-hub { grid-column: 1; grid-row: 2; align-self: start; justify-self: center; }
    .ow-scene .ow-status { grid-column: 1 / -1; grid-row: 3; }
    .ow-rcvs { grid-column: 2; grid-row: 1; }
    .ow-devs { grid-column: 2; grid-row: 2; }
}
@media (max-width: 767px) {
    .ow-scene { grid-template-columns: 1fr; }
    .ow-cam, .ow-rcvs, .ow-hub, .ow-devs, .ow-scene .ow-status { grid-column: 1; grid-row: auto; }
    .ow-hub { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .ow-scan, .ow-flash.on, .ow-hub.acting .ow-rings::before, .ow-hub.acting .ow-rings::after, .ow-rcv.down .tap-ico, .sig-ring { animation: none; }
}
.ow-scene .ow-cut svg { width: 16px; height: 16px; display: inline-block; }
.ow-scene .ow-status b { font-size: clamp(20px, 1.9vw, 26px); }
.ow-scene .ow-status span { font-size: 14px; }
.tap-ico.tap-img { padding: 3px; background: #f4f4f4; }
.tap-ico.tap-img img { height: 100%; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.ow-cam-id { display: flex; align-items: center; gap: 12px; }
.ow-cam-img { width: 92px; height: auto; flex: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.ow-scene.seen .ow-cam-img { animation: owcamnod 1.1s var(--ease) both; }
@keyframes owcamnod { 30% { transform: rotate(-3deg) translateY(-2px); } }
@media (max-width: 767px) {
    .ow-cam { order: 1; } .ow-cut { order: 2; } .ow-rcvs { order: 3; } .ow-hub { order: 4; } .ow-devs { order: 5; } .ow-scene .ow-status { order: 6; }
    .ow-cut { position: static; justify-self: start; transform: none !important; display: none; animation: none !important; }
    .ow-scene.offline .ow-cut { display: inline-flex; margin: -12px 0; }
}
/* Camera 04, two paths: online (top) and through the hub (bottom) */
.ow-devs .tap-card, .ow-rcvs .tap-card { padding: 8px 12px; }
.ow-devs .tap-ico, .ow-rcvs .tap-ico { width: 34px; height: 34px; }
.ow-devs .tap-txt b, .ow-rcvs .tap-txt b { font-size: 14px; }
.ow-devs .tap-txt small, .ow-rcvs .tap-txt small { font-size: 12px; }
.ow-devs .ow-rcv.alerting .tap-st, .ow-rcvs .ow-rcv.alerting .tap-st { color: var(--red); }
.ow-scene { row-gap: 28px; }
.ow-cut { top: 12%; left: 62%; }
.ow-status b.ok { color: var(--green); }
.ow-cut { top: 5%; left: 64%; }
.ow-hub { padding-right: 30px; }
.ow-cut { top: 12%; left: 90%; }

