/* Rain or Shine: blinds, awnings, pergolas. Concept site by Dublin Sites. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(/rainorshine/assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/rainorshine/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/rainorshine/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(/rainorshine/assets/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --navy-950: #00142a;
  --navy-900: #021d39;
  --navy-800: #062a4f;
  --navy-700: #0d3b68;
  --gold: #eaa01a;
  --gold-600: #c9830a;
  --gold-300: #f7c35a;
  --gold-50: #fff6e3;
  --ink: #0a1b30;
  --text: #3b4656;
  --muted: #6a7584;
  --line: #e4e8ee;
  --soft: #f6f7f9;
  --white: #fff;
  --wa: #25d366;
  --wa-700: #138a47;
  --err: #c2341d;

  --font-d: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-b: "Inter", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --shadow-sm: 0 2px 10px -4px rgba(0, 20, 42, .12);
  --shadow: 0 18px 40px -18px rgba(0, 20, 42, .35);
  --shadow-lg: 0 40px 80px -30px rgba(0, 20, 42, .55);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 8px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-b);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
/* no lonely word on the last line */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, summary, figcaption, label { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--navy-950); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 13px/1.2 var(--font-d);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.title {
  font: 600 clamp(1.85rem, 1.2rem + 2.2vw, 2.75rem)/1.15 var(--font-d);
  color: var(--ink);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.title--light { color: var(--white); }
.title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.title .wi { display: inline-block; will-change: transform; }
.rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 22px 0; transform-origin: left center; }
.sec-head { margin-bottom: 44px; }
.sec-head--center { text-align: center; }
.sec-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  height: var(--h); padding: 0 24px;
  font: 600 13px/1 var(--font-d);
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .i { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { font-size: 15px; letter-spacing: .01em; }
.btn--gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(234, 160, 26, .8); }
.btn--gold:hover { background: var(--gold-300); }
.btn--navy { background: var(--navy-950); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: var(--white); color: var(--navy-950); border-color: var(--white); }
.btn--wa { background: var(--wa-700); color: var(--white); }
.btn--wa:hover { background: #0f7a3d; }
.btn--text { height: 44px; padding: 0 6px; color: var(--muted); }
.btn--text:hover { color: var(--ink); }
.btn .i:last-child:not(:first-child) { transition: transform .3s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }

/* a sun glint that sweeps the gold buttons */
.btn--shine::after {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg);
  animation: glint 5.5s var(--ease-io) 2.4s infinite;
}
.btn--shine:hover::after { animation-duration: 1.2s; animation-delay: 0s; }
@keyframes glint { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  transition: transform .45s var(--ease), box-shadow .3s, background-color .3s;
}
.hdr.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 20, 42, .25); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; }
/* brush logo, as on the team's sweatshirts: the sun turns and the rain drips on hover */
.logo { display: block; width: 250px; height: auto; aspect-ratio: 290 / 64; overflow: visible; }
.logo--light { --logo-ink: #fff; }
.logo .logo-rays { transform-box: view-box; transform-origin: 22px 21px; }
.logo .logo-rain { transform-box: view-box; }
.brand:hover .logo-rays { animation: spin 1.6s var(--ease); }
.brand:hover .logo-rain { animation: drip 1s ease-in 2; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes drip { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }

.nav { position: relative; display: flex; gap: clamp(14px, 1.4vw, 26px); margin-left: auto; }
.nav a {
  position: relative; padding: 12px 0; white-space: nowrap;
  font: 600 12.5px/1 var(--font-d);
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--gold-600); }
.nav a.is-active { color: var(--ink); }
.nav__bar {
  position: absolute; left: 0; bottom: -4px; height: 2.5px; width: 0;
  background: var(--gold); border-radius: 2px;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
  pointer-events: none;
}
.hdr__cta { --h: 44px; padding: 0 18px; font-size: 13px; letter-spacing: .02em; flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr) 0 0; z-index: 49;
  background: var(--navy-950); color: var(--white);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px; overflow: auto;
}
.mnav[hidden] { display: none; }
.mnav__links a {
  display: block; padding: 10px 0;
  font: 600 clamp(1.5rem, 6vw, 2rem)/1.2 var(--font-d);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: color .2s;
}
.mnav__links a:hover { color: var(--gold); }
.mnav__cta { display: grid; gap: 12px; margin-top: auto; }
/* the full menu needs about 1240px; below that the burger takes over */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__cta { margin-left: auto; }
}
/* phones: logo and burger only, the bottom bar carries the quote button */
@media (max-width: 720px) {
  .hdr__cta { display: none; }
  .burger { margin-left: auto; margin-right: -8px; }
}
@media (max-width: 560px) {
  :root { --hdr: 72px; }
  .logo { width: 190px; }
  .hdr__in { gap: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-950); color: var(--white);
  min-height: clamp(540px, calc(100svh - var(--hdr) - 130px), 720px);
  display: flex; align-items: center;
}
.hero__media { position: absolute; inset: 0 0 0 auto; width: 72%; z-index: -1; }
/* curtains and the roman blind sit right of centre, clear of the text */
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, var(--navy-950) 0%, rgba(0, 20, 42, .82) 16%, rgba(0, 20, 42, .35) 40%, rgba(0, 20, 42, 0) 62%),
    linear-gradient(0deg, rgba(0, 20, 42, .45), rgba(0, 20, 42, 0) 30%);
}
.hero__in { position: relative; padding-block: 64px 72px; }
.hero__eyebrow { color: var(--gold); margin-bottom: 18px; }
.hero__title {
  font: 700 clamp(2.5rem, 1.4rem + 3.6vw, 4.4rem)/1.08 var(--font-d);
  text-transform: uppercase; letter-spacing: -.005em;
  perspective: 600px;
}
.hl { display: block; }
.hl--gold { color: var(--gold); font-kerning: none; }
.hl .wd { display: inline-block; white-space: nowrap; }
.hl .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero__rule { margin: 26px 0; }
.hero__lead { max-width: 34ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__cta .btn { --h: 54px; }

/* the title is the only thing that animates in the hero */
.js:not(.no-anim) .hero__title { opacity: 0; }

@media (max-width: 900px) {
  .hero { align-items: flex-end; min-height: min(760px, calc(100svh - var(--hdr))); }
  .hero__media { width: 100%; }
  .hero__media::before { background: linear-gradient(180deg, rgba(0, 20, 42, .15) 0%, rgba(0, 20, 42, .45) 38%, rgba(0, 20, 42, .92) 70%, var(--navy-950) 100%); }
  .hero__img { object-position: 62% 50%; }
  .hero__in { padding-block: 200px 64px; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- feature strip ---------- */
.features { padding-top: 22px; }
.features__list { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--soft); padding: 28px 10px; }
.feat { display: flex; align-items: flex-start; gap: 14px; padding: 4px 18px; border-left: 1px solid var(--line); }
.feat:first-child { border-left: 0; }
.ring {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--navy-950); color: var(--navy-950);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.ring .i { width: 27px; height: 27px; }
.feat:hover .ring, .assure li:hover .ring { background: var(--navy-950); color: var(--gold); transform: rotate(-8deg); }
.feat h3, .assure h3 { font: 600 12px/1.3 var(--font-d); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); margin: 4px 0 6px; }
.feat p, .assure p { font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) {
  .features__list { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .feat:nth-child(4) { border-left: 0; }
}
@media (max-width: 680px) {
  .features { padding-top: 0; }
  .features .wrap { width: 100%; }
  .features__list { grid-template-columns: 1fr; padding: 6px var(--gutter); }
  .feat { align-items: center; gap: 16px; padding: 16px 0; border: 0; border-top: 1px solid var(--line); }
  .feat:first-child { border-top: 0; }
  .feat h3 { margin-top: 0; }
  .ring { width: 48px; height: 48px; }
}

/* ---------- solutions ---------- */
.solutions { padding: 64px 0 84px; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card__img { display: block; width: 100%; aspect-ratio: 1 / .98; overflow: hidden; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card__badge {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 50px; height: 50px; margin-top: -25px; border-radius: 50%;
  background: var(--navy-950); color: var(--white); box-shadow: 0 0 0 4px var(--white);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.card__badge .i { width: 24px; height: 24px; }
.card__body { display: flex; flex-direction: column; align-items: center; padding: 14px 16px 22px; flex: 1; }
.card__title { font: 600 15px/1.3 var(--font-d); text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }
.card__text { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text); max-width: 22ch; }
.more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .03em; color: var(--gold-600); }
.more .i { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover .card__img img { transform: scale(1.08); }
.card:hover .card__badge { background: var(--gold); color: var(--navy-950); transform: rotate(-10deg) scale(1.06); }
.card:hover .more .i { transform: translateX(5px); }
@media (max-width: 1100px) {
  .cards { display: flex; flex-wrap: wrap; justify-content: center; }
  .card { width: calc((100% - 28px) / 3); }
}
@media (max-width: 720px) {
  .solutions .wrap { width: 100%; }
  .solutions .sec-head { padding-inline: var(--gutter); }
  .cards { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { width: 74vw; max-width: 300px; flex: none; scroll-snap-align: start; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--navy-950); color: var(--white); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee span { font: 700 clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem)/1 var(--font-d); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee .o { color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .6); }
.marquee .i { width: clamp(28px, 3vw, 44px); height: clamp(28px, 3vw, 44px); color: var(--gold); stroke-width: 1.8; }

/* ---------- range (tabs) ---------- */
.range { position: relative; padding: 100px 0 110px; }
.anchor { position: absolute; top: 0; }
.tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  font: 600 13.5px/1 var(--font-d); color: var(--text);
  transition: color .35s;
}
.tab .i { width: 19px; height: 19px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--white); }
.tabs__pill {
  position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0;
  background: var(--navy-950); border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(0, 20, 42, .6);
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease);
}
.panel { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.panel[hidden] { display: none; }
.panel__media { position: relative; padding: 0 28px 40px 0; }
.panel__main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
/* pause control for the looping video in the gallery (it plays muted, only while on screen) */
.vbtn {
  position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0, 20, 42, .55); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s, transform .3s var(--ease);
}
.vbtn[hidden] { display: none; }
.vbtn:hover { background: rgba(0, 20, 42, .8); transform: scale(1.06); }
.vbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.vbtn .i { width: 19px; height: 19px; }
.panel__float {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid var(--white); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.panel__tag {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 12px/1 var(--font-d); text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
}
.panel__tag .i { color: var(--gold-600); width: 17px; height: 17px; }
.panel__copy h3 { font: 600 clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem)/1.18 var(--font-d); color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
.panel__copy > p:not(.eyebrow) { margin-top: 16px; font-size: 1.05rem; max-width: 46ch; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 26px 0 32px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9830a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(234, 160, 26, .45);
}
@media (max-width: 960px) {
  .range { padding: 72px 0 80px; }
  .sec-head--split { align-items: flex-start; }
  .tabs { width: 100%; justify-content: space-between; border-radius: 14px; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 12px 10px; }
  .tabs__pill { border-radius: 10px; }
  .panel { grid-template-columns: 1fr; }
  .panel__media { padding: 0 16px 30px 0; }
}
@media (max-width: 520px) {
  .tab { font-size: 12.5px; gap: 6px; padding: 11px 8px; }
  .tab .i { display: none; }
  .ticks { grid-template-columns: 1fr; }
}

/* ---------- weather ---------- */
.weather {
  position: relative; overflow: hidden; color: var(--white); padding: 110px 0;
  background: radial-gradient(70% 90% at 90% 0%, rgba(234, 160, 26, .2), transparent 60%), var(--navy-950);
  transition: background-color 1s;
}
.weather::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 90% 0%, rgba(110, 160, 220, .22), transparent 60%), #07111f;
  opacity: 0; transition: opacity 1.1s var(--ease-io);
}
.weather[data-mode="rain"]::before { opacity: 1; }
.weather__in { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.weather .eyebrow { color: var(--gold); }
.weather__lead { margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 42ch; }
.wtoggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 6px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.wtoggle button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font: 600 14px/1 var(--font-d); color: rgba(255, 255, 255, .75);
  transition: color .4s;
}
.wtoggle button[aria-checked="true"] { color: var(--navy-950); }
.wtoggle__thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px;
  background: var(--gold); box-shadow: 0 0 30px rgba(234, 160, 26, .55);
  transition: transform .6s var(--ease), background-color .6s, box-shadow .6s;
}
.weather[data-mode="rain"] .wtoggle__thumb { transform: translateX(100%); background: #a9cdf5; box-shadow: 0 0 30px rgba(140, 190, 245, .45); }
.wfacts { margin-top: 30px; display: grid; align-content: start; gap: 16px; min-height: 96px; }
.wfacts li[hidden] { display: none; }
.wfacts li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .8); }
.wfacts li b { color: var(--white); font-weight: 600; }
.wfacts .i { width: 24px; height: 24px; color: var(--gold); margin-top: 1px; }
.weather[data-mode="rain"] .wfacts .i { color: #a9cdf5; }
.weather__stage {
  position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.wimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wimg--rain { clip-path: circle(0% at 88% 8%); transition: clip-path 1.2s var(--ease-io); }
.weather[data-mode="rain"] .wimg--rain { clip-path: circle(150% at 88% 8%); }
.wrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1s; }
.weather[data-mode="rain"] .wrain { opacity: 1; }
.wsun {
  position: absolute; top: -30%; right: -18%; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 6%, rgba(255, 230, 170, .22) 8%, transparent 10% 18%, rgba(255, 230, 170, .16) 21%, transparent 24% 33%, rgba(255, 230, 170, .2) 35%, transparent 38% 100%);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  mix-blend-mode: screen; animation: rays 24s linear infinite; transition: opacity .8s;
}
.weather[data-mode="rain"] .wsun { opacity: 0; }
@keyframes rays { to { transform: rotate(360deg); } }
.wchip {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink);
  font: 600 12.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .03em; box-shadow: var(--shadow);
}
.wchip .i { width: 18px; height: 18px; color: var(--gold-600); }
@media (max-width: 960px) {
  .weather { padding: 80px 0; }
  .weather__in { grid-template-columns: 1fr; }
  .wfacts { min-height: 0; }
}

/* ---------- process ---------- */
.process { padding: 110px 0; }
.process__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.process__media { position: relative; padding: 0 0 40px; }
.process__photo { border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1.05; box-shadow: var(--shadow); }
.process__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.process__note {
  position: absolute; right: -22px; bottom: 0; display: flex; align-items: center; gap: 14px;
  max-width: 320px; padding: 18px 22px; border-radius: 8px;
  background: var(--navy-950); color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.45; box-shadow: var(--shadow-lg);
}
.process__note b { display: block; color: var(--white); font: 600 15px/1.3 var(--font-d); margin-bottom: 2px; }
.process__noteic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-950); }
.process__noteic .i { width: 22px; height: 22px; }
.steps { position: relative; margin: 34px 0 36px; }
.steps__line { position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 14px 0; }
.step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line); color: var(--muted);
  font: 700 17px/1 var(--font-d);
  transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease);
}
.step.is-lit .step__n { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: scale(1.06); }
.step h3 { font: 600 18px/1.3 var(--font-d); color: var(--ink); margin: 2px 0 6px; }
.step p { font-size: 15px; max-width: 44ch; }
@media (max-width: 960px) {
  .process { padding: 80px 0; }
  .process__in { grid-template-columns: 1fr; }
  .process__media { max-width: 560px; }
  .process__photo { aspect-ratio: 4 / 3; }
  .process__note { right: 12px; left: 12px; max-width: none; }
}

/* ---------- why (mockup) ---------- */
.why { position: relative; background: linear-gradient(var(--soft), var(--soft)) top / 100% calc(100% - 210px) no-repeat; }
.why__grid { display: grid; grid-template-columns: 46% 54%; min-height: clamp(540px, 34vw, 780px); }
.why__copy { align-self: center; padding: 78px clamp(24px, 3vw, 44px) 130px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.why__lead { max-width: 52ch; font-size: 15.5px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 26px; margin-top: 26px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.checks .i { color: var(--gold-600); width: 22px; height: 22px; }
.why__media { position: relative; overflow: hidden; }
/* the bay window sits in the middle of the photo, so the column can crop either side */
.why__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.banner {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 24px;
  width: min(100%, 1060px); margin: -84px auto 0; padding: 22px 26px 22px 30px;
  background: var(--navy-950); color: var(--white); border-radius: 4px; box-shadow: var(--shadow-lg);
}
.banner__ic { position: relative; flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--gold); color: var(--white); }
.banner__ic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.banner__ic .i { width: 32px; height: 32px; }
.banner__txt { flex: 1; }
.banner__title { font: 600 clamp(1.05rem, .8rem + 1vw, 1.45rem)/1.25 var(--font-d); text-transform: uppercase; letter-spacing: .005em; }
.banner__txt p:last-child { color: rgba(255, 255, 255, .82); font-size: 15px; margin-top: 4px; }
.banner__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.assure { display: grid; grid-template-columns: repeat(4, 1fr); padding: 44px 0 96px; }
.assure li { display: flex; gap: 14px; align-items: flex-start; padding: 0 22px; border-left: 1px solid var(--line); }
.assure li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 1100px) {
  .banner { flex-wrap: wrap; }
  .banner__cta { width: 100%; padding-left: 90px; }
  .assure { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .assure li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1180px) {
  .why { background: var(--soft); }
  .why__grid { grid-template-columns: 1fr; min-height: 0; }
  .why__copy { padding: 72px var(--gutter) 40px; }
  .why__media { aspect-ratio: 3 / 2; }
  .banner { margin-top: -36px; }
}
@media (max-width: 860px) {
  .assure { background: var(--white); margin-inline: calc(-1 * var(--gutter)); padding: 40px var(--gutter) 72px; }
}
@media (max-width: 560px) {
  .checks { grid-template-columns: 1fr; }
  .banner { padding: 22px; gap: 16px; }
  .banner__ic { width: 54px; height: 54px; }
  .banner__cta { padding-left: 0; flex-direction: column; }
  .banner__cta .btn { width: 100%; }
  .assure { grid-template-columns: 1fr; }
  .assure li { border-left: 0; padding: 0; }
}

/* ---------- gallery ---------- */
.gallery { padding: 100px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 17px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 13px/1 var(--font-d); color: var(--text); background: var(--white);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--navy-950); color: var(--ink); }
.chip.is-on { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
/* the installations are phone photos, mostly portrait: every tile is two rows tall (about 3:4),
   landscape photos and the video take two columns. 12 cells show first, which fills 4, 3 and 2 columns alike */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 186px; grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; grid-row: span 2; overflow: hidden; border-radius: 6px; background: var(--soft); cursor: zoom-in; text-align: left; }
.tile--wide { grid-column: span 2; }
.tile.is-gone { display: none; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile--video { cursor: default; background: var(--navy-900); }
.tile--video .tile__cap { transform: none; opacity: 1; }
.gallery__more { display: flex; justify-content: center; margin-top: 34px; }
.gallery__more[hidden] { display: none; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(0, 20, 42, .85), transparent);
  color: var(--white); font: 600 15px/1.3 var(--font-d);
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.tile__cap small { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.tile:hover img, .tile--video:hover video { transform: scale(1.07); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
@media (hover: none) { .tile__cap { transform: none; opacity: 1; } }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 640px) {
  .gallery { padding: 72px 0; }
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 112px; gap: 10px; }
  .tile__cap { padding: 30px 12px 10px; font-size: 13px; }
}

/* ---------- faq ---------- */
.faq { padding: 100px 0; background: var(--soft); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr) + 30px); }
.faq__head > p:not(.eyebrow) { margin: 16px 0 26px; max-width: 36ch; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: transparent; box-shadow: var(--shadow); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font: 600 16px/1.35 var(--font-d); color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__ic { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); transition: background-color .3s, transform .4s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.qa__ic::after { transform: rotate(90deg); }
.qa[open] .qa__ic { background: var(--gold); transform: rotate(180deg); }
.qa[open] .qa__ic::after { transform: rotate(0); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa__a { padding: 0 22px 22px; max-width: 62ch; }
.qa__a a { color: var(--gold-600); font-weight: 600; }
@media (max-width: 860px) {
  .faq { padding: 72px 0; }
  .faq__in { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; background: var(--navy-950); color: var(--white); }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-950) 25%, rgba(0, 20, 42, .7) 70%, rgba(0, 20, 42, .5)); }
.contact__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contact .eyebrow { color: var(--gold); }
.contact__copy > p:not(.eyebrow) { margin-top: 18px; max-width: 46ch; color: rgba(255, 255, 255, .8); font-size: 1.05rem; }
.contact__copy > p.contact__pick { margin-top: 32px; font: 600 12.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .07em; color: var(--white); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pick button {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  font: 600 14px/1 var(--font-d); color: var(--white);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.pick .i { color: var(--gold); width: 19px; height: 19px; transition: color .3s; }
.pick button:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); transform: translateY(-2px); }
.pick button:hover .i { color: var(--navy-950); }
.contact__cards { display: grid; gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 22px; border-radius: 10px; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), background-color .3s;
}
.ccard small { display: block; font: 600 11.5px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.ccard b { font: 600 20px/1.2 var(--font-d); }
.ccard__ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-950); color: var(--white); }
.ccard__ic .i { width: 24px; height: 24px; }
.ccard__ic--wa { background: var(--wa-700); }
.ccard__go { margin-left: auto; width: 22px; height: 22px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.ccard:hover { transform: translateX(6px); }
.ccard:hover .ccard__go { color: var(--ink); transform: translate(3px, -3px); }
.ccard--gold { background: var(--gold); }
.ccard--gold small { color: rgba(0, 20, 42, .65); }
.ccard--gold .ccard__go { color: var(--navy-950); }
.ccard--gold:hover { background: var(--gold-300); }
.ccard--gold:hover .ccard__go { transform: translateX(4px); }
@media (max-width: 860px) {
  .contact { padding: 80px 0; }
  .contact__in { grid-template-columns: 1fr; }
  .contact::before { background: linear-gradient(180deg, rgba(0, 20, 42, .85), var(--navy-950) 70%); }
}

/* ---------- footer ---------- */
.ftr { background: #000d1c; color: rgba(255, 255, 255, .68); padding-top: 72px; font-size: 14.5px; }
.ftr__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr .logo { width: 230px; }
.ftr__brand p { margin-top: 20px; max-width: 34ch; }
/* footer extras the website admin can switch on: social links, an email and an address */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social[hidden] { display: none; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--navy-950); }
.social .i { width: 21px; height: 21px; }
.ftr__addr { padding: 6px 0; white-space: pre-line; }
.ftr__h { font: 600 12.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.ftr__col a, .ftr__link { display: block; padding: 6px 0; transition: color .2s; text-align: left; }
.ftr__col a:hover, .ftr__link:hover { color: var(--gold); }
.ftr__base { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; margin-top: 56px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.ftr__base a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: span 2; }
  .ftr__base { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- floating actions ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .7);
  transition: transform .4s var(--ease), bottom .4s var(--ease);
}
.fab .i { width: 30px; height: 30px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.8s var(--ease) infinite; }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px -16px rgba(0, 20, 42, .35);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar a, .mbar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 6px; font: 600 13.5px/1 var(--font-d); text-transform: uppercase; letter-spacing: .02em; }
  .mbar .i { width: 19px; height: 19px; }
  .mbar__call { border: 1.5px solid var(--navy-950); color: var(--navy-950); }
  .mbar__quote { background: var(--gold); color: var(--navy-950); }
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .fab.is-up { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .fab .i { width: 27px; height: 27px; }
}

/* ---------- quote modal ---------- */
html.is-locked { overflow: hidden; }
.qm { padding: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; }
.qm[open] { display: grid; place-items: center; }
.qm::backdrop { background: rgba(0, 10, 22, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.qm__box {
  display: grid; grid-template-columns: 340px 1fr;
  width: min(1000px, 100% - 32px); height: min(720px, 100dvh - 32px);
  background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .6);
  animation: pop .5s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.qm.is-closing .qm__box { animation: unpop .28s ease-in forwards; }
.qm.is-closing::backdrop { animation: fade .28s ease-in reverse forwards; }
@keyframes unpop { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.qm__side { position: relative; display: flex; flex-direction: column; padding: 32px 28px 26px; background: var(--navy-950); color: rgba(255, 255, 255, .72); overflow: hidden; }
.qm__side::before { content: ""; position: absolute; width: 320px; height: 320px; right: -160px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 160, 26, .35), transparent); pointer-events: none; }
.qm__side .logo { width: 190px; }
.qm__side h2 { margin-top: 28px; font: 600 23px/1.25 var(--font-d); color: var(--white); letter-spacing: -.01em; }
.qm__side > p { margin-top: 8px; font-size: 14.5px; }
.qm__steps { margin-top: 26px; display: grid; gap: 12px; }
.qm__steps li { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--font-d); color: rgba(255, 255, 255, .5); transition: color .3s; }
.qm__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); font-size: 12.5px; font-weight: 600; transition: background-color .3s, border-color .3s, color .3s; }
.qm__steps li.is-on { color: var(--white); }
.qm__steps li.is-on span { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.qm__steps li.is-done { color: rgba(255, 255, 255, .8); }
.qm__steps li.is-done span { background: transparent; border-color: var(--gold); color: var(--gold); }
.qm__side > .qm__call { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.qm__call a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.qm__call a:hover { color: var(--white); }
.qm__call .i { width: 16px; height: 16px; }

.qm__main { position: relative; display: flex; flex-direction: column; padding: 40px 44px 28px; overflow: auto; overscroll-behavior: contain; }
.qm__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background-color .2s, transform .3s var(--ease); }
.qm__close:hover { background: var(--soft); transform: rotate(90deg); }
.qm__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-right: 50px; }
.qm__bar span { display: block; height: 100%; width: 50%; background: var(--gold); border-radius: 4px; transition: width .6s var(--ease); }
.qm__step { display: flex; flex-direction: column; flex: 1; padding-top: 26px; }
.qm__step[hidden] { display: none; }
.qm__kicker { font: 600 12px/1 var(--font-d); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); }
.qm__step h3 { margin-top: 10px; font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.75rem)/1.2 var(--font-d); color: var(--ink); letter-spacing: -.01em; }
.qm__hint { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.ptile { position: relative; }
/* six products fill the grid; "Not sure yet" runs underneath as a slim row */
.ptile--wide { grid-column: 1 / -1; }
.ptile.ptile--wide span { min-height: 0; flex-direction: row; gap: 10px; padding: 13px 16px; }
.ptile.ptile--wide .i { width: 24px; height: 24px; }
.ptile input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ptile span {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; min-height: 104px; padding: 16px 10px; border-radius: 10px; border: 1.5px solid var(--line);
  font: 600 14px/1.2 var(--font-d); color: var(--ink); text-align: center; cursor: pointer; user-select: none;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.ptile .i { width: 32px; height: 32px; color: var(--navy-800); transition: color .25s, transform .4s var(--ease); }
.ptile span::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300142a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  transform: scale(0); transition: transform .35s var(--ease);
}
.ptile:hover span { border-color: #c8cfda; transform: translateY(-2px); }
.ptile input:checked + span { border-color: var(--gold); background: var(--gold-50); box-shadow: 0 8px 20px -12px rgba(234, 160, 26, .8); }
.ptile input:checked + span .i { color: var(--gold-600); transform: scale(1.08); }
.ptile input:checked + span::after { transform: scale(1); }
.ptile input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.qm__err { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: var(--err); font-weight: 500; }
.qm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font: 600 12px/1 var(--font-d); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.seg span {
  display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font: 600 13.5px/1 var(--font-d); color: var(--text); cursor: pointer; user-select: none;
  transition: background-color .25s, border-color .25s, color .25s;
}
.seg span:hover { border-color: #c8cfda; }
.seg input:checked + span { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.seg--full { grid-column: 1 / -1; }
.qm__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 26px; }
.qm__note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.qm__note .i { width: 18px; height: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 22px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld > span { font: 600 12.5px/1 var(--font-d); color: var(--ink); }
.fld i { font-style: normal; font-weight: 500; color: var(--muted); }
.fld input, .fld textarea {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--line);
  font: 400 15.5px/1.4 var(--font-b); color: var(--ink); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: #a2abb8; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--navy-950); box-shadow: 0 0 0 4px rgba(234, 160, 26, .25); }
.fld.is-bad input { border-color: var(--err); }
.fld em { min-height: 0; font-style: normal; font-size: 12.5px; color: var(--err); }
.fld--full { grid-column: 1 / -1; }
.qm__done { align-items: center; justify-content: center; text-align: center; padding-bottom: 20px; }
.qm__done > p { margin-top: 10px; max-width: 40ch; }
.done__art svg { width: 110px; height: 110px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__ring { stroke: var(--gold); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 60px 60px; }
.done__tick { stroke: var(--navy-950); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.qm__done.is-on .done__ring { animation: draw .8s var(--ease) .1s forwards; }
.qm__done.is-on .done__tick { animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.done__alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.done__alt a { color: var(--ink); font-weight: 600; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 860px) {
  .qm__box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100%; height: 100dvh; border-radius: 0; }
  .qm__side { padding: 16px 64px 16px 20px; }
  .qm__side::before, .qm__side .logo, .qm__side > p, .qm__steps { display: none; }
  .qm__side h2 { margin: 0; font-size: 17px; }
  .qm__main { padding: 20px 20px calc(16px + env(safe-area-inset-bottom)); }
  .qm__close { top: 8px; right: 10px; color: var(--white); z-index: 2; position: fixed; }
  .qm__close:hover { background: rgba(255, 255, 255, .1); }
  .qm__bar { margin-right: 0; }
  .qm__step { padding-top: 18px; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ptile span { min-height: 88px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px; text-align: left; }
  .ptile .i { width: 26px; height: 26px; }
  .qm__row, .fields { grid-template-columns: 1fr; }
  .qm__note { display: none; }
  .qm__foot .btn:last-child { flex: 1; }
}

/* ---------- lightbox ---------- */
.lb { padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: rgba(0, 10, 22, .94); color: var(--white); }
.lb[open] { display: grid; place-items: center; animation: fade .3s ease; }
.lb::backdrop { background: transparent; }
.lb__fig { display: grid; justify-items: center; gap: 14px; padding: 20px; }
.lb__fig img { max-width: min(1200px, 88vw); max-height: 80vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 80px -30px #000; }
.lb__fig figcaption { font: 600 15px/1.3 var(--font-d); text-align: center; }
.lb__fig figcaption small { display: block; color: var(--gold); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.lb__close, .lb__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .2s; }
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .2); }
.lb__close { top: 18px; right: 18px; }
.lb__nav { top: 50%; margin-top: -26px; }
.lb__nav--prev { left: 18px; }
.lb__nav--next { right: 18px; }
.lb .i { width: 26px; height: 26px; }
@media (max-width: 640px) { .lb__nav { top: auto; bottom: 20px; margin: 0; } .lb__nav--prev { left: calc(50% - 64px); } .lb__nav--next { right: calc(50% - 64px); } }

/* ---------- icon draw ---------- */
.draw .i { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
