:root{
  --story-ink:#202526;
  --story-muted:#667071;
  --story-orange:#e75400;
  --story-warm:#f5f3ef;
  --story-soft:#eef1ef;
  --story-line:#d8ddda;
}

.story-page{
  color:var(--story-ink);
  background:#fff;
}

.story-page .active-nav>a::after{
  transform:scaleX(1);
}

.story-hero{
  position:relative;
  height:46vh;
  min-height:360px;
  max-height:480px;
  overflow:hidden;
  background:#dce6ea;
}

.story-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.story-hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.78) 29%,rgba(255,255,255,.18) 56%,rgba(255,255,255,0) 74%);
}

.story-breadcrumb-bar{
  background:#fff;
  border-bottom:1px solid #e6e9e7;
}

.story-breadcrumb{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:11px;
  color:#697273;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.06em;
}

.story-breadcrumb a{
  color:#394243;
  transition:color .2s ease;
}

.story-breadcrumb a:hover{color:var(--story-orange)}
.story-breadcrumb span[aria-current="page"]{color:#202526}

.story-hero-copy{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding-bottom:0;
}

.story-eyebrow,
.story-kicker{
  margin:0;
  color:var(--story-orange);
  font-size:11px;
  font-weight:800;
  letter-spacing:.22em;
}

.story-eyebrow{font-size:18px}

.story-hero-copy h1{
  margin:20px 0 10px;
  font-size:26px;
  line-height:1.08;
  font-weight:400;
  letter-spacing:.1em;
}

.story-hero-en{
  margin:8px 0 0;
  color:#536061;
  font-size:15px;
  line-height:1.8;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.story-scroll{
  position:absolute;
  left:50%;
  bottom:18px;
  z-index:3;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  color:#3b4546;
  font-size:9px;
  letter-spacing:.2em;
}

.story-scroll i{
  width:1px;
  height:24px;
  background:#687273;
}

.story-anchor-nav{
  position:sticky;
  top:0;
  z-index:35;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid #e1e5e3;
  backdrop-filter:blur(12px);
}

.story-page .site-header.is-sticky + main .story-anchor-nav{
  top:78px;
}

.story-anchor-inner{
  min-height:64px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:clamp(28px,6vw,90px);
}

.story-anchor-inner a{
  position:relative;
  padding:20px 0 17px;
  color:#586263;
  font-size:12px;
  letter-spacing:.08em;
}

.story-anchor-inner a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:13px;
  height:1px;
  background:var(--story-orange);
  transform:scaleX(0);
  transform-origin:left;
  transition:.25s;
}

.story-anchor-inner a:hover::after{
  transform:scaleX(1);
}

.story-section{
  padding:130px 0;
}

.story-index{
  margin:0 0 12px;
  color:#aab2b1;
  font-size:10px;
  letter-spacing:.12em;
}

.origin-heading{
  display:grid;
  grid-template-columns:1fr 2.15fr;
  align-items:end;
  padding-bottom:58px;
  border-bottom:1px solid var(--story-line);
}

.origin-heading h2{
  margin:0;
  font-size:clamp(42px,5vw,68px);
  font-weight:400;
  letter-spacing:.08em;
}

.origin-heading h2 span{
  margin-left:18px;
  color:var(--story-orange);
  font-size:18px;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.origin-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:10vw;
  align-items:center;
  padding-top:84px;
}

.origin-quote{
  position:relative;
  padding:42px 0;
}

.origin-quote p{
  margin:0;
  font-size:clamp(28px,3vw,43px);
  line-height:1.85;
  letter-spacing:.08em;
  font-weight:300;
}

.origin-quote span{
  display:block;
  margin-top:32px;
  color:#919a99;
  font-size:14px;
  letter-spacing:.12em;
}

.origin-calligraphy{
  margin:0;
}

.origin-calligraphy img{
  width:100%;
  max-height:500px;
  object-fit:contain;
}

.origin-calligraphy figcaption{
  margin-top:18px;
  color:#7b8585;
  font-size:11px;
  line-height:1.8;
  text-align:center;
  letter-spacing:.06em;
}

.timeline-section{
  background:var(--story-warm);
  padding:28px 0 82px;
}

.timeline-heading{
  margin-bottom:24px;
}

.timeline-heading h2{
  margin:0;
  font-size:30px;
  line-height:1.4;
  font-weight:400;
  letter-spacing:.06em;
}

.timeline-heading>div:last-child>p{
  max-width:620px;
  margin:24px 0 0;
  color:var(--story-muted);
  font-size:13px;
  line-height:2;
}

.timeline-shell{
  width:min(80%,1120px);
  max-width:1120px;
  padding-top:0;
}

.timeline-tabs{
  position:relative;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  margin-bottom:0;
}

.timeline-tabs::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:7px;
  height:1px;
  background:#c4cbc9;
}

.timeline-tab{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  padding:0 8px;
  border:0;
  background:transparent;
  color:#8a9393;
  cursor:pointer;
  transition:.3s;
}

.timeline-tab span{
  font-size:15px;
  letter-spacing:.08em;
}

.timeline-tab i{
  width:15px;
  height:15px;
  border:1px solid #aeb7b5;
  border-radius:50%;
  background:var(--story-warm);
  transition:.3s;
}

.timeline-tab:hover,
.timeline-tab.active{
  color:var(--story-orange);
}

.timeline-tab:hover i,
.timeline-tab.active i{
  border-color:var(--story-orange);
  background:var(--story-orange);
  box-shadow:0 0 0 5px rgba(231,84,0,.13);
}

.timeline-panel{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:stretch;
  height:clamp(460px,27vw,500px);
  min-height:0;
  margin-bottom:34px;
  background:#fff;
  box-shadow:0 22px 55px rgba(25,36,35,.08);
}

.timeline-media{
  position:relative;
  min-height:0;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}

/* Extend the 2023 artwork's own edge colours into its narrow letterbox bands. */
.timeline-media[data-active-year="2023"]{
  background:linear-gradient(to bottom,#2a416f 0%,#2f497a 18%,#10121a 82%,#0c0c10 100%);
}

.timeline-media img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}

.timeline-media img.is-active{
  visibility:visible;
  opacity:1;
}

.timeline-media img[data-year="1966"],
.timeline-media img[data-year="1992"]{
  object-fit:contain;
}

/* Preserve the complete anniversary artwork, including its top/bottom text. */
.timeline-media img[data-year="2023"]{
  object-fit:contain;
}

.timeline-panel.is-changing .timeline-media img,
.timeline-panel.is-changing .timeline-copy>*{
  opacity:.18;
}

.timeline-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:50px clamp(30px,3.6vw,55px);
}

.timeline-copy>*{
  transition:opacity .25s ease;
}

.timeline-year{
  margin:0 0 22px;
  color:var(--story-orange);
  font-size:13px;
  font-weight:800;
  letter-spacing:.18em;
}

.timeline-copy h3,.timeline-copy h2{
  margin:0 0 24px;
  font-size:clamp(24px,2.3vw,34px);
  line-height:1.55;
  font-weight:500;
  letter-spacing:.05em;
}

.timeline-copy>p:not(.timeline-year){
  margin:0;
  color:#5f6969;
  font-size:14px;
  line-height:2;
}

.timeline-more{
  width:max-content;
  display:flex;
  gap:18px;
  align-items:center;
  margin-top:34px;
  padding-bottom:7px;
  border-bottom:1px solid #aab1b0;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
}

.timeline-more span{
  color:var(--story-orange);
}

.living-intro{
  background:#fff;
}

.living-intro-grid{
  display:grid;
  grid-template-columns:2fr 3fr;
  gap:7vw;
  align-items:center;
}

.living-intro-copy h2{
  margin:18px 0 34px;
  font-size:clamp(42px,5vw,68px);
  line-height:1.25;
  font-weight:400;
  letter-spacing:.08em;
}

.living-lead{
  margin:0 0 22px;
  font-size:clamp(21px,2vw,28px)!important;
  line-height:1.9!important;
  color:#293030!important;
}

.living-intro-copy>p:last-child{
  margin:0;
  color:var(--story-muted);
  font-size:13px;
  line-height:2;
}

.living-intro-image{
  margin:0;
  overflow:hidden;
  aspect-ratio:16/10;
  box-shadow:0 22px 34px -18px rgba(35,43,43,.42);
}

.living-intro-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.belief-section{
  padding-top:0;
  background:#fff;
}

.belief-layout{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:9vw;
  padding-top:86px;
  border-top:1px solid var(--story-line);
}

.belief-label span,
.principle-heading>span{
  color:#b6bdbc;
  font-size:11px;
  letter-spacing:.12em;
}

.belief-label p,
.principle-heading>p{
  margin:30px 0 10px;
  color:var(--story-orange);
  font-size:10px;
  font-weight:800;
  letter-spacing:.18em;
}

.belief-label h2,
.principle-heading h2{
  margin:0;
  font-size:clamp(34px,4vw,52px);
  line-height:1.35;
  font-weight:400;
  letter-spacing:.07em;
}

.belief-copy p,
.principle-copy p{
  margin:0 0 24px;
  color:#535d5d;
  font-size:15px;
  line-height:2.15;
}

.belief-copy .belief-lead{
  color:#202727;
  font-size:22px;
  line-height:1.9;
}

.living-principles{
  border-top:1px solid var(--story-line);
}

.principle-block{
  padding:110px 0;
}

.principle-block:nth-child(odd){
  background:var(--story-warm);
}

.principle-block:nth-child(even){
  background:#fff;
}

.principle-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:9vw;
}

.principle-heading small{
  display:block;
  margin-top:18px;
  color:#929a99;
  font-size:11px;
  letter-spacing:.07em;
}

.story-keyword{
  display:inline;
  padding-bottom:2px;
  color:#252c2c;
  font-weight:700;
  border-bottom:1px solid var(--story-orange);
  transition:.2s;
}

.story-keyword:hover{
  color:var(--story-orange);
}

.principle-copy .story-keyword{
  padding-bottom:0;
  border-bottom:0;
}

@media (max-width:960px){
  .story-page .active-nav>a::after{display:none}
  .story-hero{height:48vh;min-height:360px;max-height:460px}
  .story-hero-image{object-position:58% center}
  .story-hero-shade{background:linear-gradient(0deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.74) 42%,rgba(255,255,255,.08) 77%)}
  .story-hero-copy{justify-content:center;padding-bottom:0}
  .story-hero-copy h1{font-size:26px}
  .story-scroll{display:none}
  .story-anchor-nav{top:0}
  .story-page .site-header.is-sticky + main .story-anchor-nav{top:78px}
  .story-section{padding:96px 0}
  .timeline-section{padding:48px 0 68px}
  .origin-heading,.timeline-heading{grid-template-columns:1fr;gap:28px}
  .origin-grid{grid-template-columns:1fr;gap:65px}
  .origin-quote{padding:42px 0}
  .origin-calligraphy{width:min(100%,480px);margin-inline:auto}
  .timeline-tabs{overflow-x:auto;grid-template-columns:repeat(6,minmax(110px,1fr));padding:4px 0 12px}
  .timeline-tabs::before{left:55px;right:55px;bottom:19px}
  .timeline-panel{grid-template-columns:1fr;height:auto;min-height:0}
  .timeline-media{min-height:0;height:378px}
  .timeline-media img{max-height:378px}
  .timeline-copy{height:410px;padding:47px 36px 52px}
  .living-intro-grid{grid-template-columns:1fr;gap:55px}
  .living-intro-image{order:-1}
  .belief-layout,.principle-grid{grid-template-columns:1fr;gap:50px}
}

@media (max-width:640px){
  .story-hero{height:44vh;min-height:330px;max-height:390px}
  .story-breadcrumb{min-height:46px;gap:8px;font-size:10px;overflow-x:auto;white-space:nowrap}
  .story-hero-image{object-position:62% center}
  .story-hero-copy{padding-bottom:0}
  .story-hero-copy h1{font-size:26px}
  .story-hero-en{font-size:11px}
  .story-anchor-inner{justify-content:flex-start;gap:26px;overflow-x:auto}
  .story-anchor-inner a{white-space:nowrap}
  .story-section{padding:76px 0}
  .timeline-section{padding:40px 0 60px}
  .origin-heading{padding-bottom:36px}
  .origin-heading h2{font-size:37px}
  .origin-heading h2 span{display:block;margin:10px 0 0;font-size:18px}
  .origin-grid{padding-top:55px}
  .origin-quote{padding:28px 0}
  .origin-quote p{font-size:24px;line-height:1.8}
  .timeline-heading{margin-bottom:22px}
  .timeline-heading h2{font-size:30px}
  .timeline-media{height:243px}
  .timeline-media img{max-height:243px}
  .timeline-copy{height:455px;padding:38px 25px 43px}
  .timeline-copy h3,.timeline-copy h2{font-size:24px}
  .timeline-copy>p:not(.timeline-year){font-size:13px}
  .living-intro-copy h2{font-size:38px}
  .living-intro-image{aspect-ratio:4/3}
  .belief-layout{padding-top:62px}
  .belief-copy .belief-lead{font-size:19px}
  .belief-copy p,.principle-copy p{font-size:14px;line-height:2}
  .principle-block{padding:78px 0}
  .principle-grid{gap:38px}
}

@media (prefers-reduced-motion:reduce){
  .timeline-media img,.timeline-copy>*,.timeline-tab,.timeline-tab i{transition:none}
}

/* 2026-10-08 client proof: history controls above the panel and tighter belief columns. */
.story-page .timeline-tabs{margin-bottom:34px}
.story-page .timeline-panel{margin-bottom:0}
.story-page .belief-layout,.story-page .principle-grid{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(32px,4vw,64px)}
.story-page .belief-copy .belief-lead{color:#535d5d;font-size:15px;line-height:2.15;font-family:inherit;font-weight:400}
.story-page .belief-label small,.story-page .principle-heading small{display:block;margin-top:18px;color:#929a99;font-size:calc(11px + 2pt);line-height:1.8;letter-spacing:.07em}
.story-page .story-keyword-regular{font-weight:400}
.story-page strong.story-keyword:hover{color:#252c2c}
.story-page :is(#origin,#timeline,#art-of-living,#belief,#craftsmanship,#sustainability){scroll-margin-top:166px}
@media(max-width:960px){
  .story-page .belief-layout,.story-page .principle-grid{grid-template-columns:1fr;gap:26px}
}
@media(max-width:640px){
  .story-page .belief-layout,.story-page .principle-grid{gap:22px}
  .story-page .belief-copy .belief-lead{font-size:14px;line-height:2}
  .story-page .timeline-tabs{margin-bottom:24px}
}

/* 設定區塊：後台時間軸使用 H2 與編輯器，沿用 v199 的版型尺寸。 */
.timeline-mobile-controls { display: none; }
.timeline-more[hidden] { display: none !important; }
.timeline-copy [data-timeline-text] { color: #5f6969; font-size: 14px; line-height: 2; }
.timeline-copy [data-timeline-text] p { margin: 0; }
@media(max-width:640px) {
    .timeline-copy [data-timeline-text] { font-size: 13px; }
}

/* 設定區塊：品牌歷史單排年度，手機使用原生下拉選取。 */
.story-page .timeline-tabs { display: flex; flex-flow: row nowrap; overflow-x: auto; gap: 0; }
.story-page .timeline-tab { flex: 1 0 80px; min-width: 80px; white-space: nowrap; }
.story-page .timeline-panel { height: auto; min-height: 460px; }
.story-page .timeline-copy { height: auto; overflow-wrap: anywhere; }
@media(max-width:960px) {
    .story-page .timeline-panel { min-height: 0; }
    .story-page .timeline-tabs { display: none; }
    .story-page .timeline-mobile-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
    .timeline-mobile-controls select { min-width: 0; flex: 1; min-height: 44px; padding: 10px; font: inherit; background: #fff; border: 1px solid #ccd3d0; }
    .timeline-mobile-controls label { white-space: nowrap; }
}

/* 設定區塊：手機與桌面同樣使用單排年度時間軸；超出寬度可橫向滑動。 */
@media(max-width:960px) {
    .story-page .timeline-tabs { display: flex; flex-flow: row nowrap; overflow-x: auto; padding-bottom: 12px; }
    .story-page .timeline-tabs::before { left: 0; right: 0; bottom: 19px; }
    .story-page .timeline-mobile-controls { display: none; }
}
