/* ============================ Tokens ============================ */
:root {
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --surface: #ffffff;
  --ink: #16171b;
  --ink-2: #3b3d44;
  --muted: #6b6c73;
  --line: #e2dbcf;
  --accent: #a3141f;        /* Polygon red, deepened */
  --gold: #a7814a;
  --wa: #128c4b;
  --wa-hover: #0f7a41;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22,23,27,.05), 0 8px 28px rgba(22,23,27,.07);
  --serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --header-h: 68px;
}
.lang-zh { --serif: "Noto Serif SC", "Fraunces", serif; --sans: "Noto Sans SC", "Inter", system-ui, sans-serif; }

/* ============================ Base ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lang-zh .eyebrow { letter-spacing: .08em; }
.h-sec { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ============================ Buttons ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc6b8; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============================ Header ============================ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,239,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; min-height: var(--header-h); }
.site-header.scrolled { border-bottom-color: var(--line); }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 34px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.brand small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; font: 600 13px/1 var(--sans); padding: 7px 10px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* ============================ Hero ============================ */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.02em; }
.lang-zh .hero h1 { line-height: 1.25; letter-spacing: 0; }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: 14.5px; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-visual { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.agent-chip { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 12px; background: var(--surface); padding: 10px 18px 10px 10px; border-radius: 999px; box-shadow: 0 10px 30px rgba(22,23,27,.16); }
.agent-chip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-chip strong { display: block; font-size: 15px; }
.agent-chip span { font-size: 13px; color: var(--muted); }
.agent-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #22b35e; box-shadow: 0 0 0 4px rgba(34,179,94,.18); }

/* ============================ Sections ============================ */
.sec { padding: 88px 0; }
.sec-alt { background: var(--paper-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-sub { margin-top: 12px; color: var(--ink-2); max-width: 38em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ============================ Cards ============================ */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; background: rgba(22,23,27,.82); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-area { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.card h3 { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.card h3 a { text-decoration: none; }
.card-tag { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.card-specs { margin: 18px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.card-specs div:first-child { grid-column: 1 / -1; }
.card-specs dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-specs dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; }
.card-specs .price { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent); }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-actions .btn { height: 44px; padding: 0 12px; font-size: 14px; }

/* ============================ Steps ============================ */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; }
.steps h3 { font-family: var(--serif); font-size: 22px; margin: 14px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ============================ About ============================ */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; background: var(--surface); border-radius: 22px; padding: 28px 28px 0; box-shadow: var(--shadow); display: flex; justify-content: center; overflow: hidden; }
.about-photo img:first-child { width: 244px; height: auto; }
.about-logo { position: absolute; top: 16px; right: 16px; width: 48px; height: auto; }
.about-copy p:not(.eyebrow) { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 36em; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.contact-list svg { color: var(--accent); }

/* ============================ CTA ============================ */
.cta { background: var(--ink); color: #fff; padding: 64px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); }
.cta p { margin-top: 10px; color: #c9c7c2; max-width: 34em; }

/* ============================ Footer ============================ */
.site-footer { background: #101114; color: #c9c7c2; padding: 56px 0 28px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #26272c; }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand img { width: 60px; height: auto; background: #fff; border-radius: 10px; padding: 6px; }
.foot-brand strong { display: block; color: #fff; font-size: 16px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-agency strong { color: #fff; }
.foot-legal { padding-top: 22px; display: grid; gap: 10px; font-size: 12.5px; color: #8d8b86; }
.foot-legal a { color: #c9c7c2; }

/* ============================ FAB ============================ */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: none; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; box-shadow: 0 10px 28px rgba(18,140,75,.35); }
.fab svg { width: 24px; height: 24px; }

/* ============================ Project page ============================ */
.p-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #222; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.25) 45%, rgba(10,10,12,.82) 100%); }
.p-hero-in { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 48px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; }
.p-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.p-tags .tag { position: static; background: var(--accent); }
.p-tags .tag-light { background: rgba(255,255,255,.18); }
.p-hero h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); letter-spacing: -.02em; }
.p-area { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 17px; color: #e9e6e0; }
.p-tagline { margin-top: 14px; font-size: 18px; max-width: 40em; color: #f2efe9; }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 48px; padding-bottom: 88px; align-items: start; }
.p-sec + .p-sec { margin-top: 56px; }
.p-sec h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 20px; }
.p-summary { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.p-price { padding: 24px 26px; border-right: 1px solid var(--line); }
.p-price span, .p-quick span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.p-price strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.p-price small { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }
.p-quick { display: grid; grid-template-columns: 1fr 1fr; }
.p-quick div { padding: 24px 26px; }
.p-quick div + div { border-left: 1px solid var(--line); }
.p-quick strong { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { color: var(--wa); margin-top: 3px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-item { position: relative; border: 0; padding: 0; background: var(--paper-2); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.g-item.g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 10px; bottom: 10px; background: rgba(22,23,27,.75); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts div { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 500; }

.table-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.units { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.units th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 14px 20px; background: #fbf9f5; border-bottom: 1px solid var(--line); }
.units td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.units tr:last-child td { border-bottom: 0; }
.units td:nth-child(2) { font-variant-numeric: tabular-nums; }

.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 14px; }

.near { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.near-g { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.near-g h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.near-g ul { list-style: none; padding: 0; margin: 0; }
.near-g li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.near-g li:last-child { border-bottom: 0; }
.near-g em { font-style: normal; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 8; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.p-side { position: sticky; top: calc(var(--header-h) + 20px); }
.enq { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 12px; }
.enq-who { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.enq-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.enq-who strong { display: block; }
.enq-who span { font-size: 13.5px; color: var(--muted); }
.enq h2 { font-family: var(--serif); font-size: 24px; }
.enq p { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.enq-call { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-size: 14.5px; text-decoration: none; color: var(--ink-2); padding-top: 4px; }
.enq-call:hover { color: var(--ink); }
.empty { padding: 120px var(--gutter); text-align: center; display: grid; gap: 20px; justify-items: center; }

/* Lightbox */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10,10,12,.92); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { margin: 0; max-width: min(1200px, 88vw); }
.lb img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lb figcaption { color: #ddd; text-align: center; margin-top: 12px; font-size: 14px; }
.lb-x, .lb-nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-x { top: 18px; right: 18px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }

/* Legal */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-family: var(--serif); font-size: 40px; margin-bottom: 20px; }
.legal h2 { font-family: var(--serif); font-size: 22px; margin: 32px 0 10px; }
.legal p { color: var(--ink-2); }

/* ============================ Responsive ============================ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-layout { grid-template-columns: minmax(0, 1fr); }
  .p-side { position: static; order: -1; }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { aspect-ratio: 4 / 3; }
  .agent-chip { left: 16px; bottom: 16px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .fab { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .hero { padding: 24px 0 56px; }
  .hero-sub { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .p-hero { min-height: 440px; }
  .p-summary { grid-template-columns: 1fr; }
  .p-price { border-right: 0; border-bottom: 1px solid var(--line); }
  .checks, .near, .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item.g-wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .map { aspect-ratio: 4 / 3; }
  .cta .btn { width: 100%; }
  .lb-nav { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
