/* Bill & Sons Painting Sunshine Coast. Two tones split hard (their logo's navy and white), their header blue for
   action, and the logo's own offset shadow ("the second coat") as the one motif. */
@view-transition { navigation: auto; }

:root {
  --navy: #324b81;          /* the logo's navy */
  --navy-deep: #1e2f55;     /* shadow under white type on navy, and body text */
  --blue: #0b74bf;          /* their site's header and buttons */
  --blue-dark: #085d99;
  --white: #ffffff;
  --paper: #f3f5f9;
  --ink: #1b2742;
  --muted: #4a5672;
  --line: #d6dce8;
  --coat: #c8d2e6;          /* the pale first coat behind navy type */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 14px;
  --pad: clamp(20px, 5vw, 64px);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 7.2vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 5.2vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; border-radius: 6px; }
@media (max-width: 899px) { .hide-sm { display: none !important; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip:focus { top: 12px; }

/* The second coat: type with the logo's hard offset shadow. */
.coat { color: var(--white); text-shadow: .055em .055em 0 var(--navy-deep); }
.coat-w { color: var(--navy); text-shadow: .055em .055em 0 var(--coat); }
/* The logo's spaced-out bar, used as a label. */
.bar { display: inline-block; background: var(--navy); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .42em; text-transform: uppercase; padding: .45em .5em .45em .9em; margin: 0 0 1.1rem; border-radius: 3px; }
.n .bar { background: var(--white); color: var(--navy); }
.wry { font-style: italic; color: var(--muted); }
.n .wry { color: #cdd7ec; }

/* ---------------------------------------------------------------- header */
.head { position: sticky; top: 0; z-index: 40; background: var(--blue); color: var(--white); transition: box-shadow .3s; }
.head-in { display: flex; align-items: center; gap: 14px; height: var(--head-h); padding: 0 var(--pad); max-width: 1400px; margin: 0 auto; transition: height .3s ease; }
.head.small .head-in { height: 52px; }
.head.small { box-shadow: 0 6px 0 rgba(30, 47, 85, .25); }
.brand { display: block; flex: none; }
.brand img { width: 148px; height: auto; transition: width .3s ease; }
.head.small .brand img { width: 120px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: var(--white); }
.head-tel { color: var(--white); background: var(--navy); font-weight: 800; text-decoration: none; padding: 8px 12px; border-radius: 10px; white-space: nowrap; box-shadow: 3px 3px 0 var(--navy-deep); font-size: .95rem; }
.head-tel:hover { color: var(--white); background: var(--navy-deep); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 800; padding: 8px 10px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .55); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--white); color: var(--blue-dark); }
.menu ul { display: block; position: absolute; right: 0; top: calc(100% + 10px); background: var(--white); border-radius: var(--r); padding: 8px; min-width: 220px; box-shadow: 6px 6px 0 var(--navy); border: 2px solid var(--navy); }
.menu a { display: block; color: var(--navy); padding: 10px 12px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--paper); color: var(--navy); }
@media (min-width: 900px) {
  .nav > ul { display: flex; }
  .menu { display: none; }
  .head-tel { margin-left: 10px; }
}
@media (max-width: 380px) { .brand img { width: 124px; } .head-tel { padding: 7px 9px; font-size: .88rem; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 12px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); box-shadow: 5px 5px 0 var(--navy); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--navy); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--navy); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--navy); }
.btn.call { background: var(--blue); color: var(--white); border-color: var(--navy-deep); box-shadow: 5px 5px 0 var(--navy-deep); }
.btn.call:hover { color: var(--white); background: var(--blue-dark); }
.n .btn { border-color: var(--navy-deep); box-shadow: 5px 5px 0 var(--navy-deep); }
.btns { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- the split */
.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.half { min-width: 0; padding: clamp(32px, 7vw, 96px) var(--pad); position: relative; }
.n { background: var(--navy); color: var(--white); }
.n a:not(.btn) { color: var(--white); }
.w { background: var(--white); }
.p { background: var(--paper); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip > .half:first-child { order: 2; }
  .half { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
  .half > .in { max-width: 600px; }
  .split > .half:first-child > .in { margin-left: auto; }
}

/* ---------------------------------------------------------------- opening */
.hero .w { padding-top: 30px; padding-bottom: 34px; }
.search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 999px; padding: 10px 16px; margin: 0 0 18px; max-width: 460px; color: var(--muted); font-size: .98rem; background: var(--white); box-shadow: 0 2px 10px rgba(27, 39, 66, .07); }
.search .ico { color: var(--blue); }
.search q { quotes: none; color: var(--ink); font-weight: 700; }
.search q::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero h1 { margin-bottom: .35em; }
.hero h1 .ans { display: block; }
.hero .lede { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero .n { padding-top: 30px; padding-bottom: 38px; overflow: hidden; isolation: isolate; }
.hero .n .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero .n::after { content: ""; position: absolute; inset: -20% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 47%, rgba(255, 255, 255, .03) 53%, transparent 60%);
  animation: sheen 9s ease-in-out 1.2s infinite; transform: translateX(-60%); }
@keyframes sheen { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.big-tel { display: block; font-size: clamp(3.4rem, 6.4vw, 6.6rem); font-weight: 800; line-height: .95; letter-spacing: -0.02em; text-decoration: none; margin: 0 0 30px; }
.n a.big-tel { color: var(--white); }
.hero .n .wry { margin-top: 18px; max-width: 30em; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: .9rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); }
.stars { color: #f6c544; letter-spacing: .05em; }
@media (min-width: 900px) {
  .hero { min-height: calc(100svh - var(--head-h)); }
  .hero .half { display: flex; flex-direction: column; justify-content: center; padding-top: 60px; padding-bottom: 60px; }
}
/* the answer brushes on: a wet edge travels left to right */
.wipe { clip-path: inset(0 100% 0 0); animation: wipe 1s cubic-bezier(.6, .05, .25, 1) .25s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------------- brush test (before and after) */
.bt .head2 { padding-bottom: 20px; }
.bt-stage { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ccd3df; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; border-radius: var(--r); box-shadow: 8px 8px 0 var(--navy-deep); }
.bt-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bt-stage .after { clip-path: inset(0 0 0 var(--at, 50%)); }
.bt-edge { position: absolute; top: 0; bottom: 0; left: var(--at, 50%); width: 26px; margin-left: -13px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, .85) 11px 13px, rgba(255, 255, 255, .25) 14px 16px, transparent 17px),
              linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, .10) 6px 20px, transparent 22px); }
.bt-brush { position: absolute; top: 50%; left: var(--at, 50%); width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--navy-deep); display: grid; place-items: center; color: var(--navy); pointer-events: none; }
.bt-brush .ico { width: 26px; height: 26px; }
.bt-tag { position: absolute; top: 12px; z-index: 2; font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(27, 39, 66, .78); color: var(--white); pointer-events: none; }
.bt-tag.b { left: 12px; }
.bt-tag.a { right: 12px; background: var(--white); color: var(--navy); }
.bt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.bt-tabs button { font: inherit; font-weight: 800; font-size: .95rem; padding: 9px 13px; border-radius: 10px; cursor: pointer; border: 2px solid var(--navy); background: var(--white); color: var(--navy); }
.bt-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--coat); }
.bt-range { width: 100%; margin: 20px 0 0; accent-color: var(--navy); }
.bt-note { font-size: .82rem; color: #c3cee6; margin-top: 10px; }
.bt-say { min-height: 5.2em; }
.bt-say p:first-child { font-size: 1.15rem; font-weight: 700; color: var(--white); }
@media (min-width: 900px) { .bt .n { display: flex; flex-direction: column; justify-content: center; } .bt-say p:first-child { font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.15; font-weight: 800; text-shadow: .05em .05em 0 var(--navy-deep); } .bt-say p { font-size: 1.15rem; } .bt-stage { max-height: 62vh; aspect-ratio: auto; height: min(62vh, 450px); } }

/* ---------------------------------------------------------------- size up your job */
.guide fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.guide legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 13px; border-radius: 10px; border: 2px solid var(--line); font-weight: 700; font-size: .95rem; background: var(--white); transition: background .15s, border-color .15s, box-shadow .15s; }
.chip input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--coat); }
.chip input:focus-visible + span { outline: 3px solid #f2b705; outline-offset: 2px; }
.sheet { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 22px; box-shadow: 8px 8px 0 var(--navy-deep); }
.sheet h3 { font-size: 1.35rem; color: var(--navy); }
.sheet .job { font-size: clamp(1.2rem, 3.6vw, 1.55rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 14px; }
.sheet ul { margin: 0 0 14px; padding-left: 1.2em; }
.sheet li { margin: 3px 0; }
.sheet .bar { background: var(--navy); color: var(--white); margin-bottom: .6rem; }
.sheet .price { border-top: 2px dashed var(--line); padding-top: 12px; font-weight: 700; }
.sheet .small-job { background: var(--paper); border-left: 5px solid var(--blue); padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
.sheet.fresh { animation: fresh .5s ease; }
@keyframes fresh { from { box-shadow: 8px 8px 0 var(--navy-deep), inset 0 0 0 999px rgba(11, 116, 191, .10); } }
.sheet .btn { margin-top: 14px; width: 100%; }

/* ---------------------------------------------------------------- reviews */
.big-num { font-size: clamp(3.4rem, 13vw, 9rem); line-height: .9; font-weight: 800; margin: 0 0 .1em; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
@media (min-width: 640px) { .row { grid-auto-columns: 46%; } }
@media (min-width: 900px) { .row.q { grid-auto-columns: 86%; } }
.quote { margin: 0; background: var(--white); border: 2px solid var(--navy); border-radius: var(--r); padding: 20px; box-shadow: 5px 5px 0 var(--coat); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.quote figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); display: block; }
.swipe-hint { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- work row */
.work { padding: clamp(40px, 7vw, 90px) 0; }
.work .top { padding: 0 var(--pad); max-width: 1400px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; }
.work .top h2 { margin: 0; }
.work .row { padding-left: var(--pad); padding-right: var(--pad); margin: 0; grid-auto-columns: 72%; scroll-padding: 0 var(--pad); }
@media (min-width: 640px) { .work .row { grid-auto-columns: 36%; } }
@media (min-width: 1100px) { .work .row { grid-auto-columns: 23%; } }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--white); background: var(--navy-deep); aspect-ratio: 4 / 5; box-shadow: 6px 6px 0 var(--navy-deep); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-weight: 800; background: linear-gradient(transparent, rgba(20, 30, 55, .85)); }
.n .tile { box-shadow: 6px 6px 0 var(--navy-deep); }

/* ---------------------------------------------------------------- services and area */
.svc { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.svc a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; padding: 16px 18px; border: 2px solid var(--navy); border-radius: 12px; box-shadow: 4px 4px 0 var(--coat); background: var(--white); transition: transform .12s, box-shadow .12s; }
.svc a:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--coat); color: var(--navy); }
.svc small { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); }
.areas summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.areas ul { columns: 2; padding-left: 1.1em; margin: 6px 0 16px; }
.area-big { font-size: clamp(1.6rem, 4.6vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 0 0 18px; }

/* ---------------------------------------------------------------- inner pages */
.page-hero .n { padding-top: 40px; }
.page-hero .ph { padding: 0; min-height: 260px; background: var(--navy-deep); overflow: hidden; }
.page-hero .ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .page-hero .ph img { aspect-ratio: auto; position: absolute; inset: 0; } .page-hero .n { display: flex; flex-direction: column; justify-content: center; } }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: #cdd7ec; }
.crumbs a { color: var(--white); }
.pairs { max-width: 1400px; margin: 0 auto; }
.pair { display: grid; border-bottom: 2px solid var(--line); }
.pair > div { padding: 26px var(--pad); }
.pair .q { background: var(--paper); font-weight: 800; color: var(--navy); font-size: 1.2rem; }
.pair .q span { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pair .a span { display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-dark); font-weight: 800; margin-bottom: 6px; }
@media (max-width: 899px) { .pair:not(:first-child) > div > span { display: none; } .pair > div { padding: 20px var(--pad); } .pair .a { padding-top: 14px; } }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } .pair > div { padding: 34px 48px; } }
.prose { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad); }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { padding-left: 32px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 5px; background: var(--navy); box-shadow: 2px 2px 0 var(--coat); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .42em; width: 6px; height: 10px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.n .ticks li::before { background: var(--white); box-shadow: 2px 2px 0 var(--navy-deep); }
.n .ticks li::after { border-color: var(--navy); }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-width: 1400px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad); }
.card { border: 2px solid var(--navy); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 6px 6px 0 var(--coat); display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .c { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 800; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: 1400px; margin: 0 auto; padding: clamp(30px, 5vw, 70px) var(--pad); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: 6px 6px 0 var(--coat); }
.gallery figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; }
.featured { max-width: 1400px; margin: 0 auto; padding: 0 0 18px; }
.has-feat .page-hero .ph { display: none; }
.has-feat .page-hero { grid-template-columns: minmax(0, 1fr); }
.featured figure { margin: 0; }
.featured img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: 0 0 var(--r) var(--r); }
.featured figcaption { padding: 12px var(--pad) 0; color: var(--muted); }
.cta { text-align: left; }
.cta h2 { max-width: 16em; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 12px; }
.form label { font-weight: 800; font-size: .95rem; display: grid; gap: 5px; }
.form input, .form textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 2px solid #9aa6bf; background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(11, 116, 191, .25); }
.form textarea { min-height: 104px; resize: vertical; }
.form .two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form small { font-weight: 600; color: var(--muted); }
.next { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }

/* the quote drawer: rises from the bottom on a phone, a card on a wide screen */
.drawer { border: 0; padding: 0; margin: 0; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92svh; overflow: auto; background: var(--white); color: var(--ink);
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 0 var(--navy), 0 -20px 60px rgba(0, 0, 0, .3); transition: transform .38s cubic-bezier(.2, .8, .2, 1), overlay .38s allow-discrete, display .38s allow-discrete; transform: translateY(105%); }
.drawer:popover-open { transform: translateY(0); }
@starting-style { .drawer:popover-open { transform: translateY(105%); } }
.drawer::backdrop { background: rgba(20, 30, 55, .55); transition: background .38s, overlay .38s allow-discrete, display .38s allow-discrete; }
@starting-style { .drawer:popover-open::backdrop { background: rgba(20, 30, 55, 0); } }
.drawer .in { padding: 22px 20px 26px; max-width: 560px; margin: 0 auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.drawer-top h2 { font-size: 1.6rem; margin: 0; color: var(--navy); }
.x { font: inherit; font-weight: 800; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.drawer .or { margin: 0 0 14px; color: var(--muted); }
@media (min-width: 760px) {
  .drawer { inset: auto 24px 24px auto; width: 440px; border-radius: 20px; box-shadow: 10px 10px 0 var(--navy), 0 20px 60px rgba(0, 0, 0, .3); transform: translateY(30px); opacity: 0; transition: transform .3s ease, opacity .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
  .drawer:popover-open { transform: none; opacity: 1; }
  @starting-style { .drawer:popover-open { transform: translateY(30px); opacity: 0; } }
}

/* ---------------------------------------------------------------- phone bar */
.callbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45; display: flex; gap: 10px; transition: left .3s ease, transform .3s ease; }
.callbar .btn { flex: 1; padding: 14px 10px; }
.callbar .quote-btn { transition: opacity .2s, flex-basis .3s; }
body.down .callbar { left: auto; }
body.down .callbar .quote-btn { display: none; }
body.down .callbar .call { padding: 12px 18px; border-radius: 999px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--navy-deep); color: #dfe6f4; padding: 36px var(--pad) 96px; font-size: .95rem; }
.foot a { color: var(--white); }
.foot-in { max-width: 1400px; margin: 0 auto; display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.foot-in > :first-child { grid-column: 1 / -1; }
.foot-in > :last-child { grid-column: 1 / -1; }
.foot-in > :last-child ul { columns: 2; display: block; }
.foot-in > :last-child li { margin-bottom: 6px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .foot-in > :first-child, .foot-in > :last-child { grid-column: auto; } .foot-in > :last-child ul { columns: 1; } .foot { padding-bottom: 46px; } }
.foot h2 { font-size: 1rem; letter-spacing: .25em; text-transform: uppercase; color: #aebbd7; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .logo-chip { display: inline-block; background: var(--blue); padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; }
.foot .logo-chip img { width: 170px; }
.foot .tel { font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.foot .legal { max-width: 1400px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: 8px 22px; color: #aebbd7; font-size: .85rem; }
.foot .credit { margin-left: auto; }
.foot .credit a { color: #aebbd7; }

/* ---------------------------------------------------------------- arriving as you scroll (cut-in from the left) */
@supports (animation-timeline: view()) {
  .cut { animation: cutin linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes cutin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* photo carry: the same picture on both pages travels between them */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }
.vt-canal-home { view-transition-name: canal-home; }
.vt-boom-lift { view-transition-name: boom-lift; }
.vt-apartment-stairs { view-transition-name: apartment-stairs; }
.vt-bedroom-shutters { view-transition-name: bedroom-shutters; }
.vt-stair-void { view-transition-name: stair-void; }
.vt-interior { view-transition-name: svc-interior; }
.vt-exterior { view-transition-name: svc-exterior; }
.vt-repaints { view-transition-name: svc-repaints; }
.vt-commercial { view-transition-name: svc-commercial; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .wipe { clip-path: none; }
  @view-transition { navigation: none; }
}
@media print { .head, .callbar, .drawer, .foot .credit { display: none; } }
