/* ===== Mobile preview shell: sits on top of the site's own styles.css ===== */
:root { --tabh: 72px; --toph: 56px; --m-ink: #161616; --m-soft: #55555A; --m-mute: #74747A; --m-rule: #E8E8E6; --m-teal: #5EE5C5; --m-teal-deep: #0E6B57; --m-wash: rgba(94,229,197,.16); --m-star: #F2B01E; --m-blue: #0A84FF; }
html.m-on, html.m-on body { height: 100%; }
html.m-on body { margin: 0; background: #fff !important; color: var(--m-ink); font-family: "Poppins", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
html.m-on body::before, html.m-on body::after { display: none !important; }
/* on a phone, only the app shows; the desktop stays in the page for search engines and screen readers that skip it */
html.m-on body > :not(.m-wrap) { display: none !important; }

/* full screen on a phone; the preview shows it in a phone frame on a laptop */
.m-wrap { position: fixed; inset: 0; background: #fff; }
.m-phone { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; }
html.m-proto .m-wrap { display: grid; place-items: center; background: #EEEDEA; }
html.m-proto .m-phone { width: min(390px, 100vw); height: min(844px, 100dvh); border-radius: 40px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 70px -30px rgba(0,0,0,.35); }
@media (max-width: 520px) { html.m-proto .m-wrap { display: block; } html.m-proto .m-phone { width: 100%; height: 100%; border-radius: 0; box-shadow: none; } }

/* top bar */
.m-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: calc(56px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.m-top.scrolled { border-bottom-color: var(--m-rule); }
.m-top img { height: 26px; width: auto; }
.m-a11y-btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--m-ink); }
.m-a11y-btn svg { width: 22px; height: 22px; }
.m-a11y-btn:focus-visible, .m-tab:focus-visible { outline: 2px solid var(--m-teal-deep); outline-offset: 2px; }

/* the scrolling area for each tab */
.m-panel { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-top: calc(56px + env(safe-area-inset-top, 0px)); padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom, 0px)); }
.m-panel[hidden] { display: none; }
.m-panel.enter { animation: m-enter .28s cubic-bezier(.2,.8,.25,1); }
@keyframes m-enter { from { opacity: 0; transform: translateY(8px); } }

/* the site's own pages, without the desktop window around them */
.m-panel > .win { position: static !important; display: block !important; width: auto !important; height: auto !important; inset: auto !important; min-width: 0 !important; min-height: 0 !important; opacity: 1 !important; visibility: visible !important; animation: none !important; margin: 0 !important; max-width: none !important; max-height: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; overflow: visible !important; transform: none !important; }
.m-panel > .win > .win-body { overflow: visible !important; padding-left: 0; padding-right: 0; }
.m-panel .hero2 { padding-top: 12px !important; }

/* tab bar */
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabh) + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px env(safe-area-inset-bottom, 0px); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--m-rule); }
.m-tab { display: grid; justify-items: center; align-content: center; gap: 2px; border: 1.5px solid transparent; background: none; font: inherit; font-size: 11px; font-weight: 500; color: #7D7D82; cursor: pointer; padding: 6px 0 5px; margin: 0 3px; min-height: 54px; border-radius: 16px; transition: background .2s, border-color .2s, color .2s; }
.m-tab .ico { width: 28px; height: 26px; display: grid; place-items: center; }
.m-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-tab[aria-current="page"] { color: var(--m-ink); }
.m-tab[aria-current="page"] { background: var(--m-wash); border-color: var(--m-ink); }
.m-tab[aria-current="page"] svg { stroke-width: 1.9; }

/* ---------- Messages ---------- */
.m-chat { min-height: 100%; display: flex; flex-direction: column; padding: 8px 18px 0; }
.m-chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--m-rule); }
.m-chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.m-chat-head b { display: block; font-size: 15.5px; font-weight: 500; }
.m-chat-head small { font-size: 12.5px; color: var(--m-mute); }
.m-chat .bubbles { padding: 16px 0 10px; gap: 6px; }
.m-chat .bubble { font-size: 15.5px; max-width: 82%; }
.m-chat .chips { justify-content: flex-start; padding: 4px 0 10px; gap: 8px; }
.m-chat .chip { font-size: 14px; padding: 9px 14px; }
.m-compose { position: sticky; bottom: 0; background: #fff; padding: 8px 0 10px; margin-top: auto; }
.m-compose form { display: flex; align-items: center; gap: 8px; border: 1px solid #DADADD; border-radius: 999px; padding: 5px 5px 5px 18px; }
.m-compose input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; min-height: 38px; }
.m-compose button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--m-blue); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.m-compose button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-compose button:disabled { opacity: .4; }
.m-alt { font-size: 13px; color: var(--m-soft); text-align: center; margin: 14px 0 0; }
.m-alt a { color: var(--m-ink); font-weight: 500; }
.m-note { font-size: 12px; color: var(--m-mute); text-align: center; margin: 10px 0 0; }

/* ---------- Me ---------- */
.m-me { padding: 8px 20px 0; zoom: var(--tz); }
.m-intro { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; }
.m-intro img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.m-intro h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.m-intro h1 span { color: var(--m-teal); }
.m-intro p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--m-soft); }
.m-sec { margin-top: 32px; }
.m-sec > h2 { margin: 0 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.m-sec > h2 small { font-size: 13px; font-weight: 400; color: var(--m-mute); margin-left: 6px; }
.m-shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
.m-shelf::-webkit-scrollbar { display: none; }
.m-show { display: block; align-self: flex-start; flex: none; width: 150px; scroll-snap-align: start; perspective: 800px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.m-card { display: block; position: relative; height: 210px; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.m-show.flipped .m-card { transform: rotateY(180deg); }
.m-face { display: block; position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.m-face img { width: 100%; height: 100%; object-fit: cover; }
.m-back { transform: rotateY(180deg); background: #F6F6F4; padding: 12px; font-size: 12.5px; line-height: 1.45; color: var(--m-soft); overflow-y: auto; }
.m-show b { display: block; font-size: 13.5px; font-weight: 500; margin-top: 8px; line-height: 1.3; }
.m-stars { color: var(--m-star); font-size: 13px; letter-spacing: 1px; }
.m-stars i { font-style: normal; color: #DCDCD8; }
.m-hint { font-size: 12.5px; color: var(--m-mute); margin: 4px 0 0; }
.m-now { display: flex; gap: 14px; align-items: center; border: 1px solid var(--m-rule); border-radius: 16px; padding: 12px; }
.m-now img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.m-now small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m-teal-deep); }
.m-now b { display: block; font-size: 15.5px; font-weight: 500; margin-top: 2px; }
.m-now span { font-size: 13px; color: var(--m-soft); }
.m-covers { scroll-padding-left: 20px; display: flex; gap: 10px; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
.m-covers::-webkit-scrollbar { display: none; }
.m-covers figure { margin: 0; flex: none; width: 92px; }
.m-covers img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; }
.m-covers figcaption { font-size: 11.5px; line-height: 1.35; color: var(--m-soft); margin-top: 6px; }
.m-otis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-otis button { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.m-otis img { width: 100%; height: 100%; object-fit: cover; }
.m-sketch-card { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; background: var(--m-wash); border-radius: 16px; padding: 16px; cursor: pointer; }
.m-sketch-card .pad { width: 54px; height: 70px; border-radius: 10px; background: #1C1C1E; padding: 4px; flex: none; }
.m-sketch-card .pad i { display: block; width: 100%; height: 100%; border-radius: 7px; background: #FBFBF8; }
.m-sketch-card b { display: block; font-size: 15.5px; font-weight: 500; }
.m-sketch-card span { font-size: 13px; color: var(--m-soft); }

/* ---------- sheets and overlays ---------- */
.m-sheet-bg { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.28); animation: m-fade .2s ease; }
.m-sheet-bg[hidden] { display: none; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: m-up .3s cubic-bezier(.2,.8,.25,1); zoom: var(--tz); }
.m-sheet[hidden] { display: none; }
.m-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #DADAD7; margin: 0 auto 14px; }
.m-sheet h2 { font-size: 19px; font-weight: 600; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
.m-sheet h2 button { font: inherit; font-size: 14px; font-weight: 500; border: 0; background: none; color: var(--m-teal-deep); cursor: pointer; padding: 8px; }
.m-size { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--m-rule); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.m-size button { border: 0; background: #fff; font: inherit; font-weight: 500; padding: 12px 0; cursor: pointer; color: var(--m-ink); }
.m-size button + button { border-left: 1px solid var(--m-rule); }
.m-size button[aria-checked="true"] { background: var(--m-ink); color: #fff; }
.m-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; border-top: 1px solid var(--m-rule); background: none; font: inherit; color: inherit; text-align: left; padding: 14px 0; cursor: pointer; }
.m-toggle b { display: block; font-size: 15px; font-weight: 500; }
.m-toggle span { font-size: 13px; color: var(--m-soft); }
.m-toggle i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #E3E3E0; position: relative; transition: background .2s; }
.m-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.m-toggle[aria-checked="true"] i { background: var(--m-teal-deep); }
.m-toggle[aria-checked="true"] i::after { transform: translateX(18px); }
.m-sheet .desk { display: block; margin-top: 10px; font-size: 13.5px; color: var(--m-soft); }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-up { from { transform: translateY(100%); } }

.m-light { position: absolute; inset: 0; z-index: 50; background: rgba(10,10,10,.92); display: grid; place-items: center; padding: 20px; animation: m-fade .2s ease; }
.m-light[hidden] { display: none; }
.m-light img { max-width: 100%; max-height: 80%; border-radius: 10px; }
.m-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.m-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.m-story { position: absolute; inset: 0; z-index: 60; border: 0; width: 100%; height: 100%; background: #fff; }
.m-story[hidden] { display: none; }

.m-draw { position: absolute; inset: 0; z-index: 55; background: #fff; display: flex; flex-direction: column; animation: m-up .32s cubic-bezier(.2,.8,.25,1); }
.m-draw[hidden] { display: none; }
.m-draw header { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px 20px; border-bottom: 1px solid var(--m-rule); }
.m-draw header b { font-size: 16px; font-weight: 600; }
.m-draw header button { font: inherit; font-size: 15px; font-weight: 500; color: var(--m-blue); border: 0; background: none; padding: 10px; cursor: pointer; }
.m-draw canvas { flex: 1; width: 100%; touch-action: none; background: #FBFBF8 radial-gradient(#D9D8D2 1px, transparent 1.2px) 0 0 / 22px 22px; }
.m-pens { display: flex; justify-content: center; gap: 10px; padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--m-rule); }
.m-pens button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.m-pens button i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(0,0,0,.12); }
.m-pens button[aria-pressed="true"] { background: #EDEDEA; }
.m-pens button svg { width: 20px; height: 20px; fill: none; stroke: var(--m-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* accessibility: high contrast and readable font reach the new parts too */
.a11y-contrast .m-tab { color: #000; }
.a11y-contrast .m-tabs, .a11y-contrast .m-top { background: #fff; border-color: #000; }
.a11y-readable.m-on body, .a11y-readable .m-me, .a11y-readable .m-chat, .a11y-readable .m-sheet { font-family: "Atkinson Hyperlegible", "Poppins", sans-serif; }
@media (prefers-reduced-motion: reduce) { .m-panel.enter, .m-sheet, .m-sheet-bg, .m-light, .m-draw, .m-card { animation: none; transition: none; } }

/* ===== round 2 ===== */
/* top bar: name as a home button, and a labelled accessibility button */
.m-brand { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--m-ink); padding: 8px 8px 8px 0; cursor: pointer; letter-spacing: -.01em; }
.m-brand img { height: 26px; width: auto; }
.m-a11y-btn { width: auto; height: 40px; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 500; }
.m-a11y-btn svg { width: 20px; height: 20px; }
/* tighter page tops */
.m-panel > .win > .win-body { padding-top: 0 !important; padding-bottom: 0 !important; }
.m-panel .hero2 { padding-top: 8px !important; margin-top: 0 !important; }
.m-panel .hero2-ph.hero2-logo { margin-top: 0 !important; }
.m-panel .cta-band { margin-bottom: 0 !important; }
/* favourite tools: a quiet two-column list, clearly not buttons */
.m-panel .about-v2 .tools, .m-panel .tools { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 18px !important; margin-top: 10px !important; }
.m-panel .about-v2 .tools li, .m-panel .tools li { padding: 9px 0 !important; border-bottom: 1px solid var(--m-rule) !important; font-size: 14.5px !important; color: var(--m-soft) !important; }
.m-panel .about-v2 .tools li + li::before { content: none !important; }
/* featured case studies: less empty space */
.m-panel .case-min .case-card .card-body { min-height: 0 !important; padding: 20px 20px 22px !important; }
.m-panel .case-min .case-card .card-title { margin-top: 22px !important; font-size: 19px !important; }
/* other projects: logo and pill on one row, title underneath */
.m-panel .p-item summary { grid-template-columns: 1fr auto auto !important; grid-template-areas: "brand type chev" "title title title"; row-gap: 10px !important; column-gap: 10px !important; align-items: center !important; }
.m-panel .p-item .p-brand { grid-area: brand; grid-column: auto !important; }
.m-panel .p-item .p-type { grid-area: type; align-self: center !important; }
.m-panel .p-item .p-chev { grid-area: chev; align-self: center !important; margin-top: 0 !important; }
.m-panel .p-item .p-title { grid-area: title; }
.m-panel .p-item .p-desc { padding: 0 4px 20px 4px !important; }
/* photos: a swipeable row with captions */
.m-panel .collage { position: static !important; display: flex !important; gap: 12px; height: auto !important; aspect-ratio: auto !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 24px; margin: 22px -24px 0 !important; padding: 0 24px 4px !important; scrollbar-width: none; max-width: none !important; width: auto !important; transform: none !important; }
.m-panel .collage::-webkit-scrollbar { display: none; }
.m-slide { flex: none; width: 82%; margin: 0; scroll-snap-align: start; }
.m-panel .collage .ph-btn { position: static !important; inset: auto !important; transform: none !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; border-radius: 14px !important; overflow: hidden; border: 0 !important; box-shadow: none !important; display: block; padding: 0; margin: 0 !important; rotate: none !important; }
.m-panel .collage .ph-btn img { width: 100%; height: 100%; object-fit: cover; }
.m-slide figcaption { font-size: 13px; line-height: 1.45; color: var(--m-soft); margin-top: 8px; }
/* improv skills: one column, tap to expand */
.m-panel .gain-grid { display: block !important; }
.m-panel .gain-grid li { display: block !important; padding: 0 !important; margin-bottom: 10px; border-radius: 14px; overflow: hidden; }
.m-skill summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.m-skill summary::-webkit-details-marker { display: none; }
.m-skill .gain-ic { margin: 0 !important; }
.m-skill .gain-ic svg { width: 38px !important; height: 38px !important; }
.m-skill summary b { font-size: 15.5px; }
.m-skill p { margin: 0; padding: 0 16px 16px 64px; font-size: 14px; line-height: 1.5; color: var(--m-soft); }
/* full-screen viewers (reviews, Otis) */
.m-view { position: absolute; inset: 0; z-index: 58; background: #fff; display: flex; flex-direction: column; animation: m-up .32s cubic-bezier(.2,.8,.25,1); }
.m-view[hidden] { display: none; }
.m-view.closing { animation: m-down .26s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes m-down { to { transform: translateY(100%); } }
.m-view .bars { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 20px; right: 20px; display: flex; gap: 4px; align-items: center; height: 4px; z-index: 3; }
.m-view .bars span { flex: 1; height: 2px; border-radius: 2px; background: #E6E6E4; }
.m-view .bars span.past { background: #A9A9A6; }
.m-view .vx { position: absolute; z-index: 4; top: calc(24px + env(safe-area-inset-top, 0px)); right: 12px; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.m-view .vx svg { width: 14px; height: 14px; stroke: var(--m-ink); stroke-width: 1.6; fill: none; }
.m-rv-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 0; line-height: 1.2; }
.m-rv-meta { font-size: 13px; color: var(--m-mute); margin-top: 4px; }
.m-rv-meta .m-stars { font-size: 15px; margin-right: 8px; }
.m-otis-cap { font-size: 13.5px; color: var(--m-soft); margin: 10px 0 0; line-height: 1.5; }
/* My Desktop */
.m-room-card { display: block; width: 100%; border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.m-room-card .thumb { height: 170px; border-radius: 16px; overflow: hidden; position: relative; background: #F3EEE5; }
.m-room-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block !important; pointer-events: none !important; }
.m-room-card b { display: block; font-size: 15.5px; font-weight: 500; margin-top: 10px; }
.m-room-card span.s { font-size: 13px; color: var(--m-soft); }
.m-room { position: absolute; inset: 0; z-index: 54; background: #F3EEE5; animation: m-up .32s cubic-bezier(.2,.8,.25,1); }
.m-room[hidden] { display: none; }
.m-room.closing { animation: m-down .26s cubic-bezier(.5,0,.75,0) forwards; }
.m-room > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block !important; pointer-events: auto !important; }
.m-room .vx { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; cursor: pointer; }
.m-room .vx svg { width: 14px; height: 14px; stroke: var(--m-ink); stroke-width: 1.7; fill: none; }
.m-room #ipad { cursor: pointer; }

/* ===== round 3 ===== */
/* the site's page furniture that the app replaces */
.m-panel > .win > .win-bar, .m-panel .site-head, .m-panel .saf-bar { display: none !important; }
/* swiping photos moves only the photos */
.m-panel .collage { overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
/* one plus for everything that opens: black, no background, turns into an X */
.m-plus { flex: none; width: 24px; height: 24px; display: grid; place-items: center; transition: transform .25s; }
.m-plus svg { width: 13px; height: 13px; stroke: var(--m-ink); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.m-skill[open] .m-plus, .p-item[open] .m-plus { transform: rotate(45deg); }
.m-panel .p-item .m-plus.p-chev { grid-area: chev; align-self: center !important; margin: 0 !important; width: 24px !important; height: 24px !important; }
/* audiobooks */
.m-sub { font-size: 15px; font-weight: 600; margin: 22px 0 0; }
.m-now > div { flex: 1; min-width: 0; }
.m-now .scrub { margin-top: 8px; }
/* theatre reviews: bars like the stories, and the whole page scrolls */
.m-view .bars span.on { background: var(--m-ink); height: 4px; }
.m-view .vbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(70px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px)); cursor: pointer; }
.m-rv-img { display: block; width: 100%; height: 33dvh; max-height: 300px; border-radius: 14px; object-fit: cover; }
.m-rv-text { font-size: 15.5px; line-height: 1.6; color: var(--m-soft); margin-top: 14px; }
/* Otis: a plain photo viewer with arrows */
.m-gallery { position: absolute; inset: 0; z-index: 58; background: rgba(12,12,14,.96); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: calc(64px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: m-fade .2s ease; }
.m-gallery[hidden] { display: none; }
.m-gallery figure { margin: 0; }
.m-gallery img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; border-radius: 12px; }
.m-gallery figcaption { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.82); margin-top: 14px; text-align: center; min-height: 3em; }
.m-arrows { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.m-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.m-arrows button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-arrows .gcount { font-size: 13px; color: rgba(255,255,255,.7); min-width: 52px; text-align: center; }
/* My Desktop: the real scene, so its toys work */
.m-room > svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block !important; pointer-events: none !important; }
.m-room > svg.scene .hit, .m-room > svg.scene .dust circle { pointer-events: auto !important; }
.m-room-card .thumb svg .hit { pointer-events: none !important; }
.visually-hidden:not(:focus):not(:active) { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-view .visually-hidden:focus { position: absolute; z-index: 5; bottom: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.m-view .vprev:focus { left: 16px; } .m-view .vnext:focus { right: 16px; }
.m-room-card .thumb { display: block; }
.m-panel .collage { overflow-x: auto !important; overflow-y: hidden !important; }
.m-room-card .thumb { height: auto; aspect-ratio: 16 / 10; }
.m-me { padding-bottom: 40px; }
/* Me: each section sits on its own band so it's clear where one ends and the next begins */
.m-me .m-sec { margin: 0 -20px; padding: 26px 20px 28px; background: #fff; }
.m-me .m-sec:nth-of-type(odd) { background: #F4F3EF; }
.m-me .m-intro { padding-bottom: 22px; }
.m-me { padding-bottom: 0; }
.m-me .m-sec:last-child { padding-bottom: 44px; }
.m-me .m-now { background: #fff; }
