/* ================================================================
   pages/about.css — About page only.
   Page rhythm:
     PAGE HEADER (eyebrow + h1 + deck) · accent: TRA 區間車 traveling above
       → SECTION 2 Why we exist (long-form prose + stamped textbook)
       → SECTION 3 What Taiwan Mandarin actually is (5-medallion feature row)
       → SECTION 4 Who we built this for (4 welcome cards)
       → SECTION 5 How we teach across levels (3 audience photo cards)
       → END CTA (deep navy panel, asymmetric layout, TRA ticket pinned right)
   ----------------------------------------------------------------
   Layout primitives (.section, .page-header base, .breadcrumb, .kicker,
   .deck, .page-header h1) live in components.css. This file only carries
   about-specific overrides + about-only components.
   Taiwan element budget: 區間車 (header) · TRA 車票 (CTA).
   ================================================================ */


/* ============ PAGE HEADER · about-specific overrides only ============ */

.about-header {
  background:
    /* cool teal radial bottom-left — differentiates from lessons' warm coral */
    radial-gradient(ellipse at bottom left, rgba(185,212,181,0.12), transparent 60%),
    linear-gradient(180deg, var(--cream-deep) 0%, #ecd6b5 100%);
}
.about-header .header-text { max-width: 820px; }


/* ============ TRA 區間車 (header accent) ============
   Travels slowly left → right across the very top of the header.
   Different motion + position from the lessons 茄芷袋 (which sways top-centre). */

.tw-train .train-shell        { fill: var(--cream); stroke: var(--ink); stroke-width: 1.4; }
.tw-train .train-roof         { fill: var(--cream-deep); stroke: var(--ink); stroke-width: 1; }
.tw-train .train-stripe       { fill: var(--accent-2); }                              /* iconic TRA teal band */
.tw-train .train-window       { fill: var(--accent-2-deep); stroke: var(--ink); stroke-width: 0.7; }
.tw-train .train-door         { fill: var(--cream-deep); stroke: var(--ink); stroke-width: 0.9; }
.tw-train .train-wheel        { fill: var(--ink); }
.tw-train .train-panto        { stroke: var(--ink); stroke-width: 1.1; fill: none; }
.tw-train .train-cab-window   { fill: var(--accent-2-deep); stroke: var(--ink); stroke-width: 0.7; }
.tw-train .train-coupler      { stroke: var(--ink); stroke-width: 1.8; }
.tw-train .train-track-rail   { stroke: var(--ink); stroke-width: 1.2; }
.tw-train .train-track-tie    { stroke: var(--ink); opacity: 0.45; }
.tw-train .train-light        { fill: var(--accent); }

.page-header .tw-train {
  position: absolute;
  top: 6px;
  left: 0;
  width: 240px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  animation: train-travel 38s linear infinite;
  z-index: 2;
}
@keyframes train-travel {
  0%   { transform: translateX(-260px); }
  100% { transform: translateX(100vw); }
}
@media (max-width: 880px) {
  .page-header .tw-train { width: 180px; opacity: 0.7; animation-duration: 28s; }
}
@media (prefers-reduced-motion: reduce) {
  .page-header .tw-train { animation: none; left: 8%; }
}


/* ============ SECTION 2 · WHY WE EXIST · 2-column with stamped textbook ============ */

.about-why .section-h2,
.about-features .section-h2,
.about-welcome .section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 12px 0 24px;
}

.about-why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-why-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-why-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.about-why-text p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 20px;
}
.about-why-text p:last-child { margin-bottom: 0; }


/* ============ Stamped textbook (Section 2 art) ============ */

.tw-textbook {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 12px 28px rgba(42,36,56,0.15));
}

.tw-textbook .textbook-shadow { fill: rgba(42,36,56,0.18); }
.tw-textbook .textbook-cover  { fill: var(--cream-deep); stroke: var(--ink); stroke-width: 1.5; }
.tw-textbook .textbook-spine  { fill: var(--accent-deep); }
.tw-textbook .textbook-rule   { stroke: var(--ink); stroke-width: 1.2; opacity: 0.7; }

.tw-textbook .textbook-han {
  font-family: var(--font-han);
  font-size: 26px;
  font-weight: 900;
  fill: var(--ink);
  letter-spacing: 0.06em;
}
.tw-textbook .textbook-en {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  fill: var(--accent-deep);
  letter-spacing: 0.22em;
}
.tw-textbook .textbook-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  fill: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* Stamps overlay */
.tw-textbook .textbook-stamp .stamp-ring {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 2;
}
.tw-textbook .textbook-stamp .stamp-ring-inner { stroke-width: 0.8; opacity: 0.7; }
.tw-textbook .textbook-stamp .stamp-han {
  font-family: var(--font-han);
  font-size: 12px;
  font-weight: 900;
  fill: var(--accent-deep);
  letter-spacing: 0.04em;
}


/* ============ SECTION 3 · 5-FEATURE ICON STRIP ============ */

.about-features { max-width: var(--container-max); }

.features-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 36px 0 28px;
}
@media (max-width: 960px) { .features-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-strip { grid-template-columns: 1fr; } }

.feature {
  text-align: center;
  padding: 18px 12px;
}

.feature-medallion {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base) var(--ease-soft);
  box-shadow: 0 4px 12px rgba(42,36,56,0.08);
}
.feature:hover .feature-medallion { transform: translateY(-3px) rotate(-3deg); }

.medallion-han {
  font-family: var(--font-han);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 2px;
}
.medallion-pinyin {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}
.feature p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Rotate Breathing Room pastels across 5 medallions: apricot · peach · sage · lavender · sky */
.features-strip .feature:nth-child(1) .feature-medallion { background: rgba(255,179,138,0.30); border-color: var(--accent-deep); }
.features-strip .feature:nth-child(2) .feature-medallion { background: rgba(255,212,184,0.60); border-color: #c97955; }
.features-strip .feature:nth-child(3) .feature-medallion { background: rgba(185,212,181,0.55); border-color: var(--accent-2-deep); }
.features-strip .feature:nth-child(4) .feature-medallion { background: rgba(213,207,251,0.60); border-color: #7c70c9; }
.features-strip .feature:nth-child(5) .feature-medallion { background: rgba(190,224,240,0.60); border-color: #5f93b0; }
.features-strip .feature:nth-child(1) .medallion-han { color: var(--accent-deep); }
.features-strip .feature:nth-child(2) .medallion-han { color: #c97955; }
.features-strip .feature:nth-child(3) .medallion-han { color: var(--accent-2-deep); }
.features-strip .feature:nth-child(4) .medallion-han { color: #5a4ea3; }
.features-strip .feature:nth-child(5) .medallion-han { color: #3d758f; }

.features-summary {
  max-width: 780px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}


/* ============ SECTION 4 · WELCOME · 2x2 stamp cards ============ */

.welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0 0;
}
@media (max-width: 720px) { .welcome-grid { grid-template-columns: 1fr; } }

.welcome-card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  padding: 28px 28px;
  border-left: 4px solid var(--accent-deep);
  transition: transform var(--t-base) var(--ease-soft);
}
.welcome-card:hover { transform: translateY(-3px); }
/* Rotate Breathing Room pastels across 4 welcome cards: apricot · sage · lavender · rose */
.welcome-card:nth-child(1) { border-left-color: var(--accent-deep); background: linear-gradient(110deg, var(--cream) 0%, rgba(255,179,138,0.10) 100%); }
.welcome-card:nth-child(2) { border-left-color: var(--accent-2-deep); background: linear-gradient(110deg, var(--cream) 0%, rgba(185,212,181,0.18) 100%); }
.welcome-card:nth-child(3) { border-left-color: #7c70c9;             background: linear-gradient(110deg, var(--cream) 0%, rgba(213,207,251,0.20) 100%); }
.welcome-card:nth-child(4) { border-left-color: var(--rose);          background: linear-gradient(110deg, var(--cream) 0%, rgba(255,175,168,0.16) 100%); }

.welcome-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink);
}
.welcome-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}


/* ============ SECTION 5 · AUDIENCE GRID (3 photo cards) ============ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0 28px;
}
@media (max-width: 880px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-soft);
  display: flex;
  flex-direction: column;
}
.audience-card:hover { transform: translateY(-4px); }

.audience-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}
.audience-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease-soft);
}
.audience-card:hover .audience-photo { transform: scale(1.04); }

.audience-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42,36,56,0.42) 100%);
}

.audience-marker {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cream);
  background: var(--accent-deep);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(42,36,56,0.25);
  z-index: 1;
}
.audience-card:nth-child(2) .audience-marker { background: var(--accent-2-deep); }
.audience-card:nth-child(3) .audience-marker { background: #5a4ea3; }   /* lavender-deep (was plum-ink, swap for variety) */

.audience-body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.audience-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink);
}
.audience-body p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}


/* ============ ABOUT-END-CTA · asymmetric panel with TRA ticket ============
   Deliberately different from lessons .end-cta:
     · background = --night-1 (deep navy), not --banner-dark (deep teal)
     · layout = 2-column (text-left + ticket-right), not centered
     · accent = TRA ticket pinned tilted, not boba in corner */

.about-end-cta {
  background: var(--night-1);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 60px 50px;
  margin: 60px auto 80px;
  max-width: var(--container-max);
  width: calc(100% - 2 * var(--container-pad));
  position: relative;
  overflow: hidden;
}

.about-end-cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-end-cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

.about-end-cta-text { text-align: left; }
.about-end-cta h2 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 12px 0 16px;
}
.about-end-cta h2 em { color: var(--bopomofo); font-style: italic; }
.about-end-cta p {
  color: rgba(254,248,240,0.85);
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 540px;
}

.about-end-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}


/* ============ TRA hard ticket (CTA accent) ============
   Old-school 硬式車票 styling — warm cardstock, perforation strip, station-name
   typography. Tilted ~6deg with drop-shadow for "pinned to the panel" feel. */

.about-end-cta-ticket {
  display: grid;
  place-items: center;
}

.tw-ticket {
  width: 100%;
  max-width: 300px;
  height: auto;
  transform: rotate(-5deg);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}
@media (max-width: 880px) {
  .tw-ticket { max-width: 240px; transform: rotate(-4deg); }
}

/* Ticket palette — warm cardstock yellow stays inline as a scene-specific
   art colour (per memory feedback_no_html_hardcode). Other colours via tokens. */
.tw-ticket .ticket-bg          { fill: #f3e3b8; stroke: var(--ink); stroke-width: 1.3; }
.tw-ticket .ticket-class-band  { fill: var(--accent-2); }
.tw-ticket .ticket-perf        { stroke: var(--ink); stroke-width: 1; opacity: 0.55; fill: none; }
.tw-ticket .ticket-punch       { fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: 0.6; }

.tw-ticket .ticket-class-han {
  font-family: var(--font-han);
  font-size: 11px;
  font-weight: 700;
  fill: var(--cream);
  letter-spacing: 0.02em;
}
.tw-ticket .ticket-class-trainno {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  fill: var(--cream);
  letter-spacing: 0.04em;
}

.tw-ticket .ticket-stub-han {
  font-family: var(--font-han);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
}
.tw-ticket .ticket-stub-num {
  font-family: var(--font-body);
  font-size: 6.5px;
  font-weight: 700;
  fill: var(--ink-soft);
  letter-spacing: 0.08em;
}

.tw-ticket .ticket-station {
  font-family: var(--font-han);
  font-size: 18px;
  font-weight: 900;
  fill: var(--ink);
  letter-spacing: 0.04em;
}
.tw-ticket .ticket-arrow {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  fill: var(--accent);
}

.tw-ticket .ticket-meta {
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 500;
  fill: var(--ink);
  letter-spacing: 0.04em;
}

.tw-ticket .ticket-fare-label {
  font-family: var(--font-body);
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--ink-soft);
  letter-spacing: 0.08em;
}
.tw-ticket .ticket-fare-amount {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  fill: var(--accent-deep);
  letter-spacing: 0.02em;
}

.tw-ticket .ticket-serial {
  font-family: var(--font-body);
  font-size: 5.5px;
  font-weight: 600;
  fill: var(--ink-soft);
  letter-spacing: 0.12em;
}
