/* LATTICE. Colours come from config.palette via the custom properties on :root. */
:root {
  --bg: #ebe8e1; --paper: #f4f2ed; --ink: #1c1b18; --muted: #76716a; --line: rgba(28, 27, 24, 0.14); --accent: #c4572e;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 4.5vw, 64px);
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
.kicker { margin: 0 0 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.nav { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 36px; padding: 20px var(--pad); transition: background 0.4s, padding 0.4s; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.22em; text-decoration: none; font-size: 15px; }
.brand i { width: 14px; height: 18px; background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 5px); transform: skewY(-12deg); }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.nav nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 6px; border: 1px solid var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; background: transparent; transition: background 0.25s, color 0.25s; }
.btn:hover, .btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* The build: pinned while the tower assembles. */
.build { height: 460vh; }
.build .sticky { background: linear-gradient(180deg, var(--sky1, var(--paper)), var(--sky2, var(--bg))); }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: absolute; left: var(--pad); top: clamp(110px, 17vh, 170px); width: min(540px, 44vw); z-index: 2; }
.hero-copy h1 { font-size: clamp(44px, 5.4vw, 86px); }
.sub { margin: 28px 0 0; max-width: 430px; font-size: 17px; color: var(--muted); }
.gauge { opacity: var(--g, 0); transition: opacity 0.4s; position: absolute; left: var(--pad); bottom: 40px; z-index: 2; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.gauge-n { font-size: clamp(56px, 7vw, 104px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.8; }
.gauge-of { font-size: 13px; color: var(--muted); }
.gauge-time { margin-left: 22px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--muted); }
.labels { position: absolute; right: var(--pad); bottom: 44px; z-index: 2; list-style: none; margin: 0; padding: 0; width: min(330px, 34vw); }
.labels li { position: absolute; right: 0; bottom: 0; width: 100%; padding: 18px 20px; border-radius: 10px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.labels li.on { opacity: 1; transform: none; }
.labels strong { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.labels span { font-size: 15px; }
.cue { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 2; margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cue i { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.no-gl .gauge, .no-gl .labels, .no-gl .cue { display: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--paper); }
.facts div { padding: 46px var(--pad); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.facts div:first-child { border-left: 0; }
.facts strong { font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: 14px; }

.residences, .living, .location, .enquire { padding: 140px var(--pad); }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 40px; margin-bottom: 50px; }
.head .kicker { grid-column: 1 / -1; }
.residences h2, .living h2, .location h2, .enquire h2 { font-size: clamp(44px, 5.6vw, 88px); }
.note { margin: 0; color: var(--muted); font-size: 13px; }
.table { border-top: 1px solid var(--ink); }
.tr { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr 1.1fr 0.9fr; align-items: center; padding: 20px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: background 0.25s, padding 0.25s; }
.tr:not(.th):hover { background: var(--paper); padding-left: 16px; }
.th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.u-name { font-size: 22px; letter-spacing: -0.02em; }
.u-price { font-weight: 500; }
.status { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.s-available { border-color: transparent; background: color-mix(in srgb, #3f8a5a 14%, transparent); color: #2f6d45; }
.s-few-left { border-color: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.s-reserved { color: var(--muted); }

.living { background: var(--paper); border-block: 1px solid var(--line); }
.living h2 { margin-bottom: 60px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid article { background: var(--paper); padding: 38px 34px; transition: background 0.3s; }
.grid article:hover { background: var(--bg); }
.grid svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.grid h3 { font-size: 22px; margin: 26px 0 8px; letter-spacing: -0.02em; }
.grid p { margin: 0; color: var(--muted); }

.location { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.location ul { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.location li { display: grid; grid-template-columns: 1fr auto 80px; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: default; }
.location li strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.location li em { font-size: 18px; color: var(--muted); }
.map { aspect-ratio: 6 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.map svg { width: 100%; height: 100%; }
.m-bg { fill: var(--paper); }
.m-streets path { stroke: var(--line); stroke-width: 10; fill: none; }
.m-park { fill: #d5dac4; }
.m-canal { fill: none; stroke: #b6c6c8; stroke-width: 34; stroke-linecap: round; }
.route { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(0.3, 0.6, 0.2, 1), stroke 0.3s, stroke-width 0.3s; }
.map.in .route { stroke-dashoffset: 0; }
.map.in .route:nth-of-type(2) { transition-delay: 0.2s; } .map.in .route:nth-of-type(3) { transition-delay: 0.4s; } .map.in .route:nth-of-type(4) { transition-delay: 0.6s; }
.route.hot { stroke: var(--accent); stroke-width: 4.5; }
.pin circle { fill: var(--ink); }
.pin text { font: 600 14px var(--sans); fill: var(--ink); }
.home rect { fill: var(--accent); }
.home .pulse { fill: var(--accent); opacity: 0.25; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } }

.enquire { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; background: var(--ink); color: var(--paper); }
.enquire em { color: #f08c63; }
.enquire > div > p { color: #b5afa5; font-size: 17px; max-width: 420px; margin-top: 26px; }
.enquire form { display: grid; gap: 18px; align-content: start; }
.enquire label { display: grid; gap: 8px; font-size: 13px; color: #b5afa5; }
.enquire input, .enquire select { height: 50px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(244, 242, 237, 0.2); background: rgba(244, 242, 237, 0.05); color: var(--paper); font: inherit; }
.enquire input:focus, .enquire select:focus { outline: none; border-color: #f08c63; }
.enquire .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); height: 52px; margin-top: 6px; }
.enquire .btn:hover { background: #f08c63; border-color: #f08c63; }
.thanks { margin: 0; color: #f08c63; }

.foot { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; padding: 34px var(--pad); background: var(--ink); color: #b5afa5; border-top: 1px solid rgba(244, 242, 237, 0.12); font-size: 13px; }
.foot .brand { color: var(--paper); }
.foot .brand i { background: repeating-linear-gradient(0deg, var(--paper) 0 2px, transparent 2px 5px); }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot small { margin-left: auto; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-copy { top: 96px; transform: none; width: auto; right: var(--pad); }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 64px); }
  .sub { font-size: 15px; }
  .labels { left: var(--pad); right: var(--pad); width: auto; bottom: 120px; }
  .cue { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div { border-top: 1px solid var(--line); }
  .head { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1.3fr 0.5fr 1.1fr auto; gap: 8px; }
  .tr > :nth-child(2), .tr > :nth-child(4) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .location, .enquire { grid-template-columns: 1fr; }
  .foot small { margin-left: 0; }
}
