:root {
  color-scheme: light;
  --ink: #171716;
  --muted: #65615a;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d8d1c2;
  --bronze: #a8733b;
  --forest: #163f36;
  --charcoal: #222427;
  --soft-blue: #dce7e8;
  --shadow: 0 24px 70px rgba(30, 28, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.04);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 9, 0.86), rgba(5, 10, 9, 0.36) 48%, rgba(5, 10, 9, 0.1)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 40px));
  margin: 0 auto clamp(38px, 8vh, 76px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0bb72;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid currentColor;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button.primary {
  border-color: #f1c17d;
  background: #f1c17d;
  color: #1c1711;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.gallery-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.gallery-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.designs {
  padding: 88px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

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

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

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.gallery-card > button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-card > button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-card:hover > button img {
  transform: scale(1.035);
}

.card-copy {
  padding: 16px;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.gallery-card .card-copy {
  display: grid;
  gap: 10px;
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 58px 18px 28px;
  background: rgba(12, 12, 12, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 82vh;
  width: min(900px, 100%);
  object-fit: contain;
  background: #fff;
}

.lightbox p {
  margin: 14px 0 0;
  color: #fff;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 78vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto 32px;
  }

  .button {
    width: 100%;
  }

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