@charset "UTF-8";

/* 關於頁變數：集中管理版面間距與局部配色 */
:root { --about-gutter: clamp(24px, 6vw, 112px); --about-accent: #d7b18a; --about-history-paper: #faf9f6; --about-history-ink: #595341; --about-craft-photo-height: clamp(520px, 33vw, 660px); --about-craft-copy-offset: clamp(64px, 5.5vw, 104px); }
@media (max-width: 767px) {
  :root { --about-craft-photo-height: 340px; --about-craft-copy-offset: 200px; }
}

/* 開放式版面：圖片可延伸至頁面兩側，區塊裝飾獨立定位 */
.page-about #container { overflow: visible; }
.about-main { padding-bottom: 0; }
.about-main section[id] { scroll-margin-top: 24px; }
.about-main h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 400; line-height: 1.7; letter-spacing: .09em; }
.about-main p { text-wrap: pretty; }
.about-main .eyebrow { color: var(--color-muted); }
.about-main .text-link { margin-top: 32px; padding-block: 8px; align-items: center; }
.about-main figure img { width: 100%; height: 100%; object-fit: cover; }
.about-main figcaption { font-size: var(--font-note); line-height: 1.8; }
.about-main .about-pending { font-size: var(--font-small); color: var(--color-muted); }
.about-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 24px; margin-inline: var(--about-gutter); padding: 0 0 28px; border-bottom: 1px solid var(--color-line); }
.about-section-heading > p { margin-left: auto; font: 400 var(--font-note)/1.8 var(--font-en); letter-spacing: .16em; }

/* 區塊標籤：沿用茶旅的外觀與腳本，調整為三個項目 */
.about-nav ul { grid-template-columns: repeat(3, minmax(0, 96px)); }

/* 品牌主介紹：左側文字、右側大幅茶湯照片，照片向右延伸 */
.about-story { padding-top: 100px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 7vw; padding: 80px 0 120px var(--about-gutter); }
.about-intro-copy { max-width: 520px; }
.about-intro-copy h3 { margin-bottom: 32px; }
.about-intro-photo { position: relative; align-self: stretch; min-height: 540px; }
.about-intro-photo > img { position: absolute; inset: 0; }
.about-intro-photo figcaption { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 32px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

/* 沿革主構圖：左側大圖、跨界圓形文字、右上標題與右下固定照片 */
.about-history { position: relative; isolation: isolate; min-height: 740px; height: clamp(740px, 51vw, 980px); overflow: hidden; background: var(--about-history-paper); color: var(--about-history-ink); }
.about-history-backdrop { position: absolute; inset: 0 auto 0 0; width: 38.5%; }
.about-history-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; filter: grayscale(1) brightness(.68); }
.about-history-heading { position: absolute; z-index: 1; top: 20%; right: 9%; width: 21%; text-align: center; }
.about-history-heading h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 3vw, 48px); letter-spacing: .16em; }
.about-history-heading > p { margin-top: 12px; font-size: var(--font-small); letter-spacing: .12em; }
.about-history-carousel { position: absolute; z-index: 2; top: 16%; left: 32%; width: 34%; }
.about-history-circle { position: relative; }
.about-history-list { list-style: none; margin: 0; padding: 0; }
.about-history-item { padding: 32px; background: var(--about-history-paper); }
.about-history-year { display: block; color: #878374; font: 400 clamp(32px, 2.6vw, 44px)/1.25 Georgia, "Times New Roman", serif; letter-spacing: .1em; text-align: center; }
.about-history-item h4 { margin: 8px 0 28px; font-size: var(--font-small); font-weight: 400; line-height: 1.8; letter-spacing: .14em; text-align: center; }
.about-history-item p { font-size: var(--font-base); line-height: 2; letter-spacing: .08em; }
.about-history-item .about-pending { margin-top: 16px; font-size: var(--font-note); color: var(--color-muted); text-align: center; }
.about-history-ring { display: none; }

/* 以疊合圖層交叉淡化文字；圓周進度獨立於照片，由同一輪播計時更新 */
.about-history.is-carousel .about-history-circle { display: grid; aspect-ratio: 1; border-radius: 50%; background: var(--about-history-paper); }
.about-history.is-carousel .about-history-list { display: grid; align-items: center; }
.about-history.is-carousel .about-history-item { grid-area: 1 / 1; align-self: center; justify-self: center; width: 72%; padding: 24px 0; background: transparent; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .65s ease, visibility 0s linear .65s; }
.about-history.is-carousel .about-history-item.is-current { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.about-history.is-carousel .about-history-ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.about-history-ring circle { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.about-history-track { stroke: rgba(89, 83, 65, .2); }
.about-history-progress { stroke: var(--about-history-ink); stroke-dasharray: 100; stroke-dashoffset: 100; }
.about-history-controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.about-history-controls[hidden] { display: none; }
.about-history-controls button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: var(--font-large); }
.about-history-controls button:hover { color: var(--color-deep); }
.about-history-controls button:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; }
.about-history-dots { display: flex; }
.about-history-dots button { width: 30px; }
.about-history-dots span { width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 50%; }
.about-history-dots button[aria-current="true"] span { background: currentColor; }
.about-history-toggle { margin-left: 8px; }
.about-history-toggle i { font-size: var(--font-small); }

/* 固定照片：兩張橫幅錯位擺放，輪播不改動圖片或位置 */
.about-history-stills { position: absolute; right: 4%; bottom: 7%; width: 29%; height: 40%; }
.about-history-stills figure { position: absolute; width: 72%; height: 49%; overflow: hidden; }
.about-history-stills figure:first-child { right: 0; top: 0; }
.about-history-stills figure:last-child { left: 0; bottom: 0; }
.about-history-stills img { filter: grayscale(1); }
.about-history-stills figure:last-child img { object-position: center 40%; }

/* 無 JavaScript 時完整列出內容，保持沿革可讀 */
.about-history:not(.is-carousel) { height: auto; min-height: 740px; padding: 64px 8% 64px 42%; }
.about-history:not(.is-carousel) .about-history-heading { position: relative; inset: auto; width: auto; margin-bottom: 32px; }
.about-history:not(.is-carousel) .about-history-carousel { position: relative; inset: auto; width: auto; }
.about-history:not(.is-carousel) .about-history-item + .about-history-item { border-top: 1px solid var(--color-line); }
.about-history:not(.is-carousel) .about-history-stills { display: none; }

/* 紅烏龍起源：圖片貼左，短文向右，交錯銜接前一區 */
.about-oolong { padding-block: 100px; }
.about-oolong-origin { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 7vw; padding: 72px var(--about-gutter) 72px 0; }
.about-landscape { position: relative; min-height: 520px; align-self: stretch; }
.about-landscape > img { position: absolute; inset: 0; }
.about-landscape figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 14px 24px; color: #fff; background: rgba(12, 44, 52, .75); }
.about-oolong-copy { max-width: 520px; }
.about-oolong-copy h3 { margin-bottom: 28px; }
.about-flavor-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 var(--about-gutter); padding-block: 36px; border-block: 1px solid var(--color-line); }
.about-flavor-row > div { padding-inline: 32px; }
.about-flavor-row > div:first-child { padding-left: 0; }
.about-flavor-row > div:last-child { padding-right: 0; }
.about-flavor-row > div + div { border-left: 1px solid var(--color-line); }
.about-flavor-row span { font: 400 var(--font-note)/1.8 var(--font-en); color: var(--color-muted); }
.about-flavor-row h3 { margin: 14px 0; font-size: var(--font-large); }
.about-flavor-row p { font-size: var(--font-small); }

/* 工法錯位：照片固定為寬幅高度，白底文字向下跨出圖緣；下方內容承接於右側 */
.about-craft { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, min(660px, 50%)) minmax(0, 1fr); grid-template-rows: var(--about-craft-photo-height) auto; align-items: start; column-gap: clamp(40px, 8vw, 150px); margin-top: 100px; padding-inline: var(--about-gutter); }
.about-craft-copy { position: relative; z-index: 1; grid-column: 1; grid-row: 1 / 3; align-self: start; width: 100%; max-width: none; margin-top: var(--about-craft-copy-offset); padding: clamp(28px, 3vw, 48px); background: #fff; }
.about-craft-copy::before, .about-craft-copy::after { content: ""; position: absolute; pointer-events: none; border-color: var(--color-ink); }
.about-craft-copy::before { inset: 0 -11px; border-top: 1px solid var(--color-ink); border-bottom: 1px solid var(--color-ink); }
.about-craft-copy::after { inset: -11px 0; border-left: 1px solid var(--color-ink); border-right: 1px solid var(--color-ink); }
.about-craft-copy h3 { margin-bottom: 24px; font-size: clamp(28px, 2.2vw, 38px); text-wrap: balance; }
.about-process { list-style: none; padding: 0; margin: 28px 0 0; }
.about-process li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--color-line); }
.about-process li:last-child { padding-bottom: 0; }
.about-process li > span { font: 400 var(--font-small)/1.8 var(--font-en); color: var(--color-muted); }
.about-process h4 { margin: 0 0 8px; font-size: var(--font-base); font-weight: 500; line-height: 1.8; }
.about-process p { font-size: var(--font-small); line-height: 1.9; color: var(--color-muted); }
.about-craft-photo { position: absolute; z-index: 0; inset: 0 0 auto; height: var(--about-craft-photo-height); }
.about-craft-photo > img { position: absolute; inset: 0; object-position: 72% center; }
.about-craft-photo figcaption { position: absolute; bottom: 16px; right: 24px; padding: 4px 12px; background: rgba(0, 0, 0, .6); color: #fff; }

/* 近年發展：保留既有文字與資料來源 */
.about-development { position: relative; grid-column: 2; grid-row: 2; align-self: start; min-width: 0; max-width: 800px; margin: 80px 0 0; padding-left: 32px; border-left: 1px solid var(--color-ink); }
.about-development h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 24px; }
.about-development .about-source { font-size: var(--font-note); color: var(--color-muted); }
.about-source a { text-decoration: underline; text-underline-offset: 4px; }

/* 風味設計師：以敘事標題帶入人物，姓名保留在內文 */
.about-designer { padding-block: 100px 120px; background: rgba(255, 255, 255, .28); }
.about-designer-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 8vw; padding: 80px var(--about-gutter) 0 0; }
.about-designer-photo { position: relative; min-height: 660px; align-self: stretch; }
.about-designer-photo > img { position: absolute; inset: 0; filter: grayscale(1); }
.about-designer-photo figcaption { position: absolute; bottom: 24px; left: var(--about-gutter); padding: 8px 16px; background: var(--color-paper); }
.about-designer-copy { max-width: 480px; }
.about-designer-copy h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: .09em; margin-bottom: 32px; }
.page-about .about-closing { padding: 100px var(--about-gutter) 0; text-align: center; font-size: var(--font-large); }
.about-closing span { display: block; margin-top: 20px; font: 400 var(--font-note)/1.8 var(--font-en); letter-spacing: .16em; }

/* 寬桌機：文字與照片說明避開側邊標籤，影像仍可延伸至邊界 */
@media (min-width: 1320px) {
  .about-section-heading { margin-right: max(var(--about-gutter), 128px); }
  .about-oolong-origin, .about-designer-layout { padding-right: max(var(--about-gutter), 128px); }
  .about-flavor-row { margin-right: max(var(--about-gutter), 128px); }
  .about-craft { padding-right: max(var(--about-gutter), 128px); }
  .about-intro-photo figcaption { padding-right: 128px; }
  .about-craft-photo figcaption { right: 128px; }
}

/* 平板與矮視窗：標籤置底，預留閱讀與安全區 */
@media (max-width: 1319px), (max-height: 560px) {
  .about-nav.is-enhanced, .about-nav.is-enhanced[data-side="left"] { width: min(288px, 100%); }
  .about-nav.is-enhanced ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-designer { padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
}

/* 手機：圖文回到單欄，保留圓形輪播與固定照片 */
@media (max-width: 767px) {
  .about-story { padding-top: 60px; }
  .about-main h3 { font-size: 28px; }
  .about-section-heading { gap: 8px 14px; padding-bottom: 20px; }
  .about-section-heading h2 { font-size: 28px; }
  .about-section-heading > p { width: 100%; margin-left: 0; }
  .about-intro, .about-oolong-origin, .about-designer-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0 64px; }
  .about-intro-copy, .about-oolong-copy, .about-designer-copy { max-width: none; margin-inline: var(--about-gutter); }
  .page-about .about-intro-photo { min-height: 0; aspect-ratio: 1.1; margin-left: var(--about-gutter); }
  .about-intro-photo figcaption { padding: 20px; }
  .about-oolong { padding-block: 64px; }
  .page-about .about-landscape { min-height: 0; aspect-ratio: 1.2; margin-right: var(--about-gutter); }
  .about-landscape figcaption span { display: none; }
  .about-flavor-row { grid-template-columns: minmax(0, 1fr); padding-block: 0; }
  .about-flavor-row > div, .about-flavor-row > div:first-child, .about-flavor-row > div:last-child { padding: 24px 0; }
  .about-flavor-row > div + div { border-left: 0; border-top: 1px solid var(--color-line); }
  .about-flavor-row h3 { font-size: var(--font-large); margin-block: 8px; }
  /* 手機工法：白底卡跨出照片下緣，後續內容回到同一欄，避免互相覆蓋 */
  .about-craft { grid-template-columns: minmax(0, 1fr); column-gap: 0; margin-top: 64px; padding-inline: var(--about-gutter); }
  .about-craft-copy { padding: 28px 24px; }
  .about-craft-photo figcaption { top: 16px; bottom: auto; }
  .about-craft-copy::before { right: -8px; left: -8px; }
  .about-craft-copy::after { top: -8px; bottom: -8px; }
  .about-process li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .about-development { grid-column: 1; grid-row: 3; margin: 56px 0 0; padding-left: 20px; }
  .about-development h3 { font-size: 26px; }
  .about-designer { padding-top: 64px; }
  .page-about .about-designer-photo { min-height: 0; aspect-ratio: .9; margin-right: var(--about-gutter); }
  .about-designer-copy h3 { font-size: 28px; }
  .page-about .about-closing { padding-top: 0; }
}


/* 風味設計師延伸配圖：手作細節與茶湯前後錯落 */
.about-designer-details { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 9vw; padding: 80px 9vw 0 5vw; }
.about-designer-detail img { aspect-ratio: 1.6; }
.about-main .about-designer-detail img { height: auto; }
.about-designer-detail:first-child img { object-position: 72% center; }
.page-about .about-designer-detail:nth-child(2) { margin-top: 110px; }
.about-designer-detail:nth-child(2) img { aspect-ratio: 1.1; }
.about-designer-detail figcaption { margin-top: 14px; color: var(--color-muted); }
.about-designer-detail figcaption span { display: block; }

/* 浮動裝飾：三個大區塊各留一處，低透明度並避開主要圖文 */
.about-story, .about-oolong, .about-designer { position: relative; isolation: isolate; }
.about-decor { z-index: -1; opacity: .24; pointer-events: none; }
.about-decor-story { top: 36px; right: 3%; width: clamp(240px, 25vw, 420px); transform: rotate(-8deg); }
.about-decor-oolong { top: 0; right: 0; width: clamp(220px, 24vw, 380px); transform: rotate(10deg); }
.about-decor-designer { top: 24px; right: 4%; width: clamp(240px, 26vw, 440px); transform: rotate(-8deg); }

/* 平板沿革：圓形保留足夠閱讀寬度，固定照片移至右下留白 */
@media (min-width: 768px) and (max-width: 1199px) {
  .about-history { height: 900px; }
  .about-history-heading { top: 7%; right: 6%; width: 35%; }
  .about-history-carousel { top: 23%; left: 9%; width: 58%; max-width: 580px; }
  .about-history-stills { right: 4%; bottom: 6%; width: 32%; height: 29%; }
  .about-history-stills figure { width: 88%; }
  .about-history-year { font-size: 40px; }
}

/* 手機沿革：大圖置頂、圓形跨接白底，控制列與兩張固定照片依序呈現 */
@media (max-width: 767px) {
  .about-history { height: auto; min-height: 0; padding: 0 0 48px; }
  .about-history-backdrop { width: 100%; height: 300px; }
  .about-history-heading { position: relative; inset: auto; width: auto; padding: 48px 24px 0; color: #fff; }
  .about-history-heading h3 { font-size: 36px; }
  .about-history-heading > p { margin-top: 6px; }
  .about-history-carousel { position: relative; inset: auto; width: min(480px, calc(100% - 32px)); margin: 36px auto 0; }
  .about-history.is-carousel .about-history-item { width: 72%; padding-block: 24px; }
  .about-history-year { font-size: 32px; }
  .about-history-item h4 { margin-bottom: 16px; font-size: var(--font-small); }
  .about-history-item p { font-size: var(--font-small); line-height: 1.85; }
  .about-history-item .about-pending { margin-top: 8px; }
  .about-history-controls { margin-top: 20px; gap: 0; }
  .about-history-stills { position: relative; inset: auto; width: calc(100% - 48px); height: 210px; margin: 32px auto 0; }
  .about-history-stills figure { width: 62%; height: 62%; }
  .about-history-stills figure:first-child { right: 0; top: 0; }
  .about-history-stills figure:last-child { bottom: 0; left: 0; }
  .about-history:not(.is-carousel) { min-height: 0; padding: 0 0 48px; }
  .about-history:not(.is-carousel) .about-history-carousel { width: calc(100% - 32px); }
  .about-history:not(.is-carousel) .about-history-heading { padding-top: 48px; }
  .about-designer-details { gap: 24px; padding: 0 var(--about-gutter) 64px; grid-template-columns: 1fr 1fr; }
  .page-about .about-designer-detail:nth-child(2) { margin-top: 72px; }
  .about-designer-detail img { aspect-ratio: .85; }
  .about-designer-detail:nth-child(2) img { aspect-ratio: .85; }
  .about-decor { width: 190px; right: 0; top: 16px; opacity: .2; }
}

/* 尊重減少動態：文字直接換頁，輪播預設暫停，可自行操作 */
@media (prefers-reduced-motion: reduce) {
  .about-history.is-carousel .about-history-item { transition: none; }
}
