/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-v20-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-v20-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/inter-v20-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/inter-v20-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/cinzel-v26-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/cinzel-v26-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/cinzel-v26-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/cinzel-v26-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/roboto-slab-v36-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/roboto-slab-v36-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================================
   Creed Construction — Site Styles
   Brand: deep navy #041A2E | seal red #8A3B42 | fonts Cinzel / Roboto Slab / Inter
   ========================================================================== */

:root {
  --navy: #041A2E;
  --navy-soft: #0E2D4A;
  --accent: #8A3B42;
  --accent-dark: #6F2E35;
  --mint: #EBEFF4;
  --offwhite: #FAFBFC;
  --white: #ffffff;
  --text: #1A2736;
  --text-muted: #536170;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 2px 12px rgba(4, 26, 46, 0.08);
  --shadow-md: 0 6px 20px rgba(4, 26, 46, 0.1);
  --shadow-lg: 0 8px 30px rgba(4, 26, 46, 0.12);
  --shadow-focus-accent: 0 0 0 4px rgba(138, 59, 66, 0.18);
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-slab: "Roboto Slab", Georgia, serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--navy-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-slab);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4.5rem 0;
}

.section-mint {
  background: var(--mint);
}

.section-white {
  background: var(--white);
}

/* ---------- Our Creed band ---------- */

.creed-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.creed-band-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
}

/* Stamp/seal comparison: reuses the before/after slider. The slider box is
   the seal's box; the stamp sits inside it so its ring meets the seal's rim. */
.creed-compare {
  margin: 0;
  text-align: center;
}

.ba-slider.creed-slider {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  overflow: visible;
  border-radius: 50%;
}

/* The stamp is transparent, so clip the seal underneath to the right of the
   divider or it shows through the stamp's left side. */
.creed-slider .ba-slider-after {
  clip-path: inset(0 0 0 var(--pos));
}

.creed-slider .ba-slider-before img {
  top: 7.47%;
  left: 7.47%;
  width: 85.06%;
  height: 85.06%;
}

.creed-slider .ba-slider-handle {
  top: var(--chord-inset, 0%);
  bottom: var(--chord-inset, 0%);
  box-shadow: none;
}

.creed-slider .ba-slider-handle-btn {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.ba-slider.creed-slider:focus-visible {
  outline: 2px solid #D9A3A9;
  outline-offset: 6px;
}

.creed-compare figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-slab);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.creed-band h2 {
  color: var(--white);
}

.creed-band .eyebrow {
  color: #D9A3A9;
}

.creed-band .lead {
  color: rgba(255, 255, 255, 0.78);
}

.creed-tenets {
  list-style: none;
  counter-reset: tenet;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
}

.creed-tenets li {
  counter-increment: tenet;
  position: relative;
  padding-left: 2.6rem;
}

.creed-tenets li::before {
  content: counter(tenet, upper-roman);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #D9A3A9;
  width: 2rem;
}

.creed-tenets strong {
  display: block;
  color: var(--white);
  font-family: var(--font-slab);
}

@media (max-width: 760px) {
  .creed-band-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ba-slider.creed-slider {
    width: 200px;
    height: 200px;
  }

  .creed-tenets {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  font-family: inherit;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(4, 26, 46, 0.22);
}

.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 26, 46, 0.28);
}

/* Stamp to seal: like the site's before/after sliders, the wax seal wipes
   across the stamp from left to right on hover, focus, click and submit.
   Submit is the navy button with the home button's treatment: the stamp sits
   straight on the navy, and the wax seal that replaces it is 117.6% of the
   stamp so its well edge lands on the stamp's ring and the wax spills past. */
.btn-seal {
  padding-right: 1.1rem;
  gap: 0.75rem;
}

/* Keep the filled state while sending and after the form is sealed. */
.btn-seal:focus-visible,
.btn-seal.is-sealing,
.btn-seal.is-sealed {
  background: var(--navy);
  color: var(--white);
}

.btn-seal .btn-seal-icon {
  width: 32px;
  height: 32px;
  margin: -0.4rem 0 -0.4rem;
  background: none;
  box-shadow: none;
}

.btn-seal .btn-seal-icon .btn-seal-wax {
  top: -8.8%;
  left: -8.8%;
  width: 117.6%;
  height: 117.6%;
  max-width: none;
  padding: 0;
}

.btn-seal .btn-seal-icon .btn-seal-stamp {
  clip-path: inset(0 0 0 -8.8%);
}

.btn-seal:hover .btn-seal-icon .btn-seal-stamp,
.btn-seal:focus-visible .btn-seal-icon .btn-seal-stamp,
.btn-seal:active .btn-seal-icon .btn-seal-stamp,
.btn-seal.is-sealing .btn-seal-icon .btn-seal-stamp,
.btn-seal.is-sealed .btn-seal-icon .btn-seal-stamp {
  clip-path: inset(0 0 0 108.8%);
}

/* Home button and other stamp-to-seal image swaps. */
.btn-seal-icon {
  position: relative;
  width: 38px;
  height: 38px;
  margin: -0.45rem 0.15rem -0.45rem 0;
  flex-shrink: 0;
  border-radius: 50%;
}

.btn-seal-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: clip-path 0.45s var(--ease);
}

.btn-seal-icon .btn-seal-stamp {
  clip-path: inset(0 0 0 0);
}

.btn-seal-icon .btn-seal-wax {
  padding: 1px;
  clip-path: inset(0 100% 0 0);
}

.btn-seal:hover .btn-seal-stamp,
.seal-swap:hover .btn-seal-stamp,
.btn-seal:focus-visible .btn-seal-stamp,
.seal-swap:focus-visible .btn-seal-stamp,
.btn-seal:active .btn-seal-stamp,
.seal-swap:active .btn-seal-stamp,
.btn-seal.is-sealing .btn-seal-stamp,
.btn-seal.is-sealed .btn-seal-stamp {
  clip-path: inset(0 0 0 100%);
}

.btn-seal:hover .btn-seal-wax,
.seal-swap:hover .btn-seal-wax,
.btn-seal:focus-visible .btn-seal-wax,
.seal-swap:focus-visible .btn-seal-wax,
.btn-seal:active .btn-seal-wax,
.seal-swap:active .btn-seal-wax,
.btn-seal.is-sealing .btn-seal-wax,
.btn-seal.is-sealed .btn-seal-wax {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .btn-seal-icon img {
    transition: none;
  }
}

.btn-outline {
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(4, 26, 46, 0.18);
}

/* Call-to-action buttons (Get a Quote, Facebook, Google reviews): seal-red
   outline that fills in on hover, the same shape as the navy outline. */
.btn-quote,
.btn-cta {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-quote:hover,
.btn-quote:focus-visible,
.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(138, 59, 66, 0.28);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* ---------- Sticky nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.site-nav :focus-visible {
  outline-color: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  transition: padding 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-inner {
  padding: 0.55rem 1.25rem;
}

.nav-brand {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-brand img {
  width: 38px;
  height: 38px;
}

/* Stamp buttons (Submit): an ink stamp that becomes the wax
   seal on hover, focus and while sending/sent. The stamp's outer ring is the
   seal's inner well, so the seal is drawn 118% of the button (its image is
   cut at 1.18x the well, centered) and its rim spills past the stamp. It
   lifts on hover, sinks on press, and lands with a thunk on click. */
/* Submit sits beside the "How did you hear" dropdown instead of on a row of
   its own, so the form doesn't end in empty space. */
.form-submit-row { display: flex; align-items: flex-end; justify-content: flex-end; }
.stamp-btn {
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform-origin: 50% 60%;
  filter: drop-shadow(0 4px 6px rgba(4, 26, 46, 0.16));
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.stamp-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease);
}
.stamp-btn .seal-face { inset: -9%; width: 118%; height: 118%; opacity: 0; transform: scale(0.9) rotate(-8deg); }
.stamp-btn:hover .stamp-face,
.stamp-btn:focus-visible .stamp-face,
.stamp-btn.is-sealing .stamp-face,
.stamp-btn.is-sealed .stamp-face { opacity: 0; }
.stamp-btn:hover .seal-face,
.stamp-btn:focus-visible .seal-face,
.stamp-btn.is-sealing .seal-face,
.stamp-btn.is-sealed .seal-face { opacity: 1; transform: none; }
.stamp-btn:hover:not(:disabled),
.stamp-btn:focus-visible {
  transform: translateY(-4px) rotate(-3deg);
  filter: drop-shadow(0 14px 14px rgba(4, 26, 46, 0.28));
}
.stamp-btn:active:not(:disabled) {
  transform: translateY(3px) scale(0.9);
  filter: drop-shadow(0 1px 1px rgba(4, 26, 46, 0.4));
  transition-duration: 0.06s;
}
.stamp-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.stamp-btn:disabled { cursor: default; }
.stamp-btn::after {
  content: "";
  position: absolute;
  inset: 4%;
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.stamp-btn.is-thunk { animation: stamp-thunk 0.45s cubic-bezier(.3, 1.4, .5, 1) both; }
.stamp-btn.is-thunk::after { animation: stamp-ring 0.55s ease-out both; }
@keyframes stamp-thunk {
  0% { transform: translateY(4px) scale(0.86); filter: drop-shadow(0 0 0 rgba(4, 26, 46, 0.45)); }
  45% { transform: translateY(-2px) scale(1.07); }
  75% { transform: scale(0.98); }
  100% { transform: none; }
}
@keyframes stamp-ring {
  0% { opacity: 0.55; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.4); }
}
@media (max-width: 720px) {
  .stamp-btn { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp-btn, .stamp-btn img { transition: opacity 0.2s; }
  .stamp-btn.is-thunk, .stamp-btn.is-thunk::after { animation: none; }
  .stamp-btn:hover:not(:disabled), .stamp-btn:focus-visible { transform: none; }
  /* Keep a small press-in so the click still feels solid without big motion. */
  .stamp-btn { transition: opacity 0.2s, transform 0.08s, filter 0.08s; }
  .stamp-btn:active:not(:disabled) { transform: scale(0.93); }
}

/* Home button: always the wax seal (no stamp-to-seal swap). */
.site-nav .nav-brand .btn-seal-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  background: none;
  box-shadow: none;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-brand .btn-seal-icon {
  width: 38px;
  height: 38px;
}

.site-nav .nav-brand .btn-seal-icon .btn-seal-wax {
  width: 100%;
  height: 100%;
  padding: 0;
  clip-path: none;
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--white);
  padding: 0.4rem 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.28s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}

/* Get a Quote in the nav is a solid seal-red block that runs the full
   height of the bar, not a pill. */
.nav-inner {
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

.site-nav.is-scrolled .nav-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-brand {
  padding: 0.7rem 0;
  transition: padding 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-brand {
  padding: 0.55rem 0;
}

.nav-toggle {
  align-self: center;
}

.nav-links-wrap {
  align-self: stretch;
}

.nav-cta {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--white);
  box-shadow: none;
  font-family: var(--font-slab);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-dark);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-links-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .nav-links-wrap.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    padding: 0.95rem 1.5rem;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 4.5rem;
  background-image: linear-gradient(rgba(250, 251, 252, 0.86), rgba(250, 251, 252, 0.86)), url("assets/interior-renovation/entry-after.jpg");
  background-size: cover;
  background-position: center 65%;
}

/* Hero text on the left, the Our Work carousel on the right; they stack
   below 1000px. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-grid > :first-child {
  max-width: 40em;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4.1vw, 3.4rem);
  }
}

.hero-work .work-heading {
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.hero-work .work-title {
  margin: 0;
  font-family: var(--font-slab);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-work .work-all-link {
  font-size: 0.85rem;
}

.hero-work .work-carousel {
  margin-top: 0;
  padding: 1rem;
}

/* In the hero the slide stacks: photos on top, copy underneath. */
.hero-work .feature-slide-link {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.hero-work .feature-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1rem 0.25rem 0;
}

.hero-work .feature-kicker {
  width: 100%;
  margin-bottom: 0.15rem;
}

.hero-work .feature-copy h3 {
  width: 100%;
  margin-bottom: 0.1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-work .feature-copy p {
  flex: 1 1 14rem;
  margin: 0;
  font-size: 0.92rem;
}

.hero-work .feature-cta {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.hero-work .feature-toolbar {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

/* Credibility line — sits under the service cards, reinforcing the
   Commercial positioning at the moment a visitor is evaluating it */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(4, 26, 46, 0.14);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.trust-line svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .trust-line {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    text-align: left;
  }

  .trust-line svg {
    margin-top: 0.12rem;
  }

  .license-line-text {
    align-items: flex-start;
    text-align: left;
  }
}

/* Trust block — groups the credibility line with the licensed/insured
   line under one shared divider instead of stacking two separate rules */
.trust-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(4, 26, 46, 0.14);
}

.trust-block .trust-line {
  margin: 0;
  padding-top: 0;
  border-top: none;
}

/* Mobile: left-align the whole block and its rows into one shared left
   column. Placed after the base .trust-block rule so it wins on source
   order (equal specificity) — otherwise the base align-items:center
   re-centers the shorter license row and breaks the column alignment. */
@media (max-width: 560px) {
  .trust-block {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .trust-block .trust-line {
    align-self: stretch;
  }
}

.license-line {
  color: var(--navy-soft);
}

.license-line-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.35;
  letter-spacing: normal;
}

.license-line-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Standalone use (e.g. About page, with no preceding trust-line) */
.license-line--standalone {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(4, 26, 46, 0.14);
}

/* ---------- Sticky mobile click-to-call ---------- */

.mobile-call-bar {
  display: none;
}

@media (max-width: 760px) {
  body {
    /* Match the sticky call bar's true rendered height so the footer meets it
       flush with no leftover background strip. Bar height = 0.9rem*2 vertical
       padding + 0.95rem*1.65 text line-height ≈ 53.9px; use 53px so the bar
       always fully covers the padding region (no gap) plus the safe-area inset
       for notched phones. */
    padding-bottom: calc(53px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(4, 26, 46, 0.18);
  }

  .mobile-call-bar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-call-bar:active {
    background: var(--accent-dark);
  }
}

/* ---------- See the Creed Difference (home carousel) ---------- */

.ba-carousel-wrap {
  position: relative;
}

.ba-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  margin: 2rem -0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-soft) transparent;
}

/* Featured variant — "See the Difference" sliders, sized up so the
   before/after detail actually reads (fewer tiles per view, on purpose) */
.ba-carousel-wrap--featured .ba-carousel {
  grid-auto-columns: min(90vw, 680px);
  gap: 2rem;
}

.ba-carousel-wrap--featured .ba-tile-media {
  aspect-ratio: 6 / 5;
}

.ba-carousel::-webkit-scrollbar {
  height: 8px;
}

.ba-carousel::-webkit-scrollbar-thumb {
  background: rgba(4, 26, 46, 0.25);
  border-radius: 10px;
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.carousel-btn:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 640px) {
  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

.ba-tile {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ba-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.ba-tile-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.ba-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-tile-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.ba-tile-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.ba-tile-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ba-tile-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ba-tile:hover .ba-tile-link {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Flush CTA bar — attached directly under a slider-only tile's image,
   replacing a floating/orphaned link with an intentional footer bar */
.ba-tile-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s var(--ease);
}

.ba-tile-cta-bar:hover {
  background: var(--accent);
}

.ba-tile-cta-bar span {
  transition: transform 0.25s var(--ease);
}

.ba-tile-cta-bar:hover span {
  transform: translateX(3px);
}

/* ---------- Option A: Portfolio index cards ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 780px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.portfolio-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: 1.75rem;
}

.portfolio-scope-tag {
  display: inline-block;
  background: rgba(138, 59, 66, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.portfolio-card-body h3 {
  margin-bottom: 0.6rem;
}

.portfolio-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* True interactive drag slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  --pos: 50%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-touch-callout: none;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.ba-slider-after {
  position: absolute;
  inset: 0;
}

.ba-slider-after img {
  width: 100%;
}

.ba-slider-before {
  position: absolute;
  inset: 0;
  width: 100%;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  overflow: hidden;
}

.ba-slider-before img {
  width: 100%;
  max-width: none;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(4, 26, 46, 0.2);
}

.ba-slider-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ba-slider:hover .ba-slider-handle-btn,
.ba-slider:active .ba-slider-handle-btn {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(4, 26, 46, 0.28);
}

.ba-tag {
  position: absolute;
  bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(4, 26, 46, 0.75);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  pointer-events: none;
}

.ba-tag-before {
  left: 0.7rem;
}

.ba-tag-after {
  right: 0.7rem;
  background: var(--accent);
  color: var(--white);
}

/* First-slider drag hint — nudges the handle on first view, then fades */
.ba-slider.is-hinting .ba-slider-before,
.ba-slider.is-hinting .ba-slider-handle {
  transition: left 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ba-slider-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(38px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(4, 26, 46, 0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 3;
}

.ba-slider-hint.is-visible {
  opacity: 1;
}

.ba-slider-hint.is-hidden {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ba-slider.is-hinting .ba-slider-before,
  .ba-slider.is-hinting .ba-slider-handle {
    transition: none;
  }
}

/* ---------- Keep Up with Creed (Facebook Page Plugin feed) ---------- */

.fb-intro {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

/* Two-column: live feed + permanent Follow card. Stacks on narrow screens. */
.fb-feed-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Live feed column. The plugin sits flush inside the card — no inner padding —
   so Facebook's own white chrome reads as the card itself. */
.fb-feed-embed {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-height: 480px;
  overflow: hidden;
  /* Facebook renders at most 500px wide; cap the card so the plugin always
     fills it edge-to-edge (matters in the stacked single-column layout). */
  max-width: 500px;
  margin-inline: auto;
  width: 100%;
}

/* The SDK sizes the plugin from its container element's width, so .fb-page
   must span the full card — a shrink-to-fit width makes Facebook render a
   narrow iframe with cropped posts and dead space beside it. */
.fb-feed-embed .fb-page {
  display: block;
  width: 100%;
}

/* The plugin renders an iframe up to 500px wide; keep it tidy on all screens */
.fb-feed-embed .fb-page,
.fb-feed-embed .fb-page span,
.fb-feed-embed iframe {
  max-width: 100% !important;
}

/* In-frame fallback (revealed by script.js if the plugin can't load) */
.fb-feed-fallback {
  text-align: center;
  max-width: 360px;
  margin: auto;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.fb-feed-fallback svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--navy);
}

.fb-feed-fallback p {
  margin: 0 0 1.5rem;
}

/* Permanent Follow CTA card */
.fb-follow-card {
  border-radius: var(--radius-lg);
  background: var(--mint);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.fb-follow-icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
  margin-bottom: 1rem;
}

.fb-follow-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.fb-follow-card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.fb-follow-card .btn svg {
  width: 20px;
  height: 20px;
}

/* Desktop two-column: blurb cards stretch to the embed's full height with
   their content vertically centered, and the Google row mirrors the Facebook
   row (blurb left, embed right). */
@media (min-width: 901px) {
  .fb-feed-layout {
    align-items: stretch;
  }

  .fb-follow-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .gbp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  }

  .gbp-layout .gbp-embed {
    order: 2;
  }

  /* Fill the stretched card so the map never leaves white space below it */
  .gbp-embed iframe {
    height: 100%;
    min-height: 420px;
  }
}

/* Stack before the side card gets squeezed: below ~900px the second column
   would drop under ~300px, which is too narrow to read comfortably. */
@media (max-width: 900px) {
  .fb-feed-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fb-feed-embed {
    min-height: 0;
  }
}

/* Google Business Profile section (reuses the fb-feed two-column layout) */
.gbp-heading {
  margin-bottom: 0.75rem;
}

.gbp-embed {
  min-height: 0;
  padding: 0.75rem;
}

.gbp-embed iframe {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  display: block;
}

/* The follow card is mint; on the mint section, flip the Google card to white */
.gbp-card {
  background: var(--white);
}

.gbp-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}

.testimonial-attribution {
  font-weight: 700;
  color: var(--navy-soft);
  font-size: 0.85rem;
  margin: 0;
}

.testimonials-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0 0;
}

/* Google reviews: a rotating row of cards (3 wide, 2 on tablets, 1 on
   phones) that advances one card at a time. */
.reviews-head h2 { margin-bottom: 0; }
.review-carousel { --per: 3; --gap: 1.5rem; margin-top: 2.25rem; }
.review-viewport { overflow: hidden; margin: -1rem; padding: 1rem; }
.review-track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(calc(var(--index, 0) * -1 * (100% + var(--gap)) / var(--per)));
}
.review-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; }
.review-slide:hover { transform: none; }
.review-slide .testimonial-attribution span { display: block; margin-top: 0.15rem; color: var(--text-muted); font-weight: 500; font-size: 0.78rem; }
.review-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.review-controls-center { display: flex; align-items: center; }
.review-arrow { display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 2px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.review-arrow:hover, .review-arrow:focus-visible { background: var(--accent); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(138, 59, 66, 0.28); }
.review-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.review-controls:not(.is-ready) .review-arrow { visibility: hidden; }
@media (max-width: 960px) { .review-carousel { --per: 2; } }
@media (max-width: 640px) {
  .review-carousel { --per: 1; --gap: 1rem; }
  .review-controls .btn-cta { padding: 0.7rem 1.1rem; font-size: 0.85rem; white-space: nowrap; }
}

/* Closing call to action on project stories: one white card on mint, copy
   on the left and the quote button plus phone on the right. */
.project-cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid rgba(4, 26, 46, 0.08); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--white); box-shadow: 0 14px 32px -24px rgba(4, 26, 46, 0.4); }
.project-cta-card > div:first-child { flex: 1 1 26rem; }
.project-cta-card h2 { margin-bottom: 0.5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.project-cta-card p { margin: 0; max-width: 38rem; color: var(--text-muted); font-size: 1.02rem; }
.project-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.project-cta-phone { color: var(--navy); font-size: 0.9rem; font-weight: 600; text-underline-offset: 0.2em; }
.project-cta-phone:hover { color: var(--accent); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  max-width: 640px;
}

/* Home page quote section: pitch on the left, form on the right. */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.quote-grid .form-card {
  max-width: none;
}

.quote-intro .lead {
  margin-bottom: 1.5rem;
}

.quote-points {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.quote-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-weight: 500;
}

.quote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.quote-call {
  font-weight: 700;
  color: var(--navy);
}

.quote-call a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #DDE3EA;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #B9C3CF;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus-accent);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073044' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  color: #1a6b45;
}

.form-status.error {
  display: block;
  color: #a33030;
}

/* Quote request form (Contact page) — lean into the accent green */
#quote-form {
  border-top: 4px solid var(--accent);
}

#quote-form h3 {
  position: relative;
  padding-bottom: 0.85rem;
  margin-bottom: 1.4rem;
}

#quote-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

#quote-form .form-grid > div:focus-within label {
  color: var(--accent);
}

#quote-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}

/* ---------- Cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Split (about preview) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.read-more {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* ---------- Projects strip / gallery ---------- */

.showcase-cta {
  margin-top: 2rem;
}

/* Before/after room detail */
.room-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 0.9rem;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.ba-pane .ph,
.ba-pane img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.ba-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
  margin-bottom: 0.4rem;
}

/* In-gallery interactive slider (larger than home tiles) */
.room-slider-wrap {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* ---------- Projects grid + detail modal ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card-title {
  margin-bottom: 1rem;
}

.project-card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
}

.project-card-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.1rem;
}

.project-card-open {
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
}

/* Modal / detail view */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.project-modal.is-open {
  display: block;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 46, 0.55);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s var(--ease);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--offwhite);
  max-width: 860px;
  width: min(92vw, 860px);
  max-height: 88vh;
  margin: 6vh auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: 2.5rem 2rem 3rem;
  animation: modalIn 0.3s var(--ease);
}

@media (max-width: 640px) {
  .project-modal-panel {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    padding: 4.5rem 1.25rem 3rem;
  }

  /* Service-area map modal: fill nearly the whole screen with a small,
     consistent gap on all four sides, and let the map grow to fill it. */
  .project-modal[data-service-modal] .project-modal-panel {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 14px auto;
    border-radius: var(--radius-lg);
    padding: 3.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .project-modal[data-service-modal] .project-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .project-modal[data-service-modal] .service-map-lead {
    margin-bottom: 0.9rem;
  }

  /* Map frame flexes to consume all space below the heading/intro. */
  .project-modal[data-service-modal] .service-map-frame {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .project-modal[data-service-modal] #service-map {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .project-modal[data-service-modal] .service-map-legend {
    flex: 0 0 auto;
    margin-top: 0.6rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  z-index: 2;
}

.project-modal-close:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.project-modal-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}

.cover-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.project-modal-rooms {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.project-modal-room .room-heading {
  margin-top: 0;
}

.room-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.9rem;
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- About page ---------- */

.prose p {
  max-width: 46em;
  color: var(--text);
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about-split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* The stamp rides along beside the long About copy instead of floating mid-column. */
.about-split:has(.about-stamp) {
  align-items: start;
}

.about-split-media:has(.about-stamp) {
  position: sticky;
  top: 110px;
  padding-top: 1rem;
}

.about-split-media img.about-stamp {
  border-radius: 50%;
  box-shadow: none;
  max-width: 380px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-split-media:has(.about-stamp) {
    position: static;
    padding-top: 0;
  }

  .about-split-media img.about-stamp {
    max-width: 260px;
  }

  .about-split-media {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

.role {
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Process followed by reviews CTA, stacked — About page */
.process-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.75rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}

.info-card h3 {
  margin-bottom: 1rem;
}

.info-card-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.85rem 0 1rem;
}

.info-card-heading svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.info-row svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
}

.info-row a {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Service area map (opens in a modal from Contact page) ---------- */

.service-area-cta {
  margin: 0.25rem 0 1.75rem;
}

.service-area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-area-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-area-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-map-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42em;
  margin-bottom: 1.75rem;
}

.service-map-lead a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.service-map-lead a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.service-map-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--mint);
  border: 1px solid rgba(4, 26, 46, 0.08);
}

/* Real basemap (Leaflet) container. */
#service-map {
  width: 100%;
  height: 440px;
  background: var(--mint);
}

@media (max-width: 640px) {
  #service-map {
    height: 320px;
  }
}

/* Quiet the Leaflet chrome to match the site. */
#service-map.leaflet-container {
  font-family: inherit;
}

#service-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #7F8B99;
}

#service-map .leaflet-control-attribution a {
  color: var(--navy);
}

#service-map .leaflet-bar a {
  color: var(--navy);
}

/* Restrained city labels drawn over the map. */
.service-city-label {
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
  text-shadow:
    0 0 3px #FAFBFC, 0 0 3px #FAFBFC,
    0 0 3px #FAFBFC, 0 0 3px #FAFBFC;
  transform: translate(9px, -6px);
  pointer-events: none;
}

.service-city-label.is-hub {
  font-size: 13px;
}

.service-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-map-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(14, 45, 74, 0.12);
  border: 1px solid rgba(14, 45, 74, 0.35);
  flex-shrink: 0;
}

.service-map-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14, 45, 74, 0.5);
  border: 1px solid #ffffff;
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(4, 26, 46, 0.08);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Case study page (full-interior-transformation.html) ---------- */

.cs-hero {
  padding: 2.75rem 0 2.25rem;
}

.cs-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.cs-breadcrumb {
  margin-bottom: 1.25rem;
}

.cs-breadcrumb a {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--navy-soft);
  transition: color 0.2s var(--ease);
}

.cs-breadcrumb a:hover {
  color: var(--accent);
}

.cs-hero-lead {
  font-size: 1.1rem;
  max-width: 40em;
  margin-bottom: 0;
}

/* Two-column hero: text beside a contained image frame that flatters
   both portrait and landscape lead images (no short-banner crop). */
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cs-hero-text {
  min-width: 0;
}

.cs-hero-media {
  margin: 0;
  min-width: 0;
}

.cs-hero-media img {
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cs-hero-media figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 460px;
}

@media (min-width: 820px) {
  .cs-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.75rem;
    margin-top: 1.75rem;
  }

  .cs-hero-media img,
  .cs-hero-media figcaption {
    max-width: none;
  }

  .cs-hero-media img {
    aspect-ratio: 4 / 5;
    max-height: 460px;
  }
}

/* At a Glance stat card */
.cs-glance-section {
  padding: 3.5rem 0;
}

.cs-glance {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem;
}

.cs-glance-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cs-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
}

.cs-glance-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.cs-glance-item dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}

.cs-glance-item--wide {
  grid-column: 1 / -1;
}

.cs-glance-item--wide dd {
  font-size: 0.97rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .cs-glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Narrative sections */
.cs-narrative .prose p {
  max-width: 46em;
}

/* Story section — sticky "In This Story" nav + challenge + room-by-room */
.cs-story-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.cs-story-nav {
  position: sticky;
  top: 6rem;
}

.cs-story-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.cs-story-nav-list {
  position: relative;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-left: 2px solid rgba(4, 26, 46, 0.1);
}

/* Accent progress fill that descends down the TOC track as the reader
   scrolls through the story sections. Height is driven from JS via the
   --toc-progress custom property (see script.js scroll-spy). */
.cs-story-nav-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: var(--toc-progress, 0px);
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.35s var(--ease);
}

.cs-story-nav-list a {
  position: relative;
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cs-story-nav-list a:hover,
.cs-story-nav-list a:focus-visible {
  color: var(--navy);
  border-left-color: var(--accent);
}

/* Active section — highlighted as the scroll-spy "ticks down" the list */
.cs-story-nav-list a.is-active {
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

/* Filled tick marker sitting on the track next to the active item */
.cs-story-nav-list a.is-active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--white);
}

/* Landing offset so clicked sections clear the sticky site nav */
#at-a-glance,
.cs-story-content h2[id],
.cs-room {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .cs-story-nav-list::before {
    transition: none;
  }
}

.cs-story-nav-cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

.cs-story-nav-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.6rem 0 0;
}

@media (max-width: 900px) {
  .cs-story-grid {
    grid-template-columns: 1fr;
  }

  .cs-story-nav {
    position: static;
    margin-bottom: 2.5rem;
  }

  .cs-story-nav-list {
    columns: 2;
  }

  /* The single-track progress fill/marker doesn't map onto the stacked
     2-column TOC — keep just the accent text/border highlight there. */
  .cs-story-nav-list::before {
    display: none;
  }

  .cs-story-nav-list a.is-active::before {
    display: none;
  }
}

/* Inline stat row (replaces a separate full-width band) */
.cs-story-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(4, 26, 46, 0.12);
  display: flex;
  flex-wrap: wrap;
}

.cs-story-stats li {
  padding: 0 2rem;
  border-left: 1px solid rgba(4, 26, 46, 0.12);
}

.cs-story-stats li:first-child {
  padding-left: 0;
  border-left: 0;
}

.cs-story-stats strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cs-story-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .cs-story-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .cs-story-stats li {
    padding: 0;
    border: 0;
  }
}

.cs-story-work-eyebrow {
  margin-top: 3rem;
}

/* Room-by-room list */
.cs-rooms {
  display: grid;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.cs-room .room-heading {
  margin-top: 0;
}

.room-num {
  color: var(--accent);
  margin-right: 0.6em;
}

/* Scope of work grid */
.cs-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .cs-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cs-scope-grid {
    grid-template-columns: 1fr;
  }
}

.cs-scope-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cs-scope-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cs-scope-item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
}

.cs-scope-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cs-scope-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Timeline */
.cs-timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: phase;
  position: relative;
}

.cs-timeline-phase {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(4, 26, 46, 0.06);
  padding: 1.9rem 1.75rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cs-timeline-phase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Connector arrows between phases (desktop) */
.cs-timeline-phase + .cs-timeline-phase::before {
  content: "\2192";
  position: absolute;
  left: -1.32rem;
  top: 2.2rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.cs-timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.cs-timeline-phase h3 {
  margin-bottom: 0.4rem;
}

.cs-timeline-phase p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

@media (max-width: 900px) {
  .cs-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-timeline-phase + .cs-timeline-phase::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .cs-timeline {
    grid-template-columns: 1fr;
  }

  .cs-timeline-phase + .cs-timeline-phase::before {
    content: "\2193";
    left: 1.75rem;
    top: -1.55rem;
    display: block;
  }
}

.cs-timeline-link {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

.cs-timeline-link a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cs-timeline-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Editorial pull quote */
.cs-quote-section {
  background: var(--mint);
  padding: 4rem 0;
}

.cs-quote {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  border: 0;
  padding: 0;
}

.cs-quote p {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  position: relative;
}

.cs-quote cite {
  display: block;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Inline insight callouts — interspersed between rooms in "The Work" */
.cs-insight-callout {
  margin-top: 1.5rem;
  background: rgba(138, 59, 66, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
}

.cs-insight-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cs-insight-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cs-insight-callout h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.cs-insight-callout p:last-child {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Closing CTA */
.cs-cta {
  text-align: center;
}

.cs-cta .lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-lockup img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-slogan {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
}

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Match the privacy link beside it: same line, weight and color. */
.footer-meta .measurement-choice {
  padding: 0.5rem 0;
  line-height: inherit;
  color: var(--white);
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Small, proportional photo previews open a full comparison in a modal dialog. */
.work-section { padding: 3rem 0; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.work-heading h2 { margin-bottom: 0; }
.work-intro { margin: .8rem 0 1.5rem; max-width: 46rem; color: var(--text-muted); }
.work-all-link { font-size: .9rem; font-weight: 700; text-underline-offset: .2em; }
.work-gallery-link { margin-top: 1.5rem; }
.comparison-gallery { margin-top: 1.5rem; scroll-margin-top: 6rem; }
.comparison-gallery [hidden] { display: none !important; }
.comparison-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0 1rem; }
.comparison-gallery-header h2 { margin: 0; font-size: 1.4rem; }
.comparison-gallery-project { margin: 0 0 .3rem; font-size: .8rem; color: var(--accent); font-weight: 700; }
.comparison-count { white-space: nowrap; color: var(--text-muted); font-weight: 700; }
.comparison-stage { --photo-ratio: .75; width: min(100%, calc(580px * var(--photo-ratio))); aspect-ratio: var(--photo-ratio); margin-inline: auto; background: var(--offwhite); border-radius: 6px; overflow: hidden; }
.comparison-stage .ba-slider img, .room-slider-wrap .ba-slider img { object-fit: contain; }
.comparison-stage .ba-slider-before, .comparison-stage .ba-slider-after,
.room-slider-wrap .ba-slider-before, .room-slider-wrap .ba-slider-after { background: var(--offwhite); }
.comparison-gallery-footer { padding: 1rem 0 0; }
.comparison-story, .comparison-cost-story { display: inline-block; font-size: .9rem; font-weight: 700; margin-top: .5rem; text-underline-offset: .2em; }
.ba-slider:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.ba-slider:focus-visible .ba-slider-handle-btn { outline: 3px solid var(--navy); outline-offset: 3px; }
.comparison-gallery .ba-tag { top: .7rem; bottom: auto; }
.comparison-gallery .ba-tag-before { left: calc(var(--label-inset, 0%) + .7rem); }
.comparison-gallery .ba-tag-after { right: calc(var(--label-inset, 0%) + .7rem); }
.comparison-gallery [data-mixed-orientation="true"] .ba-tag { padding-inline: .35rem; letter-spacing: .03em; }
.comparison-category-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.comparison-category-nav button { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border: 1px solid #C9D2DD; border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.comparison-category-nav button:hover, .comparison-category-nav button[aria-pressed="true"] { color: white; background: var(--navy); }
.comparison-preview-grid { columns: 3; column-gap: 1.25rem; }
.comparison-preview { display: block; width: 100%; margin: 0 0 1.25rem; padding: .5rem; border: 1px solid #C9D2DD; border-radius: 10px; color: var(--navy); background: var(--white); box-shadow: 0 2px 6px #041A2E08; font: inherit; text-align: left; cursor: pointer; break-inside: avoid; }
.comparison-preview:hover { border-color: var(--accent); box-shadow: 0 3px 10px #041A2E14; }
.comparison-preview:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.comparison-preview-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3px; border-radius: 6px; overflow: hidden; }
/* Same 2:1 frame for every pair: two square, center-cropped cells. */
.comparison-preview-pane { display: block; min-width: 0; position: relative; align-self: start; overflow: hidden; aspect-ratio: 1 / 1; }
.comparison-preview-pane img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comparison-preview-label { position: absolute; top: .4rem; left: .4rem; padding: .1rem .35rem; border-radius: 3px; background: var(--navy); color: white; text-transform: uppercase; font-size: .6rem; font-weight: 800; letter-spacing: .03em; }
.comparison-preview-label--after { background: var(--accent); }
.projects-gallery-link { margin: 1rem 0 2rem; color: var(--text-muted); scroll-margin-top: 6rem; }
.projects-gallery-link a { font-weight: 700; text-underline-offset: .2em; }
/* Project stories: three cards, each opening with the same square
   before/after pair used on the home page. */
.project-story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 780px; margin: 2rem auto 0; }
.project-story-card { min-width: 0; }
.project-story-card-link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; height: 100%; overflow: hidden; border: 1px solid rgba(4, 26, 46, 0.08); border-radius: 14px; background: var(--white); box-shadow: 0 14px 32px -22px rgba(4, 26, 46, 0.35); color: var(--navy); text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.project-story-card-link:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(4, 26, 46, 0.45); }
/* Project cards stack the pair: before on top, after below. */
.project-story-image.feature-media-pair { align-self: stretch; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; border-radius: 0; }
.project-story-image .feature-photo { aspect-ratio: 16 / 10; height: 100%; }
.project-story-image .feature-photo img { transition: transform 0.6s var(--ease); }
.project-story-card-link:hover .feature-photo img { transform: scale(1.04); }
.project-story-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.75rem; }
.project-story-meta { margin-bottom: 0.6rem; color: var(--accent); font-family: var(--font-slab); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.project-story-card h2 { margin-bottom: 0.6rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
.project-story-card-copy > p { margin-bottom: 1.1rem; color: var(--text-muted); font-size: 0.95rem; }
.project-story-card-cta { align-self: flex-start; padding-bottom: 2px; border-bottom: 2px solid var(--accent); color: var(--accent); font-size: 0.9rem; font-weight: 700; }
.project-story-card-link:hover h2 { color: var(--accent-dark); }
.project-story-card-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) {
  .project-story-card-link { grid-template-columns: minmax(0, 1fr); }
  .project-story-image .feature-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .project-story-grid { gap: 1.25rem; }
}
.room-slider-wrap { width: min(100%, calc(580px * var(--photo-ratio, 1.333333))); aspect-ratio: var(--photo-ratio, 1.333333); margin-inline: auto; background: var(--offwhite); }
.story-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-top: 2rem; }
.story-preview img { width: 100%; max-height: 370px; object-fit: contain; border-radius: var(--radius); }
.portfolio-scope-tag { color: var(--navy); }
/* The unlisted editorial draft is visibly unfinished, with neutral placeholders. */
.draft-container { max-width: 1000px; }
.draft-intro { padding: 3rem 0 0; }
.draft-notice { padding: 1rem 1.25rem; margin-bottom: 2rem; background: var(--mint); border-left: 4px solid var(--accent); border-radius: 4px; }
.draft-notice p { margin: .4rem 0 0; font-size: .9rem; }
.draft-result { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; margin: 2rem 0 0; }
.draft-photo { min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; border: 1px dashed #8D99A8; border-radius: 6px; text-align: center; background: var(--mint); }
.draft-photo span { font-weight: 700; }
.draft-photo p { margin: .7rem 0 0; max-width: 24rem; font-size: .9rem; }
.draft-cost h2 { font-size: 1.65rem; }
.draft-body section { padding: 2.5rem 0; border-bottom: 1px solid #C9D2DD; }
.draft-body section:last-child { border: 0; }
.draft-body h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.draft-body p { max-width: 48rem; }
.draft-review { padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text-muted); font-size: .9rem; }
.draft-photo-before { min-height: 180px; margin-block: 1.5rem; }
.draft-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.draft-categories > div { padding: 1rem; background: var(--mint); border-radius: 4px; }
.draft-categories dt { font-weight: 700; margin-bottom: .4rem; }
.draft-categories dd { margin: 0; font-size: .9rem; }
.draft-endnote { font-size: .8rem; color: var(--text-muted); margin-top: 1.5rem; }
@media (max-width: 900px) {
  .comparison-preview-grid { columns: 2; }
}
@media (max-width: 640px) {
  .work-section { padding: 2rem 0; }
  .work-heading { display: block; }
  .work-all-link { display: none; }
  .comparison-gallery-header h2 { font-size: 1.2rem; }
  .comparison-preview-grid { column-gap: .75rem; }
  .comparison-preview { margin-bottom: 1rem; }
  .comparison-preview-label { left: .2rem; top: .3rem; font-size: .55rem; padding-inline: .2rem; }
  .story-preview, .draft-result, .draft-categories { grid-template-columns: 1fr; }
  .draft-photo { min-height: 220px; }
  .draft-intro { padding-top: 2rem; }
}
@media (max-width: 359px) {
  .comparison-preview-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The stage stays reserved while the selected photos load or fail. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gallery-status { margin: .8rem 0 0; font-size: .85rem; color: var(--text-muted); }
.gallery-status:empty { display: none; }
body.comparison-open { overflow: hidden; }
.comparison-dialog { --stage-height: min(58dvh, 560px); width: min(900px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem 1.25rem; border: 0; border-radius: 12px; color: var(--navy); background: var(--white); box-shadow: 0 20px 80px #0006; overscroll-behavior: contain; }
.comparison-dialog::backdrop { background: rgb(7 48 68 / 80%); }
.comparison-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comparison-count { font-size: .8rem; font-variant-numeric: tabular-nums; }
.comparison-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 8px; color: var(--navy); background: transparent; cursor: pointer; }
.comparison-close svg { width: 20px; height: 20px; }
.comparison-close:hover { background: var(--mint); }
.comparison-dialog .comparison-stage { display: grid; place-items: center; position: relative; width: 100%; height: var(--stage-height); aspect-ratio: auto; background: var(--offwhite); }
.comparison-dialog .comparison-stage .ba-slider { width: min(100%, calc(var(--stage-height) * var(--photo-ratio))); height: auto; aspect-ratio: var(--photo-ratio); }
.comparison-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; padding: 1.5rem; background: linear-gradient(120deg, var(--offwhite), #EEF1F5); }
.comparison-placeholder p { max-width: 24rem; margin: 0; color: var(--text-muted); text-align: center; font-size: .85rem; }
.comparison-loading-mark { width: 22px; height: 22px; border: 2px solid #D6DDE6; border-top-color: var(--accent); border-radius: 50%; animation: comparison-loading 1s linear infinite; }
.comparison-stage[data-state="error"] .comparison-loading-mark { display: none; }
.comparison-dialog .comparison-gallery-footer { padding-top: .5rem; }
.comparison-controls { display: flex; justify-content: flex-end; gap: .5rem; }
.comparison-nav-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid #C9D2DD; border-radius: 8px; background: var(--white); color: var(--navy); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.comparison-nav-button:hover { border-color: var(--accent); background: var(--mint); }
.comparison-close:focus-visible, .comparison-nav-button:focus-visible, .feature-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comparison-related { min-height: 2rem; }
.comparison-related .comparison-story { margin-top: .45rem; font-size: .8rem; }
.comparison-retry { margin: 0; }
@keyframes comparison-loading { to { transform: rotate(360deg); } }

/* Our Work: one light card. Every slide is the same 2:1 before/after frame of
   two square, center-cropped photos (25% off a landscape's width or a
   portrait's height); tune a crop with an inline object-position on its img.
   Only the next requested feature loads. */
.work-heading .work-all-link { color: var(--navy); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.work-heading .work-all-link:hover { color: var(--accent); }
.work-carousel { display: flex; flex-direction: column; margin-top: 1.5rem; padding: 1.25rem; border: 1px solid rgba(4, 26, 46, 0.08); border-radius: 14px; background: var(--white); color: var(--navy); box-shadow: 0 16px 36px -22px rgba(4, 26, 46, 0.35); }
.work-carousel [hidden] { display: none !important; }
.feature-viewport { position: relative; overflow: hidden; border-radius: 10px; }
.feature-viewport[data-sized] { height: var(--feature-height); }
.feature-viewport[data-sized]:not([data-measuring]) .feature-slide { position: absolute; inset: 0; width: 100%; }
.feature-viewport[data-measuring] .feature-slide { position: relative; inset: auto; height: auto; }
.feature-slide { background: var(--white); }
.feature-slide-link { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; color: inherit; text-decoration: none; }
.feature-media { display: block; width: 100%; border-radius: 10px; overflow: hidden; }
.feature-media img { display: block; width: 100%; height: auto; }
.feature-media-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; background: var(--white); }
.feature-photo { display: block; position: relative; min-width: 0; overflow: hidden; aspect-ratio: 1 / 1; }
.feature-media-pair .feature-photo img { height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature-slide-link:hover .feature-photo img { transform: scale(1.04); }
.feature-photo .comparison-preview-label { top: .7rem; left: .7rem; font-size: .65rem; padding: .25rem .5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.feature-copy { padding: 1rem 1rem 1rem 0; }
.feature-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--accent); font-family: var(--font-slab); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.feature-kicker::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.feature-copy h3 { margin-bottom: .75rem; color: var(--navy); font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.15; }
.feature-copy p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: .98rem; }
.feature-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.2rem; border: 1.5px solid rgba(4, 26, 46, 0.35); border-radius: 999px; color: var(--navy); font-size: .85rem; font-weight: 700; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.feature-slide-link:hover .feature-cta { background: var(--accent); border-color: var(--accent); color: var(--white); }
.feature-slide-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.feature-toolbar { order: 2; display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(4, 26, 46, 0.1); }
.feature-count { order: 0; min-width: 3rem; color: var(--text-muted); font-family: var(--font-slab); font-size: .85rem; font-variant-numeric: tabular-nums; }
.feature-dots { order: 1; display: flex; gap: .4rem; margin-right: auto; }
.feature-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(4, 26, 46, 0.18); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.feature-dots span.is-active { width: 24px; background: var(--accent); }
[data-feature-prev] { order: 3; }
[data-feature-next] { order: 4; }
.feature-control { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid #C9D2DD; border-radius: 999px; background: transparent; color: var(--navy); font: inherit; font-size: .9rem; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease); }
.feature-control:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
@media (max-width: 760px) {
  .work-heading { flex-wrap: wrap; }
  .work-carousel { padding: .75rem; border-radius: 12px; }
  .feature-slide-link { grid-template-columns: 1fr; gap: .25rem; }
  .feature-copy { padding: 1rem .25rem .25rem; }
  .feature-copy p { margin-bottom: 1.1rem; }
  .feature-toolbar { margin-top: .75rem; padding-top: .75rem; }
}
/* Home page copy of the viewer: only the dialog is used. */
.comparison-gallery--headless { margin: 0; }
.comparison-gallery--headless .comparison-overview,
.comparison-gallery--headless .gallery-status { display: none; }

/* Gallery viewer: room title up top, a navy stage so letterboxing looks
   intentional, round arrows on either side of the photo, and the story link
   as a red outline pill. */
.comparison-dialog { width: min(980px, calc(100% - 2rem)); padding: 1.25rem 1.5rem 1.4rem; border-radius: 16px; }
.comparison-dialog::backdrop { background: rgb(4 26 46 / 82%); backdrop-filter: blur(3px); }
.comparison-dialog-top { align-items: flex-start; margin-bottom: 0.9rem; }
.comparison-heading { min-width: 0; }
.comparison-kicker { display: block; margin-bottom: 0.2rem; color: var(--accent); font-family: var(--font-slab); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.comparison-kicker .comparison-count { color: inherit; font-size: inherit; font-weight: inherit; }
.comparison-room { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; line-height: 1.15; }
.comparison-close { flex-shrink: 0; border: 1px solid #C9D2DD; border-radius: 999px; }
.comparison-close:hover { border-color: var(--accent); background: var(--accent); color: var(--white); }
.comparison-body { position: relative; }
.comparison-dialog .comparison-stage { border-radius: 12px; background: var(--navy); }
.comparison-dialog .comparison-placeholder { color: rgba(255, 255, 255, 0.75); }
.comparison-arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 1.1rem; box-shadow: 0 6px 18px rgba(4, 26, 46, 0.35); cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.comparison-arrow:hover { background: var(--accent); color: var(--white); transform: scale(1.06); }
.comparison-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.comparison-arrow--prev { left: 0.9rem; }
.comparison-arrow--next { right: 0.9rem; }
.comparison-dialog .comparison-gallery-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-top: 0.9rem; }
.comparison-hint { margin: 0; color: var(--text-muted); font-size: 0.8rem; }
.comparison-dialog .comparison-related { min-height: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.comparison-dialog .comparison-related a { margin: 0; padding: 0.5rem 1rem; border: 2px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.comparison-dialog .comparison-related a:hover { background: var(--accent); color: var(--white); }
.comparison-dialog .comparison-related a[hidden] { display: none; }

@media (max-width: 640px) {
  .comparison-dialog { --stage-height: min(52dvh, 440px); width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: .75rem .85rem 1rem; }
  .comparison-arrow { width: 40px; height: 40px; margin-top: -20px; }
  .comparison-arrow--prev { left: .5rem; }
  .comparison-arrow--next { right: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .comparison-loading-mark { animation: none; }
}
@media (max-height: 520px) {
  .comparison-dialog { --stage-height: max(100px, calc(100dvh - 290px)); }
}

/* Privacy controls share the site's existing colors and typography. */
.measurement-choice { background: transparent; color: inherit; font: inherit; text-decoration: underline; border: 0; padding: .5rem 0; cursor: pointer; }
.measurement-choice:disabled { cursor: default; opacity: .8; }
.measurement-notice { position: fixed; z-index: 200; left: .75rem; bottom: .75rem; width: min(23rem, calc(100% - 1.5rem)); padding: .65rem .85rem .4rem; background: #FAFBFC; color: #041A2E; border: 1px solid #D3DBE4; border-radius: .5rem; box-shadow: 0 2px 10px #041A2E12; }
.measurement-notice[hidden] { display: none; }
.measurement-notice p { margin: 0; font-size: .75rem; line-height: 1.5; }
.measurement-notice a { color: #041A2E; text-decoration: underline; }
.measurement-notice > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .85rem; }
.measurement-notice button { min-height: 44px; font: inherit; font-size: .75rem; background: transparent; color: #041A2E; border: 0; border-radius: .2rem; padding: .3rem 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.measurement-notice button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.privacy-content .container { max-width: 850px; }
.privacy-content h2 { margin-top: 2rem; }
.privacy-content p { line-height: 1.75; }
.privacy-content a { text-decoration: underline; }
@media (max-width: 767px) { .measurement-notice { bottom: 4.5rem; max-height: 55vh; overflow: auto; } }
