@font-face {
  font-family: "SourceHanSansTW";
  src: url("assets/SourceHanSansTW-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SourceHanSerifTW";
  src: url("assets/SourceHanSerifTW-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff9900;
  --footer: #2e3139;
  --copybar: #434343;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --copy: #c4c4c4;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: #fff;
  color: var(--ink);
  font-family: "SourceHanSansTW", "Microsoft YaHei", "Noto Sans TC", "PingFang TC", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header { height: 72px; background: #fff; }

.site-header .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.45px var(--orange);
  paint-order: stroke fill;
}

.lang {
  appearance: none;
  -webkit-appearance: none;
  width: 108px;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  background: #fff url("assets/wp-diy-selected-button.png") no-repeat right 8px center;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1920 / 680;
  overflow: hidden;
  background: #111;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
  pointer-events: none;
}

.hero-slides,
.hero-slides .slide {
  position: absolute;
  inset: 0;
}

.hero-slides .slide {
  background: #111 center / 100% 100% no-repeat;
  opacity: 0;
  z-index: 0;
  transform: translateX(0) scale(1);
}

.hero-slides .slide.is-on,
.hero-slides .slide.is-leave {
  opacity: 1;
}

.hero-slides .slide.is-leave { z-index: 1; }
.hero-slides .slide.is-on { z-index: 2; }

.hero[data-fx="fade"] .slide {
  transition: opacity 0.9s ease;
}

.hero.is-fx-setup .slide {
  transition: none !important;
}

.hero[data-fx="slide-left"] .slide,
.hero[data-fx="slide-right"] .slide {
  transition: transform 0.9s cubic-bezier(.22, .61, .36, 1);
}
.hero[data-fx="slide-left"] .slide.is-on,
.hero[data-fx="slide-left"] .slide.is-leave,
.hero[data-fx="slide-right"] .slide.is-on,
.hero[data-fx="slide-right"] .slide.is-leave {
  opacity: 1;
}

.hero[data-fx="slide-left"] .slide { transform: translateX(100%); }
.hero[data-fx="slide-left"] .slide.is-on { transform: translateX(0); }
.hero[data-fx="slide-left"] .slide.is-leave { transform: translateX(-100%); }

.hero[data-fx="slide-right"] .slide { transform: translateX(-100%); }
.hero[data-fx="slide-right"] .slide.is-on { transform: translateX(0); }
.hero[data-fx="slide-right"] .slide.is-leave { transform: translateX(100%); }

.hero[data-fx="zoom"] .slide {
  transform: scale(1.08);
  transition: opacity 1s ease, transform 1.1s ease;
}

.hero[data-fx="zoom"] .slide.is-on {
  opacity: 1;
  transform: scale(1);
}

.hero[data-fx="zoom"] .slide.is-leave {
  opacity: 0;
  transform: scale(1.04);
}

.hero[data-fx="shatter"] .slide.is-on {
  opacity: 1;
  transition: opacity 0.7s ease;
}

.hero[data-fx="shatter"] .slide.is-leave {
  opacity: 0;
  transition: none;
}

.hero-shards {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.hero-shard {
  position: absolute;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero-shard-img {
  position: absolute;
  background: #111 center / cover no-repeat;
}

.hero-shards.is-breaking .hero-shard {
  animation: shard-out 1.2s cubic-bezier(.14, .7, .28, 1) forwards;
}

@keyframes shard-out {
  0% {
    transform: translate(0, 0) rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.42);
    opacity: 0;
  }
}

.hero[data-fx="spiral"] .slide {
  transform-origin: center center;
  transform: rotate(-220deg) scale(0.5);
  opacity: 0;
  transition: transform 1.25s cubic-bezier(.22, .61, .36, 1), opacity 0.9s ease 0.1s;
}

.hero[data-fx="spiral"] .slide.is-on {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.hero[data-fx="spiral"] .slide.is-leave {
  opacity: 0;
  transform: none;
  transition: none;
}

.hero-spiral {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.hero-spiral-ring {
  position: absolute;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.hero-spiral-img {
  position: absolute;
  background-repeat: no-repeat;
}

.hero-spiral.is-twisting .hero-spiral-ring {
  animation: spiral-out 1.25s cubic-bezier(.14, .7, .28, 1) forwards;
}

@keyframes spiral-out {
  0% {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(var(--rot)) scale(var(--scale));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero[data-fx] .slide {
    transform: none !important;
    transition: opacity 0.5s ease !important;
  }
  .hero-shards,
  .hero-spiral { display: none !important; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

.hero-title {
  font-family: "Arial Black", "Arial", "SourceHanSansTW", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.12em;
  font-weight: 400;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  background: transparent center / contain no-repeat;
  cursor: pointer;
  opacity: 0.85;
}

.hero-arrow:hover { opacity: 1; }
.hero-arrow.prev { left: 20px; background-image: url("assets/left_arrow.png"); }
.hero-arrow.next { right: 20px; background-image: url("assets/right_arrow.png"); }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  opacity: 0.4;
  cursor: pointer;
}

.hero-dots button.is-on { opacity: 1; }

/* Mission */
.mission {
  background: var(--orange);
  padding: 22px 0 32px;
}

.mission-kicker {
  font-family: "SourceHanSerifTW", "Source Han Serif TC", "Noto Serif TC", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: #111;
  letter-spacing: 0.08em;
}

.mission-kicker::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: #111;
  margin-top: 10px;
}

.mission-sub {
  margin-top: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 1.25em;
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
}

html[lang="en"] .mission-kicker {
  font-size: clamp(18px, 2.3vw, 26px);
  letter-spacing: 0.06em;
}
html[lang="en"] .mission-sub {
  font-size: clamp(11px, 1.15vw, 14px);
  letter-spacing: 0.05em;
  gap: 1em;
}

/* Theme index */
.pillar-bar {
  background: var(--orange);
  color: #fff;
}

.pillar-bar .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 18px;
  letter-spacing: 0.16em;
}

.pillar-bar a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pillar-bar a:hover,
.pillar-bar a:focus-visible {
  color: #111;
  text-decoration: none;
}

.pillar-bar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}

/* Chapters */
.chapter { padding: 96px 0; }

.chapter-copy h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.chapter-no {
  font-family: "Arial", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 14px;
}

.chapter-copy .rule {
  width: 40px;
  border-top: 1px solid var(--orange);
  margin: 18px 0 22px;
}

.chapter-lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.chapter-copy p {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

.chapter-copy .chapter-lead { color: inherit; }

.split {
  display: grid;
  grid-template-columns: minmax(320px, 640px) 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1fr 520px;
}

.shot { overflow: hidden; background: #111; }
.shot-invest img,
.shot-portrait img,
.shot-square img,
.shot-wide img { width: 100%; height: auto; }

.shot-invest { width: 100%; max-width: 640px; }
.shot-portrait { max-width: 320px; }

.chapter-invest { background: #f4f2ef; }
.chapter-invest .chapter-copy {
  padding-left: 40px;
}
.chapter-invest .chapter-copy h3 {
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: 0.1em;
}
.chapter-invest .chapter-copy .rule {
  width: 48px;
  margin: 22px 0 26px;
}
.chapter-invest .chapter-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
}
.chapter-invest .chapter-copy p {
  font-size: 18px;
  line-height: 1.85;
  color: #4a4a4a;
}

.chapter-chain { background: #111; color: #fff; }
.chapter-chain .chapter-copy { margin-bottom: 40px; max-width: 720px; }
.chapter-chain .chapter-copy h3 {
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: 0.1em;
}
.chapter-chain .chapter-copy .rule {
  width: 48px;
  margin: 22px 0 26px;
}
.chapter-chain .chapter-lead {
  font-size: 18px;
  line-height: 1.85;
  color: #fff;
}
.chapter-chain .shot-wide { width: 100%; }

.chapter-ai { background: #fff; }
.chapter-ai .chapter-copy {
  padding-left: 180px;
}

html[lang="en"] .chapter-ai .chapter-lead { display: none; }

.chapter-ai .chapter-copy h3 {
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: 0.1em;
}
.chapter-ai .chapter-copy .rule {
  width: 48px;
  margin: 22px 0 26px;
}
.chapter-ai .chapter-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
}
.chapter-ai .chapter-copy p {
  font-size: 18px;
  line-height: 1.85;
  color: #4a4a4a;
}
.chapter-ai .shot-square { max-width: 520px; margin-left: auto; }

.slogan-strip {
  background: var(--orange);
  padding: 28px 0;
}
.slogan-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 1.5em;
  white-space: nowrap;
}
.slogan-strip-inner p {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #fff;
}
html[lang="en"] .slogan-strip-inner p {
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* Contact on the earth photo — left dark space is for type */
.contact-world {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 88px;
  color: #fff;
  background: #000 url("assets/contact-spacex-d.jpg") 58% 18% / cover no-repeat;
}

.contact-world::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.08) 68%, transparent 100%);
  pointer-events: none;
}

.contact-world .wrap { position: relative; z-index: 1; }

.contact-world .brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.contact-world p {
  font-size: 12px;
  line-height: 2;
}

.copybar {
  background: var(--copybar);
  color: var(--copy);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 16px;
}

.contact-mail { display: none; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .site-header, .site-header .wrap { height: 60px; }
  .logo {
    font-size: 16px;
    font-weight: 800;
    -webkit-text-stroke: 0.55px var(--orange);
  }
  .contact-world .brand { font-size: 24px; }
  .hero {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1920 / 680;
  }
  .hero-slides .slide {
    background-size: 100% 100%;
    background-position: center;
  }
  .hero::after { height: 56px; }
  .hero-arrow { width: 36px; height: 36px; }
  .mission { padding: 8px 0 12px; }
  .mission-kicker { font-size: 18px; letter-spacing: 0.06em; }
  .mission-kicker::after { margin-top: 6px; width: 28px; }
  .mission-sub { margin-top: 6px; gap: 0.6em; letter-spacing: 0.04em; font-size: 12px; }
  html[lang="en"] .mission-kicker { font-size: 12px; letter-spacing: 0.04em; }
  html[lang="en"] .mission-sub { font-size: 11px; letter-spacing: 0.03em; }
  .pillar-bar .wrap { gap: 14px; min-height: 52px; font-size: 13px; letter-spacing: 0.14em; }
  html[lang="en"] .pillar-bar .wrap { font-size: 11px; letter-spacing: 0.12em; gap: 12px; }
  .chapter { padding: 64px 0; }
  .chapter .chapter-copy h3 { font-size: 28px; }
  .chapter .chapter-lead,
  .chapter .chapter-copy p { font-size: 16px; }
  .chapter .chapter-copy .rule { margin: 16px 0 18px; }
  html[lang="en"] .chapter .chapter-copy h3 { font-size: 24px; }
  html[lang="en"] .chapter .chapter-lead,
  html[lang="en"] .chapter .chapter-copy p { font-size: 14px; }
  html[lang="en"] .chapter-ai .chapter-lead { display: none; }
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .chapter-ai .chapter-copy { padding-left: 0; }
  .slogan-strip { padding: 18px 0; }
  .slogan-strip-inner { gap: 1em; }
  .slogan-strip-inner p { font-size: 14px; }
  html[lang="en"] .slogan-strip-inner {
    flex-direction: column;
    flex-wrap: wrap;
    white-space: normal;
    align-items: center;
    gap: 0.45em;
  }
  html[lang="en"] .slogan-strip-inner p {
    white-space: normal;
    text-align: center;
    letter-spacing: 0.04em;
    font-size: 12px;
  }
  .shot-portrait,
  .shot-invest,
  .shot-square { max-width: none; width: 100%; margin: 0; }
  .shot-portrait {
    max-height: 420px;
  }
  .shot-portrait img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: left bottom;
  }
  .chapter-chain .chapter-copy { margin-bottom: 28px; }
  .contact-world {
    min-height: 380px;
    background-position: 78% 80%;
    padding: 0;
  }
  .contact-world .wrap { display: none; }
  .contact-world::before { display: none; }
  .contact-mail {
    display: block;
    background: var(--copybar);
    color: var(--copy);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 18px 16px 4px;
  }
  .copybar {
    min-height: 0;
    padding: 4px 16px 18px;
  }
  html[lang="en"] .contact-mail,
  html[lang="en"] .copybar {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}
