/* ============================================================
   SHINDO — Smart Lights page (Build_15)
   Night-dark, with one colour that matters: alarm red.
   All pulses are smooth (~1 Hz, like Hue's own alert breathe) and only start on a click or a scroll.
   ============================================================ */
.mod--hl { --mc: #FF3B30; --mc-ink: #C4281F; --red: #FF3B30; --amber: #FFB547; --night: #07080d; --glow-core: #fff7e8; --glow-edge: #ffcf8a; }

/* page-wide red wash used while a demo strobe runs */
.hl-flash { position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(255,40,30,0.55), rgba(140,0,0,0.35) 70%); mix-blend-mode: screen; }

.hl-btn { position: relative; display: inline-flex; align-items: center; gap: 14px; justify-self: start; padding: 16px 28px 16px 20px; border-radius: 99px; border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--red); box-shadow: 0 10px 40px rgba(255,59,48,0.45), inset 0 1px 0 rgba(255,255,255,0.3); transition: transform 150ms, box-shadow 300ms; }
.hl-btn:hover { box-shadow: 0 14px 60px rgba(255,59,48,0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
.hl-btn:active { transform: scale(0.97); }
.hl-btn i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(255,255,255,0.4) 31% 60%, transparent 61%); box-shadow: 0 0 12px #fff; }
.hl-btn.is-run { background: #2a0d0b; box-shadow: inset 0 0 0 2px var(--red); }
.hl-btn.is-run i { background: conic-gradient(var(--red) calc(var(--p, 0) * 1turn), rgba(255,255,255,0.15) 0); box-shadow: none; }

/* ---------- 1 · Hero — the dark bedroom ---------- */
.hl-hero { position: relative; height: 100svh; min-height: 740px; overflow: hidden; color: #fff; isolation: isolate; background: #050507; }
.hl-hero__room { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hl-hero__copy { position: absolute; z-index: 2; left: clamp(24px, 4.6vw, 88px); top: calc(var(--nav-h) + clamp(30px, 7vh, 90px)); max-width: min(600px, 88vw); display: grid; gap: 22px; }
.hl-hero__copy .eyebrow { color: var(--red); }
.hl-hero__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(50px, 6vw, 104px); line-height: 0.98; letter-spacing: -0.045em; text-shadow: 0 0 60px rgba(0,0,0,0.6); }
.hl-hero__lead { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.75); max-width: 46ch; }
.hl-hero__phone.iphone { position: absolute; z-index: 2; right: clamp(24px, 6vw, 120px); top: calc(var(--nav-h) + 4vh); width: min(270px, 19vw); will-change: transform; }
.hl-hero__safe { position: absolute; z-index: 2; left: clamp(24px, 4.6vw, 88px); bottom: 22px; margin: 0; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------- 3 · House (sticky) ---------- */
.hl-house { position: relative; height: 420vh; margin: 0 var(--inset); border-radius: var(--radius-xl); background: #05060d; }
.hl-house__sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; border-radius: var(--radius-xl); color: #fff; }
.hl-house__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-stars circle { fill: #fff; }
.h-wire { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.h-wire--on { stroke: var(--red); stroke-dasharray: none; stroke-width: 3.5; filter: drop-shadow(0 0 6px var(--red)); }
.h-node path, .h-node rect { fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms; }
.h-node circle { fill: rgba(255,255,255,0.35); }
.h-node text, .h-bridge text { fill: rgba(255,255,255,0.55); font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.08em; text-anchor: middle; text-transform: uppercase; transition: fill 400ms; }
.h-node.is-on path, .h-node.is-on rect { stroke: #fff; } .h-node.is-on text { fill: #fff; } .h-node.is-on circle { fill: var(--red); }
.h-packet { fill: #fff; filter: drop-shadow(0 0 10px var(--red)) drop-shadow(0 0 4px #fff); opacity: 0; }
.h-aura { fill: url(#hlAura); opacity: var(--aura, 0); }
.h-roof { fill: #11131d; stroke: #262a3a; stroke-width: 3; }
.h-room rect { fill: var(--rc, #0d0f18); }
.h-cone { fill: url(#hlCone); opacity: var(--ca, 0); mix-blend-mode: screen; }
.h-room .h-cone { fill: var(--cc, #fff); }
.h-bulb { fill: var(--bc, #2b2d38); filter: drop-shadow(0 0 var(--bg, 0px) var(--bc, #000)); }
.h-walls { fill: none; stroke: #2a2e40; stroke-width: 6; }
.h-furn { fill: #1b1d29; } .h-furn--b { fill: #232637; } .h-pillow { fill: #2e3144; }
.h-skin { fill: #c89b7b; } .h-blanket { fill: #3b4a7a; } .h-blanket--k { fill: #6a4a8a; }
.h-sleeper, .h-kid { transition: transform 600ms cubic-bezier(.3,1.4,.5,1); }
.is-awake .h-sleeper { transform: rotate(-38deg); } .is-awake .h-kid { transform: rotate(-30deg); }
.h-z { fill: rgba(255,255,255,0.4); font-family: var(--font-mono); font-size: 22px; transition: opacity 300ms; }
.is-awake .h-z { opacity: 0; }
.h-catb { fill: #0b0b0f; } .h-catb--e { fill: #0b0b0f; stroke: #0b0b0f; }
.h-cat { transition: transform 300ms cubic-bezier(.3,1.8,.5,1); } .is-awake .h-cat { transform: translateY(-42px); }
.h-bridge rect { fill: #e8e8ea; } .h-bridge circle { fill: var(--brc, #7d8090); filter: drop-shadow(0 0 4px var(--brc, transparent)); }
.h-phone rect { fill: #0a0a0c; stroke: #3a3c48; stroke-width: 2; } .h-cable { fill: none; stroke: #3a3c48; stroke-width: 2; }
.h-phone text { fill: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 14px; text-anchor: middle; }
.h-room-l { fill: rgba(255,255,255,0.35); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.hl-house__copy { position: absolute; z-index: 2; left: clamp(24px, 4vw, 72px); bottom: clamp(28px, 6vh, 64px); max-width: min(420px, 30%); display: grid; gap: 12px; }
.hl-house__clock { display: flex; align-items: baseline; gap: 14px; }
.h-clock { font-family: var(--font-display); font-weight: 600; font-size: clamp(54px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.h-count { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; color: var(--red); }
.hl-house__cap { margin: 0; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,0.88); min-height: 4.5em; }

/* ---------- 4 · Test ---------- */
.hl-test { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin: var(--inset) var(--inset) 0; border-radius: var(--radius-xl);
  padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 28% 50%, rgba(var(--wash, 255,59,48), var(--wa, 0)) 0%, rgba(var(--wash, 255,59,48), 0) 70%), #0a0909; }
.hl-test__bulb { position: relative; justify-self: center; width: min(360px, 80%); aspect-ratio: 2 / 3; }
.hl-test__bulb > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.t-halo { fill: rgba(var(--wash, 255,59,48), calc(var(--wa, 0) * 0.55)); filter: blur(24px); }
.t-glass { fill: url(#hlBulb); fill-opacity: calc(0.12 + var(--lit, 0) * 0.88); stroke: rgba(255,255,255,0.35); stroke-width: 2; }
.t-fil { fill: none; stroke: rgba(255,210,150, calc(0.3 + var(--lit, 0) * 0.7)); stroke-width: 2.5; stroke-linejoin: round; }
.t-cap { fill: #8b8d96; }
.hl-test__ring { position: absolute; left: 50%; top: 37%; width: 112%; transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; }
.hl-test__ring circle { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 1.2; }
.hl-test__ring .t-ring { stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 * (1 - var(--rp, 0))); }
.hl-test__n { position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: 44px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.4); }
.hl-test.is-run .hl-test__n { color: #fff; }
.hl-test__copy { display: grid; gap: 20px; }
.hl-test__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.hl-seg { justify-self: start; }
.fc-seg { background: #1A1D21; padding: 4px; border-radius: 99px; display: inline-flex; gap: 2px; }
.fc-seg button { border: 0; background: transparent; color: rgba(255,255,255,0.75); padding: 10px 18px; border-radius: 99px; font: inherit; font-size: 15px; cursor: pointer; transition: background 250ms, color 250ms; }
.fc-seg button[aria-pressed="true"] { background: #fff; color: #111; font-weight: 600; }
.hl-test__shot { width: min(460px, 100%); border-radius: 18px; }

/* ---------- 5 · Gates ---------- */
.hl-gates { padding: clamp(80px, 10vw, 150px) clamp(24px, 4.6vw, 88px); display: grid; gap: 28px; }
.hl-gates__head { display: grid; gap: 16px; max-width: 820px; }
.hl-gates__head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.hl-gates__board { position: relative; height: clamp(400px, 40vw, 520px); border-radius: var(--radius-xl); background: #0b0c11; color: #fff; overflow: hidden; }
.hl-gates__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl-gate { position: absolute; left: var(--gx); top: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; z-index: 2; }
.hl-gate b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hl-chips { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,0.06); }
.hl-chips button { width: 26px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,0.6); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hl-chips button[aria-pressed="true"] { background: var(--gc, #4FD1C5); color: #06201d; }
.hl-gate[data-g="2"] { --gc: var(--red); } .hl-gate[data-g="2"] .hl-chips button[aria-pressed="true"] { color: #fff; }
.hl-gates__tally { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; margin: 0; display: flex; gap: clamp(14px, 3vw, 40px); }
.hl-gates__tally div { display: grid; gap: 2px; }
.hl-gates__tally dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hl-gates__tally dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-gates__tally .k3 { color: var(--red); }
.hl-gates__fine { margin: 0; font-size: 13px; color: var(--ink-soft); }
.hl-gates__shot { justify-self: start; width: min(420px, 100%); border-radius: 18px; box-shadow: 0 20px 50px rgba(10,14,20,0.18); }

/* ---------- 6 · Path ---------- */
.hl-path { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; margin: 0 var(--inset); border-radius: var(--radius-xl);
  padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; background: #08090e; }
.hl-path__copy { display: grid; gap: 20px; }
.hl-path__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.75); }
.hl-path__toggles { display: grid; gap: 8px; }
.hl-path__toggles button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); color: #fff; font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: border-color 250ms, background 250ms; }
.hl-path__toggles i { position: relative; flex: none; width: 38px; height: 22px; border-radius: 22px; background: rgba(255,255,255,0.15); transition: background 250ms; }
.hl-path__toggles i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 250ms; }
.hl-path__toggles button[aria-pressed="true"] { border-color: rgba(255,181,71,0.5); background: rgba(255,181,71,0.06); }
.hl-path__toggles button[aria-pressed="true"] i { background: var(--amber); } .hl-path__toggles button[aria-pressed="true"] i::after { transform: translateX(16px); }
.hl-path__verdict { margin: 0; padding: 14px 18px; border-radius: 14px; font-size: 16px; font-weight: 600; background: rgba(48,209,88,0.12); color: #6EE79A; min-height: 3.2em; }
.hl-path__verdict.is-bad { background: rgba(255,59,48,0.14); color: #FF8A80; }
.hl-path__svg { width: 100%; height: auto; overflow: visible; }
.p-line { fill: none; stroke: rgba(255,59,48,0.75); stroke-width: 3; stroke-dasharray: 6 8; animation: hlDash 1s linear infinite; }
@keyframes hlDash { to { stroke-dashoffset: -14; } }
.p-line.is-dead { stroke: rgba(255,255,255,0.12); animation: none; }
.p-phone { stroke: rgba(255,255,255,0.35); }
.p-dot { fill: #fff; filter: drop-shadow(0 0 8px var(--red)); } .p-dot.is-dead { opacity: 0; }
.p-n circle, .p-n rect { fill: #14161f; stroke: rgba(255,255,255,0.4); stroke-width: 2.5; }
.p-n text, .p-home-box text { fill: rgba(255,255,255,0.7); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-anchor: middle; text-transform: uppercase; }
.p-home-box text { text-anchor: start; fill: rgba(255,255,255,0.4); }
.p-home-box rect { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 2; stroke-dasharray: 4 6; }
.p-x { opacity: 0; transition: opacity 250ms; } .p-x path { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.is-x .p-x { opacity: 1; } .is-x rect { stroke: rgba(255,59,48,0.7); }
.p-bulbs circle { fill: rgba(255,59,48, var(--pb, 0.9)); filter: drop-shadow(0 0 calc(var(--pb, 0.9) * 22px) rgba(255,59,48,0.9)); transition: fill 300ms; }
.p-bulbs.is-dead circle { fill: #22242e; filter: none; }

/* ---------- 7 · Key ---------- */
.hl-key { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding: clamp(80px, 10vw, 150px) clamp(24px, 4.6vw, 88px); }
.hl-key__copy { display: grid; gap: 20px; }
.hl-key__copy > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.hl-key__again { justify-self: start; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(0,0,0,0.15); background: transparent; font: inherit; font-size: 14px; cursor: pointer; }
.hl-key__stage { position: relative; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: stretch; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-xl); background: #0b0c11; color: #fff; min-height: 380px; overflow: hidden; }
.hl-key__side { display: grid; gap: 12px; align-content: center; }
.hl-key__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hl-key__field { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); min-height: 52px; }
.hl-key__field small { font-size: 11px; color: rgba(255,255,255,0.5); } .hl-key__field span { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; min-height: 1.2em; }
.hl-key__ok { justify-self: start; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.12); transition: background 300ms, color 300ms; }
.hl-key__ok.is-on { background: #fff; color: #111; }
.hl-key__wall { position: relative; } .hl-key__wall i { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; border-radius: 6px; background: repeating-linear-gradient(180deg, #2a2d3a 0 18px, #1d1f29 18px 22px); }
.hl-key__wall i::after { content: ""; position: absolute; left: -4px; right: -4px; top: 46%; height: 34px; border-radius: 6px; background: #3a3d4c; box-shadow: inset 0 0 0 2px #4b4f62; }
.hl-key__token { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,59,48,0.25), rgba(255,181,71,0.15)); border: 1px solid rgba(255,59,48,0.45); opacity: 0; transform: translateX(-140%) scale(0.8); transition: transform 900ms cubic-bezier(.2,.8,.2,1), opacity 400ms; overflow: hidden; }
.hl-key__token.is-in { opacity: 1; transform: none; }
.hl-key__token small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.hl-key__token b { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; }
.hl-key__token.is-shred { background: transparent; border-color: transparent; }
.hl-key__token.is-shred > small, .hl-key__token.is-shred > b { opacity: 0; transition: opacity 150ms; }
.k-strips { position: absolute; inset: 0; display: flex; pointer-events: none; }
.k-strips i { flex: 1; background: linear-gradient(135deg, rgba(255,59,48,0.5), rgba(255,181,71,0.35)); border-right: 1px solid rgba(0,0,0,0.4); animation: hlShred 1.2s cubic-bezier(.5,0,.8,.4) forwards; animation-delay: var(--d); }
@keyframes hlShred { to { transform: translateY(260px) rotate(var(--r)); opacity: 0; } }
.hl-key__never { margin: 4px 0 0; display: grid; gap: 6px; }
.hl-key__never div { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.6); }
.hl-key__never dd { margin: 0; color: #6EE79A; font-weight: 600; }
.hl-key__revoke { justify-self: start; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255,59,48,0.6); background: transparent; color: #FF6B60; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hl-key__revoke:disabled { opacity: 0.35; cursor: default; }
.hl-key__status { font-size: 13px; color: rgba(255,255,255,0.65); min-height: 1.3em; }

/* ---------- 8 · Kit ---------- */
.hl-kit { margin: 0 var(--inset); border-radius: var(--radius-xl); padding: clamp(70px, 8vw, 130px) clamp(24px, 4.6vw, 88px); color: #fff; background: #0a0a0d; display: grid; gap: 36px; }
.hl-kit__head { display: grid; gap: 16px; }
.hl-kit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hl-kit__list li { display: grid; gap: 10px; padding: 28px 24px; border-radius: 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.hl-kit__list b { font-family: var(--font-display); font-weight: 500; font-size: 22px; } .hl-kit__list p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.65); }
.hl-kit__bulb { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0 18%, var(--kc) 45%, transparent 72%); box-shadow: 0 0 40px var(--kc); animation: hlBreathe 2s ease-in-out infinite; }
.hl-kit__list li.is-off .hl-kit__bulb { background: radial-gradient(circle, #3a3a3e 0 45%, transparent 70%); box-shadow: none; animation: none; }
@keyframes hlBreathe { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1); } }
.hl-kit__shop { justify-self: start; background: #fff; color: #111; }

/* ---------- 9 · Statement — filaments ---------- */
.hl-glow { margin: var(--inset) var(--inset) 0; border-radius: var(--radius-xl); padding: clamp(110px, 14vw, 220px) clamp(24px, 6vw, 140px); text-align: center; background: #060608; overflow: hidden; }
.hl-glow h2 { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.8vw, 82px); line-height: 1.1; letter-spacing: -0.035em; }
.hl-glow .wd { display: inline-block; white-space: nowrap; }
html[lang="ja"] .hl-glow .wd { display: inline; white-space: normal; }
.hl-glow .ch { color: #1e1e24; transition: color 120ms, text-shadow 120ms; }
.hl-glow .ch.is-on { color: #FFE9C7; text-shadow: 0 0 18px rgba(255,190,110,0.9), 0 0 2px #fff; }
.hl-glow.is-alarm .ch.is-on { color: #fff; text-shadow: 0 0 calc(10px + var(--al, 0) * 30px) rgba(255,59,48,calc(0.4 + var(--al, 0) * 0.6)); }

/* ---------- Homepage row ---------- */
.hl-home { position: relative; aspect-ratio: 16 / 13; width: 100%; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; background: #07070a; }
.hl-home__in { position: absolute; inset: 0; transform: rotateX(calc(var(--rx, 0deg) * 0.5)) rotateY(calc(var(--ry, 0deg) * 0.5)) scale(1.03); transition: transform 600ms var(--ease); }
.hl-home__wash { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 20%, rgba(255,59,48,0.85), rgba(255,59,48,0) 70%); animation: hlHome 6s ease-in-out infinite; }
@keyframes hlHome { 0%, 40%, 100% { opacity: 0.08; } 46%, 56%, 66%, 76% { opacity: 1; } 51%, 61%, 71% { opacity: 0.25; } }
.hl-home__lamp { position: absolute; left: 50%; top: 0; width: 2px; height: 16%; background: #333; }
.hl-home__lamp::after { content: ""; position: absolute; left: -16px; bottom: -16px; width: 34px; height: 18px; border-radius: 18px 18px 4px 4px; background: #2a2a2e; box-shadow: 0 14px 30px 8px rgba(255,59,48,0.6); animation: hlHomeB 6s ease-in-out infinite; }
@keyframes hlHomeB { 0%, 40%, 100% { box-shadow: 0 14px 30px 4px rgba(255,200,140,0.2); } 46%, 56%, 66%, 76% { box-shadow: 0 14px 50px 14px rgba(255,59,48,0.9); } }
.hl-home__card { position: absolute; margin: 0; z-index: 2; }
.hl-home__card img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.hl-home__card--head { width: 58%; left: 5%; bottom: 7%; }
.hl-home__card--flash { width: 46%; right: 5%; top: 24%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hl-hero__phone.iphone { display: none; }
  .hl-hero__copy { top: calc(var(--nav-h) + 24px); }
  .hl-house { height: 380vh; }
  .hl-house__copy { max-width: none; right: 20px; left: 20px; bottom: 20px; }
  .hl-house__svg { top: -14%; height: 82%; }
  .hl-house__cap { font-size: 15px; min-height: 6em; }
  .hl-test, .hl-path, .hl-key { grid-template-columns: 1fr; }
  .hl-test__bulb { width: min(220px, 60%); }
  .hl-gate { top: 10px; } .hl-chips button { width: 18px; height: 24px; font-size: 11px; border-radius: 6px; } .hl-chips { gap: 1px; padding: 2px; }
  .hl-gate[data-g="0"] { --gx: 19% !important; } .hl-gate[data-g="1"] { --gx: 50% !important; } .hl-gate[data-g="2"] { --gx: 81% !important; }
  .hl-key__stage { grid-template-columns: 1fr; grid-template-rows: auto 30px auto; }
  .hl-key__wall i { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 6px; margin: -3px 0 0; background: repeating-linear-gradient(90deg, #2a2d3a 0 18px, #1d1f29 18px 22px); }
  .hl-key__wall i::after { top: -6px; bottom: -6px; height: auto; left: 44%; right: 44%; }
  .hl-key__token { transform: translateY(-140%) scale(0.8); }
  .hl-kit__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hl-kit__bulb, .hl-home__wash, .hl-home__lamp::after, .p-line { animation: none; } }

html[lang="ja"] .hl-hero__title { font-size: clamp(40px, 4.6vw, 80px); }

/* ---------- Build_19: homepage Smart Lights row on black, with a slow orange ember ---------- */
.hl-black { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--inset); border-radius: var(--radius-xl); background: #000; color: #fff;
  --ink: #fff; --ink-soft: rgba(255,255,255,0.62); }
.hl-black .eyebrow, .hl-black .h-l { color: #fff; }
.hl-black .lead { color: rgba(255,255,255,0.62); }
.hl-black::before, .hl-black::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
/* thin ember line along the top edge */
.hl-black::before { left: 10%; right: 10%; top: 1px; height: 1.5px; background: linear-gradient(90deg, rgba(255,128,48,0), rgba(255,150,70,0.95) 50%, rgba(255,128,48,0));
  box-shadow: 0 0 24px 3px rgba(255,120,40,0.45); animation: hlEmber 6s ease-in-out infinite; }
/* low, wide glow rising from the bottom */
.hl-black::after { inset: 0; background: radial-gradient(70% 40% at 62% 100%, rgba(255,112,36,0.22), rgba(255,112,36,0) 70%), radial-gradient(50% 22% at 50% 0%, rgba(255,140,60,0.12), rgba(255,140,60,0) 70%);
  animation: hlEmber 6s ease-in-out infinite; animation-delay: -3s; }
@keyframes hlEmber { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.hl-black .hl-home { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.hl-black .btn { background: #fff; color: #000; }
@media (prefers-reduced-motion: reduce) { .hl-black::before, .hl-black::after { animation: none; opacity: 0.7; } }
