
:root {
  --bg: #14100c; --ink: #1b1a18; --mute: #6f6b64; --faint: #a39f97; --line: #e6e3dd;
  --acc: #2f9c8e; --acc-ink: #ffffff;
  --win: #ffffff; --chrome: #f2f1ee; --stripe: #dcd9d2; --sel: #1b1a18; --sel-ink: #ffffff;
  --serif: 'Pixelify Sans', ui-monospace, monospace;
  --px: 'Pixelify Sans', ui-monospace, monospace;
  --sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hand: 'Caveat', cursive;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #efece6; --mute: #a29d94; --faint: #6f6b64; --line: #2f2d2a;
  --acc: #7fd3c6; --acc-ink: #0d1514;
  --win: #1d1c1b; --chrome: #252422; --stripe: #33312d; --sel: #efece6; --sel-ink: #121110;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html { scroll-snap-type: y proximity; }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: #fff; color: #111; padding: 8px 12px; font-family: var(--px); }
.skip:focus { top: 12px; }

#track { height: 300vh; position: relative; }
#track::before, #track::after { content: ''; position: absolute; left: 0; height: 1px; width: 1px; scroll-snap-align: start; }
#track::before { top: 0; } #track::after { bottom: 0; scroll-snap-align: end; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: pan-y; }

/* film grain + vignette over the room (photo look) */
.grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain::after { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10,6,3,.55)); mix-blend-mode: normal; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0d0a08; }
#preFx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loader .ld { position: relative; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); width: min(1320px, calc(100vw - 32px)); transition: transform .5s cubic-bezier(.6,0,.8,.4), opacity .5s; }
.loader .w { font: 700 clamp(44px, 9.5vw, 148px)/.86 'Antonio', 'Arial Narrow', sans-serif; color: #efe7d8; letter-spacing: -.005em; white-space: nowrap; }
.loader .n { min-width: 2.6ch; text-align: right; font-variant-numeric: tabular-nums; }
.loader .n sup { font-size: .36em; vertical-align: top; position: relative; top: .12em; }
.loader .trk { flex: 1; height: clamp(40px, 7vw, 86px); border: 2px solid #efe7d8; border-radius: 999px; position: relative; min-width: 60px; }
.loader .trk i { position: absolute; top: 50%; left: 6px; width: calc(clamp(40px, 7vw, 86px) - 16px); height: calc(clamp(40px, 7vw, 86px) - 16px); margin-top: calc((clamp(40px, 7vw, 86px) - 16px) / -2); background: #7fd3c6; border-radius: 999px; display: grid; place-items: center; }
.loader .trk i img { width: 58%; image-rendering: pixelated; }
.loader .pnote { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; margin: 0; font: 500 11px var(--mono); letter-spacing: .16em; color: #a49b8c; padding: 0 16px; transition: transform .5s cubic-bezier(.6,0,.8,.4), opacity .5s; }
.loader .out { transform: translateY(-40%); opacity: 0; }

/* ---------- the OS inside the Mac (retro pixel, lives on the glass) ---------- */
.os { --desk: #e2dfd7; --dot: #bfbab0; --win: #fbfaf6; --ink: #141414; --mute: #67625a; --faint: #9a958c; --line: #d6d1c6; --chrome: #f0eee8; --stripe: #d6d1c6;
  --tb: #a9ded4; --acc: #2f9c8e; --wave: #c4ebe4; --sel: #141414; --sel-ink: #ffffff;
  position: fixed; left: 0; top: 0; z-index: 20; overflow: hidden; transform-origin: 0 0; border-radius: 12px; color: var(--ink);
  background: radial-gradient(circle, var(--dot) .9px, transparent 1.2px) 0 0 / 5px 5px, var(--desk);
  font-family: var(--mono); font-size: 12.5px; user-select: none; }
:root[data-theme="dark"] .os { --desk: #191b1d; --dot: #2c2f33; --win: #222427; --ink: #ecebe6; --mute: #a19d95; --faint: #6d6a64; --line: #393b3f; --chrome: #292b2e; --stripe: #393b3f;
  --tb: #2b6d65; --acc: #7fd3c6; --wave: #213f3b; --sel: #ecebe6; --sel-ink: #141414; }
.os.live { pointer-events: auto; } .os:not(.live) { pointer-events: none; }
/* CRT glass: scanlines, vignette and a soft reflection, above everything */
.os::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 99999; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 30%),
    repeating-linear-gradient(rgba(0,0,0,.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(0,0,0,.16) 100%);
  box-shadow: inset 0 0 26px rgba(0,0,0,.18); }
.os .bar { position: absolute; top: 0; left: 0; right: 0; height: 24px; display: flex; align-items: center; gap: 0; padding: 0 8px; background: var(--win); border-bottom: 1px solid var(--ink); z-index: 9000; font-family: var(--px); font-size: 13px; }
.bar .m { height: 24px; padding: 0 9px; display: flex; align-items: center; position: relative; }
.bar .m.open, .bar .m:hover { background: var(--sel); color: var(--sel-ink); }
.bar .m img { width: 16px; height: 16px; image-rendering: pixelated; }
.bar .sp { flex: 1; }
.bar .clock { font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.bar .eject { height: 24px; padding: 0 8px; display: flex; align-items: center; gap: 6px; }
.bar .eject svg { width: 12px; height: 12px; }
.bar .eject:hover { background: var(--sel); color: var(--sel-ink); }
/* theme switch: a pixel slide switch, day / night */
.os .knobc { width: 34px; height: 16px; position: relative; margin: 0 6px; flex: none; }
.os .knobc .knob { position: absolute; inset: 0; border: 1px solid var(--ink); background: var(--win); opacity: 1; mask: none; -webkit-mask: none; transform: none; border-radius: 0; }
.os .knobc .dot { position: absolute; inset: auto; top: 3px; left: 3px; width: 10px; height: 10px; border: 0; border-radius: 0; background: var(--ink); transform: translateX(calc(var(--on, 0) * 18px)); transition: transform .25s steps(4); pointer-events: none; }
.os .knobc .dot::before { display: none; }
:root[data-theme="dark"] .os .knobc { --on: 1; }
.os .knobc::before, .os .knobc::after { position: absolute; top: 1px; font-size: 10px; line-height: 14px; pointer-events: none; font-family: var(--px); color: var(--mute); }
.os .knobc::before { content: '☾'; right: 4px; } .os .knobc::after { content: '☀'; left: 4px; }
:root[data-theme="dark"] .os .knobc::after { display: block; } :root[data-theme="light"] .os .knobc::after { display: none; } :root[data-theme="dark"] .os .knobc::before { display: none; }
.menu { position: absolute; top: 24px; left: 0; min-width: 210px; background: var(--win); color: var(--ink); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 3px 0; z-index: 9001; }
.menu button { display: flex; width: 100%; justify-content: space-between; padding: 4px 16px; text-align: left; white-space: nowrap; gap: 24px; }
.menu button:hover { background: var(--sel); color: var(--sel-ink); }
.menu button kbd { font: inherit; opacity: .55; }
.menu hr { border: 0; border-top: 1px dotted var(--faint); margin: 3px 0; }

.desk { position: absolute; inset: 24px 0 0 0; }
.icons { position: absolute; left: 10px; top: 12px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows, 5), auto); gap: 6px 2px; }
.ic { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; }
.ic img { width: 36px; height: 36px; image-rendering: pixelated; pointer-events: none; }
.ic span { font-family: var(--px); font-size: 12px; padding: 0 4px; text-align: center; line-height: 1.25; background: var(--desk); }
.ic.sel span { background: var(--sel); color: var(--sel-ink); }
.ic.sel img { filter: invert(.15) brightness(.85); }
.trash { position: absolute; right: 8px; bottom: 30px; }
.plate { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; display: flex; gap: 14px; align-items: center; justify-content: center; font-family: var(--px); font-size: 11px; color: var(--mute); white-space: nowrap; background: var(--win); border-top: 1px solid var(--ink); }
.plate a { text-decoration: none; } .plate a:hover { color: var(--ink); text-decoration: underline; }

/* windows */
.win { position: absolute; background: var(--win); border: 1px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.28); display: flex; flex-direction: column; min-width: 280px; min-height: 160px; animation: zoomwin .28s steps(5); }
:root[data-theme="dark"] .win { box-shadow: 3px 3px 0 rgba(0,0,0,.6); }
@keyframes zoomwin { from { transform: scale(.4); opacity: .2; } }
.win.closing { animation: closewin .16s steps(3) forwards; }
@keyframes closewin { to { transform: scale(.5); opacity: 0; } }
.tbar { height: 22px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--ink); cursor: grab; touch-action: none; background: var(--win); }
.win.front .tbar { background: var(--tb); }
.tbar b { font-family: var(--px); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; max-width: calc(100% - 80px); }
.tbar .bx { position: absolute; top: 4px; width: 13px; height: 13px; border: 1px solid var(--ink); background: var(--win); }
.tbar .close { left: 6px; } .tbar .zoom { right: 6px; }
.tbar .close::after { content: ''; position: absolute; inset: 2px; background: linear-gradient(45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%); opacity: 0; }
.tbar .close:hover::after { opacity: 1; }
.tbar .zoom::after { content: ''; position: absolute; left: 1px; top: 1px; width: 6px; height: 6px; border: 1px solid var(--ink); }
.win:not(.front) .tbar .bx { visibility: hidden; }
.tbar .bx:active { background: var(--ink); }
.wbody { flex: 1; overflow: auto; overscroll-behavior: contain; user-select: text; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--ink) var(--chrome); }
.grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--ink) 50% 56%, transparent 56% 68%, var(--ink) 68% 74%, transparent 74%); touch-action: none; }
.wstatus { height: 20px; flex: none; border-top: 1px solid var(--ink); display: flex; align-items: center; padding: 0 10px; font-family: var(--px); font-size: 11px; color: var(--mute); gap: 14px; }

/* welcome dialog (Wands style) */
.welcome { padding: 18px; position: relative; overflow: hidden; height: 100%; display: grid; place-items: center; background: var(--chrome); }
.welcome::before { content: ''; position: absolute; left: -10%; right: -10%; top: 46%; height: 70px; background: var(--wave); transform: rotate(-6deg); border-radius: 50%; }
.welcome .box { position: relative; background: var(--win); border: 1px solid var(--ink); padding: 22px 26px; width: min(100%, 420px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.welcome .box img { width: 48px; height: 48px; image-rendering: pixelated; }
.welcome h3 { font-family: var(--px); font-weight: 500; font-size: 22px; margin: 4px 0 0; letter-spacing: .02em; }
.welcome p { margin: 0; color: var(--mute); line-height: 1.6; font-size: 12.5px; }
.welcome fieldset { border: 1px solid var(--ink); margin: 10px 0 4px; padding: 10px 12px 12px; width: 100%; text-align: left; }
.welcome legend { font-family: var(--px); font-size: 12px; padding: 0 6px; }
.welcome .row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; }
.welcome .row b { font-weight: 600; }
.welcome .btns { justify-content: center; margin-top: 6px; }

/* pixel buttons */
.os .btn { height: 28px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 0; box-shadow: inset -1px -1px 0 var(--line), 2px 2px 0 var(--ink); font-family: var(--px); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--win); }
.os .btn:hover { transform: none; box-shadow: inset -1px -1px 0 var(--line), 2px 2px 0 var(--ink); background: var(--chrome); }
.os .btn:active { transform: translate(2px, 2px); box-shadow: none; }
.os .btn.pri { background: var(--ink); color: var(--win); box-shadow: inset 0 0 0 2px var(--win), inset 0 0 0 3px var(--ink), 2px 2px 0 var(--ink); }
.os .btn img { width: 14px; height: 14px; }
/* shared content blocks (Mac windows and phone apps) */
.c-about { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 28px 30px 30px; }
.c-about .ph { display: flex; flex-direction: column; gap: 10px; }
.dither { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; background: var(--chrome); border: 1px solid var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; align-self: flex-start; }
.seg button { padding: 5px 12px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.c-about h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin: 2px 0 6px; }
.c-about h3 em { font-style: italic; }
.role { font-weight: 600; margin: 0 0 16px; }
.c-about p.t { color: var(--mute); line-height: 1.6; margin: 0 0 18px; font-size: 14.5px; max-width: 46ch; }
.quote { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; margin: 4px 0 20px; padding: 0; max-width: 40ch; }
.quote::before { content: '“'; } .quote::after { content: '”'; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 7px 22px; font-size: 13.5px; margin: 0 0 22px; }
.facts dt { font-family: var(--mono); font-weight: 300; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.facts dd { margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 600; font-size: 13.5px; text-decoration: none; background: var(--win); box-shadow: 0 2px 0 var(--ink); transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.btn.pri { background: var(--ink); color: var(--bg); }
.btn img { width: 16px; height: 16px; }

.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.list th { text-align: left; font-weight: 500; font-size: 12px; color: var(--mute); padding: 8px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--win); }
.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr.row { cursor: default; }
.list tr.row:hover td { background: var(--chrome); }
.list tr.row.on td { background: var(--sel); color: var(--sel-ink); }
.list td.k { color: var(--mute); }
.list tr.row.on td.k { color: inherit; opacity: .75; }
.list .nm { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.list .nm img { width: 20px; height: 20px; }
.detail { padding: 20px 22px 24px; border-top: 1px solid var(--ink); }
.detail h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; }
.detail .sub { font-weight: 600; margin: 0 0 12px; }
.detail p { color: var(--mute); line-height: 1.6; margin: 0 0 14px; max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; font-weight: 500; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }

.svc { padding: 18px 20px 22px; }
.svc h5 { font-family: var(--mono); font-weight: 300; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 14px 0 8px; }
.svc h5:first-child { margin-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svc-it { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 13.5px; line-height: 1.3; transition: border-color .15s; }
.svc-it:hover { border-color: var(--ink); }
.svc-it.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-line { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 8px; min-height: 84px; }
.svc-line b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.svc-line span { color: var(--mute); line-height: 1.55; }

.notes { display: grid; grid-template-columns: 220px 1fr; height: 100%; min-height: 0; }
.notes .nl { border-right: 1px solid var(--line); overflow: auto; overscroll-behavior: contain; background: var(--chrome); }
.notes .ni { display: block; width: 100%; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notes .ni b { display: block; font-size: 13.5px; line-height: 1.35; margin-bottom: 4px; }
.notes .ni span { font-size: 12px; color: var(--mute); }
.notes .ni.on { background: var(--win); box-shadow: inset 3px 0 0 transparent; }
.notes .ni.on b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: 2px; }
.notes .nt { overflow: auto; overscroll-behavior: contain; padding: 26px 30px 30px; }
.nt h4 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 6px; }
.nt .meta { font-size: 12px; color: var(--mute); margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.nt .body { line-height: 1.7; font-size: 14.5px; white-space: pre-line; max-width: 62ch; }
.nt .btns { margin-top: 22px; }

.doc { padding: 30px 34px 34px; max-width: 640px; }
.doc .eyebrow { margin-bottom: 14px; }
.doc h4 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 8px; }
.doc .sub { font-weight: 600; margin: 0 0 4px; }
.doc .k { color: var(--mute); font-size: 13px; margin: 0 0 16px; }
.doc p { color: var(--mute); line-height: 1.65; }
.empty { padding: 40px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty img { width: 64px; height: 64px; margin-bottom: 10px; }
.empty h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.02em; margin: 0; }
.empty p { color: var(--mute); max-width: 36ch; line-height: 1.6; margin: 4px 0 16px; }

.term { background: #0f0f0e; color: #e8e4dc; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; padding: 16px 18px; min-height: 100%; cursor: text; }
.term .o { white-space: pre-wrap; word-break: break-word; }
.term .p { color: #e0855c; }
.term .d { color: #8f8a80; }
.term .h { color: #fff; font-weight: 500; }
.term a { color: #e8c39e; }
.term .ln { display: flex; gap: 8px; }
.term input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; caret-color: #e0855c; padding: 0; }

.compose { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.compose .to { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.compose .to b { color: var(--ink); font-weight: 600; }
.compose label { font-size: 12px; font-weight: 600; color: var(--mute); }
.compose input, .compose textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--win); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; outline: 0; transition: border-color .15s; }
.compose input:focus, .compose textarea:focus { border-color: var(--ink); }
.compose textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.compose .fine { font-size: 12px; color: var(--mute); margin: 0; line-height: 1.5; }

.photo { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.photo .dither { max-width: 340px; }
.trashc { padding: 20px; display: flex; gap: 18px; align-items: flex-start; }
.trashc .ic { width: 120px; }
.trashc p { color: var(--mute); line-height: 1.55; margin: 6px 0 0; font-size: 13.5px; }

.pts { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; max-width: 60ch; }
.pts li { position: relative; padding-left: 18px; line-height: 1.6; color: var(--mute); font-size: 14.5px; }
.pts li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 1px; background: var(--ink); }
.notes.md .nl { width: auto; }


/* retro overrides for shared blocks inside the Mac */
.os .c-about { grid-template-columns: 170px 1fr; gap: 22px; padding: 20px 22px 22px; }
.os .c-about h3 { font-size: 32px; }
.os .dither, .os .lav { border-radius: 0; image-rendering: pixelated; }
.os .seg { border-radius: 0; } .os .seg button { font-family: var(--px); }
.os .quote { font-family: var(--px); font-style: normal; font-size: 16px; }
.os .quote::before, .os .quote::after { content: '"'; }
.os .c-about p.t, .os .pts li, .os .nt .body { font-size: 12.5px; }
.os .tags span { border-radius: 0; border-color: var(--ink); color: var(--ink); font-family: var(--px); }
.os .svc-it { border-radius: 0; border-color: var(--ink); font-family: var(--px); font-weight: 400; font-size: 13px; }
.os .svc-line { border-radius: 0; background: var(--chrome); }
.os .svc-line b { font-family: var(--px); }
.os .notes .ni b { font-family: var(--px); font-weight: 400; font-size: 13px; }
.os .notes .ni.on { background: var(--sel); color: var(--sel-ink); } .os .notes .ni.on span { color: inherit; opacity: .75; }
.os .notes .ni.on b::before { display: none; }
.os .nt h4, .os .doc h4, .os .detail h4, .os .empty h4 { font-family: var(--px); font-weight: 500; }
.os .compose input, .os .compose textarea { border-radius: 0; border-color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.os .compose label, .os .compose .to { font-family: var(--px); }
.os .term { font-family: var(--mono); font-size: 12px; }
.os .facts dt { font-family: var(--px); letter-spacing: .06em; }
.os .eyebrow { font-family: var(--px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.os .pts li::before { width: 4px; height: 4px; top: .6em; background: var(--acc); }

/* Mac login */
.login { position: absolute; inset: 0; display: grid; place-items: center; z-index: 50; }
.lwin { width: 320px; position: relative; animation: none; }
.lcard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 22px 18px; text-align: center; }
.lav { width: 84px; height: 84px; border: 1px solid var(--ink); image-rendering: pixelated; }
.lcard > b { font-family: var(--px); font-weight: 500; font-size: 20px; }
.lform { display: flex; width: 100%; gap: 6px; }
.lform input { flex: 1; min-width: 0; border: 1px solid var(--ink); outline: 0; background: var(--win); color: var(--ink); font-family: var(--mono); font-size: 14px; padding: 6px 10px; letter-spacing: .3em; box-shadow: inset 1px 1px 0 var(--line); }
.lform input::placeholder { letter-spacing: 0; color: var(--faint); font-family: var(--px); }
.lhint { font-size: 11.5px; color: var(--mute); margin: 0; line-height: 1.45; }
.lmsg { font-family: var(--px); font-size: 12.5px; margin: 0; min-height: 17px; line-height: 1.4; color: var(--ink); }
.lwin.shake { animation: shake .42s steps(8); }
@keyframes shake { 15%, 75% { transform: translateX(-9px); } 30%, 90% { transform: translateX(8px); } 45% { transform: translateX(-6px); } 60% { transform: translateX(4px); } }
.os.opening .lwin { transform: scale(.4); opacity: 0; transition: transform .3s steps(5), opacity .3s steps(5); transition-delay: .25s; }
.os .ic, .os .welcome-win { transition: opacity .4s steps(4), transform .4s steps(4); }
.os .ic { transition-delay: calc(var(--i, 0) * 50ms + .1s); }
.os.locked .icons .ic, .os.locked .trash .ic, .os.locked .win:not(.lwin) { opacity: 0; transform: translateY(8px); transition: none; }

/* toasts: pixel alert slips */
.toasts { position: fixed; z-index: 9500; top: 42px; right: 14px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: 290px; }
.toast { background: #fbfaf6; color: #141414; border: 1px solid #141414; box-shadow: 3px 3px 0 #141414; padding: 10px 12px; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: center; animation: tin .3s steps(4); pointer-events: auto; font-family: var(--mono); }
.toast img { grid-row: span 2; width: 28px; height: 28px; image-rendering: pixelated; }
.toast b { font-family: var(--px); font-weight: 500; font-size: 13px; } .toast span { font-size: 11.5px; color: #67625a; line-height: 1.4; }
.toast.out { animation: tout .2s steps(3) forwards; }
@keyframes tin { from { transform: translateY(-10px); opacity: 0; } }
@keyframes tout { to { transform: translateX(14px); opacity: 0; } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: crt .55s cubic-bezier(.6,0,.2,1); }
@keyframes crt { 0% { clip-path: inset(50% 0 50% 0); filter: brightness(2.2); } 35% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(2); } 100% { clip-path: inset(0 0 0 0); filter: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  ::view-transition-new(root) { animation: none; } .grain { animation: none; }
}
/* ---------- the phone OS (inside the iPhone) ---------- */
.ios { position: fixed; inset: 0; z-index: 20; overflow: hidden; transform-origin: 0 0; color: #fff; user-select: none; -webkit-user-select: none; font-family: var(--sans); background: #111; }
.ios:not(.live) { pointer-events: none; }
.ios .wp { position: absolute; inset: 0; background: url(../img/wall.jpg) center / cover; }
.ios .wp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: calc(env(safe-area-inset-top) + 30px); padding: env(safe-area-inset-top) 16px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; z-index: 30; }
.sbar .r { display: flex; gap: 8px; align-items: center; }
.sbar .bat { width: 24px; height: 11px; border: 1.2px solid currentColor; border-radius: 3px; position: relative; padding: 1px; }
.sbar .bat::before { content: ''; display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1px; }
.sbar .bat::after { content: ''; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.sbar .knobc { transform: scale(.72); margin-right: -4px; }
.sbar .knobc .knob { background: repeating-conic-gradient(from 0deg, #fff 0 2deg, transparent 2deg 15deg); opacity: .8; }
.sbar .knobc .dot { border-color: #fff; }

.lock { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top) + 64px) 14px 0; transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .4s; touch-action: none; }
.lock.gone { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.lock .tm { font-weight: 300; font-size: 84px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lock .dt { font-size: 18px; font-weight: 400; margin-top: 6px; opacity: .92; }
.lock .nts { width: 100%; max-width: 380px; margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.nc { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; padding: 11px 13px; border-radius: 14px; background: rgba(245,243,240,.82); color: #1b1a18; -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); text-align: left; }
.nc img { width: 22px; height: 22px; border-radius: 5px; }
.nc .ap { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6f6b64; align-self: center; }
.nc .w { font-size: 12px; color: #6f6b64; align-self: center; }
.nc .tx { grid-column: 1 / -1; font-size: 14px; line-height: 1.38; }
.nc .tx b { display: block; }
.lock .open { margin-top: auto; margin-bottom: calc(env(safe-area-inset-bottom) + 26px); font-size: 15px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: breathe 2.4s ease-in-out infinite; }
.lock .open i { width: 120px; height: 5px; border-radius: 3px; background: #fff; }
@keyframes breathe { 50% { opacity: .55; } }

.home { position: absolute; inset: 0; z-index: 5; padding: calc(env(safe-area-inset-top) + 40px) 18px 0; display: flex; flex-direction: column; opacity: 0; transform: scale(1.08); transition: opacity .45s, transform .55s cubic-bezier(.2,.9,.2,1); }
.home.on { opacity: 1; transform: none; }
.widget { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: rgba(250,248,245,.86); color: #1b1a18; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); text-align: left; width: 100%; }
.widget img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.widget b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; }
.widget span { font-size: 13px; color: #6f6b64; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; margin-top: 22px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.app .ai { width: 60px; height: 60px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .2s; }
:root[data-theme="dark"] .app .ai { background: #232220; }
.app .ai img { width: 40px; height: 40px; }
.app .ai.full { background: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.app .ai.full img { width: 70px; height: 70px; margin: -5px; }
.app:active .ai { transform: scale(.92); }
.dock { margin-top: auto; margin-bottom: calc(env(safe-area-inset-bottom) + 10px); padding: 12px 14px 8px; border-radius: 28px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dock .app > span:last-child { display: none; }
.phplate { text-align: center; font-family: var(--mono); font-weight: 300; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin: 0 0 calc(env(safe-area-inset-bottom) + 10px); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.phplate a { text-decoration: none; }
.phplate button { text-transform: uppercase; letter-spacing: inherit; font-size: inherit; }

.sheet { position: absolute; inset: 0; z-index: 40; background: var(--win); color: var(--ink); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.9,.2,1); user-select: text; -webkit-user-select: text; }
.sheet.on { transform: none; }
.sheet .sh { height: calc(env(safe-area-inset-top) + 52px); padding: env(safe-area-inset-top) 8px 0; flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.sheet .sh b { font-weight: 600; font-size: 16px; }
.sheet .sh button { height: 44px; min-width: 64px; padding: 0 10px; font-size: 15px; color: var(--acc); font-weight: 500; }
.sheet .sh .bk { text-align: left; } .sheet .sh .x { text-align: right; }
.sheet .sb { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.sheet .c-about { grid-template-columns: 1fr; padding: 20px 20px 28px; gap: 18px; }
.sheet .c-about .ph { max-width: 220px; }
.sheet .c-about h3 { font-size: 40px; }
.sheet .notes { grid-template-columns: 1fr; height: auto; }
.sheet .notes .nl { border-right: 0; }
.sheet .notes .nt { padding: 22px 20px 30px; }
.sheet .notes.reading .nl { display: none; }
.sheet .notes:not(.reading) .nt { display: none; }
.sheet .doc { padding: 22px 20px 30px; }
.sheet .list .hide-m { display: none; }
.sheet .term { min-height: 100%; font-size: 12px; }
.sheet .compose { padding: 18px 20px 26px; }
.sheet .svc { padding: 18px 20px 26px; }
.sheet .svc-grid { grid-template-columns: 1fr 1fr; }
body.phone .toasts { top: auto; bottom: calc(env(safe-area-inset-bottom) + 96px); left: 12px; right: 12px; width: auto; }
body.phone .toast { border-radius: 14px; border: 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* phone passcode */
.pass { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top) + 70px) 24px calc(env(safe-area-inset-bottom) + 24px); background: rgba(12,10,9,.45); -webkit-backdrop-filter: blur(26px) saturate(1.2); backdrop-filter: blur(26px) saturate(1.2); opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.2,1); }
.pass.on { opacity: 1; transform: none; pointer-events: auto; }
.pass.ok { opacity: 0; transform: scale(1.06); }
.pass > b { font-size: 19px; font-weight: 500; }
.ph-hint { font-size: 13px; opacity: .85; margin: 8px 0 0; text-align: center; max-width: 250px; line-height: 1.4; }
.dots { display: flex; gap: 22px; margin: 26px 0 0; }
.dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.4px solid #fff; transition: background .12s; }
.dots i.on { background: #fff; }
.dots.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
.ph-msg { font-size: 13px; font-weight: 600; min-height: 36px; margin: 14px 0 0; text-align: center; max-width: 270px; line-height: 1.4; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 24px; margin-top: auto; margin-bottom: auto; }
.pad button { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 34px; font-weight: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: background .1s; color: #fff; }
.pad button small { font-size: 9.5px; font-weight: 600; letter-spacing: .2em; margin-top: 3px; min-height: 10px; }
.pad button:active { background: rgba(255,255,255,.5); }
.pad button.tx { background: none; font-size: 15px; font-weight: 500; }
@media (max-height: 700px) { .pad { grid-template-columns: repeat(3, 66px); gap: 10px 20px; } .pad button { width: 66px; height: 66px; font-size: 28px; } .pass { padding-top: calc(env(safe-area-inset-top) + 44px); } }

.sbar .knobc { position: relative; width: 30px; height: 30px; transform: scale(.72); margin-right: -4px; }
.sbar .knobc .knob { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #fff 0 2deg, transparent 2deg 15deg); -webkit-mask: radial-gradient(circle, transparent 0 9.5px, #000 10px 15px); mask: radial-gradient(circle, transparent 0 9.5px, #000 10px 15px); opacity: .8; }
.sbar .knobc .dot { position: absolute; inset: 7px; border-radius: 50%; border: 1px solid #fff; transform: rotate(var(--rot, 0deg)); transition: transform .7s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
body.phone .toasts { top: auto; bottom: calc(env(safe-area-inset-bottom) + 96px); left: 12px; right: 12px; width: auto; }
body.phone .toast { border-radius: 14px; border: 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* phones: the OS stays on the glass (small), with a compact layout */
.tbar .bk { position: absolute; left: 24px; top: 2px; height: 16px; padding: 0 5px; font-family: var(--px); font-size: 11px; border: 1px solid var(--ink); background: var(--win); line-height: 14px; }
.os.tiny { font-size: 11px; border-radius: 8px; }
.os.tiny .bar { height: 20px; font-size: 11.5px; padding: 0 4px; }
.os.tiny .bar .m { height: 20px; padding: 0 6px; }
.os.tiny .bar .m[data-menu="file"], .os.tiny .bar .m[data-menu="view"], .os.tiny .bar .eject span { display: none; }
.os.tiny .bar .clock { font-size: 10.5px; padding: 0 4px; }
.os.tiny .bar .eject { height: 20px; padding: 0 6px; font-size: 0; gap: 0; } .os.tiny .bar .eject svg { width: 11px; height: 11px; }
.os.tiny .knobc { transform: scale(.85); margin: 0 2px; }
.os.tiny .desk { top: 20px; }
.os.tiny .icons { left: 0; right: 0; top: 8px; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-template-rows: none; gap: 4px 0; justify-items: center; }
.os.tiny .ic { width: 64px; padding: 2px; gap: 2px; }
.os.tiny .ic img { width: 28px; height: 28px; }
.os.tiny .ic span { font-size: 10px; }
.os.tiny .trash { right: 4px; bottom: 20px; } .os.tiny .trash .ic { width: 52px; }
.os.tiny .plate { height: 17px; font-size: 9.5px; gap: 10px; }
.os.tiny .win.full { left: 0 !important; top: 20px !important; width: 100% !important; height: calc(100% - 20px - 17px) !important; border-left: 0; border-right: 0; box-shadow: none; min-width: 0; min-height: 0; animation: sheetup .25s steps(4); }
@keyframes sheetup { from { transform: translateY(25%); opacity: .3; } }
.os.tiny .win .tbar { height: 20px; } .os.tiny .tbar .bx { top: 3px; width: 12px; height: 12px; } .os.tiny .tbar b { font-size: 10.5px; }
.os.tiny .win .grip { display: none; } .os.tiny .wstatus { display: none; }
.os.tiny .lwin { width: calc(100% - 16px) !important; left: 8px !important; height: auto !important; top: 26px !important; }
.os.tiny .lcard { padding: 8px 12px 10px; gap: 5px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
.os.tiny .lav { width: 46px; height: 46px; } .os.tiny .lcard > b { font-size: 15px; align-self: center; }
.os.tiny .lform input { font-size: 13px; padding: 4px 8px; } .os.tiny .lhint, .os.tiny .lmsg { font-size: 10px; width: 100%; }
.os.tiny .btn { height: 24px; padding: 0 10px; font-size: 10.5px; }
.os.tiny .c-about { grid-template-columns: 1fr; padding: 12px; gap: 10px; } .os.tiny .c-about .ph { max-width: 120px; }
.os.tiny .c-about h3 { font-size: 22px; } .os.tiny .c-about p.t, .os.tiny .pts li, .os.tiny .nt .body { font-size: 11px; line-height: 1.55; }
.os.tiny .quote { font-size: 13px; } .os.tiny .facts { font-size: 11px; gap: 4px 12px; }
.os.tiny .notes { grid-template-columns: 1fr; height: auto; }
.os.tiny .notes .nl { border-right: 0; background: var(--win); }
.os.tiny .notes.reading .nl { display: none; } .os.tiny .notes:not(.reading) .nt { display: none; }
.os.tiny .notes .ni { padding: 8px 12px; } .os.tiny .notes .ni.on { background: none; color: inherit; } .os.tiny .notes .ni.on span { opacity: 1; color: var(--mute); }
.os.tiny .notes .nt { padding: 12px; } .os.tiny .nt h4, .os.tiny .doc h4 { font-size: 18px; }
.os.tiny .svc { padding: 10px 12px; } .os.tiny .svc-grid { grid-template-columns: 1fr 1fr; gap: 5px; } .os.tiny .svc-it { padding: 7px 8px; font-size: 11px; }
.os.tiny .svc-line { padding: 10px; min-height: 0; } .os.tiny .svc-line b { font-size: 16px; }
.os.tiny .doc { padding: 12px; } .os.tiny .compose { padding: 10px 12px; gap: 6px; } .os.tiny .compose textarea { min-height: 70px; }
.os.tiny .welcome { padding: 8px; height: auto; min-height: 100%; } .os.tiny .welcome .box { padding: 10px 12px; gap: 4px; }
.os.tiny .welcome .box img { width: 30px; height: 30px; } .os.tiny .welcome h3 { font-size: 16px; } .os.tiny .welcome p { font-size: 10.5px; }
.os.tiny .welcome fieldset { margin: 4px 0 2px; padding: 4px 8px 6px; } .os.tiny .welcome .row { font-size: 10.5px; padding: 1px 0; }
.os.tiny .term { font-size: 10.5px; padding: 8px 10px; }
.os.tiny .empty { padding: 14px; } .os.tiny .empty img { width: 40px; height: 40px; } .os.tiny .empty h4 { font-size: 18px; }
body.small .toasts { top: auto; bottom: 74px; left: 12px; right: 12px; width: auto; }
.os .win.big .term { font-size: 21px; line-height: 1.55; padding: 18px 22px; }
.os .seg button[aria-pressed="true"], .os .svc-it.on, .os .notes .ni.on b { color: var(--win); }
.os .svc-it.on { background: var(--ink); }
.os.snap *, .os.snap { animation: none !important; transition: none !important; }
.os.live, .os.live * { overscroll-behavior: contain; }
/* phones: the full-height Mac face the screen grows into */
.pframe { position: fixed; z-index: 19; visibility: hidden; pointer-events: none; border-radius: 18px; --chin: 0;
  background: linear-gradient(180deg, #f1ebdd 0%, #e7dfcd 55%, #ddd4c0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.08), 0 0 0 100vmax #17120e; }
.pframe::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.012) 0 1px, transparent 1px 3px); }
.pframe .chin { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; display: flex; align-items: center; gap: 8px; padding: 0 22px; opacity: var(--chin); }
.pframe .rb { width: 13px; height: 15px; border-radius: 3px; background: linear-gradient(#5ebd3e 0 17%, #ffb900 17% 33%, #f78200 33% 50%, #e23838 50% 67%, #973999 67% 83%, #009cdf 83%); opacity: .85; }
.pframe em { font: 600 19px/1 Caveat, cursive; color: #8f8574; font-style: normal; }
.pframe .slot { margin-left: auto; width: 96px; height: 7px; border-radius: 2px; background: #2a241e; box-shadow: 0 0 0 3px #e3dbc8, 0 0 0 4px #c9bfaa, inset 0 2px 2px rgba(0,0,0,.6); }
:root[data-theme="dark"] .pframe { background: linear-gradient(180deg, #d9d1bf 0%, #cdc4b0 60%, #c2b8a3 100%); }
.os .pdesk { position: absolute; left: 14px; right: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.os .pdesk > * { pointer-events: auto; }
.os .pdesk .pol { all: unset; cursor: pointer; width: 42%; max-width: 150px; background: #fbfaf6; padding: 7px 7px 26px; box-shadow: 2px 3px 0 rgba(0,0,0,.18), 0 0 0 1px var(--ink); transform: rotate(-4deg); position: relative; }
.os .pdesk .pol canvas { width: 100%; aspect-ratio: 1; display: block; image-rendering: pixelated; border: 1px solid var(--ink); }
.os .pdesk .pol i { position: absolute; left: 6px; right: 6px; bottom: 5px; font: 600 13px/1 Caveat, cursive; color: #3a3530; text-align: center; font-style: normal; white-space: nowrap; overflow: hidden; }
.os .pdesk .stk { width: 46%; max-width: 170px; background: #fff3a6; color: #3a3530; padding: 12px 12px 10px; font: 500 17px/1.15 Caveat, cursive; transform: rotate(3deg); box-shadow: 2px 3px 0 rgba(0,0,0,.15); position: relative; }
.os .pdesk .stk::before { content: ''; position: absolute; top: -7px; left: 50%; width: 46px; height: 14px; transform: translateX(-50%) rotate(-3deg); background: rgba(169,222,212,.75); }
.os .pdesk .stk b { font-weight: 700; } .os .pdesk .stk i { display: block; text-align: right; font-style: normal; margin-top: 4px; }
/* holding a pencil from the mug: it becomes the cursor */
body.pencil, body.pencil canvas#gl { cursor: var(--pencil) !important; }
body.holding canvas#gl { cursor: grabbing !important; }
