/* TEMPLATE 01 — tokens / foundation / sections / responsive / motion. */
:root {
  --color-bg: #f5f4f0;
  --color-white: #ffffff;
  --color-dark: #111111;
  --color-text: #222222;
  --color-muted: #716e67;
  --color-line: #d8d5ce;
  --color-accent: #9d8667;
  --color-on-dark: #b6b3ad;
  --color-dark-line: #383838;
  --color-image: #d5d0c7;
  --color-header: rgba(255,255,255,.94);
  --color-shade: rgba(0,0,0,.2);
  --font-sans: 'Inter', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --gutter: 64px;
  --section-space: 160px;
  --header-height: 100px;
  --floating-size: 52px;
  --floating-right: max(28px, env(safe-area-inset-right));
  --floating-bottom: max(40px, env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-weight: 400; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
body.modal-open { overflow: hidden; }
[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 6px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; }
section:focus { outline: none; }
h1, h2, p, figure, dl { margin: 0; }
h1, h2 { font-weight: 400; line-height: 1.35; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(36px, 3.9vw, 62px); }
img, video { display: block; max-width: 100%; }
img { width: 100%; height: auto; background: var(--color-image); }
figure { min-width: 0; }
address { font-style: normal; }
.shell { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.eyebrow { font-size: 10px; font-weight: 500; line-height: 1.7; letter-spacing: .18em; }
.body-copy { color: var(--color-muted); font-size: 15px; line-height: 2.15; }
.small-note { color: var(--color-muted); font-size: 12px; line-height: 1.9; }
.accent-dot { color: var(--color-accent); }
.editorial-heading { font-size: clamp(44px, 4.8vw, 72px); letter-spacing: .015em; line-height: 1.4; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 100%; min-height: 48px; padding-block: 12px; border-bottom: 1px solid var(--color-text); font-size: 13px; letter-spacing: .08em; }
.text-link span { font-size: 20px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--color-white); color: var(--color-dark); padding: 12px 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation: transparent over hero, white after leaving hero. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; color: var(--color-white); transition: background-color .4s, color .4s, box-shadow .4s; }
.site-header.is-scrolled { background: var(--color-header); color: var(--color-dark); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--color-line); }
.navigation { min-height: var(--header-height); display: flex; align-items: center; gap: 36px; }
.wordmark { font-size: 30px; font-weight: 500; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.desktop-links { display: flex; align-items: center; gap: 30px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.desktop-links a, .nav-contact { font-size: 12px; font-weight: 500; letter-spacing: .09em; }
.desktop-links a { display: block; padding-block: 16px; }
.nav-contact { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 18px; border: 1px solid currentColor; }
.menu-toggle { margin-left: auto; width: 48px; height: 48px; padding: 12px 4px; border: 0; background: none; color: inherit; }
.menu-toggle span { display: block; height: 1px; width: 28px; margin: 7px auto; background: currentColor; }
.mobile-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100svh; max-height: none; margin: 0; padding: 24px; border: 0; color: var(--color-dark); background: var(--color-bg); overflow-y: auto; }
.mobile-menu[open] { display: flex; flex-direction: column; }
.mobile-menu::backdrop { background: var(--color-dark); }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-close { min-width: 48px; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font-size: 12px; }
.menu-close span { font-size: 32px; font-weight: 400; }
.mobile-menu nav { margin-block: auto; padding-block: 48px; }
.mobile-links { padding: 0; margin: 0; list-style: none; }
.mobile-links a { display: flex; align-items: baseline; gap: 20px; padding-block: 8px; font-size: clamp(28px, 7vw, 58px); letter-spacing: -.04em; }
.mobile-links span { font-size: 10px; letter-spacing: .06em; color: var(--color-muted); }
.menu-note { padding-top: 24px; border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: 9px; letter-spacing: .12em; }

/* Full viewport width without 100vw including the scrollbar. */
.hero { position: relative; isolation: isolate; width: 100%; height: 100vh; color: var(--color-white); background: var(--color-dark); }
.hero-media, .hero-shade, .hero-poster, #hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { overflow: hidden; z-index: -2; }
.hero-poster, #hero-video { object-fit: cover; object-position: center 58%; }
#hero-video { opacity: 0; }
#hero-video.is-playing { opacity: 1; }
.hero-shade { z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.36), transparent 40%, rgba(0,0,0,.27)), var(--color-shade); }
.hero-content { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 32px; }
.hero-content .eyebrow { margin-bottom: 32px; letter-spacing: .24em; }
h1 { font-size: clamp(64px, 6.7vw, 104px); line-height: 1.3; letter-spacing: .015em; }
.hero-subtitle { margin-top: 28px; font-size: clamp(14px, 1.4vw, 20px); letter-spacing: .015em; }
.hero-bottom { position: absolute; bottom: 42px; left: 0; right: 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; }
.hero-edition { margin-left: auto; font-size: 9px; line-height: 1.8; letter-spacing: .14em; }
.video-toggle { background: none; border: 1px solid currentColor; padding: 10px; color: inherit; font-size: 9px; letter-spacing: .1em; }

/* Intro and feature spreads. */
.intro { background: var(--color-bg); }
.intro-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.section-index { padding-top: 10px; }
.editorial-note { font-size: 15px; color: var(--color-muted); margin-bottom: 28px; }
.intro h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1.4; }
.intro-bottom { display: flex; gap: 44px; margin-top: 48px; align-items: flex-start; }
.fine-rule { flex: 0 0 64px; height: 1px; margin-top: 17px; background: var(--color-accent); }
.feature-section { background: var(--color-white); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 0; }
.feature-copy { padding-left: clamp(40px, 5vw, 90px); }
.feature-copy h2 { margin-block: 28px 30px; }
.feature-copy .text-link { margin-top: 32px; }
.feature-number { margin-right: 22px; color: var(--color-accent); }
.image-reveal { overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-image); }
.image-reveal img { height: 100%; object-fit: cover; }
figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 9px; line-height: 1.7; letter-spacing: .08em; color: var(--color-muted); }
.feature-layout-reverse { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.feature-layout-reverse .feature-copy { padding-left: 0; padding-right: clamp(40px, 5vw, 90px); }
.feature-two { padding-bottom: 80px; }

/* Full bleed image: subtle scale; no pinning or large parallax. */
.full-bleed { position: relative; isolation: isolate; overflow: hidden; height: 90vh; color: var(--color-white); background: var(--color-dark); }
.full-bleed-image { position: absolute; inset: 0; height: 100%; object-fit: cover; z-index: -2; }
.visual-shade { position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.32); }
.visual-copy { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.visual-copy h2 { font-size: clamp(56px, 6.3vw, 96px); line-height: 1.4; letter-spacing: .015em; margin-block: 34px; }
.visual-footnote { font-size: 15px; letter-spacing: .06em; }

/* Gallery: wide / asymmetrical pair / wide. */
.gallery-section { background: var(--color-white); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 72px; }
.section-heading .eyebrow { margin-bottom: 28px; }
.gallery-intro { padding-bottom: 8px; }
.editorial-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 80px; }
.gallery-wide { grid-column: 1 / -1; }
.gallery-portrait { grid-column: 1 / 6; }
.gallery-offset { grid-column: 8 / -1; padding-top: 160px; }
.gallery-image { overflow: hidden; background: var(--color-image); }
.gallery-image img { height: 100%; object-fit: cover; }
.gallery-wide .gallery-image { aspect-ratio: 16 / 9; }
.gallery-portrait .gallery-image { aspect-ratio: 4 / 5; }
.gallery-offset .gallery-image { aspect-ratio: 4 / 3; }
.gallery-last { grid-column: 3 / -1; }
.gallery-last .gallery-image { aspect-ratio: 3 / 2; }

/* Information / location. */
.information { background: var(--color-dark); color: var(--color-white); }
.information-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 36px; margin-bottom: 64px; }
.information-heading .eyebrow { color: var(--color-on-dark); }
.information-heading h2 { font-size: clamp(32px, 3.1vw, 48px); }
.information-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 40px; }
.information-grid > div { padding-top: 24px; border-top: 1px solid var(--color-dark-line); }
.information dt { color: var(--color-on-dark); font-size: 10px; letter-spacing: .13em; margin-bottom: 18px; }
.information dd { margin: 0; font-size: 15px; line-height: 1.9; }
.information dd span { color: var(--color-on-dark); font-size: 12px; }
.location { background: var(--color-white); }
.location-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
.location-copy { padding-right: 64px; }
.location-copy h2 { font-size: clamp(34px, 3.1vw, 48px); margin-top: 28px; }
.location-address { margin-block: 40px 28px; }
.location-address address { margin-top: 14px; font-size: 15px; line-height: 2; }
.location-address .small-note { margin-top: 12px; }
.map-frame { min-width: 0; height: 580px; background: var(--color-bg); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Contact / privacy. */
.contact-heading { text-align: center; margin-bottom: 64px; }
.contact-heading h2 { margin-block: 28px 32px; }
.contact-heading > p:not(.eyebrow):not(.body-copy) { font-size: 10px; letter-spacing: .15em; margin-bottom: 12px; }
.contact-form { max-width: 840px; margin-inline: auto; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 32px; }
.field label { font-size: 13px; }
.optional { color: var(--color-muted); font-size: 11px; margin-left: 8px; }
.field input, .field textarea { display: block; width: 100%; min-width: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0; background: transparent; font-size: 15px; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--color-text); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); font-size: 13px; }
.field textarea { resize: vertical; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; }
.consent-row input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-dark); }
.consent-row label { min-height: 32px; }
.consent-row a { text-decoration: underline; text-underline-offset: 4px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 40px; }
.submit-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 48px; min-height: 56px; max-width: 100%; padding: 16px 24px; border: 1px solid var(--color-dark); background: var(--color-dark); color: var(--color-white); font-size: 10px; letter-spacing: .1em; }
.submit-button span { font-size: 20px; }
.form-status { min-height: 32px; font-size: 14px; margin-top: 24px; }
.privacy-dialog { width: min(680px, calc(100% - 40px)); max-height: 85svh; padding: 0; border: 0; background: var(--color-bg); color: var(--color-text); }
.privacy-dialog::backdrop { background: rgba(0,0,0,.5); }
.privacy-content { padding: clamp(28px, 5vw, 56px); }
.privacy-content h2 { font-size: 32px; margin-block: 16px 24px; }
.privacy-content > p:not(.eyebrow) { font-size: 14px; line-height: 2; margin-bottom: 20px; }
.privacy-content form { margin-top: 32px; }

/* Spacious footer. */
.site-footer { padding-block: 88px 32px; background: var(--color-dark); color: var(--color-white); }
.footer-main { display: grid; grid-template-columns: 2fr 1.6fr 1fr; gap: 48px; padding-bottom: 80px; }
.footer-wordmark { font-size: 54px; letter-spacing: .04em; }
.footer-tagline { margin-top: 24px; color: var(--color-on-dark); font-size: 14px; line-height: 1.8; }
.footer-address { color: var(--color-on-dark); font-size: 13px; line-height: 2.3; }
.social-links { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; font-size: 10px; letter-spacing: .08em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 20px 36px; border-top: 1px solid var(--color-dark-line); padding-top: 28px; font-size: 9px; color: var(--color-on-dark); letter-spacing: .04em; }
.footer-bottom p { margin-right: auto; }

/* Keep a clear right-hand lane for the floating controls, including on mobile.
   The hero's composition and the navigation stay unchanged. */
.section > .shell, .visual-copy, .site-footer > .shell {
  padding-right: max(var(--gutter), calc(var(--floating-right) + var(--floating-size) + 12px));
}
.floating-actions {
  position: fixed;
  right: var(--floating-right);
  bottom: var(--floating-bottom);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: var(--floating-size);
  pointer-events: none;
}
.floating-button {
  display: grid;
  place-items: center;
  flex: 0 0 var(--floating-size);
  width: var(--floating-size);
  height: var(--floating-size);
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-dark);
  pointer-events: auto;
}
.floating-button svg { display: block; width: 23px; height: 23px; }
.floating-button[data-social="line"] svg { width: 28px; height: 28px; }
.line-lettering { stroke: var(--color-bg); }
.floating-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.floating-button.floating-back-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
}
.floating-button.floating-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
@media (hover: hover) {
  .floating-button:hover { background: var(--color-dark); color: var(--color-bg); border-color: var(--color-dark); }
  .floating-button:hover .line-lettering { stroke: var(--color-dark); }
}

/* Desktop 1440+, laptop 1024–1439, tablet 768–1023, mobile <=767. */
@media (min-width: 1440px) {
  :root { --gutter: 80px; --section-space: 160px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  :root { --gutter: 48px; --section-space: 128px; --header-height: 88px; }
  .navigation { gap: 24px; }
  .desktop-links { gap: 20px; }
  .nav-contact { padding-inline: 12px; gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --gutter: 36px; --section-space: 112px; --header-height: 88px; }
  .feature-copy { padding-left: 32px; }
  .feature-layout-reverse .feature-copy { padding-right: 32px; }
  .feature-copy h2 { font-size: 36px; }
  .body-copy { font-size: 14px; }
  .location-copy { padding-right: 32px; }
  .map-frame { height: 500px; }
  .gallery-offset { padding-top: 100px; }
  .information-grid { gap: 40px 24px; }
}
@media (max-width: 1023px) {
  .nav-contact { display: none; }
  html[data-js='ready'] .desktop-links { display: none; }
  .navigation { justify-content: space-between; }
  .menu-toggle:not([hidden]) { display: block; }
  .desktop-links { flex-wrap: wrap; gap: 4px 16px; }
  .information-heading { display: block; }
  .information-heading h2 { margin-top: 24px; }
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (max-width: 767px) {
  :root {
    --gutter: 24px;
    --section-space: 96px;
    --header-height: 80px;
    --floating-size: 44px;
    --floating-right: max(12px, env(safe-area-inset-right));
    --floating-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .wordmark { font-size: 26px; }
  .navigation { gap: 20px; }
  html:not([data-js='ready']) .navigation { flex-wrap: wrap; padding-block: 12px; }
  html:not([data-js='ready']) .desktop-links { width: 100%; }
  .hero { height: 100svh; }
  .hero-content { padding-top: 24px; }
  h1 { font-size: clamp(48px, 12vw, 76px); line-height: 1.4; }
  .hero-content .eyebrow { font-size: 9px; margin-bottom: 28px; letter-spacing: .16em; }
  .hero-subtitle { margin-top: 24px; font-size: 13px; }
  .hero-poster, #hero-video { object-position: 57% center; }
  .hero-bottom { bottom: 28px; }
  .hero-edition { display: none; }
  .intro-layout, .feature-layout, .feature-layout-reverse, .location-layout { grid-template-columns: minmax(0, 1fr); }
  .intro-layout { gap: 40px; }
  .intro h2 { font-size: clamp(36px, 9.3vw, 54px); }
  .editorial-note { font-size: 13px; margin-bottom: 24px; }
  .intro-bottom { margin-top: 32px; gap: 24px; }
  .fine-rule { flex-basis: 32px; }
  .body-copy { font-size: 14px; }
  .feature-layout { gap: 40px; }
  .feature-copy, .feature-layout-reverse .feature-copy { padding: 0; }
  .feature-copy h2 { margin-block: 24px; font-size: 38px; }
  .feature-copy .text-link { margin-top: 24px; }
  .feature-layout-reverse .feature-figure { grid-row: 1; }
  .feature-two { padding-bottom: 48px; }
  figcaption { font-size: 8px; gap: 12px; }
  .full-bleed { height: 85svh; }
  .visual-copy h2 { font-size: clamp(48px, 12vw, 78px); }
  .visual-footnote { font-size: 13px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading .eyebrow { margin-bottom: 24px; }
  .gallery-intro { margin-top: 28px; }
  .editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gallery-item, .gallery-last { grid-column: 1; padding: 0; }
  .gallery-wide .gallery-image { aspect-ratio: 4 / 3; }
  .gallery-last .gallery-image { aspect-ratio: 3 / 2; }
  .information-heading { margin-bottom: 40px; }
  .information-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .information-grid > div { padding-top: 20px; }
  .information dt { margin-bottom: 12px; }
  .location-layout { gap: 48px; }
  .location-copy { padding: 0; }
  .location-address { margin-block: 28px 20px; }
  .map-frame { height: 400px; }
  .contact-heading { text-align: left; margin-bottom: 48px; }
  .contact-heading .editorial-heading { font-size: clamp(44px, 11.7vw, 72px); }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-bottom { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 24px; }
  .submit-button { width: 100%; }
  .site-footer { padding-top: 64px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 48px; }
  .footer-wordmark { font-size: 44px; }
  .social-links { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
  .footer-bottom { gap: 20px 24px; }
  .footer-bottom p { flex-basis: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: 38px; line-height: 1.2; }
  .hero-subtitle { margin-top: 12px; }
  .hero-bottom { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .field input, .field textarea { transition: none; }
  .floating-button.floating-back-top { transition: none; transform: none; }
}
