/* =========================================================
   BRING GOOD — 首頁 v4（v2 簡化版：hero 滿版照片、無游標特效、無滑過效果）
   ========================================================= */

:root {
  --paper: #F1EFEA;
  --paper-2: #E8E5DE;
  --ink: #1C1C1C;
  --ink-2: #4A4845;
  --mute: #8C8882;
  --line: rgba(28, 28, 28, .14);
  --night: #141413;
  --night-line: rgba(241, 239, 234, .16);

  --g: clamp(16px, 2.4vw, 40px);          /* 左右邊距 */
  --col-gap: clamp(12px, 1.6vw, 28px);
  --sec: clamp(120px, 16vw, 260px);       /* 區塊之間留白 */

  --sans: "Inter Tight", "Noto Sans TC", "PingFang TC", sans-serif;
  --tc: "Noto Sans TC", "PingFang TC", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--tc);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; text-align: left; }
ol, ul { list-style: none; }
figure { position: relative; }
::selection { background: var(--ink); color: var(--paper); }

.en { font-family: var(--sans); letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 紙感雜訊 */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-inline: var(--g);
}

/* 小標 [ 關於我們 ] */
.label {
  font-family: var(--tc); font-size: 12px; font-weight: 400; letter-spacing: .2em; color: var(--ink);
}
.label span { color: var(--mute); margin-inline: .35em; }
.label span:first-child { margin-left: 0; }

.sec-title {
  font-family: var(--sans); font-weight: 300; text-transform: uppercase;
  font-size: clamp(56px, 10.5vw, 188px); line-height: .86; letter-spacing: -.045em;
}
.sec-title > span { display: block; overflow: hidden; padding-bottom: .04em; }
.sec-title > span > span { display: block; }

/* 箭頭 */
.arr {
  position: relative; display: inline-block; width: 28px; height: 11px; flex: none;
}
.arr::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1px; background: currentColor; }
.arr::after {
  content: ""; position: absolute; right: 1px; top: 50%; width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg);
}
.arr--lg { width: 44px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 400;
  padding: 14px 0; border-bottom: 1px solid var(--ink); position: relative;
}
.arrow-link span { position: relative; overflow: hidden; display: inline-block; }
/* 膠囊按鈕 */
.pill {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 22px;
  border: 1px solid currentColor; border-radius: 40px; overflow: hidden; font-size: 13px; font-weight: 400; letter-spacing: .12em;
}
/* 圖片遮罩 */
.mask { overflow: hidden; height: 100%; }
.mask img { transform: scale(1.12); will-change: transform; }

.cap { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--ink-2); letter-spacing: .12em; }
.cap span { font-family: var(--sans); color: var(--mute); }

/* =========================================================
   開場
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  display: grid; place-items: center; pointer-events: none;
}
.no-js .loader, .loader.is-skip { display: none; }
.loader__mark { width: 46px; color: var(--ink); }
.loader__mark svg { width: 100%; height: auto; overflow: visible; }
.loader__count {
  position: absolute; right: var(--g); bottom: calc(var(--g) - 10px); overflow: hidden;
  font-family: var(--sans); font-weight: 300; font-size: clamp(64px, 12vw, 180px); line-height: 1; letter-spacing: -.05em;
}
.loader__num { display: block; font-variant-numeric: tabular-nums; }
.loader__label {
  position: absolute; left: var(--g); bottom: var(--g); font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute);
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px; padding-inline: var(--g); color: var(--ink); background: var(--paper);
  transition: transform .8s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo { width: 92px; display: block; }
.header__logo svg { width: 100%; height: auto; display: block; }
.header__nav { display: flex; gap: clamp(24px, 3.4vw, 56px); font-size: 14px; font-weight: 400; letter-spacing: .14em; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.header__area { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; opacity: .75; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding-top: 76px; }
.hero__wm {
  position: relative; margin-inline: var(--g); color: var(--ink);
}
.hero__wm-inner { display: block; overflow: hidden; position: relative; z-index: 60; will-change: transform; }
/* 大字縮進 header 的動畫：飛行中藏 header logo，到位後換手 */
.wm-dock .header__logo { opacity: 0; }
.wm-dock.is-docked .header__logo { opacity: 1; }
.wm-dock.is-docked .hero__wm-inner { visibility: hidden; }
.hero__wm svg { display: block; width: 100%; height: auto; }

.hero__media {
  position: relative; height: 100vh; overflow: hidden; margin-top: clamp(24px, 2.4vw, 40px);
}
.hero__media a { display: block; height: 100%; }
.hero__media img { height: 100%; transform-origin: 50% 40%; will-change: transform; }
.hero__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end;
  padding: 0 var(--g) calc(var(--g) * 1.2); color: #fff; font-size: 14px; letter-spacing: .14em;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent); padding-top: 120px; pointer-events: none;
}
.hero__media figcaption span:first-child { font-family: var(--sans); }
.hero__media figcaption em { font-style: normal; display: block; font-size: 12px; opacity: .7; letter-spacing: .08em; font-family: var(--sans); }
.hero__media figcaption span:last-child { justify-self: end; font-size: 12px; opacity: .8; }

/* =========================================================
   About
   ========================================================= */
.about { position: relative; padding-top: var(--sec); padding-bottom: calc(var(--sec) * .4); row-gap: 0; }
.about .label { grid-column: 1 / span 3; padding-top: 1.1em; }
.about__statement {
  grid-column: 4 / span 9; font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 3.5vw, 58px); line-height: 1.62; letter-spacing: .08em; text-wrap: pretty;
}
.about__statement .ch { opacity: .14; transition: none; }
.no-js .about__statement .ch { opacity: 1; }
.about__foot {
  grid-column: 4 / span 9; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-top: clamp(48px, 5vw, 80px);
}
.about__en { max-width: 34em; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.about__img { overflow: hidden; }
.about__img--a { grid-column: 2 / span 5; grid-row: 4; margin-top: clamp(80px, 9vw, 160px); aspect-ratio: 4 / 3; }
.about__img--b { grid-column: 9 / span 3; grid-row: 4; margin-top: clamp(200px, 20vw, 360px); aspect-ratio: 3 / 4; }
.about__img img { transform: scale(1.15); }

/* =========================================================
   Detail 橫向畫廊
   ========================================================= */
.detail { background: var(--paper); }
.detail__pin { height: 100vh; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(76px + clamp(24px, 5vh, 64px)); }
.detail__label { padding-inline: var(--g); margin-bottom: clamp(24px, 3vw, 48px); }
.detail__track {
  display: flex; align-items: center; gap: clamp(28px, 3.6vw, 64px);
  padding-inline: var(--g) 12vw; will-change: transform;
}
.slide { flex: none; }
.slide__img { height: min(62vh, 640px); overflow: hidden; }
.slide__img img { height: 100%; }
.slide--l .slide__img { aspect-ratio: 4 / 3; }
.slide--p .slide__img { aspect-ratio: 3 / 4; }
.slide a { display: block; }
.slide__img { position: relative; }
.slide figcaption {
  display: flex; align-items: baseline; gap: 14px; margin-top: 16px; font-size: 12px; letter-spacing: .16em; color: var(--ink-2);
}
.slide figcaption .en { color: var(--mute); }
.slide__name { font-family: var(--serif); font-size: clamp(16px, 1.3vw, 20px); letter-spacing: .12em; color: var(--ink); }
.slide__meta { margin-left: auto; color: var(--mute); }
/* 佔位作品：名稱變淡，照片角落標「照片暫放」 */
.slide--tbd .slide__name { font-family: var(--tc); font-size: 13px; color: var(--mute); }
.slide__tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; font-size: 11px; letter-spacing: .16em;
  background: var(--paper); color: var(--ink-2);
}
.detail__bar { position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--g) + 4px); height: 1px; background: var(--line); }
.detail__progress { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   Process
   ========================================================= */
.process { padding-top: var(--sec); padding-bottom: var(--sec); align-items: start; }
.process__side { grid-column: 1 / span 5; position: sticky; top: 120px; }
.process__side .sec-title { margin: 28px 0 40px; font-size: clamp(56px, 7.6vw, 132px); }
.process__lead { max-width: 20em; font-size: 15px; color: var(--ink-2); margin-bottom: 28px; }
.steps { grid-column: 7 / span 6; border-top: 1px solid var(--ink); margin-top: 8px; }
.step { border-bottom: 1px solid var(--line); }
.step__head {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto; align-items: center;
  padding: clamp(24px, 2.6vw, 40px) 0;
}
.step__no { font-size: 13px; color: var(--mute); }
.step__name { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2vw, 30px); letter-spacing: .12em; }
.step__plus { position: relative; width: 14px; height: 14px; }
.step__plus::before, .step__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transition: transform .6s var(--ease); }
.step__plus::after { transform: rotate(90deg); }
.step.is-open .step__plus::after { transform: rotate(0); }
.step__body { height: 0; overflow: hidden; }
.step__body p { padding: 0 0 36px 72px; max-width: 34em; color: var(--ink-2); font-size: 15px; }
.no-js .step__body { height: auto; }

/* =========================================================
   標語（服務流程下方）
   ========================================================= */
.tagline-wrap { padding-bottom: var(--sec); }
.tagline { align-items: end; }
.tagline__sub { grid-column: 1 / span 2; width: clamp(90px, 9vw, 130px); color: var(--ink); }
.tagline__sub svg { width: 100%; height: auto; display: block; }
.tagline__tag {
  grid-column: 4 / span 4; font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2.3vw, 38px); line-height: 1.5; letter-spacing: .12em;
}
.tagline__img { grid-column: 9 / span 3; aspect-ratio: 3 / 4; overflow: hidden; }
.tagline__img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Contact + Footer（深色）
   ========================================================= */
.contact { background: var(--night); color: var(--paper); position: relative; overflow: hidden; }
.contact .label { color: var(--paper); }
.contact .label span { color: rgba(241,239,234,.45); }
.contact__inner { padding-top: calc(var(--sec) * .5); padding-bottom: clamp(50px, 5vw, 90px); align-items: end; }
.contact .label { grid-column: 1 / -1; }
.contact__title {
  grid-column: 1 / -1; margin-top: clamp(20px, 2.5vw, 40px); white-space: nowrap; display: flex; flex-wrap: wrap; column-gap: .28em;
  font-weight: 300; font-size: clamp(44px, 6.4vw, 120px); line-height: .9; letter-spacing: -.05em;
}
.contact__title > span { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title > span > span { display: block; }
.contact__title-2 { color: rgba(241,239,234,.42); }
.contact__cta { grid-column: 8 / -1; grid-row: 3; justify-self: end; }
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 22px; height: 64px; padding: 0 34px 0 38px;
  border-radius: 64px; background: var(--paper); color: var(--night); overflow: hidden;
  font-size: 16px; font-weight: 400; letter-spacing: .2em;
}
.cta > * { position: relative; z-index: 1; }
.contact__lead { grid-column: 1 / span 7; grid-row: 3; margin-top: clamp(24px, 2.5vw, 40px); color: rgba(241,239,234,.72); font-size: 15px; }


.channels {
  grid-column: 1 / -1; margin-top: clamp(48px, 5vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line);
}
.channels li + li { border-left: 1px solid var(--night-line); }
.channels a {
  position: relative; display: flex; flex-direction: column; gap: 34px; padding: 28px 24px 30px; height: 100%; overflow: hidden;
}
.channels a > * { position: relative; z-index: 1; }
.channels .en:first-child { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.channels b { font-weight: 400; font-size: clamp(15px, 1.25vw, 19px); letter-spacing: .08em; word-break: break-all; }
.channels .arr { position: absolute; right: 24px; top: 32px; transform: rotate(-45deg); }

.footer {
  padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--night-line); margin-inline: var(--g); padding-inline: 0;
  align-items: end; font-size: 13px; color: rgba(241,239,234,.6);
}
.footer__mark { grid-column: 1 / span 2; width: 28px; color: var(--paper); }
.footer__mark svg { width: 100%; height: auto; display: block; }
.footer__co { grid-column: 3 / span 4; }
.footer__co .en { font-size: 12px; letter-spacing: .08em; }
.footer__nav { grid-column: 7 / span 3; display: flex; gap: 28px; }
.footer__copy { grid-column: 10 / span 2; font-size: 12px; }
.footer__top { grid-column: 12; justify-self: end; font-size: 12px; white-space: nowrap; }

/* 初始隱藏（有 JS 才隱藏，避免 JS 掛掉內容消失） */
.js [data-reveal] { opacity: 0; }
.js.no-motion [data-reveal] { opacity: 1; }

/* =========================================================
   RWD
   ========================================================= */
@media (max-width: 1024px) {
  .header__area { display: none; }
  .tagline__tag { grid-column: 4 / span 5; }
  .tagline__img { grid-column: 9 / span 4; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .channels li:nth-child(3) { border-left: 0; }
  .channels li:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .header { height: 62px; grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .header__logo { width: 76px; }
  .pill { height: 36px; padding: 0 16px; font-size: 12px; }
  .hero { padding-top: 62px; }

  .tagline { row-gap: 28px; }
  .tagline__sub { grid-column: 1 / span 4; width: 92px; }
  .tagline__tag { grid-column: 1 / -1; font-size: 24px; }
  .tagline__img { grid-column: 5 / -1; }
  .hero__media { height: 78vh; }
  .hero__media figcaption { grid-template-columns: auto 1fr; gap: 16px; font-size: 13px; }
  .hero__media figcaption span:last-child { display: none; }

  .about .label, .about__statement, .about__foot { grid-column: 1 / -1; }
  .about__statement { margin-top: 28px; font-size: 24px; }
  .about__foot { grid-template-columns: 1fr; gap: 24px; }
  .about__img--a { grid-column: 1 / span 7; margin-top: 64px; }
  .about__img--b { grid-column: 8 / span 5; margin-top: 140px; }

  .detail__pin { height: auto; display: block; padding: var(--sec) 0 calc(var(--sec) * .7); }
  .detail__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 56px; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .detail__track::-webkit-scrollbar { display: none; }
  .slide { scroll-snap-align: start; }
  .slide__img { height: 52vh; max-height: 420px; }
  .detail__bar { display: none; }

  .process__side, .steps { grid-column: 1 / -1; position: static; }
  .steps { margin-top: 56px; }
  .step__head { grid-template-columns: 52px 1fr auto; }
  .step__body p { padding-left: 52px; }

  .contact__title { grid-column: 1 / -1; }
  .contact__lead { grid-column: 1 / -1; grid-row: auto; }
  .contact__title { font-size: 13vw; }
  .contact__cta { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 28px; }
  .cta { height: 56px; }
  .contact__title-2 { padding-left: 0; }
  .channels { grid-template-columns: 1fr; }
  .channels li + li { border-left: 0; border-top: 1px solid var(--night-line); }
  .channels a { gap: 14px; padding: 22px 0; }
  .channels .arr { right: 0; }

  .footer { row-gap: 24px; }
  .footer__mark { grid-column: 1 / span 2; }
  .footer__co { grid-column: 3 / -1; }
  .footer__nav { grid-column: 1 / -1; }
  .footer__copy { grid-column: 1 / span 6; }
  .footer__top { grid-column: 7 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about__statement .ch { opacity: 1; }
}
