:root {
  --ink: #1c2e24;
  --muted: #5a6f63;
  --bg: #e4ebe3;
  --bg-soft: #d5e0d4;
  --paper: #f3f7f2;
  --line: rgba(28, 46, 36, 0.14);
  --accent: #b45309;
  --accent-deep: #92400e;
  --accent-bar: #d4a017;
  --on-accent: #fffaf3;
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1080px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
  background:
    radial-gradient(ellipse 50% 35% at 0% 0%, rgba(180, 83, 9, 0.08), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(28, 46, 36, 0.035) 31px, rgba(28, 46, 36, 0.035) 32px),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
ul { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 0.55rem 1.25rem;
  background: #122018; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--accent-bar); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(228, 235, 227, 0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); position: relative;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-cta {
  background: var(--accent); color: var(--on-accent) !important;
  padding: 0.55rem 1.05rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero {
  position: relative; min-height: min(90dvh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 22s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(18, 32, 24, 0.92) 0%, rgba(18, 32, 24, 0.55) 52%, rgba(18, 32, 24, 0.25) 100%);
}
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ledger-rule {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.45), transparent);
  animation: ruleDrift 8s ease-in-out infinite;
}
.ledger-rule--1 { top: 28%; }
.ledger-rule--2 { top: 62%; animation-delay: 1.4s; opacity: 0.55; }
.hero__inner {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 40rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 40rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.25rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: baseline;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-bar);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.hero h1 em {
  display: block; font-style: normal; color: var(--accent-bar);
  font-size: 0.72em; margin-top: 0.25rem;
}
.hero__lead { color: rgba(255,255,255,0.86); margin-bottom: 1.5rem; }

@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ruleDrift {
  0%, 100% { opacity: 0.35; transform: translateX(-2%); }
  50% { opacity: 0.8; transform: translateX(2%); }
}

.strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.strip__inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; padding: 1.1rem 0;
}
.strip__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.strip__inner p { color: var(--muted); font-size: 0.95rem; }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: #122018; color: #fff; }
.section__head { margin-bottom: 2.25rem; max-width: 40rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 0.5rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--accent-bar); }

/* LISTING LEDGER — unique structure */
.ledger {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.ledger__head, .ledger__row {
  display: grid;
  grid-template-columns: 5.5rem 1.6fr 6.5rem 5.5rem 5.5rem;
  gap: 0.75rem; align-items: center;
  padding: 0.85rem 1.1rem;
}
.ledger__head {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background:
    repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(28, 46, 36, 0.04) 10px, rgba(28, 46, 36, 0.04) 11px),
    #e8efe6;
  border-bottom: 1.5px solid var(--ink);
}
.ledger__row {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__row:hover { background: rgba(180, 83, 9, 0.07); }
.mono {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 500;
}
.ledger__prop {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.ledger__prop img {
  width: 72px; height: 54px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line);
}
.ledger__prop strong {
  font-family: var(--heading); font-size: 0.98rem; display: block; line-height: 1.25;
}
.ledger__prop small { color: var(--muted); font-size: 0.82rem; }
.status {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.28rem 0.45rem;
  border: 1px solid var(--line); width: fit-content;
}
.status--open { color: #166534; border-color: rgba(22, 101, 52, 0.35); background: rgba(22, 101, 52, 0.08); }
.status--hold { color: #92400e; border-color: rgba(146, 64, 14, 0.35); background: rgba(180, 83, 9, 0.1); }
.status--rent { color: #0f4c5c; border-color: rgba(15, 76, 92, 0.35); background: rgba(15, 76, 92, 0.08); }
.price {
  font-family: var(--heading); font-weight: 700; font-size: 1rem; text-align: right;
}

.districts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1.5px solid var(--ink); margin-bottom: 1.75rem;
}
.district {
  padding: 1.35rem 1.25rem; display: grid; gap: 0.4rem;
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.2s var(--ease);
}
.district:last-child { border-right: none; }
.district:hover { background: rgba(180, 83, 9, 0.06); }
.district__code {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.district strong { font-family: var(--heading); font-size: 1.15rem; }
.district p { color: var(--muted); font-size: 0.9rem; }
.district__n {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink); margin-top: 0.35rem;
}
.district-band {
  position: relative; border: 1.5px solid var(--ink); overflow: hidden;
}
.district-band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.district-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.65rem 1rem; background: rgba(18, 32, 24, 0.88); color: #fff;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
}

.clearance {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.clearance__copy h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 0.75rem;
}
.clearance__copy > p { color: var(--muted); margin-bottom: 1.25rem; }
.ticks { display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.35rem; font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem; background: var(--accent); border-radius: 1px;
}
.clearance__panel { position: relative; border: 1.5px solid var(--ink); overflow: hidden; }
.clearance__panel img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.clearance__panel p {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.65rem 1rem; background: rgba(18, 32, 24, 0.88); color: #fff;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
}

.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: start; }
.contact h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.contact > .reveal > p { color: rgba(255,255,255,0.75); }
.form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.18);
  padding: 1.5rem; display: grid; gap: 1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-bar);
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; padding: 0.75rem 0.85rem; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 96px; }
.field option { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg-soft);
}
.footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }


.voice-roster {
  display: grid;
  gap: 0;
}
.voice-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.85rem 1.5rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.voice-row:first-child { border-top: 1px solid var(--line); }
.voice-row__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.25rem;
}
.voice-row__body p {
  font-family: var(--heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.voice-row__body cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .voice-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .clearance, .contact { grid-template-columns: 1fr; }
  .districts { grid-template-columns: 1fr; }
  .district { border-right: none; border-bottom: 1px solid var(--line); }
  .district:last-child { border-bottom: none; }
  .ledger__head { display: none; }
  .ledger__row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }
  .ledger__prop { grid-column: 1 / -1; }
  .price { text-align: left; }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border: 1px solid var(--line); padding: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.35rem; }
  .field-row { grid-template-columns: 1fr; }
  .hero__inner { margin-left: 1.25rem; }
  .district-band img { aspect-ratio: 16 / 10; }
}
