@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f4f0e8;
  --cream: #f7f3ea;
  --taupe: #e6dccb;
  --sand: #efe6d8;
  --ink: #1b1714;
  --muted: #433d36;
  --bronze: #6a4324;
  --bronze-ink: #fffaf3;
  --bronze-deep: #4e321e;
  --green: #16312c;
  --green-ink: #f4f0e8;
  --night: #14110f;
  --night-ink: #f6f1ea;
  --night-muted: #ddd4c8;
  --card: #fffcf7;
  --hero-base: #120e0c;
  --cta-base: #102420;
  --logo: #807565;
  --link-on-dark: #f0d7a4;
  --line: #c9bba8;
  --radius: 12px;
  --pill: 999px;
  --max: 1200px;
  --nav-h: 4.5rem;
  --dock-h: 4.75rem;
  --section: 3rem;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --section: 4.5rem; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--nav-h) + 0.75rem); }

body {
  margin: 0;
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

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

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin: 0.4rem 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin: 0 0 0.65rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
p { margin: 0 0 0.75rem; }

a { color: var(--bronze); }
a:visited { color: var(--bronze); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #f0d7a4;
}

::selection { background: #e0c08a; color: var(--ink); }

.skip {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: var(--pill);
}

.skip:focus,
.skip:focus-visible { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap { width: min(var(--max), calc(100% - 3rem)); }
}

.noscript-note {
  background: #e0c08a;
  color: var(--ink);
  margin: 0;
  padding: 0.75rem 1.25rem;
  text-align: center;
}

/* Header */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
}

.wordmark {
  display: flex;
  margin-right: auto;
  background: var(--logo);
  border-radius: 6px;
  line-height: 0;
}

.wordmark img { height: 2.6rem; width: auto; }

.wa-btn,
.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--pill);
  color: var(--ink);
}

.wa-btn {
  display: inline-grid;
  place-items: center;
  background: var(--bronze);
  color: var(--bronze-ink);
  text-decoration: none;
}

.wa-btn:visited { color: var(--bronze-ink); }
.wa-btn:hover { background: var(--bronze-deep); }

.menu-toggle {
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker { display: none; }
.menu-toggle::marker { content: ""; }

.menu-toggle__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-details[open] .icon-open,
.nav-details:not([open]) .icon-close,
.nav-details[open] .label-open,
.nav-details:not([open]) .label-close { display: none; }

.nav-details { position: static; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.35rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:visited { color: var(--ink); }
.nav-links a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .nav-details:not([open]) > .site-nav { display: none !important; }

  .nav-details[open] .site-nav {
    position: absolute;
    display: flex;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 1rem 1.1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 17, 15, 0.12);
  }

  .nav-cta { width: 100%; }
}

@media (min-width: 1024px) {
  .wa-btn,
  .menu-toggle { display: none; }

  .nav-details {
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .nav-details > .site-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn--fill,
.btn--fill:visited {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--bronze-ink);
}

.btn--fill:hover {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
  color: var(--bronze-ink);
}

.btn--line,
.btn--line:visited {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--line:hover { background: rgba(27, 23, 20, 0.06); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

/* Hero */
.hero__fig {
  position: relative;
  margin: 0;
  background: var(--hero-base);
}

.hero__fig img { width: 100%; height: auto; }

@media (max-width: 767px) {
  .hero__fig img {
    height: 11rem;
    object-fit: cover;
    object-position: center 35%;
  }
}

.hero__panel {
  background: var(--hero-base);
  color: #f7f3ea;
  padding: 1.35rem 0 2.4rem;
}

.hero__panel .tagline,
.hero__panel .fine,
.price__kicker { color: #e4d9cc; }

.hero .btn--line,
.hero .btn--line:visited,
.hero .btn--line:hover {
  background: var(--hero-base);
  border-color: #f4f0e8;
  color: #f4f0e8;
}

.eyebrow,
.label {
  display: inline-flex;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

@media (min-width: 768px) {
  .eyebrow,
  .label { font-size: 0.875rem; }
}

.eyebrow { color: #f7f3ea; }
.label { color: var(--muted); }

.tagline { margin: 0; max-width: 38rem; font-size: 1.125rem; }

.price { margin: 1rem 0 0.35rem; }
.price__kicker {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price__value {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 500;
  color: #f7f3ea;
}

.fine { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cap {
  display: inline-flex;
  margin: 0;
  padding: 0.28rem 0.6rem;
  border-radius: var(--pill);
  background: #f4f0e8;
  color: #1b1714;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.hero__fig,
.xsuite figure { position: relative; }

.hero__fig .cap,
.shot .cap,
.frame .cap,
.tile figure .cap,
.xsuite figure .cap {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
}

/* Proof */
.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
}

.proof li {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: var(--card);
}

.proof strong {
  display: block;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.proof span { color: var(--muted); font-size: 0.95rem; }

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

@media (min-width: 1024px) {
  .proof { grid-template-columns: repeat(6, 1fr); }
}

/* Sections */
.band { padding-block: var(--section); }
.band--cream { background: var(--cream); }
.band--taupe { background: var(--taupe); }
.band--sand { background: var(--sand); }
.band--night { background: var(--night); color: var(--night-ink); }
.band--green { background: var(--green); color: var(--green-ink); }

.section-head { max-width: 40rem; margin-bottom: 1.5rem; }
.lede { max-width: 42rem; color: var(--muted); font-size: 1.05rem; }

.band--night .label,
.band--night .lede,
.band--night .fine,
.band--green .label,
.band--green .lede,
.band--green .fine { color: var(--night-muted); }

.band--night a,
.band--night a:visited,
.band--green a,
.band--green a:visited { color: var(--link-on-dark); }

/* Highlights */
.bento {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.tile figure { position: relative; margin: 0; }
.tile img { width: 100%; height: auto; }
.tile__copy { padding: 1rem 1.05rem 1.15rem; }
.tile__copy p { margin: 0; color: var(--muted); }

.tile--text {
  justify-content: flex-end;
  min-height: 11rem;
  padding: 1.2rem;
  background: var(--green);
  color: var(--green-ink);
}

.tile--text p { margin: 0; color: var(--night-muted); }
.tile--text h3 { color: var(--green-ink); }

.tile--wide {
  padding: 1.2rem;
  background: var(--night);
  color: var(--night-ink);
}

.tile--wide p { margin: 0; color: var(--night-muted); }
.tile--wide h3 { color: var(--night-ink); }

@container (min-width: 28rem) {
  .tile h3 { font-size: 1.55rem; }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--lead,
  .tile--wide { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-areas:
      "lead lrt acres"
      "lead green vistas"
      "wide wide wide";
  }

  .tile--lead { grid-area: lead; }
  .tile--lrt { grid-area: lrt; }
  .tile--acres { grid-area: acres; }
  .tile--green { grid-area: green; }
  .tile--vistas { grid-area: vistas; }
  .tile--wide { grid-area: wide; }
}

/* Layouts */
.layout-picker {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.layout-picker label { font-weight: 500; }

.layout-picker select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #6a4324;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.layout-picker select,
.field select {
  appearance: none;
  padding-inline-end: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236a4324' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}

.tablist {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.tab {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid #6a4324;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--bronze-ink);
}

@media (min-width: 768px) {
  .layout-picker { display: none; }
  .tablist { display: flex; }
}

.units {
  display: grid;
  gap: 0.85rem;
}

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

.unit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: var(--card);
}

.unit figure { margin: 0 0 0.8rem; background: #fff; border-radius: 8px; }
.unit img { width: 100%; height: auto; }
.unit figcaption { margin: 0.45rem 0.2rem 0; color: var(--muted); font-size: 0.95rem; }
.unit .btn { margin-top: auto; align-self: flex-start; }

.xsuite {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.xsuite figure { position: relative; margin: 0; }
.xsuite img { width: 100%; height: auto; border-radius: var(--radius); }

@media (min-width: 768px) {
  .xsuite { grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; }
}

/* Facilities */
.level { margin-top: 1.75rem; }
.level:first-of-type { margin-top: 0; }

.facilities { display: grid; gap: 0.75rem; }

.facility {
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}

.facility summary { cursor: pointer; list-style: none; }
.facility summary::-webkit-details-marker { display: none; }
.facility summary::marker { content: ""; }

.facility__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.05rem;
}

.facility__summary h3 { flex: 1; margin: 0; }

.chevron { width: 1.25rem; height: 1.25rem; margin-left: auto; }
.facility[open] .chevron { transform: rotate(180deg); }

.facility__body { padding: 0 1.05rem 1.05rem; color: var(--muted); }

.amenity-list {
  margin: 0;
  padding-left: 1.15rem;
}

.amenity-list li { margin-block: 0.2rem; }

.shots {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d0c4;
}

.frame img { width: 100%; height: auto; }
.frame figcaption.below {
  position: static;
  padding: 0.55rem 0.2rem 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .facility:not([open]) > .facility__body { display: none !important; }
}

@media (min-width: 768px) {
  .facilities { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .frame--wide { grid-column: 1 / -1; }

  .facility > .facility__body {
    display: block !important;
    content-visibility: visible !important;
  }

  .facility summary { pointer-events: none; }
  .chevron { display: none; }
}

/* Views */
.panos { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.panos figure { margin: 0; }
.panos img { width: 100%; height: auto; border-radius: var(--radius); background: #d9d0c4; }
.panos figcaption { margin-top: 0.35rem; color: var(--muted); }

/* Location */
.loc-grid { display: grid; gap: 1.5rem; }
.times { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.times li { margin-block: 0.35rem; }

@media (min-width: 768px) {
  .loc-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .loc-grid .span-2 { grid-column: 1 / -1; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d0c4;
  color: inherit;
  cursor: pointer;
}

.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.shot--lead { grid-column: span 2; }
.shot--lead img { aspect-ratio: 16 / 9; }

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

#gallery-dialog {
  width: min(56rem, calc(100vw - 1.5rem));
  max-height: min(92dvh, 52rem);
  margin: auto;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}

#gallery-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#gallery-dialog::backdrop { background: rgba(20, 17, 15, 0.72); }

.dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dialog__bar h2 { margin: 0; font-size: 1.5rem; }

.lightbox__fig { margin: 0; }
.lightbox__fig img { width: 100%; height: auto; border-radius: 8px; background: #d9d0c4; }
.lightbox__fig figcaption { margin-top: 0.45rem; color: var(--muted); }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cta-base);
  color: var(--green-ink);
}

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

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 32, 0.9);
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.cta h2,
.cta .lede,
.cta .cap { color: #f4f0e8; }
.cta .cap { position: static; margin-bottom: 0.8rem; background: #f4f0e8; color: #1b1714; }

.cta .btn--line,
.cta .btn--line:visited,
.cta .btn--line:hover {
  background: var(--cta-base);
  border-color: #f4f0e8;
  color: #f4f0e8;
}

/* Enquiry */
.enquire-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: #221c18;
}

.contact-card p { margin: 0; }
.contact-card dt { color: var(--night-muted); font-size: 0.875rem; }
.contact-card dd { margin: 0 0 0.55rem; }

.form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; color: var(--night-ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-status { min-height: 1.5em; margin: 0; color: var(--link-on-dark); }

@media (min-width: 768px) {
  .enquire-grid { grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
}

@media (max-width: 479px) {
  .form .btn,
  .nav-cta,
  .actions .btn { width: 100%; }
}

/* FAQ */
.faq { display: grid; gap: 0.65rem; }

.faq details {
  border-radius: var(--radius);
  background: var(--card);
}

.faq summary {
  cursor: pointer;
  min-height: 3.25rem;
  padding: 0.85rem 1.05rem;
  font-weight: 500;
}

.faq details p { margin: 0; padding: 0 1.05rem 1rem; color: var(--muted); }

/* Footer */
.footer {
  background: var(--green);
  color: var(--green-ink);
  padding-block: 2.5rem 2rem;
}

.footer a,
.footer a:visited { color: #f4f0e8; }

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

.footer__heading {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer .fine,
.legal { color: var(--night-muted); }

.legal { margin: 1.5rem 0 0; font-size: 0.95rem; }
.legal p { margin: 0 0 0.65rem; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.logo-row img { background: var(--logo); border-radius: 6px; }
.logo-khaya { height: 3rem; width: auto; }
.logo-me { height: 4.5rem; width: auto; background: #fff !important; }

.footer p,
.legal { overflow-wrap: anywhere; }

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

/* Sticky phone bar */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 35;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.dock .btn { flex: 1; }

@media (min-width: 768px) {
  .dock { display: none; }
}

/* Tower views */
.tower-stage {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.tower-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d0c4;
}

.tower-frame > img {
  width: 100%;
  height: 32rem;
  object-fit: cover;
  object-position: 50% 40%;
}

@media (min-width: 768px) {
  .tower-frame > img { height: 38rem; }
}

.hotspot {
  position: absolute;
  left: 58%;
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 2px solid #fffaf3;
  border-radius: var(--pill);
  background: #120e0c;
  color: #fffaf3;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hotspot.is-on {
  background: var(--bronze);
  border-color: #fffaf3;
}

.view-stage {
  position: relative;
  display: grid;
  min-height: 12rem;
}

.view-prompt {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  color: var(--muted);
}

.view-card {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateX(-1.25rem);
  transform-origin: left center;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.view-card.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.view-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #d9d0c4;
}

.view-card figcaption {
  margin-top: 0.4rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .tower-stage { grid-template-columns: 1.15fr 0.85fr; }
}

/* Similar projects */
.similar {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.similar-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ph-block {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.8rem;
  border-radius: 8px;
  background: #d5cdc0;
  color: #3a342c;
  font-size: 0.95rem;
  text-align: center;
}

.similar-card h3 { margin-bottom: 0.2rem; }
.similar-card p { margin: 0 0 0.25rem; color: var(--muted); }
.similar-card .btn { margin-top: auto; align-self: flex-start; }

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

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

.frame,
.tile figure,
.unit figure { overflow: hidden; }

.frame img,
.tile figure img,
.unit figure img { transition: transform 0.45s ease; }

@media (hover: hover) {
  .btn--fill:hover,
  .btn--fill:focus-visible {
    background: #fffaf3;
    color: #6a4324;
    border-color: #6a4324;
  }

  .hero .btn--line:hover,
  .hero .btn--line:focus-visible,
  .cta .btn--line:hover,
  .cta .btn--line:focus-visible,
  .dock .btn--line:hover,
  .dock .btn--line:focus-visible {
    background: #f4f0e8;
    color: #120e0c;
    border-color: #f4f0e8;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--bronze);
    text-decoration: underline;
    text-underline-offset: 0.4rem;
    transition: color 0.3s ease;
  }

  .frame:hover img,
  .tile:hover img,
  .tile:focus-within img,
  .unit:hover img,
  .unit:focus-within img {
    transform: scale(1.04);
  }

  .hotspot:hover,
  .hotspot:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--bronze);
  }

  .similar-card:hover,
  .similar-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 0 10px rgba(50, 50, 50, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-card { transform: none; transition: none; }
  .hotspot,
  .similar-card,
  .frame img,
  .tile figure img,
  .unit figure img { transition: none; }
}

/* Scroll reveal. Content stays visible before it enters, and where view() is unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise ease forwards;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
      animation-duration: auto;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: none; }
}

.bento .tile:nth-child(2) { animation-range: entry 8% cover 34%; }
.bento .tile:nth-child(3) { animation-range: entry 14% cover 40%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
