/* ————————————————————————————————
   Gramercy & Vane — design system
   ink navy / champagne gold / glass blue / interior amber
———————————————————————————————— */
:root {
  --ink:        #060b18;
  --ink-2:      #0a1226;
  --ink-panel:  rgba(8, 14, 30, 0.90);
  --gold:       #c9a96a;
  --gold-hi:    #e6cd94;
  --glass:      #7fa8c9;
  --glass-dim:  #43608a;
  --amber:      #e0a35e;
  --paper:      #ece6d8;
  --paper-dim:  #a9a698;
  --hairline:   rgba(201, 169, 106, 0.28);
  --serif: "Bodoni Moda", "Didot", serif;
  --grot:  "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--grot);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ————— fixed skyline canvas ————— */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 110%, #16233f 0%, #0a1226 45%, #04070f 100%);
}

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.75 0 0 0 0 0.6 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

/* ————— nav ————— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(4,7,15,0.92), rgba(4,7,15,0.5) 60%, rgba(4,7,15,0));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.18rem; letter-spacing: 0.04em;
  color: var(--paper); text-decoration: none;
}
.nav-brand em { font-style: italic; color: var(--gold); }
.nav-links { display: flex; gap: clamp(1.1rem, 3vw, 2.4rem); }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-dim); text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold-hi); }

/* ————— HUD bearing readout ————— */
.hud {
  position: fixed; left: clamp(1.25rem, 4vw, 3.5rem); bottom: 1.4rem; z-index: 10;
  display: flex; gap: 1.2rem; align-items: baseline;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--glass);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hud-bearing { color: var(--gold); min-width: 6.5ch; }
.hud-district::before {
  content: ""; display: inline-block; width: 2rem; height: 1px;
  background: var(--hairline); vertical-align: middle; margin-right: 1.2rem;
}

/* ————— hero ————— */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.2rem;
  opacity: 0; animation: rise 1.2s cubic-bezier(0.19,1,0.22,1) 0.2s forwards;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.02; letter-spacing: 0.01em;
  text-wrap: balance;
  opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.45s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); font-size: 0.82em; }
.hero-line {
  max-width: 34em; margin-top: 2.2rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem); color: var(--paper-dim);
  opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 0.7s forwards;
}
.hero-cue {
  margin-top: 4rem;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--glass); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  opacity: 0; animation: rise 1.4s cubic-bezier(0.19,1,0.22,1) 1s forwards;
  transition: color 0.3s ease;
}
.hero-cue:hover { color: var(--gold-hi); }
.cue-rule { width: 1px; height: 3.4rem; background: linear-gradient(to bottom, transparent, var(--gold)); }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.6rem); }
  to   { opacity: 1; transform: none; }
}

/* ————— interstitial (skyline showcase) ————— */
.interstitial {
  min-height: 88vh;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 12vh;
}
/* staggered arrival of the interstitial nameplate (JS adds .in-view) */
.js .interstitial > * {
  opacity: 0; transform: translateY(1.3rem);
  transition: opacity 1s cubic-bezier(0.19,1,0.22,1), transform 1s cubic-bezier(0.19,1,0.22,1);
}
.js .interstitial > *:nth-child(2) { transition-delay: 0.15s; }
.js .interstitial > *:nth-child(3) { transition-delay: 0.3s; }
.js .interstitial.in-view > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .interstitial > * { opacity: 1; transform: none; transition: none; }
}

.int-no {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold);
}
.int-no::after {
  content: ""; display: block; width: 1px; height: 2.6rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 1.1rem auto 1.2rem;
}
.int-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1;
}
.int-coords {
  margin-top: 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--glass); font-variant-numeric: tabular-nums;
}

/* ————— listing sections ————— */
.listing {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(6.5rem, 13vh, 8.5rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 9vh, 7rem);
  scroll-margin-top: 2rem;
}
.listing-photo { position: absolute; inset: 0; overflow: hidden; }
.listing-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  transition: transform 1.8s cubic-bezier(0.19,1,0.22,1);
}
.listing.in-view .listing-photo img { transform: scale(1); }
.listing-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,11,24,0.55), rgba(6,11,24,0.05) 30%, rgba(6,11,24,0.05) 70%, rgba(6,11,24,0.6));
}

/* the engraved plate */
.plate {
  position: relative; z-index: 1;
  width: min(30rem, 100%);
  background: var(--ink-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  box-shadow: 0 30px 80px rgba(2, 4, 10, 0.55);
}
.plate::before {
  content: ""; position: absolute; inset: 7px;
  pointer-events: none;
  /* engraved corner ticks */
  background:
    linear-gradient(var(--gold), var(--gold)) left 0 top 0 / 10px 1px,
    linear-gradient(var(--gold), var(--gold)) left 0 top 0 / 1px 10px,
    linear-gradient(var(--gold), var(--gold)) right 0 top 0 / 10px 1px,
    linear-gradient(var(--gold), var(--gold)) right 0 top 0 / 1px 10px,
    linear-gradient(var(--gold), var(--gold)) left 0 bottom 0 / 10px 1px,
    linear-gradient(var(--gold), var(--gold)) left 0 bottom 0 / 1px 10px,
    linear-gradient(var(--gold), var(--gold)) right 0 bottom 0 / 10px 1px,
    linear-gradient(var(--gold), var(--gold)) right 0 bottom 0 / 1px 10px;
  background-repeat: no-repeat;
}
.plate-right { justify-self: end; }
.plate-left  { justify-self: start; }

.plate-no {
  font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.plate-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.08;
}
.plate-sub {
  display: block; margin-top: 0.55rem;
  font-family: var(--grot); font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-dim);
}
.plate-copy {
  margin: 1.4rem 0 1.7rem;
  font-size: 0.93rem; line-height: 1.72; color: var(--paper-dim);
}
.plate-specs {
  border-top: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}
.plate-specs > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 169, 106, 0.12);
  transition: border-color 0.35s ease;
}
.plate-specs > div:hover { border-bottom-color: rgba(201, 169, 106, 0.55); }
.plate-specs > div:hover dt { color: var(--gold-hi); }
.plate-specs dt {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--glass);
  transition: color 0.35s ease;
}
.plate-specs dd { font-size: 0.9rem; color: var(--paper); }
.plate-specs > div:first-child dd {
  font-family: var(--serif); font-size: 1.35rem; color: var(--gold-hi);
}
.plate-cta {
  display: inline-block; margin-top: 1.6rem;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-hi); text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.4s ease;
}
.plate-cta:hover { color: var(--paper); border-color: var(--paper); letter-spacing: 0.3em; }

/* ————— the house ————— */
.house {
  position: relative;
  background: linear-gradient(to bottom, rgba(6,11,24,0.4), var(--ink-2) 18%, var(--ink-2) 82%, rgba(6,11,24,0.4));
  padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 5rem);
}
.house-inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.house-photo { position: relative; }
.house-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border: 1px solid var(--hairline);
  padding: 8px; background: rgba(201,169,106,0.04);
}
.section-label {
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.section-label::after {
  content: ""; display: inline-block; width: 3rem; height: 1px;
  background: var(--hairline); vertical-align: middle; margin-left: 1.2rem;
}
.house-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15;
  margin-bottom: 1.6rem; text-wrap: balance;
}
.house-text p:not(.section-label) {
  color: var(--paper-dim); font-size: 0.95rem; line-height: 1.75;
  margin-bottom: 1.1rem; max-width: 34em;
}
.house-stats {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(4, auto);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.house-stats dt {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--glass); margin-bottom: 0.4rem;
}
.house-stats dd { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-hi); }

/* ————— enquire ————— */
.enquire {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 62rem; margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 3rem);
}
.enquire-title {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.3;
  max-width: 24em; text-wrap: balance;
}
.enquire-grid {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2.2rem;
}
.enq-label {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--glass); margin-bottom: 0.7rem;
}
.enq-value { font-size: 0.95rem; line-height: 1.7; color: var(--paper); }
.enq-value a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid rgba(201,169,106,0.35); transition: border-color 0.3s; }
.enq-value a:hover { border-color: var(--gold-hi); }

/* ————— footer ————— */
.footer {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 2.4rem;
  border-top: 1px solid rgba(201,169,106,0.14);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--paper-dim);
  background: rgba(4,7,15,0.6);
}
.footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,169,106,0.35); }
.footer a:hover { color: var(--gold-hi); }

/* ————— responsive ————— */
@media (max-width: 900px) {
  .house-inner { grid-template-columns: 1fr; }
  .house-photo { max-width: 26rem; }
  .house-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .enquire-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hud { display: none; }
}
@media (max-width: 640px) {
  /* photo becomes its own cinematic block; plate rises over its lower edge */
  .listing { display: block; min-height: 0; padding: 0 1rem 3.2rem; }
  .listing-photo { position: relative; height: 58vh; margin: 0 -1rem; }
  .listing-photo::after {
    background: linear-gradient(to bottom, rgba(6,11,24,0.35), rgba(6,11,24,0) 30%, rgba(6,11,24,0) 60%, rgba(6,11,24,0.72));
  }
  .plate { width: 100%; margin-top: -4.6rem; padding: 1.6rem 1.3rem; }
  .plate-copy { font-size: 0.9rem; }
  .nav-links a:not(:last-child) { display: none; }
}

/* ————— reduced motion ————— */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-line, .hero-cue { animation: none; opacity: 1; }
  .listing-photo img { transform: none; transition: none; }
  .plate-cta { transition: none; }
}
