@font-face{font-family:"Cormorant Garamond";src:url("./ui/cormorant-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"DM Sans";src:url("./ui/dm-sans-latin.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--ink:#203e32;--muted:#526257;--paper:#f8f7f1;--line:#d2d7c9;--fine:#e1e3d8;--accent:#937344;--active:#e6eadf;--stage:#eaeae1;--radius:5px;--gutter:clamp(18px,4.6vw,76px);font:400 15px/1.45 "DM Sans",Arial,sans-serif;background:var(--paper);color:var(--ink)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{appearance:none;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}button:disabled,input:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #9b733c;outline-offset:4px}button:focus:not(:focus-visible){outline:none}
[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}svg:not(.symbols){width:20px;height:20px;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}
.masthead{border-bottom:1px solid var(--line)}
.masthead-inner,.wrap{width:min(100%,1650px);margin-inline:auto;padding-inline:var(--gutter)}
.masthead-inner{min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.wordmark{display:inline-flex;align-items:center;gap:14px;letter-spacing:.23em;font-size:17px;font-weight:620;color:var(--ink);line-height:1}
.railmark{display:inline-block;width:20px;height:23px;background:linear-gradient(var(--accent),var(--accent)) left bottom/2px 16px no-repeat,linear-gradient(var(--accent),var(--accent)) center center/2px 18px no-repeat,linear-gradient(var(--accent),var(--accent)) right top/2px 20px no-repeat}
.window-link{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);line-height:44px}.window-link:hover{text-decoration:underline;text-underline-offset:4px}.window-link svg{width:15px;height:15px}
.intro{padding:clamp(24px,3vw,43px) 0 clamp(22px,2.6vw,36px);display:flex;align-items:flex-end;justify-content:space-between;gap:32px}
h1,h2,p{margin:0}
h1,h2{font-family:"Cormorant Garamond",Baskerville,Georgia,serif;line-height:1;font-weight:500}
h1{font-size:clamp(48px,5.75vw,89px);letter-spacing:-.056em;white-space:nowrap}h1 em{font-weight:inherit;font-style:italic;letter-spacing:-.033em}
.intro p{max-width:333px;font-size:clamp(14px,1.12vw,18px);line-height:1.45;color:var(--muted);padding-bottom:4px}
.studio{border:1px solid #c7cebf;border-radius:8px;overflow:hidden;background:#fdfcf8;box-shadow:0 9px 30px -18px #33473124}
.studio-nav{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:0 22px;background:#f2f3eb;border-bottom:1px solid #cdd3c5}
.tabs{display:flex;align-items:stretch;gap:19px;align-self:stretch}
.tabs button{display:flex;align-items:center;gap:8px;position:relative;min-height:57px;padding:0 3px;font-size:15px;font-weight:570;white-space:nowrap;color:#627166}
.tabs button[aria-selected=true]{color:var(--ink)}.tabs button[aria-selected=true]::after{content:"";position:absolute;height:3px;background:var(--ink);bottom:-1px;left:0;right:0}
.tabs button:hover,.segmented button:hover:not(:disabled),.choice:hover:not(:disabled){color:var(--ink);background-color:#e9ece2}
.segmented{display:flex;align-items:center;border:1px solid #c9cfbf;background:#e8ebe1;padding:3px;border-radius:7px;gap:2px}
.segmented button{padding:5px 12px;line-height:1.2;min-height:30px;border-radius:4px;color:#526457;font-size:12px;font-weight:530;white-space:nowrap}
.segmented button[aria-pressed=true]{background:#fffcf4;color:var(--ink);box-shadow:0 0 0 1px #c5cbbd,0 1px 3px #29473717}
.stage{height:clamp(295px,48svh,590px);position:relative;isolation:isolate;overflow:hidden;background:var(--stage)}
#scene,.preview{position:absolute;inset:0}#scene{touch-action:none;outline:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}
.preview{background:#eae9e1;z-index:1;display:flex;align-items:center;justify-content:center}
.preview img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.load-status{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;justify-content:center;max-width:90%;min-width:max-content;padding:8px 12px;background:rgba(249,249,241,.94);border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:13px}
#retry{text-decoration:underline;text-underline-offset:3px;line-height:2}
.stage-tools{position:absolute;z-index:2;right:17px;top:15px;display:flex;gap:6px}
.stage-tools button{display:grid;place-items:center;width:39px;height:39px;background:#faf9f0e8;border:1px solid #b9c1ae;border-radius:50%;color:#344c3f}
.stage-tools button:hover:not(:disabled){background:white}
.gesture{position:absolute;bottom:13px;left:17px;display:flex;align-items:center;gap:6px;color:#35483c;font-size:11px;pointer-events:none;border-radius:20px;padding:5px 9px;background:rgba(248,249,239,.83)}
.gesture svg{width:17px;height:17px}
.transport{display:flex;align-items:center;gap:clamp(15px,2.5vw,40px);padding:16px 22px 14px;border-top:1px solid var(--line)}
.play-group{display:flex;align-items:center;gap:6px}.play,.restart,.choice{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #c7cfbe;border-radius:var(--radius);min-height:41px;white-space:nowrap;line-height:1.2}
.play{padding:9px 18px;background:var(--ink);border-color:var(--ink);color:white;font-size:14px;font-weight:560;min-width:121px}
.play:hover:not(:disabled){background:#355744}.play svg,.restart svg{width:18px;height:18px}
.restart{padding:8px;width:41px;background:#f8f8f0}.restart:hover:not(:disabled){background:var(--active)}
.timeline{flex:1;min-width:0;display:grid;gap:1px;align-items:center}.timeline-meta{display:flex;align-items:baseline;justify-content:space-between;gap:5px;font-size:13px;font-weight:570;line-height:1.35}.timeline-meta label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#time{font-size:11px;font-variant-numeric:tabular-nums;font-weight:500;white-space:nowrap;color:var(--muted)}
#progress{--p:0%;width:100%;height:22px;appearance:none;background:transparent;margin:0;display:block;cursor:pointer;touch-action:pan-y}
#progress::-webkit-slider-runnable-track{height:4px;border-radius:10px;background:linear-gradient(to right,var(--ink) 0 var(--p),#cbd2c2 var(--p) 100%)}
#progress::-moz-range-track{height:4px;border-radius:10px;background:#cbd2c2}#progress::-moz-range-progress{background:var(--ink);height:4px}
#progress::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border:2px solid #fdfdf9;border-radius:100%;background:var(--ink);box-shadow:0 0 0 1px var(--ink);margin-top:-5.5px}
#progress::-moz-range-thumb{width:12px;height:12px;border:2px solid #fdfdf9;border-radius:100%;background:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.options{display:flex;align-items:center;justify-content:space-between;gap:12px 25px;flex-wrap:wrap;padding:9px 22px 15px}
.option{display:flex;gap:12px;align-items:center}.option-label{font-size:12px;font-weight:530;color:#5b6b60;white-space:nowrap}.choice-group{display:flex;flex-wrap:wrap;gap:6px}
.choice{padding:7px 11px;font-size:12px;min-height:34px;background:#fbfbf6}.choice[aria-pressed=true]{color:#233d30;background:var(--active);border-color:#879983}
.follow-button{background:#eff2e8;border-color:#a8b6a2;color:#284435}.follow-button[aria-pressed=true]{background:#e0e8d9;border-color:#6c846c}.follow-button svg{stroke-width:1.7}
.choice svg{width:16px;height:16px}.swatch{display:inline-block;width:17px;height:14px;border:1px solid #0002;border-radius:3px}
.swatch.wood{background:repeating-linear-gradient(8deg,#b38f66 0px,#c39e77 2px,#b08b64 3px,#bf9974 5px)}
.swatch.marble{background:linear-gradient(126deg,#f1efe9 0 31%,#bebbb2 34%,#e6e4dd 38% 72%,#bebfb7 75%,#eeece6 79%)}
.detail{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(300px,1.2fr);gap:clamp(20px,6vw,85px);padding:clamp(26px,3.4vw,45px) 0;align-items:start;max-width:1150px}
.detail h2{font-size:clamp(32px,3.1vw,47px);letter-spacing:-.035em}
.detail p{font-size:clamp(14px,1.04vw,17px);line-height:1.55;color:var(--muted);max-width:650px}
footer{display:flex;justify-content:space-between;gap:12px;padding:14px 0 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}footer span:first-child{letter-spacing:.18em}
.no-script{position:fixed;inset:auto 0 0;background:var(--ink);color:white;padding:10px;text-align:center}
@media(max-width:900px){.intro{display:block}.intro p{margin-top:10px;max-width:700px;padding-bottom:0}.stage{height:clamp(265px,43svh,500px)}}
@media(max-width:650px){
 :root{--gutter:15px}.masthead-inner{min-height:46px}.wordmark{font-size:14px;gap:10px}.railmark{width:15px;height:19px;background-size:1.5px 12px,1.5px 14px,1.5px 15px}.window-link{font-size:12px;line-height:40px}
 .intro{padding:22px 0 17px}.intro h1{font-size:clamp(37px,9.6vw,62px)}.intro p{font-size:13px;line-height:1.42;margin-top:7px;max-width:43ch}
 .studio-nav{padding:0 10px;gap:6px}.tabs{gap:8px}.tabs button{min-height:48px;font-size:12px;gap:4px;padding:0 2px}.tabs svg{width:15px;height:15px}
 .segmented{padding:2px;gap:1px}.segmented button{padding:4px 6px;min-height:29px;font-size:10.5px}
 .stage{height:clamp(220px,39svh,350px)}.stage-tools{right:9px;top:9px}.stage-tools button{width:34px;height:34px}.gesture{left:8px;bottom:8px;font-size:10px}.gesture svg{width:15px;height:15px}
 .transport{padding:10px 11px 5px;gap:12px}.play-group{gap:4px}.play{font-size:12px;padding:8px;min-width:90px}.play,.restart{min-height:38px}.play svg,.restart svg{height:15px;width:15px}.restart{width:30px}
 .timeline-meta{font-size:11px}.timeline-meta label{max-width:100%}#time{font-size:10px}
 .options{padding:8px 11px 11px;gap:8px}.option{gap:8px}.option-label{font-size:11px}.choice{font-size:11px;padding:6px 8px;min-height:31px}.choice-group{gap:4px}
 .detail{display:block;padding:23px 0}.detail h2{font-size:32px;margin-bottom:9px}.detail p{font-size:13px}.zoom-hint{display:none}footer{font-size:10px}
}
@media(max-width:480px){.options:has(.follow-button:not([hidden])){display:flex}.options:has(.follow-button:not([hidden])) .finish-option .option-label{display:none}}
@media(max-width:400px){
 .studio-nav{padding:0 7px}.tabs{gap:6px}.tabs svg{display:none}
 .options{display:grid;justify-content:stretch}.option-label{min-width:70px}
 .transport{gap:8px}.timeline-meta{align-items:start;gap:3px;flex-wrap:wrap;min-height:16px}.timeline-meta #time{margin-left:auto}.load-status{max-width:95%;min-width:0;width:max-content;text-align:center}.intro p{max-width:38ch}
}
@media(max-height:480px) and (orientation:landscape){.masthead-inner{min-height:35px}.window-link{line-height:30px}.intro{padding:8px 0 10px;display:flex;align-items:center}.intro h1{font-size:37px}.intro p{max-width:43ch;font-size:12px;margin:0}.stage{height:clamp(140px,42svh,250px)}.tabs button{min-height:36px}.studio-nav{padding-block:2px}.transport{padding-block:6px}.options{padding-top:2px}.gesture{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important}}
