/* MDM Painting Contractors: site styles. Colours are MDM's own (the logo's indigo triangle and steel-blue lettering). */
@font-face { font-family: "Jost"; src: url("/fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --indigo: #2b2a80;          /* the logo's triangle */
  --indigo-d: #1d1c5a;
  --indigo-dd: #14133f;
  --blue: #2a5898;            /* the logo's lettering */
  --blue-l: #9fb8dc;          /* the lettering, lifted for dark grounds */
  --ink: #17183d;
  --muted: #4c4f6e;
  --paper: #f4f1ea;
  --paper-2: #ece8e0;         /* the renders' backdrop */
  --card: #fbfaf7;
  --line: #d9d3c6;
  --sand: #b89a6a;            /* one supporting tone, for fine lines only */
  --white: #ffffff;
  --head-h: 64px;
  --bar-h: 0px;
  --wrap: 1180px;
  --gut: 20px;
  --r: 3px;
  --ease: cubic-bezier(.65, 0, .2, 1);
  --f: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (max-width: 959px) { :root { --bar-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--f); padding-bottom: var(--bar-h); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 1.3rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: .7em 1em; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* the eyebrow: letterspaced capitals, like the logo's PAINTING CONTRACTORS, after a small double gable */
.eyebrow { display: flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 0 0 1rem; }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 12px; background: url("/img/gable.svg") center / contain no-repeat; }
.on-dark .eyebrow { color: var(--blue-l); }
.on-dark .eyebrow::before { background-image: url("/img/gable-light.svg"); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .75em 1.35em; border: 1.5px solid var(--indigo); border-radius: var(--r); background: var(--indigo); color: #fff; font: 500 1.02rem/1.1 var(--f); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--indigo-d); border-color: var(--indigo-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--paper); border-color: var(--paper); color: var(--indigo-d); }
.btn-line { background: transparent; border-color: rgb(255 255 255 / .6); color: #fff; }
.btn-line:hover { background: #fff; color: var(--indigo); border-color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* the cut-in line: fills along the top of the screen as the page is scrolled, like a crisp cut-in along a ceiling */
.cutline { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, var(--indigo), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }
.cutline::after { content: ""; position: absolute; right: 0; top: 0; width: 24px; height: 3px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .7)); }
@supports (animation-timeline: scroll()) {
  .cutline { animation: cut linear both; animation-timeline: scroll(root); }
  @keyframes cut { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .cutline { display: none; } }

/* header */
.head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgb(244 241 234 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.head.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(23 24 61 / .5); }
.head.is-hidden { transform: translateY(-100%); }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 46px; height: 47.5px; }
.brand-name { display: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1.25; color: var(--indigo); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5em .72em; color: var(--ink); text-decoration: none; font-size: .98rem; border-radius: var(--r); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: .72em; right: .72em; bottom: .25em; height: 1.5px; background: var(--indigo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-call { min-height: 44px; padding: .55em 1em; font-size: .95rem; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r); color: var(--ink); cursor: pointer; padding: 0; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 959px) {
  .nav-call { display: none; }
  .menu-open .nav-links { display: block; position: fixed; inset: var(--head-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1.25rem; box-shadow: 0 30px 40px -30px rgb(23 24 61 / .35); }
  .menu-open .nav-links a { font-size: 1.15rem; padding: .8em 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav-links a::after { display: none; }
  .no-js .nav-links { display: flex; overflow-x: auto; position: absolute; top: var(--head-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .no-js .menu-btn { display: none; }
}
@media (min-width: 960px) {
  :root { --head-h: 76px; }
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .brand img { width: 52px; height: 53.75px; }
}
@media (min-width: 1180px) { .brand-name { display: block; } }

/* the phone bar: on phones the number never leaves the screen */
.callbar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: var(--bar-h); display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: rgb(244 241 234 / .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 48px; padding: .5em .8em; font-size: .98rem; }
@media (min-width: 960px) { .callbar { display: none; } }
@supports (padding: env(safe-area-inset-bottom)) { @media (max-width: 959px) { body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); } } }

/* sections */
.sec { padding-block: clamp(3.25rem, 2rem + 5vw, 6.5rem); }
.sec-tight { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.sec-head p:last-child { margin-bottom: 0; }
.alt { background: var(--paper-2); }
.on-dark { background: var(--indigo-d); color: #e9e9f5; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead, .on-dark .muted { color: #c9cae6; }
.on-dark a:not(.btn) { color: #fff; }
/* MDM's gable: a shallow roofline along the top of a dark band */
.gable-top { position: relative; margin-top: clamp(28px, 4vw, 56px); }
.gable-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(28px, 4vw, 56px); background: inherit; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.gable-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% + clamp(10px, 1.4vw, 18px)); height: clamp(28px, 4vw, 56px); background: var(--sand); opacity: .55; clip-path: polygon(0 100%, 50% 0, 100% 100%, calc(100% - 2px) 100%, 50% 2px, 2px 100%); pointer-events: none; }

/* scroll reveals (only when scripts run; everything is visible without them) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .12s; }
.js [data-reveal="3"] { transition-delay: .24s; }
/* the cut-in: a heading is laid on with one straight wet edge, left to right */
.js [data-cut] { clip-path: inset(-.2em 100% -.2em 0); transition: clip-path 1.1s var(--ease); }
.js [data-cut].in { clip-path: inset(-.2em -.1em -.2em 0); }

/* the hero: their own photo, full bleed, with a slow drift; words and the call over it */
.hero { position: relative; min-height: min(calc(100svh - var(--head-h) - var(--bar-h)), 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--indigo-dd); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 60% 55%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 19 63 / .15) 0%, rgb(20 19 63 / .05) 30%, rgb(20 19 63 / .7) 62%, rgb(20 19 63 / .94) 100%); }
.hero .wrap { padding-block: 2rem 2.25rem; }
.hero .eyebrow { color: #cfdcf0; }
.hero .eyebrow::before { background-image: url("/img/gable-light.svg"); }
.hero h1 { color: #fff; max-width: 13.5em; margin-bottom: .45em; }
.hero-sub { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 34em; color: #e4e5f3; margin-bottom: 1.4rem; }
.hero .btns .btn { flex: 1 1 auto; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .86rem; color: #cfd0ea; letter-spacing: .02em; }
.hero-proof li { display: flex; align-items: center; gap: .45em; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border: 1.5px solid #9fb8dc; transform: rotate(45deg); flex: none; }
.hero-credit { position: absolute; right: var(--gut); top: 1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .75); background: rgb(20 19 63 / .35); padding: .3em .7em; border-radius: 2px; }
/* on a phone the photo sits as a band above the words, so the whole house shows */
@media (max-width: 719px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 10.5; overflow: hidden; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, transparent, var(--indigo-dd)); }
  .hero::after { display: none; }
  .hero .wrap { padding-block: .9rem 1.6rem; }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 2.4rem); }
  .hero-sub { font-size: 1.02rem; margin-bottom: 1.1rem; }
  .hero .btns { flex-wrap: nowrap; gap: .6rem; }
  .hero .btns .btn { flex: 1 1 0; padding-inline: .6em; font-size: .98rem; }
  .hero-proof { margin-top: 1rem; font-size: .82rem; }
}
@media (min-width: 720px) { .hero .btns .btn { flex: 0 0 auto; } }
@media (min-width: 720px) {
  .hero::after { background: linear-gradient(90deg, rgb(20 19 63 / .9) 0%, rgb(20 19 63 / .72) 34%, rgb(20 19 63 / .18) 62%, rgb(20 19 63 / 0) 80%), linear-gradient(180deg, transparent 55%, rgb(20 19 63 / .55) 100%); }
  .hero .wrap > * { max-width: 36rem; }
  .hero-media img { object-position: 70% 50%; }
}
@media (min-width: 960px) { .hero .wrap { padding-block: 3rem 3.5rem; } }

/* page heads on inner pages */
.page-head { padding-block: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head h1 { max-width: 16em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.page-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .page-photo { aspect-ratio: 4 / 3; margin-inline: calc(var(--gut) * -1); border-radius: 0; } }

/* the before-and-after: one wet edge across two pictures */
.cmp { margin: 0; }
.cmp-stage { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); touch-action: pan-y; --x: 50%; user-select: none; -webkit-user-select: none; }
.cmp-stage picture, .cmp-stage img { display: block; width: 100%; height: auto; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.cmp-edge { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.cmp-edge::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(23 24 61 / .12), 0 0 18px rgb(23 24 61 / .25); }
.cmp-grip { position: absolute; top: 50%; left: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgb(20 19 63 / .6); transition: transform .3s var(--ease); }
.cmp-grip svg { width: 26px; height: 26px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.cmp-range:focus-visible + .cmp-edge .cmp-grip { outline: 3px solid #fff; outline-offset: 3px; transform: scale(1.08); }
.cmp-stage:hover .cmp-grip { transform: scale(1.06); }
.cmp-tag { position: absolute; top: 12px; z-index: 2; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .35em .7em; border-radius: 2px; pointer-events: none; }
.cmp-tag-a { left: 12px; background: var(--indigo); color: #fff; }
.cmp-tag-b { right: 12px; background: rgb(255 255 255 / .85); color: var(--ink); }
.cmp-note { position: absolute; left: 12px; bottom: 10px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.cmp figcaption { margin-top: .9rem; color: var(--muted); font-size: .95rem; max-width: 44em; }
.no-js .cmp-range { display: none; }

/* the repaint section on the home page */
.repaint { display: grid; gap: 1.5rem; }
.repaint .sec-head { margin-bottom: 0; }
@media (min-width: 960px) { .repaint { grid-template-columns: 1fr 2.1fr; align-items: center; gap: 3rem; } }

/* rows that swipe on a phone and sit as a grid on a computer */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) 14px; margin-inline: calc(var(--gut) * -1); scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
@media (min-width: 720px) { .row { grid-auto-columns: 46%; } }
.row[data-cols="4"] { --cols: 4; }
.h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem); }
@media (min-width: 1024px) { .row { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 3), 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.row-hint { display: flex; align-items: center; gap: .5em; font-size: .82rem; color: var(--muted); margin: -.25rem 0 .5rem; }
.row-hint::after { content: ""; width: 32px; height: 1px; background: currentColor; }
@media (min-width: 1024px) { .row-hint { display: none; } }

/* job cards: their own photos */
.job { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--indigo-dd); aspect-ratio: 4 / 3; }
.job img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.job:hover img { transform: scale(1.04); }
.job figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(180deg, transparent, rgb(20 19 63 / .88)); color: #fff; font-size: .95rem; line-height: 1.35; }
.job figcaption b { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #bccdea; margin-bottom: .25rem; }
.on-dark .job { box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }

.builders { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .14); display: grid; gap: .75rem; }
.builders p { margin: 0; }
.builders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.builders li { font-size: .9rem; letter-spacing: .03em; padding: .35em .8em; border: 1px solid rgb(255 255 255 / .2); border-radius: 2px; color: #e3e4f4; }
.alt .builders, .builders.on-light { border-top-color: var(--line); }
.builders.on-light li { border-color: var(--line); color: var(--ink); background: var(--card); }

/* service cards */
.svc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc:hover { border-color: var(--indigo); color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgb(23 24 61 / .55); }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media.art img { object-fit: contain; }
.svc-body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: .35em; }
.svc-body p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.svc-body .link-arrow { margin-top: auto; color: var(--indigo); }
.tag-ill { position: absolute; top: 10px; left: 10px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; background: rgb(255 255 255 / .85); color: var(--muted); padding: .3em .6em; border-radius: 2px; }

/* Mick, and the reasons to ring */
.trust { display: grid; gap: 2rem; align-items: center; }
.trust-photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; background: var(--paper-2); }
.trust-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts li b { font-weight: 500; color: var(--indigo); }
.facts li span { color: var(--muted); }
@media (max-width: 479px) { .facts li { grid-template-columns: 1fr; gap: .1rem; } }
@media (min-width: 960px) { .trust { grid-template-columns: 5fr 7fr; gap: 4rem; } .trust-photo { max-width: none; } }
.brands { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* the closing call */
.close-call { display: grid; gap: 1.25rem; align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.close-call h2 { margin-bottom: .25em; }
.close-call p { margin: 0; color: var(--muted); }
.close-call .tel { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 500; color: var(--indigo); text-decoration: none; letter-spacing: .01em; }
@media (min-width: 900px) { .close-call { grid-template-columns: 1.3fr 1fr; } .close-call .btns { justify-content: flex-end; } }

/* prose on inner pages */
.prose { max-width: 40rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: start; } .split-sticky { position: sticky; top: calc(var(--head-h) + 24px); } }
.quote-site { margin: 1.5rem 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--indigo); background: var(--card); }
.quote-site p { margin: 0 0 .4rem; font-size: 1.1rem; }
.quote-site cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--indigo); color: #fff; font-size: .9rem; }
.steps b { display: block; font-weight: 500; }
.steps span { color: var(--muted); font-size: .97rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg); }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery a, .gallery figure { position: relative; display: block; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .7rem .6rem; font-size: .8rem; color: #fff; background: linear-gradient(180deg, transparent, rgb(20 19 63 / .8)); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.filters button { font: inherit; font-size: .92rem; padding: .5em 1em; min-height: 44px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* the big picture view on the projects page */
.viewer { border: 0; padding: 0; max-width: min(1100px, 94vw); width: 100%; background: transparent; color: #fff; }
.viewer::backdrop { background: rgb(14 13 44 / .88); }
.viewer img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: var(--r); }
.viewer p { margin: .75rem 0 0; font-size: .95rem; }
.viewer button { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.js .viewer[open] { animation: rise .45s var(--ease); }

/* forms: short, big targets */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff; border: 1.5px solid #b9b2a3; border-radius: var(--r); padding: .8em .9em; min-height: 52px; }
.field textarea { min-height: 7.5em; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgb(43 42 128 / .18); }
.two { display: grid; gap: 1rem; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.carried { display: none; padding: .8rem 1rem; border-radius: var(--r); background: var(--paper-2); border-left: 3px solid var(--blue); font-size: .95rem; }
.carried.show { display: block; }

/* the quote drawer: the form rises over the page */
.drawer { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 640px; max-height: 92svh; border: 0; padding: 0; border-radius: 10px 10px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px -20px rgb(14 13 44 / .5); overflow: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: rgb(14 13 44 / .55); }
.drawer[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gut) .75rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; margin: 0; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer-body { padding: 1rem var(--gut) 1.5rem; }
.drawer-body .tel-line { margin: 0 0 1rem; color: var(--muted); }
@media (min-width: 720px) { .drawer { inset: 0; margin: auto; border-radius: 10px; max-height: 88vh; } }

/* footer */
.foot { background: var(--indigo-dd); color: #c9cae6; font-size: .95rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; gap: 2rem; }
.foot-logo { display: inline-block; background: #fff; padding: 10px; border-radius: var(--r); }
.foot-logo img { width: 64px; height: 66px; }
.foot h2 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-l); margin: 0 0 .9rem; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-tel { font-size: 1.6rem; font-weight: 500; letter-spacing: .01em; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .84rem; color: #a9aad0; }
.foot-legal a { color: #c9cae6; }
.credit { opacity: .8; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

/* 404 */
.lost { display: grid; gap: 2rem; align-items: center; min-height: 60svh; }
.lost img { max-width: 420px; width: 100%; }
@media (min-width: 900px) { .lost { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-cut] { clip-path: none; }
  .cutline { display: none; }
}
@media print { .head, .callbar, .cutline, .drawer, .foot-legal .credit { display: none !important; } body { padding: 0; } }
.hero .m { display: none; }
@media (max-width: 719px) { .hero .n { display: none; } .hero .m { display: inline; } }

/* phone length: the home page stays short */
@media (max-width: 719px) {
  .sec { padding-block: 2.75rem; }
  .job { aspect-ratio: 4 / 3; }
  .builders ul { display: block; }
  .builders li { display: inline; border: 0; padding: 0; font-size: .9rem; background: none; }
  .builders li:not(:last-child)::after { content: " · "; color: var(--sand); }
  .builders.on-light li { background: none; }
  .trust { gap: 1.25rem; }
  .trust-photo { aspect-ratio: 16 / 10; max-width: none; }
  .trust-photo img { object-position: 50% 30%; }
  .facts { margin: 1rem 0; }
  .facts li { padding: .6rem 0; }
  .close-call { padding: 1.25rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .foot { padding-top: 2.5rem; }
  .foot-legal { margin-top: 1.5rem; }
}
@media (max-width: 719px) {
  .close-home { display: none; }
  .foot ul { gap: .3rem; }
  .foot-logo img { width: 52px; height: 54px; }
}
@media (max-width: 719px) {
  .sec { padding-block: 2.5rem; }
  .foot-grid > div:first-child > p:first-of-type { display: none; }
}
.on-dark .row-hint { color: #c9cae6; }
.on-dark :focus-visible, .foot :focus-visible, .hero :focus-visible { outline-color: #fff; }
