:root { color-scheme: dark; --night: #11110f; --ivory: #eee8d9; --dim: #b2ad9e; --line: rgba(238,232,217,.22); --display: "Arial Narrow", Impact, Arial, sans-serif; --body: Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--night); color: var(--ivory); font: 14px/1.55 var(--body); }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, .viewer-surface:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px 16px; background: var(--ivory); color: var(--night); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.masthead { min-height: 77px; padding: 0 clamp(20px,3.3vw,56px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 30px; height: 26px; object-fit: contain; }
.masthead-note, .eyebrow, .stage-top, .stage-hint, .companion-label, .control-label, .afterword { font: 10px/1.4 var(--display); letter-spacing: .15em; text-transform: uppercase; }
.masthead-note { color: var(--dim); text-align: right; }
.page { width: min(1720px,100%); margin: auto; padding: 0 clamp(20px,3.3vw,56px) 35px; }
.intro { padding: 53px 0 35px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.eyebrow { margin: 0; color: #d2c9b4; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; }
h1 { margin-top: 12px; font-size: clamp(56px,7vw,112px); line-height: .94; letter-spacing: -.035em; }
h1 em { color: #a79f8d; font-style: normal; }
.intro > p { max-width: 300px; margin: 0 0 3px; color: var(--dim); font-size: 12px; line-height: 1.7; }
.model-tabs { padding-bottom: 17px; display: flex; flex-wrap: wrap; gap: 9px; }
.model-tabs a { min-height: 49px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); color: var(--ivory); font: 700 13px/1.4 var(--display); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.model-tabs a span { color: var(--dim); font-size: 10px; font-weight: 400; }
.model-tabs a[aria-current="page"] { color: var(--night); background: var(--ivory); }
.model-tabs a[aria-current="page"] span { color: #555044; }
.model-tabs a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; border-style: dashed; }
.review { min-height: 660px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); align-items: start; border: 1px solid var(--line); }
.stage { position: sticky; top: 16px; min-width: 0; min-height: 540px; height: min(820px,calc(100svh - 32px)); isolation: isolate; overflow: hidden; background: #34322f; }
.stage-top { position: absolute; z-index: 3; top: 24px; right: 25px; left: 25px; display: flex; justify-content: space-between; gap: 12px; color: #d0cabc; pointer-events: none; }
.viewer-surface { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.viewer-surface[data-dragging="true"] { cursor: grabbing; }
.viewer-surface:focus-visible { outline-offset: -8px; }
.viewer-surface canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.model-state { position: absolute; z-index: 3; left: 50%; top: 48%; width: min(350px,calc(100% - 48px)); transform: translate(-50%,-50%); padding: 22px 25px; border: 1px solid rgba(238,232,217,.27); background: rgba(16,16,15,.8); color: var(--ivory); text-align: center; font-size: 13px; line-height: 1.6; backdrop-filter: blur(8px); }
.model-state[hidden] { display: none; }
.state-line { display: block; width: 29px; height: 1px; margin: 0 auto 15px; background: #c8b995; }
.stage-hint { position: absolute; z-index: 2; right: 25px; bottom: 22px; margin: 0; color: #d0cabc; pointer-events: none; }
.companion-label { position: absolute; z-index: 2; left: 25px; bottom: 22px; margin: 0; color: #d0cabc; pointer-events: none; }
.controls { min-width: 0; padding: 22px clamp(20px,2vw,30px); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #191917; }
.controls h2 { margin-top: 10px; font-size: clamp(26px,2.5vw,34px); line-height: 1.05; letter-spacing: -.025em; }
.model-description { max-width: 340px; margin: 12px 0 18px; color: #b9b4a8; font-size: 12px; line-height: 1.6; }
.control-group { padding: 13px 0; border-top: 1px solid var(--line); }
.control-group[hidden] { display: none; }
.control-label { margin: 0 0 13px; display: flex; justify-content: space-between; gap: 10px; color: #cfc6b5; }
.artwork-control select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: #24231f; color: var(--ivory); font: 700 12px/1.3 var(--display); letter-spacing: .04em; cursor: pointer; }
.artwork-compact { min-height: 68px; margin-top: 10px; display: flex; align-items: center; gap: 11px; }
.artwork-compact img { display: block; width: 48px; height: 64px; flex: 0 0 48px; object-fit: contain; background: #11110f; }
.artwork-reference { min-width: 0; margin: 0; color: var(--ivory); font: 700 12px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.artwork-reference small { display: block; margin-top: 4px; color: var(--dim); font: 10px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.artwork-preview { padding: 13px 0; border-top: 1px solid var(--line); }
.artwork-preview[hidden] { display: none; }
.artwork-preview summary { min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); color: var(--ivory); font: 700 11px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.artwork-preview[open] summary { margin-bottom: 10px; }
.artwork-source { margin: 0; padding: 8px; border: 1px solid var(--line); background: #11110f; }
.artwork-source img { display: block; width: auto; max-width: 100%; height: auto; max-height: 620px; margin: auto; object-fit: contain; }
.artwork-source figcaption { margin-top: 7px; color: var(--dim); font-size: 10px; line-height: 1.45; }
.view-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.view-presets button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font: 700 12px/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.view-presets button[aria-pressed="true"] { color: var(--night); background: var(--ivory); }
.view-presets button:disabled { opacity: .45; cursor: default; }
.zoom-control input { width: 100%; margin: 0; accent-color: #d5c8ad; cursor: pointer; }
.zoom-control input:disabled { cursor: default; opacity: .45; }
.zoom-control output { color: var(--ivory); }
.shape-control button { width: 100%; min-height: 44px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font: 700 12px/1.3 var(--display); letter-spacing: .07em; text-align: left; text-transform: uppercase; cursor: pointer; }
.shape-control button[aria-pressed="true"] { color: var(--night); background: var(--ivory); }
.shape-control button:disabled { opacity: .45; cursor: default; }
.shape-control button span { font-size: 15px; line-height: 1; }
.shape-control p:last-child { margin: 10px 0 0; color: var(--dim); font-size: 11px; line-height: 1.55; }
.source-reference { padding-top: 13px; border-top: 1px solid var(--line); }
.source-reference[hidden] { display: none; }
.source-reference > button { width: 100%; min-height: 65px; padding: 7px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: transparent; color: var(--ivory); text-align: left; font: 700 12px/1.25 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.source-reference > button img { display: block; width: 69px; height: 47px; object-fit: contain; flex: 0 0 auto; }
.source-reference > button small { margin-top: 3px; display: block; color: var(--dim); font: 10px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.source-reference figure { margin: 12px 0 0; padding: 9px; border: 1px solid var(--line); }
.source-reference figure[hidden] { display: none; }
.source-reference figure img { display: block; width: 100%; height: auto; }
.source-reference figcaption { margin-top: 8px; color: var(--dim); font-size: 11px; line-height: 1.5; }
.review-note { margin: auto 0 0; padding-top: 14px; color: #a29e94; font-size: 11px; line-height: 1.55; }
.afterword { padding: 20px 0 0; display: flex; justify-content: space-between; gap: 16px; }
.afterword a { color: var(--dim); text-decoration: none; }
.afterword a:hover { color: var(--ivory); }
@media (max-width: 900px) { .review { grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr); } .stage { min-height: 590px; } .controls { padding-inline: 24px; } }
@media (max-width: 680px) { .masthead { min-height: 66px; } .brand { font-size: 17px; } .brand img { width: 25px; height: 22px; } .masthead-note { font-size: 8px; } .intro { padding: 37px 0 26px; display: block; } h1 { font-size: clamp(52px,11vw,80px); } .intro > p { max-width: none; margin-top: 20px; } .model-tabs a { flex: 1 1 220px; justify-content: center; } .review { display: flex; flex-direction: column; } .stage { min-height: 0; height: min(120vw,620px); } .stage-top { top: 16px; left: 16px; right: 16px; font-size: 8px; } .stage-hint { right: 16px; bottom: 17px; max-width: 45%; text-align: right; font-size: 8px; } .companion-label { left: 16px; bottom: 17px; max-width: 43%; font-size: 8px; } .controls { border-left: 0; border-top: 1px solid var(--line); } .controls h2 { font-size: 42px; } .review-note { margin-top: 10px; } .afterword { font-size: 8px; } }
@media (max-width: 400px) { .masthead-note { display: none; } .model-tabs a { flex-basis: 100%; } .stage { height: 128vw; } .stage-top span:last-child { max-width: 130px; text-align: right; } }
@media (max-width: 680px) { .review { align-items: stretch; } .stage { position: relative; top: auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
