:root{
  --red:#8d1015;
  --red-2:#a81920;
  --red-deep:#4d080b;
  --ink:#1b1715;
  --gold:#d6b36a;
  --gold-soft:#f0dfb0;
  --cream:#f7f1e7;
  --paper:#fffaf2;
  --muted:#716761;
  --line-dark:rgba(255,255,255,.09);
  --line-light:rgba(116,84,50,.12);
  --shell:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  min-width:320px;
  color:#fff;
  background:var(--red-deep);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
button{font:inherit}
.shell{
  width:min(var(--shell),calc(100% - 40px));
  margin:0 auto;
}

#fx{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:80;
}

/* header */
.site-header{
  position:absolute;
  inset:0 0 auto;
  z-index:20;
  padding:30px 0;
  pointer-events:none;
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
}
.wordmark{
  pointer-events:auto;
  display:inline-flex;
  flex-direction:column;
  gap:1px;
}
.wordmark strong{
  font-size:17px;
  font-weight:650;
  letter-spacing:-.03em;
}
.wordmark span{
  color:rgba(255,255,255,.46);
  font-size:8px;
  letter-spacing:.24em;
}
.header-meta{
  color:rgba(255,255,255,.38);
  font-size:10px;
  letter-spacing:.16em;
  text-align:right;
}

/* hero */
.hero{
  position:relative;
  min-height:850px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 74% 42%,rgba(236,199,114,.14),transparent 23%),
    radial-gradient(circle at 13% 78%,rgba(255,222,159,.07),transparent 26%),
    linear-gradient(140deg,#5c090c 0%,#8d1015 45%,#6f0c10 100%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.9) 62%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.9) 62%,transparent 100%);
}
.hero::after{
  content:"";
  position:absolute;
  width:600px;
  height:600px;
  right:-240px;
  top:-230px;
  border:1px solid rgba(239,207,135,.12);
  border-radius:50%;
  box-shadow:
    0 0 0 88px rgba(239,207,135,.02),
    0 0 0 176px rgba(239,207,135,.012);
  z-index:-2;
}

.corner-lines{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.65;
}
.corner-lines::before,
.corner-lines::after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-color:rgba(241,216,161,.12);
}
.corner-lines::before{
  left:-70px;
  bottom:70px;
  border-top:1px solid;
  border-right:1px solid;
  transform:rotate(45deg);
}
.corner-lines::after{
  right:11%;
  top:20%;
  border-bottom:1px solid;
  border-left:1px solid;
  transform:rotate(45deg);
}

.hero-inner{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:center;
  gap:82px;
  padding:132px 0 86px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:28px;
  color:rgba(255,255,255,.65);
  font-size:11px;
  letter-spacing:.18em;
}
.eyebrow-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 6px rgba(214,179,106,.08);
}

h1,h2,h3,p{margin-top:0}
h1{
  margin-bottom:0;
  font-size:clamp(64px,8vw,114px);
  line-height:.98;
  letter-spacing:-.065em;
  font-weight:520;
}
h1 span{display:block}
.hero-title-gold{
  margin-top:12px;
  background:linear-gradient(98deg,#d1ad63,#f5e7bc 36%,#b98f43 67%,#efdca6);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:titleSweep 8s ease-in-out infinite;
}
@keyframes titleSweep{
  0%,68%,100%{background-position:100% 0}
  34%{background-position:0 0}
}

.hero-lead{
  max-width:650px;
  margin:32px 0 0;
  color:rgba(255,255,255,.66);
  font-size:16px;
  line-height:2.05;
  font-weight:350;
}
.site-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:34px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.86);
  font-size:12px;
  letter-spacing:.12em;
  transition:.2s ease;
}
.site-link:hover{
  color:var(--gold-soft);
  border-color:rgba(214,179,106,.72);
}

/* visual */
.visual{
  position:relative;
  min-height:540px;
  display:grid;
  place-items:center;
  perspective:1100px;
  transform-style:preserve-3d;
  transition:transform .18s ease-out;
}

.orbit,
.orbit-inner{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.orbit{
  width:474px;
  height:474px;
  border:1px solid rgba(244,218,161,.15);
}
.orbit-inner{
  width:406px;
  height:406px;
  border:1px dashed rgba(255,255,255,.14);
  animation:orbitRotate 42s linear infinite;
}
.orbit-inner::before,
.orbit-inner::after{
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold-soft);
  box-shadow:0 0 22px rgba(239,207,135,.62);
}
.orbit-inner::before{left:52px;top:59px}
.orbit-inner::after{right:48px;bottom:58px}
@keyframes orbitRotate{to{transform:rotate(360deg)}}

.seal-wrap{
  position:relative;
  width:330px;
  height:390px;
  display:grid;
  place-items:center;
  animation:sealFloat 6s ease-in-out infinite;
  filter:drop-shadow(0 30px 50px rgba(61,2,5,.34));
}
@keyframes sealFloat{50%{transform:translateY(-8px)}}

.seal{
  position:relative;
  width:250px;
  height:300px;
  border-radius:38px;
  border:1px solid rgba(246,224,178,.44);
  background:
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,0) 28%),
    linear-gradient(165deg,#a91d24,#7f0d12 68%,#68090d);
  box-shadow:
    inset 0 0 0 8px rgba(90,5,8,.18),
    inset 0 0 0 10px rgba(247,220,160,.08),
    0 24px 60px rgba(51,0,0,.28);
  display:grid;
  place-items:center;
  overflow:hidden;
  cursor:pointer;
  user-select:none;
  transition:transform .25s ease,box-shadow .25s ease;
}
.seal:hover{
  transform:translateY(-2px) scale(1.015);
  box-shadow:
    inset 0 0 0 8px rgba(90,5,8,.18),
    inset 0 0 0 10px rgba(247,220,160,.08),
    0 30px 70px rgba(51,0,0,.34);
}
.seal::before{
  content:"";
  position:absolute;
  inset:20px;
  border:1px solid rgba(245,223,176,.42);
  border-radius:26px;
}
.seal::after{
  content:"";
  position:absolute;
  width:180%;
  height:48px;
  top:-90px;
  left:-40%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,236,194,.18),transparent);
  animation:sealShine 7s ease-in-out infinite;
}
@keyframes sealShine{
  0%,60%,100%{top:-110px}
  25%{top:360px}
}
.seal-text{
  position:relative;
  z-index:2;
  color:#f4dfac;
  text-align:center;
  writing-mode:vertical-rl;
  text-orientation:upright;
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;
  font-size:52px;
  letter-spacing:.08em;
  line-height:1.05;
  text-shadow:0 6px 24px rgba(255,218,140,.12);
}
.seal-small{
  position:absolute;
  bottom:27px;
  right:30px;
  color:rgba(245,223,176,.6);
  font-size:9px;
  letter-spacing:.18em;
}

.base-line{
  position:absolute;
  bottom:86px;
  width:410px;
  height:88px;
  border-radius:50%;
  border-top:1px solid rgba(244,218,161,.13);
  pointer-events:none;
}
.base-line.b{
  bottom:61px;
  width:340px;
  opacity:.62;
  transform:rotate(6deg);
}
.decor-dot{
  position:absolute;
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--gold-soft);
  box-shadow:0 0 14px rgba(236,201,126,.68);
  animation:ambient 3.2s ease-in-out infinite;
}
.decor-dot.d1{left:15%;top:25%}
.decor-dot.d2{right:12%;top:38%;animation-delay:.9s}
.decor-dot.d3{left:21%;bottom:20%;animation-delay:1.7s}
@keyframes ambient{
  0%,100%{opacity:.16;transform:scale(.7)}
  50%{opacity:.95;transform:scale(1.26)}
}

.hero-footer{
  position:relative;
  z-index:4;
  padding-bottom:34px;
}
.hero-rule{
  height:1px;
  background:rgba(255,255,255,.07);
}
.hero-note{
  padding-top:18px;
  color:rgba(255,255,255,.29);
  font-size:10px;
  letter-spacing:.13em;
}

/* content */
.message{
  padding:112px 0;
  background:var(--cream);
  color:var(--ink);
  content-visibility:auto;
  contain-intrinsic-size:1000px;
}
.panel{
  position:relative;
  overflow:hidden;
  min-height:430px;
  padding:76px;
  border:1px solid var(--line-light);
  border-radius:30px;
  background:
    radial-gradient(circle at 87% 18%,rgba(167,25,31,.06),transparent 25%),
    linear-gradient(135deg,#fffdf8,#f3ede3);
}
.panel-index,
.closing-kicker{
  color:#8b7870;
  font-size:11px;
  letter-spacing:.17em;
}
.panel h2,
.closing h2{
  position:relative;
  z-index:2;
  max-width:830px;
  margin:16px 0 0;
  font-size:clamp(40px,5vw,62px);
  line-height:1.16;
  font-weight:520;
  letter-spacing:-.05em;
}
.panel p{
  position:relative;
  z-index:2;
  max-width:760px;
  margin:26px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:2;
}
.panel-mark{
  position:absolute;
  right:-20px;
  bottom:-96px;
  color:rgba(140,16,21,.04);
  font-size:280px;
  line-height:1;
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;
  font-weight:700;
}
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:20px;
}
.card{
  position:relative;
  overflow:hidden;
  min-height:205px;
  padding:30px;
  border:1px solid var(--line-light);
  border-radius:20px;
  background:var(--paper);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.card::after{
  content:"";
  position:absolute;
  top:-35%;
  left:-65%;
  width:38%;
  height:170%;
  transform:rotate(17deg);
  background:linear-gradient(90deg,transparent,rgba(214,179,106,.2),transparent);
  transition:left .65s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(143,22,27,.16);
  box-shadow:0 18px 45px rgba(92,44,24,.07);
}
.card:hover::after{left:135%}
.card-index{
  color:#9a8a81;
  font-size:11px;
  letter-spacing:.15em;
}
.card h3{
  margin:42px 0 8px;
  font-size:25px;
  font-weight:560;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}

/* closing */
.closing{
  padding:112px 0;
  background:
    radial-gradient(circle at 78% 25%,rgba(239,203,128,.08),transparent 25%),
    linear-gradient(145deg,#50090c,#760d11 56%,#58090c);
}
.closing-inner{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:60px;
  align-items:end;
}
.closing-kicker{color:rgba(255,255,255,.42)}
.closing-copy{
  text-align:right;
  color:rgba(255,255,255,.55);
  font-size:14px;
}
.closing-copy p{margin-bottom:3px}

/* footer */
footer{
  padding:34px 0 44px;
  background:#4d080b;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color:rgba(255,255,255,.33);
  font-size:11px;
}
.footer-inner strong{
  color:rgba(255,255,255,.72);
  font-size:15px;
}

/* reveal */
.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1),
    transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}

/* click effect - no text */
.piece{
  position:fixed;
  z-index:90;
  left:0;
  top:0;
  width:var(--size,18px);
  height:var(--size,18px);
  pointer-events:none;
  transform:translate(-50%,-50%);
  animation:pieceFly 1.05s ease-out forwards;
}
.piece.packet{
  border-radius:3px 3px 5px 5px;
  background:linear-gradient(145deg,#c72c31,#8a0e13);
  border:1px solid rgba(255,229,172,.65);
  box-shadow:0 7px 16px rgba(82,4,7,.18);
}
.piece.packet::before{
  content:"";
  position:absolute;
  left:18%;
  right:18%;
  top:15%;
  height:1px;
  background:rgba(255,225,163,.7);
}
.piece.coin{
  width:calc(var(--size)*.72);
  height:calc(var(--size)*.72);
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#f7e6b4,#d5ad5d 56%,#a87d2f);
  border:1px solid rgba(255,241,202,.75);
  box-shadow:0 4px 12px rgba(122,76,20,.18);
}
.piece.spark{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--gold-soft);
  box-shadow:0 0 11px rgba(239,207,135,.7);
}
@keyframes pieceFly{
  0%{
    opacity:0;
    transform:translate(-50%,-50%) scale(.55) rotate(0deg);
  }
  18%{opacity:1}
  100%{
    opacity:0;
    transform:
      translate(calc(-50% + var(--x)),calc(-50% + var(--y)))
      scale(.98)
      rotate(var(--r));
  }
}

@media(max-width:900px){
  .hero{min-height:auto}
  .hero-inner{
    grid-template-columns:1fr;
    gap:28px;
    padding:120px 0 62px;
  }
  .visual{min-height:440px}
  .orbit{width:390px;height:390px}
  .orbit-inner{width:340px;height:340px}
  .seal-wrap{transform:scale(.93)}
  .panel{padding:52px}
  .cards{grid-template-columns:1fr}
}

@media(max-width:560px){
  .shell{width:min(var(--shell),calc(100% - 28px))}
  .site-header{padding-top:22px}
  .header-meta{font-size:8px}
  .hero-inner{padding-top:108px}
  h1{font-size:clamp(52px,15vw,74px)}
  .hero-lead{font-size:15px;line-height:1.9}
  .visual{min-height:350px}
  .orbit{width:300px;height:300px}
  .orbit-inner{width:262px;height:262px}
  .seal-wrap{width:270px;height:320px;transform:scale(.84)}
  .seal{width:230px;height:280px}
  .seal-text{font-size:48px}
  .base-line{width:300px;bottom:56px}
  .base-line.b{width:250px;bottom:37px}
  .message,.closing{padding:74px 0}
  .panel{
    min-height:390px;
    padding:34px 24px;
    border-radius:22px;
  }
  .panel h2,.closing h2{font-size:34px}
  .panel-mark{font-size:210px}
  .card{padding:24px}
  .closing-inner{
    grid-template-columns:1fr;
    gap:28px;
  }
  .closing-copy{text-align:left}
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
  .reveal{opacity:1;transform:none}
}
