/* =========================================================
   Highlife Quarter — concept demo (Merimei Studio)
   Scroll-driven mixed-use developer page.
   Palette pulled from the hero: pool teal, warm marble, gold.
   ========================================================= */

:root {
  --ink:    #12161B;   /* near-black, biased cool */
  --night:  #1A212B;
  --slate:  #333D49;   /* neutral biased toward the teal */
  --sand:   #EFE7DA;   /* warm marble */
  --sand-2: #D9CDBA;
  --gold:   #C9A227;   /* highlife gold — the accent */
  --teal:   #1E6E6B;   /* pool water */
  --clay:   #B4643C;   /* terracotta warmth */
  --paper:  #FBF7F0;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--sand);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;            /* belt: page must never scroll sideways */
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

/* ---------- colour-shifting ground ---------- */
#ground {
  position: fixed; inset: 0; z-index: -2;
  background: #2A1F1A;
  transition: background-color .18s linear;
}

/* ---------- scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 90; background: rgba(255,255,255,.10);
}
#progress-bar { display: block; height: 100%; width: 0%; background: var(--gold); }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- concept banner (policy-required, always visible) ---------- */
.concept-banner {
  position: relative; z-index: 95;
  background: var(--gold); color: #241C05;
  font-family: var(--mono);
  font-size: 11.5px; line-height: 1.5; letter-spacing: .01em;
  padding: 9px 20px; text-align: center;
}
.concept-banner strong { font-weight: 500; }

/* ---------- nav ---------- */
#nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 28px;
  background: rgba(18,22,27,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239,231,218,.09);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--sand); }
.mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.brand-word { font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.brand-word em { font-style: italic; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(239,231,218,.72);
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 8px 16px; border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* ---------- shared layout ---------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(239,231,218,.55);
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
}
.kicker .idx { color: var(--gold); }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(46px, 9vw, 116px); letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 5.2vw, 62px); letter-spacing: -.01em; }
h2.big { font-size: clamp(36px, 6.4vw, 82px); }
h3 { font-size: 21px; }

p { margin: 0 0 18px; }

.lede { font-size: clamp(18px, 2.1vw, 23px); color: var(--sand); }

strong { font-weight: 500; color: var(--gold); }

/* ---------- reveal / assemble (hidden states scoped to .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

.assemble .line { display: block; overflow: hidden; }
.assemble .line > span { display: block; }
.js .assemble .line > span { transform: translateY(115%); transition: transform .95s cubic-bezier(.22,1,.36,1); }
.assemble.in .line > span { transform: translateY(0); }
.assemble.in .line:nth-child(1) > span { transition-delay: .04s; }
.assemble.in .line:nth-child(2) > span { transition-delay: .14s; }
.assemble.in .line:nth-child(3) > span { transition-delay: .24s; }

/* ================= HERO ================= */
.hero { height: 215vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: -8% 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.52) saturate(.92) contrast(1.06); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(18,22,27,.86) 0%, rgba(18,22,27,.45) 52%, rgba(18,22,27,.28) 100%),
    linear-gradient(to top, rgba(18,22,27,.92) 0%, rgba(18,22,27,0) 46%);
}
.hero-inner { position: relative; width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(239,231,218,.7);
  display: flex; align-items: center; gap: 10px; margin: 0 0 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-sub { max-width: 54ch; margin-top: 30px; font-size: clamp(16px, 1.8vw, 19px); color: rgba(239,231,218,.82); }
.hero-cue {
  margin-top: 44px; display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(239,231,218,.55);
}
.cue-line { display: block; width: 64px; height: 1px; background: var(--gold); transform-origin: left; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.35); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ================= IDEA ================= */
.idea { padding: clamp(110px, 16vh, 190px) 0; position: relative; }
.idea-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 34px;
}
.idea-grid p { color: rgba(239,231,218,.78); margin: 0; }

/* ============ SIGNATURE: THE QUARTER DIAL ============ */
.dial { height: 460vh; position: relative; }
.dial-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 92px 0 26px;
}
.dial-head { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.dial-head .kicker { margin-bottom: 8px; }
.dial-hint {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(239,231,218,.4); margin: 0;
}

.dial-stage { position: relative; flex: 1; min-height: 0; margin-top: 18px; }
.dial-svg { width: 100%; height: 100%; display: block; }
.js .dial-building { opacity: 0; }

.dial-clock {
  position: absolute; top: 6px; right: max(24px, calc((100% - var(--wrap)) / 2));
  margin: 0;
  font-family: var(--mono); font-size: clamp(30px, 5vw, 54px);
  color: var(--sand); letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}

.dial-legend {
  list-style: none; margin: 18px auto 0; padding: 0;
  width: min(var(--wrap), 100% - 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.dial-legend li {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 12px; border-top: 1px solid rgba(239,231,218,.14);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: rgba(239,231,218,.34);
  transition: color .5s ease, border-color .5s ease;
}
.dial-legend li.lit { color: var(--sand); border-top-color: var(--gold); }
.l-no { color: var(--gold); opacity: .5; transition: opacity .5s ease; }
.dial-legend li.lit .l-no { opacity: 1; }
.l-name { text-transform: uppercase; }
.l-time { margin-left: auto; opacity: .7; }

/* ================= CHAPTERS ================= */
.chapter {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  overflow: hidden;
}
.chapter.alt .chapter-media { order: 2; }
.chapter-media { position: relative; overflow: hidden; min-height: 56vh; }
.chapter-media img {
  position: absolute; inset: -9% 0; width: 100%; height: 118%;
  object-fit: cover; will-change: transform;
  filter: brightness(.82) saturate(.95);
}
.chapter-body { display: flex; align-items: center; padding: clamp(72px, 10vh, 128px) 0; }
.chapter-body .wrap.narrow { width: min(560px, 100% - 48px); }
.chapter-body p { color: rgba(239,231,218,.76); }

.spec { margin: 40px 0 0; display: grid; gap: 0; }
.spec > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 13px 0; border-top: 1px solid rgba(239,231,218,.14);
}
.spec dt {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(239,231,218,.5);
}
.spec dd {
  margin: 0; font-family: var(--mono); font-size: 12.5px;
  color: var(--gold); text-align: right;
}

/* ================= WHERE (pointer parallax) ================= */
.where {
  position: relative; min-height: 108vh;
  display: flex; align-items: center; overflow: hidden;
  padding: clamp(96px, 14vh, 160px) 0;
}
.where-bg {
  position: absolute; inset: -12% 0;
  background-image: url("assets/scene-accra-skyline.jpg");
  background-size: cover; background-position: center;
  will-change: transform;
}
.where-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,22,27,.9), rgba(18,22,27,.74)); }
.where-inner { position: relative; }

.float-row {
  margin-top: 62px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px;
}
.float-card {
  background: rgba(26,33,43,.7);
  border: 1px solid rgba(239,231,218,.13);
  padding: 26px 24px; border-radius: 3px;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  will-change: transform;
}
.float-card h3 { color: var(--sand); margin-bottom: 10px; }
.float-card p { margin: 0; font-size: 14.5px; color: rgba(239,231,218,.7); }

.fineprint {
  margin-top: 44px; font-family: var(--mono); font-size: 12px;
  line-height: 1.75; color: rgba(239,231,218,.5); max-width: 68ch;
}

/* ================= ENQUIRE ================= */
.enquire { padding: clamp(110px, 16vh, 190px) 0; position: relative; }
.enquire > .wrap > p { color: rgba(239,231,218,.7); margin-top: 28px; }

.form { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(239,231,218,.55);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 15px; font-weight: 300;
  color: var(--sand); background: rgba(239,231,218,.05);
  border: 1px solid rgba(239,231,218,.18); border-radius: 2px;
  padding: 12px 14px; width: 100%;
  transition: border-color .25s ease, background .25s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(239,231,218,.08);
}
.field select option { background: var(--night); color: var(--sand); }

.btn {
  grid-column: 1 / -1; justify-self: start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); border: 0; border-radius: 2px;
  padding: 15px 34px; cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.form-note {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--mono); font-size: 12px; color: var(--gold); min-height: 1.2em;
}

/* ================= FOOTER ================= */
.foot { padding: 76px 0 60px; border-top: 1px solid rgba(239,231,218,.12); background: rgba(18,22,27,.62); }
.foot-brand { margin-bottom: 30px; }
.foot-tag { font-family: var(--display); font-style: italic; font-size: 18px; color: rgba(239,231,218,.6); margin: 6px 0 0; }
.disclaimer {
  font-size: 13.5px; line-height: 1.75; color: rgba(239,231,218,.62);
  max-width: 78ch; padding: 18px 20px;
  border-left: 2px solid var(--gold); background: rgba(201,162,39,.06);
}
.disclaimer strong { color: var(--gold); }
.foot-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: rgba(239,231,218,.38); margin: 22px 0 0; }

/* =========================================================
   MOBILE — unpin everything, stack the chapters
   ========================================================= */
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.alt .chapter-media { order: 0; }
  .chapter-media { min-height: 62vh; }
  .chapter-body { padding: 64px 0 78px; }
  .chapter-body .wrap.narrow { width: min(560px, 100% - 48px); }
  .dial-legend { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100svh; min-height: 560px; }
  .hero-media { transform: none !important; }

  .dial { height: auto; }
  .dial-sticky { position: static; height: auto; overflow: visible; padding: 78px 0 34px; }
  .dial-stage { min-height: 58vh; }
  .dial-clock { font-size: 30px; top: 0; right: 24px; }

  .where-bg { background-attachment: scroll; transform: none !important; }
  .float-card { transform: none !important; }

  .form { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION — reveal all, unpin all, no transforms
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .assemble .line > span,
  .dial-building { opacity: 1 !important; transform: none !important; transition: none !important; }

  .hero-media, .chapter-media img, .where-bg, .float-card { transform: none !important; }

  .hero { height: auto; }
  .hero-sticky { position: static; height: 100vh; min-height: 560px; }

  .dial { height: auto; }
  .dial-sticky { position: static; height: auto; overflow: visible; }
  .dial-stage { min-height: 62vh; }
  .dial-legend li { color: var(--sand); border-top-color: var(--gold); }
  .dial-legend .l-no { opacity: 1; }

  .cue-line { animation: none; transform: scaleX(1); }
  #progress { display: none; }
}
