  :root {
    --ground: #EFF1EC;
    --card: #FDFDFB;
    --mist: #E2E7E0;
    --ink: #1C2A28;
    --ink-soft: #45524D;
    --basin: #1E3D38;
    --basin-deep: #142B27;
    --brass: #A98548;
    --brass-deep: #8A6B36;
    --stone: #77837C;
    --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Avenir Next", "Avenir", "Segoe UI", Helvetica, Arial, sans-serif;
  }

  html { scroll-behavior: smooth; }
  /* Every in-page link lands under the sticky header without this. */
  section[id], div[id] { scroll-margin-top: 96px; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Stop iOS inflating body text and throwing the proportions out. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
  }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

  .eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-deep);
  }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ground) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--stone) 30%, transparent);
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 18px 24px;
    max-width: 1120px;
    margin: 0 auto;
  }
  .logo { display: flex; align-items: baseline; gap: 10px; }
  .logo .mark {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: 0.01em;
    color: var(--basin);
  }
  .logo .mark em { font-style: italic; color: var(--brass-deep); }
  .nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
  .nav-links a:hover { color: var(--basin); }
  .nav-phone { font-weight: 600; color: var(--basin); white-space: nowrap; }

  .btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  }
  .btn-primary { background: var(--basin); color: #F4F6F2; }
  .btn-primary:hover { background: var(--basin-deep); }
  .btn-ghost { border-color: color-mix(in srgb, var(--basin) 45%, transparent); color: var(--basin); }
  .btn-ghost:hover { border-color: var(--basin); background: color-mix(in srgb, var(--basin) 6%, transparent); }
  .btn-brass { background: var(--brass); color: #FFFDF7; }
  .btn-brass:hover { background: var(--brass-deep); }
  .nav .btn { padding: 10px 20px; }

  /* ---------- Hero ---------- */
  .hero { padding-block: 84px 96px; }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(42px, 5.4vw, 66px);
    color: var(--basin-deep);
    margin: 20px 0 24px;
  }
  .hero h1 em { font-style: italic; color: var(--brass-deep); }
  .hero .lede {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 36px;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-note { margin-top: 22px; font-size: 14px; color: var(--stone); }

  /* Hero photograph. A real finished bathroom, not decoration: for a
     remodeler the work is the argument, and on a phone this is the only
     thing above the fold. */
  .hero-photo { margin: 0; }
  .hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 24px 60px -24px rgba(20, 43, 39, 0.55);
  }

  /* ---------- Trust strip ---------- */
  .trust {
    background: var(--basin);
    color: #E8EDE7;
  }
  .trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    /* padding-block, never the shorthand: this element is also a .wrap, and a
       shorthand padding here resets .wrap's horizontal 24px to zero, putting
       the text hard against the screen edge. */
    padding-block: 34px;
  }
  .trust-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    color: #F4F6F2;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
  }
  .trust-item span { font-size: 14px; color: #AEC2B8; }

  /* Shown only on phones, where the grid is collapsed to a first few. */
  .gallery-more { display: none; margin: 22px auto 0; }

  /* ---------- Sections ---------- */
  section { padding: 88px 0; }
  .section-head { max-width: 62ch; margin-bottom: 48px; }
  .section-head h2 {
    font-size: clamp(30px, 3.6vw, 42px);
    color: var(--basin-deep);
    margin: 14px 0 14px;
  }
  .section-head p { color: var(--ink-soft); }

  /* Services */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .service {
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--stone) 24%, transparent);
    border-radius: 5px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .service h3 { font-size: 23px; color: var(--basin); }
  .service p { font-size: 15px; color: var(--ink-soft); }
  .service .glyph {
    width: 40px; height: 40px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--basin) 10%, transparent);
    color: var(--basin);
    display: grid;
    place-items: center;
  }
  .service.highlight {
    background: var(--basin);
    border-color: var(--basin);
    justify-content: center;
    gap: 16px;
  }
  .service.highlight h3 { color: #F4F6F2; }
  .service.highlight p { color: #AEC2B8; }

  /* Process */
  .process { background: var(--mist); }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
  }
  .step {
    background: var(--card);
    border-radius: 5px;
    padding: 28px 26px;
    border-top: 3px solid var(--brass);
  }
  .step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--serif);
    font-size: 34px;
    color: var(--brass-deep);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
  }
  .step h3 { font-size: 20px; color: var(--basin); margin-bottom: 8px; }
  .step p { font-size: 14.5px; color: var(--ink-soft); }

  /* Gallery */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .project {
    /* <figure> carries margin: 1em 40px from the browser's own stylesheet.
       Unreset, it shrinks every gallery photo by 80px and no rule of ours
       explains where the space went. */
    margin: 0;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--stone) 24%, transparent);
  }
  .play-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 43, 39, 0.75);
    color: #F4F6F2;
    display: grid;
    place-items: center;
    font-size: 15px;
    padding-left: 3px;
    pointer-events: none;
  }
  .project .photo {
    display: block;
    width: 100%;
    /* height:auto is load-bearing. The img height attribute is a
       presentational hint that maps to CSS height; without this it overrides
       aspect-ratio and the photo renders at its full 900px. */
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--mist);
    cursor: zoom-in;
  }
  .project .photo:hover { opacity: 0.92; }

  /* Lightbox */
  .lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(94vw, 1200px);
    outline: none;
  }
  .lightbox::backdrop { background: rgba(15, 26, 23, 0.88); }
  .lightbox-inner { display: grid; gap: 0; }
  .lightbox img, .lightbox video {
    display: block;
    max-width: min(94vw, 1200px);
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
  }
  .lightbox img[hidden], .lightbox video[hidden] { display: none; }
  .lightbox-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card);
    border-radius: 0 0 5px 5px;
    padding: 14px 18px;
  }
  .lightbox-bar .cap { margin-right: auto; }
  .lightbox-bar .cap strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--basin); }
  .lightbox-bar .cap span { font-size: 13.5px; color: var(--stone); }
  .lightbox-bar button {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--basin);
    background: none;
    border: 1px solid color-mix(in srgb, var(--basin) 40%, transparent);
    border-radius: 3px;
    padding: 8px 14px;
    cursor: pointer;
  }
  .lightbox-bar button:hover { background: color-mix(in srgb, var(--basin) 8%, transparent); }
  .project figcaption { padding: 16px 18px 18px; }
  .project figcaption strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--basin); }
  .project figcaption span { font-size: 13.5px; color: var(--stone); }

  /* Testimonials */
  .reviews { background: var(--basin-deep); }
  .reviews .eyebrow { color: var(--brass); }
  .reviews h2 { color: #F4F6F2; }
  .reviews .section-head p { color: #AEC2B8; }
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .quote {
    background: color-mix(in srgb, #F4F6F2 6%, transparent);
    border: 1px solid color-mix(in srgb, #F4F6F2 14%, transparent);
    border-radius: 5px;
    padding: 30px 28px;
  }
  .quote .stars { color: var(--brass); letter-spacing: 3px; font-size: 14px; margin-bottom: 14px; }
  .quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: #E8EDE7; }
  .quote cite { font-style: normal; font-size: 14px; color: #AEC2B8; }

  /* Estimate CTA */
  .estimate-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
  .estimate-info h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--basin-deep); margin: 14px 0 18px; }
  .estimate-info p { color: var(--ink-soft); max-width: 44ch; margin-bottom: 28px; }
  .contact-lines { display: grid; gap: 14px; font-size: 15.5px; }
  .contact-lines div strong { color: var(--basin); display: inline-block; min-width: 110px; font-weight: 600; }

  form.estimate {
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--stone) 24%, transparent);
    border-radius: 6px;
    padding: 34px 32px;
    display: grid;
    gap: 18px;
  }
  .field { display: grid; gap: 7px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .field label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  .field input, .field select, .field textarea {
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    background: var(--ground);
    border: 1px solid color-mix(in srgb, var(--stone) 40%, transparent);
    border-radius: 3px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .field textarea { resize: vertical; min-height: 96px; }
  form.estimate .btn { width: 100%; }
  form.estimate .fine { font-size: 13px; color: var(--stone); text-align: center; }
  form.estimate .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Footer */
  footer {
    background: var(--basin-deep);
    color: #AEC2B8;
    padding: 56px 0 32px;
    font-size: 14.5px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid color-mix(in srgb, #F4F6F2 12%, transparent);
  }
  footer .mark { font-family: var(--serif); font-size: 22px; color: #F4F6F2; }
  footer .mark em { font-style: italic; color: var(--brass); }
  footer h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #F4F6F2; margin: 0 0 14px; font-weight: 600; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  footer a:hover { color: #F4F6F2; }
  .footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: #7E958B; }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { padding-block: 56px 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    /* Photo first on a phone: it does the persuading, the headline explains. */
    .hero-photo { order: -1; }
    .hero-photo img { max-height: 46vh; object-fit: cover; }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .steps, .gallery-grid, .quotes { grid-template-columns: 1fr 1fr; }
    .estimate-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 580px) {
    .services-grid, .steps, .quotes, .field-row, .footer-grid { grid-template-columns: 1fr; }
    /* One up, full width. Two columns shrank each photo to about 165px,
       where a bathroom is unreadable and the caption outweighs the picture.
       Length is controlled by showing fewer of them, not smaller ones. */
    /* Aligned to .wrap like every other block. Breaking the grid out to the
       screen edge left the photos 16px proud of the text above them, which
       reads as a mistake rather than a design. */
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .project { border-radius: 4px; }
    .project figcaption { padding: 12px 14px 14px; }
    .project figcaption strong { font-size: 17px; }
    /* Four to begin with -- two finished rooms and both videos, which is why
       the videos sit third and fourth -- with the rest a tap away. */
    .gallery-grid.is-collapsed .project:nth-child(n+5) { display: none; }
    .gallery-grid.is-collapsed + .gallery-more { display: block; }
    .gallery-more { width: 100%; }
    /* Two columns survive here, so tighten the gap rather than the padding --
       "Bonded & insured · Lic. #000000" needs the room on a narrow phone. */
    .trust-row { gap: 22px 20px; }
    section { padding: 64px 0; }
    .nav { gap: 14px; padding: 14px 24px; }
    /* At 24px the wordmark wrapped to two lines, making the sticky header
       114px tall on a phone -- a seventh of the screen, permanently. */
    .logo .mark { font-size: 20px; }
    .nav-phone { font-size: 15px; }
    section[id], div[id] { scroll-margin-top: 74px; }
    /* Keep the tap-to-call number on the smallest screens and drop the nav's
       estimate button instead: the hero repeats that call to action a few
       hundred pixels below, but a phone number has nowhere else to live. */
    .nav .btn-brass { display: none; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-grid > * { animation: rise 640ms ease both; }
    .hero-grid > *:nth-child(2) { animation-delay: 120ms; }
    @keyframes rise {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: none; }
    }
  }

/* Form success banner */
.form-success {
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--stone) 24%, transparent);
  border-left: 3px solid var(--brass);
  border-radius: 5px;
  padding: 20px 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.form-success strong { color: var(--basin); }

/* Form error banner */
.form-error {
  background: color-mix(in srgb, #9C4532 7%, var(--card));
  border: 1px solid color-mix(in srgb, #9C4532 35%, transparent);
  border-left: 3px solid #9C4532;
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.form-error strong { color: #7E3626; }
