/* 鋅展股份有限公司
   換背景：覆蓋 images/ 同名檔，或改下面的 --img-* 變數。
   圖片載入失敗時會落到 --metal 的 CSS 金屬紋。文字上的暗色遮罩是 --scrim。 */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-condensed-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-tc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/noto-sans-tc-500.woff2") format("woff2");
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.78);
  --hair: rgba(255, 255, 255, 0.38);
  --nav-h: 72px;
  --font-en: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "WenQuanYi Micro Hei", sans-serif;
  --scrim: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.12) 34%,
    rgba(0, 0, 0, 0.22) 52%,
    rgba(0, 0, 0, 0.74) 80%,
    rgba(0, 0, 0, 0.86) 100%
  );
  --metal: repeating-linear-gradient(
    90deg,
    #070809 0px,
    #121416 1px,
    #0b0c0e 2px,
    #181b1e 3px,
    #0c0d0f 5px
  );
  --img-hero: url("images/hero.jpg");
  --img-process: url("images/process.jpg");
  --img-color: url("images/color.jpg");
  --img-lines: url("images/lines.jpg");
  --img-parts: url("images/parts.jpg");
  --img-about: url("images/about.jpg");
  --img-contact: url("images/contact.jpg");
  color-scheme: dark;
}

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

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-zh);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

::selection {
  background: #fff;
  color: #000;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.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;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  padding: 0 28px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

body.scrolled .nav,
body.past-hero .nav {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.brand,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 1.15rem;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 22px;
  height: 1px;
  background: #fff;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before { top: -7px; }
.bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  background-color: #000;
  background-image: var(--scrim), var(--bg-image), var(--metal);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 6px 100%;
  background-position: center, center, center;
}

#top { --bg-image: var(--img-hero); }
#process { --bg-image: var(--img-process); }
#color { --bg-image: var(--img-color); }
#lines { --bg-image: var(--img-lines); }
#parts { --bg-image: var(--img-parts); }
#about { --bg-image: var(--img-about); }
#contact { --bg-image: var(--img-contact); }

.inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: calc(var(--nav-h) + 24px) 28px 36px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.01em;
  max-width: 100%;
}

h2 {
  font-size: clamp(3.05rem, 7vw, 6.15rem);
}

.hero-kicker,
.hero-title,
.zh-title {
  display: block;
}

.hero-kicker {
  font-size: clamp(5.4rem, 22vw, 12.4rem);
  letter-spacing: -0.025em;
  line-height: 0.8;
}

.hero-title {
  margin-top: 0.08em;
  font-size: clamp(1.65rem, 4.6vw, 3.35rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
}

.zh-title {
  margin-top: 18px;
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: none;
}

.zh {
  margin: 12px 0 0;
  max-width: 40em;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 761px) {
  .br-sm { display: none; }
  .split h2 { min-height: 1.78em; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  cursor: pointer;
}

.hero-meta {
  margin: 18px 0 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
}

.hero-meta a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}

.scroll-cue {
  position: absolute;
  right: 36px;
  bottom: 36px;
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, #fff, transparent);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  width: min(1120px, 100%);
  margin-top: 8px;
}

.split article {
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  padding-top: 18px;
}

.color-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(1160px, 100%);
}

@media (min-width: 761px) {
  .color-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    grid-template-areas:
      "copy swatches"
      "gallery gallery";
    gap: 14px 40px;
    align-items: end;
  }

  .color-copy { grid-area: copy; }
  .finish-gallery { grid-area: gallery; }
  .color-stack .swatches { grid-area: swatches; }
}

.swatches,
.also,
.manifest,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 36%);
  pointer-events: none;
}

.swatch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.swatch-zh,
.swatch-en {
  position: relative;
  z-index: 1;
}

.swatch-zh {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.swatch-en {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  opacity: 0.92;
}

.swatch-bw {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f5f8fa 0%, #c5d5e0 40%, #8ea4b4 72%, #e7eef3 100%);
}

.swatch-rainbow {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #eef3f6 0%, #d9f0e4 16%, #f4e6a4 34%, #f0c4d4 52%, #c9d2f4 70%, #e7f2ea 100%);
}

.swatch-black {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #4a4a4a 0%, #161616 38%, #050505 100%);
}

.swatch-gold {
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 3px),
    linear-gradient(155deg, #f8e7a6 0%, #e2c15a 32%, #9a7424 68%, #f1d48a 100%);
}

.also {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}

.also li {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
}

.manifest {
  width: min(720px, 100%);
  margin-top: 26px;
  border-top: 1px solid var(--hair);
  counter-reset: part;
}

.manifest li {
  counter-increment: part;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0.16em;
}

.manifest li::before {
  content: counter(part, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.78em;
  color: var(--muted);
  min-width: 2.2ch;
}

.contact-list {
  width: min(640px, 100%);
  margin-top: 22px;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 0;
  min-height: 48px;
  border-top: 1px solid var(--hair);
  color: #fff;
  text-decoration: none;
}

.contact-list li:last-child a {
  border-bottom: 1px solid var(--hair);
}

.k,
.hint {
  font-weight: 500;
  color: var(--muted);
}

.k {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.hint {
  margin-top: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.v {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}


.fine {
  margin: 20px 0 0;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 0.95rem;
}

.line-sticky {
  display: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

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

@media (hover: hover) {
  .btn:hover {
    background: #fff;
    color: #000;
  }

  .nav-links a:hover {
    opacity: 0.62;
  }

  .contact-list a:hover .v {
    border-bottom: 1px solid #fff;
  }
}

.btn:active {
  background: #fff;
  color: #000;
}

@media (max-width: 760px) {
  .nav {
    padding: 0 16px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: calc(var(--nav-h) + 24px) 28px 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: auto;
    transition: opacity 0.35s ease;
  }

  .js .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .js .nav-links a {
    width: 100%;
    font-size: 1.85rem;
    letter-spacing: 0.16em;
    padding: 14px 0;
    border-bottom: 1px solid var(--hair);
  }

  .no-js .nav {
    height: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    background: #000;
  }

  .no-js .nav-links {
    width: 100%;
    margin: 0 0 8px;
    flex-wrap: wrap;
  }

  body.nav-open .nav {
    background: #000;
  }

  body.nav-open .line-sticky {
    display: none;
  }

  .inner {
    justify-content: flex-end;
    padding: calc(var(--nav-h) + 20px) 20px calc(112px + env(safe-area-inset-bottom));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .swatch {
    min-height: 118px;
  }

  .line-sticky {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    background: #000;
  }
}

@media (min-width: 761px) {
  .nav {
    padding: 0 48px;
  }

  .inner {
    padding: calc(var(--nav-h) + 28px) 64px 64px;
  }

  html {
    scroll-snap-type: y mandatory;
  }
}

@media (max-width: 380px) {
  .hero-title {
    letter-spacing: 0.1em;
  }

  .zh-title {
    letter-spacing: 0.12em;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .nav-links {
    transition: none;
  }
}

.hero-logo {
  display: block;
  width: clamp(12rem, 55vw, 26rem);
  height: auto;
  margin: 0 0 1.2rem;
}
.brand span { letter-spacing: 0.12em; font-size: 0.85em; opacity: 0.85; }

@media (max-width: 760px) {
  .js .line-sticky { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
  .js body.past-hero .line-sticky { opacity: 1; transform: none; pointer-events: auto; }
}

/* Finish photo gallery — floating cutouts, uniform square cells */
#color {
  --part-size: 160px;
}

#color .inner {
  justify-content: flex-start;
}

.finish-gallery {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}

.finish-label {
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finish-zh {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.finish-en {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

.finish-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.tilt-scene {
  flex: 0 0 var(--part-size);
  width: var(--part-size);
  height: var(--part-size);
  perspective: 800px;
  perspective-origin: 50% 50%;
}

.tilt-card {
  --rx: 4deg;
  --ry: -7deg;
  --mx: 22%;
  --my: 14%;
  --ty: 0px;
  --part: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: none;
  border: 0;
  box-shadow: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty)) translateZ(12px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.72)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  will-change: transform;
}

.tilt-photo,
.tilt-sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.tilt-photo {
  display: block;
  -webkit-user-drag: none;
}

.tilt-sheen {
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.12) 28%,
      transparent 54%
    ),
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.26) 0%,
      transparent 34%,
      rgba(255, 255, 255, 0.08) 58%,
      transparent 74%
    );
  mix-blend-mode: soft-light;
  -webkit-mask-image: var(--part);
  mask-image: var(--part);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* iOS Safari: mask-image + mix-blend-mode becomes blocky noise. Keep sheen on fine-pointer desktops only. */
@media (hover: none), (pointer: coarse) {
  .tilt-sheen {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .tilt-card {
    transition: transform 0.45s ease, filter 0.45s ease;
  }

  .tilt-card:hover,
  .tilt-card.is-tilting {
    transition: transform 0.12s ease-out, filter 0.12s ease-out;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  }
}

@media (max-width: 760px) {
  #color {
    --part-size: 100%;
  }

  #color h2 {
    font-size: clamp(2rem, 9.5vw, 2.35rem);
  }

  #color .zh {
    margin-top: 6px;
  }

  #color .also {
    margin-top: 8px;
  }

  #color .also li {
    min-height: 34px;
  }

  .finish-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    overflow: visible;
    margin-inline: 0;
    padding: 2px 0 8px;
  }

  .finish-group {
    min-width: 0;
  }

  .finish-label {
    margin-bottom: 4px;
  }

  .tilt-scene {
    flex: none;
    width: 84%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .tilt-sheen {
    display: none;
  }

  #color .swatches {
    grid-template-columns: 1fr 1fr;
  }

  #color .swatch {
    min-height: 84px;
  }
}

@media (min-width: 761px) {
  #color .inner {
    padding-top: calc(var(--nav-h) + 12px);
    padding-bottom: 36px;
  }

  #color h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  }

  #color .eyebrow {
    margin-bottom: 8px;
  }

  #color .zh {
    margin-top: 6px;
  }

  #color .also {
    margin-top: 10px;
  }

  #color .swatch {
    min-height: 76px;
  }

  .finish-label {
    margin-bottom: 6px;
  }

  .tilt-scene {
    width: var(--part-size);
    height: var(--part-size);
  }
}

@media (min-width: 761px) and (max-height: 900px) {
  .color-stack {
    gap: 16px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card,
  .tilt-card:hover,
  .tilt-card.is-tilting,
  .tilt-card.is-in {
    --rx: 0deg;
    --ry: 0deg;
    --ty: 0px;
    transform: none;
    transition: none;
    animation: none;
    will-change: auto;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6));
  }

  .tilt-sheen {
    display: none;
  }
}
.hero-lines { margin-top: .35em; opacity: .8; font-size: .95em; }
