/* Panorama II microsite. Design base: sales brochure (Sep 2026).
   Paper #ebe6db, petrol ink #18494e, brand teal #0092a2, sun orange #f88a00.
   GT America Mono in the brochure → DM Mono on the web; Quicksand for display. */

:root {
  --paper: #ebe6db;
  --paper-2: #e2dccf;
  --ink: #18494e;
  --ink-2: #4f605e;
  --rule: rgba(24, 73, 78, .2);
  --teal: #0092a2;
  --teal-ink: #00626d;  /* brand teal darkened for text on paper and paper-2 (5.2:1 / 4.8:1) */
  --teal-pin: #007785;  /* marker fill, white label 5.3:1 */
  --orange: #f88a00;
  --red: #e2361f;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --display: 'Quicksand', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) url('/img/brand/paper.jpg') center top / 1400px auto repeat;
  color: var(--ink);
  font: 300 15px/1.7 var(--mono);
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1;
  font-size: clamp(40px, 7vw, 92px); margin: 0;
}
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 18px; }
.fine { font-size: 12px; line-height: 1.6; color: var(--ink-2); }

/* header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 72px;
  display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter);
  color: #fff; transition: background .35s, color .35s, box-shadow .35s;
}
.bar-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: filter .35s; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.bar-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; padding: 6px 6px; font-size: 12px; letter-spacing: .12em; cursor: pointer; opacity: .75; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.bar.solid { background: rgba(235, 230, 219, .96); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.bar.solid .bar-logo img { filter: none; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,32,.45) 0, rgba(10,30,32,0) 22%, rgba(10,30,32,0) 55%, rgba(10,30,32,.55) 100%); }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); color: #fff; }
.hero-logo { width: clamp(200px, 26vw, 360px); filter: brightness(0) invert(1); }
.hero-tag { width: clamp(190px, 20vw, 280px); margin-top: 22px; filter: brightness(0) invert(1); }
.hero-place { margin: 18px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.hero-cue { position: absolute; right: var(--gutter); bottom: clamp(56px, 10vh, 110px); color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.hero-cue::after { content: ''; display: block; width: 1px; height: 48px; background: currentColor; margin: 12px auto 0; animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* welcome */
.welcome { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(170px, 18vw, 250px); padding-bottom: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.welcome .display { max-width: 9ch; }
.welcome-body p { margin: 0 0 1.2em; max-width: 56ch; }
.sun { position: absolute; width: clamp(90px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); right: var(--gutter); top: clamp(48px, 5vw, 72px); z-index: -1; }
.sun.small { width: clamp(70px, 8vw, 110px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 24px; margin: 36px 0 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: 12px; }
.facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 22px; }

/* gallery */
.gallery { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); background: var(--ink); color: var(--paper); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.gallery-ctl { display: flex; align-items: center; gap: 12px; }
.gallery-count { font-size: 13px; letter-spacing: .1em; margin-right: 12px; }
.gallery-count b { font-weight: 400; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.arrow:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.unit .arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(78vw, 1040px); scroll-snap-align: start; margin: 0; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #0f3336; }
.slide figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.gallery .fine { color: rgba(235, 230, 219, .82); margin-top: 28px; }

/* residences */
.residences { padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.res-head p { max-width: 34ch; margin: 0; color: var(--ink-2); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.res-list { width: 100%; max-width: 880px; margin: 0 auto; }
.parking { margin: 22px 0 6px; font-weight: 500; color: var(--teal-ink); font-size: 14px; line-height: 1.6; }
.axo { position: relative; margin: 0 auto; width: 100%; max-width: 1180px; }
.axo img { width: 100%; height: auto; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: clamp(26px, 3.2vw, 42px); height: clamp(26px, 3.2vw, 42px); border-radius: 50%;
  border: 0; padding: 0; background: var(--teal-pin); color: #fff; cursor: pointer;
  font: 400 clamp(9px, 1vw, 13px)/1 var(--mono); letter-spacing: 0;
  box-shadow: 0 0 0 0 rgba(248, 138, 0, .0);
  transition: background .2s, transform .2s, box-shadow .3s;
}
.pin:hover, .pin:focus-visible, .pin.hot { background: var(--ink); transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 0 6px rgba(248, 138, 0, .28); outline: none; }
.units { width: 100%; border-collapse: collapse; font-size: 14px; }
.units th { font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--ink); }
.units td { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.units .num { text-align: right; }
.units tbody tr { cursor: pointer; transition: color .15s; }
.units tbody tr:hover, .units tbody tr.hot { color: var(--teal-ink); }
.units td:first-child { width: 3.6em; }
.units .res { color: var(--ink-2); }
.units tr:hover .res, .units tr.hot .res { color: inherit; }
.units button { all: unset; cursor: pointer; }
.units button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.split-img { position: relative; overflow: hidden; min-height: 50vh; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-copy { padding: clamp(56px, 8vw, 120px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.split-copy .display { font-size: clamp(36px, 5vw, 68px); margin-bottom: 36px; }
.split.flip .split-img { order: 2; }
.managed { background: var(--paper-2); }
.lines { list-style: none; margin: 0 0 28px; padding: 0; max-width: 46ch; }
.lines li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lines li:first-child { border-top: 1px solid var(--rule); }

/* location */
.location { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.location .sun { right: auto; left: calc(var(--gutter) + 4ch); top: clamp(60px, 9vw, 120px); }
.loc-body p { margin: 0 0 1.2em; max-width: 56ch; }

/* contact */
.contact { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.contact-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.contact-links { display: grid; gap: 10px; text-align: right; }
.contact-links a { text-decoration: none; font-size: clamp(15px, 1.6vw, 20px); border-bottom: 1px solid rgba(235, 230, 219, .35); padding-bottom: 6px; }
.contact-links a:hover { border-color: var(--orange); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.foot-by { height: 30px; width: auto; }
.foot .fine { margin: 0; max-width: 60ch; }

/* unit dialog */
.unit {
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0;
  background: var(--paper) url('/img/brand/paper.jpg') center / 1400px auto; color: var(--ink);
  box-shadow: 0 30px 80px rgba(6, 24, 26, .35);
}
.unit::backdrop { background: rgba(12, 36, 38, .72); backdrop-filter: blur(3px); }
.unit[open] { animation: rise .35s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.unit-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-height: calc(100svh - 32px); }
.unit-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; }
.unit-x:hover { color: var(--teal-ink); }
.unit-plan { padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.unit-plan img { max-height: calc(100svh - 112px); max-width: 100%; width: auto; object-fit: contain; }
.unit-info { padding: 48px 48px 36px 16px; overflow-y: auto; }
.unit-code { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.unit-name { color: var(--teal-ink); }
.unit-price { font-size: 22px; margin: 18px 0 26px; letter-spacing: .02em; }
.unit-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; margin: 0 0 26px; }
.unit-areas div { border-top: 1px solid var(--ink); padding-top: 10px; }
.unit-areas dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.unit-areas dd { margin: 4px 0 0; font-size: 17px; }
.unit-areas dd small { display: block; font-size: 12px; color: var(--ink-2); }
.unit-rooms { list-style: none; margin: 0 0 26px; padding: 0; columns: 2; column-gap: 24px; font-size: 13px; counter-reset: r; }
.unit-rooms li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 3px 0; break-inside: avoid; }
.unit-rooms li::before { content: counter(r); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; display: grid; place-items: center; }
.unit-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.unit-refs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.unit-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 15px 26px; border-radius: 999px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: background .2s; }
.btn:hover { background: #0e3033; }

/* responsive */
@media (max-width: 980px) {
  .res-grid { grid-template-columns: 1fr; }
  .unit-in { grid-template-columns: 1fr; overflow-y: auto; }
  .unit-plan { padding: 56px 24px 8px; }
  .unit-plan img { max-height: 46svh; }
  .unit-info { padding: 20px 24px 28px; overflow: visible; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .bar { height: 60px; gap: 16px; }
  .bar-logo img { height: 32px; }
  .bar-nav { display: none; }
  .lang { margin-left: auto; }
  .welcome, .location { grid-template-columns: 1fr; }
  .res-head, .gallery-head { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split.flip .split-img { order: 0; }
  .split-img { aspect-ratio: 4 / 3; min-height: 0; }
  .slide { width: 86vw; }
  .contact-links { text-align: left; }
  .unit-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .unit-cta { flex-wrap: wrap; }
  .units td:nth-child(2) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
