:root {
  --bg: #fafaf7;
  --fg: #1a1f1c;
  --muted: #6b7670;
  --primary: #1a3a2e;
  --primary-fg: #f5f0e6;
  --accent: #c9a14a;
  --accent-fg: #1a1f1c;
  --secondary: #efece4;
  --border: #e2ddd0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit
}

em {
  font-style: normal
}

.display {
  font-family: 'Myriad Pro', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em
}

/* Headings: use Myriad Pro when available, with sensible fallbacks */
h1,
h2,
h3,
h4,
h5,
h6,
.display {
  font-family: 'Myriad Pro', 'Helvetica Neue', Arial, sans-serif;
}

/* Paragraphs and body copy: use Arial for clean readability */
p,
.muted,
.dim,
.intro-text p,
.popup-body p,
.thanks p {
  font-family: Arial, Helvetica, sans-serif;
}

.h-lg {
  font-size: clamp(2.25rem, 5vw, 4rem)
}

.h-md {
  font-size: clamp(1.5rem, 3vw, 2rem)
}

.h-sm {
  font-size: 1.5rem
}

.accent {
  color: var(--accent)
}

.muted {
  color: var(--muted)
}

.hd-color {
  color: var(--primary)
}

.eyebrow {
  font-size: 1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block
}

.center {
  text-align: center
}

.specs .center {
  display: flex;
  justify-content: center
}

.mb-xl {
  margin-bottom: 4rem
}

.dim {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .25rem
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.section {
  padding: 3rem 1.5rem
}

section:not(.hero) {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease
}

section:not(.hero).is-revealed {
  opacity: 1;
  transform: translateY(0)
}

@media (prefers-reduced-motion: reduce) {
  section:not(.hero) {
    opacity: 1;
    transform: none;
    transition: none
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
  background: transparent;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease, backdrop-filter .25s ease
}

.brand {
  width: clamp(110px, 14vw, 160px)
}

.brand a {
  display: inline-flex;
  align-items: center
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1)
}

.nav-links {
  display: none;
  gap: 2.5rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-nav {
  position: absolute;
  top: calc(100% + .75rem);
  left: 1rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(26, 59, 46, .98);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 25;
}

.mobile-nav a,
.mobile-nav .link-btn {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.08);
}

.mobile-nav a:first-child,
.mobile-nav .link-btn:first-child {
  border-top: 0;
}

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

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a,
.nav-links .link-btn {
  transition: color .2s
}

.nav-links a:hover,
.nav-links .link-btn:hover {
  color: var(--accent)
}

.btn-outline {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: .6rem 1.25rem;
  transition: all .2s;
  background: transparent;
  color: #fff
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent)
}

@media(min-width:768px) {
  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  .nav-links {
    display: flex
  }
}

@media(max-width:767px) {
  .nav {
    padding: 1rem 1rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .btn-outline {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .brand {
    width: 110px;
  }
}

.nav.is-sticky {
  background: rgba(26, 31, 28, .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding-top: .9rem;
  padding-bottom: .9rem
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  width: 100%;
  overflow: hidden
}

.hero>picture,
.hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.hero>picture img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0));
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 8rem;
  max-width: 1280px;
  margin: 0 auto;
  color: #fff
}

.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .95;
  max-width: 60rem;
  margin-top: 1.5rem;
  font-weight: 400
}

.hero-content h1 em {
  color: var(--accent);
  font-weight: 300
}

.hero-sub {
  margin-top: 2rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1rem;
  line-height: 1.7
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

@media(min-width:768px) {
  .hero-content {
    padding-left: 4rem;
    padding-right: 4rem
  }
}

.btn-accent {
  background: var(--accent);
/*   color: var(--accent-fg); */
  color: #fff;
  padding: 1rem 2rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity .2s
}

.btn-accent:hover {
  opacity: .9
}

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 1rem 2rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  transition: background .2s
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1)
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 2rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity .2s
}

.btn-primary:hover {
  opacity: .9
}

.intro {
  padding: 3rem 1.5rem
}

.intro-grid {
  display: grid;
  gap: 3rem;
  align-items: end
}

.intro-text {
  line-height: 1.7
}

.intro-text p+p {
  margin-top: 1rem
}

@media(min-width:768px) {
  .intro {
    padding: 5rem 1.5rem
  }

  .intro-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem
  }
}

.split {
  display: grid
}

.split-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden
}

.split-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.split-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform .9s ease;
}

.split-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.split-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(.95);
  transform: scale(1.06);
  transition: filter .7s ease, transform .9s ease;
}

.split-cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

.split-cta .btn-accent {
  pointer-events: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.split-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 27, 52, .55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, opacity .25s ease;
  backdrop-filter: blur(6px);
}

.split-control:hover {
  background: rgba(14, 27, 52, .78);
  transform: translateY(-50%) scale(1.04)
}

.split-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

.split-control-prev {
  left: 1rem
}

.split-control-next {
  right: 1rem
}

.split-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: 999px;
  background: rgba(14, 27, 52, .35);
  backdrop-filter: blur(6px);
}

.split-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.split-dot.is-active {
  background: #fff;
  transform: scale(1.2)
}

.split-content {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.split-content .display {
  margin-bottom: 1rem
}

.residence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1rem;
  font-size: .875rem
}

.residence-grid .dim {
  color: rgba(255, 255, 255, .6)
}

@media(min-width:768px) {
  .split {
    grid-template-columns: 1fr 1fr
  }

  .split-img {
    aspect-ratio: auto;
    min-height: 640px
  }

  .split-slider {
    min-height: 640px
  }

  .split-content {
    padding: 3rem
  }
}

@media(max-width:767px) {
  .split-control {
    width: 40px;
    height: 40px;
    font-size: 1.75rem
  }

  .split-control-prev {
    left: .75rem
  }

  .split-control-next {
    right: .75rem
  }

  .split-dots {
    bottom: .75rem
  }

  .split-cta .btn-accent {
    padding: .8rem 1rem;
    font-size: .9rem
  }
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border)
}

@media (max-width: 767px) {
    .amenity-grid .amenity:nth-child(n+7) {
        display: none;
    }
}

.amenity {
  background: var(--bg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: .875rem;
  transition: background .2s
}

.amenity:hover {
  background: var(--secondary)
}

.amenity .rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1rem;
  transition: width .2s
}

.amenity:hover .rule {
  width: 4rem
}

.amenity img {
  margin-bottom: 10px;
  justify-self: anchor-center;
}

@media(min-width:768px) {
  .amenity-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.gallery {
  padding-bottom: 6rem
}

.gallery-grid {
  display: grid;
  gap: 1.5rem
}

.gallery figure {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden
}

.gallery figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s
}

.gallery figure:hover img {
  transform: scale(1.05)
}

.gallery figcaption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  z-index: 1
}

@media(min-width:768px) {
  .gallery-grid {
    grid-template-columns: 3fr 2fr
  }

  .gallery {
    padding-bottom: 3rem
  }
}

.specs {
  background: var(--secondary);
  padding: 6rem 1.5rem
}

.specs-grid {
  display: grid;
  gap: 3rem
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border)
}

.specs-list>div {
  background: var(--secondary);
  padding: 1.25rem
}

@media(min-width:640px) {
  .specs-list {
    grid-template-columns: 1fr 1fr
  }
}

@media(min-width:768px) {
  .specs {
    padding: 3rem 1.5rem
  }

  .specs-grid {
    grid-template-columns: 4fr 8fr;
    gap: 4rem
  }
}

/* Gallery carousel styles */
.gallery-wrapper {
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
}

.options {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: visible;
  width: 100%;
  min-width: 600px;
  max-width: 900px;
  height: 400px;
  justify-content: center;
  gap: 0
}

.option {
  position: relative;
  overflow: hidden;
  min-width: 60px;
  margin: 10px;
  background: var(--defaultBackground, #E6E9ED);
  background-image: var(--optionBackground);
  background-size: auto 120%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.05, .61, .41, .95), flex .5s;
  flex: 1;
  border-radius: 30px;
  will-change: transform, flex
}

.option::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .38) 35%, rgba(0, 0, 0, 0)100%);
  pointer-events: none;
  z-index: 1
}

.option.active {
  flex-grow: 10000;
  transform: scale(1);
  max-width: 600px;
  margin: 0;
  border-radius: 40px;
  background-size: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .12)
}

.option.is-hidden {
  display: none
}

.shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  transition: bottom .5s, cubic-bezier(.05, .61, .41, .95);
  z-index: 2
}

.label {
  display: flex;
  position: absolute;
  right: 0;
  height: 40px;
  transition: .5s;
  z-index: 3
}

.label .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  color: #fff;
  white-space: pre
}

.option{
    position:relative;
    overflow:hidden;
}

.artistic-label{
    display:none;
}

.option.active .artistic-label{
    display:block;
}

.artistic-label{
    position:absolute;
    right:15px;
    bottom:15px;
    z-index:5;
    font-size:10px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:rgba(255,255,255,.9);
    text-shadow:0 1px 3px rgba(0,0,0,.6);
    background:none;
    padding:0;
}

@media (max-width: 767px){
    .artistic-label{
        right:8px;
        bottom:8px;
        font-size:9px;
        padding:5px 8px;
    }
}

/* Responsive tweaks */
@media(max-width:768px) {
  .options {
    min-width: 100%;
    max-width: 100%;
    height: 300px
  }

  .option,
  .option.active {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 20px
  }

  .gallery-arrow {
    width: 40px !important;
    height: 40px !important
  }

  .gallery-arrow svg {
    width: 18px !important;
    height: 18px !important
  }
}

/* Small heading animation for the gallery title */
#gallery .display {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease
}

#gallery .display.is-revealed {
  opacity: 1;
  transform: translateY(0)
}

.walkthrough-section {
  padding-top: 3rem;
  padding-bottom: 3rem
}

.walkthrough-video {
  position: relative;
  width: 70%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
  justify-self: center
}

.walkthrough-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

@media(min-width:768px) {
  .walkthrough-section {
    padding-top: 3rem;
    padding-bottom: 3rem
  }

  .walkthrough-video{
    width: 90%;
  }
}

@media(max-width:767px) {
  .walkthrough-video{
    width: 90%;
  }
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: center
}

.location-map-column {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.location-map-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 2.5;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08)
}

.location-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease
}

.location-map.is-active {
  opacity: 1;
  pointer-events: auto
}

.location-map-iframe {
  border: 0;
  object-fit: initial
}

.location-map-actions {
  margin-top: .25rem
}

.location-map-toggle {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: .9rem 1.5rem
}

.location-map-toggle:hover {
  background: var(--primary);
  color: var(--primary-fg)
}

.location-icon {
  width: 3rem;
  margin-bottom: .5rem;
  justify-self: anchor-center;
}

.location-details {
  align-items: center;
  display: flex;
}

@media(min-width:768px) {
  .location-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:767px) {
  .location-details {
    align-items: center;
    display: block;
    margin-bottom: 20px;
  }
}

.footer {
  background: var(--primary);
  color: rgba(245, 240, 230, .6);
  font-size: .75rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 6rem
}

@media(min-width:768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 0
  }
}

.sticky-form {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--primary);
  color: var(--primary-fg);
  border-top: 1px solid rgba(201, 161, 74, .3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease
}

.sticky-form.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto
}

.sticky-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.5rem
}

.sticky-consent {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  color: rgba(255, 255, 255, 0.9);
  flex: 1 1 13rem;
  min-width: 0;
}

.sticky-consent .consent {
  display: flex;
  align-items: center;
  gap: .35rem;
  line-height: 1.25;
  flex-flow: nowrap;
}

.sticky-consent .consent input {
  margin: 0 .2rem 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.sticky-consent .consent span {
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
  white-space: normal;
  display: block;
  word-break: break-word;
}

@media(max-width:899px) {
  .sticky-consent {
    display: none;
  }
}

.sticky-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0
}

.sticky-brand .phone {
  font-size: .75rem;
  color: rgba(255, 255, 255, .7);
  margin-top: .25rem
}

.sticky-brand .phone:hover {
  color: var(--accent)
}

.sticky-form input {
  flex: 0 1 18rem;
  min-width: 0;
  background: #fff;
  color: var(--fg);
  padding: .65rem 1rem;
  font-size: .95rem;
  border: 1px solid transparent;
  border-radius: 2px;
  outline: none;
  font-family: inherit
}

.sticky-form input:focus {
  box-shadow: 0 0 0 2px var(--accent)
}

.sticky-form button {
  white-space: nowrap;
  border-radius: 2px;
  padding: .85rem 2rem
}

@media(min-width:900px) {
  .sticky-form {
    display: block
  }

  body {
    padding-bottom: 75px
  }
}

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  background: var(--primary);
  border-top: 1px solid rgba(201, 161, 74, .3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .2)
}

.mb-btn {
  padding: 1rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  display: block
}

.mb-call {
  color: var(--primary-fg);
  border-right: 1px solid rgba(255, 255, 255, .1)
}

.mb-enquire {
  background: var(--accent);
  color: var(--accent-fg)
}

@media(min-width:900px) {
  .mobile-bar {
    display: none
  }
}

@media(max-width:899px) {
  body {
    padding-bottom: 60px
  }
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto
}

.popup.open {
  display: flex
}

.popup-card {
  background: var(--bg);
  width: 100%;
  max-width: 28rem;
  position: relative;
  margin: 2rem 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .4);
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1rem
}

.popup-close:hover {
  background: var(--secondary)
}

.popup-img {
  aspect-ratio: 16/9;
  overflow: hidden
}

.popup-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex: 0 0 auto;
  max-height: 220px;
}

.popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-body {
  padding: 1.25rem;
  overflow: auto;
  flex: 1 1 auto;
  padding-top: 4rem;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 320px);
  overflow: auto;
}

.consent {
  padding-top: .5rem;
  margin-bottom: .5rem;
}

@media(min-width:900px) {
  .popup-card {
    max-width: 28rem;
  }

  .popup-img {
    max-height: 180px;
  }

  .popup-body {
    padding: 1.5rem;
  }
}

/* Popup-specific consent adjustments to keep checkbox and label on one line */
.popup .consent {
  display: flex;
  align-items: flex-start;
  font-size: 0.82rem;
  gap: .5rem;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.popup .consent input {
  width: 18px;
  height: 18px;
  margin: 0 .35rem 0 0;
  flex: 0 0 18px;
  margin-top: .15rem;
}

.popup .consent span {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 500;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.popup-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: .5rem .25rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s
}

.popup-form input:focus {
  border-bottom-color: var(--accent)
}

.popup-form input.hl {
  border-bottom: 2px solid var(--accent)
}

.pill {
  border-radius: 999px;
  padding: 1rem 4rem
}

.consent {
  display: flex;
  gap: .5rem;
  font-size: .55rem;
  color: var(--muted);
  justify-content: flex-start;
  align-items: center;
  padding-top: .5rem;
  line-height: 1.4;
  flex-wrap: wrap;
}

.consent input {
  accent-color: var(--accent);
  margin: 0 .25rem 0 0;
  flex-shrink: 0;
}

.consent span {
  flex: 1 1 auto;
}

.thanks {
  text-align: center;
  padding: 3rem 0
}

.thanks h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400
}

.thanks p {
  color: var(--muted);
  margin-top: .5rem
}

/* About section */
.about-section {
  background: transparent;
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  color: var(--fg);
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .about-grid {
/*     grid-template-columns: 1fr 1fr; */
    text-align: left;
    gap: 2rem;
    align-items: center;
  }
}

.about-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-links .btn {
  padding: 12px 24px;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-color, #b88a44);
  color: var(--accent-color, #b88a44);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent-color, #b88a44);
  color: #fff;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  border-radius: 12px;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}
