@charset "UTF-8";
/* Bundled OFL brush subset also keeps the brand consistent on phones. */
@font-face{font-family:'Yijian Brush';src:url('fonts/yijian-headings.woff2') format('woff2');font-weight:400;font-display:swap}
/* Local-only preference; no commercial font files are bundled or downloaded.
   KaiTi is an interim fallback, not a recreation of Shangwei handwriting. */
@font-face {
  font-family: "Yijian Hand";
  src: local("汉仪尚巍手书W"), local("HYShangWeiShouShuW");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f7f2e8;
  --ink: #332a24;
  --red: #ad3b2d;
  --hand: "Yijian Hand", "KaiTi", "STKaiti", "Kaiti SC", serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23916c4c' opacity='.28' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.skip-link { position: fixed; top: -80px; left: 15px; padding: 12px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }
.masthead { height: 100px; max-width: 1600px; margin: auto; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
 .brand-name { margin: 0; font: 38px 'Yijian Brush',KaiTi,serif; letter-spacing: 3px; white-space: nowrap; }
nav { display: flex; gap: 30px; align-items: center; }
.workshop-link { font-size: 13px; color: #746353; white-space: nowrap; }
.workshop-link span { padding-left: 5px; }
.motion-toggle { display: flex; gap: 9px; align-items: center; border: 0; background: none; color: #746353; font-size: 12px; padding: 10px 0; }
.toggle-track { width: 27px; height: 15px; border-radius: 9px; background: var(--red); padding: 3px; }
.toggle-track i { display: block; width: 9px; height: 9px; background: #fff5e7; border-radius: 50%; transform: translateX(12px); transition: transform .2s; }
.motion-toggle[aria-pressed=false] .toggle-track { background: #b5aa9c; }
.motion-toggle[aria-pressed=false] i { transform: translateX(0); }
.layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 60% 40%; min-height: 640px; height: calc(100svh - 100px); max-height: 1000px; padding-bottom: 35px; }
.story { position: relative; min-width: 0; display: flex; align-items: center; overflow: visible; }
.artwork { position: relative; width: 100%; height: 100%; min-height: 0; margin: 0 auto; user-select: none; }
.paper-scene { display: block; width: 100%; height: 100%; overflow: visible; }
.paper-layer { transform-origin: 340px 342px; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.shadow-deep { filter: drop-shadow(1px 6px 3px #591b2559); }
.shadow-paper { filter: drop-shadow(2px 5px 2px #722a2545); }
.rim-shadow { filter: drop-shadow(0 12px 12px #61412725); }
.entry { display: flex; align-items: center; padding: 35px clamp(30px, 4.5vw, 72px); outline: none; }
.entry-inner { max-width: 340px; width: 100%; margin: auto; }
h2 { font: 400 27px var(--sans); letter-spacing: 1px; margin: 0 0 37px; }
.form-preview label { display: block; font-size: 14px; margin: 22px 0 10px; }
.input-shell { display: flex; align-items: center; gap: 13px; height: 54px; border: 1px solid #d9cdbb; background: #fcf8ef80; padding: 0 16px; border-radius: 3px; }
.input-shell svg { width: 18px; height: 21px; fill: none; stroke: #8a7662; stroke-width: 1.3; flex-shrink: 0; }
.input-shell input { border: 0; outline: 0; background: none; min-width: 0; width: 100%; color: #726554; font-size: 14px; opacity: 1; }
.input-shell input::placeholder { color: #938574; opacity: 1; }
.preview-note { font-size: 12px; color: #81705f; line-height: 1.7; margin: 17px 0 23px; }
.primary-button { width: 100%; height: 53px; border: 0; border-radius: 3px; background: var(--red); color: #fff4e2; font-size: 16px; letter-spacing: 3px; transition: background .2s; }
.primary-button:hover { background: #962e25; }
.entry-message { margin-top: 20px; font-size: 12px; color: #81705f; }
.entry-message[hidden] { display: none; }
.entry-message p { margin: 0; line-height: 1.8; }
.entry-message a { color: #a33b2e; margin-left: 3px; text-decoration: underline; text-underline-offset: 3px; }
.entry.is-previewing .entry-message { animation: unfold .35s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Separate SVG sheets occupy real CSS 3D planes; no WebGL dependency. */
.artwork { perspective: 1100px; perspective-origin: 50% 43%; }
.artwork::before { content: ""; position: absolute; width: 63%; height: 9%; left: 20%; bottom: 10%; border-radius: 50%; background: #6e3b2833; filter: blur(19px); transform: rotate(-7deg); pointer-events: none; }
.paper-stack { position: absolute; inset: 3% 2% 5%; transform-style: preserve-3d; transform: rotateX(var(--pitch, 11deg)) rotateY(var(--yaw, -12deg)) rotateZ(-4deg); transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.paper-scene, .depth-plane { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.depth-plane { pointer-events: none; }
.rim-front { filter: drop-shadow(1px 3px 1px #52221944); }
.shadow-deep { filter: drop-shadow(3px 8px 2px #591b2570); }
.shadow-paper { filter: drop-shadow(2px 5px 1px #722a2570); }
#paper-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
/* The existing paper sculpture unfolds in place, not a full-screen loading layer.
   Only JS adds intro-active; without JS the complete page stays visible. */
.intro-control { position: absolute; right: 7%; bottom: 14px; z-index: 6; border: 0; border-bottom: 1px solid #bca48b; padding: 9px 2px; background: transparent; color: #806b58; font-size: 12px; }
.intro-control[hidden] { display: none; }
.intro-control:disabled { opacity: .45; }
.intro-active .paper-stack { animation: intro-camera 2.8s cubic-bezier(.19,.65,.25,1) both; transition: none; }
.intro-active .paper-scene { animation: intro-base 1.35s cubic-bezier(.22,.7,.25,1) both; transform-origin: 50% 50%; }
.intro-active .depth-plane { animation: intro-sheet 1.3s cubic-bezier(.18,.72,.22,1) var(--sheet-delay) both; transform-origin: 50% 50%; }
.intro-active .artwork::before { animation: intro-shadow 2.4s ease-out both; }
.intro-active .brand { animation: intro-ink 1.1s .25s ease-out both; }
.intro-active .entry-inner { animation: intro-entry .75s 2.05s ease-out both; }
@keyframes intro-camera {
  from { transform: rotateX(27deg) rotateY(-28deg) rotateZ(-10deg) scale(.72); }
  to { transform: rotateX(11deg) rotateY(-12deg) rotateZ(-4deg) scale(1); }
}
@keyframes intro-base {
  0% { opacity: 0; transform: scaleX(.035) scaleY(.78); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}
@keyframes intro-sheet {
  0% { opacity: 0; transform: translateZ(calc(var(--sheet-z) + 90px)) rotateY(var(--fold-angle)) scaleX(.1) scaleY(.82); }
  24% { opacity: 1; }
  100% { opacity: 1; transform: translateZ(var(--sheet-z)) rotateY(0deg) scale(1); }
}
@keyframes intro-shadow { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes intro-ink { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-entry { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .masthead { height: 85px; }
  .layout { grid-template-columns: 54% 46%; height: calc(100svh - 85px); min-height: 600px; }
  .entry { padding: 35px 28px; }
  .brand-name { font-size: 33px; }
}
@media (max-width: 720px) {
  .masthead { height: 76px; padding: 0 6%; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 28px; letter-spacing: 1px; }
  .brand { gap: 8px; }
  nav { gap: 18px; }
  .workshop-link { font-size: 12px; }
  .motion-toggle { font-size: 12px; }
  .layout { display: block; height: auto; min-height: 0; max-height: none; padding-bottom: 50px; }
  .story { height: 440px; overflow: hidden; }
  .paper-stack { inset: 0 4%; }
  .artwork { width: 100%; }
  .entry { padding: 32px 8% 16px; }
  .entry-inner { max-width: 380px; }
  h2 { font-size: 25px; margin-bottom: 28px; }
}
@media (max-width: 380px) {
  .story { height: 420px; }
  .workshop-link { font-size: 11px; }
  nav { gap: 12px; }
  .brand-name { font-size: 26px; letter-spacing: 0; }
  .brand { gap: 5px; }
  .brand img { width: 26px; height: 26px; }
  .motion-toggle { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #paper-trail { display: none; }
  .paper-stack { transition: none; }
  .paper-layer { transform: none !important; }
}
body.motion-off .paper-layer { transform: none !important; transition: none; }
body.motion-off .entry-message { animation: none; }
body.motion-off #paper-trail { display: none; }
body.motion-off .paper-stack { transition: none; }
