/* ============================================================
   Keithville Apartments — Bajan editorial
   Palette from the building itself; type does the heavy lifting.
   ============================================================ */

:root {
  --shell: #faf5ec;        /* warm cream ground */
  --shell-deep: #f1e9d9;   /* deeper cream for bands */
  --ink: #22271f;          /* green-black text */
  --ink-soft: #4c5245;
  --palm: #2e4126;         /* deep green — dark sections */
  --palm-deep: #24331e;
  --leaf: #55694b;         /* mid sage — labels, rules */
  --sage: #a9bc9b;
  --sage-tint: #e9eee1;
  --coral: #d0704f;        /* single accent */
  --coral-deep: #b25a3d;
  --hairline: rgba(34, 39, 31, 0.16);
  --hairline-light: rgba(250, 245, 236, 0.22);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --wrap: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --breeze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23faf5ec' stroke-width='3'%3E%3Crect x='4' y='4' width='88' height='88'/%3E%3Cpath d='M4 4l88 88M92 4L4 92'/%3E%3Crect x='34' y='34' width='28' height='28' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.05; margin: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
address { font-style: normal; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 60;
  background: var(--ink); color: var(--shell);
  padding: 0.6rem 1rem; border-radius: 0 0 4px 4px;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--coral); color: var(--shell); }

/* ---------- Shared atoms ---------- */
.kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 1rem;
}
.kicker--light { color: var(--sage); }

.h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}

.aside-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.9rem;
}
.aside-label--light { color: var(--sage); }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Dot-leader lists */
.leader-list { list-style: none; }
.leader-list li {
  display: flex; align-items: baseline; gap: 0.6ch;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.leader-list li:last-child { border-bottom: 0; }
.leader-list span { color: var(--ink-soft); flex: none; }
.leader-list i {
  flex: 1; min-width: 2ch;
  border-bottom: 2px dotted rgba(34, 39, 31, 0.32);
  transform: translateY(-0.28em);
}
.leader-list b { font-weight: 620; text-align: right; }

/* Text links — animated underline */
.text-link {
  display: inline-block;
  color: var(--coral-deep);
  font-weight: 560;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 28% 1.5px; }
.text-link--light { color: var(--shell); font-weight: 480; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-weight: 620;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--shimmer {
  position: relative; overflow: hidden;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(176, 90, 61, 0.55);
}
.btn--shimmer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: shimmer 4.2s var(--ease-out) infinite;
}
@keyframes shimmer {
  0%, 55% { transform: translateX(-110%); }
  75%, 100% { transform: translateX(110%); }
}
.btn--shimmer:hover { background: var(--coral-deep); }

.btn--outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover { background: var(--ink); color: var(--shell); }

.btn--solid { background: var(--palm); color: var(--shell); }
.btn--solid:hover { background: var(--palm-deep); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* Breeze-block motif */
.breeze {
  background-image: var(--breeze);
  background-size: 48px 48px;
  opacity: 0.85;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--shell) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-head.is-scrolled {
  background: var(--shell);
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 30px -24px rgba(34, 39, 31, 0.5);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none;
}
.brand__badge { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand__word em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-top: 0.28rem;
}

.nav-list {
  list-style: none;
  display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem);
}
.nav-list a { text-decoration: none; font-size: 0.95rem; font-weight: 540; }
.nav-list li:not(.nav-list__phone) a {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out);
  padding-bottom: 3px;
}
.nav-list li:not(.nav-list__phone) a:hover { background-size: 100% 2px; }

.phone-pill {
  display: inline-flex; align-items: center; gap: 0.5ch;
  border: 1.5px solid var(--palm);
  color: var(--palm);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.25s, color 0.25s;
}
.phone-pill:hover { background: var(--palm); color: var(--shell); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px;
  }
  .nav-toggle__bar {
    width: 22px; height: 2px; background: var(--ink);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: var(--shell);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad) 1.25rem;
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; border-top: 1px solid var(--hairline); }
  .nav-list li a { display: block; padding: 0.85rem 0; font-size: 1.05rem; }
  .nav-list__phone { padding-top: 1rem; border-top-width: 0 !important; }
  .phone-pill { width: 100%; justify-content: center; }
}

/* ============================================================
   HERO — split, photo bleeding right
   ============================================================ */
.hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 6vh, 4.5rem) 0 0 var(--pad);
  max-width: none;
}
.hero__copy { max-width: 40rem; padding-right: var(--pad); }
.hero__title {
  font-size: clamp(3rem, 9.5vw, 6.75rem);
  font-weight: 480;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 1.4rem;
}
.hero__title span { display: block; }
.hero__title-step { margin-left: clamp(1.2rem, 4vw, 3.5rem); }
.hero__title-step2 { margin-left: clamp(2.4rem, 8vw, 7rem); }
.hero__title em { font-style: italic; color: var(--coral); }
.hero__lede { max-width: 34rem; font-size: 1.1rem; color: var(--ink-soft); }
.hero__lede strong { color: var(--ink); }
.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  margin: 1.6rem 0 2.2rem;
}
.hero__facts {
  display: flex; gap: clamp(1.2rem, 4vw, 2.6rem);
  margin: 0; padding: 0;
}
.hero__facts div { border-left: 2px solid var(--coral); padding-left: 0.9rem; }
.hero__facts dt {
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--leaf);
}
.hero__facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
}
.hero__facts dd span { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-body); }

.hero__photo { position: relative; margin: 0; }
.hero__photo img {
  width: 100%; height: clamp(300px, 52vh, 560px);
  object-fit: cover;
  object-position: center 64%;
  border-radius: 6px 0 0 6px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-top: clamp(2.5rem, 8vh, 5.5rem);
  }
  .hero__photo img { height: clamp(460px, 74vh, 680px); }
}

/* ============================================================
   WELCOME
   ============================================================ */
.welcome {
  display: grid; gap: 2.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) clamp(3rem, 8vh, 5.5rem);
}
.welcome__text { max-width: var(--measure); color: var(--ink-soft); font-size: 1.08rem; }
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--palm);
}
.welcome__sign {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--leaf);
  margin-top: 1.4rem;
}
.welcome__aside {
  border-top: 3px solid var(--palm);
  padding-top: 1.2rem;
  align-self: start;
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1.55fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
  .welcome__aside { margin-top: 3.2rem; }
}

/* ============================================================
   APARTMENTS — numbered index rows
   ============================================================ */
.apts {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) var(--pad);
}
.apts__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.apts__note { color: var(--ink-soft); }

.apt-row {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.8rem, 4vh, 3rem) 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.apt-row:last-of-type { border-bottom: 1px solid var(--hairline); }

.apt-row__num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.8;
  color: var(--coral);
  opacity: 0.85;
}
.apt-row__name { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 0.3rem; }
.apt-row__meta {
  font-size: 0.75rem; font-weight: 650;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.9rem;
}
.apt-row__desc { max-width: 48ch; color: var(--ink-soft); }
.apt-row__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  margin-top: 1.1rem;
}

.apt-row__photo {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 40px -26px rgba(34, 39, 31, 0.55);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.apt-row__photo img {
  width: 100%; height: clamp(230px, 30vw, 330px);
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.apt-row__photo:hover { box-shadow: 0 30px 50px -26px rgba(34, 39, 31, 0.6); }
.apt-row__photo:hover img { transform: scale(1.035); }
.apt-row__photo::after {
  content: "View photos";
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  font-size: 0.72rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff;
  background: rgba(34, 39, 31, 0.68);
  padding: 0.42rem 0.75rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.apt-row__photo:hover::after, .apt-row__photo:focus-visible::after { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .apt-row { grid-template-columns: auto 1.25fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
  .apt-row--flip { grid-template-columns: auto 1fr 1.25fr; }
  .apt-row--flip .apt-row__info { order: 3; }
  .apt-row--flip .apt-row__photo { order: 2; }
  .apt-row__photo { margin: -0.6rem 0; }
  .apt-row--flip .apt-row__photo { transform: rotate(-1deg); }
  .apt-row--flip .apt-row__photo:hover { transform: rotate(0deg); }
}

/* ============================================================
   INCLUDED — dark band with grain + breeze
   ============================================================ */
.included {
  position: relative;
  background: var(--palm);
  color: var(--shell);
  overflow: hidden;
}
.included::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.included__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad) clamp(4rem, 10vh, 6.5rem);
  display: grid;
  gap: 2.5rem;
}
.included__note { color: var(--sage); max-width: 30ch; }
.included__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.included__list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--hairline-light);
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.included__list .ico { color: var(--sage); width: 1.35em; height: 1.35em; }
.breeze--band {
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 44px;
  opacity: 0.28;
}
@media (min-width: 700px) {
  .included__list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .included__inner { grid-template-columns: 1fr 1.7fr; align-items: start; }
}

/* ============================================================
   GALLERY — broken grid
   ============================================================ */
.gallery {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
}
.gallery__head { margin-bottom: clamp(1.8rem, 4vh, 3rem); }
.gallery__grid {
  columns: 2;
  column-gap: clamp(0.9rem, 2vw, 1.4rem);
}
.gallery__grid figure {
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.8rem);
  break-inside: avoid;
  position: relative;
}
.gallery__grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.gallery__grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}
.tilt { transform: rotate(-1.4deg); }
.tilt img { box-shadow: 0 16px 34px -20px rgba(34, 39, 31, 0.5); }
/* stagger the column tops so the masonry reads hand-placed */
@media (min-width: 900px) {
  .gallery__grid { columns: 3; }
  .g-b { margin-top: 2.6rem; }
  .g-c { transform: rotate(-1.4deg) translateY(0.6rem); }
}

/* ============================================================
   RATES — big numeral + steps
   ============================================================ */
.rates {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(4rem, 10vh, 6.5rem);
  display: grid;
  gap: 3rem;
  border-top: 1px solid var(--hairline);
}
.rates__from {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--leaf);
  margin: 0.5rem 0 0;
}
.rates__figure {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11vw, 8rem);
  font-weight: 480;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.4rem;
}
.rates__per { font-size: 0.22em; font-weight: 560; color: var(--ink-soft); letter-spacing: 0; margin-left: 0.5ch; }
.rates__terms { max-width: 24rem; }

.rates__steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0;
  align-self: center;
}
.rates__steps li { border-top: 1px solid var(--hairline); padding: 1.4rem 0; }
.rates__steps li:last-child { padding-bottom: 0; }
.rates__steps h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.rates__steps h3 span { color: var(--coral); font-style: italic; font-weight: 400; margin-right: 0.3ch; }
.rates__steps p { color: var(--ink-soft); max-width: 52ch; margin: 0; }

@media (min-width: 900px) {
  .rates { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 8vw, 7rem); }
}

/* ============================================================
   LOCATION
   ============================================================ */
.location {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 10vh, 7rem);
  display: grid;
  gap: 2.5rem;
}
.location__addr {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 1.6rem;
}
.location__info .leader-list { max-width: 26rem; margin-bottom: 1.4rem; }
.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 6px;
  filter: grayscale(0.35) sepia(0.08);
  box-shadow: 0 24px 44px -30px rgba(34, 39, 31, 0.55);
}
@media (min-width: 900px) {
  .location { grid-template-columns: 1fr 1.35fr; gap: clamp(2.5rem, 6vw, 5rem); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  position: relative;
  background: var(--palm-deep);
  color: var(--shell);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.site-foot__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) 2.5rem;
  display: grid;
  gap: 2.5rem;
}
.site-foot__brand img {
  border-radius: 50%;
  width: 116px; height: 116px;
  border: 2px solid var(--hairline-light);
}
.site-foot__tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage);
  margin-top: 1rem;
}
.site-foot ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.98rem; }
.site-foot__fine {
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  color: var(--sage);
  border-top: 1px solid var(--hairline-light);
  margin: 0;
  padding: 1.4rem var(--pad) 1.8rem;
}
@media (min-width: 820px) {
  .site-foot__inner { grid-template-columns: auto 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
}

/* ============================================================
   APARTMENT DIALOGS
   ============================================================ */
.apt-dialog {
  border: 0;
  padding: 0;
  width: min(1020px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  background: var(--shell);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(20, 26, 16, 0.7);
  overscroll-behavior: contain;
}
.apt-dialog::backdrop {
  background: rgba(24, 30, 20, 0.62);
  backdrop-filter: blur(3px);
}
.apt-dialog[open] { animation: dlg-in 0.45s var(--ease-out); }
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.apt-dialog__frame { display: grid; }
.apt-dialog__close {
  position: sticky;
  top: 0.75rem;
  justify-self: end;
  margin: 0.75rem 0.75rem -3.1rem 0;
  z-index: 5;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-content: center;
  border-radius: 50%;
  background: rgba(34, 39, 31, 0.72);
  color: var(--shell);
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.25s, transform 0.18s var(--ease-out);
}
.apt-dialog__close:hover { background: var(--coral-deep); }
.apt-dialog__close:active { transform: scale(0.94); }

.apt-dialog__gallery {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--palm-deep);
  padding: 0.6rem;
  border-radius: 8px 8px 0 0;
  scrollbar-color: var(--sage) var(--palm-deep);
}
.apt-dialog__gallery img {
  height: clamp(240px, 45vh, 420px);
  width: auto;
  max-width: 86%;
  flex: none;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 4px;
}
.apt-dialog__body { padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 2.8rem); }
.apt-dialog__title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.9rem; }
.apt-dialog__body > p { color: var(--ink-soft); max-width: 64ch; }
.apt-dialog__cols { display: grid; gap: 0 2.5rem; margin: 1.2rem 0 1.5rem; }
.apt-dialog__rate {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  border-top: 3px solid var(--palm);
  display: inline-block;
  padding-top: 0.8rem;
}
.apt-dialog__photo-note {
  font-style: italic;
  color: var(--leaf);
  border-left: 3px solid var(--sage);
  padding-left: 1rem;
}
.apt-dialog__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  margin-top: 1.2rem;
}
@media (min-width: 720px) {
  .apt-dialog__cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn--shimmer::after { animation: none; }
  .apt-dialog[open] { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
