:root {
  --sky: #e6f1f6;
  --white: #fbfaf6;
  --ink: #1b2a33;
  --muted: #4f5f68;
  --sea: #1f5a8a;
  --sea-deep: #174870;
  --awning: #e0ae45;
  --awning-dark: #8a5f0c;
  --stone: #ddd3c2;
  --r: 2px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4.5rem;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 var(--s2); }
h2 { font-size: clamp(2.2rem, 9vw, 4rem); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 var(--s2); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s1) var(--s2); z-index: 100; }
.skip:focus { left: var(--s1); }
:focus-visible { outline: 3px solid var(--awning-dark); outline-offset: 2px; }
main > section, .foot { padding: var(--s5) clamp(1.1rem, 5vw, 3rem); max-width: var(--wrap); margin: 0 auto; }
.kicker { font: 600 .76rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sea); margin-bottom: var(--s1); }
.hint, .note { color: var(--muted); font-size: .95rem; }

#progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--awning); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: .55rem clamp(1rem, 4vw, 2.5rem); background: rgba(230, 241, 246, .94); backdrop-filter: blur(6px); }
.brand { font: 400 1.6rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand small { font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sea); margin-left: .25rem; }
.top nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: var(--s3); }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .7rem 0; display: inline-block; }
.lang { display: flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.lang button { min-width: 44px; min-height: 40px; border: 0; background: transparent; font: 600 .82rem var(--sans); color: var(--ink); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.3rem; border-radius: var(--r); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid var(--sea); transition: transform .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--sea); color: #fff; }
.btn.primary:hover { background: var(--sea-deep); }
.btn.ghost { background: transparent; color: var(--sea-deep); }
.sea .btn.ghost { color: #fff; border-color: #fff; }
.btn.small { min-height: 44px; min-width: 44px; padding: .4rem .8rem; }
.btn:disabled { opacity: .35; cursor: default; }
.sea .btn.primary { background: var(--white); color: var(--sea-deep); border-color: var(--white); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn.ghost .ripple, .sea .btn.primary .ripple { background: rgba(31, 90, 138, .25); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }

/* hero: sky / waterline / sea */
.hero { padding: 0 !important; max-width: none !important; }
.sky { background: var(--sky); padding: var(--s4) clamp(1.1rem, 5vw, 3rem) 0; }
.sky > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(3rem, 15.5vw, 9.5rem); line-height: .92; margin-bottom: -.06em; overflow-wrap: normal; word-break: keep-all; hyphens: none; animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.waterline { display: block; width: 100%; height: 34px; margin-top: -1px; background: var(--sky); overflow: hidden; }
.waterline path { fill: var(--sea); stroke: var(--awning); stroke-width: 3; vector-effect: non-scaling-stroke; }
.wave { animation: wave 9s linear infinite; }
@keyframes wave { to { transform: translateX(-240px); } }
.sea { background: var(--sea); color: #fff; padding: var(--s3) clamp(1.1rem, 5vw, 3rem) var(--s5); display: grid; gap: var(--s4); }
.sea > * { max-width: var(--wrap); width: 100%; margin: 0 auto; }
.dek { font: 400 clamp(1.3rem, 4.6vw, 1.75rem)/1.3 var(--serif); max-width: 32ch; }
.hero-photo { position: relative; margin: 0 0 var(--s3); }
.unveil { overflow: hidden; border-radius: var(--r); animation: unveil 1.3s cubic-bezier(.7, 0, .2, 1) .2s both; }
.unveil img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.inset { position: absolute; right: -2%; bottom: -2.4rem; width: 40%; aspect-ratio: 4 / 3; object-fit: cover; border: 5px solid var(--white); border-radius: var(--r); box-shadow: 0 16px 30px rgba(10, 30, 45, .35); animation: drop .9s cubic-bezier(.2, .8, .2, 1) 1.1s both, float 6s ease-in-out 2s infinite; }
.hero-photo figcaption { margin-top: var(--s2); font-size: .9rem; color: #d8e7f2; max-width: 55%; }
.stamp { position: absolute; top: -2.4rem; left: -.3rem; width: 104px; height: 104px; border-radius: 50%; background: var(--awning); color: var(--ink); display: grid; place-items: center; text-decoration: none; box-shadow: 0 8px 20px rgba(10, 30, 45, .3); }
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stamp text { font: 600 9.6px var(--sans); letter-spacing: .12em; fill: var(--ink); }
.stamp .arrow { font-size: 1.5rem; line-height: 1; }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }

/* ribbon: awning stripes */
.ribbon-wrap { overflow-x: clip; overflow-y: visible; padding: var(--s3) 0; margin-top: -1.6rem; position: relative; z-index: 2; }
.ribbon { transform: rotate(-2deg); background: repeating-linear-gradient(90deg, var(--awning) 0 28px, #ecc66f 28px 56px); color: var(--ink); padding: .7rem 0; width: 106%; margin-left: -3%; position: relative; }
.ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 50% 0, var(--awning) 0 9px, transparent 9.5px) 0 0 / 28px 10px repeat-x; }
.track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.track span { white-space: nowrap; padding-right: 1.2rem; font: 600 .98rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
@keyframes slide { to { transform: translateX(-50%); } }

/* facts */
.fact-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact-row li { padding: var(--s2) var(--s1) var(--s2) 0; border-bottom: 1px solid var(--stone); }
.fact-row b { display: block; font: 400 clamp(2.4rem, 11vw, 4rem)/1 var(--serif); color: var(--sea); }
.fact-row span { color: var(--muted); font-size: .95rem; }
.jelly.squash { animation: jelly .5s; }
@keyframes jelly { 0% { scale: 1 1; } 30% { scale: 1.06 .94; } 50% { scale: .97 1.03; } 70% { scale: 1.01 .99; } 100% { scale: 1 1; } }

/* intro */
.intro .big { font: 400 clamp(1.45rem, 5vw, 2.3rem)/1.3 var(--serif); max-width: 34ch; }
.words .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .5s, transform .5s; }
.words.in .w { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* apartments */
.apts-grid { display: grid; gap: var(--s3); }
.slideshow { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--sky); transition: transform .3s; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.on { opacity: 1; }
.units { display: grid; gap: var(--s2); }
.unit { background: var(--sky); padding: var(--s3); border-radius: var(--r); border-left: 6px solid var(--sea); }
.floor { font-weight: 600; color: var(--sea-deep); }
.pill { display: inline-block; margin: 0; padding: .25rem .7rem; background: var(--awning); color: var(--ink); font-weight: 600; font-size: .9rem; border-radius: var(--r); }

/* stacked full-width photos */
.stack { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.stack-head { max-width: var(--wrap); margin: 0 auto var(--s3); padding: 0 clamp(1.1rem, 5vw, 3rem); }
.gallery { display: grid; gap: var(--s4); }
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; max-height: 92vh; object-fit: cover; cursor: zoom-in; }
.gallery .tall img { max-width: 720px; margin: 0 auto; }
.gallery figcaption { position: relative; margin: -1.4rem auto 0 clamp(1.1rem, 5vw, 3rem); max-width: min(560px, calc(100% - 2.2rem)); background: var(--awning); color: var(--ink); padding: .7rem 1rem 1rem; font-size: .98rem; z-index: 1; }
.gallery figcaption::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 50% 0, var(--awning) 0 9px, transparent 9.5px) 0 0 / 20px 10px repeat-x; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 28, 40, .95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251, 250, 246, .92); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .6rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .6rem; top: 50%; translate: 0 -50%; }
body.lb-open { overflow: hidden; }

/* amenities */
.am-grid { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.am-col h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; }
.am-col svg { width: 28px; height: 28px; fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.am-col ul { list-style: none; margin: 0; padding: 0; }
.am-col li { padding: .5rem 0; border-bottom: 1px solid var(--stone); }

/* location */
.dist-list { margin: var(--s3) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s3); }
.dist-list div { display: flex; justify-content: space-between; gap: var(--s1); padding: .6rem 0; border-bottom: 1px solid var(--stone); min-width: 0; }
.dist-list dt { color: var(--muted); font-size: .95rem; min-width: 0; }
.dist-list dd { margin: 0; font-weight: 600; white-space: nowrap; }
.map { overflow: hidden; border-radius: var(--r); margin: var(--s2) 0; border-bottom: 4px solid var(--sea); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.link { display: inline-block; padding: .7rem 0; font-weight: 600; }

/* calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); margin: var(--s2) 0; }
.legend { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.legend i { display: inline-block; width: 14px; height: 14px; }
.lg-free { background: #fff; border: 1px solid var(--muted); }
.lg-booked { background: var(--stone); }
.cal { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
.month h3 { text-transform: capitalize; font-size: 1.6rem; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dow { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 600; }
.days button { min-height: 40px; border: 0; border-radius: var(--r); background: var(--sky); font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; padding: 0; }
.days button:disabled { background: transparent; color: #93a0a8; cursor: default; }
.days button.booked { background: var(--stone); color: var(--muted); text-decoration: line-through; }
.days button.sel { background: var(--sea); color: #fff; }
.days button.range { background: #bcd6e8; }

/* enquiry */
.enq { background: var(--sky); }
.direct { font: 400 1.35rem/1.3 var(--serif); color: var(--sea-deep); }
form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; margin-bottom: var(--s2); min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1px solid #8fa3b0; border-radius: var(--r); font: 400 1rem var(--sans); color: var(--ink); background: #fff; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s2); }

/* rules + faq */
.rule-list { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.rule-list div { display: flex; justify-content: space-between; gap: var(--s2); padding: .7rem 0; border-bottom: 1px solid var(--stone); }
.rule-list dt { font-weight: 600; }
.rule-list dd { margin: 0; color: var(--muted); text-align: right; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary { cursor: pointer; padding: 1rem 0; font: 400 1.45rem var(--serif); }
.faq details p { color: var(--muted); }

/* footer + dock */
.foot { background: var(--sea); color: #fff; max-width: none !important; padding-bottom: 7rem !important; }
.foot > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.foot .kicker { color: var(--awning); }
.foot a { color: #fff; font-weight: 600; }
.small { font-size: .85rem; color: #d8e7f2; margin-top: var(--s3); }
.dock { position: fixed; left: 50%; bottom: .8rem; z-index: 70; display: flex; gap: 4px; padding: 4px; background: var(--ink); border-radius: calc(var(--r) + 4px); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 1rem); }
.dock.show { transform: translate(-50%, 0); }
.dock .btn { border: 0; color: var(--white); background: transparent; padding: .6rem .8rem; font-size: .92rem; }
.dock .btn:first-child { background: var(--awning); color: var(--ink); }
.dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

@media (min-width: 760px) {
  .top nav ul { display: flex; }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dist-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stamp { width: 132px; height: 132px; }
  .waterline { height: 48px; }
}
@media (min-width: 960px) {
  .sea { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; max-width: none; }
  .sea > * { max-width: none; }
  .sea-text { padding-top: var(--s4); }
  .apts-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
  .gallery figure:nth-child(even) figcaption { margin-left: auto; margin-right: clamp(1.1rem, 5vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .words .w { opacity: 1 !important; transform: none !important; }
}
