.study-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr); align-items:start; gap:clamp(1.75rem,6vw,6.5rem); }
.study-figure { position:sticky; top:clamp(5.5rem,12vh,8rem); margin:0; min-width:0; }
.study-model { position:relative; aspect-ratio:1280 / 800; max-height:60vh; overflow:hidden; background:#7d8f62; }
.study-model img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.study-model.study-ready .study-layer { opacity:0; transition:opacity 450ms ease; }
.study-model.study-ready .study-layer.study-current { opacity:1; }
@media(prefers-reduced-motion:reduce) { .study-model.study-ready .study-layer { transition:none; } }
.study-figure figcaption { color:#515a50; font:inherit; font-size:.81rem; line-height:1.5; margin-top:.7rem; }
.study-controls { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.study-controls button { appearance:none; margin:0; min-width:0; min-height:44px; border:0; border-bottom:1px solid #9d9c8d; border-radius:0; background:transparent; color:#414940; font:inherit; font-size:clamp(.72rem,1.2vw,.9rem); cursor:pointer; padding:.45rem .15rem; }
.study-controls button[aria-pressed="true"] { font-weight:700; border-bottom:3px solid #414940; }
.study-controls button:hover { background:#e4daca; }
.study-controls button:focus-visible { outline:2px solid #414940; outline-offset:-3px; }
.study-stages { list-style:none; margin:0; padding:0; }
.study-stages > li { padding:clamp(1.4rem,5vh,3.2rem) 0; border-top:1px solid #c3c4b7; }
.study-stages > li:first-child { padding-top:1.15rem; }
.study-stages > li > :first-child { margin-top:0; }
.study-stages > li > :last-child { margin-bottom:0; }
@media(max-width:760px) {
  .study-layout { display:block; }
  .study-figure { top:var(--study-sticky-top,4.8rem); z-index:2; padding-bottom:.55rem; background:var(--ivory,#f8f6f0); }
  .study-model { max-height:min(28vh,18rem); }
  .study-figure figcaption { font-size:.74rem; margin-top:.3rem; }
  .study-stages { margin-top:1.1rem; }
  .study-stages > li { padding:1.65rem 0; }
}
@media(max-height:540px) { .study-figure { position:static; } .study-model { max-height:unset; } }
@media(prefers-reduced-motion:reduce) { .study-figure { position:static; } }

/* The model sits in a design-tool window: chrome, a drafting grid, a toolbar of stages and a
   stage badge on the window corner. Monochrome drafting marks; colour stays in the model. */
.viewer-window { background:#fbfaf6; border:1px solid #d3cfc1; border-radius:10px; overflow:hidden;
  box-shadow:0 1px 0 #fff inset, 0 44px 80px -46px rgb(40 48 40 / .45), 0 14px 28px -22px rgb(40 48 40 / .3); }
.viewer-bar { display:flex; align-items:center; gap:14px; height:38px; padding:0 14px; border-bottom:1px solid #e1ddd0; background:#f6f4ee; font:600 12px/1 var(--sans,Manrope,sans-serif); color:#414940; }
.viewer-dots { display:flex; gap:6px; }
.viewer-dots i { width:9px; height:9px; border-radius:50%; background:#d6d2c6; }
.viewer-file { letter-spacing:.01em; }
.viewer-tag { margin-left:auto; font-weight:500; color:#7b8174; }
.viewer .study-model { max-height:58vh;
  background-color:#f4f1e8;
  background-image:
    linear-gradient(rgb(65 73 64 / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(65 73 64 / .09) 1px, transparent 1px),
    linear-gradient(rgb(65 73 64 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(65 73 64 / .045) 1px, transparent 1px);
  background-size:120px 120px,120px 120px,24px 24px,24px 24px;
  background-position:-1px -1px; }
.viewer .study-model canvas { z-index:1; }
.viewer-note { position:absolute; z-index:2; font:700 10px/1 var(--sans,Manrope,sans-serif); letter-spacing:.14em; text-transform:uppercase; color:#6a7165; pointer-events:none; }
.viewer-note-a { top:16px; left:16px; }
.viewer-note-b { right:16px; bottom:14px; }
.viewer-note-a::before { content:''; display:inline-block; width:18px; height:1px; margin-right:8px; vertical-align:middle; background:currentColor; }
.viewer .study-controls { border-top:1px solid #e1ddd0; background:#f6f4ee; padding:6px; gap:4px; }
.viewer .study-controls button { border:0; border-radius:6px; min-height:38px; font-size:clamp(.72rem,1.1vw,.84rem); font-weight:600; color:#5d645a; transition:background-color 160ms ease, color 160ms ease, transform 160ms cubic-bezier(.23,1,.32,1); }
.viewer .study-controls button[aria-pressed="true"] { border:0; background:#fff; color:#2f382f; box-shadow:0 0 0 1px #d3cfc1, 0 2px 6px -3px rgb(40 48 40 / .35); }
.viewer .study-controls button:active { transform:scale(.97); }
@media (hover:hover) and (pointer:fine) { .viewer .study-controls button:not([aria-pressed="true"]):hover { background:#ebe7dc; color:#2f382f; } }
.viewer .study-hint { margin:0; padding:9px 14px 10px; border-top:1px solid #e1ddd0; background:#f6f4ee; font-size:12px; color:#6a7165; }
.viewer-chip { position:absolute; top:58px; right:-14px; z-index:3; padding:8px 12px; border-radius:999px; background:#2f382f; color:#f8f6f0; font:600 12px/1 var(--sans,Manrope,sans-serif); letter-spacing:.02em; box-shadow:0 10px 24px -12px rgb(30 36 30 / .6); }
@media(max-width:760px) {
  .viewer-bar { height:32px; } .viewer-tag, .viewer-note-a { display:none; }
  .viewer .study-model { max-height:min(28vh,18rem); }
  .viewer-chip { top:5px; right:10px; padding:6px 9px; font-size:11px; box-shadow:none; }
  .viewer-note-b { font-size:9px; right:10px; bottom:8px; }
}
.viewer .study-model img { mix-blend-mode:multiply; }
@media(max-width:760px) { .model-block .study-figure { background:var(--mist,#eeeae1); } .viewer-file { display:none; } }
.viewer .study-model { width:100%; }
