/* 9 & Contractors: public site (home, 404/500). Builds on /css/ds.css tokens + components.
   Palette and type come from https://9andcontractors.com (see DESIGN_NOTES.md / DESIGN_SYSTEM.md). */

/* legacy aliases (kept so older markup and custom CSS written against the old variables keep working) */
:root { --gold: var(--brand-gold); --gold-alt: var(--brand-gold-alt); --gold-hover: var(--brand-gold-hover); --green: var(--brand-green); --green-hover: var(--brand-green-hover);
  --cream: var(--brand-cream); --black: #000; --ink: #111; --white: #fff; --field: #FAFAFA; --muted: var(--n-600); --line: rgba(211,158,23,.45); --radius: var(--radius-lg); --shadow: var(--shadow-md); --max: var(--container); }

.h-green { color: var(--color-heading); }
.h-gold { color: var(--brand-gold); }
.lead { font-size: var(--fs-md); line-height: 1.6; max-width: 62ch; margin: 0 auto var(--space-8); color: var(--color-text-muted); }
.on-dark .lead, .dark .lead { color: var(--color-text-muted-on-dark); }
.section { position: relative; padding: var(--section-y) 0; }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { margin-bottom: 0; }
.cream { background: var(--color-bg-cream); }
.dark, .on-dark { color: var(--color-text-on-dark); }
.dark { background: var(--color-bg-dark); }
.on-dark .muted, .dark .muted, .site-footer .muted { color: var(--color-text-muted-on-dark); }
.on-dark a:not(.btn) { color: var(--gold-400); }
.on-dark a:not(.btn):hover { color: #fff; }
.section-texture { position: absolute; inset: 0; pointer-events: none; background-size: cover; background-position: center; }

/* ================= Header ================= */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--color-header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base); }
.site-header.is-scrolled { border-bottom-color: var(--n-150); box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.header-inner { width: min(1520px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-h); transition: min-height var(--dur-base) var(--ease-standard); }
.site-header.is-scrolled .header-inner { min-height: 64px; }
.main-nav { display: flex; align-items: center; gap: clamp(.8rem, .15rem + 1vw, 1.6rem); min-width: 0; }
.main-nav > a { position: relative; color: var(--color-text); text-decoration: none; font-weight: 700; font-size: .98rem; padding: .7rem 0; }
.main-nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; border-radius: 2px; background: var(--brand-gold); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-base) var(--ease-out); }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav > a.active { color: var(--green-700); }
.nav-head, .nav-extra { display: none; }
.nav-backdrop { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand { flex: none; }
.social-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-gold); color: #111; display: inline-grid; place-items: center; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.social-dot:hover { background: var(--gold-400); color: #111; transform: translateY(-2px); }
.social-dot svg { width: 18px; height: 18px; }
.signin-link { color: var(--color-text); font-weight: 800; text-decoration: none; font-size: .95rem; padding: .6rem .5rem; border-radius: var(--radius-sm); }
.signin-link:hover { color: var(--green-700); background: var(--n-100); }
.btn-phone { text-transform: none; letter-spacing: .01em; font-size: .92rem; }
.menu-toggle { display: none; position: relative; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: var(--n-100); }
.menu-toggle span { display: block; height: 2px; background: var(--color-text); margin: 5px 0; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }

/* ================= Hero ================= */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; min-height: min(94svh, 860px); padding: clamp(5rem, 3rem + 7vw, 8rem) 0 clamp(6rem, 4rem + 6vw, 8rem); overflow: hidden; background: #0c0b0a; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); animation: hero-zoom 14s var(--ease-out) forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(12,11,10,.52) 0%, rgba(12,11,10,.34) 60%, rgba(12,11,10,.55) 100%),
    linear-gradient(180deg, rgba(12,11,10,.45) 0%, rgba(12,11,10,.05) 30%, rgba(12,11,10,.1) 62%, rgba(12,11,10,.88) 100%),
    linear-gradient(120deg, rgba(22,154,73,.16), rgba(211,158,23,.08) 60%, transparent); }
.hero-inner { position: relative; width: min(1040px, 100% - 2 * var(--gutter)); }
.hero-inner > * { animation: rise var(--dur-slower) var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 80ms; } .hero-inner > :nth-child(3) { animation-delay: 160ms; } .hero-inner > :nth-child(4) { animation-delay: 240ms; } .hero-inner > :nth-child(5) { animation-delay: 320ms; }
.flourish { color: var(--brand-gold); margin: 0 auto var(--space-4); filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.hero h1 { color: var(--brand-gold); font-size: var(--fs-4xl); margin-bottom: .3em; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero-sub { font-size: var(--fs-md); line-height: 1.6; max-width: 62ch; margin: 0 auto var(--space-8); color: #F0EDE4; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-trust { list-style: none; margin: clamp(2.25rem, 1.5rem + 2vw, 3.25rem) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; color: #E9E5D9; font-weight: 700; font-size: var(--fs-sm); }
.hero-trust:empty { display: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.scroll-cue span { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.6); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--brand-gold); animation: cue 1.8s var(--ease-standard) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ================= Before/after slider (shared: Transformations, gallery tiles, lightbox) ================= */
.ba { --pos: 50%; position: relative; width: 100%; height: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; background: #1a1916; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-big { width: 100%; height: 100%; }
.ba-big img { object-fit: contain; background: #0c0b0a; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 0 18px rgba(0,0,0,.45); pointer-events: none; z-index: 2; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand-gold); color: #111; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 8px 24px rgba(0,0,0,.45); transition: transform var(--dur-fast) var(--ease-out); }
.ba-knob svg { width: 26px; height: 26px; }
.ba.is-dragging .ba-knob, .ba-range:focus-visible ~ .ba-line .ba-knob { transform: translate(-50%, -50%) scale(1.1); }
.ba-range:focus-visible ~ .ba-line .ba-knob { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--brand-gold), 0 8px 24px rgba(0,0,0,.45); }
.ba-tag { position: absolute; top: .8rem; z-index: 3; background: rgba(12,11,10,.72); backdrop-filter: blur(6px); color: #fff; font: 800 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border-radius: var(--radius-pill); pointer-events: none; transition: opacity var(--dur-base); }
.ba-tag-b { left: .8rem; } .ba-tag-a { right: .8rem; background: var(--brand-gold); color: #111; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 56px; height: 100%; border: 0; cursor: ew-resize; }
.ba.is-intro .ba-after, .ba.is-intro .ba-line { transition: clip-path 1.1s var(--ease-out), left 1.1s var(--ease-out); }
.ba-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; height: 100%; background: #0c0b0a; }
.ba-split figure { position: relative; margin: 0; overflow: hidden; }
.ba-split img { width: 100%; height: 100%; object-fit: contain; }
.ba-split .ba-tag { top: .8rem; left: .8rem; right: auto; }
@media (max-width: 640px) { .ba-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; } }

/* ================= Transformations ================= */
.transformations { background: radial-gradient(ellipse 80% 60% at 50% 0%, #1d1b16 0%, #0c0b0a 70%); overflow: hidden; }
.tx-texture { background-image: image-set(url(/img/stock/black-honeycomb-1600.webp) type("image/webp"), url(/img/stock/black-honeycomb-1600.jpg) type("image/jpeg")); opacity: .09; mix-blend-mode: screen; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.tx-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.tx-card { grid-column: span 6; display: flex; flex-direction: column; background: #151410; border: 1px solid #2A2822; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.tx-card:hover { border-color: rgba(211,158,23,.55); }
.tx-card.tx-feature { grid-column: span 7; }
.tx-card.tx-second { grid-column: span 5; }
.tx-card.tx-small { grid-column: span 4; }
.tx-frame { position: relative; aspect-ratio: 4 / 3; }
.tx-feature .tx-frame, .tx-second .tx-frame { aspect-ratio: auto; flex: 1; min-height: clamp(280px, 20vw + 120px, 520px); }
.tx-sk { aspect-ratio: 4 / 3; width: 100%; border-radius: 0; }
.tx-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; padding: 1.1rem 1.25rem 1.25rem; }
.tx-meta { flex: 1 1 240px; min-width: 0; }
.tx-cat { font: 800 var(--fs-xs)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--gold-400); margin: 0 0 .45rem; }
.tx-title { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; font-size: var(--fs-sm); line-height: 1.5; color: #E9E5D9; margin: 0; }
.tx-feature .tx-title { font-size: var(--fs-base); }
.tx-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tx-actions .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); --btn-bg-hover: rgba(255,255,255,.1); --btn-fg-hover: #fff; }
.tx-actions .btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.tx-grid .state { grid-column: 1 / -1; }

/* ================= Specialties ================= */
.specialties { background: var(--n-0); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, .5rem + 1.2vw, 1.5rem); }
.spec-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; text-decoration: none; color: #fff; background: #1a1916; box-shadow: var(--shadow-md); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.spec-card:hover { color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.spec-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }
.spec-media { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.spec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out); }
.spec-card:hover .spec-media img { transform: scale(1.06); }
.spec-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,11,10,0) 35%, rgba(12,11,10,.55) 62%, rgba(12,11,10,.92) 100%), linear-gradient(200deg, rgba(211,158,23,.18), transparent 45%); }
.spec-body { display: grid; gap: .35rem; padding: clamp(1rem, .8rem + .8vw, 1.5rem); width: 100%; }
.spec-title { font-family: var(--font-head); font-size: var(--fs-xl); line-height: 1.1; color: #fff; }
.spec-title::after { content: ""; display: block; width: 36px; height: 3px; margin-top: .6rem; border-radius: 3px; background: var(--brand-gold); transition: width var(--dur-base) var(--ease-out); }
.spec-card:hover .spec-title::after { width: 64px; }
.spec-meta { display: inline-flex; align-items: center; gap: .4rem; font: 800 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); }
.spec-meta::after { content: "→"; transition: transform var(--dur-base) var(--ease-out); }
.spec-card:hover .spec-meta::after { transform: translateX(4px); }

/* ================= About ================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: center; }
.two-col.top { align-items: start; }
.about-media { position: relative; min-height: clamp(340px, 24vw + 200px, 560px); }
.about-frame { position: absolute; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); background: var(--n-150); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-frame-a { inset: 0 22% 14% 0; }
.about-frame-b { inset: 42% 0 0 46%; border: 6px solid var(--color-surface); }
.about-badge { position: absolute; left: 6%; bottom: 2%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; width: 124px; height: 124px; padding: .6rem; border-radius: 50%; background: #111; color: #fff; box-shadow: var(--shadow-lg), 0 0 0 6px var(--color-surface); text-align: center; line-height: 1; }
/* "Paul: 20+ Years Experience" (Bill, Sep 29, 2026): the years are Paul's personal experience, not the company's age. */
.about-badge-k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.about-badge-n { font-family: var(--font-head); font-size: 1.9rem; color: var(--brand-gold); }
.about-badge-l { font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; max-width: 7.5em; }
.about-text { font-size: var(--fs-md); color: var(--n-700); max-width: var(--measure); }
.highlights { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.highlights li { position: relative; padding: 1.1rem 1.1rem 1.1rem 3.4rem; background: var(--n-25); border: 1px solid var(--n-150); border-radius: var(--radius-md); transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.highlights li:hover { border-color: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.highlights li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 28px; height: 28px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.highlights strong { display: block; font-family: var(--font-head); color: var(--color-text); font-size: 1.12rem; margin-bottom: .2rem; letter-spacing: -.01em; }
.highlights span { font-size: var(--fs-sm); color: var(--n-600); line-height: 1.5; }

/* ================= Filters ================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 var(--space-8); }
.filters:empty { display: none; }
.filter-sep { width: 1px; align-self: stretch; background: var(--n-300); margin: .35rem .4rem; }
.filter-label { width: 100%; text-align: center; font: 800 var(--fs-xs)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-accent-text); margin: .6rem 0 .15rem; }
.filter-btn.spec { border-color: var(--gold-300); background: var(--gold-50); }
.filter-btn.spec[aria-pressed="true"] { background: var(--brand-gold); color: #111; border-color: var(--brand-gold); }

/* ================= Services ================= */
.services { background: linear-gradient(180deg, var(--n-0), var(--n-25)); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, .7rem + 1vw, 1.6rem); }
.card-grid.is-swapping > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.service-card { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--n-0); border: 1px solid var(--n-150); border-radius: var(--radius-xl); padding: 0; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: inherit; width: 100%;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); animation-delay: var(--i-delay, 0ms); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--n-200); }
.service-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }
.service-card .svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1d1b16, #0c0b0a); }
.service-card .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out); }
.service-card:hover .svc-media img { transform: scale(1.06); }
.service-card .svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,11,10,.45)); }
.service-card .svc-media.no-photo { display: grid; place-items: center; background:
  radial-gradient(circle at 30% 20%, rgba(211,158,23,.28), transparent 55%), radial-gradient(circle at 80% 90%, rgba(22,154,73,.3), transparent 55%), #141311; }
.service-card .svc-media.no-photo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; }
.service-card .icon { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; background: rgba(211,158,23,.14); border: 1px solid rgba(211,158,23,.45); color: var(--gold-300); display: grid; place-items: center; }
.service-card .svc-media .icon-badge { position: absolute; left: 1rem; bottom: -22px; z-index: 2; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-gold); color: #111; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.service-card .svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.4rem 1.4rem; }
.service-card h3 { color: var(--color-text); font-size: var(--fs-lg); margin-bottom: .35rem; }
.service-card .cat { font: 800 .7rem/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-accent-text); margin-bottom: .55rem; }
.service-card p { color: var(--n-600); font-size: var(--fs-sm); line-height: 1.6; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: .35rem; color: var(--green-700); font: 800 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.service-card .more .arr { transition: transform var(--dur-base) var(--ease-out); }
.service-card:hover .more .arr { transform: translateX(5px); }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--n-600); }

/* ================= Gallery ================= */
.sample-note { color: var(--color-accent-text); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); grid-auto-flow: dense; gap: clamp(.75rem, .5rem + .8vw, 1.25rem); transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.gallery-grid.is-filtering { opacity: 0; transform: translateY(10px); }
.gallery-grid > .gallery-item { animation: g-in var(--dur-slow) var(--ease-out) both; animation-delay: var(--i-delay, 0ms); }
@keyframes g-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.g-sk { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.gallery-item { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--n-200); aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); color: #fff; font: inherit; text-align: left; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-item:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-lg); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 640px) { .gallery-item.wide { grid-column: auto; aspect-ratio: 4 / 3; } }
.gallery-item > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out), opacity var(--dur-slow); }
.gallery-item:hover > img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem 1rem; background: linear-gradient(0deg, rgba(12,11,10,.88), rgba(12,11,10,.45) 55%, transparent); color: #fff; text-align: left; font-size: var(--fs-sm); display: grid; gap: .15rem; transform: translateY(0); }
.gallery-item .cap strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-body); font-weight: 700; font-size: .92rem; line-height: 1.4; letter-spacing: 0; }
.gallery-item .cap span { font: 800 .68rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.badge-sample, .badge-featured { position: absolute; top: .75rem; z-index: 3; font: 800 .66rem/1 var(--font-body); letter-spacing: .12em; padding: .42rem .65rem; border-radius: var(--radius-pill); text-transform: uppercase; }
.badge-sample { right: .75rem; background: var(--brand-gold); color: #111; }
.badge-featured { left: .75rem; background: var(--green-600); color: #fff; }
.gallery-item.featured { box-shadow: 0 0 0 3px var(--brand-gold), var(--shadow-md); }
.gallery-item.pair { cursor: default; }
.gallery-item.pair .cap { pointer-events: none; z-index: 3; padding-right: 4rem; }
.gallery-item .expand { position: absolute; bottom: .8rem; right: .8rem; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(12,11,10,.7); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: zoom-in; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.gallery-item .expand svg { width: 20px; height: 20px; }
.gallery-item .expand:hover, .gallery-item .expand:focus-visible { background: var(--brand-gold); color: #111; transform: scale(1.06); }
.gallery-item.pair .ba-tag-a { right: .8rem; }
.gallery-grid .state { grid-column: 1 / -1; }

/* ================= Service area ================= */
.service-area { background: var(--n-0); }
.area-wrap { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.area-wrap.has-map { grid-template-columns: 1fr 1fr; }
.area-text .lead { margin-left: 0; margin-right: 0; text-align: left; max-width: 62ch; }
.town-list { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.town-list li { display: flex; align-items: center; gap: .6rem; background: var(--n-25); border: 1px solid var(--n-150); padding: .75rem .9rem; border-radius: var(--radius-md); font-weight: 700; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.town-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 4px var(--gold-100); flex: none; }
.town-list li:hover { border-color: var(--gold-300); transform: translateY(-2px); }
.area-map { margin: 0; }
.area-map img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.area-map figcaption { font-size: var(--fs-sm); color: var(--n-600); margin-top: .6rem; text-align: center; }

/* ================= Reviews ================= */
.reviews { background: #0f0e0c; overflow: hidden; }
.reviews-texture { background-image: image-set(url(/img/stock/gold-honeycomb-1600.webp) type("image/webp"), url(/img/stock/gold-honeycomb-1600.jpg) type("image/jpeg")); opacity: .12; mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 75%); }
.review-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, .7rem + 1vw, 1.6rem); margin-bottom: var(--space-6); }
.review { position: relative; margin: 0; padding: 2rem 1.6rem 1.6rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); backdrop-filter: blur(6px); transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.review:hover { transform: translateY(-4px); border-color: rgba(211,158,23,.5); }
.review::before { content: "“"; position: absolute; top: -.2rem; right: 1.2rem; font-family: var(--font-head); font-size: 6rem; line-height: 1; color: rgba(211,158,23,.22); }
.review .stars { color: var(--brand-gold); letter-spacing: .2em; margin-bottom: .8rem; font-size: 1.05rem; }
.review blockquote { margin: 0 0 1.1rem; font-size: var(--fs-base); line-height: 1.65; color: #F0EDE4; }
.review figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: #fff; }
.review figcaption::before { content: attr(data-initial); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gold); color: #111; font-family: var(--font-head); font-size: 1.1rem; }
.review-source { position: relative; color: var(--color-text-muted-on-dark); }

/* ================= Quote (dark) ================= */
.quote { overflow: hidden; background: #0c0b0a; }
.quote-texture { background-image: linear-gradient(90deg, rgba(12,11,10,.97) 20%, rgba(12,11,10,.86) 60%, rgba(12,11,10,.94)), image-set(url(/img/stock/black-marble-bath-1600.webp) type("image/webp"), url(/img/stock/black-marble-bath-1600.jpg) type("image/jpeg")); }
.quote-layout { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.quote-intro .lead { margin-left: 0; text-align: left; }
.quote-steps { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: 1rem; }
.quote-steps li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; color: #E9E5D9; }
.qs-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(211,158,23,.6); color: var(--brand-gold); font-family: var(--font-head); font-size: 1.1rem; }
.quote-call { font-weight: 700; color: #E9E5D9; }
.quote-call a { font-size: 1.15rem; }
.card-form { position: relative; background: rgba(22,21,18,.92); border: 1px solid #2E2B24; border-radius: var(--radius-xl); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); box-shadow: var(--shadow-xl); backdrop-filter: blur(8px); }
.card-form.light { background: var(--n-0); border-color: var(--n-150); box-shadow: var(--shadow-lg); color: var(--color-text); backdrop-filter: none; }
.form-title { color: var(--color-text); font-size: var(--fs-xl); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.span-2 { grid-column: 1 / -1; }
.dark .field > label, .on-dark .field > label { color: #F0EDE4; }
.dark input[type=text], .dark input[type=email], .dark input[type=tel], .dark select, .dark textarea { background: #0f0e0c; color: #F5F3EC; border-color: #3A372F; box-shadow: none; }
.dark input::placeholder, .dark textarea::placeholder { color: #8E897C; }
.dark select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23E0B43A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; }
.dark select option { background: #fff; color: #111; }
.dark input:hover, .dark select:hover, .dark textarea:hover { border-color: #5A564B; }
.dark input:focus, .dark select:focus, .dark textarea:focus { border-color: var(--brand-gold); box-shadow: 0 0 0 4px rgba(211,158,23,.25); }
.dark .muted { color: var(--color-text-muted-on-dark); }
.dark input[type=file] { background: rgba(255,255,255,.03); border-color: #4A463C; color: #E9E5D9; }
.dark input[type=file]::file-selector-button { background: var(--brand-gold); color: #111; }
.field-foot { display: flex; justify-content: space-between; gap: 1rem; }
.counter { font-size: .8rem; color: var(--n-500); margin-top: .4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dark .counter { color: #A9A597; }
.counter.near { color: var(--gold-400); }
.check input { margin-top: .15rem; accent-color: var(--brand-gold); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-actions p { margin: 0; }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }
.form-status .ok, .form-status .fail { display: flex; gap: .6rem; align-items: flex-start; padding: .95rem 1.1rem; border-radius: var(--radius-md); font-weight: 600; animation: rise var(--dur-base) var(--ease-out) both; }
.form-status .ok { background: rgba(22,154,73,.14); border: 1px solid var(--green-500); }
.form-status .fail { background: rgba(180,35,24,.12); border: 1px solid #E5484D; }
.dark .form-status .fail { color: #FFD9D9; }
.card-form.light .form-status .fail { color: var(--color-danger-strong); }
.photo-previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.photo-previews:empty { display: none; }
.photo-previews figure { margin: 0; width: 92px; animation: rise var(--dur-base) var(--ease-out) both; }
.photo-previews img { width: 92px; height: 70px; object-fit: cover; border-radius: var(--radius-xs); box-shadow: var(--shadow-sm); }
.photo-previews figcaption { font-size: .7rem; color: #A9A597; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .2rem; }
.privacy-note { font-size: .84rem; line-height: 1.55; color: #CFCBBE; background: rgba(211,158,23,.07); border: 1px dashed rgba(211,158,23,.55); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .5rem 0 1.1rem; }
.privacy-note a { color: var(--gold-400); }
.privacy-note.light { color: var(--n-700); background: var(--gold-50); border-color: var(--gold-400); }
.privacy-note.light a { color: var(--green-700); }
.turnstile-slot:empty { display: none; }

/* success screens */
.success-screen { background: rgba(22,21,18,.95); border: 1px solid rgba(22,154,73,.6); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 3vw, 3rem); text-align: center; box-shadow: var(--shadow-xl); animation: pop-in var(--dur-slow) var(--ease-out) both; }
.success-screen.light { background: var(--green-50); color: var(--color-text); margin-top: 1rem; border-color: var(--green-200); box-shadow: none; }
.success-screen:focus { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
.success-check { width: 76px; height: 76px; margin: 0 auto 1.1rem; color: var(--green-400); }
.success-screen.light .success-check { color: var(--green-600); }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 700ms var(--ease-out) forwards; }
.success-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 450ms 500ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .success-check circle, .success-check path { stroke-dashoffset: 0; animation: none; } }
.success-screen h3 { color: var(--brand-gold); font-size: var(--fs-xl); }
.success-screen.light h3 { color: var(--green-700); }
.ref-number { font-family: var(--font-mono); font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); font-weight: 700; letter-spacing: .08em; color: #fff; background: #000; border: 2px solid var(--brand-gold); display: inline-block; padding: .5rem 1.1rem; border-radius: var(--radius-md); }
.next-steps { text-align: left; max-width: 520px; margin: .5rem auto 1.4rem; line-height: 1.7; }
.success-screen h4 { font-family: var(--font-head); color: #fff; margin-top: 1.4rem; }

/* ================= Contact ================= */
.contact { background: linear-gradient(180deg, var(--n-25), var(--n-0)); }
.info-list { margin: var(--space-6) 0 var(--space-8); display: grid; gap: .25rem; }
.info-list div { display: grid; grid-template-columns: 140px 1fr; gap: .75rem; align-items: center; border-bottom: 1px solid var(--n-150); padding: .9rem 0; }
.info-list dt { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--color-accent-text); text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; }
.info-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-50); color: var(--gold-700); flex: none; }
.info-ico svg { width: 17px; height: 17px; }
.info-list dd { margin: 0; font-weight: 600; }
.info-list dd a { font-weight: 800; text-decoration: none; }
.info-list dd a:hover { text-decoration: underline; }
.placeholder-tag { color: var(--n-600); font-style: italic; font-weight: 400; }
.small-h { font-size: var(--fs-lg); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-pill); padding: .4rem .9rem; font-size: .88rem; font-weight: 700; }

/* ================= CTA band + footer ================= */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4.5rem, 3rem + 6vw, 8rem) 0; background: #0c0b0a; }
.cta-media { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, rgba(12,11,10,.8), rgba(12,11,10,.72) 50%, rgba(12,11,10,.9)), linear-gradient(90deg, rgba(22,154,73,.2), transparent 60%), image-set(url(/img/stock/v2/cta-topdown-framing-1600.webp) type("image/webp"), url(/img/stock/v2/cta-topdown-framing-1600.jpg) type("image/jpeg")); background-size: cover; background-position: center 55%; }
.cta-inner h2 { font-size: var(--fs-3xl); }
.cta-band p { max-width: 58ch; margin: 0 auto var(--space-8); font-size: var(--fs-md); color: #F0EDE4; }
.site-footer { background: #0a0908; color: #D8D4C8; padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 1.5rem; border-top: 3px solid var(--brand-gold); }
.site-footer a { color: var(--gold-400); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.footer-grid p { margin: 0 0 .45rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.footer-h { font: 800 .72rem/1 var(--font-body) !important; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: #fff; margin-bottom: 1rem !important; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.site-footer .social-dot { color: #111; }
.site-footer .social-dot:hover { color: #111; text-decoration: none; }
.footer-bottom { border-top: 1px solid #25231E; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.25rem; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--brand-gold-alt); color: #111; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out), background-color var(--dur-fast); z-index: var(--z-fab); }
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-400); transform: translateY(-3px); }

/* ================= Service modal ================= */
.modal-panel { padding-top: 0; }
.modal-media { margin: 0 calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)) 1.5rem; aspect-ratio: 16 / 8; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media[hidden] + .modal-cat { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.modal-panel h3 { color: var(--color-text); font-size: var(--fs-2xl); padding-right: 2.5rem; }
.modal-cat { font: 800 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--color-accent-text); margin-bottom: .6rem; }
.modal-media:not([hidden]) ~ .modal-close, .modal-panel > .modal-close { z-index: 2; background: var(--color-surface); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .55rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.modal-timeline { background: var(--gold-50); border-left: 4px solid var(--brand-gold); padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* ================= Lightbox ================= */
.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(8,7,6,.96); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center; gap: .5rem 1rem; padding: .75rem clamp(.5rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem); color: #fff; animation: fade-in var(--dur-base) var(--ease-standard) both; }
.lightbox.is-closing { animation: fade-out var(--dur-base) var(--ease-in) both; }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; min-height: 52px; }
.lb-count { font: 800 .8rem/1 var(--font-body); letter-spacing: .12em; color: #BDB8AA; font-variant-numeric: tabular-nums; }
.lb-modes { display: inline-flex; margin-inline: auto; padding: 4px; background: rgba(255,255,255,.08); border-radius: var(--radius-pill); }
.lb-mode { min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: #E9E5D9; font: 800 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.lb-mode[aria-pressed="true"] { background: var(--brand-gold); color: #111; }
.lb-close { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.lb-close svg { width: 20px; height: 20px; }
.lb-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.lb-nav { width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 50%; cursor: pointer; flex: none; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.lb-nav svg { width: 24px; height: 24px; }
.lb-nav:hover { background: var(--brand-gold); color: #111; transform: scale(1.06); }
.lb-nav[hidden] { display: grid !important; visibility: hidden; }
.lb-figure { margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .9rem; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-xl); transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-out); }
.lb-stage.is-loading > img { opacity: .15; }
.lb-stage.slide-next > img, .lb-stage.slide-next > .lb-ba { animation: lb-next var(--dur-slow) var(--ease-out) both; }
.lb-stage.slide-prev > img, .lb-stage.slide-prev > .lb-ba { animation: lb-prev var(--dur-slow) var(--ease-out) both; }
@keyframes lb-next { from { opacity: 0; transform: translateX(40px) scale(.98); } }
@keyframes lb-prev { from { opacity: 0; transform: translateX(-40px) scale(.98); } }
.lb-spinner { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--brand-gold); animation: spin .8s linear infinite; opacity: 0; transition: opacity var(--dur-base); pointer-events: none; }
.lb-stage.is-loading .lb-spinner { opacity: 1; }
.lb-ba { width: 100%; height: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.lightbox figcaption { text-align: center; display: grid; gap: .25rem; max-width: 78ch; margin: 0 auto; }
.lightbox figcaption strong { font-family: var(--font-body); font-weight: 700; color: #fff; font-size: var(--fs-base); line-height: 1.5; }
.lightbox figcaption span { color: #BDB8AA; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lb-figure { grid-column: 1 / -1; grid-row: 2; }
  .lb-prev { grid-row: 3; justify-self: start; } .lb-next { grid-row: 3; justify-self: end; }
  .lb-nav { width: 52px; height: 52px; }
}

/* ================= Custom Code banner/preview (public pages only) ================= */
.custom-banner { background: var(--green-600); color: #fff; text-align: center; padding: .65rem 1rem; font-weight: 700; }
.custom-banner p { margin: 0; }
.preview-bar { position: sticky; top: 0; z-index: 200; background: #111; color: #fff; text-align: center; padding: .55rem 1rem; font-size: .9rem; }
.preview-bar a { color: var(--gold-400); font-weight: 800; margin-left: .5rem; }

/* ================= Error pages (404 / 500) ================= */
.error-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: #0c0b0a; color: #fff; }
.error-page .ep-header { padding: 1.1rem var(--gutter); background: var(--color-surface); }
.error-page main { position: relative; isolation: isolate; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); overflow: hidden; }
.ep-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.ep-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12,11,10,.72), rgba(12,11,10,.95)); }
.ep-bg-404 { background-image: image-set(url(/img/stock/black-shower-fixtures-800.webp) type("image/webp"), url(/img/stock/black-shower-fixtures-800.jpg) type("image/jpeg")); }
.ep-bg-500 { background-image: image-set(url(/img/stock/marble-vanity-dark-1600.webp) type("image/webp"), url(/img/stock/marble-vanity-dark-1600.jpg) type("image/jpeg")); }
.ep-code { font-family: var(--font-head); font-size: clamp(5rem, 3rem + 12vw, 11rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--brand-gold); margin: 0 0 .5rem; letter-spacing: -.03em; }
.error-page h1 { color: var(--brand-gold); font-size: var(--fs-2xl); }
.error-page p { color: #E9E5D9; max-width: 48ch; margin-inline: auto; }
.ep-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.error-page footer { text-align: center; padding: 1.25rem; font-size: .85rem; color: var(--color-text-muted-on-dark); border-top: 1px solid #25231E; }
.error-page footer a { color: var(--gold-400); }

/* ================= Responsive ================= */
@media (max-width: 1200px) {
  .social-dot { display: none; }
  .site-footer .social-dot { display: inline-grid; }
  .tx-card.tx-feature, .tx-card.tx-second { grid-column: span 12; }
  .tx-feature .tx-frame, .tx-second .tx-frame { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .tx-card.tx-small { grid-column: span 6; }
  .tx-card.tx-small:last-child:nth-child(odd) { grid-column: span 12; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-card { aspect-ratio: 16 / 11; }
}
/* Header drawer breakpoint (Sep 29, 2026): in em so it follows the browser's font-size setting. 72em = 1152 px at the
   default 16 px, 1296 px at 18 px, 1440 px at 20 px. public/js/app.js uses the same query (DRAWER_MQ). Keep them in sync. */
@media (max-width: 72em) {
  .menu-toggle { display: block; }
  .btn-phone { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(380px, 88vw); flex-direction: column; align-items: stretch; gap: 0; padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) 1.25rem; background: var(--color-surface); box-shadow: var(--shadow-xl); transform: translateX(105%); visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); overflow-y: auto; }
  .main-nav.open { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-out), visibility 0s; }
  .main-nav > a { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; padding: .75rem .25rem; border-bottom: 1px solid var(--n-150); min-height: 56px; display: flex; align-items: center; }
  .main-nav > a::after { display: none; }
  .main-nav.open > a { animation: rise var(--dur-slow) var(--ease-out) both; }
  .main-nav.open > a:nth-of-type(2) { animation-delay: 40ms; } .main-nav.open > a:nth-of-type(3) { animation-delay: 80ms; } .main-nav.open > a:nth-of-type(4) { animation-delay: 120ms; } .main-nav.open > a:nth-of-type(5) { animation-delay: 160ms; } .main-nav.open > a:nth-of-type(6) { animation-delay: 200ms; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: .5rem; }
  .nav-title { font: 800 .75rem/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-accent-text); }
  .nav-close { position: static; }
  .nav-extra { display: grid; gap: .6rem; margin-top: auto; padding-top: 1.5rem; }
  .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(12,11,10,.55); backdrop-filter: blur(3px); animation: fade-in var(--dur-base) both; }
}
@media (max-width: 1080px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-intro { position: static; }
  .quote-steps { display: none; }
}
@media (max-width: 900px) {
  .two-col, .area-wrap.has-map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { min-height: 360px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .brand-name { font-size: 1.22rem; }
  .brand-mark svg { width: 38px; height: 32px; }
  .brand-tag { font-size: .55rem; letter-spacing: .24em; }
  .signin-link { display: none; }
  .form-grid, .highlights { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; gap: .35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .tx-card.tx-small { grid-column: span 12; }
  .tx-body { padding: 1rem; }
  .tx-actions { width: 100%; }
  .tx-actions .btn { flex: 1; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .spec-card { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); }
  .spec-title { font-size: 1.2rem; }
  .spec-meta { font-size: .66rem; }
  .hero { min-height: min(88svh, 720px); }
  .hero-trust { gap: .5rem 1rem; font-size: .8rem; }
  .about-badge { width: 104px; height: 104px; }
  .about-badge-n { font-size: 1.5rem; }
  .about-badge-k { font-size: .62rem; }
  .about-badge-l { font-size: .52rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-band .hero-ctas .btn { flex: 1 1 100%; }
}
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .scroll-cue span::after { animation: none; }
}
.ep-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--container); margin: 0 auto; }
.ep-inner { max-width: 640px; }
.ep-bg-offline { background: radial-gradient(ellipse at 50% 30%, #1f1c14, #0c0b0a 70%); }
.ep-icon { -webkit-text-stroke: 0; color: var(--brand-gold); }
.error-page .ep-header { padding-top: max(1.1rem, env(safe-area-inset-top)); }
.error-page footer { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.brand-mark-img { width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--color-border); background: #fff; }

/* ================= Suppliers strip (third-party logos shown on white tiles in both themes) ================= */
.suppliers { padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; background: var(--color-bg); border-top: 1px solid var(--color-border); }
.suppliers-title { text-align: center; font: 800 var(--fs-xs)/1.3 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 1.25rem; }
.supplier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.supplier-list li { width: clamp(76px, 60px + 3vw, 112px); aspect-ratio: 1; border-radius: var(--radius-md); background: #fff; box-shadow: 0 0 0 1px var(--color-border); overflow: hidden; display: grid; place-items: center; }
.supplier-list img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter var(--dur-base), opacity var(--dur-base); }
.supplier-list li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .supplier-list img { filter: none; opacity: 1; } }
.footer-logo { margin: 0 0 .75rem; }
.footer-logo img { width: 200px; height: auto; background: #fff; border-radius: var(--radius-md); padding: .5rem .75rem; }
.highlights li.has-icon::before { display: none; }
.hl-icon { position: absolute; left: .9rem; top: 1rem; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: var(--space-8); }

/* Wichita Falls branch (contact section + footer) */
.branch-card { margin: 1.25rem 0 1.5rem; padding: 1rem 1.1rem .4rem; border: 1px solid var(--color-border); border-left: 4px solid var(--brand-gold); border-radius: var(--radius-md); background: var(--color-surface); }
.branch-card .small-h { margin-top: 0; }
.footer-branch { margin-top: .4rem; }
.footer-branch a { display: inline-block; min-height: 44px; line-height: 44px; }
.branch-card .info-list { margin: .4rem 0 0; }
.branch-card .info-list div:last-child { border-bottom: 0; }

/* Decorative section textures are skipped on small screens (saves ~400 KB and keeps the hero as the LCP element). */
@media (max-width: 760px) { .section-texture { display: none; } }

/* backdrop-filter on the header would make it the containing block for the fixed drawer (drawer clipped to the
   header + page overflow). At drawer widths the blur moves to a pseudo-element so the drawer is viewport-fixed. */
@media (max-width: 72em) {
  .site-header { backdrop-filter: none; background: transparent; }
  .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-header-bg); backdrop-filter: saturate(1.4) blur(10px); }
}

/* Header fit: nav labels never wrap; header social icons only when there is room (they're always in the footer).
   Breakpoints are in em (browser font-size aware); tests/header-fit.browser.test.js checks 1280 to 1680 px at 16/18/20 px. */
.main-nav > a, .signin-link, .btn-phone { white-space: nowrap; }
.btn-phone { flex: none; }
@media (min-width: 72.001em) and (max-width: 85em) {
  .site-header .social-dot { display: none; }
  .main-nav { gap: clamp(.7rem, .1rem + 1.1vw, 1.3rem); }
}
@media (min-width: 72.001em) and (max-width: 80em) {
  .main-nav > a { font-size: .92rem; }
  .brand-sub, .wordmark-sub { display: none; }
}

/* ---------- "Stock photo" chip: every photographic stock image carries it (never on real job photos) ---------- */
.stock-chip { position: absolute; top: .75rem; left: .75rem; z-index: 3; padding: .3rem .6rem; border-radius: var(--radius-pill); font: 700 .68rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #F7F4E6; background: rgba(12,11,10,.66); backdrop-filter: blur(4px); pointer-events: auto; cursor: help; }
.stock-chip-br { top: auto; left: auto; right: max(.75rem, env(safe-area-inset-right)); bottom: .75rem; }
.spec-media picture { position: absolute; inset: 0; display: block; }
.spec-media picture img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out); }
.spec-card:hover .spec-media picture img { transform: scale(1.06); }
.spec-card .stock-chip { z-index: 2; }
.service-card .svc-media .stock-chip { top: .6rem; left: auto; right: .6rem; }
.cta-band { position: relative; }
