/* ──────────────────────────────────────────────────────────
   VS7 Painting & Decorating
   Boutique editorial design system
   ────────────────────────────────────────────────────────── */

:root {
  /* Palette — warm, considered, slightly mineral */
  --paper:        #f6f2ec;   /* off-white background */
  --paper-2:      #ece5db;   /* secondary surface */
  --ink:          #1a1814;   /* near-black for text */
  --ink-soft:     #4a443c;   /* secondary text */
  --muted:        #8a8378;   /* tertiary */
  --rule:         #d8cfc1;   /* hairlines */
  --accent:       #8a6a3b;   /* brass / patina */
  --accent-soft:  #b89767;
  --white:        #ffffff;

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ────── Reset / base ────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--ink); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ────── Type ────── */
.display, .h-display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.display {
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
}
.h-display {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
}
.display em, .h-display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

.muted { color: var(--muted); }

/* ────── Buttons ────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--block { width: 100%; }
.btn--small { padding: 11px 20px; font-size: 12px; }

.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  font-weight: 500;
  letter-spacing: .02em;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ────── Header / nav ────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
  background: transparent;
  color: var(--paper);
}
.site-header.is-scrolled {
  background: rgba(246, 242, 236, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  color: var(--ink);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand__mark { display: inline-flex; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand__sub {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: currentColor;
  opacity: .8;
}

.primary-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-cta:hover { background: currentColor; }
.nav-cta:hover { color: var(--paper); }
.is-scrolled .nav-cta:hover { color: var(--paper); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ────── Hero ────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.6) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero .eyebrow { color: rgba(246, 242, 236, .85); }
.hero .lede { color: rgba(246, 242, 236, .92); max-width: 56ch; margin-top: 22px; }
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}
.hero .btn--ghost { color: var(--paper); border-color: var(--paper); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.hero__meta {
  list-style: none;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(246, 242, 236, .25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero__meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta strong {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero__meta span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,242,236,.7);
}

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px; height: 40px;
  border: 1px solid rgba(246,242,236,.5);
  border-radius: 20px;
}
.hero__scroll span {
  display: block;
  width: 2px; height: 6px;
  background: var(--paper);
  margin: 8px auto 0;
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ────── Sections ────── */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section--intro { background: var(--paper); }
.section--work { background: var(--paper); }
.section--services { background: var(--paper-2); }
.section--about { background: var(--paper); }
.section--reviews { background: var(--ink); color: var(--paper); }
.section--reviews .h-display { color: var(--paper); }
.section--reviews .eyebrow { color: rgba(246,242,236,.7); }
.section--reviews .section-lede { color: rgba(246,242,236,.8); }
.section--reviews a { color: var(--accent-soft); border-color: rgba(246,242,236,.3); }
.section--reviews a:hover { color: var(--paper); }
.section--areas { background: var(--paper-2); }
.section--contact { background: var(--paper); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head .section-lede {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section-foot {
  text-align: center;
  margin-top: clamp(36px, 5vw, 64px);
  color: var(--ink-soft);
}
.section-foot a {
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* ────── Intro grid ────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.intro-copy p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

/* ────── Work grid ────── */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.grid--work {
  grid-template-columns: repeat(3, 1fr);
}

.card { display: flex; flex-direction: column; }
.card--work .card__media {
  display: block;
  width: 100%;
  border: 0; padding: 0; margin: 0;
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
button.card__media { cursor: zoom-in; }
.card--work .card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.card--work .card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,24,20,0) 55%, rgba(26,24,20,.6) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card--work .card__media:hover img { transform: scale(1.04); }
.card--work .card__media:hover::after { opacity: 1; }
.card--work .card__media:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.card__body { padding: 18px 4px 0; }
.card__meta {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.card__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0 0 4px;
}
.card__title a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.card--work:hover .card__title a,
.card__title a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}
.card__location {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ────── Services grid ────── */
.grid--services {
  grid-template-columns: repeat(4, 1fr);
}
.service {
  background: var(--paper);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 30px -16px rgba(26,24,20,.18);
}
.service h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.2;
}
.service p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ────── About ────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; }
.about-facts {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.about-facts > div {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.about-facts dt {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.about-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

/* ────── Reviews slider ────── */
.reviews-slider {
  max-width: 820px;
  margin: 0 auto;
}
.reviews-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.reviews-slider__track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .reviews-slider__track { transition: none; }
}
.reviews-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.review {
  background: rgba(246, 242, 236, .04);
  border: 1px solid rgba(246, 242, 236, .12);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  margin: 0;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.review__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review__meta { min-width: 0; }
.review__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: .02em;
}
.review__stars {
  color: var(--accent-soft);
  letter-spacing: .12em;
  font-size: .95rem;
  line-height: 1;
}
.review blockquote {
  margin: 0 0 22px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--paper);
  font-weight: 400;
}
.review__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  font-size: 13px;
  color: rgba(246,242,236,.65);
}
.review__foot time { font-style: normal; }
.review__source {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,242,236,.5);
  padding-left: 16px;
  border-left: 1px solid rgba(246,242,236,.2);
}

.reviews-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: 28px;
}
.reviews-slider__btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(246, 242, 236, .35);
  background: transparent;
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: background .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.reviews-slider__btn:hover:not(:disabled) {
  background: rgba(246, 242, 236, .1);
  border-color: var(--paper);
}
.reviews-slider__btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.reviews-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 242, 236, .25);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.reviews-slider__dots button:hover {
  background: rgba(246, 242, 236, .5);
}
.reviews-slider__dots button[aria-selected="true"] {
  background: var(--accent-soft);
  transform: scale(1.35);
}
.reviews-slider__count {
  text-align: center;
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246,242,236,.5);
}

/* ────── Areas ────── */
.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.areas-list li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.areas-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.areas-list a:hover {
  background: var(--ink);
  color: var(--paper);
}
.areas-list a:hover .areas-list__pin { color: var(--accent-soft); }
.areas-list__pin {
  flex-shrink: 0;
  color: var(--accent);
  transition: color .25s var(--ease);
}
.areas-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ────── Contact ────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-copy p { color: var(--ink-soft); }
.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list__label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  background: var(--paper-2);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -9999px; }
.field label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 106, 59, 0.15);
}
.contact-form .btn { grid-column: 1 / -1; margin-top: 8px; }
.form-foot { grid-column: 1 / -1; font-size: 12px; margin: 0; }

.form-status {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-status.is-success { display: block; background: #2d3a26; color: var(--paper); }
.form-status.is-error   { display: block; background: #5a2424; color: var(--paper); }

/* ────── Footer ────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 28px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246,242,236,.12);
}
.footer-brand .brand__name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  display: block;
}
.footer-brand .brand__sub {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  display: block;
  color: rgba(246,242,236,.7);
  margin-top: 4px;
}
.footer-brand p { margin-top: 18px; color: rgba(246,242,236,.6); max-width: 30ch; }

.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-links a { color: rgba(246,242,236,.85); font-size: 14px; }
.footer-links a:hover { color: var(--accent-soft); }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: var(--paper); font-size: 15px; }
.footer-contact a:hover { color: var(--accent-soft); }
.footer-contact p { margin: 0; color: rgba(246,242,236,.55); }
.social {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; gap: 16px;
}
.social a {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246,242,236,.65);
  border-bottom: 1px solid rgba(246,242,236,.25);
  padding-bottom: 2px;
}
.social a:hover { color: var(--paper); border-color: var(--paper); }

.footer-foot {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-foot p { margin: 0; font-size: 12px; color: rgba(246,242,236,.45); }

/* ────── Lightbox ────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,9,7,.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 36px;
  line-height: 1;
  width: 44px; height: 44px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(246,242,236,.4);
  color: var(--paper);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 18px;
}
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__nav:hover { background: rgba(246,242,236,.1); border-color: var(--paper); }

.lightbox__figure {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  max-height: 100%;
}
.lightbox__figure img {
  width: 100%; max-height: 75vh; object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__figure figcaption {
  color: var(--paper);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}
.lightbox__figure h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin: 0 0 6px;
}
.lightbox__figure .lb-location {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(246,242,236,.65);
  margin: 0 0 14px;
}
.lightbox__figure .lb-desc {
  color: rgba(246,242,236,.85);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   Project sub-page (/projects/<slug>/)
   ────────────────────────────────────────────────────────── */

.project-hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  padding: 140px 0 64px;
}
.project-hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.project-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.75) 100%);
}
.project-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.project-hero .eyebrow {
  color: rgba(246,242,236,.85);
}
.project-hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  letter-spacing: -.01em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--paper);
}
.project-hero p.subtitle {
  font-family: var(--f-display);
  font-style: italic;
  color: rgba(246,242,236,.9);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin: 0 0 28px;
}
.project-hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: rgba(246,242,236,.85);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.project-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246,242,236,.7);
}
.crumbs a {
  color: inherit;
  border-bottom: 1px solid rgba(246,242,236,.3);
  padding-bottom: 2px;
}
.crumbs a:hover { color: var(--paper); border-color: var(--paper); }
.crumbs span.sep { margin: 0 10px; color: rgba(246,242,236,.4); }

/* ── Body sections ── */
.project-body {
  background: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.project-grid .description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}
.project-grid .description p { margin: 0 0 18px; }
.project-grid .description p:first-of-type::first-line {
  font-weight: 500;
}
.project-grid .description a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}
.project-grid .description a:hover { color: var(--ink); border-color: var(--ink); }

.project-facts {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: 96px;
}
.project-facts h2 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 500;
}
.project-facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.project-facts dl > div {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.project-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.project-facts dt {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.project-facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.project-facts ul.services-list {
  list-style: none; padding: 0; margin: 0;
}
.project-facts ul.services-list li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.7;
}
.project-facts ul.services-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 1px;
  background: var(--accent);
}

.houzz-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .04em;
}

/* ── Gallery ── */
.project-gallery {
  background: var(--paper-2);
  padding: clamp(64px, 9vw, 120px) 0;
}
.project-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-gallery .gallery-grid li {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}
.project-gallery .gallery-grid button {
  display: block;
  width: 100%;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.project-gallery .gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-gallery .gallery-grid button:hover img { transform: scale(1.03); }

/* default tile sizing: 2-up, then mosaic via nth-child */
.project-gallery .gallery-grid li { grid-column: span 6; aspect-ratio: 4 / 3; }
.project-gallery .gallery-grid li:nth-child(5n+1) { grid-column: span 8; aspect-ratio: 16 / 10; }
.project-gallery .gallery-grid li:nth-child(5n+2) { grid-column: span 4; aspect-ratio: 4 / 5; }
.project-gallery .gallery-grid li:nth-child(5n+3) { grid-column: span 4; aspect-ratio: 4 / 5; }
.project-gallery .gallery-grid li:nth-child(5n+4) { grid-column: span 8; aspect-ratio: 16 / 10; }

.gallery-empty {
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  color: var(--ink-soft);
}
.gallery-empty p { margin: 0 0 8px; }
.gallery-empty .eyebrow { margin: 0 0 14px; }

/* ── Prev / next ── */
.project-nav {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.project-nav__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-nav__row a {
  display: block;
  padding: 36px var(--gutter);
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.project-nav__row a:hover { background: var(--ink); color: var(--paper); }
.project-nav__row a + a { border-left: 1px solid var(--rule); }
.project-nav__row a.next { text-align: right; }
.project-nav__row .label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.project-nav__row a:hover .label { color: rgba(246,242,236,.6); }
.project-nav__row .title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
}

/* ── CTA strip ── */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--paper);
}
.cta-strip p {
  color: rgba(246,242,236,.8);
  max-width: 54ch;
  margin: 0 auto 28px;
}
.cta-strip .btn--primary { background: var(--paper); color: var(--ink); }
.cta-strip .btn--primary:hover { background: var(--accent); color: var(--paper); }
.cta-strip .btn--ghost { color: var(--paper); border-color: var(--paper); }
.cta-strip .btn--ghost:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 1024px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-facts { position: static; }
  .project-gallery .gallery-grid li,
  .project-gallery .gallery-grid li:nth-child(5n+1),
  .project-gallery .gallery-grid li:nth-child(5n+2),
  .project-gallery .gallery-grid li:nth-child(5n+3),
  .project-gallery .gallery-grid li:nth-child(5n+4) {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 640px) {
  .project-hero { min-height: 70vh; }
  .project-nav__row { grid-template-columns: 1fr; }
  .project-nav__row a + a { border-left: 0; border-top: 1px solid var(--rule); }
  .project-nav__row a.next { text-align: left; }
  .project-gallery .gallery-grid li,
  .project-gallery .gallery-grid li:nth-child(5n+1),
  .project-gallery .gallery-grid li:nth-child(5n+2),
  .project-gallery .gallery-grid li:nth-child(5n+3),
  .project-gallery .gallery-grid li:nth-child(5n+4) {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }
}

/* ────── Reveal animation ────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────── Responsive ────── */
@media (max-width: 1024px) {
  .grid--work { grid-template-columns: repeat(2, 1fr); }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .areas-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; color: inherit; }
  .nav-list {
    position: fixed;
    inset: 0 0 0 0;
    padding: 100px 32px 40px;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 90;
  }
  .nav-list a { font-size: 1.5rem; font-family: var(--f-display); font-weight: 500; letter-spacing: 0; }
  .nav-list .nav-cta {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
    padding: 14px 22px; font-family: var(--f-body); font-size: 12px;
  }
  body.nav-open .nav-list { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .hero { min-height: 90vh; padding-top: 100px; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; padding-top: 22px; }
  .hero__scroll { display: none; }

  .intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 4/4; }
  .about-facts { grid-template-columns: 1fr; gap: 14px; }

  .grid--work { grid-template-columns: 1fr; }
  .grid--services { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }

  .footer-row { grid-template-columns: 1fr; gap: 32px; }

  .lightbox__nav { display: none; }
}

@media (max-width: 420px) {
  .areas-list { grid-template-columns: 1fr; }
  .areas-list a { font-size: 1.15rem; padding: 18px 20px; }
}
