/*
  Premium layer for the Langston Plumbing concept — loaded after styles.css.
  Adds: branded loader, floating glass nav, Ken Burns hero, glass credential
  chips, scroll reveals, review carousel, story band.
*/

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse 900px 620px at 50% 42%, #1b2733, #0b0f14);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; transition: opacity .6s ease, visibility .6s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
#loader .ring-wrap { position: relative; width: 212px; height: 212px; display: flex; align-items: center; justify-content: center; }
#loader .puck {
  background: #fff; border-radius: 50%; width: 170px; height: 170px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  animation: puck-in .9s cubic-bezier(.2,.9,.3,1.2) both;
}
#loader .puck img { width: 122px; height: auto; }
#loader svg.ring { position: absolute; width: 212px; height: 212px; transform: rotate(-90deg); }
#loader svg.ring circle {
  fill: none; stroke: #2f8ac9; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 650; stroke-dashoffset: 650;
  animation: ring-draw 1.5s .2s cubic-bezier(.4,0,.2,1) forwards;
}
#loader .motto {
  color: #a9bccd; font-size: 12.5px; letter-spacing: .42em; text-transform: uppercase;
  font-weight: 700; opacity: 0; animation: motto-in 1s .7s ease forwards; text-indent: .42em;
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes motto-in { to { opacity: 1; } }
@keyframes puck-in { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #loader { display: none; } }

/* ---------- floating glass nav ---------- */
.nav { padding: 12px 16px 0; }
.nav-inner {
  background: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.7);
  outline: 1px solid rgba(16,20,26,.06);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 38px rgba(16,20,26,.12);
  padding: 8px 18px;
  transition: box-shadow .3s ease;
  position: relative;
}
.nav.scrolled .nav-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 16px 46px rgba(16,20,26,.2); }
@media (max-width: 1080px) {
  .nav-links {
    border-radius: 0 0 16px 16px; overflow: hidden; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
}

/* ---------- hero ---------- */
.hero .bg { animation: kenburns 22s ease-out both; transform-origin: 55% 45%; }
@keyframes kenburns { from { transform: scale(1.13); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }

/* the mark and its copy settle in on load */
.hero-mark img { animation: mark-in 1.1s cubic-bezier(.2,.85,.3,1) both; }
.hero-copy > * { animation: copy-in .9s cubic-bezier(.2,.85,.3,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .16s; }
.hero-copy > *:nth-child(2) { animation-delay: .24s; }
.hero-copy > *:nth-child(3) { animation-delay: .32s; }
.hero-copy > *:nth-child(4) { animation-delay: .40s; }
.hero-copy > *:nth-child(5) { animation-delay: .48s; }
.chip-row { animation: copy-in .9s .56s cubic-bezier(.2,.85,.3,1) both; }
@keyframes mark-in { from { opacity: 0; transform: scale(.94) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-mark img, .hero-copy > *, .chip-row { animation: none; }
}

/* glass credential chips over the hero photo */
.chip-row { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 54px; }
.chip {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 20px; border-radius: 14px;
  background: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.33);
}
.chip .n { font-size: 20px; font-weight: 800; color: #8ec5ea; letter-spacing: -.02em; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.chip .n svg { width: 17px; height: 17px; fill: var(--copper); }
.chip .l { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: #d5e0ea; font-weight: 600; }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- story band ---------- */
.story { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.story .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.story .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,13,18,.82), rgba(9,13,18,.94)); }
.story .wrap-narrow { position: relative; z-index: 2; text-align: center; }
.story .eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #7cb8e4; margin-bottom: 18px; }
.story h2 { font-size: clamp(27px, 3.4vw, 40px); margin-bottom: 22px; }
.story p { color: #c3cfda; font-size: 17.5px; margin-bottom: 18px; }
.story .sig { margin-top: 30px; font-size: 14.5px; color: #8fa0b0; letter-spacing: .04em; }
.story .sig b { color: #fff; display: block; font-size: 16px; letter-spacing: 0; }

/* ---------- review carousel ---------- */
.carousel { position: relative; max-width: 820px; margin: 0 auto; min-height: 232px; }
.carousel .slide {
  opacity: 0; visibility: hidden; position: absolute; inset: 0;
  transition: opacity .5s ease, visibility .5s ease; text-align: center;
}
.carousel .slide.on { opacity: 1; visibility: visible; position: relative; }
.carousel .slide .stars { justify-content: center; margin-bottom: 20px; }
.carousel .slide p { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.5; color: var(--ink); font-weight: 500; margin-bottom: 20px; }
.carousel .slide .who { font-size: 14.5px; color: var(--muted); font-weight: 600; }
.carousel .slide .who b { color: var(--ink); }
.dots { display: flex; gap: 9px; justify-content: center; margin-top: 30px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--paper-3); transition: background .2s ease, transform .2s ease;
}
.dots button.on { background: var(--blue); transform: scale(1.25); }

/* ---------- misc polish ---------- */
.stat { transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,20,26,.08); }
