/* Kings: royal purple + gold crest. One light theme; every surface token has an --on-* partner. */
:root {
  --page: #f5f2fb;     --on-page: #1f1640;   --on-page-soft: #4a4166;
  --royal: #261a57;    --on-royal: #f6f1ff;  --on-royal-soft: #d4cbef;
  --royal-2: #3a2a7a;  --on-royal-2: #f6f1ff;
  --gold: #e8b93f;     --on-gold: #1f1640;
  --gold-hi: #f2cd66;  --on-gold-hi: #1f1640;
  --lilac: #e6def7;    --on-lilac: #1f1640;
  --card: #fdfcff;     --on-card: #1f1640;
  --err-bg: #fdfcff;   --on-err-bg: #a3123a;
  --line: #b9aedb;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--on-page);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 20ch; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--royal-2); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2rem; } }

.ribbon {
  background: var(--lilac); color: var(--on-lilac);
  font-size: .85rem; font-weight: 600; text-align: center; padding: .45rem 1rem;
}

/* Buttons: one pill system for every interactive control. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 "Figtree", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hi); color: var(--on-gold-hi); }
.btn-ghost { background: var(--royal); color: var(--on-royal); border-color: var(--on-royal-soft); }
.btn-ghost:hover { background: var(--royal-2); color: var(--on-royal-2); }
.btn-royal { background: var(--royal); color: var(--on-royal); }
.btn-royal:hover { background: var(--royal-2); color: var(--on-royal-2); }
.btn-royal-l { background: var(--royal-2); color: var(--on-royal-2); }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Header */
.top { background: var(--page); color: var(--on-page); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { font: 800 1.35rem/1 "Bricolage Grotesque", sans-serif; display: grid; }
.brand small { font: 600 .72rem/1.3 "Figtree", sans-serif; color: var(--on-page-soft); letter-spacing: .01em; }
.top nav { margin-left: auto; display: none; gap: 1.75rem; }
.top nav a { font-weight: 600; text-decoration: none; color: var(--on-page-soft); }
.top nav a:hover { color: var(--on-page); text-decoration: underline; text-underline-offset: 5px; }
.top-call { display: none; }
@media (min-width: 860px) { .top nav { display: flex; } .top-call { display: inline-flex; } }

/* Hero: a royal crest panel on the page, gutter art at the right. */
.hero { padding-block: .5rem 3rem; }
.hero-panel {
  background: var(--royal); color: var(--on-royal);
  border-radius: calc(var(--radius) * 1.6);
  display: grid; gap: 1.5rem; padding: 2rem 1.25rem 0; overflow: hidden;
}
.hero h1 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); max-width: 13ch; }
.lede { margin-top: 1rem; font-size: 1.15rem; max-width: 36ch; color: var(--on-royal-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.gutter-art { width: 100%; height: auto; margin-inline: auto; max-width: 560px; }
@media (min-width: 900px) {
  .hero-panel { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 3.5rem 0 0 3.5rem; min-height: min(620px, calc(100dvh - 140px)); }
  .hero-copy { padding-bottom: 3.5rem; }
  .gutter-art { align-self: end; }
}

/* Water flow along the gutter and down the pipe. Static under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .flow { stroke-dasharray: 18 14; animation: flow 1.6s linear infinite; }
  .drops circle { animation: drip 1.4s ease-in infinite; }
  .drops circle:nth-child(2) { animation-delay: .45s; }
  .drops circle:nth-child(3) { animation-delay: .9s; }
  .sparkles path { transform-box: fill-box; transform-origin: center; animation: glint 3.2s var(--ease) infinite; }
  .sparkles .s2 { animation-delay: 1.1s; }
  .sparkles .s3 { animation-delay: 2.1s; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
}
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes drip { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes glint { 0%, 70%, 100% { transform: scale(1); opacity: 1; } 80% { transform: scale(1.35) rotate(20deg); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Services bento: six cells, six services. */
.services { padding-block: 2rem 4rem; }
.bento { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.tile {
  border-radius: var(--radius); padding: 1.6rem 1.4rem; display: grid; align-content: end; gap: .5rem;
  min-height: 170px; background-repeat: no-repeat;
}
.tile h3 { font-size: 1.45rem; }
.tile p { max-width: 34ch; }
.t-windows { background-color: var(--royal); color: var(--on-royal); min-height: 300px;
  background-image:
    linear-gradient(var(--royal), var(--royal)),
    linear-gradient(var(--royal), var(--royal)),
    linear-gradient(var(--royal-2), var(--royal-2));
  background-size: 120px 6px, 6px 120px, 120px 120px;
  background-position: right 22px top 79px, right 79px top 22px, right 22px top 22px; }
.t-windows .text-link { color: var(--gold); justify-self: start; margin-top: .4rem; }
.t-gutters { background-color: var(--gold); color: var(--on-gold);
  background-image: radial-gradient(circle at 50% 0, transparent 46px, var(--gold-hi) 47px, var(--gold-hi) 56px, transparent 57px);
  background-size: 130px 60px; background-position: right -10px top 10px; background-repeat: repeat-x; }
.t-fascia { background-color: var(--lilac); color: var(--on-lilac);
  background-image: linear-gradient(var(--line), var(--line)); background-size: 100% 14px; background-position: 0 28px; }
.t-cladding { background-color: var(--card); color: var(--on-card); border: 2px solid var(--lilac);
  background-image: repeating-linear-gradient(to bottom, transparent 0 20px, var(--lilac) 20px 23px);
  background-size: 100% 70px; }
.t-canopy { background-color: var(--royal-2); color: var(--on-royal-2);
  background-image: repeating-linear-gradient(115deg, transparent 0 34px, rgba(246,241,255,.12) 34px 38px); background-size: 100% 60px; }
.t-exterior { background-color: var(--card); color: var(--on-card); border: 2px solid var(--gold); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .t-windows { grid-column: span 2; grid-row: span 2; }
  .t-gutters, .t-canopy, .t-exterior { grid-column: span 2; }
}

/* Video plates */
.clips { background: var(--lilac); color: var(--on-lilac); padding-block: 4rem; border-radius: calc(var(--radius) * 1.6); margin-inline: .5rem; }
.clips-in { display: grid; grid-template-columns: minmax(0,1fr); gap: 2.5rem; align-items: center; }
.clips-copy p { margin-top: 1rem; max-width: 40ch; }
.clips-copy .text-link { display: inline-block; margin-top: 1.25rem; }
.plates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .9rem; }
.plate {
  margin: 0; aspect-ratio: 9 / 14; border-radius: var(--radius);
  background: var(--card); color: var(--on-card); border: 2px dashed var(--royal-2);
  display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1rem; text-align: center;
}
.plate figcaption { font-weight: 600; font-size: .95rem; max-width: 18ch; }
.plate-b { transform: translateY(2rem); }
.plate-icon {
  width: 52px; height: 52px; border-radius: 999px; background: var(--royal); position: relative;
}
.plate-icon::after {
  content: ""; position: absolute; left: 21px; top: 16px;
  border-left: 16px solid var(--gold); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
@media (min-width: 900px) {
  .clips { margin-inline: 2rem; padding-block: 5rem 6rem; }
  .clips-in { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
  .plates { max-width: 520px; justify-self: end; width: 100%; }
}

/* Round sign-up */
.round { padding-block: 5rem 4rem; display: grid; gap: 2rem; }
.round-intro p { margin-top: 1rem; max-width: 40ch; color: var(--on-page-soft); }
.round-alt { font-weight: 600; }
.round-alt a { color: var(--on-page); }
@media (min-width: 900px) { .round { grid-template-columns: .8fr 1.2fr; align-items: start; } .round-intro { position: sticky; top: 2rem; } }
.form {
  background: var(--card); color: var(--on-card); border-radius: calc(var(--radius) * 1.4);
  padding: 1.5rem 1.1rem; display: grid; gap: 1.25rem; border: 2px solid var(--lilac);
}
@media (min-width: 600px) { .form { padding: 2rem; } }
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field legend { margin-bottom: .5rem; }
.field-pair { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 400; color: var(--on-page-soft); }
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border-radius: 12px;
  border: 2px solid var(--line); background: var(--card); color: var(--on-card);
}
input:focus, textarea:focus { outline: none; border-color: var(--royal-2); box-shadow: 0 0 0 3px var(--lilac); }
input[aria-invalid=true] { border-color: var(--on-err-bg); }
.help { font-size: .9rem; color: var(--on-page-soft); }
.err { font-size: .92rem; font-weight: 700; color: var(--on-err-bg); background: var(--err-bg); }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--on-card); font-weight: 600;
  transition: background-color .2s var(--ease);
}
.pills input:checked + span { background: var(--royal); color: var(--on-royal); border-color: var(--royal); }
.pills input:focus-visible + span { outline: 3px solid var(--royal-2); outline-offset: 2px; }
.form .btn { justify-self: start; }
.done { background: var(--lilac); color: var(--on-lilac); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .4rem; }
.done-h { font: 800 1.3rem/1.2 "Bricolage Grotesque", sans-serif; }

/* Reviews */
.reviews { background: var(--royal); color: var(--on-royal); padding-block: 4.5rem; margin-inline: .5rem; border-radius: calc(var(--radius) * 1.6); }
@media (min-width: 900px) { .reviews { margin-inline: 2rem; } }
.reviews-in { display: grid; gap: 1.5rem; align-items: center; }
.big-stat { font: 800 1.4rem/1 "Bricolage Grotesque", sans-serif; color: var(--on-royal-soft); }
.big-stat span { display: block; font-size: clamp(5rem, 22vw, 10rem); color: var(--gold); letter-spacing: -.04em; }
.reviews p:not(.big-stat) { margin-top: 1rem; max-width: 44ch; color: var(--on-royal-soft); }
.reviews .btn { margin-top: 1.5rem; }
.reviews .formerly { margin-top: 1.5rem; font-size: .95rem; }
@media (min-width: 900px) { .reviews-in { grid-template-columns: 1fr 1.2fr; } }

/* Contact */
.contact { padding-block: 4.5rem 3rem; }
.contact-list { margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.contact-list dt { font-weight: 700; color: var(--on-page-soft); font-size: .95rem; }
.contact-list dd { margin: .2rem 0 0; font: 600 1.25rem/1.3 "Bricolage Grotesque", sans-serif; }
.contact-list a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.email { overflow-wrap: anywhere; font-size: 1.05rem; }
@media (min-width: 768px) { .contact-list { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }

/* Footer + mobile dock */
.foot { background: var(--page); color: var(--on-page); padding-block: 2rem 7rem; }
.foot-in { display: grid; gap: 1rem; border-top: 2px solid var(--lilac); padding-top: 2rem; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.privacy { font-size: .92rem; color: var(--on-page-soft); max-width: 60ch; }
@media (min-width: 860px) { .foot { padding-bottom: 2.5rem; } }

.dock {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 10;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem;
  background: var(--royal); color: var(--on-royal); padding: .5rem; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(38, 26, 87, .35);
}
@media (min-width: 860px) { .dock { display: none; } }
