:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f2eee6;
  --surface-moss: #556042;
  --surface-moss-dark: #434d33;
  --text: #171714;
  --muted: #706d66;
  --line: rgba(23, 23, 20, 0.1);
  --shadow: 0 24px 60px rgba(28, 27, 22, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.cookie-slot:empty {
  display: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23, 23, 20, 0.06);
}

.header-row,
.site-nav,
.logo-row,
.showcase-head,
.footer-grid {
  display: flex;
}

.header-row {
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(85, 96, 66, 0.18);
  color: var(--surface-moss);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-nav {
  align-items: center;
  gap: 34px;
}

.site-nav a {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-button {
  background: var(--surface-moss);
  color: #fff;
}

.contact-button:hover,
.outline-button:hover {
  transform: translateY(-1px);
}

.outline-button {
  border: 1px solid var(--text);
}

.inverse-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero-section {
  background: #ffffff;
}

.hero-image-wrap {
  position: relative;
  min-height: 640px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(41, 34, 24, 0.22) 0%, rgba(41, 34, 24, 0.08) 30%, rgba(41, 34, 24, 0.12) 100%),
    url("../img/hero-living-room.png") center center / cover no-repeat;
}

.hero-overlay {
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-content h1 {
  max-width: 860px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.logo-strip {
  background: #fff;
  border-bottom: 1px solid rgba(23, 23, 20, 0.06);
}

.logo-row {
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 28px;
  color: #b0ada7;
  font-size: clamp(1.4rem, 2.3vw, 2.5rem);
  font-weight: 700;
  flex-wrap: wrap;
}

.about-preview,
.services-highlight,
.projects-showcase,
.testimonial-band,
.cta-section {
  padding: 88px 0;
}

.about-grid,
.testimonial-grid,
.cta-panel,
.subpage-two-col,
.contact-banner,
.footer-grid {
  display: grid;
}

.about-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: start;
}

.section-label {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy h2,
.section-heading h2,
.showcase-head h2,
.cta-panel h2,
.subpage-title,
.contact-banner h2,
.subpage-hero h1 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.04em;
}

.about-copy h2 {
  max-width: 520px;
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.about-copy p,
.service-card p,
.project-card p,
.testimonial-name,
.footer-note,
.subpage-copy p,
.subpage-hero p,
.metric-card span,
.feature-panel p,
.portfolio-card p,
.project-showcase-card p,
.article-card p {
  color: var(--muted);
  line-height: 1.78;
  font-size: 1rem;
}

.about-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.collage-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e9e4da;
  box-shadow: var(--shadow);
}

.collage-card img {
  height: 100%;
  object-fit: cover;
}

.focus-left {
  object-position: left center;
}

.focus-right {
  object-position: right center;
}

.focus-center {
  object-position: center center;
}

.tall-card {
  grid-row: span 2;
  min-height: 620px;
}

.section-heading,
.showcase-head {
  margin-bottom: 30px;
}

.section-heading h2,
.showcase-head h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1;
}

.service-grid,
.project-grid,
.metric-grid,
.feature-panel-grid,
.portfolio-grid,
.project-showcase-grid,
.article-grid {
  display: grid;
  gap: 22px;
}

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

.service-card,
.metric-card,
.feature-panel,
.portfolio-card,
.project-showcase-card,
.article-card,
.contact-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.service-card,
.metric-card,
.feature-panel,
.article-card {
  padding: 28px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--surface-moss);
  font-size: 1.35rem;
  font-weight: 700;
}

.service-card h3,
.portfolio-card h3,
.project-showcase-card h3,
.article-card h3,
.feature-panel h3 {
  margin: 0 0 10px;
  font-size: 1.38rem;
  line-height: 1.08;
}

.showcase-head {
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link,
.back-link {
  font-weight: 700;
}

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

.project-card img,
.portfolio-card img,
.project-showcase-card img {
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: 18px;
}

.project-card h3 {
  margin: 16px 0 6px;
  font-size: 1.15rem;
}

.testimonial-band {
  background: linear-gradient(180deg, #f3f0e8 0%, #efebe0 100%);
}

.testimonial-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: stretch;
}

.testimonial-copy blockquote {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.testimonial-name {
  margin-top: 24px;
}

.testimonial-art {
  min-height: 320px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("https://images.unsplash.com/photo-1513694203232-719a280e022f?auto=format&fit=crop&w=1400&q=80") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.cta-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 38px 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface-moss-dark), #66724f);
  color: #fff;
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 0.98;
}

.cta-panel p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.site-footer {
  padding: 34px 0 56px;
  background: #fff;
  border-top: 1px solid rgba(23, 23, 20, 0.06);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 30px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
}

.footer-note {
  max-width: 360px;
  margin-top: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.subpage-shell {
  min-height: 100vh;
  padding: 48px 0 72px;
  background: linear-gradient(180deg, #faf8f2 0%, #ffffff 22%, #ffffff 100%);
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.subpage-hero {
  padding: 48px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.subpage-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.94;
}

.subpage-section {
  margin-top: 28px;
}

.subpage-two-col {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.subpage-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.subpage-copy {
  display: grid;
  gap: 16px;
}

.metric-grid,
.feature-panel-grid,
.portfolio-grid,
.project-showcase-grid,
.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 800;
}

.portfolio-card,
.project-showcase-card {
  overflow: hidden;
}

.portfolio-card div,
.project-showcase-card div {
  padding: 22px;
}

.contact-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 32px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 22px;
  }

  .about-grid,
  .testimonial-grid,
  .service-grid,
  .project-grid,
  .footer-grid,
  .metric-grid,
  .feature-panel-grid,
  .portfolio-grid,
  .project-showcase-grid,
  .article-grid,
  .subpage-two-col,
  .contact-banner,
  .cta-panel {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-collage {
    grid-template-columns: 1fr 1fr;
  }

  .tall-card {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .header-row {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0 8px;
  }

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

  .desktop-contact {
    margin-left: auto;
  }

  .hero-image-wrap {
    min-height: 520px;
  }

  .hero-content h1 {
    max-width: 520px;
  }

  .about-grid,
  .testimonial-grid,
  .cta-panel,
  .subpage-two-col,
  .contact-banner,
  .footer-grid,
  .metric-grid,
  .feature-panel-grid,
  .portfolio-grid,
  .project-showcase-grid,
  .article-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .showcase-head {
    align-items: start;
    flex-direction: column;
  }

  .logo-row {
    justify-content: center;
  }

  .contact-banner,
  .cta-panel {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.55rem;
  }

  .desktop-contact {
    width: 100%;
    justify-content: center;
  }

  .hero-image-wrap {
    min-height: 420px;
  }

  .about-preview,
  .services-highlight,
  .projects-showcase,
  .testimonial-band,
  .cta-section,
  .subpage-shell {
    padding: 64px 0;
  }

  .about-copy h2,
  .section-heading h2,
  .showcase-head h2,
  .cta-panel h2,
  .subpage-title {
    font-size: 2.35rem;
  }

  .subpage-hero {
    padding: 32px 24px;
  }

  .hero-content h1,
  .subpage-hero h1 {
    font-size: 2.7rem;
  }

  .about-collage {
    grid-template-columns: 1fr;
  }

  .tall-card {
    grid-row: auto;
    min-height: 320px;
  }
}
