/* ============================================
   E-Ranyx — 關於我們 (About Us) Page Styles
   依主頁設計系統 (css/style.css) 延伸
   ============================================ */

/* Disable global scroll-snap on this page (conflicts with reveal + 100vh sections) */
html.page-no-snap {
  scroll-snap-type: none !important;
}

/* ---------- HERO (滿版) ---------- */
.about-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* 星空 */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-stars .star {
  position: absolute;
  border-radius: var(--radius-full);
  background: #ffffff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 1;
  }
}

/* 流星（由 about.js 不定時產生，動畫用 Web Animations API 控制）*/
.meteor {
  position: absolute;
  width: 140px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(226, 206, 248, 0.6) 60%, #ffffff 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stars .star {
    animation: none;
    opacity: 0.7;
  }

  .meteor {
    display: none;
  }
}

.about-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(124, 69, 212, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(760px, calc(100% - 300px));
  margin: 0 auto;
  /* 讓拖曳事件穿透文字、落到下方的地球 */
  pointer-events: none;
}

.about-hero .section-label {
  justify-content: center;
}

.about-hero .section-label,
.about-hero-title,
.about-hero-subtitle {
  /* 灰色描邊 + 深色外暈，提升在星空/地球上的可讀性 */
  text-shadow:
    -1px -1px 0 rgba(70, 70, 70, 0.75),
    1px -1px 0 rgba(70, 70, 70, 0.75),
    -1px 1px 0 rgba(70, 70, 70, 0.75),
    1px 1px 0 rgba(70, 70, 70, 0.75),
    0 -1px 0 rgba(70, 70, 70, 0.75),
    0 1px 0 rgba(70, 70, 70, 0.75),
    -1px 0 0 rgba(70, 70, 70, 0.75),
    1px 0 0 rgba(70, 70, 70, 0.75),
    0 2px 20px rgba(11, 6, 21, 0.8);
}

.about-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.about-hero-title .highlight {
  color: var(--accent-gold);
}

.about-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--purple-200);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- INTERACTIVE 3D GLOBE (cobe) ---------- */
/* 固定在 Hero 右上角（桌機 / 平板 / 手機都維持右上） */
.cobe-globe {
  position: absolute;
  top: 25%;
  left: 75%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: clamp(960px, 120vw, 1760px);
  height: clamp(960px, 120vw, 1760px);
  max-width: 100vw;
  max-height: 100vw;
  aspect-ratio: 1 / 1;
  display: block;
  z-index: 1;
  cursor: grab;
  background: transparent;
  /* 觸控拖曳時不要觸發頁面捲動 */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.cobe-globe.globe-unavailable {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

.globe-hint {
  position: absolute;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--purple-300);
  pointer-events: none;
}

.globe-hint svg {
  opacity: 0.8;
}

/* 向下探索引導（圓形 Icon） */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--purple-100);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.hero-scroll-cue:hover {
  color: var(--white);
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.hero-scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(34, 16, 64, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: scrollIconBounce 2s ease-in-out infinite;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.hero-scroll-cue:hover .hero-scroll-icon {
  border-color: rgba(160, 114, 230, 0.7);
  background: rgba(58, 27, 107, 0.65);
  box-shadow: 0 6px 20px rgba(124, 69, 212, 0.25);
}

@keyframes scrollIconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-icon {
    animation: none;
  }
}

@media (max-width: 560px) {
  .globe-hint {
    bottom: 4rem;
    font-size: 0.78rem;
  }

  .hero-scroll-cue {
    bottom: 1.25rem;
  }

  .hero-scroll-icon {
    width: 40px;
    height: 40px;
  }
}

/* ---------- SECTION BLOCKS ---------- */
.about-section-block {
  padding: var(--space-4xl) 0;
}

/* ---------- MANIFESTO (textural mission) ---------- */
.about-manifesto {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
  border-top: 1px solid rgba(224, 206, 248, 0.08);
  border-bottom: 1px solid rgba(224, 206, 248, 0.08);
}

.manifesto-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.manifesto-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(124, 69, 212, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 80%, rgba(91, 192, 190, 0.1), transparent 55%),
    linear-gradient(165deg, rgba(34, 16, 64, 0.55) 0%, rgba(11, 6, 21, 0.2) 45%, rgba(20, 10, 35, 0.65) 100%);
}

.manifesto-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: manifestoGrain 12s steps(6) infinite;
}

@keyframes manifestoGrain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-0.5%, -1%); }
  100% { transform: translate(0, 0); }
}

.manifesto-watermark {
  position: absolute;
  right: -2%;
  bottom: 4%;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(224, 206, 248, 0.12);
  user-select: none;
  white-space: nowrap;
}

.manifesto-inner {
  position: relative;
  z-index: 1;
}

.manifesto-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.manifesto-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
  min-width: 3.5rem;
}

.manifesto-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.manifesto-rail-line {
  width: 1px;
  flex: 1;
  min-height: 4.5rem;
  background: linear-gradient(180deg, rgba(232, 200, 114, 0.7), rgba(160, 114, 230, 0.15), transparent);
}

.manifesto-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-300);
}

.manifesto-copy {
  max-width: 46rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(224, 206, 248, 0.14);
}

.manifesto-title {
  margin: 0 0 var(--space-lg);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff 20%, var(--purple-100) 55%, var(--accent-gold) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto-desc {
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 2;
  color: var(--purple-100);
}

.manifesto-desc-secondary {
  margin-top: 1rem;
}

.manifesto-footnote {
  margin: var(--space-xl) 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--purple-300);
}

.manifesto-panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(224, 206, 248, 0.16);
}

.manifesto-panel {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-right: 1px solid rgba(224, 206, 248, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(224, 206, 248, 0.015) 10px,
      rgba(224, 206, 248, 0.015) 11px
    );
  transition: background var(--transition-base), transform var(--transition-base);
}

.manifesto-panel:last-child {
  border-right: none;
}

.manifesto-panel:hover {
  background:
    linear-gradient(180deg, rgba(124, 69, 212, 0.16), transparent 70%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(224, 206, 248, 0.03) 10px,
      rgba(224, 206, 248, 0.03) 11px
    );
  transform: translateY(-2px);
}

.manifesto-panel-index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--purple-300);
}

.manifesto-panel-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.manifesto-panel-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--purple-200);
}

.manifesto-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.manifesto-stack span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--purple-100);
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(224, 206, 248, 0.18);
  background: rgba(11, 6, 21, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-grain {
    animation: none;
  }
}

/* ---------- FOUNDERS ---------- */
.founders-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.founders-header .section-label {
  justify-content: center;
}

.founders-header .section-subtitle {
  margin: 0 auto;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.founder-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 1px solid transparent;
  text-align: center;
  align-items: center;
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.founder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(160, 114, 230, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.founder-photo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--purple-600);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-spring);
}

.founder-card:hover .founder-photo {
  transform: scale(1.06);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.95rem;
  color: var(--purple-300);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.founder-desc {
  font-size: 0.95rem;
  color: var(--purple-100);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.founder-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .manifesto-panels {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifesto-panel:nth-child(2n) {
    border-right: none;
  }

  .manifesto-panel:nth-child(n + 3) {
    border-top: 1px solid rgba(224, 206, 248, 0.14);
  }
}

@media (max-width: 900px) {
  .manifesto-panels {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .manifesto-panel,
  .manifesto-panel:nth-child(2n) {
    border-right: none;
    border-top: 1px solid rgba(224, 206, 248, 0.14);
    padding: 1.5rem 0.25rem;
  }

  .founders-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .about-hero-content {
    max-width: min(700px, calc(100% - 240px));
  }

  .cobe-globe {
    top: 25%;
    left: 75%;
    right: auto;
    transform: translate(-50%, -50%);
    width: clamp(760px, 144vw, 1280px);
    height: clamp(760px, 144vw, 1280px);
  }
}

@media (max-width: 560px) {
  .about-section-block {
    padding: var(--space-3xl) 0;
  }

  .about-manifesto {
    padding: var(--space-4xl) 0;
  }

  .manifesto-main {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .manifesto-rail {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: 0.85rem;
  }

  .manifesto-year,
  .manifesto-rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .manifesto-rail-line {
    width: 2.5rem;
    min-height: 1px;
    height: 1px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, rgba(232, 200, 114, 0.7), rgba(160, 114, 230, 0.15));
  }

  .manifesto-watermark {
    opacity: 0.7;
    right: -8%;
  }

  .about-hero {
    min-height: 520px;
  }

  .about-hero-content {
    max-width: 100%;
    padding: 0 1rem;
  }

  .cobe-globe {
    top: 25%;
    left: 75%;
    right: auto;
    transform: translate(-50%, -50%);
    width: clamp(600px, 176vw, 840px);
    height: clamp(600px, 176vw, 840px);
  }

  .globe-hint {
    font-size: 0.78rem;
  }
}
