/* ==========================================================================
   AURELIA HOUSE — style.css
   A dark, cinematic single-page residence template.
   Pure CSS, no frameworks. Organised section by section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --bg: #0b0a08;
  --bg-2: #12100c;
  --bg-3: #191510;
  --ink: #ece5d6;
  --ink-soft: #cfc5b2;
  --muted: #988d7c;
  --gold: #c8a15f;
  --gold-2: #e6c88a;
  --line: rgba(236, 229, 214, 0.12);
  --line-strong: rgba(236, 229, 214, 0.22);
  --overlay: rgba(11, 10, 8, 0.68);

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* rhythm */
  --gutter: clamp(20px, 5vw, 96px);
  --radius: 26px;
  --radius-lg: 40px;

  /* motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-lux: cubic-bezier(0.65, 0.05, 0, 1);
  --dur: 1s;

  /* layers */
  --z-header: 90;
  --z-cursor: 999;
  --z-preloader: 1000;
  --z-modal: 500;
  --z-menu: 400;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}

/* the page keeps its scroll while the preloader is up */
body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
::selection {
  background: var(--gold);
  color: #14110b;
}

/* subtle film grain over everything — pure CSS, no asset needed */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
  opacity: 0.5;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4%, 3%);
  }
  40% {
    transform: translate(3%, -4%);
  }
  60% {
    transform: translate(-3%, -2%);
  }
  80% {
    transform: translate(4%, 2%);
  }
}

.container {
  width: 100%;
  max-width: 1640px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1001;
  padding: 10px 18px;
  background: var(--gold);
  color: #14110b;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   3. Shared typographic pieces
   -------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.kicker--bare::before {
  display: none;
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.title em,
.title i {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
}

.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
}
.small-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* numbered fraction, e.g. 01 — 05 */
.frac {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  color: var(--ink);
}
.frac b {
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  color: var(--gold-2);
}
.frac span {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   4. Scroll-reveal engine (JS adds .is-in)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* split-line titles: JS wraps lines in .rl > .rl-in */
.rl {
  display: block;
  overflow: hidden;
  padding-block: 0.06em;
  margin-block: -0.06em;
}
.rl-in {
  display: inline-block;
  transform: translateY(115%) rotate(1.2deg);
  transform-origin: 0 100%;
  transition: transform 1.25s var(--ease-lux);
  will-change: transform;
}
.is-in .rl-in,
.rl.is-in .rl-in {
  transform: none;
}

/* cinematic image curtain */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: scaleY(1);
  transform-origin: 50% 0;
  transition: transform 1.3s var(--ease-lux) 0.1s;
  z-index: 2;
}
.media-frame.is-in::after {
  transform: scaleY(0);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 2s var(--ease-out) 0.15s;
}
.media-frame.is-in img {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --pad: 22px 34px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: var(--pad);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  transition:
    color 0.5s var(--ease-out),
    border-color 0.5s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-lux);
}
.btn:hover {
  color: #171308;
  border-color: var(--gold);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(5px);
}

.btn--solid {
  background: var(--gold);
  color: #171308;
  border-color: var(--gold);
}
.btn--solid::before {
  background: var(--ink);
}

/* underline link that draws itself */
.link-draw {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 8px;
}
.link-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform-origin: 100% 50%;
  transition: transform 0.6s var(--ease-lux);
}
.link-draw:hover::after {
  transform: scaleX(0.35);
}
.link-draw svg {
  width: 12px;
  height: 12px;
}

/* big circle buttons (gallery "View", watch, scroll-down) */
.btn-orbit {
  position: relative;
  width: clamp(120px, 12vw, 150px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s;
}
.btn-orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.65s var(--ease-lux);
}
.btn-orbit:hover {
  color: #171308;
}
.btn-orbit:hover::before {
  transform: scale(1);
}
.btn-orbit .orbit-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.5s;
}
.btn-orbit:hover .orbit-sub {
  color: #171308b3;
}

/* --------------------------------------------------------------------------
   6. Custom cursor
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-2);
}
.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 161, 95, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    background-color 0.45s,
    border-color 0.45s;
}
.cursor-ring .cursor-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #171308;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--gold-2);
}
.cursor-ring.is-view {
  width: 92px;
  height: 92px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor-ring.is-view .cursor-label {
  opacity: 1;
}
.cursor-ring.is-down {
  transform: scale(0.85);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button,
  [data-cursor] {
    cursor: none;
  }
}

/* --------------------------------------------------------------------------
   7. Preloader
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1.1s var(--ease-lux) 0.25s;
}
.preloader.is-done {
  transform: translateY(-101%);
}

.preloader__word {
  display: flex;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--ink);
}
.preloader__word span {
  display: inline-block;
  transform: translateY(110%);
  animation: pl-rise 1s var(--ease-lux) forwards;
}
.preloader__word span:nth-child(1) {
  animation-delay: 0.05s;
}
.preloader__word span:nth-child(2) {
  animation-delay: 0.11s;
}
.preloader__word span:nth-child(3) {
  animation-delay: 0.17s;
}
.preloader__word span:nth-child(4) {
  animation-delay: 0.23s;
}
.preloader__word span:nth-child(5) {
  animation-delay: 0.29s;
}
.preloader__word span:nth-child(6) {
  animation-delay: 0.35s;
}
.preloader__word span:nth-child(7) {
  animation-delay: 0.41s;
}
@keyframes pl-rise {
  to {
    transform: none;
  }
}

.preloader__bar {
  position: relative;
  width: min(320px, 60vw);
  height: 1px;
  margin-top: 34px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.preloader__count {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  color: var(--ink);
}
.preloader__count::after {
  content: "%";
  font-size: 0.4em;
  color: var(--gold);
  margin-left: 4px;
}
.preloader__tag {
  position: absolute;
  right: var(--gutter);
  bottom: 44px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Header & fullscreen menu
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding-block: 22px;
  transition:
    transform 0.6s var(--ease-out),
    padding 0.5s,
    background-color 0.5s,
    border-color 0.5s,
    backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.header.is-scrolled {
  padding-block: 12px;
  background: rgba(11, 10, 8, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.header.is-hidden {
  transform: translateY(-102%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.brand__text {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
}
.brand__text b {
  font-weight: 500;
  color: var(--gold-2);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 6px;
  transition: color 0.4s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-lux);
}
.nav a:hover {
  color: var(--gold-2);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.header__phone {
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.4s;
}
.header__phone:hover {
  color: var(--gold-2);
}

.burger {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: none;
  place-items: center;
  transition:
    border-color 0.4s,
    background 0.4s;
}
.burger:hover {
  border-color: var(--gold);
}
.burger span {
  position: absolute;
  left: 17px;
  right: 17px;
  height: 1px;
  background: var(--ink);
  transition:
    top 0.45s var(--ease-lux),
    transform 0.45s var(--ease-lux);
}
.burger span:nth-child(1) {
  top: 23px;
}
.burger span:nth-child(2) {
  top: 30px;
}
.burger.is-open span:nth-child(1) {
  top: 26.5px;
  transform: rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  top: 26.5px;
  transform: rotate(-45deg);
}

/* fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(9, 8, 6, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-content: center;
  gap: 40px;
  padding: 120px var(--gutter) 60px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 0.8s var(--ease-lux),
    visibility 0s 0.8s;
}
.menu.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-lux);
}
.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.28;
  color: var(--ink);
  width: max-content;
  max-width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-lux),
    color 0.4s,
    letter-spacing 0.6s var(--ease-out);
}
.menu__nav a i {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.menu__nav a:hover {
  color: var(--gold-2);
  letter-spacing: 0.04em;
}
.menu.is-open .menu__nav a {
  opacity: 1;
  transform: none;
}
.menu__aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s 0.35s,
    transform 0.9s var(--ease-lux) 0.35s;
}
.menu.is-open .menu__aside {
  opacity: 1;
  transform: none;
}
.menu__aside h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}
.menu__aside a {
  color: var(--ink);
  font-size: 17px;
}
.menu__aside a:hover {
  color: var(--gold-2);
}

/* --------------------------------------------------------------------------
   9. Sections — generic rhythm & the "sheet over poster" effect
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(90px, 11vw, 190px);
}
.section--tight {
  padding-block: clamp(60px, 7vw, 120px);
}

/* pinned poster: full-bleed visual that the next section slides over */
.poster {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 8, 0.45),
    rgba(11, 10, 8, 0.15) 40%,
    rgba(11, 10, 8, 0.72)
  );
}

/* the sheet that covers a poster */
.sheet {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -40px 90px rgba(0, 0, 0, 0.55);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  margin-bottom: clamp(44px, 5.5vw, 90px);
}
.section-head .kicker {
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__bg {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
/* slow ken-burns once page is live */
.is-live .hero__bg img {
  animation: kenburns 26s var(--ease-out) forwards;
}
@keyframes kenburns {
  to {
    transform: scale(1.01);
  }
}

/* drifting light clouds — generated in pure CSS */
.hero__cloud {
  position: absolute;
  z-index: 1;
  width: 65vmax;
  height: 65vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  background: radial-gradient(circle, #d9b57a 0%, transparent 62%);
  mix-blend-mode: screen;
  animation: drift 34s ease-in-out infinite alternate;
}
.hero__cloud--a {
  top: -18%;
  left: -12%;
}
.hero__cloud--b {
  bottom: -30%;
  right: -14%;
  animation-duration: 41s;
  animation-delay: -12s;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(9%, -7%, 0) scale(1.16);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 8, 0.52) 0%,
    rgba(11, 10, 8, 0.08) 34%,
    rgba(11, 10, 8, 0.86) 100%
  );
}

/* huge outline words floating behind the title */
.hero__ghost {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  transform: translateY(-118%);
  width: max-content;
  display: flex;
  gap: 5vw;
  font-family: var(--serif);
  font-size: clamp(90px, 15vw, 240px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 229, 214, 0.16);
  animation: ghost 46s linear infinite;
  pointer-events: none;
}
@keyframes ghost {
  to {
    transform: translateY(-118%) translateX(-50%);
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(34px, 5vh, 64px);
}
.hero__kicker {
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9.4vw, 152px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
}
.hero__title em {
  color: var(--gold-2);
  font-weight: 300;
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 54px;
}
.hero__sub {
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
}

.hero__foot {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding-block: 20px;
}
.hero__foot .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}
.scroll-hint i {
  width: 1px;
  height: 34px;
  background: var(--gold);
  display: inline-block;
  overflow: hidden;
  position: relative;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  animation: hint 1.8s var(--ease-lux) infinite;
}
@keyframes hint {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* --------------------------------------------------------------------------
   11. About / philosophy
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.about__media {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/4.6;
}
.about__actions {
  display: grid;
  gap: 22px;
  margin-top: clamp(38px, 4vw, 64px);
}
.action-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    transparent 55%
  );
  transition:
    border-color 0.5s,
    background-color 0.5s,
    transform 0.6s var(--ease-out);
}
.action-card:hover {
  border-color: rgba(200, 161, 95, 0.55);
  transform: translateY(-4px);
}
.action-card__icon {
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition:
    background 0.5s,
    color 0.5s,
    border-color 0.5s;
}
.action-card:hover .action-card__icon {
  background: var(--gold);
  color: #171308;
  border-color: var(--gold);
}
.action-card__icon svg {
  width: 20px;
  height: 20px;
}
.action-card h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 6px;
}
.action-card p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 44ch;
}
.action-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.5s var(--ease-out);
}
.action-card:hover .action-card__arrow {
  transform: translate(4px, -4px);
}

/* --------------------------------------------------------------------------
   12. Location
   -------------------------------------------------------------------------- */
.location-hero {
  position: relative;
  height: clamp(380px, 72vh, 720px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(50px, 6vw, 100px);
}
.location-hero img {
  height: 118%;
}
.location-hero__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(22px, 3vw, 44px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.location-hero__caption .lead {
  max-width: 52ch;
  color: var(--ink);
}

.loc-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.loc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/3.9;
  background: var(--bg-3);
}
.loc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.4s var(--ease-out),
    filter 1.4s;
  filter: saturate(0.85) brightness(0.9);
}
.loc-card:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}
.loc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, transparent 46%, rgba(8, 7, 5, 0.88));
}
.loc-card__idx {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  padding: 6px 12px;
  background: rgba(10, 9, 7, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.loc-card h3 {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.2;
}
.loc-card h3 small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 8px;
}

/* district map */
.map {
  position: relative;
  margin-top: clamp(50px, 6vw, 100px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(
      1200px 500px at 70% -10%,
      rgba(200, 161, 95, 0.07),
      transparent
    ),
    var(--bg-2);
}
.map svg {
  width: 100%;
  height: auto;
  display: block;
}
.map .pin {
  cursor: pointer;
}
.map .pin circle.core {
  fill: var(--gold);
}
.map .pin circle.pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  from {
    transform: scale(0.4);
    opacity: 1;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.map .pin text {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink);
  opacity: 0;
  transition: opacity 0.4s;
}
.map .pin:hover text,
.map .pin:focus text {
  opacity: 1;
}
.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 22px clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.map__legend b {
  color: var(--gold-2);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. Sticky statement + marquee
   -------------------------------------------------------------------------- */
.statement {
  text-align: center;
  overflow: clip;
}
.statement .kicker {
  justify-content: center;
}
.statement .kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(-90deg, var(--gold), transparent);
}
.statement__big {
  font-family: var(--serif);
  font-size: clamp(42px, 7.2vw, 118px);
  line-height: 1.06;
  margin: 30px auto 36px;
  max-width: 16ch;
}
.statement__big em {
  color: var(--gold-2);
}
.statement .lead {
  margin-inline: auto;
}

.marquee {
  overflow: clip;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  margin-top: clamp(56px, 7vw, 120px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee__inner {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marq 38s linear infinite;
}
.marquee:hover .marquee__inner {
  animation-play-state: paused;
}
.marquee__inner span {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 229, 214, 0.3);
}
.marquee__inner span:nth-child(even) {
  color: var(--gold-2);
  -webkit-text-stroke: 0;
  font-style: italic;
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   14. Architecture & materials
   -------------------------------------------------------------------------- */
.arch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
}
.arch__media {
  aspect-ratio: 3/3.8;
}
.arch__block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.arch__block .lead {
  font-size: 16px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(30px, 3.4vw, 50px);
}
.swatch {
  position: relative;
  border-radius: 18px;
  aspect-ratio: 1/0.9;
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    transform 0.6s var(--ease-out),
    border-color 0.5s;
}
.swatch:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 161, 95, 0.5);
}
.swatch__tex {
  position: absolute;
  inset: 0;
}
.swatch span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
/* textures painted in pure CSS */
.tex-stone {
  background:
    linear-gradient(
      135deg,
      #262019 8%,
      #3a3126 30%,
      #1a1611 55%,
      #453a2b 78%,
      #221d16
    ),
    #2b241c;
  background-blend-mode: screen;
}
.tex-brass {
  background: linear-gradient(
    115deg,
    #6d5527,
    #c8a15f 38%,
    #8a6c35 62%,
    #e6c88a
  );
}
.tex-glass {
  background: linear-gradient(
    155deg,
    #10131a,
    #2c3646 42%,
    #0c0f14 70%,
    rgba(140, 170, 200, 0.35)
  );
}
.tex-crystal {
  background: conic-gradient(
    from 210deg at 50% 40%,
    #efe6d2,
    #8d8168 15%,
    #f4ead6 30%,
    #6f6449 48%,
    #efe6d2 64%,
    #82755a 82%,
    #efe6d2
  );
}

.arch__duo {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(60px, 7vw, 120px);
}
.arch__duo .media-frame:first-child {
  aspect-ratio: 16/10.5;
}
.arch__duo .media-frame:last-child {
  aspect-ratio: 4/4.4;
}
.arch__note {
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: start;
}
.arch__note .frac {
  padding-top: 12px;
}
.arch__note p {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 19px);
}

/* --------------------------------------------------------------------------
   15. Gallery
   -------------------------------------------------------------------------- */
.gallery__head {
  align-items: end;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(60px, 7.4vw, 118px);
  gap: 16px;
}
.mosaic .media-frame {
  border-radius: var(--radius);
}
.mosaic__a {
  grid-area: 1/1/5/6;
}
.mosaic__b {
  grid-area: 1/6/3/9;
}
.mosaic__c {
  grid-area: 3/6/5/9;
}
.mosaic__d {
  grid-area: 1/9/5/13;
}
.mosaic__e {
  grid-area: 5/1/7/8;
}
.mosaic__f {
  grid-area: 5/8/7/13;
  position: relative;
}
.mosaic__f .btn-orbit {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   16. Daily schedule (time slider)
   -------------------------------------------------------------------------- */
.schedule {
  background: var(--bg-2);
}
.schedule__rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 60px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  margin-bottom: clamp(40px, 5vw, 70px);
}
.schedule__rail button {
  position: relative;
  padding: 12px 22px;
  border-radius: 40px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.4s,
    background 0.5s;
  overflow: hidden;
}
.schedule__rail button:hover {
  color: var(--ink);
}
.schedule__rail button.is-active {
  color: #171308;
}
.schedule__rail button i {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  border-radius: 40px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease-lux);
  font-style: normal;
}
.schedule__rail button.is-active i {
  transform: none;
}

.schedule__stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
.schedule__media {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule__media figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.9s var(--ease-out),
    visibility 0s 0.9s;
}
.schedule__media figure.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s var(--ease-out);
}
.schedule__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.schedule__media .chip {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 9px 18px;
  border-radius: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 8, 6, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.schedule__slides {
  position: relative;
  min-height: 300px;
}
.schedule__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.8s var(--ease-lux),
    visibility 0s 0.8s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.schedule__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) 0.15s,
    transform 0.9s var(--ease-lux) 0.15s;
}
.schedule__slide h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 22px;
  line-height: 1.9;
}
.schedule__slide p {
  max-width: 46ch;
  font-size: 16.5px;
}
.schedule__progress {
  height: 1px;
  background: var(--line);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.schedule__progress i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.schedule.is-auto .schedule__progress i {
  animation: sprog var(--slide-dur, 6.5s) linear forwards;
}
@keyframes sprog {
  to {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   17. Lobby banner
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  height: clamp(460px, 86vh, 780px);
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.banner img {
  height: 120%;
  width: 100%;
  object-fit: cover;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 8, 0.55),
    rgba(11, 10, 8, 0.1) 45%,
    rgba(11, 10, 8, 0.82)
  );
}
.banner__content {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px 60px;
}
.banner__content .title {
  font-size: clamp(38px, 5vw, 84px);
}
.banner__content .lead {
  max-width: 46ch;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   18. Advantages — fanned card slider
   -------------------------------------------------------------------------- */
.advantages {
  overflow: clip;
}
.deck {
  position: relative;
  height: clamp(480px, 66vh, 620px);
  touch-action: pan-y;
}
.deck__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(680px, 88vw);
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  transform: translateX(-50%);
  transition:
    transform 0.85s var(--ease-lux),
    opacity 0.6s;
  will-change: transform;
  user-select: none;
}
.deck__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
}
.deck__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    185deg,
    rgba(10, 9, 7, 0.12) 30%,
    rgba(10, 9, 7, 0.92)
  );
}
.deck__card-body {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 36px);
}
.deck__card-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  margin: 14px 0 10px;
}
.deck__card-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 52ch;
}
.deck__card .frac {
  position: relative;
  z-index: 2;
}
.deck__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 40px;
}
.deck__btn {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    background 0.5s,
    color 0.5s,
    border-color 0.5s,
    transform 0.3s;
}
.deck__btn:hover {
  background: var(--gold);
  color: #171308;
  border-color: var(--gold);
}
.deck__btn:active {
  transform: scale(0.92);
}
.deck__btn svg {
  width: 18px;
  height: 18px;
}
.deck__btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   19. Fitness
   -------------------------------------------------------------------------- */
.fitness {
  background: var(--bg-2);
}
.fit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  padding-block: clamp(40px, 4.4vw, 80px);
}
.fit-row + .fit-row {
  border-top: 1px solid var(--line);
}
.fit-row:nth-child(even) .fit-row__media {
  order: 2;
}
.fit-row__media {
  aspect-ratio: 16/11.5;
}
.fit-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.18;
  margin-bottom: 16px;
}
.fit-row .fit-idx {
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.fit-row p {
  color: var(--ink-soft);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   20. Infrastructure — horizontal scrollbar-free slider
   -------------------------------------------------------------------------- */
.infra__shell {
  position: relative;
}
.hslider {
  position: relative;
  touch-action: pan-y;
}
.hslider__track {
  display: flex;
  gap: 22px;
  transition: transform 0.9s var(--ease-lux);
  will-change: transform;
}
.hslider__slide {
  flex: 0 0 min(430px, 82vw);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  user-select: none;
}
.hslider__slide .media-frame {
  border-radius: 0;
  aspect-ratio: 4/3;
}
.hslider__slide-body {
  padding: 26px 26px 30px;
}
.hslider__slide-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hslider__slide-body p {
  font-size: 14px;
  color: var(--muted);
}
.hslider__bar {
  height: 1px;
  background: var(--line);
  margin-top: 34px;
  position: relative;
}
.hslider__bar i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background: var(--gold);
  transition: transform 0.9s var(--ease-lux);
}

/* --------------------------------------------------------------------------
   21. Private park
   -------------------------------------------------------------------------- */
.park__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
.park__collage {
  position: relative;
}
.park__collage .media-frame:first-child {
  aspect-ratio: 4/4.7;
  width: 72%;
}
.park__collage .media-frame:last-child {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 46%;
  aspect-ratio: 3/3.6;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   22. Residences & plans
   -------------------------------------------------------------------------- */
.residences {
  background: var(--bg-2);
}
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(40px, 4.6vw, 70px);
}
.plan-tabs button {
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 60px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition:
    color 0.4s,
    border-color 0.4s,
    background 0.5s;
}
.plan-tabs button:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.plan-tabs button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #171308;
}

.plan__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
.plan__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      700px 300px at 50% 0,
      rgba(200, 161, 95, 0.06),
      transparent
    ),
    var(--bg);
  padding: clamp(20px, 3vw, 44px);
}
.plan__stage svg {
  width: 100%;
  height: auto;
}
.plan-fig {
  display: none;
}
.plan-fig.is-active {
  display: block;
  animation: planIn 0.8s var(--ease-out);
}
@keyframes planIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
.plan-fig .room {
  fill: none;
  stroke: rgba(236, 229, 214, 0.5);
  stroke-width: 1.4;
}
.plan-fig .room--gold {
  stroke: var(--gold);
}
.plan-fig text {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--muted);
}
.plan-fig text.big {
  font-family: var(--serif);
  font-size: 30px;
  fill: var(--ink);
  letter-spacing: 0.02em;
  text-transform: none;
}
.plan-fig .dim {
  stroke: rgba(200, 161, 95, 0.6);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.plan__meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.1;
  margin-bottom: 8px;
}
.plan__meta .area {
  color: var(--gold-2);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan__specs {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
.plan__specs li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.plan__specs li span:first-child {
  color: var(--muted);
}
.plan__specs li span:last-child {
  color: var(--ink);
}
.plan__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.plan__terms b {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(200, 161, 95, 0.4);
  padding: 9px 16px;
  border-radius: 40px;
}

/* --------------------------------------------------------------------------
   23. Tech & services
   -------------------------------------------------------------------------- */
.tech__slide {
  flex-basis: min(560px, 86vw);
}
.tech__slide .hslider__slide-body h3 {
  font-size: 30px;
}

/* --------------------------------------------------------------------------
   24. Penthouses
   -------------------------------------------------------------------------- */
.penthouse__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 50px);
  margin-block: clamp(50px, 6vw, 100px);
}
.stat {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.6vw, 88px);
  line-height: 1;
  color: var(--gold-2);
}
.stat b sup {
  font-size: 0.34em;
  color: var(--ink-soft);
  margin-left: 6px;
}
.stat span {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.penthouse__terrace {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
.penthouse__terrace .media-frame {
  aspect-ratio: 4/4.6;
}

/* --------------------------------------------------------------------------
   25. Contact / form
   -------------------------------------------------------------------------- */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.form {
  display: grid;
  gap: 22px;
}
.field {
  position: relative;
}
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.4s;
}
.field label {
  position: absolute;
  left: 2px;
  top: 18px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transition:
    transform 0.45s var(--ease-out),
    font-size 0.45s,
    color 0.45s;
}
.field input:focus {
  border-color: var(--gold);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-24px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.form .btn {
  justify-self: start;
  margin-top: 8px;
}
.form__ok {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(200, 161, 95, 0.4);
  border-radius: 16px;
  color: var(--gold-2);
  background: rgba(200, 161, 95, 0.06);
}
.form.is-sent {
  display: none;
}
.form__ok.is-shown {
  display: flex;
  animation: planIn 0.7s var(--ease-out);
}
.form__ok svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.contact__aside ul {
  display: grid;
  gap: 26px;
  margin-top: 10px;
}
.contact__aside h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.contact__aside a,
.contact__aside p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
}
.contact__aside a:hover {
  color: var(--gold-2);
}
.contact__map-note {
  margin-top: 38px;
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 110px) 0 40px;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(44px, 5vw, 80px);
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer__nav a {
  display: block;
  width: max-content;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 15px;
  transition:
    color 0.4s,
    transform 0.5s var(--ease-out);
}
.footer__nav a:hover {
  color: var(--gold-2);
  transform: translateX(6px);
}
.footer__brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  margin-top: 16px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__bottom a {
  color: var(--ink-soft);
}
.footer__bottom a:hover {
  color: var(--gold-2);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.to-top svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   27. Modals
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
  visibility: hidden;
}
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 4, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.6s;
}
.modal.is-open {
  visibility: visible;
}
.modal.is-open::before {
  opacity: 1;
}
.modal__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 60px);
  max-height: calc(100svh - 60px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 60px);
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.7s var(--ease-lux);
}
.modal.is-open .modal__panel {
  opacity: 1;
  transform: none;
}
.modal__close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 7, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.5s 0.2s,
    background 0.4s,
    color 0.4s;
  z-index: 3;
}
.modal.is-open .modal__close {
  opacity: 1;
  pointer-events: auto;
}
.modal__close:hover {
  background: var(--gold);
  color: #171308;
}
.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal h3.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px);
  margin-bottom: 8px;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.offer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    border-color 0.5s,
    transform 0.6s var(--ease-out);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.02),
    transparent 60%
  );
}
.offer:hover {
  border-color: rgba(200, 161, 95, 0.5);
  transform: translateY(-5px);
}
.offer b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  color: var(--gold-2);
  margin-bottom: 12px;
}
.offer h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  margin-bottom: 10px;
}
.offer p {
  font-size: 13.5px;
  color: var(--muted);
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
  background: #000;
}
.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-frame__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(9, 8, 6, 0.25), rgba(9, 8, 6, 0.8));
  text-align: center;
  padding: 30px;
}
.video-frame__fallback p {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.video-frame__fallback code {
  color: var(--gold-2);
  font-size: 13px;
  background: rgba(200, 161, 95, 0.1);
  padding: 3px 10px;
  border-radius: 8px;
}

/* gallery modal */
.modal--gallery .modal__panel {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  max-height: none;
  width: min(1240px, 100%);
}
.gal {
  position: relative;
}
.gal__stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-2);
}
.gal__stage figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s var(--ease-out),
    visibility 0s 0.85s;
}
.gal__stage figure.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease-out);
}
.gal__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 8px 0;
}
.gal__caption p {
  font-size: 14px;
  color: var(--ink-soft);
}
.gal__btns {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  pointer-events: none;
}
.gal__btns .deck__btn {
  pointer-events: auto;
  background: rgba(10, 9, 7, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   28. Cookie bar & rotate overlay
   -------------------------------------------------------------------------- */
.cookies {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 60px;
  background: rgba(14, 12, 9, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform 0.8s var(--ease-lux);
}
.cookies.is-shown {
  transform: translate(-50%, 0);
}
.cookies p {
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1;
}
.cookies a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookies button {
  flex: none;
  padding: 12px 26px;
}

.rotate-note {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--bg);
  display: none;
  place-items: center;
  text-align: center;
  padding: 30px;
}
.rotate-note svg {
  width: 54px;
  height: 54px;
  color: var(--gold);
  margin: 0 auto 22px;
  animation: rot 2.2s var(--ease-lux) infinite;
}
@keyframes rot {
  0%,
  20% {
    transform: rotate(0);
  }
  60%,
  100% {
    transform: rotate(90deg);
  }
}
.rotate-note p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  max-width: 20ch;
  margin-inline: auto;
}
@media screen and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .rotate-note {
    display: grid;
  }
}

/* --------------------------------------------------------------------------
   29. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav {
    display: none;
  }
  .burger {
    display: grid;
  }
  .loc-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .loc-cards .loc-card:nth-child(4) {
    grid-column: span 1;
  }
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .about__grid,
  .arch__grid,
  .park__grid,
  .plan__grid,
  .penthouse__terrace,
  .contact__grid,
  .schedule__stage {
    grid-template-columns: 1fr;
  }
  .about__media {
    order: -1;
    aspect-ratio: 4/3.4;
  }
  .menu {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 60px;
    padding-top: 130px;
  }
  .header__phone {
    display: none;
  }
  .penthouse__stats {
    grid-template-columns: 1fr 1fr;
  }
  .fit-row {
    grid-template-columns: 1fr;
  }
  .fit-row:nth-child(even) .fit-row__media {
    order: 0;
  }
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch__duo {
    grid-template-columns: 1fr;
  }
  .arch__duo .media-frame:last-child {
    aspect-ratio: 16/10;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  :root {
    --radius-lg: 30px;
  }
  .loc-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .loc-card {
    aspect-ratio: 3/3.6;
  }
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
  .mosaic__a {
    grid-area: 1/1/3/3;
  }
  .mosaic__b {
    grid-area: 3/1/4/2;
  }
  .mosaic__c {
    grid-area: 3/2/4/3;
  }
  .mosaic__d {
    grid-area: 4/1/6/3;
  }
  .mosaic__e {
    grid-area: 6/1/7/3;
  }
  .mosaic__f {
    grid-area: 7/1/8/3;
  }
  .header__btn {
    display: none;
  }
  .cookies {
    flex-direction: column;
    text-align: center;
    border-radius: 26px;
    gap: 14px;
  }
  .penthouse__stats {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__foot .container {
    justify-content: center;
    text-align: center;
  }
  .deck {
    height: 520px;
  }
}

/* --------------------------------------------------------------------------
   30. Reduced motion — respect the reader
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .rl-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .media-frame::after {
    display: none;
  }
  .media-frame img {
    transform: none;
  }
}
