/* Halaman Homes homepage: Gallery Noir. Self-contained; the tour uses css/style.css + css/tour.css, not this. */
/* Variable: weight 500-700 and optical size 6-96 (the opsz axis is why small headings keep sturdy hairlines). */
@font-face { font-family: "Bodoni Moda"; font-weight: 500 700; font-style: normal; font-display: swap; src: url("../fonts/bodoni-moda-var.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); }

:root {
  --bg: #0E0D0B;
  --surface: #171512;
  --surface-2: #1C1915;
  --text: #F2EDE4;
  --body: #D2CBBF;
  --muted: #A39B8E;
  --line: #2C2823;
  --brass: #C2A06B;
  --on-brass: #14120F;
  /* the light band */
  --paper: #F2EDE4;
  --ink: #14120F;
  --ink-muted: #5A5348;
  /* plot status: green available, amber reserved, grey sold (matches the tour) */
  --st-available: #6FBF8B;
  --st-reserved: #E3A84B;
  --st-sold: #8C877E;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --head-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* Optical size follows the rendered size. Weight 600 below 40px (hairlines hold up), 500 once a heading is 40px or larger:
   h1 passes 40px at 645px wide, h2 at 1000px wide, h3 never does. */
h1, h2, h3 { font-family: var(--display); font-weight: 600; font-optical-sizing: auto; font-kerning: normal; font-variant-ligatures: common-ligatures; color: var(--text); letter-spacing: 0; }
@media (min-width: 645px) { h1 { font-weight: 500; } }
@media (min-width: 1000px) { h2 { font-weight: 500; } }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.light :focus-visible, .contact-sect :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--brass); color: var(--on-brass); padding: 10px 14px; }
.skip:focus { top: 12px; }
.small { font-size: 14px; color: var(--muted); }

/* ---- header: solid page colour, never see-through over a photo */
.site-head { position: sticky; top: 0; z-index: 20; background: #0E0D0B; border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 24px; padding-top: 8px; padding-bottom: 8px; min-height: var(--head-h); }
.logo { font: 600 13px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 12px 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { font-size: 14px; color: var(--body); text-decoration: none; padding: 10px 0; transition: color 150ms ease; }
.menu-btn { display: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--brass); } }
/* Phones: one row, wordmark left, Menu right. The nav opens below the row. Without JS the links simply show. */
@media (max-width: 639px) {
  .head-row { padding-top: 0; padding-bottom: 0; min-height: 56px; }
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-right: -4px; background: transparent; color: var(--text);
    border: 1px solid var(--line); border-radius: 0; font: 600 14px/1 var(--sans); cursor: pointer; }
  .menu-btn[aria-expanded="true"] { border-color: var(--brass); color: var(--brass); }
  .nav { flex-basis: 100%; flex-direction: column; border-top: 1px solid var(--line); padding-bottom: 8px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 0; min-height: 48px; display: flex; align-items: center; }
}
section[id] { scroll-margin-top: 80px; }

/* ---- buttons: square, 44px+ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--brass); border-radius: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--brass); color: var(--on-brass); }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(242, 237, 228, 0.55); }
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: #D1B07C; }
  .btn.outline:hover { border-color: var(--brass); color: var(--brass); }
  .btn.dark:hover { background: #2A2620; }
}

/* ---- hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(600px, 60vw); overflow: hidden; background: var(--bg); }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The photo itself fades out to the page colour (mask), so its pale pavement/lawn can never show as a band above the next section. */
.hero-pic img { object-fit: cover; object-position: 50% 40%; filter: brightness(1.2) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 13, 11, 0.15) 0%, rgba(14, 13, 11, 0.3) 40%, rgba(14, 13, 11, 0.8) 60%, #0E0D0B 82%, #0E0D0B 100%); }
.hero-copy { position: relative; padding-top: 120px; padding-bottom: 28px; }
/* Half the old dark gap between the hero and "Pick your plot" (hero bottom padding 56 -> 28, section top 64-120 -> 32-60). */
.hero + .sect { padding-top: clamp(32px, 4.5vw, 60px); }
.eb-short { display: none; }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 84px); line-height: 1.04; max-width: 14ch; margin-bottom: 22px; }
.hero-line { max-width: 52ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--body); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.caption { font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 639px) {
  .hero { min-height: 660px; }
  .hero-copy { padding-bottom: 20px; }
  .eb-long { display: none; }
  .eb-short { display: inline; }
  .eyebrow { white-space: nowrap; letter-spacing: 0.12em; }
  /* Darker, earlier gradient so the headline never sits on the bright lit window in the photo. */
  .hero-shade { background: linear-gradient(180deg, rgba(14, 13, 11, 0) 0%, rgba(14, 13, 11, 0.04) 18%, rgba(14, 13, 11, 0.2) 26%, rgba(14, 13, 11, 0.72) 34%, rgba(14, 13, 11, 0.93) 42%, #0E0D0B 58%, #0E0D0B 100%); }
}
@media (max-width: 599px) {
  .btn { width: 100%; }
}

/* ---- sections */
.sect { padding: clamp(64px, 9vw, 120px) 0; }
.sect-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.1; }
.sect-head { margin-bottom: 36px; }
.sect-sub { color: var(--muted); margin-top: 10px; }

.render { display: block; border: 1px solid var(--line); background: #16130E; }
.render img { width: 100%; }
.plot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 28px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.counts li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--body); }
.counts b { color: var(--text); font-weight: 600; font-size: 20px; }
.dot { width: 12px; height: 12px; border-radius: 0; background: var(--st-sold); flex: none; }
.dot[data-status="available"] { background: var(--st-available); }
.dot[data-status="reserved"] { background: var(--st-reserved); }
.dot[data-status="sold"] { background: var(--st-sold); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.steps li { padding: 28px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: block; font: 600 13px/1 var(--sans); letter-spacing: 0.14em; color: var(--brass); margin-bottom: 16px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: var(--body); max-width: 32ch; }
@media (max-width: 799px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* ---- homes */
.homes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.home-card { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.home-card h3 { font-size: 30px; }
.home-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plans { display: block; }
.plan { max-width: 420px; margin: 0; }
.plan svg { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); }
.plan figcaption { font: 600 13px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1 1 0; min-height: 44px; padding: 0 12px; background: transparent; color: var(--body); border: 1px solid var(--line); border-radius: 0; font: 600 14px/1 var(--sans); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.tab[aria-selected="true"] { background: var(--brass); color: var(--on-brass); border-color: var(--brass); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { border-color: var(--brass); color: var(--text); } }
.plan .cp { fill: #8E8678; font-size: 4.2px; letter-spacing: 0.1em; text-transform: uppercase; }
.plan .r { fill: #221F1A; stroke: #8E8678; stroke-width: 1.2; }
.plan .b { fill: #3A352D; stroke: none; }
.plan .p { fill: none; stroke: #6F685C; stroke-width: 1; stroke-dasharray: 4 3; }
.plan .d { stroke: var(--brass); stroke-width: 3.5; }
.plan text { font-family: var(--sans); fill: #C9C2B6; font-size: 4.2px; text-anchor: middle; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.facts li { font-size: 15px; color: var(--body); }
.facts b { color: var(--text); font-weight: 600; }
.avail-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--st-available); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.chip::before { content: ""; width: 8px; height: 8px; background: var(--st-available); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: rgba(111, 191, 139, 0.14); } }
@media (max-width: 899px) { .homes { grid-template-columns: 1fr; } .home-card { padding: 22px 18px; } }

/* ---- finished look band */
.look { position: relative; display: flex; align-items: center; min-height: 460px; overflow: hidden; background: var(--bg); }
.look > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.look-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 13, 11, 0.94) 0%, rgba(14, 13, 11, 0.8) 35%, rgba(14, 13, 11, 0.1) 80%); }
.look-copy { position: relative; padding-top: 72px; padding-bottom: 72px; }
.look-copy h2, .look-copy p { max-width: 30ch; }
.look-copy h2 { margin-bottom: 16px; }
.look-copy p:not(.caption) { font-size: clamp(16px, 1.5vw, 19px); }
@media (max-width: 699px) {
  .look-shade { background: linear-gradient(180deg, rgba(14, 13, 11, 0.55) 0%, rgba(14, 13, 11, 0.92) 100%); }
  .look { align-items: flex-end; min-height: 520px; }
}

/* ---- about (light band) */
.light { background: var(--paper); color: var(--ink); }
.light h2 { color: var(--ink); }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px 80px; align-items: end; }
.about-line { font: 600 clamp(22px, 2.4vw, 30px)/1.35 var(--display); color: var(--ink); margin-top: 24px; max-width: 30ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(20, 18, 15, 0.25); }
.stats li { padding: 22px 12px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 500 clamp(40px, 4.5vw, 64px)/1 var(--display); color: var(--ink); }
.stats span { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 799px) { .about { grid-template-columns: 1fr; } }

/* ---- past estates */
.estates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.estate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.estate h3 { font-size: 24px; margin-top: 16px; }
.estate p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.award { margin-top: 32px; }
@media (max-width: 799px) { .estates { grid-template-columns: 1fr; } }

/* ---- contact */
.contact-sect { padding-top: 0; }
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.contact-card { background: var(--brass); color: var(--on-brass); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact-card h2 { color: var(--on-brass); max-width: 20ch; }
.gallery { border: 1px solid var(--line); background: var(--surface); padding: clamp(24px, 3vw, 40px); }
.gallery h3 { font-size: 24px; margin-bottom: 14px; }
.gallery .hours { color: var(--muted); margin-top: 10px; }
@media (max-width: 799px) { .contact { grid-template-columns: 1fr; } }

/* ---- footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.note { font-size: 14px; color: var(--muted); }
.pill { font-size: 13px; color: var(--text); border: 1px solid var(--muted); border-radius: 999px; padding: 6px 14px; }
.demo-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--body); border: 1px solid var(--line); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .demo-badge:hover { border-color: var(--brass); color: var(--text); } }

/* ---- motion: hero image fades in slowly; sections fade and rise 12px once. Without JS or with reduced motion everything is simply visible. */
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
.hero-pic img { animation: hero-in 1.4s ease-out both; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
/* Reduced motion: gentler, not zero. Opacity-only fades stay (shorter); no movement, no smooth scroll, no press scale. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pic img { animation-duration: 600ms; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active, .chip:active { transform: none; }
}
