/* Below the forest, the story continues on warm paper. All rules are scoped. */
.storybook {
  --story-paper:#fbf7e9;
  --story-ink:#41432b;
  --story-muted:#67684c;
  --story-rust:#a44729;
  --story-green:#edf0d9;
  position:relative;
  color:var(--story-ink);
  background:var(--story-paper);
  font-size:20px;
  line-height:1.65;
  overflow:hidden;
}
.storybook::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:70px;
  pointer-events:none;
  background:linear-gradient(#e6e9cd55,transparent);
}
.storybook .story-width { width:min(1120px,calc(100% - 112px)); margin-inline:auto; }
.storybook .story-chapter { position:relative; scroll-margin-top:30px; }
.storybook h2 { margin:0 0 22px; font-size:clamp(34px,4vw,54px); font-weight:700; line-height:1.2; letter-spacing:-.7px; }
.storybook h3 { margin:0 0 6px; font-size:29px; font-weight:700; line-height:1.35; }
.storybook p { margin:0 0 18px; }
.storybook a { color:var(--story-rust); text-decoration-color:#a4472966; text-underline-offset:5px; text-decoration-thickness:1px; }
.storybook a:hover { text-decoration-color:currentColor; }
.storybook a:focus-visible,.storybook summary:focus-visible { outline:3px solid #7a8033; outline-offset:7px; border-radius:3px; }
.storybook .story-eyebrow { color:var(--story-rust); font-size:17px; margin-bottom:15px; }
.storybook .story-text-link { display:inline-flex; align-items:center; gap:14px; font-size:18px; font-weight:700; }
.storybook .story-text-link span[aria-hidden] { font-family:Arial,sans-serif; }
.storybook .story-overview { padding:100px 0 0; }
.storybook .story-overview-layout { display:grid; grid-template-columns:1fr 1.1fr; align-items:center; gap:50px; }
.storybook .story-ar { margin:0; position:relative; z-index:1; }
.storybook .story-ar img { display:block; width:100%; height:auto; }
.storybook .story-ar figcaption { margin:16px 12px 0; text-align:center; color:var(--story-muted); font-size:17px; }
.storybook .story-meadow { position:relative; aspect-ratio:2.5; margin-top:-40px; mask-image:linear-gradient(to bottom,transparent,#000 1.4vw,#000 96%,transparent); pointer-events:none; }
.storybook .story-overview-copy { position:relative; z-index:1; min-width:0; }
.storybook .story-overview-copy p:not(.story-eyebrow) { max-width:510px; }
.storybook .story-overview-copy .story-text-link { margin-top:10px; }
.storybook .story-margin-note { position:absolute; right:12%; bottom:52px; font-size:18px; color:#5b6541; transform:rotate(-3deg); }
.storybook .story-film { padding:90px 0 50px; background:var(--story-paper); }
.storybook .story-film > .story-width { width:min(1440px,calc(100% - 48px)); }
.storybook .story-centered-heading { text-align:center; max-width:780px; margin-inline:auto; }
.storybook .story-centered-heading > p:not(.story-eyebrow) { color:var(--story-muted); }
.storybook .story-cinema { position:relative; margin:42px 0 0; padding-bottom:12px; }
.storybook .story-screen { position:relative; z-index:1; width:100%; aspect-ratio:1254/1353; margin:auto; }
.storybook .story-tree-frame { position:absolute; z-index:2; inset:0; width:100%; height:100%; pointer-events:none; }
.storybook .story-screen video { position:absolute; z-index:3; left:20.6539%; top:24.5614%; width:70.4944%; height:36.7624%; display:block; object-fit:contain; background:#24291d; border-radius:0; }
.storybook .story-media-links { margin-top:18px; position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:20px 34px; flex-wrap:wrap; font-size:17px; }
.storybook .story-media-links a { display:inline-flex; gap:7px; align-items:center; }
.storybook .story-media-links a span[aria-hidden] { font-family:Arial,sans-serif; }
.storybook .story-process { padding:100px 0 105px; }
.storybook .story-process-heading { max-width:740px; }
.storybook .story-process-heading > p:not(.story-eyebrow) { color:var(--story-muted); }
.storybook .story-team { padding:105px 0 75px; }
.storybook .story-team-note { text-align:center; color:var(--story-muted); font-size:18px; }
.storybook .story-demo { padding:70px 0 40px; }
.storybook .story-demo-layout { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px; }
.storybook .story-demo-copy > p:not(.story-eyebrow) { color:var(--story-muted); }
.storybook .story-demo-placeholder { position:relative; aspect-ratio:16/9; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px; background:#f3efd9; border:1px solid #c8cda7; border-radius:44% 4% 3% 3% / 3% 5% 4% 4%; box-shadow:6px 7px 0 #e8e8cf80; }

.storybook .story-demo-label { font-size:30px; color:var(--story-ink); }
.storybook .story-demo-status { color:var(--story-rust); font-size:17px; }
.storybook .story-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid #dce0c5; padding:28px max(40px,calc((100% - 1120px)/2)); font-size:15px; }
.storybook .story-footer p { margin:0; display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; }
.storybook .story-footer strong { font-size:21px; }
.storybook .story-footer a { white-space:nowrap; }
.storybook .story-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (min-width:1700px) {
  .storybook .story-meadow { background-size:100% auto; }
}
@media (max-width:1000px) {
  .storybook .story-width { width:calc(100% - 72px); }
  .storybook .story-overview { padding-top:80px; }
  .storybook .story-overview-layout { gap:25px; }
  .storybook .story-margin-note { right:7%; font-size:16px; }
}
@media (max-width:700px) {
  .storybook { font-size:18px; }
  .storybook .story-width { width:calc(100% - 44px); }
  .storybook h2 { font-size:35px; letter-spacing:-.4px; }
  .storybook h3 { font-size:25px; }
  .storybook .story-eyebrow { font-size:15px; }
  .storybook .story-overview { padding:70px 0 0; }
  .storybook .story-overview-layout { grid-template-columns:1fr; gap:35px; }
  .storybook .story-ar { width:min(100%,440px); margin:auto; }
  .storybook .story-ar figcaption { font-size:15px; }
  .storybook .story-overview-copy p:not(.story-eyebrow) { max-width:500px; }
  .storybook .story-meadow { margin-top:15px; background-position:center bottom; background-size:100% auto; }
  .storybook .story-margin-note { left:22px; right:22px; bottom:15px; text-align:center; font-size:16px; transform:none; }
  .storybook .story-film { padding:66px 0 50px; }
  .storybook .story-cinema { margin-top:30px; }
  .storybook .story-screen { width:calc(100% + 32px); margin-left:-16px; }
  .storybook .story-media-links { gap:14px 22px; font-size:16px; }
  .storybook .story-process { padding:65px 0 72px; }
  .storybook .story-team { padding:74px 0 55px; }
  .storybook .story-demo { padding:45px 0 25px; }
  .storybook .story-demo-layout { grid-template-columns:1fr; gap:25px; }
  
  .storybook .story-footer { flex-direction:column; align-items:flex-start; padding:25px 22px; font-size:14px; gap:18px; }
  .storybook .story-footer p { flex-direction:column; align-items:flex-start; gap:5px; }
}
@media (prefers-reduced-motion:reduce) {
  .storybook * { scroll-behavior:auto; }
}

/* Page edge: an irregular paper silhouette meets the forest floor. */
.storybook { margin-top:-24px; padding-top:24px; clip-path:polygon(0 7px,3% 12px,6% 5px,10% 11px,14% 4px,18% 9px,22% 2px,27% 8px,31% 4px,36% 11px,40% 4px,44% 8px,49% 2px,54% 9px,59% 5px,63% 11px,67% 6px,72% 10px,76% 3px,81% 9px,85% 4px,90% 10px,95% 3px,100% 8px,100% 100%,0 100%); }

/* A quiet author page, with the original photographs in paper frames. */
.storybook .story-team-portraits { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px; list-style:none; padding:0; margin:52px 0 45px; }
.storybook .story-team-portraits figure { margin:0; text-align:center; }
.storybook .story-photo-frame { position:relative; padding:10px; border:1px solid #c1bd9355; border-radius:4px 2px 5px 3px; background:linear-gradient(130deg,#fffef5,#f0ead3); box-shadow:1px 4px 13px #62634017; transform:rotate(-1.2deg); }
.storybook .story-team-portraits li:nth-child(even) .story-photo-frame { transform:rotate(1.2deg); }
.storybook .story-photo-frame::before { content:""; position:absolute; z-index:2; width:64px; height:22px; top:-10px; left:calc(50% - 32px); transform:rotate(-5deg); background:repeating-linear-gradient(90deg,#c6bd8b70 0 2px,#dcd1a590 2px 4px); clip-path:polygon(2% 0,98% 3%,97% 19%,100% 34%,97% 48%,100% 65%,97% 80%,99% 100%,0 95%,3% 78%,0 62%,3% 45%,0 28%); }
.storybook .story-photo { position:relative; aspect-ratio:4/5; overflow:hidden; border-radius:1px; }
.storybook .story-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.storybook .photo-lyra img { transform:scale(1.65); transform-origin:50% 68%; }
.storybook .photo-yufei img { object-position:50% 45%; }
.storybook .photo-haoran img { object-position:50% 42%; }
.storybook .photo-xiwen img { object-position:52% 45%; }
.storybook .story-person-name,.storybook .story-person-role { display:block; }
.storybook .story-person-role { margin-top:4px; font-size:16px; line-height:1.4; color:var(--story-muted); }
.storybook .story-team-portraits figcaption { margin-top:22px; font-size:26px; color:#5a6239; }
@media (max-width:800px) {
 .storybook .story-team-portraits { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; }
 .storybook .story-photo-frame { padding:7px; }
 .storybook .story-person-role { font-size:13px; }
 .storybook .story-team-portraits figcaption { font-size:23px; margin-top:15px; }
}

/* Every assignment is a chapter of the same book, with its own pages. */
.storybook .story-assignment-list { margin-top:42px; }
.storybook .story-assignment { border-top:1px solid #d3d8bb; }
.storybook .story-assignment:last-child { border-bottom:1px solid #d3d8bb; }
.storybook .story-assignment > summary { display:grid; grid-template-columns:88px 48px minmax(0,1fr) 26px; align-items:center; gap:20px; padding:27px 0; list-style:none; cursor:pointer; }
.storybook .story-assignment > summary::-webkit-details-marker { display:none; }
.storybook .story-chapter-buddy { display:block; width:88px; height:88px; mix-blend-mode:darken; }
.storybook .story-chapter-buddy svg { display:block; width:100%; height:100%; overflow:hidden; }
.storybook .story-assignment-number { font-size:23px; color:var(--story-rust); }
.storybook .story-assignment-heading { display:flex; align-items:center; justify-content:space-between; gap:16px 30px; min-width:0; }
.storybook .story-assignment-title { font-size:25px; line-height:1.35; }
.storybook .story-assignment-status { flex-shrink:0; font-size:16px; color:var(--story-muted); }
.storybook .story-assignment-mark { display:block; color:#66723f; text-align:center; font:27px/1 Arial,sans-serif; transition:transform .18s ease; }
.storybook .story-assignment[open] > summary .story-assignment-mark { transform:rotate(45deg); }
.storybook .story-assignment[open] > summary .story-assignment-title { color:var(--story-rust); }
.storybook .story-assignment-preview { padding:3px 0 24px 176px; }
.storybook .story-slide-book { margin:0; outline-offset:8px; }
.storybook .story-slide-book:focus-visible { outline:3px solid #7a8033; }
.storybook .story-slide-enlarge { display:block; background:#fff; box-shadow:0 4px 20px #55552e14; outline-offset:7px; }
.storybook .story-slide-image { display:block; width:100%; height:auto; aspect-ratio:var(--slide-ratio,16 / 9); object-fit:contain; }
.storybook .story-slide-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 0 4px; font-size:17px; }
.storybook .story-page-controls { align-items:center; gap:16px; }
.storybook .story-page-controls:not([hidden]) { display:flex; }
.storybook .story-page-controls button { color:var(--story-ink); border:1px solid #c6cbaa; border-radius:50%; width:44px; height:44px; background:transparent; font:24px/1 Arial,sans-serif; cursor:pointer; }
.storybook .story-page-controls button:hover:not(:disabled) { background:#edf0d9; }
.storybook .story-page-controls button:disabled { opacity:.35; cursor:default; }
.storybook .story-page-controls button:focus-visible { outline:3px solid #7a8033; outline-offset:4px; }
.storybook .story-page-count { min-width:66px; text-align:center; font-variant-numeric:tabular-nums; }
.storybook .story-slide-downloads { display:flex; align-items:center; flex-wrap:wrap; gap:12px 28px; font-size:17px; }
.storybook .story-slide-downloads a { white-space:nowrap; }
.storybook .story-slide-downloads button { border:0; border-bottom:1px solid #bdc2a6; border-radius:0; padding:0 0 2px; background:transparent; color:#74785a; -webkit-text-fill-color:#74785a; opacity:1; font:inherit; line-height:1.6; cursor:default; }
.storybook .story-preview-coming { padding-top:0; padding-bottom:30px; }
.storybook .story-preview-coming p { color:var(--story-muted); font-size:17px; margin-bottom:17px; }
@media (max-width:1000px) {
  .storybook .story-assignment-heading { display:block; }
  .storybook .story-assignment-title,.storybook .story-assignment-status { display:block; }
  .storybook .story-assignment-status { margin-top:5px; }
}
@media (max-width:700px) {
  .storybook .story-assignment-list { margin-top:30px; }
  .storybook .story-assignment > summary { grid-template-columns:58px 33px minmax(0,1fr) 20px; gap:9px; padding:23px 0; }
  .storybook .story-chapter-buddy { width:58px; height:58px; }
  .storybook .story-assignment-number { font-size:19px; }
  .storybook .story-assignment-title { font-size:21px; }
  .storybook .story-assignment-status { font-size:14px; }
  .storybook .story-assignment-mark { font-size:25px; }
  .storybook .story-assignment-preview { padding:0 0 24px; }
  .storybook .story-slide-bar { flex-wrap:wrap; justify-content:center; gap:14px; padding-top:18px; }
  .storybook .story-slide-downloads { width:100%; justify-content:center; font-size:16px; gap:12px 24px; }
  .storybook .story-preview-coming { padding-left:0; }
  .storybook .story-preview-coming p { font-size:16px; }
  .storybook .story-preview-coming .story-slide-downloads { justify-content:flex-start; gap:10px 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .storybook .story-assignment-mark { transition:none; }
}


/* Brief reading notes belong to each expanded chapter, alongside its slides. */
.storybook .story-glossary { margin:0 0 28px; padding:18px 22px; border-left:2px solid #c4ccab; background:linear-gradient(90deg,#edf0d955,transparent); }
.storybook .story-glossary-title { margin:0 0 14px; color:var(--story-rust); font-size:18px; letter-spacing:0; }
.storybook .story-glossary dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 28px; margin:0; }
.storybook .story-glossary dt { margin:0 0 4px; color:var(--story-ink); font-size:16px; font-weight:700; line-height:1.4; }
.storybook .story-glossary dd { margin:0; color:var(--story-muted); font-size:16px; line-height:1.5; }
@media (max-width:700px) {
 .storybook .story-glossary { padding:16px; margin-bottom:24px; }
 .storybook .story-glossary dl { grid-template-columns:1fr; gap:14px; }
}

/* The closing page keeps the whole company together. */
.storybook .story-connection { padding:70px 0 20px; }
.storybook .story-connection-copy { position:relative; z-index:1; }
.storybook .story-connection-scene { position:relative; width:100%; max-width:1536px; margin:-160px auto 0; mask-image:linear-gradient(to bottom,transparent,#000 10%,#000 94%,transparent),linear-gradient(to right,transparent,#000 3%,#000 97%,transparent); mask-composite:intersect; }
@media (max-width:700px) {
 .storybook .story-connection { padding:55px 0 10px; }
 .storybook .story-connection-scene { margin-top:-35px; }
}

.storybook .story-connection-art { display:block; width:100%; height:auto; margin:0; }

/* Native lazy images reserve their layout without competing with the hero. */
.storybook .story-meadow > img { position:absolute; bottom:0; left:0; display:block; width:100%; height:auto; }
.storybook .story-chapter-buddy img { display:block; width:100%; height:100%; object-fit:contain; }
.storybook .story-demo-decoration { position:absolute; right:-20px; bottom:-22px; width:145px; height:145px; overflow:hidden; pointer-events:none; }
.storybook .story-demo-decoration img { position:absolute; left:0; bottom:0; width:200%; height:200%; max-width:none; }

/* Keep the film actions in the open paper directly beneath the screen. */
.storybook .story-media-links { position:absolute; z-index:4; top:66%; left:34%; right:13%; margin:0; gap:12px 18px; font-size:clamp(16px,1.4vw,21px); }
.storybook .story-media-links a { min-height:44px; padding:8px 17px; box-sizing:border-box; border:1px solid #a4472977; border-radius:30px; background:#fbf7e9f5; font-weight:700; text-decoration:none; white-space:nowrap; }
.storybook .story-media-links a:hover { background:#f4ead7; border-color:currentColor; }
@media (max-width:900px) {
  .storybook .story-cinema { display:flex; flex-direction:column; }
  .storybook .story-media-links { position:relative; order:-1; inset:auto; margin:0 0 12px; gap:10px; font-size:16px; }
  .storybook .story-media-links a { padding:8px 14px; }
}
@media (max-width:700px) {
  .storybook .story-demo-decoration { width:100px; height:100px; right:-12px; bottom:-16px; }
}
