/* Full-viewport collection adapter. All demo sources remain untouched. */
.worlds-page{--rail-height:70px;--world-gutter:clamp(24px,5vw,80px);overflow-x:clip}
.worlds-page main{overflow:visible}
.worlds-intro{display:grid;grid-template-columns:1.2fr 1fr;align-items:end;gap:60px;padding-block:70px 76px}
.worlds-intro h1{font-size:clamp(40px,5.4vw,76px);line-height:1.04;letter-spacing:-.055em;margin:0}
.worlds-intro h1 span{color:var(--blue,#2945ab)}
.worlds-intro p{font-size:18px;max-width:40ch;margin:0 0 12px}.worlds-intro p:first-child{font-weight:700}
.worlds-intro a{display:inline-block;font-size:15px;margin-top:8px;text-underline-offset:5px}
.worlds-collection{position:relative;isolation:isolate}
.worlds-rail{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 20px;min-height:70px;background:#202326;color:#fff;border-bottom:1px solid #555d67;font:500 14px/1.25 Arial,sans-serif}
.worlds-rail nav{display:flex;gap:6px;min-width:0}.worlds-rail a{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 13px;text-decoration:none;color:#fff;border-radius:2px;white-space:nowrap}.worlds-rail a span{font-size:11px;color:#ccd6ed}
.worlds-rail a:hover{background:#363d4b}.worlds-rail a[aria-current]{color:#202326;background:#f4f4f1}.worlds-rail a[aria-current] span{color:#4a5260}
.worlds-motion{min-height:44px;flex:none;padding:9px 12px;border:1px solid #a7b1c4;background:none;color:white;font:inherit;cursor:pointer;border-radius:2px}.worlds-motion:hover{background:#363d4b}
.worlds-rail :focus-visible{outline:3px solid #c5d2ff;outline-offset:2px}
.world-anchor{height:0;scroll-margin-top:var(--rail-height)}.world-anchor:focus{outline:none}
.world-scene{position:relative;margin:0;padding:0;min-height:calc(100svh - var(--rail-height));isolation:isolate}
/* Pin a tall chapter only after its footer has scrolled into view. Native sticky
   uses the same positions in either direction. svh stays steady while mobile chrome moves. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* A chapter only stays pinned through the arrival of its immediate successor. */
  .worlds-ready:not(.worlds-reduced) .world-scene:not(:last-child) {
    margin-bottom: calc(var(--rail-height) - 100svh);
  }
  .worlds-ready:not(.worlds-reduced) .world-scene:not(:last-child)::after {
    content: "";
    display: block;
    height: calc(100svh - var(--rail-height));
    pointer-events: none;
  }
  .worlds-ready:not(.worlds-reduced) .world-surface {
    position: sticky;
    top: min(var(--rail-height), calc(100svh - var(--scene-height)));
  }
}
.worlds-page .world-surface{min-height:calc(100svh - var(--rail-height));display:flex;flex-direction:column;overflow:clip;padding:0 var(--world-gutter);box-shadow:0 -12px 42px #151a2526}
.worlds-page .world-surface[data-design-root] .world-brand{min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid color-mix(in srgb,currentColor 25%,transparent);padding-block:20px}
.worlds-page .world-surface[data-design-root] .world-kind{font:500 13px/1.4 Arial,sans-serif;max-width:28ch;text-align:right}
.worlds-page .world-surface[data-design-root] .world-opening{flex:1;display:flex;flex-direction:column;justify-content:center;padding-block:25px}
.worlds-page .world-surface[data-design-root] .world-opening>section{width:100%;margin:0;padding:0}
.worlds-page .world-surface[data-design-root] .world-title{max-width:none;margin:0}
.worlds-page .world-surface[data-design-root] .world-opening figure{margin:0}
.worlds-page .world-surface[data-design-root] .world-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent);padding:16px 0 20px;min-height:88px;font:400 13px/1.45 Arial,sans-serif}
.worlds-page .world-surface[data-design-root] .world-footer .world-label{font:700 17px/1.4 Arial,sans-serif;letter-spacing:0;margin:0 0 3px}
.worlds-page .world-surface[data-design-root] .world-footer .world-label span{font-size:11px;font-weight:400;margin-right:10px}.worlds-page .world-surface[data-design-root] .world-footer p{margin:0;font:400 12px/1.45 Arial,sans-serif;max-width:70ch}
.worlds-page .world-surface[data-design-root] .world-explore{display:inline-flex;justify-content:center;align-items:center;flex:none;min-height:48px;border:1px solid currentColor;border-radius:2px;padding:10px 20px;text-decoration:none;font:600 15px/1.4 Arial,sans-serif;color:inherit;transition:box-shadow 180ms,background-color 180ms}
.worlds-page .world-surface[data-design-root] .world-explore:hover{box-shadow:3px 3px 0 currentColor;background:color-mix(in srgb,currentColor 7%,transparent)}
.worlds-page .world-surface a:focus-visible{outline:3px solid var(--demo-ink,var(--ink,#202326));outline-offset:4px}
/* Existing brand typography and composition, scaled to a whole browser scene. */
.worlds-page .world-surface[data-design-root] .d004-hero-top{align-items:center;gap:6vw}.worlds-page .world-surface[data-design-root] .d004-hero .world-title{font-size:clamp(42px,5.5vw,84px);line-height:1.04}.worlds-page .world-surface[data-design-root] .d004-hero .d004-lead{font-size:clamp(17px,1.6vw,23px);margin-block:26px;max-width:34ch}.worlds-page .world-surface[data-design-root] .d004-hero-media img{max-height:54svh;aspect-ratio:1.22;object-fit:cover}.worlds-page .world-surface[data-design-root] .d004-wordmark{font-size:32px}.worlds-page .world-surface[data-design-root] .d004-brand-mark{width:40px;height:40px}
.worlds-page .world-surface[data-design-root] .d004-hero-strip{display:none}
.worlds-page .world-hearth .world-surface[data-design-root] .world-brand{justify-content:center;position:relative;min-height:100px}.worlds-page .world-hearth .world-surface[data-design-root] .world-kind{position:absolute;right:0}.worlds-page .world-surface[data-design-root] .st-brand{font-size:40px}.worlds-page .world-surface[data-design-root] .st-brand-detail{margin-top:8px}.worlds-page .world-surface[data-design-root] .st-hero-copy{padding:0 0 22px}.worlds-page .world-surface[data-design-root] .st-home-hero .world-title{font-size:clamp(42px,4.8vw,69px)}.worlds-page .world-surface[data-design-root] .st-hero-copy .st-intro{font-size:18px;margin:14px auto 18px}.worlds-page .world-surface[data-design-root] .st-photo img{height:clamp(180px,28svh,300px);aspect-ratio:auto;object-position:50% 60%}.worlds-page .world-surface[data-design-root] .st-home-hero figcaption{margin-top:6px}
.worlds-page .world-surface[data-design-root] .d002-hero{grid-template-columns:1fr 1.1fr;gap:5vw}.worlds-page .world-surface[data-design-root] .d002-hero .world-title{font-size:clamp(42px,5.7vw,82px)}.worlds-page .world-surface[data-design-root] .d002-hero p{font-size:clamp(17px,1.55vw,23px);margin-block:24px}.worlds-page .world-surface[data-design-root] .d002-hero-media .d002-room-frame{max-height:53svh}.worlds-page .world-surface[data-design-root] .d002-hero-media img{height:100%;max-height:53svh;object-fit:cover}.worlds-page .world-surface[data-design-root] .d002-room-flower{width:70px;top:-28px;left:-28px}
.worlds-page .world-surface[data-design-root] .d001-hero-copy{padding:0 0 24px;gap:6vw}.worlds-page .world-surface[data-design-root] .d001-hero .world-title{font-size:clamp(42px,4.6vw,65px)}.worlds-page .world-surface[data-design-root] .d001-hero .d001-lead{font-size:18px}.worlds-page .world-surface[data-design-root] .d001-hero .d001-image-frame{height:33svh;aspect-ratio:auto}.worlds-page .world-surface[data-design-root] .d001-hero img{width:100%;height:33svh;object-fit:cover;object-position:50% 48%}.worlds-page .world-surface[data-design-root] .d001-picture figcaption{font-size:12px}
.worlds-page .world-surface[data-design-root] .d003-hero{gap:7vw;grid-template-columns:1.2fr 1fr}.worlds-page .world-surface[data-design-root] .d003-hero .world-title{font-size:clamp(44px,5.5vw,80px)}.worlds-page .world-surface[data-design-root] .d003-lead{font-size:clamp(17px,1.55vw,22px);margin-top:24px}.worlds-page .world-surface[data-design-root] .d003-brief-scene{margin-top:40px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet{animation:none}.worlds-page .world-surface[data-design-root] .d003-brief-spark{animation:none}
.worlds-page .world-surface[data-design-root] .hbr-hero{gap:7vw}.worlds-page .world-surface[data-design-root] .hbr-hero .world-title{font-size:clamp(48px,5.7vw,83px);max-width:9ch}.worlds-page .world-surface[data-design-root] .hbr-photo img{height:49svh;aspect-ratio:auto;object-fit:cover}.worlds-page .world-surface[data-design-root] .hbr-hero-copy>p{font-size:21px}
.worlds-outro{position:relative;padding-block:100px;display:grid;grid-template-columns:1fr 1fr;gap:70px}.worlds-outro h2{font-size:clamp(36px,4.7vw,64px);line-height:1.08;letter-spacing:-.045em;margin:0}.worlds-outro p{font-size:19px;margin:0 0 18px;max-width:42ch}.worlds-overview{display:block;margin-top:22px;font-size:15px;text-underline-offset:5px}.worlds-site-footer{display:flex;gap:24px;flex-wrap:wrap;padding-block:24px;border-top:1px solid #b5bdc8;font-size:13px}.worlds-site-footer span{margin-left:auto}
@media(max-width:900px){
 .worlds-rail{gap:8px;padding-inline:12px}.worlds-rail a{padding-inline:9px}.worlds-rail a span{display:none}.worlds-motion{font-size:12px;padding-inline:8px}
 .worlds-page .world-surface[data-design-root] .world-brand{min-height:88px}.worlds-page .world-surface[data-design-root] .world-kind{font-size:12px}.worlds-page .world-surface[data-design-root] .world-footer{gap:14px}
 .worlds-page .world-surface[data-design-root] .d001-hero-copy{grid-template-columns:1.5fr 1fr}.worlds-page .world-surface[data-design-root] .d001-hero .world-title{font-size:45px}
 .worlds-page .world-surface[data-design-root] .d003-brief-sheet{padding:22px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet h3{font-size:30px}
}
@media(max-width:760px){
 .worlds-page{--rail-height:94px;--world-gutter:22px}
 .worlds-intro{grid-template-columns:1fr;gap:28px;padding-block:44px}.worlds-intro h1{font-size:48px}.worlds-intro p{font-size:16px}
 .worlds-rail{display:block;padding:7px 10px;min-height:94px}.worlds-rail nav{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding-right:92px}.worlds-rail a{min-height:40px;justify-content:center;padding:8px 5px;font-size:12px}.worlds-motion{position:absolute;right:12px;top:24px;width:82px;font-size:11px;line-height:1.25}
 .worlds-page .world-surface[data-design-root] .world-brand{min-height:72px;padding-block:16px;gap:12px}.worlds-page .world-surface[data-design-root] .world-kind{font-size:10px;max-width:19ch}.worlds-page .world-surface[data-design-root] .world-opening{padding-block:24px}
 .worlds-page .world-surface[data-design-root] .world-footer{min-height:96px;padding:16px 0;gap:14px}.worlds-page .world-surface[data-design-root] .world-footer .world-label{font-size:16px}.worlds-page .world-surface[data-design-root] .world-footer .world-label span{font-size:10px;margin-right:6px}.worlds-page .world-surface[data-design-root] .world-footer p{font-size:10px;max-width:26ch}.worlds-page .world-surface[data-design-root] .world-explore{font-size:12px;min-height:44px;padding:8px 12px}
 .worlds-page .world-surface[data-design-root] .d004-hero-top,.worlds-page .world-surface[data-design-root] .d002-hero,.worlds-page .world-surface[data-design-root] .d003-hero,.worlds-page .world-surface[data-design-root] .hbr-hero{grid-template-columns:1fr;gap:24px}
 .worlds-page .world-surface[data-design-root] .d004-brand-mark{height:30px;width:30px}.worlds-page .world-surface[data-design-root] .d004-wordmark{font-size:27px}.worlds-page .world-surface[data-design-root] .d004-hero .world-title{font-size:42px}.worlds-page .world-surface[data-design-root] .d004-hero .d004-lead{font-size:16px;line-height:1.5;margin-block:18px}.worlds-page .world-surface[data-design-root] .d004-actions{gap:10px}.worlds-page .world-surface[data-design-root] .d004-button{font-size:13px;min-height:44px;padding:9px 14px}.worlds-page .world-surface[data-design-root] .d004-hero-media img{height:220px;max-height:none;width:100%;aspect-ratio:auto;object-position:50% 47%}.worlds-page .world-surface[data-design-root] .d004-hero-media figcaption{font-size:10px;margin-top:5px}
 .worlds-page .world-hearth .world-surface[data-design-root] .world-brand{min-height:88px}.worlds-page .world-hearth .world-surface[data-design-root] .world-kind{display:none}.worlds-page .world-surface[data-design-root] .st-brand{font-size:35px}.worlds-page .world-surface[data-design-root] .st-brand small{font-size:9px}.worlds-page .world-surface[data-design-root] .st-home-hero .world-title{font-size:42px}.worlds-page .world-surface[data-design-root] .st-hero-copy{padding-bottom:24px}.worlds-page .world-surface[data-design-root] .st-hero-copy .st-intro{font-size:16px;margin:16px auto 18px}.worlds-page .world-surface[data-design-root] .st-action{min-height:44px;font-size:16px;padding:8px 18px}.worlds-page .world-surface[data-design-root] .st-photo img{height:230px;max-height:none;object-position:50% 60%}.worlds-page .world-surface[data-design-root] .st-home-hero figcaption{font-size:10px;gap:4px}
 .worlds-page .world-surface[data-design-root] .d002-brand{gap:8px}.worlds-page .world-surface[data-design-root] .d002-brand svg{width:28px;height:28px}.worlds-page .world-surface[data-design-root] .d002-brand strong{font-size:25px}.worlds-page .world-surface[data-design-root] .d002-brand small{font-size:8px}.worlds-page .world-surface[data-design-root] .d002-hero .world-title{font-size:42px;line-height:1.06}.worlds-page .world-surface[data-design-root] .d002-hero p{font-size:16px;margin:18px 0;line-height:1.5}.worlds-page .world-surface[data-design-root] .d002-button{font-size:13px;min-height:44px;padding:10px 16px}.worlds-page .world-surface[data-design-root] .d002-room-flower{width:45px;top:-13px;left:-9px}.worlds-page .world-surface[data-design-root] .d002-room-frame,.worlds-page .world-surface[data-design-root] .d002-hero-media img{height:210px;max-height:none}.worlds-page .world-surface[data-design-root] .d002-room figcaption{font-size:10px}
 .worlds-page .world-surface[data-design-root] .d001-brand strong{font-size:22px}.worlds-page .world-surface[data-design-root] .d001-brand small{font-size:8px}.worlds-page .world-surface[data-design-root] .d001-hero-copy{grid-template-columns:1fr;gap:16px;padding-bottom:24px}.worlds-page .world-surface[data-design-root] .d001-hero .world-title{font-size:42px}.worlds-page .world-surface[data-design-root] .d001-hero .d001-lead{font-size:16px;margin:0 0 16px;max-width:33ch}.worlds-page .world-surface[data-design-root] .d001-button{min-height:44px;padding:10px 16px;font-size:13px}.worlds-page .world-surface[data-design-root] .d001-hero .d001-image-frame,.worlds-page .world-surface[data-design-root] .d001-hero img{height:210px}.worlds-page .world-surface[data-design-root] .d001-picture figcaption{font-size:10px}
 .worlds-page .world-surface[data-design-root] .d003-brand-word{font-size:36px}.worlds-page .world-surface[data-design-root] .d003-brand-description{font-size:10px}.worlds-page .world-surface[data-design-root] .d003-hero .world-title{font-size:45px;line-height:1.03}.worlds-page .world-surface[data-design-root] .d003-lead{font-size:16px;margin-top:18px;line-height:1.5}.worlds-page .world-surface[data-design-root] .d003-actions{margin-top:18px;gap:8px}.worlds-page .world-surface[data-design-root] .d003-button{font-size:12px;min-height:44px;padding:9px 10px}.worlds-page .world-surface[data-design-root] .d003-brief-scene{margin-top:10px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet{padding:16px 20px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet h3{font-size:24px}.worlds-page .world-surface[data-design-root] .d003-brief-heading{gap:12px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet p,.worlds-page .world-surface[data-design-root] .d003-brief-sheet dl{font-size:10px}.worlds-page .world-surface[data-design-root] .d003-brief-sheet dl>div{padding-block:7px}.worlds-page .world-surface[data-design-root] .d003-brief-spark{width:34px;right:12px;top:-24px}
 .worlds-page .world-surface[data-design-root] .hbr-brand span{font-size:30px}.worlds-page .world-surface[data-design-root] .hbr-brand small{font-size:9px}.worlds-page .world-surface[data-design-root] .hbr-hero .world-title{font-size:45px}.worlds-page .world-surface[data-design-root] .hbr-hero-copy{padding:0}.worlds-page .world-surface[data-design-root] .hbr-hero-copy>p{font-size:16px;margin-top:16px;max-width:30ch}.worlds-page .world-surface[data-design-root] .hbr-actions{margin-top:18px;gap:10px}.worlds-page .world-surface[data-design-root] .hbr-button{font-size:13px;min-height:44px;padding:8px 14px}.worlds-page .world-surface[data-design-root] .hbr-photo img{height:230px}.worlds-page .world-surface[data-design-root] .hbr-photo figcaption{font-size:10px}
 .worlds-outro{grid-template-columns:1fr;gap:26px;padding-block:64px}.worlds-outro p{font-size:17px}.worlds-site-footer{font-size:12px}.worlds-site-footer span{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.worlds-page *, .worlds-page *::before,.worlds-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.worlds-reduced *, .worlds-reduced *::before,.worlds-reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

html:has(.worlds-page){scroll-padding-top:0}
.worlds-page .world-surface[data-design-root] .world-opening>:is(section,div){width:100%;margin:0;padding:0}
/* Keep small-screen scenes compact without locking content into a clipped height. */
@media(max-width:760px){
 .worlds-page .world-surface[data-design-root] .world-opening{padding-block:18px}
 .worlds-page .world-surface[data-design-root] .st-photo img{height:210px}
 .worlds-page .world-surface[data-design-root] .d003-brief-scene{margin-bottom:0;margin-top:0}
 .worlds-page .world-surface[data-design-root] .d003-brief-heading{margin-block:12px;gap:8px}
 .worlds-page .world-surface[data-design-root] .d003-note-label{padding-bottom:8px;font-size:11px}
 .worlds-page .world-surface[data-design-root] .d003-brief-lines>div{font-size:13px;padding-block:5px}
 .worlds-page .world-surface[data-design-root] .d003-brief-scene>.d003-spark{width:30px;height:30px;top:-27px}
 .worlds-page .world-surface[data-design-root] .d003-brief-annotation{font-size:12px}
}
@media(min-width:761px) and (max-height:800px){
 .worlds-page .world-surface[data-design-root] .world-brand{min-height:80px;padding-block:12px}
 .worlds-page .world-surface[data-design-root] .world-opening{padding-block:18px}
 .worlds-page .world-surface[data-design-root] .world-footer{min-height:80px;padding-block:12px}
 .worlds-page .world-surface[data-design-root] .st-home-hero .world-title{font-size:52px}
 .worlds-page .world-surface[data-design-root] .st-hero-copy{padding-bottom:14px}
 .worlds-page .world-surface[data-design-root] .st-hero-copy .st-intro{margin-block:10px 14px}
 .worlds-page .world-surface[data-design-root] .st-photo img{height:23svh}
 .worlds-page .world-surface[data-design-root] .d001-hero .world-title{font-size:52px}
 .worlds-page .world-surface[data-design-root] .d003-brief-scene{margin-top:20px}
}

.worlds-page .world-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px}
.worlds-page .world-task{display:inline-flex;align-items:center;min-height:44px;padding-block:4px;color:inherit;text-decoration:underline;text-underline-offset:.22em;font:600 15px/1.4 Arial,sans-serif}
.worlds-page .world-photo-credit{font-size:.8rem;line-height:1.4}
.worlds-page .world-surface[data-design-root] .d002-kitchen{padding:0}
.worlds-page .world-surface[data-design-root] .d004-window{position:relative}
.worlds-page .world-surface[data-design-root] .d004-window-sign .world-title{max-width:12ch}
@media(max-width:740px){.worlds-page .world-surface[data-design-root] .world-footer{flex-wrap:wrap}.worlds-page .world-actions{gap:6px 16px}}

/* Forge's garden-room photograph fills its chapter from top to bottom. */
.worlds-page .world-forge .world-surface .d001-hero {min-height:clamp(25rem,57svh,42rem)}
.worlds-page .world-forge .world-surface .d001-hero .d001-image-frame,
.worlds-page .world-forge .world-surface .d001-hero img {height:100%}
