/* Exact reviewed hierarchy: external full-screen background; one WHITE holder owns text and foreground. */
.writing.writing-scene {--writing-viewport:100vw;--holder-height:440px;--hold-travel:144px;--holder-top:calc((100svh - var(--holder-height))/2);position:relative;isolation:isolate;display:block;width:var(--writing-viewport);margin-inline:calc(50% - var(--writing-viewport)/2);height:calc(100svh + var(--hold-travel));min-height:0;padding:var(--holder-top) 0;border:0;}
.writing-scene .writing-backdrop {position:fixed;inset:0;z-index:0;pointer-events:none;visibility:hidden;}
/* r7 direction sketches: one bold move on a flat ground each. */
.writing-scene .writing-backdrop[data-bg="word"] {background:#f7f3ed;overflow:hidden;}
.writing-scene .bg-word {position:absolute;left:50%;top:0;transform:translate(-50%,-14%);font:400 24vw/1 'Jersey 10',monospace;letter-spacing:.005em;color:#459C9C;white-space:nowrap;}
.writing-scene .writing-backdrop[data-bg="light"] {background:radial-gradient(ellipse 62% 58% at 50% 50%,rgba(255,248,236,.17),rgba(255,248,236,.05) 55%,transparent 75%),#0b1613;}
.writing-scene:has([data-bg="light"]) .writing-holder {box-shadow:0 0 0 1px rgba(255,255,255,.04),0 60px 140px -40px rgba(0,0,0,.65);}
.writing-scene .writing-backdrop[data-bg="world"] {background:#f3ede3;}
.writing-scene .writing-backdrop[data-bg="murmuration"] {background:#f7f3ed;}
.writing-scene .writing-backdrop[data-bg="murmuration"] img {object-position:50% 100%;}
.writing-scene .writing-backdrop .flock {position:absolute;inset:0;width:100%;height:100%;overflow:visible;}
.writing-scene .writing-backdrop .flock-port {display:none;}
/* r10: the dusk sky warms toward the horizon; a short fade keeps the section top edge continuous with the cream above. */
.writing.writing-scene::after {content:"";position:absolute;left:0;right:0;top:0;height:140px;z-index:0;pointer-events:none;background:linear-gradient(#f7f3ed,rgba(247,243,237,0));}
@media (max-aspect-ratio:4/5){.writing-scene .writing-backdrop .flock-land{display:none}.writing-scene .writing-backdrop .flock-port{display:block}}
/* r11: ultrawide (2:1 and wider) has its own art and flock layer, so the join stays in frame. */
.writing-scene .writing-backdrop .flock-ultra {display:none;}
@media (min-aspect-ratio:2/1){.writing-scene .writing-backdrop .flock-land{display:none}.writing-scene .writing-backdrop .flock-ultra{display:block}}
/* r12: super-wide (2.6:1 and wider) has its own art and flock layer; ultrawide art serves 2:1 to 2.6:1. */
.writing-scene .writing-backdrop .flock-super {display:none;}
@media (min-aspect-ratio:13/5){.writing-scene .writing-backdrop .flock-ultra{display:none}.writing-scene .writing-backdrop .flock-super{display:block}}
/* r12 wide anchors, kept as the no-script framing. r13: murmuration.js frame() keeps them when the join is clear of the
   viewport edge and the white holder, and otherwise reframes the image and flock layer together. */
@media (min-aspect-ratio:21/5){.writing-scene .writing-backdrop[data-bg="murmuration"] img{object-position:50% 50%}}
@media (min-aspect-ratio:5/1){.writing-scene .writing-backdrop[data-bg="murmuration"] img{object-position:50% 0%}}
.writing-scene .writing-backdrop picture,.writing-scene .writing-backdrop img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;}
.writing-scene .writing-backdrop[data-bg="planes"] {background:conic-gradient(from 0deg at 50% 50%,#4f7fc8 0 25%,#D37661 0 50%,#dba643 0 75%,#459C9C 0);}
.writing-scene:has([data-bg="planes"]) .writing-holder {box-shadow:0 30px 80px -30px rgba(29,27,24,.35);}
.writing-scene .writing-holder {position:sticky;top:var(--holder-top);z-index:1;width:min(1120px,calc(100% - 64px));height:var(--holder-height);margin:0 auto;background:#fff;border-radius:12px;display:flex;align-items:center;padding:32px;gap:24px;overflow:clip;box-shadow:0 1px 2px rgba(29,27,24,.06),0 28px 64px -28px rgba(29,27,24,.32);}
.writing-scene .writing-content {width:360px;flex:none;position:relative;z-index:1;background:transparent;}
/* Selected live Satoshi section-label treatment, both widths (index.html:262). */
.writing-scene .writing-label {font-family:'Direction',var(--text,Geist,sans-serif);font-size:14px;line-height:12px;font-weight:500;letter-spacing:.01em;text-transform:none;font-synthesis:none;margin:0 0 28px;color:#6b655c;}
.writing-scene .principles-entry {display:block;padding:0;background:transparent;}
.writing-scene .entry-meta {display:flex;gap:20px;align-items:baseline;font:11px/1.5 'Direction',var(--text,Geist,sans-serif);font-synthesis:none;text-transform:uppercase;letter-spacing:.08em;color:#6b655c;margin:0 0 20px;}
.writing-scene .entry-title {font:500 44px/1.06 var(--text,Geist,sans-serif);letter-spacing:-.035em;margin:0;color:#1d1b18;}
.writing-scene .entry-secondary {font:400 17px/1.55 var(--text,Geist,sans-serif);max-width:360px;margin:20px 0 0;color:#1d1b18;}
.writing-scene .writing-art {width:640px;height:440px;flex:none;position:absolute;right:12px;top:0;pointer-events:none;}
.writing-scene .writing-art img,.writing-scene .writing-art canvas {display:block;width:100%;height:100%;object-fit:contain;}
.writing-scene .writing-art canvas {position:absolute;inset:0;opacity:0;}
.writing-scene .writing-art.motion-ready canvas {opacity:1;}
.writing-scene .writing-art.motion-ready img {visibility:hidden;}
.writing-scene .principles-entry:hover .entry-title {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.12em;}
.writing-scene .principles-entry:focus-visible {outline:2px solid #1d1b18;outline-offset:8px;}
@media(min-width:801px) and (max-width:1100px){.writing-scene .writing-holder{padding:28px;gap:16px}.writing-scene .writing-content{width:40%;max-width:320px}.writing-scene .writing-art{width:55%;right:8px}.writing-scene .entry-title{font-size:38px}}
@media(max-width:800px){
 .writing.writing-scene {--holder-height:min(600px,calc(100svh - 48px));--hold-travel:100px;}
 .writing-scene .writing-holder {width:calc(100% - 32px);padding:20px;gap:16px;flex-direction:column;justify-content:center;}
 .writing-scene .writing-content {width:100%;max-width:none;}
 .writing-scene .writing-art {position:relative;right:auto;top:auto;order:-1;width:100%;height:42%;flex:none;}
 .writing-scene .writing-label {margin-bottom:14px;}
 .writing-scene .entry-meta {font-size:10px;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
 .writing-scene .entry-title {font-size:36px;}
 .writing-scene .entry-secondary {font-size:16px;line-height:1.5;margin-top:12px;}
}
@media(max-width:374px){.writing-scene .entry-title{font-size:32px}.writing-scene .writing-holder{padding:16px}.writing-scene .entry-secondary{font-size:15px}}
@media(prefers-reduced-motion:reduce){
 .writing.writing-scene {--hold-travel:0px;}
 .writing-scene .writing-holder {position:relative;top:auto;}
 .writing-scene .writing-backdrop {position:absolute;}
 .writing-scene .writing-art canvas {display:none;}
 .writing-scene .writing-art.motion-ready img {visibility:visible;}
}
