:root {
  --ink: #292827;
  --muted: #68615a;
  --paper: #f6f3ef;
  --warm: #e5ded6;
  --cream: #fffdf9;
  --gold: #b69b7b;
  --copper: #9e5f4b;
  --line: rgba(41, 40, 39, 0.14);
  --shadow: 0 24px 80px rgba(41, 40, 39, 0.14);
  --serif: "Bodoni 72", "Didot", "Playfair Display", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(246, 243, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--cream);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 58px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: auto -20vw 4vh auto;
  width: 58vw;
  height: 34vw;
  min-width: 520px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.58);
  content: "";
  transform: rotate(-8deg);
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: 1fr 0.82fr;
  gap: 14px;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-media img:first-child {
  grid-row: 1 / 3;
}

.hero-media img:nth-child(2) {
  aspect-ratio: 4 / 5;
}

.hero-media img:nth-child(3) {
  aspect-ratio: 4 / 5;
}

.hero-copy {
  position: relative;
  max-width: 560px;
}

.kicker,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 9vw, 9.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
}

h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
}

.hero-copy p:not(.kicker),
.intro-copy p,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  color: var(--cream);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.62);
}

.intro-section,
.section,
.contact-section {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 4vw, 58px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.intro-copy {
  max-width: 850px;
}

.quick-contact {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.quick-contact span,
.quick-contact small {
  display: block;
  color: var(--muted);
}

.quick-contact a {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-heading.compact {
  max-width: none;
  margin-bottom: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.56);
}

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

.service-area-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.area-grid article {
  min-height: 230px;
  padding: clamp(20px, 2.5vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.area-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.area-grid h3 {
  margin-bottom: 14px;
}

.area-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-section {
  background: var(--ink);
  color: var(--cream);
}

.gallery-section .section-label {
  color: var(--gold);
}

.gallery-filters,
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.gallery-filters button,
.pricing-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 253, 249, 0.22);
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.pricing-tabs button {
  border-color: var(--line);
}

.gallery-filters button.active,
.pricing-tabs button.active {
  color: var(--ink);
  background: var(--gold);
}

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

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 14px 14px;
  color: var(--cream);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), transparent);
  font-size: 0.95rem;
}

.gallery-item span {
  display: block;
  color: var(--warm);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-layout {
  max-width: 900px;
}

.pricing-panel {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--cream);
}

.price-group {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.price-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.price-group h3 {
  margin-bottom: 14px;
  color: var(--copper);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dotted rgba(41, 40, 39, 0.24);
  color: var(--muted);
}

.price-row strong {
  color: var(--ink);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--warm);
}

.contact-section h2 {
  margin-bottom: 14px;
}

.contact-section p {
  max-width: 680px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 58px);
  color: var(--cream);
  background: var(--ink);
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  color: var(--warm);
}

.footer-link {
  border: 0;
  color: var(--cream);
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.legal-dialog {
  width: min(620px, calc(100vw - 28px));
  padding: 30px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.44);
}

.legal-dialog h2 {
  font-size: 2.4rem;
}

.legal-dialog dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-dialog dl div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legal-dialog dt {
  color: var(--muted);
}

.legal-dialog dd {
  margin: 0;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 430px;
    order: 2;
  }

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

  .contact-section,
  .intro-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--cream);
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-media {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

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

  .button {
    width: 100%;
  }

  .services-grid,
  .area-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .legal-dialog dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer {
    flex-direction: column;
  }
}
