:root {
  --green-900: #0f2d13;
  --green-800: #17441f;
  --green-700: #224827;
  --green-500: #496027;
  --cream-50: #fffaf0;
  --cream-100: #f8efd9;
  --cream-200: #f0e3c9;
  --brown-700: #8a4a18;
  --brown-600: #916025;
  --gold-500: #b98743;
  --ink: #1d2418;
  --muted: #5e594c;
  --shadow: 0 28px 80px rgba(22, 33, 19, .18);
  --soft-shadow: 0 18px 48px rgba(42, 34, 21, .12);
  --radius-lg: 30px;
  --radius-md: 18px;
  --max-width: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(206, 177, 117, .2), transparent 34rem),
    radial-gradient(circle at 8% 30%, rgba(41, 70, 29, .08), transparent 26rem),
    url('../assets/paper-texture.jpg'),
    #f6eddd;
  font-family: 'Lora', serif;
  overflow-x: hidden;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .68), transparent 42%),
    radial-gradient(circle at 50% 105%, rgba(18, 45, 22, .16), transparent 38%);
  z-index: -2;
}

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

.svg-defs {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.page-shell {
  width: min(100% - 44px, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 42px 0;
}

.launch-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(70, 53, 23, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 252, 243, .88), rgba(247, 238, 219, .92)),
    url('../assets/paper-texture.jpg');
  box-shadow: var(--shadow);
}

.launch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(31, 62, 31, .28) 1px, transparent 1.2px),
    linear-gradient(90deg, transparent 48%, rgba(157, 123, 66, .18), transparent 52%);
  background-size: 34px 34px, 100% 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 76%, transparent);
}

.corner-leaves {
  position: absolute;
  width: clamp(86px, 11vw, 168px);
  color: #7c775e;
  opacity: .55;
  pointer-events: none;
  z-index: 3;
}

.corner-leaves-left {
  left: -26px;
  top: 28px;
  transform: rotate(-12deg);
}

.corner-leaves-right {
  right: -18px;
  top: 24px;
  transform: scaleX(-1) rotate(-12deg);
}

.hero-grid {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 20px;
  padding: clamp(38px, 5vw, 74px) clamp(34px, 5.4vw, 88px) 22px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 0 0;
}

.brand-logo {
  width: clamp(220px, 20vw, 330px);
  margin: 0 auto 4px;
  filter: drop-shadow(0 16px 22px rgba(46, 41, 28, .08));
}

.contact-phone {
  width: fit-content;
  margin: 0 auto 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--green-800);
  font-size: clamp(.94rem, 1.05vw, 1.08rem);
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.contact-phone span {
  font-family: Arial, sans-serif;
  font-size: 1.05em;
  line-height: 1;
}

.contact-phone:hover {
  color: var(--brown-700);
  transform: translateY(-2px);
}

.contact-phone:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 5px;
  border-radius: 3px;
}


h1 {
  margin: 0;
  color: var(--green-800);
  font-size: clamp(3rem, 5.2vw, 6.9rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-tagline {
  font-family: 'Kalam', cursive;
  font-size: clamp(2.25rem, 4.25vw, 5.4rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 400;
}

.ornament,
.footer-ornament {
  color: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 25px auto 22px;
}

.ornament span,
.footer-ornament span {
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: .8;
}

.ornament svg,
.footer-ornament svg {
  width: 42px;
}

.intro {
  max-width: 570px;
  margin: 0 auto;
  color: #383c32;
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  line-height: 1.68;
}

.launching {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 42px auto 8px;
  color: var(--brown-700);
}

.launching span {
  width: min(12vw, 128px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  position: relative;
}

.launching span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-500);
  transform: translateY(-50%) rotate(45deg);
  background: var(--cream-50);
}

.launching span:first-child::after { right: -5px; }
.launching span:last-child::after { left: -5px; }

.launching strong {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .36em;
  font-size: clamp(1rem, 1.4vw, 1.55rem);
  font-weight: 700;
  white-space: nowrap;
}

.launching strong::before {
  content: "";
  position: absolute;
  inset: -9px -12px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: translateX(-110%);
  animation: shimmer 4.8s ease-in-out infinite;
}

.subline {
  margin: 0;
  font-style: italic;
  color: #49523d;
  font-size: clamp(1rem, 1.1vw, 1.22rem);
  letter-spacing: .08em;
}

.hero-art {
  position: relative;
  min-height: min(46vw, 610px);
  align-self: stretch;
  z-index: 1;
  border-radius: 0 0 0 80px;
  overflow: visible;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -22%;
  z-index: 0;
  pointer-events: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 7% 0 4% 3%;
  border-radius: 54% 14% 44% 20% / 40% 10% 35% 22%;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  right: -88px;
  top: 4%;
  width: min(63vw, 1000px);
  height: 92%;
  min-height: 520px;
  object-fit: cover;
  object-position: center right;
  border-radius: 58% 0 44% 12% / 34% 0 30% 14%;
  mask-image: radial-gradient(ellipse at 64% 47%, #000 0 54%, rgba(0,0,0,.92) 63%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 64% 47%, #000 0 54%, rgba(0,0,0,.92) 63%, transparent 80%);
  filter: saturate(1.04) contrast(1.02);
}

.features {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0 clamp(34px, 5.4vw, 88px) 58px;
  margin-top: 25px;
}

.feature-card {
  position: relative;
  min-height: 188px;
  padding: 30px 18px 24px;
  text-align: center;
  border: 1px solid rgba(143, 112, 62, .2);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 239, .72);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 10%), rgba(191, 145, 65, .18), transparent 36%);
  opacity: 0;
  transition: opacity .35s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(143, 112, 62, .38);
  box-shadow: 0 24px 58px rgba(42, 34, 21, .18);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--green-700);
}

.feature-icon.brown {
  color: var(--brown-700);
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(180, 134, 60, .18);
  border-radius: 50%;
  transform: scale(.84);
  opacity: 0;
  transition: .38s ease;
}

.feature-card:hover .feature-icon::after {
  transform: scale(1);
  opacity: 1;
}

.feature-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--green-900);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(.92rem, 1vw, 1.1rem);
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 210px;
  color: #494636;
  font-size: .98rem;
  line-height: 1.45;
}

.small-line {
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--gold-500);
  opacity: .6;
  position: relative;
}

.small-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-500);
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--cream-50);
}

.footer-wave {
  position: relative;
  z-index: 4;
  min-height: 210px;
  padding: 110px 24px 42px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 45%),
    var(--green-900);
  color: var(--cream-50);
  overflow: hidden;
}

.footer-wave::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: -64px;
  height: 128px;
  background: var(--cream-100);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 18px 0 rgba(247, 238, 219, .62);
}

.footer-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, transparent 45%, rgba(255, 255, 255, .04) 46% 47%, transparent 48%),
    radial-gradient(circle at 2px 2px, rgba(255,255,255,.08) 1px, transparent 1.5px);
  background-size: 62px 62px, 34px 34px;
  opacity: .32;
}

.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.footer-content p {
  margin: 0 auto;
  font-size: clamp(1.36rem, 2.1vw, 2rem);
  line-height: 1.38;
  color: #fff8e9;
  text-wrap: balance;
}

.footer-content p span + span::before {
  content: " ";
}

.footer-ornament {
  color: #e6d8bb;
  margin: 22px auto 0;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.leaf {
  position: absolute;
  width: 28px;
  height: 18px;
  opacity: .23;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #304f19, #9d975d);
  filter: blur(.2px);
  animation: drift 12s linear infinite;
}

.leaf-1 { left: 12%; top: -5%; animation-duration: 15s; animation-delay: -2s; transform: rotate(25deg); }
.leaf-2 { left: 36%; top: -7%; animation-duration: 18s; animation-delay: -7s; transform: rotate(-16deg); }
.leaf-3 { left: 58%; top: -9%; animation-duration: 13s; animation-delay: -4s; transform: rotate(38deg); }
.leaf-4 { left: 76%; top: -8%; animation-duration: 20s; animation-delay: -11s; transform: rotate(-24deg); }
.leaf-5 { left: 88%; top: -4%; animation-duration: 16s; animation-delay: -8s; transform: rotate(15deg); }
.leaf-6 { left: 22%; top: -6%; animation-duration: 22s; animation-delay: -13s; transform: rotate(55deg); }

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

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

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }
.delay-4 { transition-delay: .42s; }

@keyframes shimmer {
  0%, 55% { transform: translateX(-115%); }
  78%, 100% { transform: translateX(115%); }
}

@keyframes drift {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .22; }
  50% { transform: translate3d(-45px, 55vh, 0) rotate(170deg); }
  90% { opacity: .16; }
  100% { transform: translate3d(42px, 108vh, 0) rotate(360deg); opacity: 0; }
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .brand-logo {
    width: min(330px, 60vw);
  }

  .hero-art {
    min-height: 430px;
    width: 100%;
    margin-top: -10px;
  }

  .hero-art img {
    position: relative;
    width: min(920px, 100%);
    min-height: 400px;
    height: 450px;
    right: auto;
    margin: 0 auto;
    border-radius: 34px;
    mask-image: radial-gradient(ellipse at 55% 48%, #000 0 62%, rgba(0,0,0,.9) 72%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse at 55% 48%, #000 0 62%, rgba(0,0,0,.9) 72%, transparent 88%);
  }

  .hero-art::before,
  .hero-art::after {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, var(--max-width));
    padding: 18px 0;
  }

  .launch-card {
    border-radius: 24px;
  }

  .corner-leaves {
    width: 90px;
    opacity: .38;
  }

  .hero-grid {
    padding: 28px 18px 16px;
  }

  .brand-logo {
    width: min(285px, 82vw);
    margin-bottom: 4px;
  }

  h1 {
    font-size: clamp(2.7rem, 14.5vw, 4.4rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.58;
    max-width: 92%;
  }

  .launching {
    gap: 9px;
    margin-top: 32px;
  }

  .launching strong {
    letter-spacing: .22em;
    font-size: .95rem;
  }

  .launching span {
    width: 46px;
  }

  .subline {
    font-size: .95rem;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-art img {
    height: 320px;
    min-height: 300px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 18px 42px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-areas:
      "icon title"
      "icon text"
      "line line";
    align-items: center;
    text-align: left;
    min-height: auto;
    padding: 18px 18px;
    column-gap: 14px;
  }

  .feature-icon {
    grid-area: icon;
    margin: 0;
  }

  .feature-card h2 {
    grid-area: title;
    margin-bottom: 4px;
    font-size: .93rem;
  }

  .feature-card p {
    grid-area: text;
    max-width: none;
    margin: 0;
    font-size: .92rem;
  }

  .small-line {
    grid-area: line;
    margin: 14px auto 0;
  }

  .footer-wave {
    min-height: 220px;
    padding: 96px 18px 32px;
  }

  .footer-content p {
    width: 100%;
    max-width: 20rem;
    font-size: clamp(.82rem, 4vw, 1rem);
    line-height: 1.5;
    text-align: center;
    text-wrap: initial;
  }

  .footer-content p span {
    display: block;
  }

  .footer-content p span + span::before {
    content: none;
  }
}

@media (max-width: 430px) {
  .hero-grid {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 245px;
  }

  h1 {
    font-size: 2.72rem;
  }

  .launching strong {
    letter-spacing: .16em;
  }

  .hero-art img {
    height: 255px;
    min-height: 250px;
  }
}



/* Featured property section */
.property-preview {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(420px, 1fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  margin: 8px clamp(34px, 5.4vw, 88px) 68px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(139, 85, 30, .18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, .92), rgba(245, 234, 211, .76)),
    url('../assets/paper-texture.jpg');
  box-shadow: 0 24px 70px rgba(45, 34, 19, .13);
  overflow: hidden;
}

.property-preview::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 75, 36, .14), transparent 68%);
  pointer-events: none;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--brown-700);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .78rem;
  font-weight: 700;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.property-copy {
  position: relative;
  z-index: 1;
}

.property-copy h2 {
  margin: 0 0 15px;
  color: var(--green-800);
  font-size: clamp(2.2rem, 4.4vw, 5rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.045em;
}

.property-copy p {
  margin: 0 0 24px;
  max-width: 620px;
  color: #484235;
  font-size: clamp(1rem, 1.16vw, 1.18rem);
  line-height: 1.7;
}

.property-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #fff8e9;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  box-shadow: 0 16px 34px rgba(16, 43, 22, .22);
  transition: transform .35s ease, box-shadow .35s ease;
}

.property-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(16, 43, 22, .3);
}

.property-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 55px rgba(39, 29, 16, .24);
  border: 8px solid rgba(255, 248, 233, .72);
  text-decoration: none;
  transform: rotate(1deg);
  transition: transform .45s ease, box-shadow .45s ease;
}

.property-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.012);
  box-shadow: 0 36px 76px rgba(39, 29, 16, .28);
}

.property-card img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  transition: transform .8s ease;
}

.property-card:hover img {
  transform: scale(1.055);
}

.property-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 23, 12, .58), transparent 48%);
  pointer-events: none;
}

.property-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 248, 233, .9);
  color: var(--green-900);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}



/* Courtyard typography inspired by the property signboard */
.property-copy h2.courtyard-heading,
.gallery-hero h1.courtyard-gallery-heading {
  position: relative;
  display: inline-grid;
  justify-items: center;
  width: min(100%, 680px);
  margin: 0 0 24px;
  padding: 0;
  color: var(--green-800);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

.courtyard-main {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: clamp(2.05rem, 5.1vw, 5.45rem);
  line-height: .9;
  font-weight: 900;
  transform: scaleY(1.18);
  text-shadow: none;
}

.courtyard-sub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 18px);
  width: min(88%, 480px);
  margin-top: clamp(7px, 1vw, 12px);
  color: var(--green-800);
  text-shadow: none;
}

.courtyard-sub i {
  flex: 1 1 auto;
  height: 4px;
  max-width: 160px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor 16%, currentColor 84%, transparent);
  opacity: .88;
}

.courtyard-sub em {
  flex: 0 0 auto;
  font-family: 'Pacifico', cursive;
  font-style: normal;
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.property-preview {
  border-color: rgba(124, 72, 29, .22);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, .95), rgba(247, 232, 207, .8)),
    url('../assets/paper-texture.jpg');
}

.property-card {
  border-color: rgba(148, 91, 39, .42);
  background: #7d4a25;
}

.property-link {
  background: linear-gradient(135deg, #70411f, #2b1a10 54%, var(--green-900));
}

@media (max-width: 760px) {
  .property-copy h2.courtyard-heading,
  .gallery-hero h1.courtyard-gallery-heading {
    width: 100%;
    transform: none;
    padding: 0;
  }

  .courtyard-main {
    letter-spacing: .05em;
    font-size: clamp(2.15rem, 14vw, 3.7rem);
  }

  .courtyard-sub {
    width: 94%;
  }
}

/* Gallery page */
.gallery-page {
  min-height: 100vh;
}

.gallery-shell {
  width: min(100% - 44px, var(--max-width));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.gallery-hero {
  position: relative;
  text-align: center;
  padding: clamp(28px, 5vw, 66px) clamp(18px, 4vw, 64px);
  margin-bottom: 24px;
  border: 1px solid rgba(70, 53, 23, .14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 252, 243, .92), rgba(247, 238, 219, .9)),
    url('../assets/paper-texture.jpg');
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 68, 31, .16), transparent 68%);
}

.back-link {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 2;
  color: var(--green-800);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
}

.back-link:hover { color: var(--brown-700); }

.gallery-brand-logo {
  width: clamp(170px, 17vw, 260px);
  margin: 0 auto 4px;
  filter: drop-shadow(0 14px 18px rgba(46, 41, 28, .07));
}

.property-mark {
  width: min(620px, 100%);
  margin: 0 auto 28px;
  border-radius: 22px;
  overflow: hidden;
  border: 8px solid rgba(255, 248, 233, .72);
  box-shadow: 0 24px 60px rgba(45, 34, 19, .16);
}

.property-mark img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.gallery-hero h1 {
  font-size: clamp(2.6rem, 5vw, 6rem);
}

.gallery-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #444033;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.7;
}

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

.gallery-item {
  position: relative;
  min-height: 290px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  isolation: isolate;
  transition: transform .38s ease, box-shadow .38s ease;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 56px rgba(42, 34, 21, .2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  transition: transform .7s ease, filter .7s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.03);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 28, 14, .74), transparent 58%);
  opacity: .92;
  z-index: 1;
}

.gallery-item span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff8e9;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(8, 18, 10, .86);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  margin: 0;
  width: min(94vw, 1120px);
  max-height: 88vh;
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  background: var(--cream-100);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(255, 248, 233, .42);
  background: rgba(255, 248, 233, .12);
  color: #fff8e9;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background .25s ease, transform .25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 248, 233, .22);
  transform: scale(1.06);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 44px;
  line-height: .7;
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

@media (max-width: 1180px) {
  .property-preview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .property-preview {
    margin: 0 18px 44px;
    padding: 22px;
  }

  .property-copy h2 {
    font-size: 2.7rem;
  }

  .property-card {
    min-height: 220px;
    transform: none;
  }

  .property-card img {
    min-height: 230px;
  }

  .gallery-shell {
    width: min(100% - 22px, var(--max-width));
    padding-top: 18px;
  }

  .gallery-hero {
    border-radius: 24px;
    padding-top: 60px;
  }

  .back-link {
    left: 18px;
    top: 18px;
  }

  .property-mark {
    border-width: 6px;
    border-radius: 18px;
  }

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

  .gallery-item,
  .gallery-item img {
    min-height: 220px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: span 2;
  }

  .lightbox-nav {
    top: auto;
    bottom: 20px;
  }
}

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

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: span 1;
  }

  .gallery-item,
  .gallery-item img {
    min-height: 260px;
  }

  .section-kicker {
    letter-spacing: .18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
