/* 品牌敘事 /about/：僅此頁引用；與 site-bundle 並用 — 編輯式敘事／精品紙感（加強版） */

.page-about {
  --about-paper: #faf7f0;
  --about-paper-deep: #f0e9df;
  --about-paper-bright: #fdfcfa;
  --about-ink: #1a1614;
  --about-ink-soft: #3a3531;
  --about-muted: #6a635b;
  --about-accent: #6d5420;
  --about-accent-bright: #9a7630;
  --about-accent-line: rgba(109, 84, 32, 0.28);
  --about-accent-line-strong: rgba(109, 84, 32, 0.42);
  --about-glow: rgba(255, 252, 247, 0.92);
  --about-frame: rgba(28, 24, 22, 0.055);
  --about-frame-inset: rgba(255, 255, 255, 0.55);
}

.page-about {
  background: linear-gradient(180deg, #fafafa 0%, var(--knockout-warm, #f4ebe3) 22%, var(--about-paper) 100%);
  color: var(--about-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-about ::selection {
  background: rgba(100, 116, 139, 0.18);
  color: var(--about-ink);
}

/* 章節節奏 */
.page-about main.about-story {
  counter-reset: about-chapter;
}

.page-about main.about-story > .about-chapter {
  counter-increment: about-chapter;
  position: relative;
}

/* 章節頂端：雙細線＋中心點 */
.page-about main.about-story > .about-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(14rem, 56vw);
  height: 5px;
  background:
    linear-gradient(90deg, transparent, var(--about-accent-line-strong), transparent) center 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--about-accent-line), transparent) center 4px / 100% 1px no-repeat;
  opacity: 0.95;
}

/* 首章頂線改由「投遞分割帶」承接，避免雙重分隔 */
.page-about main.about-story > .about-chapter:first-of-type::before {
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.page-about .about-band--turn::before {
  background:
    linear-gradient(90deg, transparent, rgba(232, 213, 168, 0.35), transparent) center 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(232, 213, 168, 0.2), transparent) center 4px / 100% 1px no-repeat;
}

.page-about .about-chapter .section-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about .about-chapter .section-label::before {
  content: counter(about-chapter, decimal-leading-zero);
  font-family: var(--font-display), var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.48em;
  margin-bottom: 0.55rem;
  opacity: 0.38;
}

.page-about .about-chapter:not(.theme-dark) .section-label::before {
  color: var(--about-accent-bright);
}

.page-about .about-band--turn .section-label::before {
  color: #f3e6c8;
  opacity: 0.5;
}

/* —— 開場扉頁 —— */
.page-about .about-hero--editorial {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(2.75rem, 9vw, 5rem));
  padding-bottom: clamp(3.25rem, 11vw, 6rem);
  /* 底部收束與波浪帶同色階銜接，避免亮白橫帶壓在線條上 */
  background:
    radial-gradient(90% 55% at 50% -6%, rgba(255, 255, 255, 0.88) 0%, transparent 48%),
    radial-gradient(65% 45% at 14% 22%, rgba(241, 245, 249, 0.55) 0%, transparent 42%),
    radial-gradient(55% 40% at 90% 18%, rgba(254, 252, 248, 0.5) 0%, transparent 40%),
    linear-gradient(168deg, #fafbfc 0%, var(--knockout-warm, #f4ebe3) 32%, #eee9e2 72%, #ebe6df 100%);
  border-bottom: none;
}

.page-about .about-hero--editorial::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(36vh, 280px);
  pointer-events: none;
  z-index: 0;
  /* 暖灰＋極淡金褐霧，與全頁 about 色票一致；不壓到最底以免與波浪 SVG 頂色打架 */
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 52%,
    rgba(109, 84, 32, 0.05) 72%,
    rgba(58, 53, 49, 0.06) 88%,
    transparent 100%
  );
  opacity: 0.95;
}

.page-about .about-hero--editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/*
 * 首屏 ↔ 第一章：波浪即分割線。
 * SVG 內上／下兩塊填色沿同一條曲線相接（非矩形帶再疊線圖），與首屏底、panel-muted 頂同色。
 */
.page-about .about-wave-split {
  display: block;
  width: 100%;
  height: clamp(3.5rem, 9.5vw, 5.35rem);
  margin: 0;
  margin-top: -1px;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.page-about .about-wave-split__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* 與 SVG 底同色，消 subpixel 縫 */
.page-about main.about-story > .about-wave-split + .about-chapter {
  margin-top: -1px;
}

/* 首屏內文區：編輯式居中，無信封／卡片框 — 配色用全頁 about 語彙 */
.page-about .about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0 clamp(1.2rem, 4vw, 1.85rem);
  text-align: center;
}

.page-about .about-hero__eyebrow {
  color: var(--about-muted);
  letter-spacing: 0.22em;
  margin-bottom: 0;
  opacity: 0.92;
}

.page-about .about-hero__eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 0.9rem auto 1.2rem;
  background: linear-gradient(90deg, transparent, var(--about-accent-line-strong), transparent);
  opacity: 0.75;
}

.page-about .about-hero__title {
  font-family: var(--font-display), var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 14ch;
  margin: 0 auto 1.35rem;
  color: var(--about-ink);
}

.page-about .about-hero__lede {
  margin: 0 auto;
  max-width: 32rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--about-ink-soft);
  font-size: clamp(1.0625rem, 0.97rem + 0.38vw, 1.1875rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--about-accent-line);
}

.page-about .about-hero__lede strong {
  color: var(--about-ink);
  font-weight: 600;
}

/* —— 章節小標 —— */
.page-about .about-chapter__title {
  font-family: var(--font-display), var(--font-sans);
  font-size: clamp(1.5rem, 1.02rem + 1.45vw, 2.1875rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--about-ink);
}

.page-about .theme-dark .about-chapter__title {
  color: #faf7f0;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.page-about .about-chapter:not(.theme-dark) .section-label {
  color: var(--about-accent);
  letter-spacing: 0.2em;
  opacity: 0.95;
}

.page-about .panel-muted {
  background: linear-gradient(180deg, #faf6ee 0%, var(--about-paper-deep) 50%, #eae2d6 100%);
}

.page-about .about-chapter--paper {
  background: linear-gradient(180deg, var(--about-paper-bright) 0%, #f8f5ec 52%, #efe8dd 100%);
}

/* —— 內文：首段略大、層次更清楚 —— */
.page-about .about-prose {
  max-width: 35rem;
  margin: 0 auto;
}

.page-about .about-prose > p:first-of-type {
  font-size: clamp(1.055rem, 0.98rem + 0.28vw, 1.2rem);
  line-height: 1.88;
  color: var(--about-ink);
  letter-spacing: 0.01em;
}

.page-about .about-prose p {
  font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.125rem);
  line-height: 1.86;
  color: var(--about-ink-soft);
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}

.page-about .about-prose p:last-child {
  margin-bottom: 0;
}

.page-about .theme-dark .about-prose > p:first-of-type {
  color: #f5f2eb;
}

.page-about .theme-dark .about-prose p {
  color: #e6e2d8;
}

/* 轉折帶：夜色＋極淡微粒 */
.page-about .about-band--turn {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(85% 50% at 50% 0%, rgba(125, 211, 252, 0.1) 0%, transparent 52%),
    radial-gradient(100% 80% at 80% 100%, rgba(15, 118, 110, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #06090f 0%, #122535 34%, #0a1018 100%);
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.page-about .about-band--turn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page-about .about-band--turn .wrap {
  position: relative;
  z-index: 1;
}

.page-about .about-band--turn .section-label {
  color: #e8d5a8;
  letter-spacing: 0.22em;
  opacity: 1;
}

.page-about .about-band--turn .about-prose strong {
  color: #fffefb;
  font-weight: 600;
}

/* —— 插圖：畫框／卡紙層次 —— */
.page-about .about-figure {
  position: relative;
  margin: clamp(2.15rem, 5vw, 3.5rem) auto 0;
  max-width: 39rem;
  padding: clamp(0.55rem, 1.6vw, 0.85rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 241, 232, 0.95) 48%, rgba(236, 229, 216, 0.98) 100%);
  border: 1px solid var(--about-frame);
  box-shadow:
    0 0 0 1px var(--about-frame-inset) inset,
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 28px 70px rgba(28, 24, 22, 0.07),
    0 10px 28px rgba(28, 24, 22, 0.05);
  overflow: hidden;
  transition: box-shadow 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), transform 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (hover: hover) and (pointer: fine) {
  .page-about .about-figure:hover {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.75) inset,
      0 2px 0 rgba(255, 255, 255, 0.55) inset,
      0 36px 88px rgba(28, 24, 22, 0.09),
      0 14px 36px rgba(28, 24, 22, 0.06);
    transform: translateY(-2px);
  }
}

.page-about .about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.page-about .about-figure__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.page-about .theme-dark .about-figure {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 80px rgba(0, 0, 0, 0.48);
}

.page-about .theme-dark .about-figure__img {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.page-about .about-band--turn .about-figure__img {
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.52);
}

@media (prefers-reduced-motion: reduce) {
  .page-about .about-figure {
    transition: none;
  }

  .page-about .about-figure:hover {
    transform: none;
  }
}

/* —— CTA —— */
.page-about .about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: clamp(2.15rem, 5vw, 3.25rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid rgba(109, 84, 32, 0.1);
}

.page-about .about-cta-row .btn {
  border-radius: 999px;
  padding: 0.72rem 1.55rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.page-about .about-cta-row .btn--primary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(0, 113, 227, 0.28);
}

.page-about .about-cta-row .btn--secondary {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(28, 24, 22, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.page-about .about-cta-row .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(28, 24, 22, 0.12);
}

/* —— 免責小字 —— */
.page-about .about-fineprint {
  max-width: 36rem;
  margin: clamp(2.35rem, 5vw, 3.35rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(109, 84, 32, 0.08);
  font-size: var(--text-xs);
  line-height: 1.72;
  color: #857d73;
  text-align: center;
}

.page-about .theme-dark .about-fineprint {
  color: #94a3b8;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* 頁尾 */
.page-about .hub-footer {
  border-top: 1px solid rgba(28, 24, 22, 0.065);
  background: linear-gradient(180deg, var(--about-paper-deep) 0%, #e8dfd3 45%, #e2d8cc 100%);
}

.page-about .hub-footer .footer-identity__brand {
  letter-spacing: 0.04em;
}
