:root{color-scheme:light;background:#d9c8aa}
*{box-sizing:border-box}
html{overflow-x:clip}
body{margin:0;background:#d9c8aa;overflow-x:clip}
.fabric-environment{position:fixed;inset:0;overflow:hidden;z-index:0}
#cloth{display:block;width:100%;height:100%;touch-action:pan-y}
.fabric-daylight{position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(232,207,158,.12),transparent 48%,rgba(77,72,62,.04))}
.fabric-daylight::after{content:'';position:absolute;inset:0;background:repeating-conic-gradient(from 90deg at -12% -20%,transparent 0deg 8deg,rgba(224,193,137,.12) 9deg 12deg,transparent 13deg 20deg);mix-blend-mode:soft-light}
#journey{position:relative;pointer-events:none;z-index:1}
.journey-section{height:120vh;height:120svh}

html{scrollbar-color:#a08c6c #d9c8aa}::-webkit-scrollbar{width:13px;background:#d9c8aa}::-webkit-scrollbar-track,::-webkit-scrollbar-button{background:#d9c8aa}::-webkit-scrollbar-thumb{background:#a08c6c;border:3px solid #d9c8aa;border-radius:9px}
.stitch-guide{position:fixed;inset:0;z-index:2;pointer-events:none;font:13px/1.4 system-ui,sans-serif;color:#293a49}
.stitch-guide[hidden]{display:none}
.stitch-guide svg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.guide-target{fill:#e9dfcb;stroke-width:2}.guide-leader{fill:none;stroke-width:1.5}.guide-T{stroke:#91622d}.guide-M{stroke:#344f64}
.guide-letter{text-anchor:middle;font:600 12px system-ui;fill:#293a49}.guide-float{fill:none;stroke:#344f64;stroke-width:4;stroke-dasharray:6 5;stroke-linecap:round;paint-order:stroke}
.guide-note{position:absolute;padding:11px 13px;background:#e6dcc8f5;border:1px solid #ac9d82;border-radius:7px;box-shadow:0 4px 18px #39312620}.guide-note strong{font-size:14px;font-weight:600}.guide-note p{margin:4px 0 5px}.guide-note small{font-size:10px;color:#6e624e}
.stitch-guide-toggle{position:fixed;bottom:18px;left:20px;z-index:3;padding:9px 13px;border:1px solid #a8997d;border-radius:5px;background:#e6dcc8ed;color:#293a49;font:12px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:0 2px 10px #39312618}.stitch-guide-toggle:hover{background:#d5c7ac}.stitch-guide-toggle:focus-visible{outline:2px solid #344f64;outline-offset:3px}
@media(max-width:600px){.guide-note{font-size:11px;padding:8px 10px}.guide-note strong{font-size:12px}.stitch-guide-toggle{bottom:12px;left:12px}}


/* Independent finish controls: the grain darkens fibres; the veil fades the cloth. */
.fabric-fade{position:absolute;inset:0;background:#e5dac7;opacity:var(--fabric-fade,.10);pointer-events:none}
.fabric-controls{position:fixed;right:20px;bottom:18px;z-index:4;width:264px;padding:14px 16px 11px;border:1px solid #a8997d;border-radius:8px;background:#e6dcc8f2;color:#293a49;box-shadow:0 3px 18px #39312624;font:12px/1.3 system-ui,sans-serif}
.fabric-controls label{display:flex;justify-content:space-between;gap:16px;font-weight:550}.fabric-controls output{font-variant-numeric:tabular-nums;color:#71614b}
.fabric-controls input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:24px;margin:3px 0 7px;background:transparent;cursor:pointer;accent-color:#344f64}
.fabric-controls input[type=range]:last-child{margin-bottom:0}
.fabric-controls input[type=range]::-webkit-slider-runnable-track{height:3px;background:#b5a688;border-radius:3px}.fabric-controls input[type=range]::-moz-range-track{height:3px;background:#b5a688;border-radius:3px}
.fabric-controls input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;border:2px solid #e6dcc8;border-radius:50%;background:#344f64;margin-top:-7px;box-shadow:0 0 0 1px #344f64}.fabric-controls input[type=range]::-moz-range-thumb{width:13px;height:13px;border:2px solid #e6dcc8;border-radius:50%;background:#344f64;box-shadow:0 0 0 1px #344f64}
.fabric-controls input:focus-visible{outline:2px solid #344f64;outline-offset:3px;border-radius:4px}
@media(max-width:600px){.fabric-controls{right:12px;bottom:12px;width:min(340px,calc(100% - 24px));padding:12px 14px 9px}.stitch-guide-toggle{bottom:155px}}
