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

:root {
  --red: #DA0019;
  --black: #111110;
  --white: #ffffff;
  --gray-100: #f5f4f2;
  --gray-200: #e8e7e3;
  --gray-500: #888780;
  --gray-800: #2A2C30;
  --structure-gray: #737373;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--black); }

.btn-nav {
  font-size: 14px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--gray-800); }

/* HERO */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 15px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gray-800); }

.btn-outline {
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--black);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: border-color 0.15s;
}
.btn-outline:hover { border-color: var(--gray-500); }

/* METRICS */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.metric {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.metric-num {
  font-size: 26px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* SECTIONS */
.section {
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--gray-200);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 auto 2rem;
  max-width: 760px;
}

.work-description {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 16px;
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: var(--gray-500); }

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: #fdeceb;
  color: var(--red);
}

.tag-warning {
  background: #fef3c7;
  color: #92400e;
}

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  overflow: visible;
}

.work-slot {
  appearance: none;
  color: inherit;
  font: inherit;
  padding: 0;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-200);
  position: relative;
  overflow: visible;
  isolation: isolate;
  cursor: zoom-in;
  transition: border-color 220ms ease, z-index 0s linear 220ms;
}

.gallery-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  opacity: 0;
  transform-origin: center;
  transition: opacity 700ms ease, top 320ms ease, left 320ms ease, width 320ms ease, height 320ms ease, transform 320ms ease;
  pointer-events: none;
  z-index: 1;
}

.work-slot[data-active-layer="0"] [data-layer="0"],
.work-slot[data-active-layer="1"] [data-layer="1"] {
  opacity: 1;
}

.work-slot.is-expanded,
.work-slot:focus-visible {
  z-index: 5;
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.work-slot.is-expanded .gallery-media,
.work-slot:focus-visible .gallery-media {
  overflow: visible;
}

.work-slot.is-expanded .gallery-image,
.work-slot:focus-visible .gallery-image {
  width: var(--expanded-width, 100%);
  height: var(--expanded-height, 100%);
  object-fit: contain;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
}

@media (hover: hover) and (pointer: fine) {
  .work-slot:hover {
    z-index: 5;
  }

  .work-slot:hover .gallery-media {
    overflow: visible;
  }

  .work-slot:hover .gallery-image {
    width: var(--expanded-width, 100%);
    height: var(--expanded-height, 100%);
    object-fit: contain;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgb(0 0 0 / 22%);
  }
}

@media (max-width: 600px) {
  .work-slot:focus .gallery-image,
  .work-slot:focus-visible .gallery-image,
  .work-slot.is-expanded .gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: none;
    box-shadow: none;
  }

  .work-slot:focus .gallery-media,
  .work-slot:focus-visible .gallery-media,
  .work-slot.is-expanded .gallery-media {
    overflow: hidden;
  }
}

.work-slot-label {
  font-size: 12px;
  color: var(--gray-500);
}

/* HOME PROJECT CAROUSEL */
.home-carousel {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.home-photo-marquee {
  overflow: hidden;
  padding: 0.25rem 0;
}

.home-photo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: none;
  will-change: transform;
}

.home-photo-track.is-ready:not(.is-static) {
  animation: home-photo-scroll 240s linear infinite;
}

.home-photo-marquee:hover .home-photo-track,
.home-photo-track:focus-within {
  animation-play-state: paused;
}

@keyframes home-photo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(var(--home-loop-distance, 0px) * -1)); }
}

.home-photo-track.is-static {
  animation: none;
}

.home-photo-card {
  display: block;
  flex: 0 0 clamp(165px, 22vw, 215px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.home-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-photo-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image,
  .work-slot,
  .home-photo-track {
    animation: none;
  }
}

/* CONTACT */
.contact-block {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  width: calc(100% - 4rem);
  margin: 0 auto 3rem;
  max-width: 684px;
}

.contact-block h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.contact-block p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-item {
  font-size: 14px;
  color: #d1d0cb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-item:hover { color: var(--white); }

.contact-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-white {
  font-size: 15px;
  font-weight: 500;
  background: var(--white);
  color: var(--black);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.9; }

.estimate-form {
  margin-top: 2rem;
  text-align: left;
}

.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.estimate-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.estimate-field-wide {
  grid-column: 1 / -1;
}

.estimate-field label {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}

.estimate-field input,
.estimate-field textarea {
  width: 100%;
  border: 1px solid #5c5b57;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  color: var(--white);
  background: #242424;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.estimate-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.estimate-field input:focus,
.estimate-field textarea:focus {
  border-color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.estimate-field input:invalid:not(:placeholder-shown),
.estimate-field textarea:invalid:not(:placeholder-shown) {
  border-color: #fca5a5;
}

.estimate-submit {
  border: 0;
  cursor: pointer;
}

.estimate-submit:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

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

.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.confirmation-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--red);
}

.confirmation-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  text-align: center;
}

.confirmation-brand {
  display: inline-block;
  margin-bottom: 1.75rem;
}

.confirmation-block {
  width: 100%;
  padding: 3.5rem clamp(1.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: 0 18px 50px rgb(17 17 16 / 10%);
  text-align: center;
}

.confirmation-logo {
  width: min(100%, 210px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.confirmation-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #e8f6ed;
  color: #177245;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.confirmation-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.confirmation-block h1 {
  margin-bottom: 0.75rem;
  color: var(--black);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.15;
}

.confirmation-copy {
  max-width: 390px;
  margin: 0 auto 2rem;
  color: var(--gray-500);
}

.confirmation-button {
  display: inline-block;
}

.confirmation-note {
  margin-top: 1.5rem;
  color: var(--gray-500);
  font-size: 12px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer span {
  font-size: 13px;
  color: var(--gray-500);
}

.footer-license {
  white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .metrics { padding: 0 1rem 3rem; grid-template-columns: 1fr 1fr; }
  .section { padding: 2.5rem 1rem; }
  .services { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .home-carousel {
    margin-right: -1rem;
    margin-left: -1rem;
  }
  .home-photo-marquee {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .home-photo-marquee::-webkit-scrollbar { display: none; }
  .home-photo-track {
    animation-duration: 78s;
  }
  .home-photo-track.is-ready:not(.is-static) {
    animation-duration: 78s;
  }
  .home-photo-marquee:hover .home-photo-track,
  .home-photo-track:focus-within {
    animation-play-state: running;
  }
  .contact-block { width: calc(100% - 2rem); margin: 0 1rem 2.5rem; padding: 2rem 1.25rem; }
  .contact-info { flex-direction: column; align-items: center; gap: 1rem; }
  .estimate-fields { grid-template-columns: 1fr; }
  .estimate-field-wide { grid-column: auto; }
  .estimate-submit { width: 100%; }
  footer { padding: 1.25rem 1rem; }
  footer span { width: 100%; }
}
