:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --move: 280ms;
  --tap: 120ms;
  --bg: #ffffff;
  --ink: #323232;
  --muted: #767676;
  --tile: #f5f5f5;
  --line: #e3f0ea;
  --mint: #e3f0ea;
  --serif: "Noto Serif TC", "Songti TC", "Songti SC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "PingFang HK", "Helvetica Neue", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif TC", serif;
  --nav: 72px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; color: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--nav);
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 3px solid var(--mint);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  justify-self: start;
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  object-fit: contain;
}

.mark-sm { width: 18px; height: 18px; }

.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-type span {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.desk-nav {
  display: none;
  gap: 28px;
}

.desk-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.icon-link, .top-wa {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.top-wa {
  display: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  align-items: center;
  transition: transform var(--tap) var(--ease);
}

.menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.menu-lines {
  position: relative;
  width: 18px;
  height: 14px;
  flex: none;
}

.menu-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform var(--move) var(--ease), opacity var(--move) var(--ease);
}

.menu-lines span:nth-child(1) { top: 1px; }
.menu-lines span:nth-child(2) { top: 6.5px; }
.menu-lines span:nth-child(3) { top: 12px; }

.menu-btn[aria-expanded="true"] .menu-lines span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-lines span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-lines span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--nav) 0 0 0;
  z-index: 19;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 12px var(--pad) 40px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--move) var(--ease), transform var(--move) var(--ease);
}

.menu.is-open {
  opacity: 1;
  transform: none;
}

.menu[hidden] { display: none; }

.menu a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 48px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

section { scroll-margin-top: calc(var(--nav) + 12px); }

.hero {
  display: grid;
  min-height: calc(100svh - var(--nav));
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #323232;
  height: min(42svh, 360px);
}

.hero-media video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media video { z-index: 1; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(50, 50, 50, 0.28);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px var(--pad) calc(36px + 84px + env(safe-area-inset-bottom));
}

.kicker, .slash {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

h1, blockquote { font-weight: 600; }

h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.25;
}

.hero-lead {
  max-width: 28em;
  margin: 16px 0 0;
  color: var(--muted);
}

.orb {
  margin-top: 22px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: transform var(--tap) var(--ease);
}

.orb:active,
.top-wa:active,
.dock a:active {
  transform: scale(0.97);
}

.wrap {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.band { padding: 48px 0 8px; }

.band-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.visit h2[data-field] { white-space: pre-line; }

.band-head h1, .band-head h2, .split h2, .silver h2, .stones h2, .visit h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
}

.band-head p, .silver p, .stones p, .visit p {
  margin: 0;
  color: var(--muted);
}

.repair-film {
  position: relative;
  margin: 0 0 36px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: #323232;
}

.repair-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #323232;
}

.repair-film::before,
.repair-film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.repair-film::before {
  background: linear-gradient(
    to bottom,
    rgba(50, 50, 50, 0.28) 0%,
    rgba(50, 50, 50, 0.28) calc(100% - 64px),
    transparent 100%
  );
}

.repair-film::after {
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 64px), transparent 100%);
}

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 18px;
  align-items: start;
}

.products.roll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.products.roll::-webkit-scrollbar { display: none; }

.products.roll .product {
  flex: 0 0 clamp(220px, 42vw, 300px);
  scroll-snap-align: start;
}

.products.roll.is-rolling {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
}

.roll-track {
  display: flex;
  width: max-content;
  animation: roll 36s linear infinite;
}

.products.roll.is-rolling .product { margin-right: 16px; }

.products.roll.is-rolling:hover .roll-track,
.products.roll.is-rolling:focus-within .roll-track,
.products.roll.is-paused .roll-track {
  animation-play-state: paused;
}

@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.product h3 {
  margin: 14px 2px 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.product p {
  margin: 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 4.8em;
}

.shot {
  appearance: none;
  border: 1px solid #eceeee;
  padding: 0;
  width: 100%;
  background: #fff;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}

.shot:active { transform: scale(0.985); }

.shot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.split {
  display: grid;
  margin-top: 48px;
}

.split-copy {
  padding: 36px var(--pad) 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  max-width: 420px;
}

.services li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.split-media {
  background: var(--bg);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
}

.split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #eceeee;
  background: #fff;
}

.quote {
  padding: 56px var(--pad);
  text-align: center;
}

.quote .kicker { text-align: center; }

blockquote {
  margin: 0 auto;
  max-width: 16em;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.5;
}

.principles { padding-bottom: 24px; }

.principles ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.principles li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.principles span {
  display: block;
  margin-bottom: 8px;
  color: #a3a3a3;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.principles h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.principles p {
  margin: 0;
  max-width: 42em;
  color: var(--muted);
}

.silver {
  display: grid;
  margin-top: 56px;
  background: var(--mint);
}

.silver-media { background: var(--tile); min-height: 240px; }

.silver-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.silver-copy {
  padding: 40px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-more {
  margin: 28px 0 0;
  text-align: center;
}

.works-page {
  padding: 48px 0 72px;
}

.works-page .band-head {
  margin-bottom: 28px;
}

.text-link {
  margin-top: 18px;
  font-size: 15px;
  text-underline-offset: 4px;
}

.stones { padding: 72px 0; }

.stones-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stones .orb { margin-top: 20px; }

.visit { padding-bottom: 48px; }

.visit-grid { display: grid; gap: 20px; }

.visit-film { margin: 0; }

.visit-switch {
  display: flex;
  gap: 18px;
  margin: 0 0 12px;
}

.visit-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 4px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.visit-switch button.is-on {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.visit-film video {
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  background: #323232;
}

.route-map {
  background: var(--tile);
  border-radius: 18px;
  overflow: hidden;
}

.route-map img { display: block; width: 100%; height: auto; }

.visit-film figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.visit-meta { margin-top: 16px; }

.visit-meta a { text-underline-offset: 4px; }

.visit-meta p + p { margin-top: 8px; }

.foot {
  padding: 28px 0 108px;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
}

.foot-grid { display: grid; gap: 14px; }

.logo-line {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot p { margin: 0; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.social a {
  color: var(--ink);
  text-decoration: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social .fb { stroke-width: 2.05; }

.credit {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(50, 50, 50, 0.45);
}

.credit a {
  color: inherit;
  text-decoration: none;
}

.credit a:hover { text-decoration: underline; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.dock a {
  min-height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid #cccccc;
  transition: transform var(--tap) var(--ease);
}

.dock-wa {
  background: #1e7a45;
  color: white;
  border-color: #1e7a45;
}

.lightbox {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #323232;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity var(--move) var(--ease),
    transform var(--move) var(--ease),
    overlay var(--move) allow-discrete,
    display var(--move) allow-discrete;
}

.lightbox[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: scale(0.98);
  }
}

.lightbox::backdrop {
  background: rgba(16, 16, 16, 0);
  transition:
    background var(--move) var(--ease),
    overlay var(--move) allow-discrete,
    display var(--move) allow-discrete;
}

.lightbox[open]::backdrop { background: rgba(16, 16, 16, 0.72); }

.lightbox img {
  width: 100%;
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  min-height: 44px;
}

@media (min-width: 860px) {
  .desk-nav { display: flex; }
  .menu-btn { display: none; }
  .top-wa { display: inline-flex; }
  .icon-link { display: none; }

  .hero {
    grid-template-columns: 1fr 1fr;
    height: calc(100svh - var(--nav));
    min-height: calc(100svh - var(--nav));
  }

  .hero-media { height: 100%; min-height: 0; }

  .hero-copy { padding: 64px 6vw 64px 64px; }

  h1 { font-size: clamp(46px, 4.4vw, 64px); }

  .orb { width: 92px; height: 92px; margin-top: 28px; }

  .band { padding: 88px 0 16px; }

  .products { gap: 48px 28px; }

  .products.roll { gap: 28px; }
  .products.roll.is-rolling .product { margin-right: 28px; }

  .products-4 { grid-template-columns: repeat(4, 1fr); }

  .split {
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    align-items: stretch;
  }

  .split-copy { padding: 64px 6vw; }
  .split-media { min-height: 100%; padding: 56px; }

  .quote { padding: 96px var(--pad); }

  .principles ol { grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }

  .silver { grid-template-columns: 1fr 1fr; min-height: 480px; align-items: stretch; }
  .silver-copy { padding: 56px 6vw; }
  .silver-media, .silver-media img { min-height: 100%; }

  .stones-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .stones .orb { margin-top: 0; }

  .visit-grid {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: center;
    gap: 56px;
  }

  .visit-film video { max-height: 520px; }

  .foot { padding-bottom: 36px; }
  .foot-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .credit { justify-self: end; }

  .dock { display: none; }
}

@media (max-width: 859px) {
  .top { grid-template-columns: 1fr auto; }
  .desk-nav, .icon-link { display: none; }
  .products-4 {
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .products .reveal:nth-child(2) { transition-delay: 50ms; }
.js .products .reveal:nth-child(3) { transition-delay: 100ms; }
.js .products .reveal:nth-child(4) { transition-delay: 150ms; }
.js .principles .reveal:nth-child(2) { transition-delay: 60ms; }
.js .principles .reveal:nth-child(3) { transition-delay: 120ms; }

@supports (animation-timeline: view()) {
  .motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 34%;
  }

  .motion .products .reveal:nth-child(2),
  .motion .principles .reveal:nth-child(2) {
    animation-range: entry 8% cover 42%;
  }

  .motion .products .reveal:nth-child(3),
  .motion .principles .reveal:nth-child(3) {
    animation-range: entry 14% cover 48%;
  }

  .motion .products .reveal:nth-child(4) {
    animation-range: entry 20% cover 54%;
  }

  .motion .products.roll .reveal {
    animation: none;
  }

  .motion .hero-media video,
  .motion .hero-fallback {
    animation: hero-drift linear both;
    animation-timeline: view();
    animation-range: cover 20% exit 90%;
  }

  .motion .hero-copy {
    animation: hero-leave linear both;
    animation-timeline: view();
    animation-range: exit 25% exit 100%;
  }

  .motion .repair-film video,
  .motion .split-media img,
  .motion .silver-media img,
  .motion .visit-film video,
  .motion .products:not(.roll) .shot img {
    animation: media-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 46%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06) translateY(-3%); }
}

@keyframes hero-leave {
  from { opacity: 1; transform: none; }
  to { opacity: 0.4; transform: translateY(-18px); }
}

@keyframes media-settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .menu,
  .lightbox,
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .products.roll {
    overflow-x: auto;
  }
}
