:root {
  --ink: #1c1914;
  --ink-soft: #3c352c;
  --muted: #6d655c;
  --line: rgba(28, 25, 20, 0.12);
  --line-strong: rgba(28, 25, 20, 0.22);
  --gold: #a68456;
  --gold-ink: #7a5c34;
  --cream: #f3eee6;
  --paper: #faf8f4;
  --white: #fffcf8;
  --forest: #1b3028;
  --forest-2: #274438;
  --shadow: 0 22px 50px rgba(28, 25, 20, 0.08);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
  --max: 1160px;
  --header: 118px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--forest);
  color: var(--paper);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(250, 248, 244, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(28, 25, 20, 0.04);
}
.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__logo {
  display: block;
  height: 92px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--forest); }
.site-nav a[href="#consult"] {
  margin-left: 6px;
  padding: 8px 14px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 999px;
}
.site-nav a[href="#consult"]:hover,
.site-nav a[href="#consult"].is-active { color: var(--paper); background: var(--forest-2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease);
}
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { top: 0; transform: rotate(40deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { top: 0; transform: rotate(-40deg); }

.hero { background: var(--white); }
.hero__visual {
  margin: 0;
  background: #d9d0c3;
}
.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}
.hero__copy {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 28px;
  text-align: center;
}
.eyebrow,
.sec-index {
  color: var(--gold-ink);
  font-family: var(--en);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.06em;
}
.hero__kicker {
  margin-top: 16px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.12em;
}
.hero__lead {
  margin: 22px auto 0;
  max-width: 42em;
  color: var(--ink-soft);
}
.hero__actions,
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__actions {
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid:hover { background: var(--forest-2); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--forest); color: var(--forest); }
.btn--gold { background: var(--gold-ink); color: #fffaf3; }
.btn--gold:hover { background: #634920; }

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-ink);
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-btn:hover { color: var(--forest); }

.section { padding: 92px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: #f6f1e8; }

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  margin-bottom: 36px;
}
.sec-index { padding-top: 12px; }
.sec-head h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: 0.04em; }
.sec-index { line-height: 1; padding-bottom: 8px; }
.lede {
  max-width: 46em;
  color: var(--ink-soft);
  font-size: 17px;
}
.section--forest .lede { color: rgba(246, 241, 232, 0.82); }
.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.film-layout {
  display: grid;
  gap: 28px;
}
.player {
  position: relative;
  background: #0e1a15;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0e1a15;
  object-fit: cover;
}
.player__play {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fffaf3;
  background: linear-gradient(180deg, rgba(14, 26, 21, 0.08), rgba(14, 26, 21, 0.46));
  cursor: pointer;
}
.player.is-playing .player__play { display: none; }
.player__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.7);
  border-radius: 50%;
  background: rgba(27, 48, 40, 0.45);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
}
.player__label {
  position: absolute;
  top: calc(50% + 52px);
  left: 50%;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.prose p + p { margin-top: 16px; }
.prose { color: var(--ink-soft); }
.frame {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img,
.shot img,
.board img { display: block; width: 100%; }
.frame figcaption,
.board figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 13px;
}
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #efe8dc;
  cursor: zoom-in;
  text-align: left;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.amenity {
  padding: 22px 18px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(28, 25, 20, 0.04);
}
.amenity strong {
  display: block;
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.amenity p { color: var(--muted); font-size: 14px; }
.icon {
  width: 36px;
  height: 36px;
  color: var(--gold-ink);
}
.stack { display: grid; gap: 22px; margin-top: 28px; }
.board {
  margin: 0;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.villa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.villa {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.villa__body { padding: 22px 22px 26px; }
.villa h3 { font-size: 28px; letter-spacing: 0.06em; }
.villa__sub {
  margin-top: 6px;
  color: var(--gold-ink);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}
.villa__body p:last-of-type {
  margin: 12px 0 16px;
  color: var(--ink-soft);
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.plan-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.plan-tabs button.is-active {
  color: var(--paper);
  background: var(--forest);
  border-color: var(--forest);
}
.plan {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  padding: 22px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.plan h3 { font-size: 28px; }
.plan__copy p { margin-top: 10px; color: var(--ink-soft); }
.plan__actions { margin-top: 18px; }
.plan__figure {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.plan__figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.well-list { display: grid; gap: 0; }
.well {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.well:last-child { border-bottom: 1px solid var(--line); }
.well h3 { font-size: 22px; }
.well p { color: var(--ink-soft); }
.well p + p { margin-top: 8px; }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.tech {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border-radius: 16px;
}
.tech__no {
  font-family: var(--en);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.tech h3 { font-size: 20px; }
.tech p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

.consult-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}
.consult-aside .frame { margin-bottom: 18px; }
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.topics li {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  padding: 28px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 14px; letter-spacing: 0.04em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
.field__error {
  min-height: 1.2em;
  color: #8d3b2c;
  font-size: 13px;
}
.field.check {
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 14px;
}
.field.check input { margin-top: 4px; }
.field.check .field__error { grid-column: 1 / -1; }
.check a { color: var(--gold-ink); }
.form .btn { justify-self: start; }
.form-status {
  margin: 0;
  color: #8d3b2c;
  font-size: 14px;
}
.form .btn:disabled { opacity: 0.6; }
.done {
  padding: 48px 32px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.done h3 { font-size: 32px; }
.done p { margin-top: 12px; color: var(--ink-soft); }
.done .btn { margin-top: 22px; }

.site-footer {
  padding: 64px 0 28px;
  background: #122019;
  color: rgba(246, 241, 232, 0.82);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: block;
  height: 128px;
  width: auto;
}
.site-footer h2 { color: #f6f1e8; }
.footer-park {
  margin-top: 16px;
  color: #f6f1e8;
  font-family: var(--serif);
  letter-spacing: 0.14em;
}
.footer-en {
  margin-top: 8px;
  font-family: var(--en);
  letter-spacing: 0.16em;
  color: var(--gold);
}
.footer-slogan {
  margin-top: 14px;
  font-family: var(--serif);
  letter-spacing: 0.12em;
}
.site-footer a { color: rgba(246, 241, 232, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links,
.contact-list { display: grid; gap: 8px; margin-top: 14px; }
.contact-list div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; }
.contact-list a { overflow-wrap: anywhere; }
.contact-list dt { color: rgba(246, 241, 232, 0.55); }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  color: rgba(246, 241, 232, 0.55);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px 18px 48px;
  background: rgba(16, 18, 16, 0.88);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 8px;
}
.lightbox__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  color: rgba(255, 250, 243, 0.8);
  text-align: center;
  font-size: 13px;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 243, 0.4);
  border-radius: 999px;
  color: #fffaf3;
  background: transparent;
  cursor: pointer;
}

.header-inner > .btn { margin-left: auto; }
.page-hero { padding: 56px 0 12px; }
.page-hero .lede { margin-top: 16px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); }
.policy {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding-bottom: 80px;
}
.policy h2 { font-size: 22px; }
.policy p,
.policy li { color: var(--ink-soft); }
.policy ul { margin: 8px 0 0; padding-left: 1.2em; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header) 16px auto;
    margin: 0;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a,
  .site-nav a[href="#consult"] {
    padding: 12px 14px;
    margin: 0;
    border-radius: 10px;
  }
  .amenity-grid,
  .footer-grid,
  .plan,
  .consult-grid { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header: 92px; }
  .brand__logo { height: 68px; }
  .footer-logo { height: 104px; }
  .player__label {
    max-width: calc(100% - 32px);
    font-size: 15px;
    letter-spacing: 0.06em;
    white-space: normal;
    text-align: center;
  }
  .header-inner,
  .wrap,
  .hero__copy { width: min(100% - 32px, var(--max)); }
  .section { padding: 68px 0; }
  .split,
  .villa-grid,
  .tech-grid,
  .well,
  .form,
  .amenity-grid { grid-template-columns: 1fr; }
  .hero__copy { padding-top: 36px; }
  .legal { flex-direction: column; }
  .form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
