:root {
  --sand: #F5EFE4;
  --sand-dark: #EDE4D3;
  --ivory: #FAF7F2;
  --earth: #C4A882;
  --earth-dark: #8C6E4A;
  --rust: #C4633A;
  --rust-light: #E8896A;
  --sage: #7A9B8A;
  --deep: #1E1A15;
  --mid: #4A4238;
  --muted: #8A8078;
  --white: #FFFFFF;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--ivory);
  color: var(--deep);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 200; padding: 28px 60px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.5s ease;
}
nav.scrolled {
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px);
  padding: 16px 60px;
  border-bottom: 1px solid rgba(196,168,130,0.25);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; color: var(--deep);
  text-decoration: none; letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-img {
  height: 36px; width: auto;
}
.nav-logo span {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300; font-size: 10px; display: block;
  color: var(--muted); letter-spacing: 4px;
  text-transform: uppercase; margin-top: 1px;
}
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--mid);
  font-size: 14px; font-weight: 400; letter-spacing: 0.3px;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  background: var(--rust) !important; color: var(--white) !important;
  padding: 9px 22px !important; border-radius: 2px;
  font-size: 13px !important; letter-spacing: 1px !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--earth-dark) !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span { width: 26px; height: 1.5px; background: var(--deep); display: block; transition: 0.3s; }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.hero-left {
  padding: 160px 60px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 3; background: var(--ivory);
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--rust); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(50px, 5.5vw, 76px);
  line-height: 1.1; font-weight: 400; margin-bottom: 12px;
  opacity: 0; animation: fadeUp 1s ease 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--rust); }
.hero-subtitle {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300; color: var(--mid);
  margin-bottom: 36px; line-height: 1.6;
  opacity: 0; animation: fadeUp 1s ease 0.65s forwards;
}
.hero-desc {
  font-size: 15px; color: var(--muted);
  line-height: 2.1; max-width: 400px;
  margin-bottom: 48px; font-weight: 300;
  opacity: 0; animation: fadeUp 1s ease 0.8s forwards;
}
.hero-actions {
  display: flex; gap: 24px; align-items: center;
  opacity: 0; animation: fadeUp 1s ease 1s forwards;
}
.btn-main {
  background: var(--rust); color: var(--white);
  padding: 14px 36px; font-size: 14px; letter-spacing: 1px;
  text-decoration: none; border-radius: 2px;
  font-family: 'Noto Sans TC', sans-serif;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}
.btn-main:hover { background: var(--earth-dark); transform: translateY(-2px); }
.btn-ghost {
  color: var(--mid); font-size: 14px; text-decoration: none;
  letter-spacing: 0.5px; border-bottom: 1px solid var(--earth);
  padding-bottom: 3px; transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--rust); border-color: var(--rust); }
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 60px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; animation: fadeUp 1s ease 1.3s forwards;
}
.scroll-line { width: 40px; height: 1px; background: var(--earth); }
.scroll-text { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

/* Hero image panel */
.hero-right { position: relative; overflow: hidden; }
.hero-img-fill {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #D4C4AE 0%, #9A8470 100%);
  display: flex; align-items: flex-end;
}
.hero-img-fill img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-placeholder-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 32px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SHARED SECTION UTILITIES */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 20px;
}
.section-h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400; line-height: 1.2; margin-bottom: 24px;
}
.section-h2 em { font-style: italic; color: var(--rust); }
.section-body {
  font-size: 16px; color: var(--muted);
  line-height: 2; font-weight: 300;
}

/* PHILOSOPHY */
.philosophy {
  background: var(--sand);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}
.phi-img-col { position: relative; overflow: hidden; min-height: 500px; }
.phi-img-col .img-fill {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #B8A890 0%, #8C7860 100%);
}
.phi-img-col .img-fill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phi-content {
  padding: 80px 72px 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.phi-principles { margin-top: 48px; }
.phi-item {
  padding: 28px 0;
  border-top: 1px solid rgba(196,168,130,0.3);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px; align-items: start;
}
.phi-item:last-child { border-bottom: 1px solid rgba(196,168,130,0.3); }
.phi-num {
  font-family: 'DM Serif Display', serif;
  font-size: 12px; color: var(--earth);
  padding-top: 4px; font-style: italic;
}
.phi-item h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 17px; font-weight: 500; margin-bottom: 8px;
}
.phi-item p { font-size: 14px; color: var(--muted); line-height: 1.9; font-weight: 300; }

/* STORY */
.story { background: var(--ivory); padding: 120px 60px; }
.story-inner { max-width: 1200px; margin: 0 auto; }
.story-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; margin-bottom: 72px; align-items: end;
}
.story-quote-block {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic; line-height: 1.6;
  color: var(--earth-dark);
  padding-left: 32px;
  border-left: 2px solid var(--rust);
}
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.story-photo {
  border-radius: 2px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #C4B4A0, #9A8A76);
}
.story-photo.wide { grid-column: span 2; }
.story-photo img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}

/* QUOTE BANNER */
.quote-banner {
  background: var(--deep);
  padding: 100px 60px;
  text-align: center;
  position: relative; overflow: hidden;
}
.quote-banner blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 38px);
  font-style: italic; font-weight: 400;
  color: var(--sand); line-height: 1.6;
  max-width: 760px; margin: 0 auto 20px;
}
.quote-banner cite {
  font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--earth);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}

/* EXPERIENCE */
.experience { background: var(--sand); padding: 120px 60px; }
.exp-inner { max-width: 1000px; margin: 0 auto; }
.exp-header { margin-bottom: 72px; }
.timeline { position: relative; }
.timeline-line {
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(to bottom, var(--rust), var(--earth), rgba(196,168,130,0.2));
}
.timeline-entries { padding-left: 40px; }
.t-entry {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 40px; padding: 36px 0;
  border-bottom: 1px solid rgba(196,168,130,0.2);
  position: relative;
}
.t-entry::before {
  content: '';
  position: absolute; left: -44px; top: 42px;
  width: 9px; height: 9px;
  border-radius: 50%; background: var(--rust);
  box-shadow: 0 0 0 3px rgba(196,99,58,0.15);
}
.t-entry:nth-child(3)::before { background: var(--earth); }
.t-entry:nth-child(4)::before { background: var(--sage); }
.t-entry:nth-child(5)::before { background: var(--earth); }
.t-entry:nth-child(6)::before { background: var(--rust-light); }
.t-entry:nth-child(7)::before { background: var(--earth-dark); }
.t-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--muted);
  letter-spacing: 1px; padding-top: 4px;
  font-weight: 300;
}
.t-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px; font-weight: 500;
  margin-bottom: 10px; line-height: 1.4;
}
.t-body p { font-size: 14px; color: var(--muted); line-height: 1.9; font-weight: 300; }

/* VOLUNTEER */
.volunteer { background: var(--ivory); padding: 120px 60px; }
.vol-inner { max-width: 1200px; margin: 0 auto; }
.vol-header { margin-bottom: 64px; max-width: 560px; }

/* Left-right layout */
.vol-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Carousel (left) */
.vol-carousel {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--sand-dark);
}
.vol-carousel-track {
  display: flex;
  max-height: 520px;
  transition: transform 0.5s ease;
}
.vol-carousel-track img {
  width: 100%; flex-shrink: 0;
  height: auto;
  object-fit: contain; display: block;
}
.vol-carousel-nav {
  position: absolute; bottom: 11px; right: 16px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(30,26,21,0.6);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 2px;
}
.vol-carousel-btn {
  background: none; border: none;
  color: var(--sand); font-size: 18px;
  cursor: pointer; padding: 0 4px;
  transition: color 0.3s;
  line-height: 1;
}
.vol-carousel-btn:hover { color: var(--rust-light); }
.vol-carousel-counter {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; letter-spacing: 2px;
  color: rgba(245,239,228,0.7);
}

/* Cards (right) */
.vol-cards {
  display: flex;
  flex-direction: column;
}
.vol-card {
  padding: 28px 0;
  border-bottom: 1px solid rgba(196,168,130,0.3);
}
.vol-card:first-child { padding-top: 0; }
.vol-card:last-child { border-bottom: none; }
.vol-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 10px;
}
.vol-card h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 16px; font-weight: 500;
  margin-bottom: 8px; line-height: 1.5;
}
.vol-card p { font-size: 13px; color: var(--muted); line-height: 1.8; font-weight: 300; }

/* CTA */
.cta-section {
  background: var(--sand);
  padding: 140px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.cta-content .section-h2 { margin-bottom: 20px; }
.cta-content p { font-size: 16px; color: var(--muted); line-height: 2; font-weight: 300; margin-bottom: 40px; }
.cta-image { position: relative; overflow: hidden; border-radius: 2px; }
.cta-image .img-fill {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #C4B4A0, #8C7C68);
}
.cta-image .img-fill img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FOOTER */
footer {
  background: var(--deep);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; color: var(--sand);
  text-decoration: none;
}
.footer-logo span {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300; font-size: 10px;
  display: block; color: var(--muted);
  letter-spacing: 3px; text-transform: uppercase;
}
.footer-right { text-align: right; }
.footer-right a {
  display: block;
  color: var(--earth);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-right a:hover { color: var(--sand); }
.footer-copy {
  font-size: 12px; color: var(--muted);
  margin-top: 16px; letter-spacing: 0.5px;
}

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(250,247,242,0.98);
  backdrop-filter: blur(20px);
  z-index: 199; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 24px; font-weight: 400;
  color: var(--deep); text-decoration: none;
  font-family: 'Noto Serif TC', sans-serif;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--rust); }
.mobile-close {
  position: absolute; top: 24px; right: 28px;
  font-size: 24px; background: none; border: none;
  cursor: pointer; color: var(--mid);
}

/* ── FLOATING PLANETS ── */
.planets-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: planetAppear 1.8s ease forwards, planetFloat var(--dur, 10s) ease-in-out var(--delay-float, 2s) infinite;
}
@keyframes planetAppear {
  from { opacity: 0; transform: scale(0.5) translateY(40px); }
  to   { opacity: var(--max-opacity, 0.22); transform: scale(1) translateY(0); }
}
@keyframes planetFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-22px) rotate(2deg); }
  66%       { transform: translateY(-10px) rotate(-1deg); }
}

/* Hero planets */
.hero .planets-layer .p1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 38% 32%, #F0D4B0, #C4905A);
  top: -80px; right: -60px;
  --dur: 9s; --delay-float: 1.8s; --max-opacity: 0.28;
  animation-delay: 0.2s, 2s;
  box-shadow: inset -20px -20px 40px rgba(0,0,0,0.12);
}
.hero .planets-layer .p2 {
  width: 160px; height: 160px;
  background: radial-gradient(circle at 35% 30%, #D4E8D8, #7A9B8A);
  bottom: 100px; left: -40px;
  --dur: 12s; --delay-float: 2.5s; --max-opacity: 0.25;
  animation-delay: 0.5s, 2.5s;
  box-shadow: inset -12px -12px 24px rgba(0,0,0,0.1);
}
.hero .planets-layer .p3 {
  width: 88px; height: 88px;
  background: radial-gradient(circle at 35% 30%, #F0C0B0, #C4633A);
  top: 38%; right: 14%;
  --dur: 8s; --delay-float: 3s; --max-opacity: 0.3;
  animation-delay: 0.8s, 3s;
  box-shadow: inset -8px -8px 16px rgba(0,0,0,0.12);
}
.hero .planets-layer .p4 {
  width: 52px; height: 52px;
  background: radial-gradient(circle at 35% 30%, #E8D8C0, #C4A882);
  bottom: 28%; left: 22%;
  --dur: 11s; --delay-float: 3.5s; --max-opacity: 0.35;
  animation-delay: 1.1s, 3.5s;
}
.hero .planets-layer .p5 {
  width: 36px; height: 36px;
  background: radial-gradient(circle at 35% 30%, #C8D8E8, #5A80A0);
  top: 22%; left: 38%;
  --dur: 14s; --delay-float: 4s; --max-opacity: 0.2;
  animation-delay: 1.4s, 4s;
}

/* Quote Banner planets */
.quote-banner .planets-layer .p1 {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 38% 32%, #F0C890, #C47840);
  top: -80px; left: -60px;
  --dur: 11s; --delay-float: 0s; --max-opacity: 0.18;
  animation-delay: 0s, 0s;
  box-shadow: inset -16px -16px 32px rgba(0,0,0,0.2);
}
.quote-banner .planets-layer .p2 {
  width: 140px; height: 140px;
  background: radial-gradient(circle at 35% 30%, #C8D8B0, #6A8860);
  bottom: -50px; right: 10%;
  --dur: 9s; --delay-float: 1s; --max-opacity: 0.15;
  animation-delay: 0.3s, 1s;
  box-shadow: inset -10px -10px 20px rgba(0,0,0,0.15);
}
.quote-banner .planets-layer .p3 {
  width: 70px; height: 70px;
  background: radial-gradient(circle at 35% 30%, #E8C8B0, #C0805A);
  top: 20%; right: 28%;
  --dur: 13s; --delay-float: 2s; --max-opacity: 0.22;
  animation-delay: 0.6s, 2s;
}
.quote-banner .planets-layer .p4 {
  width: 44px; height: 44px;
  background: radial-gradient(circle at 35% 30%, #D0C8E8, #8878C0);
  bottom: 25%; left: 20%;
  --dur: 10s; --delay-float: 1.5s; --max-opacity: 0.2;
  animation-delay: 0.9s, 1.5s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .vol-layout { gap: 36px; }
}

@media (max-width: 860px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 130px 24px 60px; }

  .philosophy { grid-template-columns: 1fr; }
  .phi-img-col { min-height: 300px; }
  .phi-content { padding: 60px 24px; }

  .story { padding: 80px 24px; }
  .story-top { grid-template-columns: 1fr; gap: 40px; }
  .story-photos { grid-template-columns: 1fr; }
  .story-photo.wide { grid-column: span 1; }

  .experience { padding: 80px 24px; }
  .t-entry { grid-template-columns: 1fr; gap: 8px; }
  .timeline-line { display: none; }
  .timeline-entries { padding-left: 0; }
  .t-entry::before { display: none; }

  .volunteer { padding: 80px 24px; }
  .vol-layout { grid-template-columns: 1fr; }
  .vol-carousel { max-width: 100%; }

  .cta-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .cta-image { order: -1; }

  footer { flex-direction: column; gap: 32px; text-align: center; padding: 40px 24px; }
  .footer-right { text-align: center; }

  .quote-banner { padding: 80px 24px; }
}
