:root {
  --bg: #0d0e10;
  --bg-soft: #14161a;
  --bg-card: #191b1f;
  --bg-card-hover: #1f2228;
  --header: rgba(13, 14, 16, 0.88);
  --ivory: #f6f1e8;
  --ivory-dim: #cfc6b8;
  --muted: #9d968b;
  --gold: #c9a96e;
  --gold-bright: #e3c78a;
  --gold-dim: rgba(201, 169, 110, 0.22);
  --cream: #fff8f0;
  --ink: #161513;
  --ink-soft: #4a453d;
  --line-green: #06c755;
  --danger: #c4b8a4;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --bar-h: 0px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

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

html, body { background: var(--bg); color: var(--ivory); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 4px;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Notice —— */
.notice {
  background: #111318;
  color: var(--ivory-dim);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gold-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
}
.notice span { white-space: nowrap; }
.notice strong { color: var(--gold-bright); font-weight: 500; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--cream);
  object-fit: cover;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text b {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
}
.brand-text span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  color: var(--ivory);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before { position: absolute; top: -5px; }
.nav-toggle .bars::after { position: absolute; top: 5px; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 4px;
}
.nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ivory-dim);
}
.nav a:hover { color: var(--ivory); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 241, 232, 0.28);
}
.btn-ghost:hover { background: rgba(246, 241, 232, 0.08); color: var(--ivory); }
.btn-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-ink:hover { background: #2a2723; border-color: #2a2723; }
.btn-line {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
}
.btn-line:hover { background: #05b34c; border-color: #05b34c; color: #fff; }
.header-cta { padding: 10px 16px; font-size: 13px; }

/* —— Hero —— */
.hero {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 36px var(--pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 36px);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; }
h1 {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.22;
  margin: 18px 0 22px;
  font-weight: 600;
}
h1 em { font-style: normal; color: var(--gold-bright); }
h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 10px 0 16px; }
h3 { font-size: 22px; margin: 0 0 8px; }

.intro {
  color: var(--ivory-dim);
  font-size: 16px;
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.micro { font-size: 12px; color: var(--muted); line-height: 1.7; }
.micro a { color: var(--gold); text-underline-offset: 3px; }

.scene {
  position: relative;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.scene picture { display: block; width: 100%; }
.scene img,
.scene picture img {
  width: 100%;
  height: min(560px, 68svh);
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
}
.scene-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(13, 14, 16, 0.84);
  color: var(--ivory);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.scene-label span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 4px;
}
.scene-label small { display: block; color: var(--ivory-dim); font-size: 11px; margin-top: 2px; }

/* —— Strip —— */
.strip {
  background: #101214;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: 20px var(--pad);
  display: flex;
  justify-content: center;
  gap: clamp(24px, 7vw, 88px);
  font-size: 14px;
  flex-wrap: wrap;
}
.strip b {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-right: 10px;
  font-size: 11px;
}

/* —— Sections —— */
section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 88px var(--pad);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-head p {
  max-width: 22em;
  color: var(--ivory-dim);
  font-size: 14px;
  margin: 0;
}

/* —— Services —— */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0 0 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.service:hover { border-color: var(--gold-dim); background: var(--bg-card-hover); }
.service picture { display: block; width: 100%; }
.service-photo,
.service picture img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.service picture[data-pos="taipei"] img { object-position: center 43%; }
.service-body { padding: 22px 26px 0; flex: 1; display: flex; flex-direction: column; }
.number {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 500;
}
.service h3 { margin: 10px 0 8px; font-size: 22px; }
.service p { font-size: 14px; color: var(--ivory-dim); margin: 0 0 16px; flex: 1; }
.service a.text-link { margin-top: auto; }

.text-link {
  font-size: 13px;
  color: var(--gold-bright);
  text-underline-offset: 5px;
  letter-spacing: 0.04em;
}
.text-link:hover { color: var(--ivory); }

/* —— Scenes —— */
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.scenes figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
}
.scenes picture { display: block; width: 100%; }
.scenes img,
.scenes picture img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.scenes figure:hover img { transform: scale(1.04); }
.scenes figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 9, 10, 0.92) 70%);
  font-size: 13px;
}
.scenes figcaption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.scenes figcaption span { color: var(--ivory-dim); font-size: 12px; }

/* —— Vehicles —— */
.vehicle-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  margin: 8px 0 32px;
}
.vehicle-split article { padding: 28px 8px 28px 0; }
.vehicle-split article + article {
  padding-left: 32px;
  border-left: 1px solid var(--gold-dim);
}
.vehicle-split p { margin: 8px 0 0; color: var(--ivory-dim); font-size: 14px; }

.car-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.car-gallery figure {
  margin: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.car-gallery picture { display: block; width: 100%; }
.car-gallery img,
.car-gallery picture img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
}
.car-gallery figcaption { padding: 16px 18px 18px; font-size: 12px; color: var(--muted); }
.car-gallery figcaption span {
  display: block;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.gallery-note { margin: 16px 0 0; }

/* —— Steps —— */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 8px 0 0;
}
.steps li {
  border-top: 1px solid var(--gold-dim);
  padding-top: 20px;
}
.steps b {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--gold);
  font-size: 28px;
  letter-spacing: 0.08em;
}
.steps h3 { margin: 12px 0 8px; font-size: 20px; }
.steps p { color: var(--ivory-dim); font-size: 14px; margin: 0; }

/* —— Groups —— */
.plain-card { padding: 28px 26px 26px !important; }
.icon-golf { display: block; margin-bottom: 14px; }

/* —— Contact —— */
.contact-box {
  text-align: center;
  background: linear-gradient(180deg, #1a1c20 0%, #14161a 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  text-align: left;
  margin-top: 8px;
}
.qr-wrap {
  background: var(--cream);
  border-radius: 16px;
  padding: 14px;
  width: 220px;
}
.qr-wrap img { width: 100%; height: auto; border-radius: 8px; }
.qr-wrap p {
  margin: 8px 0 0;
  text-align: center;
  color: #5c564c;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.contact-copy h2 { margin-top: 8px; }
.contact-copy p { color: var(--ivory-dim); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.contact-box .micro { margin-top: 8px; }

/* —— Form (ivory card) —— */
#inquiry { padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
.btn-soft {
  background: #efe6d6;
  color: var(--ink);
  border-color: #c9b89a;
}
.btn-soft:hover { background: #e5d9c4; border-color: #c9b89a; color: var(--ink); }
.service-body.flush { padding: 0; }
.form-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form-card > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  color: var(--ink);
}
.form-card > summary::-webkit-details-marker { display: none; }
.form-card > summary::after {
  content: "＋";
  float: right;
  color: #8a7a58;
  font-weight: 400;
}
.form-card[open] > summary { margin-bottom: 28px; border-bottom: 1px solid #e4d9c8; padding-bottom: 16px; }
.form-card[open] > summary::after { content: "－"; }
.quote-top {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.quote-top .eyebrow { color: #8a7a58; }
.quote-top p { max-width: 26em; font-size: 14px; color: var(--ink-soft); margin: 0; }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d4cbbd;
  border-radius: 6px;
  margin-top: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, summary:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.full { grid-column: 1 / -1; }
.form-card .micro { color: #6f675c; }
.form-card .btn { margin-top: 8px; }
#result {
  margin-top: 24px;
  padding: 20px;
  background: #f3ece1;
  border-radius: 10px;
}
#result textarea { min-height: 240px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
#status { font-size: 14px; margin: 12px 0 0; color: var(--ink-soft); }

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--gold-dim);
  padding: 18px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--gold-dim); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: "－"; }
.faq details p {
  margin: 12px 0 4px;
  color: var(--ivory-dim);
  font-size: 14px;
  max-width: 46em;
}

/* —— Footer —— */
footer {
  background: #0a0b0d;
  color: var(--ivory-dim);
  font-size: 12px;
  padding: 40px var(--pad) calc(40px + var(--bar-h));
  border-top: 1px solid var(--gold-dim);
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
footer strong {
  display: block;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
footer a { color: var(--gold); text-underline-offset: 3px; }
.photo-credit { font-size: 11px; max-width: 460px; margin-top: 12px; line-height: 1.7; color: var(--muted); }

/* —— Mobile bar —— */
.mobile-bar { display: none; }

/* —— Credits page —— */
.credits-page { background: var(--bg); color: var(--ivory); min-height: 100vh; }
.credits-page body, body.credits { background: var(--bg); }
.credits-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}
.credits-wrap h1 { margin-top: 18px; }
.credit-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin: 28px 0;
  border-top: 1px solid var(--gold-dim);
  padding-top: 24px;
}
.credit-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.credit-item h2 { font-size: 18px; margin: 0 0 8px; }
.credit-item p { margin: 6px 0; color: var(--ivory-dim); font-size: 14px; }

@media (max-width: 860px) {
  :root { --header-h: 64px; --bar-h: calc(58px + env(safe-area-inset-bottom)); }
  .brand-text { display: none; }
  .brand img { width: 48px; height: 48px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    right: var(--pad);
    top: calc(100% + 8px);
    background: #16181c;
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    margin: 0;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav-toggle-input:checked ~ .nav { display: flex; }
  .nav a {
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero { padding-bottom: calc(36px + var(--bar-h)); }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
    padding-bottom: 40px;
    min-height: 0;
    gap: 28px;
  }
  .hero-copy { order: 1; }
  .scene { order: 0; min-height: 0; }
  .scene img,
  .scene picture img { height: 220px; }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  .strip { gap: 16px 28px; font-size: 13px; justify-content: flex-start; }
  .section-head, .quote-top, .contact-grid, .footer-inner { display: block; }
  .section-head p, .quote-top p { margin-top: 12px; max-width: none; }
  section { padding: 64px var(--pad); }
  .services, .scenes, .car-gallery, .steps, .fields, .vehicle-split { grid-template-columns: 1fr; }
  .vehicle-split article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--gold-dim); }
  .qr-wrap { width: 200px; margin: 0 auto 24px; }
  .contact-grid { text-align: center; }
  .contact-actions { justify-content: center; }
  .full { grid-column: auto; }
  .actions .btn { width: 100%; }
  .steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 12px;
    align-items: start;
  }
  .steps h3 { margin-top: 0; }
  .steps p { grid-column: 2; }
  .credit-item { grid-template-columns: 1fr; }
  .credit-item img { height: auto; aspect-ratio: 16/10; }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 15px;
    height: auto;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }
  footer { padding-bottom: calc(32px + var(--bar-h)); }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; background: none; border: 0; padding: 0; min-width: 0; box-shadow: none; flex-direction: row; }
}

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