/* =========================================================
   BRING GOOD — 首頁 v3
   版型參考：素材/風格參考/503a5c…jpg（首頁）、風格參考.jpg（大圖與聯絡區）
   ========================================================= */

:root {
  --paper: #EDEBE6;
  --paper-2: #E2DFD8;
  --ink: #1C1C1C;
  --ink-2: #55524E;
  --mute: #8F8B85;
  --line: rgba(28, 28, 28, .2);

  --g: clamp(20px, 4.4vw, 76px);          /* 左右邊距 */
  --col-gap: clamp(12px, 1.8vw, 28px);
  --sec: clamp(88px, 11vw, 176px);        /* 區塊上下留白 */
  --head-h: 76px;

  --en: "Jost", "Noto Sans TC", "PingFang TC", sans-serif;
  --tc: "Noto Sans TC", "PingFang TC", sans-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%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--tc);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
ol, ul { list-style: none; }
em { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
[id] { scroll-margin-top: 0; }

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

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

/* ---------- 共用小元件 ---------- */

/* 髮絲分隔線 */
.rule { border: 0; height: 1px; background: var(--line); margin-inline: var(--g); }

/* 區塊大標：細的英文大字＋小中文 */
.title { font-weight: 300; line-height: 1; display: flex; align-items: baseline; gap: 18px; }
.title .en { font-size: clamp(34px, 3.5vw, 54px); text-transform: uppercase; letter-spacing: .02em; }
.title small { font-size: 12px; font-weight: 400; letter-spacing: .3em; color: var(--mute); }

/* 文字連結底線：滑過時從左畫出 */
.link { position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* 01 —— 06 計數 */
.count { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; }
.count i { width: 28px; height: 1px; background: currentColor; }

/* 細箭頭 */
.arrows { display: flex; gap: 28px; }
.arrow { width: 44px; height: 32px; display: flex; align-items: center; }
.arrow i, .more i, .channels i {
  position: relative; display: block; width: 40px; height: 1px; background: currentColor;
  transition: width .5s var(--ease), opacity .3s;
}
.arrow i::after, .more i::after, .channels i::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.arrow--prev { transform: scaleX(-1); }
.arrow:hover i { width: 44px; }
.arrow[disabled] { opacity: .3; cursor: default; }
.arrow[disabled]:hover i { width: 40px; }

/* 「看更多」連結 */
.more { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 400; }
.more i { width: 32px; }
.more:hover i { width: 48px; }

/* ---------- 進場動態 ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] {
  opacity: 1; transform: none; clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-io) var(--d, 0s);
}
.js [data-reveal="clip"].is-in { clip-path: inset(0); }

/* ---------- 頁首 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  transition: transform .6s var(--ease), background-color .4s;
}
.header.is-solid { background: var(--paper); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; align-items: center; font-size: 12px; font-weight: 400; letter-spacing: .22em; }
.header__logo { grid-column: 1 / 4; justify-self: start; }
.header__logo img { height: 32px; width: auto; }
.header__nav { grid-column: 4 / 8; display: flex; gap: clamp(20px, 2.6vw, 44px); }
.header__cta { grid-column: 8 / 11; justify-self: start; }
.header__ig { grid-column: 11 / 13; justify-self: end; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.header__menu { display: none; }

.menu { display: none; }

/* ---------- 開場 ---------- */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--head-h) + 24px);
  padding-bottom: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero__thumb {
  grid-column: 1 / 3; grid-row: 1; position: relative;
  margin-left: calc(-1 * var(--g)); aspect-ratio: 1; align-self: center; margin-top: 14vh;
  overflow: hidden;
}
.hero__body {
  grid-column: 4 / 8; grid-row: 1; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 4vh;
}
.hero__title { margin-top: auto; }
.hero__title img { width: clamp(220px, 24vw, 400px); height: auto; }
.hero__info { margin-top: clamp(40px, 6vh, 72px); }
.hero__desc { margin-top: 20px; font-size: 13px; color: var(--ink-2); line-height: 2; }
.hero__arrows { margin-top: auto; padding-top: 48px; }

.hero__main { grid-column: 8 / 13; grid-row: 1; position: relative; }
.hero__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--head-h) - 130px); width: 100%; overflow: hidden; background: var(--paper-2); }
.hero__main figcaption {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px;
  font-size: 12px; color: var(--ink-2);
}
.hero__main figcaption .en { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
.hero__cap { margin-left: 14px; color: var(--mute); }

/* 輪播：新的一張從右邊揭開，蓋在上一張上面 */
.hslide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 100%); transform: scale(1.08);
}
.hslide.is-prev { clip-path: inset(0); transform: none; z-index: 1; }
.hslide.is-active {
  clip-path: inset(0); transform: none; z-index: 2;
  transition: clip-path 1.2s var(--ease-io), transform 1.8s var(--ease);
}
.no-js .hslide:first-child { clip-path: none; transform: none; }

/* ---------- 區塊共用 ---------- */
.sec > .rule { margin-bottom: clamp(40px, 4.4vw, 68px); }
.sec { padding-bottom: var(--sec); }

/* ---------- 關於 ---------- */
.about .title { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 60px); }
.about__lead { grid-column: 1 / 5; font-size: clamp(16px, 1.35vw, 19px); font-weight: 400; line-height: 1.8; letter-spacing: .1em; }
.about__text { grid-column: 6 / 12; max-width: 44em; color: var(--ink-2); }
.about__text p { font-size: 15px; line-height: 2.1; }
.about__text .about__en { margin-top: 18px; font-size: 14px; line-height: 1.8; letter-spacing: .03em; color: var(--mute); }
.about__text .more { margin-top: 36px; color: var(--ink); }

/* ---------- 空間作品 ---------- */
.works__head { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 60px); }
.works__list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(48px, 5vw, 80px);
}
.card > a { display: block; }
.card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card > a:hover .card__img img { transform: scale(1.04); }
.card__no { margin-top: 16px; font-size: 11px; color: var(--mute); letter-spacing: .14em; line-height: 1; }
.card__name { margin-top: 10px; font-size: 14px; font-weight: 400; line-height: 1.6; }
.card__name span { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.card__meta { margin-top: 8px; font-size: 12px; color: var(--mute); }
.card--tbd .card__name { color: var(--mute); }
.card--tbd .card__name span { border-bottom-style: dashed; }
/* 作品進場：由下往上浮出，比其他區塊慢、位移大，同一排一起出現 */
.js .card[data-reveal] {
  transform: translateY(90px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
}
.js .card[data-reveal].is-in { transform: none; }
.card__tag {
  position: absolute; left: 12px; top: 12px; padding: 2px 10px;
  font-size: 11px; background: var(--paper); color: var(--ink-2);
}

/* ---------- 標語＋大圖 ---------- */
.feature__head { align-items: start; margin-bottom: clamp(36px, 4.4vw, 68px); }
.feature__tag { grid-column: 1 / 7; font-size: clamp(26px, 3.3vw, 50px); font-weight: 300; line-height: 1.5; letter-spacing: .12em; }
.feature__mid { grid-column: 8 / 11; }
.feature__side { grid-column: 11 / 13; justify-self: end; text-align: right; }
.feature__mid, .feature__side { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; line-height: 1.8; color: var(--ink-2); padding-top: 1.2em; }
.feature__img { margin-inline: var(--g); aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.feature__img figure { height: 100%; overflow: hidden; }
.feature__img img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }

/* ---------- 服務流程 ---------- */
.process__side { grid-column: 1 / 5; }
.process__lead { margin-top: clamp(28px, 3vw, 44px); color: var(--ink-2); font-size: 14px; line-height: 2.1; }
.process__side .more { margin-top: 32px; }
.steps {
  grid-column: 6 / 13; margin-top: 12px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 88px); row-gap: clamp(44px, 4.6vw, 72px);
}
.step__no { display: block; font-size: clamp(40px, 3.9vw, 60px); font-weight: 300; color: #B4B0A9; letter-spacing: -.01em; line-height: .9; }
.step__name { margin-top: clamp(20px, 2vw, 30px); font-size: 15px; font-weight: 500; letter-spacing: .1em; line-height: 1.6; }
.step__text { margin-top: 8px; max-width: 26em; font-size: 13px; color: var(--ink-2); line-height: 2; text-wrap: pretty; }

/* ---------- 聯絡 ---------- */
.contact { background: var(--paper-2); }
.contact__talk { padding: clamp(96px, 11vw, 168px) var(--g) clamp(80px, 9vw, 136px); text-align: center; }
.contact__en { font-size: 16px; text-transform: uppercase; letter-spacing: .22em; }
.contact__lead { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.btn {
  display: inline-block; margin-top: 36px; white-space: nowrap;
  padding: 13px 64px 13px calc(64px + .3em);   /* 左邊多 .3em，抵銷最後一個字後面的字距，文字才會真正置中 */
  border: 1px solid var(--ink); font-size: 13px; font-weight: 400; line-height: 26px; letter-spacing: .3em;
  /* 黑底用背景漸層畫，由下往上填滿、移開時往上收。不用另一層縮放，結尾才不會跳一下 */
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 0 / 100% 0;
  transition: color .5s var(--ease), background-size .5s var(--ease);
}
.btn:hover { color: var(--paper); background-position: 50% 100%; background-size: 100% 100%; }

/* 聯絡管道：平常沒有底色，滑過時才浮出淺色色塊 */
.channels { padding-bottom: clamp(64px, 7vw, 104px); row-gap: var(--col-gap); }
.channels li { grid-column: span 3; }
.channels a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(100px, 8.4vw, 124px); padding: 18px 22px 16px;
  background: var(--paper);
}
.channels span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
.channels b { display: block; font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }
.channels b.en { letter-spacing: .03em; }
.channels i {   /* 箭頭平常藏起來，滑過時往右滑進來 */
  position: absolute; right: 22px; bottom: 30px; width: 22px;   /* 和下方黑字同一排 */
  opacity: 0; transform: translateX(-10px);
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
@media (hover: hover) {
  .channels a:hover i { opacity: 1; transform: none; }
}
/* 觸控裝置沒有滑過，箭頭不顯示 */
@media (hover: none) {
  .channels i { display: none; }
}

.footer__main {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding: clamp(44px, 5vw, 76px) var(--g) clamp(36px, 4vw, 56px);
}
.footer__co { display: flex; gap: 18px; align-items: flex-start; font-size: 12px; line-height: 1.9; color: var(--ink-2); }
.footer__co img { width: 14px; height: auto; margin-top: 3px; }
.footer__co .en { letter-spacing: .04em; color: var(--mute); }
.footer__mail {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.9; color: var(--ink-2); text-align: right;
  transition: opacity .4s;
}
.footer__mail:hover { opacity: .55; }
.footer__base {
  display: flex; justify-content: space-between; padding: 0 var(--g) 28px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mute);
}

/* ---------- 平板以下 ---------- */
@media (max-width: 900px) {
  :root { --head-h: 60px; }

  .header__nav, .header__cta, .header__ig { display: none; }
  .header__logo { grid-column: 1 / 7; }
  .header__logo img { height: 28px; }
  /* 選單按鈕：兩條線，打開時轉成叉叉 */
  .header__menu { display: block; grid-column: 7 / 13; justify-self: end; position: relative; width: 44px; height: 44px; margin-right: -10px; }
  .header__menu i::before, .header__menu i::after {
    content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: currentColor;
    transition: transform .4s var(--ease);
  }
  .header__menu i::before { transform: translateY(-4px); }
  .header__menu i::after { transform: translateY(4px); }
  .header.is-open .header__menu i::before { transform: rotate(45deg); }
  .header.is-open .header__menu i::after { transform: rotate(-45deg); }
  .header.is-open { background: transparent; transform: none; }

  .menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 45; padding: calc(var(--head-h) + 40px) var(--g) 32px;
    background: var(--paper); visibility: hidden; opacity: 0;
    transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
  .menu__nav a {
    display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line);
    font-size: 24px; letter-spacing: .14em;
  }
  .menu__nav a .en { font-size: 11px; color: var(--mute); }
  .menu__foot { font-size: 12px; color: var(--mute); letter-spacing: .04em; }

  .hero { min-height: 0; padding-top: calc(var(--head-h) + 28px); row-gap: 32px; }
  .hero__thumb { display: none; }
  .hero__body { display: contents; }   /* 拆開讓箭頭可以排到照片下面 */
  .hero__title { grid-column: 1 / -1; grid-row: 1; margin-top: 0; }
  .hero__title img { width: min(62vw, 300px); }
  .hero__info { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .hero__main { grid-column: 1 / -1; grid-row: 3; }
  .hero__arrows { grid-column: 1 / -1; grid-row: 4; margin-top: 0; padding-top: 0; }
  .hero__frame { max-height: none; }

  .about__lead { grid-column: 1 / -1; }
  .about__text { grid-column: 1 / -1; margin-top: 24px; }

  .works__head { grid-row: 1; }
  .works__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature__tag { grid-column: 1 / -1; }
  .feature__mid { grid-column: 1 / 7; }
  .feature__side { grid-column: 7 / 13; }
  .feature__img { aspect-ratio: 4 / 3; }

  .process__side { grid-column: 1 / -1; }
  .steps { grid-column: 1 / -1; margin-top: 48px; }

  .channels li { grid-column: span 6; }
  .channels a { min-height: 108px; }
  .footer__main { flex-direction: column; align-items: flex-start; }
  .footer__mail { align-self: flex-end; }
}

@media (max-width: 520px) {
  .works__list { grid-template-columns: 1fr; }
  .channels li { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; grid-auto-rows: 1fr; row-gap: 32px; }   /* 每步一樣高，編號等距 */
  .step { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .step__no { grid-row: 1 / 3; font-size: 40px; }
  .step__name { margin-top: 0; }
}

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hslide, .hslide.is-active { transition: none; }
  .card__img img { transition: none; }
  .js .card[data-reveal] { transform: none; transition: none; }
}
