@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #011e39;
  --gold: #bf7629;
  --cream: #f5f1e9;
  --white: #ffffff;
  --text: #17202a;
  --muted: #68717b;
  --line: #d9dde1;
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.standalone-contact {
  min-height: calc(100vh - 78px);
  padding-top: clamp(48px, 7vw, 88px);
}

.contact-page-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.contact-page-heading h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.04;
}

.home-contact-cta a:not(.button) {
  color: inherit;
  font-weight: 700;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1, 30, 57, 0.08);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--navy);
}

.brand small {
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  padding: 72px 0 84px;
  background: linear-gradient(135deg, var(--cream), #ffffff 62%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  color: var(--navy);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  color: var(--navy);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.hero-text {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--gold);
  color: var(--white);
}

.button-secondary {
  color: var(--navy);
  border: 1px solid var(--navy);
}

.hero-image {
  min-height: 560px;
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(1, 30, 57, 0.18);
}

.placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(rgba(1, 30, 57, 0.52), rgba(1, 30, 57, 0.52)),
    linear-gradient(135deg, #7f8c99, #c8cdd2);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.trust-strip {
  background: var(--navy);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.trust-grid>div {
  padding: 28px;
  background: var(--navy);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.section {
  padding: 108px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-heading>p:last-child {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: block;
  padding: 32px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-number {
  margin-bottom: 48px;
  color: var(--gold);
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
}

.section-dark {
  background: var(--navy);
}

.section-heading.light h2,
.section-heading.light p {
  color: var(--white);
}

.section-heading.light>p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.project-large {
  grid-column: 1 / -1;
}

.project-image {
  min-height: 330px;
}

.project-large .project-image {
  min-height: 610px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.about-copy {
  font-size: 1.1rem;
  color: var(--muted);
}

.about-copy p:first-child {
  margin-top: 0;
}

.contact-section {
  padding-top: 20px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 30px;
  background: var(--cream);
}

.contact-card p {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  background: #001426;
  color: rgba(255, 255, 255, 0.72);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-image {
    min-height: 440px;
  }

  .card-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero,
  .section {
    padding: 72px 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: auto;
  }

  .project-large .project-image,
  .project-image {
    min-height: 360px;
  }

  .contact-card {
    padding: 34px 24px;
  }

  .footer-wrap {
    flex-direction: column;
  }
}

.hero-site-image {
  background-position: 72% center;
  background-size: cover;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 10px 17px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-projects {
  display: grid;
  gap: 70px;
}

.folder-project {
  overflow: hidden;
  border-radius: 28px;
  background: white;
}

.folder-project-images {
  display: grid;
  gap: 6px;
  background: var(--navy);
}

.folder-project img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.layout-hero-top .folder-project-images {
  grid-template-columns: repeat(3, 1fr);
}

.layout-hero-top .project-hero {
  grid-column: 1 / -1;
  height: min(62vw, 670px);
}

.layout-hero-left .folder-project-images {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 230px);
}

.layout-hero-left .project-hero {
  grid-row: 1 / 4;
}

.layout-four-grid .folder-project-images {
  grid-template-columns: repeat(2, 1fr);
}

.layout-four-grid img {
  height: min(36vw, 430px);
}

.folder-project-copy {
  padding: 30px 34px 36px;
}

.folder-project-category {
  margin: 0 0 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .77rem;
  font-weight: 700;
}

.folder-project-copy h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.folder-project-description {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}

.portfolio-empty {
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 20px;
  color: white;
}

@media (max-width: 760px) {

  .layout-hero-top .folder-project-images,
  .layout-hero-left .folder-project-images,
  .layout-four-grid .folder-project-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .layout-hero-top .project-hero,
  .layout-hero-left .project-hero {
    grid-column: auto;
    grid-row: auto;
    height: 420px;
  }

  .folder-project img,
  .layout-four-grid img {
    height: 320px;
  }
}


.folder-project-images img {
  cursor: zoom-in;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 72px 20px 28px;
  background: rgba(0, 10, 20, 0.94);
}

.lightbox-content {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-content figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 2.8rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 6px;
    padding-inline: 8px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }
}


/* Version 7: split hero with solid navy left panel and image on right */
.hero-slideshow {
  position: relative;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

/* The photograph exists only in the right-hand section. */
.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  z-index: -3;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

/*
  Opaque navy from 0–38%.
  Navy fades to transparent from 38–61%.
  Fully transparent over the remaining photograph.
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg,
      rgba(1, 30, 57, 1) 0%,
      rgba(1, 30, 57, 1) 38%,
      rgba(1, 30, 57, 0.5) 49.5%,
      rgba(1, 30, 57, 0) 61%,
      rgba(1, 30, 57, 0) 100%);
  pointer-events: none;
}

.hero-content {
  min-height: 720px;
  display: flex;
  align-items: center;
}

.hero-slideshow .hero-copy {
  width: min(690px, 52%);
  padding: 80px 0;
}

.hero-slideshow h1 {
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-slideshow .hero-text {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-slideshow .eyebrow {
  color: #e09a4f;
}

.button-hero-secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(0, 15, 29, 0.18);
  backdrop-filter: blur(4px);
}

.button-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {

  .hero-slideshow,
  .hero-content {
    min-height: 650px;
  }

  .hero-slide {
    left: 30%;
  }

  .hero-overlay {
    background: linear-gradient(90deg,
        rgba(1, 30, 57, 1) 0%,
        rgba(1, 30, 57, 1) 30%,
        rgba(1, 30, 57, 0.58) 48%,
        rgba(1, 30, 57, 0.12) 72%,
        rgba(1, 30, 57, 0.12) 100%);
  }

  .hero-slideshow .hero-copy {
    width: min(620px, 72%);
  }
}

@media (max-width: 680px) {

  .hero-slideshow,
  .hero-content {
    min-height: 610px;
  }

  .hero-slide {
    left: 0;
  }

  .hero-overlay {
    background: rgba(1, 30, 57, 0.72);
  }

  .hero-slideshow .hero-copy {
    width: 100%;
    padding: 72px 0;
  }
}

/* Version 5: any number of project images */
.folder-project-images {
  align-items: stretch;
}

.folder-project-images img {
  min-width: 0;
}

/* One image */
.folder-project[data-image-count="1"] .folder-project-images {
  display: block;
}

.folder-project[data-image-count="1"] .folder-project-images img {
  width: 100%;
  height: min(70vw, 760px);
}

/* Generic equal grid */
.layout-grid .folder-project-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-grid .folder-project-images img {
  height: min(34vw, 430px);
}

/* Large hero followed by as many tiles as needed */
.layout-hero-top .folder-project-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-hero-top .project-hero {
  grid-column: 1 / -1;
  height: min(62vw, 680px);
}

.layout-hero-top .folder-project-images img:not(.project-hero) {
  height: min(25vw, 330px);
}

/* Large hero on left. Remaining images flow in a two-column panel. */
.layout-hero-left .folder-project-images {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, 1fr);
}

.layout-hero-left .project-hero {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 690px;
}

.layout-hero-left .folder-project-images img:not(.project-hero) {
  min-height: 220px;
}

/* Good for larger sets: 7, 8, 10+ images */
.layout-masonry .folder-project-images {
  display: block;
  columns: 3;
  column-gap: 6px;
  padding: 0;
}

.layout-masonry .folder-project-images img {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0 0 6px;
  break-inside: avoid;
}

.layout-masonry .project-hero {
  column-span: all;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .layout-hero-left .folder-project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-hero-left .project-hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 500px;
  }

  .layout-masonry .folder-project-images {
    columns: 2;
  }
}

@media (max-width: 680px) {

  .layout-grid .folder-project-images,
  .layout-hero-top .folder-project-images,
  .layout-hero-left .folder-project-images {
    grid-template-columns: 1fr;
  }

  .layout-hero-top .project-hero,
  .layout-hero-left .project-hero {
    grid-column: auto;
    grid-row: auto;
    height: 420px;
    min-height: 0;
  }

  .layout-grid .folder-project-images img,
  .layout-hero-top .folder-project-images img:not(.project-hero),
  .layout-hero-left .folder-project-images img:not(.project-hero) {
    height: 320px;
    min-height: 0;
  }

  .layout-masonry .folder-project-images {
    columns: 1;
  }
}


/* Version 8 — Gwenn's invoice visual identity */
:root {
  --navy: #011e39;
  --navy-deep: #001426;
  --gold: #bf7629;
  --cream: #f3eee5;
  --paper: #fffdf9;
  --white: #ffffff;
  --text: #0c2340;
  --muted: #65717e;
  --line: #d8c9b7;
}

body {
  background: var(--paper);
  color: var(--text);
}

.site-header {
  background: rgba(255, 253, 249, 0.97);
  border-bottom: 2px solid var(--gold);
}

.nav-wrap {
  min-height: 92px;
}

.gwenns-brand {
  display: block;
  width: min(310px, 45vw);
}

.gwenns-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav a {
  color: var(--navy);
  letter-spacing: 0.02em;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  border: 1px solid var(--gold);
}

.hero-slideshow .hero-copy {
  width: min(720px, 54%);
}

.hero-slideshow h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
}

.hero-slideshow .eyebrow,
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.22em;
}

.button-primary {
  background: var(--gold);
}

.button-secondary,
.button-hero-secondary {
  border-color: var(--gold);
}

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

.section-dark {
  background: var(--navy);
}

.invoice-style-heading {
  position: relative;
  padding-bottom: 18px;
}

.invoice-style-heading h2 {
  margin-bottom: 8px;
}

.gold-rule {
  display: block;
  width: 128px;
  height: 3px;
  background: var(--gold);
  margin-top: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 118, 41, 0.5);
  border-radius: 4px;
  background: var(--white);
  box-shadow: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--navy);
}

.service-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 12px;
  margin-bottom: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  color: var(--navy);
}

.portfolio-filters {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(191, 118, 41, 0.7);
}

.filter-button.active {
  background: var(--gold);
}

.folder-project {
  border: 1px solid rgba(191, 118, 41, 0.58);
  border-radius: 8px;
}

.folder-project-copy {
  position: relative;
  padding-top: 38px;
}

.folder-project-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--navy);
}

.folder-project-category {
  color: var(--gold);
}

.folder-project-copy h3,
.about-grid h2,
.contact-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.about-grid {
  border-top: 3px solid var(--gold);
  padding-top: 52px;
}

.contact-card {
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: none;
}

.site-footer {
  padding: 0;
  background: var(--navy-deep);
}

.footer-brand-strip {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 28px;
  color: var(--white);
  background: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.footer-brand-strip strong {
  color: var(--gold);
  font-weight: 400;
}

.footer-brand-strip img {
  width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.footer-line {
  width: min(100px, 10vw);
  height: 2px;
  background: var(--gold);
}

.footer-divider {
  color: var(--gold);
  font-family: Inter, Arial, sans-serif;
  font-style: normal;
}

.footer-wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 78px;
  }

  .gwenns-brand {
    width: min(250px, 62vw);
  }
}

@media (max-width: 680px) {
  .site-header {
    border-bottom-width: 1px;
  }

  .gwenns-brand {
    width: 215px;
  }

  .footer-brand-strip {
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
  }

  .footer-line {
    width: 42px;
  }

  .footer-divider {
    display: none;
  }

  .footer-brand-strip img {
    width: 120px;
  }
}


/* Version 9 — exact invoice wordmark and lighter invoice-style hero */
.gwenns-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  height: 72px;
}

.gwenns-brand .nav-bathtub {
  width: 112px;
  height: 68px;
  object-fit: contain;
}

.gwenns-brand .nav-wordmark {
  width: 190px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

/*
  The supplied company-name artwork uses navy lettering, so the left side
  is intentionally light—like the invoice—rather than placing navy text
  over a navy background.
*/
.hero-slideshow {
  background: var(--paper);
}

.hero-slide {
  left: 42%;
  background-position: center center;
}

.hero-overlay {
  background: linear-gradient(90deg,
      rgba(255, 253, 249, 1) 0%,
      rgba(255, 253, 249, 1) 42%,
      rgba(255, 253, 249, 0.72) 51%,
      rgba(255, 253, 249, 0.25) 60%,
      rgba(255, 253, 249, 0) 69%,
      rgba(255, 253, 249, 0) 100%);
}

.hero-slideshow .hero-copy {
  width: min(700px, 48%);
}

.hero-brand-image {
  display: block;
  width: min(610px, 100%);
  height: auto;
  margin: 4px 0 26px;
}

.hero-slideshow .hero-text {
  max-width: 560px;
  color: var(--navy);
  text-shadow: none;
  font-size: 1.08rem;
}

.button-hero-secondary {
  color: var(--navy);
  border-color: var(--gold);
  background: rgba(255, 253, 249, 0.72);
}

.footer-brand-strip img {
  width: 210px;
  max-height: 58px;
}

@media (max-width: 900px) {
  .gwenns-brand {
    height: 62px;
  }

  .gwenns-brand .nav-bathtub {
    width: 88px;
    height: 56px;
  }

  .gwenns-brand .nav-wordmark {
    width: 150px;
    height: 46px;
  }

  .hero-slide {
    left: 34%;
  }

  .hero-overlay {
    background: linear-gradient(90deg,
        rgba(255, 253, 249, 1) 0%,
        rgba(255, 253, 249, 1) 34%,
        rgba(255, 253, 249, 0.78) 48%,
        rgba(255, 253, 249, 0.28) 72%,
        rgba(255, 253, 249, 0.12) 100%);
  }

  .hero-slideshow .hero-copy {
    width: min(620px, 67%);
  }
}

@media (max-width: 680px) {
  .gwenns-brand {
    gap: 8px;
    height: 54px;
  }

  .gwenns-brand .nav-bathtub {
    width: 72px;
    height: 48px;
  }

  .gwenns-brand .nav-wordmark {
    width: 125px;
    height: 40px;
  }

  .hero-slide {
    left: 0;
  }

  .hero-overlay {
    background: rgba(255, 253, 249, 0.82);
  }

  .hero-slideshow .hero-copy {
    width: 100%;
  }

  .hero-brand-image {
    width: min(520px, 100%);
  }
}


/* Version 10 — navy hero with supplied white wordmark */
.hero-slideshow {
  background: var(--navy);
}

.hero-slide {
  left: 38%;
  background-position: center center;
}

.hero-overlay {
  background: linear-gradient(90deg,
      rgba(1, 30, 57, 1) 0%,
      rgba(1, 30, 57, 1) 38%,
      rgba(1, 30, 57, 0.5) 49.5%,
      rgba(1, 30, 57, 0) 61%,
      rgba(1, 30, 57, 0) 100%);
}

.hero-slideshow .hero-copy {
  width: min(700px, 50%);
}

.hero-brand-image {
  width: min(610px, 100%);
  margin: 0 0 28px;
}

.hero-slideshow .hero-text {
  max-width: 590px;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.55;
}

.hero-actions .button {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

.button-hero-secondary {
  color: white;
  border-color: var(--gold);
  background: rgba(1, 30, 57, 0.28);
}

.button-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero-slide {
    left: 30%;
  }

  .hero-overlay {
    background: linear-gradient(90deg,
        rgba(1, 30, 57, 1) 0%,
        rgba(1, 30, 57, 1) 30%,
        rgba(1, 30, 57, 0.58) 48%,
        rgba(1, 30, 57, 0.12) 72%,
        rgba(1, 30, 57, 0.12) 100%);
  }

  .hero-slideshow .hero-copy {
    width: min(620px, 72%);
  }
}

@media (max-width: 680px) {
  .hero-slide {
    left: 0;
  }

  .hero-overlay {
    background: rgba(1, 30, 57, 0.76);
  }

  .hero-slideshow .hero-copy {
    width: 100%;
  }
}


/* Version 11 — correct wordmark colour assignment */
.gwenns-brand .nav-wordmark {
  opacity: 1;
  filter: none;
}

.hero-brand-image {
  opacity: 1;
  filter: none;
}

/* Version 12 — contact form */
.contact-card {
  align-items: start;
}

.contact-intro .contact-note {
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(1, 30, 57, 0.22);
  border-radius: 10px;
  padding: 12px 13px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 400;
}

.contact-form textarea {
  resize: vertical;
  min-height: 145px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(191, 118, 41, 0.22);
  border-color: var(--gold);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-status.success {
  color: #216e39;
}

.form-status.error {
  color: #a12622;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

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


/* Patch 002 — hero wordmark rendered as text with the supplied Playfair Display italic font */
@font-face {
  font-family: "Playfair Display Supplied Italic";
  src: url("PlayfairDisplay-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

.hero-brand-text {
  margin: 0 0 28px;
  color: white;
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-style: italic;
}

.hero-brand-text h1 {
  margin: 0;
  font: inherit;
  font-size: clamp(5.2rem, 9vw, 9.6rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.hero-brand-text p {
  margin: 1.45rem 0 0 0.35rem;
  font: inherit;
  font-size: clamp(1.35rem, 2.35vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-brand-text h1 {
    font-size: clamp(4.6rem, 23vw, 7rem);
  }

  .hero-brand-text p {
    margin-top: 1.15rem;
    font-size: clamp(1.15rem, 6vw, 1.65rem);
    white-space: normal;
  }
}

/* Patch 003 — use the supplied Playfair Display italic font for large display headings */
.invoice-style-heading h2,
.folder-project-copy h3,
.about-grid h2,
.contact-card h2 {
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
}


/* Patch 004 — footer branding reproduced with real text, not an image */
.footer-brand-strip {
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-style: italic;
}

.footer-tagline,
.footer-wordmark {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.footer-tagline {
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
}

.footer-tagline strong {
  color: var(--gold);
  font-weight: 500;
}

.footer-wordmark {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.footer-divider {
  display: block;
  width: 2px;
  height: 38px;
  background: var(--gold);
}

@media (max-width: 680px) {
  .footer-brand-strip {
    flex-wrap: nowrap;
    gap: 10px;
    padding-inline: 14px;
  }

  .footer-line {
    width: 28px;
    flex: 0 1 28px;
  }

  .footer-tagline {
    font-size: clamp(0.9rem, 4vw, 1.15rem);
  }

  .footer-wordmark {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  .footer-divider {
    display: block;
    height: 30px;
  }
}


/* Patch 005 — service titles and independent service pages */
.service-card h3,
.service-card h3 a {
  font-family: "Gwenns Playfair", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.service-card:hover h3,
.service-card:focus-visible h3 {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.service-card:focus-visible {
  outline: 3px solid rgba(191, 118, 41, 0.55);
  outline-offset: 3px;
}

.service-page {
  background: #fbf8f2;
  color: var(--navy);
}

.service-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.service-hero {
  padding: clamp(72px, 9vw, 128px) 0 clamp(54px, 7vw, 92px);
  background:
    linear-gradient(100deg, rgba(0, 35, 61, 0.97) 0%, rgba(0, 35, 61, 0.88) 56%, rgba(0, 35, 61, 0.68) 100%);
  color: #fff;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.service-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 1.78rem;
  font-weight: 700;
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

.service-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Gwenns Playfair", "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.service-hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.service-hero-note {
  padding: 30px;
  border: 1px solid rgba(191, 118, 41, 0.78);
  background: rgba(0, 20, 36, 0.4);
}

.service-hero-note strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Gwenns Playfair", "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 600;
}

.service-hero-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.service-content-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: start;
}

.service-intro-grid h1,
.service-scope h2,
.service-process h2,
.service-cta h2 {
  margin: 0;
  font-family: "Gwenns Playfair", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.service-intro-grid h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
}

.service-intro-copy {
  color: #526579;
  font-size: 1.04rem;
  line-height: 1.8;
}

.service-intro-copy p:first-child {
  margin-top: 108px;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  margin-top: clamp(52px, 7vw, 86px);
}

.service-gallery figure {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 118, 41, 0.62);
  border-radius: 8px;
  background: #eee8de;
}

.service-gallery figure:nth-child(2) {
  margin-top: 72px;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.service-intro-grid--trim {
  display: block;
  max-width: 820px;
}

.service-gallery--trim {
  grid-template-columns: 1fr;
}

.service-gallery--trim figure {
  position: relative;
  min-height: 0;
}

.service-gallery--trim figure:nth-child(2) {
  margin-top: 0;
}

.service-gallery--trim img {
  min-height: 0;
}

.service-gallery--trim .trim-gallery-panel {
  display: flex;
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
  align-items: center;
}

.service-gallery--trim .trim-gallery-panel > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-gallery--trim .trim-gallery-mantel > img {
  object-position: center;
}

.service-gallery--trim .trim-gallery-doors > img {
  object-position: center;
}

.trim-gallery-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 49%);
  margin-left: auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(15, 34, 51, 0.9);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  line-height: 1.72;
  box-shadow: 0 20px 52px rgba(8, 19, 29, 0.24);
}

.trim-gallery-mantel .trim-gallery-copy {
  width: min(500px, 42%);
}

.trim-gallery-doors .trim-gallery-copy {
  width: min(520px, 44%);
  margin-right: auto;
  margin-left: 0;
}

.trim-gallery-copy p {
  margin: 0;
}

.trim-gallery-copy p + p {
  margin-top: 1.15em;
}

.service-gallery--trim .trim-gallery-hinge {
  min-height: 680px;
  padding-left: 52%;
  background: #102230;
}

.service-gallery--trim .trim-gallery-hinge > img {
  right: 52%;
  width: 48%;
  object-fit: cover;
  object-position: center;
}

.service-gallery--trim .trim-gallery-hinge .trim-gallery-copy {
  width: 100%;
  margin: 0;
}

.service-gallery--trim figcaption {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(16, 31, 48, 0.78);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.service-intro-grid--tile {
  display: block;
  max-width: 820px;
}

.service-gallery--tile {
  grid-template-columns: 1fr;
}

.service-gallery--tile figure:nth-child(2) {
  margin-top: 0;
}

.service-gallery--tile .tile-gallery-panel {
  position: relative;
  display: flex;
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
  align-items: center;
}

.service-gallery--tile .tile-gallery-panel > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.service-gallery--tile .tile-gallery-panel > video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #102230;
}

.tile-gallery-copy {
  position: relative;
  z-index: 1;
  width: min(590px, 49%);
  margin-left: auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(15, 34, 51, 0.9);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  line-height: 1.72;
  box-shadow: 0 20px 52px rgba(8, 19, 29, 0.24);
}

.tile-gallery-feature .tile-gallery-copy {
  width: min(610px, 51%);
  margin-right: auto;
  margin-left: 0;
}

.tile-gallery-craft {
  align-items: flex-start;
}

.tile-gallery-craft .tile-gallery-copy {
  width: min(640px, 52%);
}

.tile-gallery-copy p {
  margin: 0;
}

.tile-gallery-copy p + p {
  margin-top: 1.15em;
}

.service-gallery--tile .tile-gallery-inspiration {
  aspect-ratio: 1090 / 543;
  min-height: 0;
}

.tile-gallery-inspiration .tile-gallery-copy {
  width: min(500px, 42%);
  margin-right: 0;
  margin-left: auto;
}

.ikea-gallery-custom .tile-gallery-copy {
  width: min(430px, 36%);
  margin-right: auto;
  margin-left: 0;
}

.ikea-gallery-panels .tile-gallery-copy {
  margin-right: auto;
  margin-left: 0;
}

.ikea-gallery-countertop .tile-gallery-copy {
  width: min(500px, 42%);
  margin-right: 0;
  margin-left: auto;
}

.service-gallery--tile .ikea-gallery-countertop {
  aspect-ratio: 2824 / 1287;
  min-height: 0;
  align-items: flex-start;
}

.service-scope {
  background: var(--navy);
  color: #fff;
}

.service-scope-inner {
  padding: clamp(68px, 8vw, 108px) 0;
}

.service-scope h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
}

.service-scope-grid {
  display: block;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(191, 118, 41, 0.66);
}

.service-list li {
  padding: 19px 18px 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
}

.service-list li::before {
  content: "—";
  margin-right: 10px;
  color: var(--gold);
}

.service-process {
  padding: clamp(68px, 8vw, 108px) 0;
}

.service-process h2 {
  max-width: 650px;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

@media (min-width: 821px) {
  .process-grid--ikea,
  .process-grid--tile,
  .process-grid--bathroom {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .process-grid--ikea .process-card,
  .process-grid--tile .process-card,
  .process-grid--bathroom .process-card {
    grid-column: span 2;
  }

  .process-grid--ikea .process-card:nth-child(4),
  .process-grid--ikea .process-card:nth-child(5),
  .process-grid--tile .process-card:nth-child(4),
  .process-grid--tile .process-card:nth-child(5),
  .process-grid--bathroom .process-card:nth-child(4),
  .process-grid--bathroom .process-card:nth-child(5) {
    grid-column: span 3;
  }
}

.process-card {
  min-height: 230px;
  padding: 30px;
  border-top: 8px solid var(--navy);
  border-right: 1px solid rgba(191, 118, 41, 0.5);
  border-bottom: 1px solid rgba(191, 118, 41, 0.5);
  border-left: 1px solid rgba(191, 118, 41, 0.5);
  background: #fff;
}

.process-card span {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process-card h3 {
  margin: 25px 0 12px;
  font-family: "Gwenns Playfair", Georgia, serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 600;
}

.process-card p {
  margin: 0;
  color: #5e6f80;
  line-height: 1.65;
}

.trim-services-section h2 span {
  display: block;
}

.trim-services-grid .process-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.trim-services-grid .process-card h3 {
  margin: 0 0 14px;
}

.service-cta {
  padding: 0 0 clamp(72px, 9vw, 124px);
}

.service-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(36px, 5vw, 62px);
  border: 1px solid var(--gold);
  background: #f1eadf;
}

.service-cta h2 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
}

.service-cta p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #5c6d7f;
  line-height: 1.65;
}

.service-page .footer-wrap {
  border-top-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 820px) {

  .service-hero-grid,
  .service-intro-grid,
  .service-scope-grid,
  .service-cta-box {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    grid-template-columns: 1fr;
  }

  .service-gallery--trim .trim-gallery-panel {
    min-height: 0;
    padding: 18px;
    align-items: stretch;
  }

  .trim-gallery-copy,
  .trim-gallery-mantel .trim-gallery-copy,
  .trim-gallery-doors .trim-gallery-copy,
  .service-gallery--trim .trim-gallery-hinge .trim-gallery-copy {
    width: 100%;
    margin: 0;
    padding: 24px;
    background: rgba(15, 34, 51, 0.92);
  }

  .service-gallery--trim .trim-gallery-hinge > img {
    right: 0;
    width: 100%;
    object-position: center;
  }

  .service-gallery--tile .tile-gallery-panel {
    min-height: 0;
    padding: 18px;
    align-items: stretch;
  }

  .tile-gallery-copy,
  .tile-gallery-feature .tile-gallery-copy,
  .tile-gallery-craft .tile-gallery-copy,
  .ikea-gallery-custom .tile-gallery-copy,
  .ikea-gallery-panels .tile-gallery-copy,
  .ikea-gallery-countertop .tile-gallery-copy {
    width: 100%;
    margin: 0;
    padding: 24px;
    background: rgba(15, 34, 51, 0.92);
  }

  .service-gallery figure:nth-child(2) {
    margin-top: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-cta-box {
    justify-items: start;
  }

}

@media (max-width: 560px) {
  .service-hero {
    padding-top: 56px;
  }

  .service-gallery figure,
  .service-gallery img {
    min-height: 300px;
  }

  .service-hero-note,
  .process-card {
    padding: 24px;
  }

}

/* Patch 007 — bathroom before/after comparison */
.before-after-block {
  margin-top: clamp(52px, 7vw, 86px);
}

.before-after {
  --position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(191, 118, 41, 0.62);
  border-radius: 8px;
  background: #eee8de;
  box-shadow: 0 22px 50px rgba(0, 35, 61, 0.12);
  touch-action: pan-y;
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

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

.before-after-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 35, 61, 0.3), 0 0 14px rgba(0, 35, 61, 0.35);
  transform: translateX(-50%);
  pointer-events: none;
}

.before-after-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.before-after-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 35, 61, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.before-after-label-before {
  left: 18px;
}

.before-after-label-after {
  right: 18px;
}

.before-after-caption {
  margin: 14px 0 0;
  color: #687889;
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 560px) {
  .before-after-label {
    top: 10px;
    padding: 6px 9px;
    font-size: 0.66rem;
  }

  .before-after-label-before {
    left: 10px;
  }

  .before-after-label-after {
    right: 10px;
  }
}

/* Patch 008 — four-stage bathroom construction viewer */
.construction-stages {
  --stage-progress: 0%;
  margin-top: 64px;
  border: 1px solid rgba(191, 118, 41, 0.55);
  background: #fff;
  overflow: hidden;
}

.construction-stage-viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e8e5df;
  overflow: hidden;
}

.construction-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
}

.construction-stage-image.is-active {
  opacity: 1;
}

.construction-stage-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(1, 30, 57, 0.84);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.construction-stage-controls {
  padding: 28px 34px 10px;
  background: #f7f3ec;
}

.construction-stage-range {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.construction-stage-range::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--gold) 0 var(--stage-progress), rgba(1, 30, 57, 0.22) var(--stage-progress) 100%);
}

.construction-stage-range::-moz-range-track {
  height: 3px;
  background: rgba(1, 30, 57, 0.22);
}

.construction-stage-range::-moz-range-progress {
  height: 3px;
  background: var(--gold);
}

.construction-stage-range::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9.5px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--navy);
}

.construction-stage-range::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--navy);
}

.construction-stage-range:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.construction-stage-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 3px;
}

.construction-stage-label {
  padding: 9px 5px;
  border: 0;
  background: transparent;
  color: #657181;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.construction-stage-label:hover,
.construction-stage-label.is-active {
  color: var(--navy);
}

.construction-stage-label.is-active::before {
  content: "•";
  margin-right: 6px;
  color: var(--gold);
}

.construction-stage-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.construction-stage-copy {
  min-height: 178px;
  padding: 25px 34px 34px;
  background: #fff;
}

.construction-stage-copy h3 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-family: "Playfair Display Local", "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
}

.construction-stage-copy>p:last-child {
  max-width: 760px;
  margin: 0;
  color: #5f6b7a;
  line-height: 1.75;
}

@media (max-width: 700px) {
  .construction-stages {
    margin-top: 42px;
  }

  .construction-stage-controls {
    padding: 21px 18px 7px;
  }

  .construction-stage-copy {
    min-height: 200px;
    padding: 22px 20px 28px;
  }

  .construction-stage-label {
    font-size: 0;
  }

  .construction-stage-label::after {
    content: attr(data-stage-button);
    font-size: 0.85rem;
  }

  .construction-stage-label.is-active::before {
    margin-right: 4px;
    font-size: 0.85rem;
  }

  .construction-stage-badge {
    top: 10px;
    left: 10px;
  }
}

/* Patch 009 — compact construction viewer */
@media (min-width: 801px) {
  .construction-stages {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    grid-template-rows: auto 1fr;
    max-width: 980px;
    margin: 48px auto 0;
  }

  .construction-stage-viewer {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .construction-stage-controls {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 28px 16px;
    border-left: 1px solid rgba(191, 118, 41, 0.28);
  }

  .construction-stage-labels {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 12px;
  }

  .construction-stage-label {
    padding: 8px 10px;
    text-align: left;
  }

  .construction-stage-copy {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    padding: 18px 28px 28px;
    border-left: 1px solid rgba(191, 118, 41, 0.28);
  }

  .construction-stage-copy h3 {
    font-size: clamp(2rem, 3vw, 2.7rem);
  }

  .construction-stage-copy>p:last-child {
    line-height: 1.58;
  }
}

@media (max-width: 800px) {
  .construction-stages {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .construction-stage-viewer {
    aspect-ratio: 4 / 3;
  }
}

/* Patch 010 — align service introduction copy with the display heading */
@media (min-width: 821px) {
  .service-intro-copy {
    padding-top: calc(0.78rem * 1.2 + 18px);
  }
}

/* Patch 011 — responsive portfolio storytelling */
.folder-project-images .folder-project-copy {
  box-sizing: border-box;
  margin: 0;
  padding: clamp(26px, 3vw, 44px);
  background:
    linear-gradient(145deg, rgba(191, 118, 41, 0.12), transparent 48%),
    var(--navy);
  color: #fff;
}

.folder-project-images .folder-project-copy::before {
  content: none;
}

.folder-project-images .folder-project-category {
  color: #efb260;
}

.folder-project-images .folder-project-copy h3 {
  color: #fff;
}

.folder-project-images .folder-project-description {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 681px) {
  .folder-project-images .folder-project-copy {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: center;
  }

  .folder-project[data-image-count="1"] .folder-project-images {
    position: relative;
    display: block;
  }

  .folder-project[data-image-count="1"] .folder-project-copy {
    position: absolute;
    z-index: 2;
    right: clamp(22px, 4vw, 58px);
    bottom: clamp(22px, 4vw, 58px);
    width: min(520px, calc(100% - 44px));
    min-height: 0;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    background: rgba(4, 36, 63, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    pointer-events: none;
  }

  .folder-project.layout-grid .folder-project-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .folder-project.layout-grid .folder-project-copy,
  .folder-project.layout-grid .folder-project-images>img {
    min-height: 320px;
  }

  .folder-project.layout-hero-top .folder-project-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .folder-project.layout-hero-top .project-hero {
    grid-column: 1 / -1;
    min-height: 540px;
  }

  .folder-project.layout-hero-top .folder-project-copy,
  .folder-project.layout-hero-top .folder-project-images>img:not(.project-hero) {
    min-height: 280px;
  }

  .folder-project.layout-hero-top[data-image-count="2"] .folder-project-images,
  .folder-project.layout-hero-top[data-image-count="4"] .folder-project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .folder-project.layout-hero-left .folder-project-images {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: minmax(230px, auto);
  }

  .folder-project.layout-hero-left .project-hero {
    grid-column: 1;
    grid-row: 1 / span 3;
    min-height: 720px;
  }

  .folder-project.layout-hero-left .folder-project-copy,
  .folder-project.layout-hero-left .folder-project-images>img:not(.project-hero) {
    min-height: 230px;
  }

  .folder-project.layout-masonry .folder-project-copy {
    margin-bottom: 6px;
    break-inside: avoid;
  }

  .folder-project[data-image-count="1"] .folder-project-copy {
    min-height: 0;
  }
}

@media (max-width: 680px) {

  .folder-project .folder-project-images,
  .folder-project.layout-masonry .folder-project-images {
    display: flex;
    columns: auto;
    flex-direction: column;
    gap: 5px;
  }

  .folder-project-images .folder-project-copy {
    order: -1;
    min-height: 0;
    padding: 26px 22px 30px;
  }

  .folder-project-images .folder-project-copy h3 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .folder-project .folder-project-images>img,
  .folder-project .folder-project-images>img.project-hero {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* Patch 013 — final automatic gallery packing overrides */
@media (min-width: 681px) {
  .folder-project:not([data-image-count="1"]) .folder-project-images {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: clamp(44px, 4.6vw, 68px);
    gap: 6px;
    columns: auto;
  }

  .folder-project:not([data-image-count="1"]) .folder-project-copy,
  .folder-project:not([data-image-count="1"]) .folder-project-images>img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    grid-column: span 4;
    grid-row: span 5;
    object-fit: cover;
    break-inside: auto;
  }

  .folder-project:not([data-image-count="1"]) .project-hero {
    grid-column: 1 / -1;
    grid-row: span 8;
  }

  .folder-project[data-image-count="2"] .folder-project-copy,
  .folder-project[data-image-count="2"] .folder-project-images>img:not(.project-hero),
  .folder-project[data-image-count="4"] .folder-project-copy,
  .folder-project[data-image-count="4"] .folder-project-images>img:not(.project-hero) {
    grid-column: span 6;
  }

  .folder-project[data-image-count="5"] .folder-project-copy,
  .folder-project[data-image-count="5"] .folder-project-images>img:nth-of-type(2) {
    grid-column: span 6;
  }

  .folder-project.is-large-gallery .folder-project-copy {
    grid-column: span 4;
    grid-row: span 5;
  }

  .folder-project.is-large-gallery.copy-needs-extra-rows .folder-project-copy {
    grid-row: span 8;
  }

  .folder-project.is-large-gallery .folder-project-images>img:not(.project-hero).image-shape-wide {
    grid-column: span 8;
    grid-row: span 5;
  }

  .folder-project.is-large-gallery .folder-project-images>img:not(.project-hero).image-shape-landscape,
  .folder-project.is-large-gallery .folder-project-images>img:not(.project-hero).image-shape-square {
    grid-column: span 4;
    grid-row: span 5;
  }

  .folder-project.is-large-gallery .folder-project-images>img:not(.project-hero).image-shape-portrait {
    grid-column: span 4;
    grid-row: span 8;
  }
}

@media (max-width: 680px) {

  .folder-project .folder-project-images>img,
  .folder-project .folder-project-images>img.project-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* Patch 014 — give long six-image project stories two central cells */
@media (min-width: 681px) {

  .folder-project[data-image-count="6"].copy-needs-two-cells .project-hero,
  .folder-project[data-image-count="6"].copy-needs-two-cells .folder-project-images>img:not(.project-hero) {
    grid-column: span 4;
    grid-row: span 5;
  }

  .folder-project[data-image-count="6"].copy-needs-two-cells .folder-project-copy {
    grid-column: 5 / span 4;
    grid-row: 1 / span 10;
    padding: clamp(28px, 3vw, 42px);
  }

  .folder-project[data-image-count="6"].copy-needs-two-cells .folder-project-images>img:nth-of-type(5),
  .folder-project[data-image-count="6"].copy-needs-two-cells .folder-project-images>img:nth-of-type(6) {
    grid-column: span 6;
  }
}

/* Patch 015 — white portfolio cards, uncropped heroes, and resilient copy */
.folder-project,
.folder-project-images {
  background: #fff;
}

.folder-project-images .folder-project-copy {
  justify-content: flex-start;
  overflow: visible;
  background: #fff;
  color: var(--navy);
}

.folder-project-images .folder-project-category {
  color: #a85f18;
}

.folder-project-images .folder-project-copy h3 {
  margin-top: 0;
  color: var(--navy);
}

.folder-project-images .folder-project-description {
  color: #31465a;
}

@media (min-width: 681px) {
  .folder-project:not([data-image-count="1"]) .project-hero {
    object-fit: contain;
    background: #fff;
  }

  .folder-project[data-image-count="3"] .folder-project-copy,
  .folder-project[data-image-count="3"] .folder-project-images>img:not(.project-hero) {
    grid-row: span 8;
  }

  .folder-project[data-image-count="3"] .folder-project-copy {
    padding: clamp(26px, 2.6vw, 40px);
  }

  .folder-project[data-image-count="3"] .folder-project-copy h3 {
    font-size: clamp(2.25rem, 3.5vw, 3.8rem);
    line-height: 0.98;
  }

  .folder-project[data-image-count="3"] .folder-project-description {
    line-height: 1.55;
  }

  .folder-project[data-image-count="1"] .folder-project-copy {
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
  }
}

@media (max-width: 680px) {
  .folder-project-images .folder-project-copy {
    background: #fff;
  }
}

/* Patch 016 — compact copy row for four-image projects */
@media (min-width: 960px) {
  .folder-project[data-image-count="4"] .folder-project-copy {
    grid-column: 1 / -1;
    grid-row: span 3;
    padding: clamp(22px, 2vw, 30px) clamp(28px, 3vw, 44px);
    justify-content: center;
  }

  .folder-project[data-image-count="4"] .folder-project-images>img:not(.project-hero) {
    grid-column: span 4;
    grid-row: span 5;
  }
}

/* Patch 017 — panoramic image behind the top navigation banner */
.site-header {
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 249, 0.0) 0%,
      rgba(255, 253, 249, 0.80) 28%,
      rgba(255, 253, 249, 0.80) 33%,
      rgba(255, 253, 249, 0.0) 38%,
      rgba(255, 253, 249, 0.0) 54%,
      rgba(255, 253, 249, 0.80) 58%,
      rgba(255, 253, 249, 0.80) 65%,
      rgba(255, 253, 249, 0.80) 79%,
      rgba(255, 253, 249, 0.0) 83%,
      rgba(255, 253, 249, 0.0) 100%
    ),
    url("images/panoramic.webp");

  /* First value is for the overlay; second is for the picture */
  background-size: auto, 180% auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, right center;

  /* Controls the movement */
  animation: move-panorama 200s linear infinite alternate;

  backdrop-filter: none;
  box-shadow: 0 4px 18px rgba(1, 30, 57, 0.12);
}

/* Moves only the picture—the overlay stays in place */
@keyframes move-panorama {
  from {
    background-position: center, right center;
  }

  to {
    background-position: center, left center;
  }
}

/* Mobile version */
@media (max-width: 680px) {
  .site-header {
    background:
      linear-gradient(
        rgba(255, 253, 249, 0.88),
        rgba(255, 253, 249, 0.88)
      ),
      url("images/panoramic.webp");

    background-size: auto, 220% auto;
    background-repeat: no-repeat, no-repeat;
    background-position: center, right center;

    animation-duration: 25s;
  }
}

/* Stops animation for visitors who disable motion */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    animation: none;
  }
}

/* Patch 019 — direct phone and email fallback */
.direct-contact {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(1, 30, 57, 0.16);
}

.direct-contact p {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  margin: 0;
  align-items: baseline;
}

.direct-contact span {
  color: #708092;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direct-contact a,
.footer-contact a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.direct-contact a {
  color: var(--navy);
  font-size: 1.05rem;
}

.footer-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 680px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Patch 020 — trust details and keyboard-visible portfolio controls */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: rgba(1, 30, 57, 0.14);
  border: 1px solid rgba(1, 30, 57, 0.14);
}

.trust-grid article {
  padding: clamp(24px, 3vw, 38px);
  background: #fffdf9;
}

.trust-grid strong {
  display: block;
  margin-bottom: 18px;
  color: #a85f18;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trust-grid h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.08rem;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.portfolio-lightbox-image[role="button"] {
  cursor: zoom-in;
}

.portfolio-lightbox-image[role="button"]:focus-visible {
  position: relative;
  z-index: 2;
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

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

@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
}

/* Patch 021 — slow zoom on each active homepage hero photograph */
@keyframes hero-slow-zoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-slide.active {
  animation: hero-slow-zoom 15s linear forwards;
  will-change: transform;
}

.hero-slide {
  z-index: -4;
}

.hero-slide.active {
  z-index: -3;
}

.hero-slide.outgoing {
  z-index: -2;
  opacity: 0;
  transform: scale(1.1);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active {
    animation: none;
    transform: scale(1.02);
  }

  .hero-slide.outgoing {
    transform: scale(1.02);
  }
}

/* Mobile layout system. Desktop presentation remains unchanged above 820px. */
@media (max-width: 820px) {
  .service-content-section {
    padding: 52px 0 64px;
  }

  .service-intro-grid,
  .service-intro-grid--trim,
  .service-intro-grid--tile {
    max-width: none;
    gap: 24px;
  }

  .service-kicker {
    margin-bottom: 18px;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
  }

  .service-intro-grid h1 {
    font-size: clamp(2.45rem, 10vw, 4rem);
    line-height: 1.02;
  }

  .service-intro-copy {
    font-size: 1rem;
    line-height: 1.7;
  }

  .service-intro-copy p:first-child {
    margin-top: 0;
  }

  .service-gallery {
    gap: 30px;
    margin-top: 40px;
  }

  .service-gallery figure,
  .service-gallery figure:nth-child(2),
  .service-gallery--trim figure,
  .service-gallery--tile figure {
    min-height: 0;
    margin-top: 0;
  }

  .service-gallery--trim .trim-gallery-panel,
  .service-gallery--trim .trim-gallery-hinge,
  .service-gallery--tile .tile-gallery-panel,
  .service-gallery--tile .tile-gallery-inspiration,
  .service-gallery--tile .ikea-gallery-countertop {
    display: grid;
    width: 100%;
    min-height: 0;
    padding: 0;
    aspect-ratio: auto;
    align-items: initial;
    background: #fff;
  }

  .service-gallery--trim .trim-gallery-hinge {
    padding-left: 0;
  }

  .service-gallery--trim .trim-gallery-panel > img,
  .service-gallery--trim .trim-gallery-hinge > img,
  .service-gallery--tile .tile-gallery-panel > img,
  .service-gallery--tile .tile-gallery-panel > video {
    position: relative;
    inset: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    background: #eee8de;
  }

  .trim-gallery-copy,
  .trim-gallery-mantel .trim-gallery-copy,
  .trim-gallery-doors .trim-gallery-copy,
  .service-gallery--trim .trim-gallery-hinge .trim-gallery-copy,
  .tile-gallery-copy,
  .tile-gallery-feature .tile-gallery-copy,
  .tile-gallery-craft .tile-gallery-copy,
  .tile-gallery-inspiration .tile-gallery-copy,
  .ikea-gallery-custom .tile-gallery-copy,
  .ikea-gallery-panels .tile-gallery-copy,
  .ikea-gallery-countertop .tile-gallery-copy {
    width: 100%;
    margin: 0;
    padding: 26px 24px 30px;
    border: 0;
    border-radius: 0;
    background: var(--navy);
    font-size: 0.98rem;
    line-height: 1.67;
    box-shadow: none;
  }

  .service-gallery--trim figcaption {
    position: static;
    padding: 7px 12px;
    border-radius: 0;
    background: #001426;
    text-align: right;
  }

  .service-scope-inner,
  .service-process {
    padding: 58px 0;
  }

  .service-scope h2,
  .service-process h2 {
    font-size: clamp(2.25rem, 9vw, 3.35rem);
  }

  .service-list li {
    padding: 16px 0;
  }

  .process-grid {
    gap: 16px;
    margin-top: 32px;
  }

  .process-card {
    min-height: 0;
    padding: 26px 24px 28px;
  }

  .process-card h3 {
    margin-top: 16px;
  }

  .service-cta {
    padding-bottom: 64px;
  }

  .service-cta-box {
    gap: 28px;
    padding: 30px 24px;
  }

  .service-cta h2 {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .service-cta .button {
    width: 100%;
  }

  .construction-stages {
    margin-top: 38px;
  }

  .construction-stage-controls {
    padding: 22px 18px 8px;
  }

  .construction-stage-copy {
    min-height: 0;
    padding: 24px 20px 28px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-wrap {
    min-height: 70px;
    gap: 12px;
  }

  .gwenns-brand {
    height: 50px;
  }

  .gwenns-brand .nav-bathtub {
    width: 66px;
    height: 44px;
  }

  .gwenns-brand .nav-wordmark {
    width: 116px;
    height: 38px;
  }

  .site-nav {
    top: 70px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 10px 16px 18px;
    box-shadow: 0 12px 24px rgba(1, 30, 57, 0.14);
  }

  .hero-slideshow,
  .hero-content {
    min-height: 570px;
  }

  .hero-slideshow .hero-copy {
    padding: 58px 0;
  }

  .hero-brand-text {
    margin-bottom: 24px;
  }

  .hero-brand-text h1 {
    font-size: clamp(4rem, 21vw, 5.4rem);
  }

  .hero-brand-text p {
    margin-left: 0;
    font-size: clamp(1.05rem, 5.5vw, 1.4rem);
    line-height: 1.15;
  }

  .hero-slideshow .hero-text {
    margin-bottom: 26px;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .hero {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .service-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .service-number {
    margin-bottom: 24px;
  }

  .trust-grid > div {
    padding: 22px 24px;
  }

  .about-grid {
    gap: 34px;
    padding-top: 36px;
  }

  .contact-card {
    gap: 28px;
    padding: 30px 22px;
  }

  .portfolio-projects {
    gap: 44px;
  }

  .folder-project {
    border-radius: 6px;
  }

  .folder-project-images .folder-project-copy {
    padding: 26px 22px 30px;
  }

  .portfolio-filters {
    gap: 8px;
    margin-bottom: 28px;
  }

  .filter-button {
    padding: 9px 13px;
    font-size: 0.9rem;
  }

  .before-after-block {
    margin-top: 40px;
  }

  .construction-stage-viewer,
  .before-after {
    border-radius: 5px;
  }

  .service-content-section {
    padding-top: 44px;
  }

  .service-gallery {
    gap: 26px;
    margin-top: 34px;
  }

  .service-gallery--trim .trim-gallery-panel > img,
  .service-gallery--trim .trim-gallery-hinge > img,
  .service-gallery--tile .tile-gallery-panel > img {
    min-height: 0;
  }

  .trim-gallery-copy,
  .trim-gallery-mantel .trim-gallery-copy,
  .trim-gallery-doors .trim-gallery-copy,
  .service-gallery--trim .trim-gallery-hinge .trim-gallery-copy,
  .tile-gallery-copy,
  .tile-gallery-feature .tile-gallery-copy,
  .tile-gallery-craft .tile-gallery-copy,
  .tile-gallery-inspiration .tile-gallery-copy,
  .ikea-gallery-custom .tile-gallery-copy,
  .ikea-gallery-panels .tile-gallery-copy,
  .ikea-gallery-countertop .tile-gallery-copy {
    padding: 24px 20px 27px;
  }

  .footer-brand-strip {
    min-height: 72px;
    padding: 14px 10px;
  }

  .footer-line {
    display: none;
  }

  .footer-tagline {
    white-space: normal;
  }

  .footer-wrap {
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 22px;
    text-align: center;
  }

  .footer-wrap p {
    margin: 0;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

/* IKEA Kitchens: use full photographs and create the editorial fades in CSS. */
@media (min-width: 821px) {
  .service-gallery--tile .tile-gallery-inspiration,
  .service-gallery--tile .ikea-gallery-custom,
  .service-gallery--tile .ikea-gallery-panels,
  .service-gallery--tile .ikea-gallery-countertop {
    isolation: isolate;
    min-height: 0;
    background: var(--paper);
  }

  .service-gallery--tile .tile-gallery-inspiration {
    aspect-ratio: 1090 / 543;
  }

  .service-gallery--tile .ikea-gallery-custom {
    aspect-ratio: 237 / 181;
  }

  .service-gallery--tile .ikea-gallery-panels {
    aspect-ratio: 4535 / 2389;
  }

  .service-gallery--tile .ikea-gallery-countertop {
    aspect-ratio: 2824 / 1287;
  }

  .service-gallery--tile .tile-gallery-inspiration > img,
  .service-gallery--tile .ikea-gallery-custom > img {
    object-fit: cover;
    background: var(--paper);
  }

  .service-gallery--tile .tile-gallery-inspiration > img {
    object-position: left center;
  }

  .service-gallery--tile .ikea-gallery-custom > img {
    object-position: right center;
  }

  .service-gallery--tile .ikea-gallery-panels > img {
    left: 33%;
    right: auto;
    width: 67%;
    object-fit: cover;
    object-position: center;
  }

  .service-gallery--tile .ikea-gallery-countertop > img {
    object-fit: cover;
    object-position: center 54%;
  }

  .service-gallery--tile .tile-gallery-inspiration::after,
  .service-gallery--tile .ikea-gallery-custom::after,
  .service-gallery--tile .ikea-gallery-panels::after,
  .service-gallery--tile .ikea-gallery-countertop::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .service-gallery--tile .tile-gallery-inspiration::after {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, 0) 43%,
      rgba(255, 253, 249, 0.72) 56%,
      var(--paper) 65%
    );
  }

  .service-gallery--tile .ikea-gallery-countertop::after {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, 0) 43%,
      rgba(255, 253, 249, 0.72) 66%,
      var(--paper) 82%
    );
  }

  .service-gallery--tile .ikea-gallery-custom::after {
    background: linear-gradient(
      90deg,
      var(--paper) 13%,
      rgba(255, 253, 249, 0.72) 20%,
      rgba(255, 253, 249, 0) 35%
    );
  }

  .service-gallery--tile .ikea-gallery-panels::after {
    background: linear-gradient(
      90deg,
      var(--paper) 35%,
      rgba(255, 253, 249, 0.72) 45%,
      rgba(255, 253, 249, 0) 57%
    );
  }

  .service-gallery--tile .tile-gallery-inspiration .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-custom .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-panels .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-countertop .tile-gallery-copy {
    z-index: 2;
  }
}

@media (max-width: 820px) {
  .service-gallery--tile .tile-gallery-inspiration .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-custom .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-panels .tile-gallery-copy,
  .service-gallery--tile .ikea-gallery-countertop .tile-gallery-copy {
    z-index: 2;
    margin-top: -72px;
    padding-top: 92px;
    border: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 249, 0) 0,
      var(--paper) 72px
    );
    color: var(--navy);
    box-shadow: none;
  }
}

/* Keep the IKEA process visibly connected to the gallery above it. */
.ikea-kitchens-page .service-content-section {
  padding-bottom: 28px;
}

.ikea-kitchens-page .service-process {
  padding-top: 38px;
}

/* Fixed site-wide return-to-top control. */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(1, 30, 57, 0.92);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(1, 30, 57, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform 180ms ease, background-color 160ms ease, opacity 180ms ease, visibility 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 7px;
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
  transform: rotate(45deg);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #06345e;
  transform: translateY(-3px);
}

.service-area-line {
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-related-projects {
  margin: 28px auto 0;
  text-align: center;
}

.service-related-projects a {
  color: var(--navy);
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.2;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
}

.service-process .service-related-projects {
  margin-top: 0;
  margin-bottom: 58px;
}

.trim-page .service-content-section {
  padding-bottom: 28px;
}

.trim-page .service-process {
  padding-top: 38px;
}

@media (max-width: 680px) {
  .service-related-projects a {
    font-size: 1.7rem;
  }

  .service-process .service-related-projects {
    margin-bottom: 42px;
  }

  .trim-page .service-content-section {
    padding-bottom: 22px;
  }

  .trim-page .service-process {
    padding-top: 34px;
  }
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(191, 118, 41, 0.32);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .ikea-kitchens-page .service-content-section {
    padding-bottom: 20px;
  }

  .ikea-kitchens-page .service-process {
    padding-top: 34px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* Tile service: alternating editorial fades and unobstructed photography. */
.tile-page .service-content-section {
  padding-bottom: 28px;
}

.tile-page .service-process {
  padding-top: 38px;
}

.tile-page .tile-gallery-inspiration > img {
  transform: scaleX(-1);
}

@media (min-width: 821px) {
  .tile-page .tile-gallery-panel {
    isolation: isolate;
    min-height: 0;
    background: var(--paper);
  }

  .tile-page .tile-gallery-inspiration {
    aspect-ratio: 16 / 9;
  }

  .tile-page .tile-gallery-feature {
    aspect-ratio: 4 / 3;
  }

  .tile-page .tile-gallery-craft {
    aspect-ratio: 3 / 2;
  }

  .tile-page .tile-gallery-panel > img {
    object-fit: cover;
  }

  .tile-page .tile-gallery-inspiration > img {
    left: -18%;
    right: auto;
    width: 118%;
    object-position: left center;
  }

  .tile-page .tile-gallery-feature > img {
    left: 33%;
    right: auto;
    width: 67%;
    object-position: center;
  }

  .tile-page .tile-gallery-craft > img {
    object-position: left center;
  }

  .tile-page .tile-gallery-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .tile-page .tile-gallery-inspiration::after,
  .tile-page .tile-gallery-craft::after {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, 0) 43%,
      rgba(255, 253, 249, 0.72) 62%,
      var(--paper) 78%
    );
  }

  .tile-page .tile-gallery-feature::after {
    background: linear-gradient(
      90deg,
      var(--paper) 34%,
      rgba(255, 253, 249, 0) 60%
    );
  }

  .tile-page .tile-gallery-copy,
  .tile-page .tile-gallery-feature .tile-gallery-copy,
  .tile-page .tile-gallery-craft .tile-gallery-copy {
    z-index: 2;
    width: min(500px, 42%);
  }

  .tile-page .tile-gallery-inspiration .tile-gallery-copy,
  .tile-page .tile-gallery-craft .tile-gallery-copy {
    margin-right: 0;
    margin-left: auto;
  }

  .tile-page .tile-gallery-feature .tile-gallery-copy {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .tile-page .service-content-section {
    padding-bottom: 20px;
  }

  .tile-page .service-process {
    padding-top: 34px;
  }

  .tile-page .tile-gallery-copy,
  .tile-page .tile-gallery-feature .tile-gallery-copy,
  .tile-page .tile-gallery-craft .tile-gallery-copy {
    z-index: 2;
    margin-top: -72px;
    padding-top: 92px;
    border: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 249, 0) 0,
      rgba(255, 253, 249, 0.92) 58px,
      var(--paper) 72px
    );
    color: var(--navy);
    box-shadow: none;
  }
}

/* Trim service: editorial fades keep the carpentry visible behind the copy. */
@media (min-width: 821px) {
  .trim-page .trim-gallery-panel {
    isolation: isolate;
    min-height: 0;
    background: var(--paper);
  }

  .trim-page .trim-gallery-mantel {
    aspect-ratio: 16 / 9;
  }

  .trim-page .trim-gallery-doors {
    aspect-ratio: 4 / 3;
  }

  .trim-page .trim-gallery-hinge {
    aspect-ratio: 3 / 2;
    padding: clamp(24px, 5vw, 64px);
  }

  .trim-page .trim-gallery-panel > img,
  .trim-page .trim-gallery-hinge > img {
    inset: 0;
    right: auto;
    height: 100%;
    object-fit: cover;
  }

  .trim-page .trim-gallery-mantel > img {
    left: 0;
    width: 78%;
    object-position: center;
  }

  .trim-page .trim-gallery-doors > img {
    left: 30%;
    width: 70%;
    object-position: center;
  }

  .trim-page .trim-gallery-hinge > img {
    left: 0;
    width: 100%;
    object-position: left center;
  }

  .trim-page .trim-gallery-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .trim-page .trim-gallery-mantel::after,
  .trim-page .trim-gallery-hinge::after {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, 0) 45%,
      rgba(255, 253, 249, 0.76) 64%,
      var(--paper) 78%
    );
  }

  .trim-page .trim-gallery-doors::after {
    background: linear-gradient(
      90deg,
      var(--paper) 30%,
      rgba(255, 253, 249, 0.74) 42%,
      rgba(255, 253, 249, 0) 58%
    );
  }

  .trim-page .trim-gallery-copy,
  .trim-page .trim-gallery-mantel .trim-gallery-copy,
  .trim-page .trim-gallery-doors .trim-gallery-copy,
  .trim-page .trim-gallery-hinge .trim-gallery-copy {
    z-index: 2;
    width: min(500px, 42%);
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(15, 34, 51, 0.92);
    color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 52px rgba(8, 19, 29, 0.24);
  }

  .trim-page .trim-gallery-mantel .trim-gallery-copy,
  .trim-page .trim-gallery-hinge .trim-gallery-copy {
    margin-right: 0;
    margin-left: auto;
  }

  .trim-page .trim-gallery-doors .trim-gallery-copy {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .trim-page .trim-gallery-copy,
  .trim-page .trim-gallery-mantel .trim-gallery-copy,
  .trim-page .trim-gallery-doors .trim-gallery-copy,
  .trim-page .trim-gallery-hinge .trim-gallery-copy {
    z-index: 2;
    margin-top: -72px;
    padding-top: 92px;
    border: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 249, 0) 0,
      rgba(255, 253, 249, 0.92) 58px,
      var(--paper) 72px
    );
    color: var(--navy);
    box-shadow: none;
  }
}

/* Bathroom service: finished room, visible precision and hidden preparation. */
.bathroom-page .service-content-section {
  padding-bottom: 28px;
}

.bathroom-page .service-process {
  padding-top: 38px;
}

.bathroom-gallery {
  grid-template-columns: 1fr;
}

.bathroom-gallery-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 118, 41, 0.72);
  border-radius: 7px;
}

@media (min-width: 821px) {
  .bathroom-gallery-panel {
    isolation: isolate;
    display: flex;
    min-height: 0;
    padding: clamp(24px, 5vw, 64px);
    align-items: center;
    background: var(--paper);
  }

  .bathroom-gallery-finished {
    aspect-ratio: 16 / 9;
  }

  .bathroom-gallery-details,
  .bathroom-gallery-hidden {
    aspect-ratio: 4 / 3;
  }

  .bathroom-gallery-panel > img {
    position: absolute;
    top: -1px;
    bottom: -1px;
    z-index: 0;
    height: calc(100% + 2px);
    object-fit: cover;
  }

  .bathroom-gallery-finished > img,
  .bathroom-gallery-hidden > img {
    left: calc(30% - 1px);
    width: calc(70% + 2px);
    object-position: center;
  }

  .bathroom-gallery-details > img {
    left: -1px;
    width: calc(78% + 2px);
    object-position: center;
  }

  .bathroom-gallery-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .bathroom-gallery-finished::after,
  .bathroom-gallery-hidden::after {
    background: linear-gradient(
      90deg,
      var(--paper) 30%,
      rgba(255, 253, 249, 0.74) 42%,
      rgba(255, 253, 249, 0) 59%
    );
  }

  .bathroom-gallery-details::after {
    background: linear-gradient(
      90deg,
      rgba(255, 253, 249, 0) 45%,
      rgba(255, 253, 249, 0.76) 64%,
      var(--paper) 78%
    );
  }

  .bathroom-gallery-copy {
    position: relative;
    z-index: 2;
    width: min(500px, 42%);
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(15, 34, 51, 0.92);
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.94rem, 1.25vw, 1.05rem);
    line-height: 1.72;
    box-shadow: 0 20px 52px rgba(8, 19, 29, 0.24);
  }

  .bathroom-gallery-finished .bathroom-gallery-copy,
  .bathroom-gallery-hidden .bathroom-gallery-copy {
    margin-right: auto;
    margin-left: 0;
  }

  .bathroom-gallery-details .bathroom-gallery-copy {
    margin-right: 0;
    margin-left: auto;
  }
}

.bathroom-gallery-copy p {
  margin: 0;
}

.bathroom-gallery-copy p + p {
  margin-top: 1.15em;
}

@media (max-width: 820px) {
  .bathroom-page .service-content-section {
    padding-bottom: 20px;
  }

  .bathroom-page .service-process {
    padding-top: 34px;
  }

  .bathroom-gallery-panel {
    display: grid;
    width: 100%;
    min-height: 0;
    background: #fff;
  }

  .bathroom-gallery-panel > img {
    position: relative;
    width: calc(100% + 2px);
    max-width: none;
    margin: -1px -1px 0;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    background: #eee8de;
  }

  .bathroom-gallery-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: -72px 0 0;
    padding: 92px 24px 30px;
    border: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 249, 0) 0,
      rgba(255, 253, 249, 0.92) 58px,
      var(--paper) 72px
    );
    color: var(--navy);
    font-size: 0.98rem;
    line-height: 1.67;
    box-shadow: none;
  }
}

/* Section rhythm: avoid large blank gaps that resemble the end of a page. */
.home-about-content {
  padding-bottom: 40px;
}

.home-services-content {
  padding-top: 44px;
  padding-bottom: 76px;
}

.home-service-area {
  margin-top: 34px;
  padding: 28px 32px;
  border: 1px solid rgba(191, 118, 41, 0.72);
  background: #f0e9dd;
}

.home-service-area .eyebrow {
  margin-bottom: 7px;
}

.home-service-area h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.home-service-area p {
  margin: 7px 0;
  color: #526171;
}

.home-service-area strong {
  color: var(--navy);
}

.home-service-area small {
  display: block;
  margin-top: 16px;
  color: #68717b;
  font-size: 0.82rem;
}

.service-content-section {
  padding-bottom: 64px;
}

.service-scope-inner {
  padding-top: 76px;
  padding-bottom: 76px;
}

.service-process {
  padding-top: 76px;
  padding-bottom: 64px;
}

.service-cta {
  padding-bottom: 72px;
}

@media (max-width: 680px) {
  .home-about-content {
    padding-bottom: 28px;
  }

  .home-services-content {
    padding-top: 36px;
    padding-bottom: 58px;
  }

  .home-service-area {
    margin-top: 22px;
    padding: 24px 20px;
  }

  .service-content-section {
    padding-bottom: 46px;
  }

  .service-scope-inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .service-process {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .service-cta {
    padding-bottom: 56px;
  }
}

/* These two pages flow directly from gallery to process and stay tighter. */
.ikea-kitchens-page .service-content-section,
.tile-page .service-content-section {
  padding-bottom: 28px;
}

.ikea-kitchens-page .service-process,
.tile-page .service-process {
  padding-top: 38px;
}

@media (max-width: 680px) {
  .ikea-kitchens-page .service-content-section,
  .tile-page .service-content-section {
    padding-bottom: 20px;
  }

  .ikea-kitchens-page .service-process,
  .tile-page .service-process {
    padding-top: 34px;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    padding-top: 3px;
    padding-bottom: 5px;
  }

  .gwenns-brand {
    flex: 0 0 auto;
    margin: 0 auto;
    gap: 6px;
    height: 38px;
  }

  .gwenns-brand .nav-bathtub {
    width: 54px;
    height: 36px;
  }

  .gwenns-brand .nav-wordmark {
    width: 98px;
    height: 31px;
  }

  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav.open {
    position: static;
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    max-height: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3.2vw, 24px);
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 3px 0;
    font-size: clamp(0.73rem, 2.7vw, 0.9rem);
    line-height: 1.2;
    white-space: nowrap;
  }

  .site-nav .nav-cta {
    margin: 0;
    padding: 5px 11px;
    font-size: 0;
    text-align: center;
  }

  .site-nav .nav-cta::after {
    content: "Estimate";
    font-size: clamp(0.73rem, 2.7vw, 0.9rem);
  }
}

@media (max-width: 380px) {
  .nav-wrap {
    padding-top: 2px;
    padding-bottom: 4px;
  }

  .gwenns-brand {
    height: 32px;
  }

  .gwenns-brand .nav-bathtub {
    width: 46px;
    height: 31px;
  }

  .gwenns-brand .nav-wordmark {
    width: 84px;
    height: 27px;
  }

  .site-nav,
  .site-nav.open {
    gap: 7px;
  }

  .site-nav a {
    font-size: 0.7rem;
  }

  .site-nav .nav-cta {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .site-nav .nav-cta::after {
    font-size: 0.7rem;
  }
}

/* Phone galleries: fade the final 20% of each photograph into the page. */
@media (max-width: 820px) {
  .service-gallery--trim .trim-gallery-panel > img,
  .service-gallery--trim .trim-gallery-hinge > img,
  .service-gallery--tile .tile-gallery-panel > img,
  .bathroom-gallery-panel > img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 80%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 80%,
      transparent 100%
    );
  }

  .trim-page .trim-gallery-copy,
  .trim-page .trim-gallery-mantel .trim-gallery-copy,
  .trim-page .trim-gallery-doors .trim-gallery-copy,
  .trim-page .trim-gallery-hinge .trim-gallery-copy,
  .tile-page .tile-gallery-copy,
  .tile-page .tile-gallery-feature .tile-gallery-copy,
  .tile-page .tile-gallery-craft .tile-gallery-copy,
  .ikea-kitchens-page .tile-gallery-copy,
  .ikea-kitchens-page .ikea-gallery-custom .tile-gallery-copy,
  .ikea-kitchens-page .ikea-gallery-panels .tile-gallery-copy,
  .ikea-kitchens-page .ikea-gallery-countertop .tile-gallery-copy,
  .bathroom-gallery-copy {
    margin-top: 0;
    padding-top: 24px;
    background: var(--paper);
  }
}

/* Unified site footer. */
.site-footer {
  padding: 0;
  border-top: 2px solid var(--gold);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand-strip {
  min-height: 0;
  gap: 18px;
  padding: 26px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.footer-line {
  width: min(72px, 7vw);
  height: 1px;
  background: rgba(191, 118, 41, 0.9);
}

.footer-divider {
  width: 1px;
  height: 30px;
}

.footer-wrap,
.service-page .footer-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.footer-wrap > :first-child {
  text-align: left;
}

.footer-wrap > :last-child {
  text-align: right;
}

.footer-wrap p {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px 18px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

@media (min-width: 681px) {
  .footer-wrap,
  .service-page .footer-wrap {
    width: min(calc(100% - 80px), 1040px);
    grid-template-columns: 2fr 1fr;
    min-height: 76px;
    padding-top: 20px;
    padding-bottom: 24px;
    font-size: 1.22rem;
    text-align: center;
  }

  .footer-wrap > :first-child,
  .footer-wrap > :last-child {
    text-align: center;
  }

  .footer-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 12px;
  }

  .footer-contact a {
    font-size: 1.22rem;
  }
}

@media (max-width: 680px) {
  .footer-brand-strip {
    flex-wrap: nowrap;
    gap: 9px;
    padding: 20px 14px 15px;
  }

  .footer-line {
    display: none;
  }

  .footer-divider {
    display: block;
    height: 25px;
  }

  .footer-tagline {
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    white-space: nowrap;
  }

  .footer-wordmark {
    font-size: clamp(1.3rem, 6vw, 1.65rem);
  }

  .footer-wrap,
  .service-page .footer-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 20px;
    text-align: center;
  }

  .footer-wrap > :first-child,
  .footer-wrap > :last-child {
    text-align: center;
  }

  .footer-contact {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px 16px;
  }
}

@media (max-width: 360px) {
  .footer-brand-strip {
    gap: 7px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer-tagline {
    font-size: 0.78rem;
  }

  .footer-wordmark {
    font-size: 1.25rem;
  }
}

/* Bathroom inspiration test page. */
.bathroom-inspiration-invite {
  padding: 4px 0 clamp(46px, 6vw, 76px);
  background: var(--paper);
}

.bathroom-inspiration-invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  padding: clamp(30px, 4.5vw, 54px);
  border: 1px solid rgba(191, 118, 41, 0.72);
  background: #f0e9dd;
}

.bathroom-inspiration-invite-box h2,
.inspiration-intro h1,
.inspiration-heading h2,
.inspiration-next-step h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1.03;
}

.bathroom-inspiration-invite-box h2 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
}

.bathroom-inspiration-invite-box p:not(.service-kicker) {
  max-width: 700px;
  margin: 14px 0 0;
  color: #5f6b7a;
}

.inspiration-intro {
  padding: clamp(62px, 8vw, 108px) 0 clamp(52px, 7vw, 92px);
  background: var(--paper);
}

.inspiration-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: start;
}

.inspiration-intro h1 {
  max-width: 670px;
  font-size: clamp(3.7rem, 7vw, 7rem);
}

.inspiration-intro-copy {
  padding-top: 30px;
  color: #526171;
  font-size: 1.08rem;
  line-height: 1.8;
}

.inspiration-intro-copy p {
  margin: 0;
}

.inspiration-intro-copy p + p {
  margin-top: 18px;
}

.inspiration-explorer {
  padding: clamp(56px, 7vw, 92px) 0 clamp(70px, 8vw, 112px);
  background: #fff;
}

.inspiration-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.inspiration-heading h2,
.inspiration-next-step h2 {
  font-size: clamp(2.7rem, 5.2vw, 5rem);
}

.inspiration-heading > p:last-child {
  max-width: 720px;
  margin: 17px 0 0;
  color: #5f6b7a;
}

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.inspiration-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(191, 118, 41, 0.72);
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.inspiration-card img,
.inspiration-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.inspiration-card img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.inspiration-card-shade {
  z-index: 1;
  background: linear-gradient(to top, rgba(1, 30, 57, 0.96) 0%, rgba(1, 30, 57, 0.74) 31%, rgba(1, 30, 57, 0.08) 72%);
}

.inspiration-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 185px;
  padding: 26px 28px 24px;
}

.inspiration-card-copy strong {
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
}

.inspiration-card-copy small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.94rem;
  line-height: 1.55;
}

.inspiration-card-copy em {
  margin-top: auto;
  padding-top: 17px;
  color: #f1a64e;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inspiration-card:hover img {
  transform: scale(1.045);
}

.inspiration-card:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.inspiration-next-step {
  padding: 0 0 clamp(76px, 9vw, 126px);
  background: #fff;
}

.inspiration-next-step-box {
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(191, 118, 41, 0.72);
  background: #f0e9dd;
}

.inspiration-next-step-box > p:not(.service-kicker) {
  max-width: 850px;
  margin: 18px 0 0;
  color: #526171;
  font-size: 1.04rem;
  line-height: 1.75;
}

.inspiration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 30px;
}

.inspiration-text-link {
  color: var(--navy);
  font-family: "Playfair Display Supplied Italic", "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

@media (max-width: 900px) {
  .inspiration-intro-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inspiration-intro-copy {
    max-width: 720px;
    padding-top: 14px;
  }

  .inspiration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bathroom-inspiration-invite-box {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bathroom-inspiration-invite-box .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .inspiration-intro {
    padding-top: 42px;
  }

  .inspiration-intro h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .inspiration-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inspiration-card {
    min-height: 360px;
  }

  .inspiration-card-copy {
    min-height: 174px;
    padding: 23px 22px 21px;
  }

  .inspiration-next-step-box,
  .bathroom-inspiration-invite-box {
    padding: 28px 24px;
  }

  .inspiration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inspiration-actions .button {
    width: 100%;
    text-align: center;
  }
}
.home-anchor {
  scroll-margin-top: 102px;
}

.reviews-section {
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(191, 118, 41, 0.07), transparent 42%),
    var(--cream);
}

.reviews-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 38px;
}

.reviews-heading h2 {
  margin-bottom: 12px;
}

.reviews-intro {
  max-width: 680px;
  margin: 0;
  color: #526171;
  font-size: 1.05rem;
}

.reviews-score {
  min-width: 210px;
  padding: 22px 26px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
}

.reviews-score > span {
  display: block;
}

.reviews-score-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 0.95;
}

.review-stars {
  color: #e59a18;
  font-family: Arial, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
}

.reviews-score .review-stars {
  margin: 9px 0 4px;
}

.reviews-score > span:last-child {
  color: #526171;
  font-size: 0.84rem;
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(1, 30, 57, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(1, 30, 57, 0.07);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.google-attribution {
  color: #5f6368;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.review-card blockquote {
  margin: 0;
  color: #263746;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(1, 30, 57, 0.1);
}

.review-card footer strong {
  color: var(--navy);
  font-size: 0.94rem;
}

.review-card footer span {
  color: #727b84;
  font-size: 0.78rem;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 30px;
  margin-top: 34px;
}

.reviews-write-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

@media (max-width: 980px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .reviews-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reviews-score {
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 24px;
  }

  .reviews-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reviews-actions .button,
  .reviews-write-link {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .home-anchor {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 680px) {
  .home-anchor {
    scroll-margin-top: 68px;
  }
}

/* IKEA ad landing page: put the estimate path and relevant proof first. */
.ikea-kitchens-page .service-content-section {
  padding-top: clamp(44px, 6vw, 78px);
}

.ikea-lead-head {
  max-width: 920px;
}

.ikea-lead-cta {
  min-height: 56px;
  margin-top: 26px;
  padding-inline: 30px;
  box-shadow: 0 12px 30px rgba(191, 118, 41, 0.2);
}

.ikea-review-proof {
  margin: 38px 0 42px;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid rgba(191, 118, 41, 0.62);
  background: #f0e9dd;
}

.ikea-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 24px;
}

.ikea-review-summary .service-kicker {
  margin-bottom: 7px;
}

.ikea-review-summary h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.ikea-review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--navy);
  white-space: nowrap;
}

.ikea-review-rating span,
.ikea-mini-stars {
  color: #e59a18;
  font-family: Arial, sans-serif;
  letter-spacing: 0.09em;
}

.ikea-review-rating span {
  font-size: 1.08rem;
}

.ikea-review-rating strong {
  margin-top: 3px;
  font-size: 0.9rem;
}

.ikea-mini-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ikea-mini-reviews article {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-top: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 8px 24px rgba(1, 30, 57, 0.06);
}

.ikea-mini-stars {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.ikea-mini-reviews blockquote {
  margin: 0;
  color: #263746;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  line-height: 1.58;
}

.ikea-mini-reviews article > p {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: auto 0 0;
  padding-top: 18px;
}

.ikea-estimator-note { max-width:480px; margin:12px 0 0; color:var(--navy); font-size:.95rem; line-height:1.5; }
.ikea-kitchens-page { padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)); }
.ikea-floating-cta { position:fixed; z-index:95; right:22px; bottom:calc(18px + env(safe-area-inset-bottom,0px)); display:grid; gap:7px; padding:10px 12px; border:1px solid var(--gold); border-radius:18px; background:var(--navy); box-shadow:0 6px 24px rgba(1,30,57,.25); text-align:center; max-width:calc(100% - 28px); }
.ikea-floating-cta .button { min-height:52px; text-align:center; line-height:1.3; padding:10px 22px; }
.ikea-floating-cta span { color:#fff; font-size:.8rem; }
.ikea-floating-cta a:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.ikea-kitchens-page .back-to-top { bottom:calc(130px + env(safe-area-inset-bottom,0px)); }
@media (max-width:680px) {
  .ikea-floating-cta { left:14px; right:14px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); }
  .ikea-floating-cta .button { width:100%; padding-inline:12px; }
  .ikea-kitchens-page .service-cta-box .button { white-space:normal; text-align:center; }
}
@media print { .ikea-floating-cta { display:none; }.ikea-kitchens-page { padding-bottom:0; } }

.ikea-mini-reviews strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.ikea-mini-reviews article > p span {
  color: #68717b;
  font-size: 0.76rem;
}

@media (max-width: 680px) {
  .ikea-kitchens-page .service-content-section {
    padding-top: 30px;
  }

  .ikea-kitchens-page .service-intro-grid h1 {
    font-size: clamp(2.55rem, 12vw, 3.5rem);
    line-height: 1.02;
  }

  .ikea-lead-cta {
    width: 100%;
    min-height: 58px;
    margin-top: 22px;
    padding-inline: 18px;
    text-align: center;
  }

  .ikea-review-proof {
    margin: 28px 0 30px;
    padding: 17px 14px 14px;
  }

  .ikea-review-summary {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .ikea-review-summary h2 {
    font-size: 1.48rem;
    line-height: 1.12;
  }

  .ikea-review-rating {
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
  }

  .ikea-mini-reviews {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ikea-mini-reviews article {
    padding: 18px;
  }

  .ikea-mini-reviews blockquote {
    font-size: 0.98rem;
    line-height: 1.52;
  }
}
