/* night storm over a Philly block: rain-cyan and streetlight amber. Alex 12-05: futuristic, makes the owner want it */
:root {
  --night: #070b24; --storm: #101a4d; --cyan: #3be8ff; --amber: #ffb23e; --white: #f2f6ff; --mist: #bccbf2;
  --head: "Chakra Petch", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { font: 400 17px/1.6 var(--body); color: var(--white); background: var(--night); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(52px, 8vw, 108px); letter-spacing: -.01em; text-shadow: 0 0 40px rgb(59 232 255 / .45); }
h2 { font-size: clamp(32px, 4.5vw, 54px); }
h3 { font-size: 20px; }
figcaption { font-size: 14px; font-weight: 600; color: var(--mist); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 36px); }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.star { fill: var(--amber); stroke: var(--amber); }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--mist); max-width: 34ch; margin-top: 16px; }
.glass { background: linear-gradient(150deg, rgb(37 58 140 / .55), rgb(12 20 62 / .72)); border: 1px solid rgb(59 232 255 / .35); border-radius: 18px; backdrop-filter: blur(14px); box-shadow: 0 0 40px -12px rgb(59 232 255 / .35), inset 0 1px 0 rgb(255 255 255 / .12); }

.preview { position: relative; z-index: 21; background: var(--storm); text-align: center; font-size: 13px; padding: 6px 16px; }
.nav { position: sticky; top: 0; z-index: 20; background: rgb(7 11 36 / .75); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(59 232 255 / .22); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 21px/1.05 var(--head); }
.mark .ico { width: 36px; height: 36px; color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.mark small { display: block; font-size: 13px; font-weight: 600; color: var(--mist); }
nav { display: flex; align-items: center; gap: 30px; }
nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:not(.btn):hover { color: var(--cyan); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 1px solid transparent; font: 700 17px/1.2 var(--head); text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow .18s ease, background-color .18s ease; }
.btn-lg { min-height: 60px; padding-inline: 28px; font-size: 19px; }
.btn-amber { background: var(--amber); color: var(--night); box-shadow: 0 0 28px -6px var(--amber); }
.btn-amber:hover { background: #ffc666; box-shadow: 0 0 40px -2px var(--amber); }
.btn-line { border-color: var(--cyan); background: rgb(59 232 255 / .08); color: var(--white); }
.btn-line:hover { background: rgb(59 232 255 / .2); box-shadow: 0 0 28px -6px var(--cyan); }
.btn:active { box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* without JavaScript or WebGL: a photo hero with the layer list under it */
.stage { position: relative; }
.view { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 70% 30%, #1b2d7a 0%, var(--night) 70%); }
.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
#scene { display: none; }
.hud { position: relative; display: grid; gap: 40px; padding-block: 72px; }
.intro { max-width: 580px; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--mist); }
.rating b { color: var(--white); font-size: 20px; }
.layers { padding: 24px; max-width: 430px; }
.layers h2 { font-size: 28px; margin-bottom: 12px; }
.layers ol { list-style: none; }
.layers li { padding: 10px 14px; border-left: 3px solid rgb(59 232 255 / .25); transition: background-color .25s ease, border-color .25s ease; }
.layers li p { font-size: 15px; color: var(--mist); }
.layers li.on { border-color: var(--amber); background: rgb(255 178 62 / .14); }
.layers li.on h3 { color: var(--amber); }
.hint { display: none; }
.motion { position: absolute; right: 18px; bottom: 18px; z-index: 3; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--cyan); background: var(--storm); color: var(--white); font: 700 15px var(--head); cursor: pointer; }

.is3d .fallback { display: none; }
.is3d #scene { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is3d .view { height: calc(100vh - 73px); height: calc(100svh - 73px); min-height: 560px; }
.is3d .hud { height: 100%; display: block; padding-block: 0; pointer-events: none; }
.is3d .intro { position: absolute; top: 46%; translate: 0 -50%; pointer-events: auto; }
.is3d .layers { display: none; }
.is3d.moving .stage { height: 380vh; }
.is3d.moving .view { position: sticky; top: 73px; }
.is3d.moving .layers { display: block; position: absolute; top: 48%; translate: 0 -50%; opacity: 0; visibility: hidden; }
.is3d.moving .hint { display: block; position: absolute; left: 50%; bottom: 16px; translate: -50% 0; font-size: 14px; color: var(--mist); white-space: nowrap; }

.block { padding-block: clamp(72px, 9vw, 128px); position: relative; }
#quote { scroll-margin-top: 20px; }
.quote { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
fieldset { border: 0; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
legend { font: 700 18px var(--head); margin-bottom: 12px; }
fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 12px; border: 1px solid rgb(59 232 255 / .35); background: rgb(30 48 118 / .45); font-weight: 600; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
fieldset span:hover { background: rgb(59 232 255 / .18); }
fieldset input:checked + span { background: var(--cyan); color: var(--night); box-shadow: 0 0 26px -6px var(--cyan); }
fieldset input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }
.field { display: block; margin-top: 30px; font: 700 18px var(--head); }
.field input { display: block; width: 100%; max-width: 420px; min-height: 52px; margin-top: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgb(59 232 255 / .35); background: var(--storm); color: var(--white); font: 400 17px var(--body); }
.phone { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.to { font-size: 14px; color: var(--mist); text-align: center; }
.bubble { align-self: flex-end; max-width: 92%; min-height: 96px; background: #1a5ee0; border-radius: 22px 22px 6px 22px; padding: 16px 20px; font-size: 18px; overflow-wrap: anywhere; }
.note { font-size: 13px; color: var(--mist); text-align: center; }

.rail { list-style: none; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px max(18px, calc((100vw - 1168px) / 2)) 28px; scroll-padding-inline: max(18px, calc((100vw - 1168px) / 2)); scrollbar-color: var(--cyan) var(--storm); }
.rail li { flex: 0 0 min(78vw, 380px); height: 500px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 1px solid rgb(59 232 255 / .45); box-shadow: 0 0 34px -12px var(--cyan); }
.rail img { width: 100%; height: 100%; object-fit: cover; }

.big { text-align: center; max-width: 980px; margin: 0 auto 60px; }
.big blockquote { font: 700 clamp(32px, 5.4vw, 68px)/1.12 var(--head); text-wrap: balance; text-shadow: 0 0 44px rgb(59 232 255 / .55); }
.big figcaption { margin-top: 22px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.reviews figure { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.reviews blockquote { font-size: 19px; }
.reviews figcaption { margin-top: auto; }
.stars { display: flex; gap: 3px; }
.source { text-align: center; margin-top: 34px; color: var(--cyan); }

.close { text-align: center; padding-block: clamp(80px, 10vw, 140px); background: radial-gradient(60% 90% at 50% 100%, rgb(255 178 62 / .35), transparent 70%), var(--storm); border-top: 1px solid rgb(59 232 255 / .3); }
.close .lead { margin-inline: auto; }
.close .actions { justify-content: center; }
.foot { text-align: center; font-size: 14px; color: var(--mist); padding-block: 34px; }
.dock { display: none; }

@media (max-width: 900px) {
  .quote, .reviews { grid-template-columns: minmax(0, 1fr); }
  nav a:not(.btn) { display: none; }
  .is3d .intro, .is3d.moving .layers { top: auto; bottom: 20px; translate: none; left: 18px; right: 18px; max-width: 520px; }
  .is3d .intro { padding-inline: 0; }
  .is3d.moving .layers { padding: 14px; }
  .is3d.moving .layers h2 { font-size: 21px; margin-bottom: 6px; }
  .is3d.moving .layers li { padding: 5px 12px; }
  .is3d.moving .layers li:not(.on) p { display: none; }
  .is3d.moving .hint { display: none; }
}
@media (max-width: 600px) {
  .nav .btn { display: none; }
  h1 { font-size: 46px; }
  .actions { margin-top: 18px; gap: 10px; }
  .actions .btn { flex: 1 1 100%; }
  .is3d .view { height: calc(100vh - 151px); height: calc(100svh - 151px); min-height: 520px; }
  .is3d .intro .lead { font-size: 16px; margin-top: 8px; }
  .is3d .intro .btn-lg { min-height: 50px; }
  .is3d .intro .rating { margin-top: 12px; }
  .motion { top: 12px; bottom: auto; right: 12px; }
  .rail li { height: 420px; }
  body { padding-bottom: 78px; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--night); border-top: 1px solid rgb(59 232 255 / .3); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 600px) { .is3d .intro { bottom: 58px; } .motion { top: 12px; } }
/* top corner: the preview banner pushes the bottom of the first screen out of view */
.motion { top: 16px; bottom: auto; }
/* phones: fade the scene out behind the headline so the words stay clear of the house */
@media (max-width: 600px) { .is3d .intro::before { content: ""; position: absolute; z-index: -1; inset: -6px -18px -60px; background: linear-gradient(transparent, rgb(7 11 36 / .82) 56px); } .is3d .intro { isolation: isolate; } }
