/* Landing page — sections */
main { overflow-x: clip; }       /* decorative glows may bleed past the viewport; never scroll sideways */
section { scroll-margin-top: 90px; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 14px 0 18px; }
.section-head p { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 62ch; }
.section-head.center p { margin-inline: auto; }

/* ---- hero ------------------------------------------------------------------ */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 100px); background: var(--hero-wash); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 82px); letter-spacing: -.035em; margin: 18px 0 24px; line-height: 1.02; }
.hero .lede { font-size: clamp(17.5px, 1.6vw, 21px); color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-points { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 38px; color: var(--muted); font-size: 14.5px; }
.hero-points span { display: inline-flex; gap: 9px; align-items: center; }
.hero-points svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-stage { position: relative; aspect-ratio: 1 / .93; width: 100%; }
.hero-stage .h-tablet { position: absolute; right: 0; top: 2%; width: 90%; filter: drop-shadow(0 40px 50px rgba(10, 34, 61, .28)); }
.hero-stage .h-phone { position: absolute; left: 0; bottom: 0; width: 26.5%; z-index: 3; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .38)); }
.hero-glow { position: absolute; inset: 8% -6% -4% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(223,182,120,.5), transparent 72%); filter: blur(26px); }
:root[data-theme="dark"] .hero-glow { background: radial-gradient(closest-side, rgba(223,182,120,.22), transparent 72%); }
.auto-badge { position: absolute; z-index: 6; left: 29%; top: -2%; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 500 13.5px/1.2 var(--font-body); color: var(--ink-2); }
.auto-badge b { color: var(--ink); font-weight: 600; }
.auto-badge svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auto-badge .i-moon { display: none; } :root[data-theme="dark"] .auto-badge .i-sun { display: none; } :root[data-theme="dark"] .auto-badge .i-moon { display: block; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-stage { max-width: 640px; margin-inline: auto; } .auto-badge { left: 24%; } }
@media (max-width: 520px) { .auto-badge { left: 4%; top: -8%; font-size: 12.5px; } .hero-stage { aspect-ratio: 1 / .8; margin-top: 28px; } .hero-stage .h-phone { width: 34%; } }

/* ---- capability strip ---------------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding-block: 26px; }
.cap { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 500 14px/1.3 var(--font-body); color: var(--ink-2); padding: 6px 4px; }
.cap svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 820px) { .strip-in { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }

/* ---- live showcase ---------------------------------------------------------------- */
.showcase { max-width: 980px; margin-inline: auto; }
/* device tabs + the doorbell button on one row, above the device, so the call is visible when you press it */
.sc-bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 26px; }
.sc-bar .sc-tabs { margin: 0; }
.sc-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; margin: 0 auto 26px; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs button { appearance: none; border: 0; background: transparent; color: var(--ink-2); padding: 11px 22px; border-radius: 999px; font: 600 14.5px/1 var(--font-head); cursor: pointer; white-space: nowrap; }
.sc-tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
:root[data-theme="dark"] .sc-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.sc-stage { min-height: 420px; display: grid; justify-items: center; align-content: start; }
.sc-stage .wide { width: 100%; } .sc-stage .tall { width: min(100%, 400px); }
.sc-note { margin-top: 16px; color: var(--muted); font-size: 14.5px; text-align: center; max-width: 56ch; }
.sc-link { margin-top: 26px; text-align: center; }

/* ---- day / night ----------------------------------------------------------------------- */
.daynight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.dn-visual { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); isolation: isolate; background: #000; }
.dn-visual .dn-night, .dn-visual .dn-day { position: absolute; inset: 0; background-size: cover; background-position: center; }
.dn-visual .dn-night { clip-path: inset(0 0 0 var(--split, 50%)); }
.dn-visual .dn-labels { position: absolute; left: 0; right: 0; top: 16px; display: flex; justify-content: space-between; padding: 0 18px; z-index: 3; pointer-events: none; }
.dn-visual .dn-labels span { padding: 7px 14px; border-radius: 999px; background: rgba(10,34,61,.62); color: #fff; font: 600 12.5px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.dn-visual .dn-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; margin-left: -1.5px; background: #fff; z-index: 4; box-shadow: 0 0 18px rgba(0,0,0,.45); }
.dn-visual .dn-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 20px; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.dn-visual input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.dn-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.dn-points li { display: flex; gap: 14px; color: var(--ink-2); }
.dn-points svg { flex: none; width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.dn-points b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .daynight { grid-template-columns: 1fr; } }

/* ---- designed around you ----------------------------------------------------------------- */
.custom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.custom-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.custom-card .cc-img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; position: relative; }
.custom-card .cc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,23,44,.55)); }
.custom-card .cc-tag { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font: 600 13px/1 var(--font-head); letter-spacing: .06em; }
.custom-card .cc-body { padding: 22px 24px 26px; }
.custom-card h3 { font-size: 21px; margin-bottom: 10px; }
.custom-card p { color: var(--ink-2); font-size: 15.5px; }
.rooms-strip { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rooms-strip .rs { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.rooms-strip .rs span { position: absolute; left: 12px; bottom: 10px; color: #fff; font: 600 13.5px/1 var(--font-head); text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.rooms-strip .rs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.rooms-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .custom-grid { grid-template-columns: 1fr; } .rooms-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- the remote ----------------------------------------------------------------------------- */
.remote-sec { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.remote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.remote-copy h2 { font-size: clamp(32px, 4.2vw, 52px); margin: 14px 0 18px; }
.remote-copy > p { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 56ch; }
.feat-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.feat-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.feat-list .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.feat-list .fi svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-list h3 { font-size: 18px; margin-bottom: 4px; }
.feat-list p { color: var(--ink-2); font-size: 15.5px; }
.remote-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.remote-fig { position: relative; }
.remote-fig::before { content: ""; position: absolute; inset: 10% -14% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(223,182,120,.34), transparent 72%); filter: blur(20px); }
@media (max-width: 900px) { .remote-grid { grid-template-columns: 1fr; } .remote-fig { max-width: 380px; margin-inline: auto; order: -1; } }
/* On phones the remote sits above the text, so the "Ring the doorbell" button was far below its screen. A copy of the button
   (#remoteRingM) is pinned to the bottom of the viewport while the remote is on screen the inline one is hidden. */
.remote-ring-m { display: none; }
@media (max-width: 900px) {
  .remote-ring-m { display: flex; justify-content: center; position: sticky; bottom: 18px; z-index: 6; margin-top: 14px; pointer-events: none; }
  .remote-ring-m .btn { pointer-events: auto; box-shadow: 0 16px 34px -10px rgba(10,34,61,.55), 0 4px 10px -4px rgba(10,34,61,.3); }
  .remote-cta #remoteRing { display: none; }
  }

/* ---- why -------------------------------------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.why { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why svg { width: 34px; height: 34px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.why h3 { font-size: 19px; margin-bottom: 10px; }
.why p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- "see a real photo" toggle ---------------------------------------------------------------------- */
.photo-row { display: flex; justify-content: center; margin-top: 18px; }
.photo-row:empty { display: none; }
.photo-btn { padding: 11px 22px; font-size: 14.5px; }
.photo-frame { margin: 0; width: 100%; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.photo-frame img { width: 100%; height: auto; display: block; }
.remote-fig .photo-frame { max-width: 420px; margin-inline: auto; }

/* ---- the real remote: photo carousel (swaps in for the live remote) ----------------------------------------- */
.rc { position: relative; width: 100%; max-width: 380px; margin-inline: auto; }
.rc[hidden] { display: none; }
.rc-stage { position: relative; aspect-ratio: 800 / 1602; }   /* = the remote-on-its-stand photo: every other picture is capped at its height */
.rc-slide { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(26px) scale(.97); pointer-events: none;
  filter: drop-shadow(0 30px 34px rgba(10,34,61,.36)); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rc-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.rc-slide.photo img { border-radius: 20px; }
.rc-slide.on { opacity: 1; transform: none; }
.rc-btn { position: absolute; top: 40%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); box-shadow: var(--shadow); transition: border-color .2s, background .2s; }
.rc-btn:hover { border-color: var(--accent); }
.rc-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-btn.prev { left: -8px; } .rc-btn.next { right: -8px; }
.rc .cf-dots { margin-top: 10px; }

/* ---- how we work ---------------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 40px/1 var(--font-head); letter-spacing: -.04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- service area ------------------------------------------------------------------------------------- */
.area { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 15px/1 var(--font-body); color: var(--ink-2); }
.pill.hq { background: var(--navy); color: var(--cream); border-color: var(--navy); }
:root[data-theme="dark"] .pill.hq { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.area-art { position: relative; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #153a63 0%, #2c5d8c 48%, #e6c58f 78%, #f4dfba 100%); box-shadow: var(--shadow); }
:root[data-theme="dark"] .area-art { background: linear-gradient(180deg, #050f1f 0%, #0b2142 52%, #1a3556 80%, #22314a 100%); }
.area-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area-art .cap { position: absolute; left: 22px; bottom: 20px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.4); display: block; padding: 0; text-align: left; align-items: flex-start; }
.area-art .cap b { display: block; font: 600 22px/1.15 var(--font-head); }
.area-art .cap span { font-size: 14px; opacity: .9; }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr; } }

/* ---- contact ---------------------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4.2vw, 52px); margin: 14px 0 18px; }
.contact-copy > p { color: var(--ink-2); max-width: 46ch; }
.contact-facts { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.contact-facts li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.contact-facts svg { flex: none; width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-facts a:hover { color: var(--accent); border-color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; margin-bottom: 20px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 7px; margin-bottom: 16px; }
.f label, .f .lbl { font: 600 13.5px/1 var(--font-head); color: var(--ink-2); }
.f input, .f select, .f textarea { width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 120px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; position: relative; }
.checks input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; }
.checks span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); font: 500 14px/1 var(--font-body); color: var(--ink-2); transition: .2s; }
.checks input:checked + span { background: var(--navy); color: var(--cream); border-color: var(--navy); }
:root[data-theme="dark"] .checks input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 34ch; }
.form-ok { display: none; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, #5fd38a 16%, transparent); border: 1px solid color-mix(in srgb, #5fd38a 50%, transparent); margin-top: 16px; color: var(--ink); font-size: 15px; }
.form-ok.show { display: block; }
.hp { position: absolute; left: -9999px; }
.form-ok.bad { color: #b3402f; background: color-mix(in srgb, #e0594a 13%, transparent); border-color: color-mix(in srgb, #e0594a 40%, transparent); }
:root[data-theme="dark"] .form-ok.bad { color: #ff9c8a; }
.ts-box { margin: 4px 0 12px; min-height: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; } }

/* The real remote is a long, slim stick: on the page show it down to the colour keys and fade out the empty lower body. */
#remoteHost { max-height: 1010px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
