:root {
  --ink: #070706;
  --ink-soft: #11100e;
  --panel: #171514;
  --panel-2: #221e1a;
  --line: rgba(224, 194, 126, 0.26);
  --gold: #d5b15f;
  --gold-bright: #f0d58c;
  --paper: #f7f2e8;
  --muted: #c8c0b3;
  --ash: #8d9695;
  --oxide: #7e332b;
  --teal: #7da6a0;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open,
body.gallery-modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.82);
}

.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-mark::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 213, 140, 0.48);
  content: "";
}

.brand-copy {
  display: grid;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-copy span:first-child {
  color: var(--gold-bright);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a,
.header-cta {
  color: #f6f1e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 12px 16px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: var(--gold-bright);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  width: min(calc(100% - clamp(40px, 9vw, 116px)), 1280px);
  height: clamp(250px, 42vw, 430px);
  margin: 78px auto 0;
  border-bottom: 1px solid var(--line);
  background-image: url("assets/hero-remodel.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 78px) clamp(20px, 5vw, 58px) clamp(58px, 8vw, 92px);
}

.eyebrow,
.section-label,
.card-kicker {
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  text-wrap: pretty;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(44px, 6vw, 78px);
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #e2dbcf;
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  padding: 15px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #11100e;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-bright);
}

.button-ghost {
  border-color: rgba(247, 242, 232, 0.52);
  color: var(--paper);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
  padding: 26px 0 0;
}

.hero-proof div {
  min-width: 0;
}

.hero-proof dt {
  color: var(--gold-bright);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.hero-proof dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

section,
.site-footer {
  padding-right: clamp(20px, 5vw, 58px);
  padding-left: clamp(20px, 5vw, 58px);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(213, 177, 95, 0.08), transparent 32%),
    var(--panel);
}

.intro,
.services,
.process,
.portfolio,
.contact {
  padding-top: clamp(76px, 10vw, 132px);
  padding-bottom: clamp(76px, 10vw, 132px);
}

.intro-grid,
.section-heading,
.portfolio-layout,
.contact,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 6vw, 84px);
}

.intro-copy {
  color: #ddd5c8;
  font-size: 18px;
}

.values-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.values-list div {
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  padding-top: 12px;
}

.values-list strong,
.values-list span {
  display: block;
}

.values-list strong {
  color: #fff8ec;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.section-label {
  max-width: var(--max);
  margin: 0 auto 24px;
}

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

.section-heading h2 {
  max-width: 820px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.6fr);
  gap: 34px;
  align-items: end;
}

.section-heading.split p:last-child {
  margin-bottom: 10px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.service-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.service-card div {
  padding: 28px;
}

.service-card h3 {
  margin-bottom: 14px;
  color: #fff8ec;
}

.service-card p:not(.card-kicker) {
  margin-bottom: 0;
  color: var(--muted);
}

.project-browser {
  overflow: hidden;
  background: #f4f0e8;
  color: #171514;
  padding: 0 0 clamp(52px, 7vw, 82px);
}

.project-browser-backdrop {
  min-height: 270px;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.74), rgba(7, 7, 6, 0.62)),
    url("assets/exterior-remodel.png") center / cover;
  padding: clamp(58px, 8vw, 90px) clamp(20px, 5vw, 58px) 146px;
}

.project-browser .section-heading {
  color: var(--paper);
}

.project-browser .section-heading h2 {
  max-width: 780px;
}

.category-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  max-width: min(1820px, calc(100% - clamp(36px, 8vw, 112px)));
  margin: -116px auto 0;
}

.category-tab {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 0.82 / 1;
  border: 0;
  background: #11100e;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 0;
  text-align: center;
}

.category-tab.is-active::after {
  border-color: var(--gold-bright);
}

.category-tab.is-active::before {
  background: rgba(7, 7, 6, 0.24);
}

.category-tab::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(18, 45, 73, 0.5);
  content: "";
  transition: background 180ms ease;
}

.category-tab::after {
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 2px solid transparent;
  content: "";
  transition: border-color 180ms ease;
}

.category-tab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.category-tab span {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-size: clamp(19px, 1.85vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
}

.category-tab:hover img,
.category-tab:focus-visible img {
  transform: scale(1.08);
}

.category-tab:hover::before,
.category-tab:focus-visible::before {
  background: rgba(7, 7, 6, 0.28);
}

.category-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.gallery-launcher {
  max-width: var(--max);
  margin: clamp(36px, 6vw, 64px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(7, 7, 6, 0.14);
  border-bottom: 1px solid rgba(7, 7, 6, 0.14);
  padding: 22px 0;
}

.gallery-launcher .card-kicker,
.gallery-launcher p {
  margin-bottom: 0;
}

.gallery-launcher p:not(.card-kicker) {
  color: #4f524d;
  font-size: 13px;
  font-weight: 700;
}

.gallery-filter-link {
  border: 1px solid rgba(7, 7, 6, 0.28);
  background: transparent;
  color: #171514;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.gallery-filter-link.is-active,
.gallery-filter-link:hover,
.gallery-filter-link:focus-visible {
  border-color: var(--gold);
  background: #171514;
  color: var(--gold-bright);
}

.gallery-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 7, 6, 0.78);
  backdrop-filter: blur(6px);
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  gap: 22px;
  border: 1px solid rgba(224, 194, 126, 0.34);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: #171514;
  padding: clamp(18px, 3vw, 34px);
}

.gallery-modal-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 7, 6, 0.14);
  padding-bottom: 18px;
}

.gallery-modal-header h2 {
  margin: 4px 0 6px;
  color: #171514;
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: 0;
}

.gallery-modal-header p {
  margin-bottom: 0;
}

.gallery-modal-header p:not(.card-kicker) {
  color: #4f524d;
  font-size: 13px;
  font-weight: 700;
}

.gallery-modal-close {
  display: grid;
  width: 46px;
  min-width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(7, 7, 6, 0.24);
  background: #171514;
  color: var(--gold-bright);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
  border-color: var(--gold);
  background: #070706;
}

.gallery-modal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 7, 6, 0.14);
  background: #fffdf8;
  box-shadow: 0 18px 34px rgba(7, 7, 6, 0.14);
}

.gallery-card-inner {
  display: grid;
  height: 100%;
  color: #171514;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #11100e;
}

.gallery-card-copy {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.gallery-card h3 {
  margin: 0;
  color: #171514;
}

.gallery-card p {
  margin: 0;
  color: #62615b;
  font-size: 14px;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(7, 7, 6, 0.22);
  background: rgba(255, 253, 248, 0.7);
  color: #62615b;
  padding: 28px;
  text-align: center;
}

.media-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  background: #efe4ca;
  color: #704f19;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-chip.video {
  background: #dfeeea;
  color: #325d57;
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--teal);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
}

.process-steps article {
  min-height: 276px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.46);
  padding: 30px;
}

.process-steps span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.process-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.feature-image,
.feature-panel {
  border: 1px solid var(--line);
}

.feature-image {
  min-height: 430px;
  overflow: hidden;
  background: var(--panel);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-panel {
  background:
    linear-gradient(180deg, rgba(126, 51, 43, 0.2), transparent 46%),
    var(--panel);
  padding: clamp(30px, 4vw, 48px);
}

.feature-panel p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: #eee6d9;
  list-style: none;
}

.check-list li {
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  padding-top: 12px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.86), rgba(7, 7, 6, 0.54)),
    url("assets/kitchen-remodel.png") center / cover;
  padding-top: clamp(42px, 7vw, 76px);
  padding-bottom: clamp(42px, 7vw, 76px);
}

.cta-band > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.cta-band div {
  flex: 1 1 auto;
}

.cta-band h2 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 84px);
}

.contact-info > p {
  color: var(--muted);
  font-size: 18px;
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.contact-methods a {
  color: var(--gold-bright);
}

.contact-methods span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  background: #0c0b0a;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}

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

.contact-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(247, 242, 232, 0.18);
  background: #151310;
  color: var(--paper);
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold-bright);
  outline: none;
}

.form-note {
  min-height: 22px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding-top: 26px;
  padding-bottom: 26px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 79px 0 auto;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 7, 6, 0.98);
    padding: 18px;
  }

  .site-nav a {
    width: 100%;
    border-bottom: 1px solid rgba(247, 242, 232, 0.1);
    padding: 16px;
  }

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

  .header-cta {
    justify-self: end;
  }

  .hero-proof,
  .service-grid,
  .process-steps,
  .portfolio-layout,
  .contact,
  .intro-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

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

  .gallery-launcher {
    max-width: calc(100% - 40px);
  }

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

  .process-steps article {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-copy span:last-child {
    max-width: 168px;
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding-top: 38px;
  }

  .hero-bg {
    width: calc(100% - 40px);
    height: clamp(180px, 50vw, 280px);
    margin-top: 78px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-proof {
    gap: 12px;
  }

  .hero-proof div {
    border-top: 1px solid rgba(247, 242, 232, 0.12);
    padding-top: 14px;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .category-tabs {
    gap: 12px;
    max-width: calc(100% - 32px);
  }

  .category-tab {
    aspect-ratio: 0.88 / 1;
  }

  .category-tab span {
    padding: 16px;
    font-size: clamp(16px, 4.8vw, 21px);
    letter-spacing: 0.03em;
  }

  .gallery-launcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-launcher .gallery-filter-link {
    width: 100%;
  }

  .gallery-modal {
    padding: 12px;
  }

  .gallery-modal-panel {
    max-height: calc(100vh - 24px);
    gap: 16px;
    padding: 16px;
  }

  .gallery-modal-header {
    gap: 14px;
  }

  .gallery-modal-header h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .gallery-modal-close {
    width: 42px;
    min-width: 42px;
  }

  .gallery-modal-filters .gallery-filter-link {
    flex: 1 1 calc(50% - 8px);
  }

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