/* Other Work inherits the portfolio's type and theme tokens. Artwork is never cropped. */
.more-work { --mw-accent: #7b6242; }
[data-theme="dark"] .more-work { --mw-accent: #d4bfa3; }
.more-work .mw-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.more-work .mw-card { min-width: 0; }
.more-work .mw-card > a { display: block; height: 100%; }
.more-work .mw-card-art { display: grid; place-items: center; aspect-ratio: 4/3; padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; transition: transform .3s ease, box-shadow .3s ease; }
.more-work .mw-card-art img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; min-height: 0; min-width: 0; }
.more-work .mw-card-body { padding: 22px 0 0; }
.more-work .mw-card-type { color: var(--mw-accent); font-size: 12px; line-height: 1.5; letter-spacing: .6px; }
.more-work .mw-card h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; margin: 11px 0 10px; }
.more-work .mw-card h2 span { font-size: 20px; font-weight: 400; }
.more-work .mw-card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 34ch; }
.more-work .mw-card .mw-context { font-size: 13px; margin-top: 12px; }
.more-work a:focus-visible,.more-work button:focus-visible,.more-work select:focus-visible,.more-work summary:focus-visible,.more-work .book-scene:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.more-work.mw-project { padding-top: 40px; }
.more-work .mw-intro { padding: 65px 0 44px; max-width: 800px; }
.more-work h1 { font-size: clamp(45px,6.6vw,94px); line-height: 1.04; font-weight: 500; letter-spacing: -.06em; margin: 22px 0 30px; }
.more-work .mw-intro .eyebrow { font-size: 12px; letter-spacing: 1px; }
.more-work .mw-intro p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 62ch; }
.more-work .mw-intro .mw-lead { font-size: clamp(23px,2.7vw,34px); line-height: 1.25; letter-spacing: -.025em; color: var(--ink); margin-bottom: 26px; }
.more-work .mw-intro .mw-context { font-size: 14px; line-height: 1.7; margin-top: 26px; }
.more-work .mw-model-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 7%; padding: 45px 0 60px; }
.more-work .mw-model-layout .mw-intro { padding: 20px 0 0; }
.more-work .mw-model-layout h1 { font-size: clamp(46px,5.3vw,80px); }
.more-work figure { margin: 0; }
.more-work .mw-model-hero img { display: block; width: 100%; height: auto; max-height: 820px; object-fit: contain; }
.more-work figcaption { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.more-work figcaption a { display: inline-block; margin-left: 6px; text-decoration: underline; text-underline-offset: 4px; }
.more-work .mw-study-heading { border-top: 1px solid var(--line); padding: 32px 0; }
.more-work .mw-study-heading h2 { margin: 0; font-size: 29px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }
.more-work .mw-image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.more-work .mw-image-pair img { display: block; width: 100%; height: auto; }
.more-work .mw-related { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 35px; margin-top: 60px; border-top: 1px solid var(--line); font-size: 15px; }
.more-work .mw-project-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding: 50px 0 60px; }
.more-work .mw-project-notes h2 { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 15px; }
.more-work .mw-project-notes p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0; max-width: 48ch; }
.more-work .book-reader { margin: 12px 0 0; }
.more-work .book-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 22px; font-size: 14px; line-height: 1.5; }
.more-work .book-toolbar p { color: var(--muted); margin: 0; }
.more-work .book-toolbar a { text-decoration: underline; text-underline-offset: 5px; }
.more-work .mw-file-size { color: var(--muted); }
.more-work .book-scene { position: relative; width: 100%; max-width: 1100px; margin-inline: auto; aspect-ratio: 1224/792; touch-action: pan-y pinch-zoom; overflow: clip; overflow-clip-margin: 24px; }
.more-work .book-current { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.more-work .book-scene[data-cover="front"] > .book-current,.more-work .book-scene[data-cover="back"] > .book-current { width: 50%; left: 25%; }
.more-work .book-scene[data-engine="ready"] > .book-current { visibility: hidden; }
.more-work .book-engine { position: absolute!important; inset: 0; width: 100%; height: 100%; transition: transform .65s cubic-bezier(.22,.61,.36,1); touch-action: pan-y pinch-zoom; }
.more-work .book-engine[data-position="front"] { transform: translateX(-25%); }
.more-work .book-engine[data-position="back"] { transform: translateX(25%); }
.more-work .book-engine[data-position="open"] { transform: translateX(0); }
.more-work .book-engine .stf__wrapper { position: relative; width: 100%; height: 100%; padding-bottom: 0!important; }
.more-work .book-engine .stf__block { width: 100%; height: 100%; }
.more-work .catalog-sheet { background: #fff; box-shadow: 0 1px 1px #00000014,0 3px 0 -1px #e5e1da,0 5px 0 -2px #c9c6c0,0 12px 24px #00000014; }
.more-work .catalog-sheet-crop { position: absolute; inset: 0; overflow: hidden; }
.more-work .catalog-sheet img { position: absolute; top: 0; max-width: none; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.more-work .catalog-sheet[data-density="soft"]::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.more-work .catalog-sheet.--left::after { background: linear-gradient(90deg,transparent 94%,#00000014); }
.more-work .catalog-sheet.--right::after { background: linear-gradient(90deg,#00000010,transparent 6%); }
.more-work .book-scene[data-ready="true"] { cursor: grab; }
.more-work .book-scene[data-dragging="true"] { cursor: grabbing; }
.more-work .book-scene[aria-busy="true"]:not([data-dragging="true"]) { cursor: progress; }
.more-work .book-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.more-work .book-controls[hidden],.more-work .book-text[hidden],.more-work .book-error[hidden] { display: none; }
.more-work .book-page-buttons { display: flex; align-items: center; gap: 20px; }
.more-work .book-controls button { min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 24px; padding: 10px 18px; font-size: 14px; transition: background .25s ease; }
.more-work .book-controls button:disabled { opacity: .4; cursor: default; }
.more-work .book-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-work .book-jump { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; }
.more-work .book-jump select { max-width: 260px; min-height: 44px; font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 30px 8px 10px; }
.more-work .book-fullsize { font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.more-work .book-text { margin-top: 22px; }
.more-work .book-text summary { cursor: pointer; font-size: 14px; line-height: 1.6; color: var(--muted); width: fit-content; padding: 8px 0; }
.more-work .book-transcript { white-space: pre-line; font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 75ch; max-height: 400px; overflow: auto; padding: 20px; margin-top: 10px; background: var(--surface-soft); border-radius: 4px; }
.more-work .book-error { font-size: 15px; line-height: 1.6; color: var(--ink); }
@media (hover:hover) and (pointer:fine) {
  .more-work .mw-card > a:hover .mw-card-art { transform: translateY(-4px); box-shadow: 0 10px 25px var(--shadow); }
  .more-work .book-controls button:not(:disabled):hover { background: var(--surface-soft); }
}
@media (max-width:950px) {
  .more-work .mw-grid { gap: 20px; }
  .more-work .mw-card h2 { font-size: 22px; }
  .more-work .mw-card-art { padding: 12px; }
  .more-work .mw-model-layout { gap: 5%; }
  .more-work .book-controls { justify-content: flex-start; }
}
@media (max-width:700px) {
  .more-work .mw-grid { grid-template-columns: 1fr; gap: 40px; }
  .more-work .mw-card-art { padding: 20px; }
  .more-work .mw-card h2 { font-size: 27px; }
  .more-work .mw-card p { max-width: none; }
  .more-work .mw-intro { padding: 40px 0 30px; }
  .more-work .mw-intro p { font-size: 16px; }
  .more-work .mw-model-layout { grid-template-columns: 1fr; padding: 30px 0 45px; gap: 25px; }
  .more-work .mw-model-layout .mw-intro { padding: 0; }
  .more-work .mw-model-hero img { max-height: 720px; }
  .more-work .mw-image-pair,.more-work .mw-project-notes { grid-template-columns: 1fr; gap: 32px; }
  .more-work .book-page-buttons { width: 100%; justify-content: space-between; gap: 10px; }
  .more-work .book-controls button { padding: 10px 14px; }
  .more-work .book-jump { flex: 1 1 100%; }
  .more-work .book-jump select { min-width: 0; max-width: none; width: 100%; }
  .more-work .book-toolbar { font-size: 13px; }
  .more-work .book-count { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  .more-work *,.more-work *::before,.more-work *::after { transition: none!important; animation: none!important; scroll-behavior: auto!important; }
  .more-work .mw-card > a:hover .mw-card-art { transform: none; }
}

/* STL viewers, limited to the two modeling studies. */
.model-viewer { position:relative; margin-top:18px; }
.model-stage { width:100%; height:clamp(320px,52vw,610px); background:#eeece7; border-radius:4px; overflow:hidden; }
.model-stage canvas { display:block; width:100%; height:100%; cursor:grab; touch-action:none; }
.model-stage canvas:active { cursor:grabbing; }
.model-stage:focus-visible,.model-controls button:focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.model-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:14px 0; }
.model-controls[hidden] { display:none; }
.model-controls span { flex:1 1 100%; font-size:13px; color:var(--muted); }
.model-controls button { min-width:44px; min-height:44px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:24px; padding:8px 14px; font:inherit; cursor:pointer; }
.model-status { font-size:14px; }
.mw-model-hero:has(.model-viewer[data-ready]) > a { display:none; }

.model-viewer[data-model="vase"] .model-stage { background:#f1f1ef; }

/* Image-based inspection keeps all original CAD files outside the public site. */
.more-work .mw-card-link{display:block;height:100%;text-decoration:none;color:inherit}
.more-work .mw-card-link h2{width:fit-content;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:6px;text-decoration-thickness:1px;transition:text-decoration-color 200ms var(--motion-ease)}
.more-work .mw-card-link:is(:hover,:focus-visible) h2{text-decoration-color:currentColor}
.more-work .render-stage{position:relative;height:clamp(320px,48vw,680px);width:100%;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:zoom-in}
.more-work .render-stage img{width:100%;height:100%;max-height:none;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-drag:none;transition:none!important;translate:none!important}
.more-work .render-stage.is-zoomed{cursor:grab;touch-action:none}
.more-work .render-stage.is-dragging{cursor:grabbing}
.more-work .render-stage:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.more-work .render-controls{display:flex;align-items:center;gap:16px;margin-top:16px;border-top:1px solid var(--line)}
.more-work .render-controls button{min-width:44px;min-height:44px;cursor:pointer;font-size:16px}
.more-work .render-controls button:disabled{opacity:.4;cursor:default}
.more-work .render-controls button:last-child{margin-left:auto;font-size:12px}
.more-work .render-zoom{font:400 12px/1.5 var(--body);font-variant-numeric:tabular-nums}
.more-work .render-hint{margin:0 0 16px;font:400 12px/1.5 var(--body);color:var(--muted)}

body .more-work .mw-card-link:is(:hover,:focus-visible) .mw-card-art{transform:none;box-shadow:none}

/* Compact catalog controls and a single explanatory note. */
.granada-project .book-controls{justify-content:flex-start;gap:12px 24px;padding:12px 0}
.granada-project .book-page-buttons{gap:12px;margin-right:auto}
.granada-project .book-jump select{width:210px;max-width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:14px}
.granada-project .book-jump label{font-size:12px;color:var(--muted)}
.granada-project .book-text{margin-top:8px}
.granada-project .catalog-note{display:block;max-width:68ch;margin:48px 0}
.granada-project .catalog-note h2{font-size:20px;line-height:1.3;letter-spacing:-.02em;margin:0 0 16px}
.granada-project .catalog-note p{font-size:18px;line-height:1.6;margin:0}
@media(max-width:600px){.granada-project .book-page-buttons{width:100%;justify-content:space-between}.granada-project .book-jump{flex:1}.granada-project .book-jump select{width:100%;min-width:0}.granada-project .catalog-note{margin:32px 0}}
