:root {
  --bg: #f6f0e8;
  --bg-soft: #efe7dc;
  --surface: rgba(255, 252, 247, 0.78);
  --text: #211a16;
  --muted: #685b52;
  --line: rgba(33, 26, 22, 0.12);
  --accent: #8f5f3b;
  --accent-dark: #6f4526;
  --shadow: 0 20px 60px rgba(49, 31, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(210, 176, 131, 0.32), transparent 28%),
    radial-gradient(circle at top right, rgba(112, 128, 96, 0.18), transparent 24%),
    linear-gradient(180deg, #f9f4ee 0%, #f3ebdf 48%, #efe4d7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 80%);
}

.site-header,
.section,
.hero,
.stats,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 245, 239, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(39, 24, 10, 0.08);
}

.brand,
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 84px 0 56px;
  min-height: calc(100vh - 120px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  line-height: 0.94;
  max-width: 9ch;
}

.hero-text,
.section-heading p,
.about-copy p,
.service-card p,
.card-copy p,
.testimonial-grid blockquote,
.contact-value {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.hero-visual {
  position: relative;
  height: 640px;
}

.hero-frame,
.about-photo-frame,
.card-image {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-frame::before,
.about-photo-frame::before,
.card-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 38%),
    linear-gradient(180deg, transparent 40%, rgba(28, 19, 14, 0.32));
}

.hero-frame span,
.about-photo-frame,
.card-copy,
.service-card,
.testimonial-grid blockquote,
.contact-panel {
  position: relative;
}

.hero-frame-large {
  inset: 20px 0 80px 72px;
  background:
    linear-gradient(160deg, rgba(198, 166, 122, 0.76), rgba(88, 68, 50, 0.88)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.hero-frame-small {
  left: 0;
  bottom: 0;
  width: 220px;
  height: 280px;
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(152, 132, 100, 0.82), rgba(66, 58, 48, 0.9)),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=900&q=80")
      center/cover;
}

.hero-frame span {
  display: inline-flex;
  align-items: end;
  height: 100%;
  padding: 28px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 36px;
}

.stats article,
.service-card,
.testimonial-grid blockquote,
.contact-panel,
.section-alt,
.card,
.split-section {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.stats article {
  padding: 22px 24px;
  border-radius: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  font-family: "Cormorant Garamond", serif;
}

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

.section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  overflow: hidden;
  grid-column: span 4;
  border-radius: 30px;
}

.card.tall {
  grid-column: span 5;
  grid-row: span 2;
}

.card.wide {
  grid-column: span 7;
}

.card-image {
  min-height: 280px;
}

.card.tall .card-image {
  min-height: 520px;
}

.card-copy {
  padding: 20px 22px 24px;
}

.card-copy h3,
.service-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.gradient-amber {
  background: linear-gradient(160deg, #d0a16c 0%, #674836 100%);
}

.gradient-sand {
  background: linear-gradient(160deg, #ddc6a1 0%, #86664d 100%);
}

.gradient-olive {
  background: linear-gradient(160deg, #9da07d 0%, #48493c 100%);
}

.gradient-night {
  background: linear-gradient(160deg, #35384a 0%, #9c6f51 100%);
}

.section-alt {
  padding: 28px;
  border-radius: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px;
  border-radius: 24px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
}

.about-photo-frame {
  display: grid;
  place-items: end start;
  min-height: 520px;
  padding: 28px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
  background:
    linear-gradient(160deg, rgba(192, 162, 112, 0.8), rgba(66, 50, 39, 0.88)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
  border-radius: 24px;
}

.testimonial-grid cite {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-style: normal;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
}

.contact-label {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-value {
  margin: 0;
  font-size: 1.06rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 40px;
}

.site-footer p {
  color: var(--muted);
}

.back-top {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 180ms ease;
}

@media (max-width: 920px) {
  .site-header {
    padding: 16px 20px;
    border-radius: 28px;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: end;
  }

  .hero,
  .split-section,
  .contact-panel,
  .testimonial-grid,
  .stats,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    height: 520px;
  }

  .hero-frame-large {
    inset: 0 0 72px 36px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card.tall,
  .card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .card.tall .card-image,
  .card-image,
  .about-photo-frame {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .hero,
  .stats,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: static;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .hero-visual {
    height: 420px;
  }

  .hero-frame-large {
    inset: 0 0 64px 16px;
  }

  .hero-frame-small {
    width: 160px;
    height: 200px;
  }

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

  .button,
  .back-top {
    width: 100%;
  }
}
