/* ===== Paper, sticky bar, logo, music, stickers, cursor, postcard ===== */

/* ---------- graph paper: change --sq to change the size of one square ---------- */
:root { --sq: 14px; --paper: #f8f7f1; --grid: rgba(96, 132, 160, .13); --grid-strong: rgba(96, 132, 160, .26); }
html { background: none; }
body {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--sq) * 5) calc(var(--sq) * 5), calc(var(--sq) * 5) calc(var(--sq) * 5), var(--sq) var(--sq), var(--sq) var(--sq);
}

/* ---------- top bar: logo + links + music ---------- */
.top { gap: 16px; }
.top .logo { display: block; line-height: 0; }
.top .logo img { height: 56px; width: auto; display: block; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.top .logo:hover img { transform: rotate(-6deg) scale(1.06); }
.top-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.music { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); border: 1.5px solid var(--ink); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.music:hover { transform: scale(1.08); background: #fff; }
.music svg { width: 36px; height: 36px; overflow: visible; }
.music .disc { transform-origin: 22px 26px; transform-box: view-box; }
.music.on .disc { animation: spin 2.4s linear infinite; }
.music .arm { transform-origin: 40px 8px; transform-box: view-box; transition: transform .6s cubic-bezier(.3,1.3,.5,1); transform: rotate(-24deg); }
.music.on .arm { transform: rotate(0deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- dock: sits in the page, then follows you along the bottom of the screen, see-through ---------- */
.dock-wrap { position: relative; z-index: 30; padding: 0 16px; margin: 40px 0 44px; min-height: var(--dock-h, 90px); display: flex; justify-content: center; pointer-events: none; }
.dock { position: relative; isolation: isolate; pointer-events: auto; background: none; box-shadow: none; }
.dock::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(#f1f1ec, #deded8); box-shadow: 0 10px 16px rgba(40,40,25,.22), inset 0 1px 0 #fff; transition: opacity .35s; }
.dock-wrap.stuck .dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); animation: dockUp .45s cubic-bezier(.3,1.4,.5,1); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
.dock-wrap.stuck .dock::before { opacity: .5; box-shadow: 0 8px 22px rgba(40,40,25,.2), inset 0 1px 0 rgba(255,255,255,.8); }
@keyframes dockUp { from { transform: translate(-50%, 90px); opacity: 0; } }
.foot { padding-bottom: 110px; }

/* ---------- stickers ---------- */
.extras { padding-block: 0 40px; }
.extras .windows { padding-bottom: 40px; }
.extras .windows.one { grid-template-columns: minmax(0, 420px); }
.sticker-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.slot { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,.025); border: 1.5px dashed #d9d9d0; }
.slot img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.slot:not(.empty) img:hover { transform: scale(1.1) rotate(-3deg); }
.slot.empty img { filter: brightness(0) opacity(.07); pointer-events: none; }
#stickerLayer { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: visible; }
#stickerLayer .placed { position: absolute; height: auto; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 2px 3px rgba(40,40,25,.25)); transition: transform .2s cubic-bezier(.3,1.6,.5,1), filter .2s; }
#stickerLayer .placed.peel { animation: peel .5s cubic-bezier(.2,.8,.3,1) both; transform-origin: 0 100%; }
@keyframes peel {
  0% { transform: perspective(380px) rotate3d(1,1,0,0deg) scale(1); filter: drop-shadow(0 0 0 rgba(40,40,25,0)); }
  35% { transform: perspective(380px) rotate3d(1,1,0,42deg) scale(1.03); filter: drop-shadow(-7px 11px 7px rgba(40,40,25,.35)); }
  100% { transform: perspective(380px) rotate3d(1,1,0,0deg) scale(1.1) rotate(-4deg); filter: drop-shadow(0 10px 12px rgba(40,40,25,.3)); }
}
#stickerLayer .placed.stick { animation: stick .35s ease-out; }
@keyframes stick { 0% { transform: scale(1.1) rotate(-4deg); } 55% { transform: scale(.93) rotate(0); } 100% { transform: scale(1) rotate(0); } }
#stickerLayer .placed.lift { transform: scale(1.1) rotate(-4deg); filter: drop-shadow(0 10px 12px rgba(40,40,25,.3)); }
#stickerLayer .placed.home { opacity: .65; }
.hint { font-size: 17px; color: var(--gray); }

/* ---------- cursor + click burst ---------- */
html.cursor-on, html.cursor-on * { cursor: url('../assets/img/cursor/arrow.png') 1 1, auto; }
html.cursor-on :is(a, button, label, summary, [role="tab"], [role="button"], .win.project, .slot img, #stickerLayer .placed) { cursor: url('../assets/img/cursor/hand.png') 9 1, pointer; }
html.cursor-on :is(input, textarea) { cursor: text; }
.fx-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.fx-layer img { position: absolute; height: auto; image-rendering: pixelated; will-change: transform, opacity; }

/* ---------- postcard + envelope ---------- */
.contact { text-align: center; padding-block: 20px 70px; }
.sec-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 52px); letter-spacing: .02em; text-transform: uppercase; color: var(--gray); line-height: 1; }
.sec-sub { margin: 6px 0 22px; font-size: 19px; color: var(--gray); }
.mail-wrap { container-type: inline-size; width: min(560px, 100%); aspect-ratio: 100 / 98; margin-inline: auto; position: relative; }
.mail { position: absolute; inset: 0; perspective: 160cqw; transition: transform .6s cubic-bezier(.2,1.2,.4,1), opacity .5s; }
.mail[data-state="leaving"] { transition: transform .95s cubic-bezier(.55,0,.85,.45), opacity .95s ease-in; transform: translate(70%, -14%) rotate(9deg) scale(.8); opacity: 0; }
.mail[data-state="reset"] { transition: none; transform: translateY(40px) scale(.94); opacity: 0; }
.mail[data-state="reset"] * { transition: none !important; }

.env-back, .env-front i, .flap { --dots: radial-gradient(circle, rgba(255,255,255,.95) 0 17%, transparent 19%); background-image: var(--dots); background-size: 7cqw 7cqw; }
.env-back { position: absolute; left: 0; right: 0; top: 40cqw; height: 56cqw; border-radius: 3cqw; background-color: #a9cde9; z-index: 1; box-shadow: 0 2cqw 4cqw rgba(40,40,25,.2); }
.env-front { position: absolute; left: 0; right: 0; top: 40cqw; height: 56cqw; z-index: 4; pointer-events: none; border-radius: 3cqw; overflow: hidden; }
.env-front i { position: absolute; inset: 0; background-color: #bcdaf0; }
.env-front .l { clip-path: polygon(0 0, 50% 56%, 0 100%); background-color: #b3d4ee; }
.env-front .r { clip-path: polygon(100% 0, 50% 56%, 100% 100%); background-color: #b3d4ee; }
.env-front .b { clip-path: polygon(0 100%, 50% 56%, 100% 100%); background-color: #c5e0f4; }
.flap { position: absolute; left: 0; width: 100%; top: 40cqw; height: 31.4cqw; z-index: 2; transform-origin: 50% 0; transform: rotateX(180deg); clip-path: polygon(0 0, 100% 0, 50% 100%); background-color: #9cc4e4; transition: transform .75s cubic-bezier(.4,0,.2,1), background-color .75s; }
.mail[data-state="closing"] .flap, .mail[data-state="leaving"] .flap { transform: rotateX(0deg); z-index: 5; background-color: #cfe5f6; }

.card { position: absolute; z-index: 3; left: 7cqw; width: 86cqw; top: 0; height: 52cqw; transform: rotate(-1.2deg); display: grid; grid-template-rows: auto 1fr auto; gap: 1.2cqw; padding: 3.4cqw 4.4cqw 3cqw; text-align: left; border-radius: 1.6cqw; background: #fffaf0; box-shadow: 0 1.2cqw 3cqw rgba(40,40,25,.22); transition: transform .95s cubic-bezier(.5,0,.3,1); }
.card::before { content: ""; position: absolute; right: 3cqw; top: 3cqw; width: 11cqw; height: 13cqw; border: .5cqw dashed #cdb892; border-radius: .6cqw; background: repeating-linear-gradient(45deg, rgba(214,120,130,.18) 0 1cqw, transparent 1cqw 2cqw); pointer-events: none; }
.mail[data-state="inserting"] .card, .mail[data-state="closing"] .card, .mail[data-state="leaving"] .card { transform: translateY(41cqw) rotate(0deg); pointer-events: none; }
.card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: rotate(-1.2deg) translateX(-6px); } 40%, 80% { transform: rotate(-1.2deg) translateX(6px); } }
.card-to { font-family: 'Caveat', 'Segoe Script', cursive; font-size: clamp(18px, 5.2cqw, 28px); color: #7a6a52; line-height: 1; padding-right: 13cqw; }
.card textarea { width: 100%; height: 100%; min-height: 0; resize: none; border: 0; outline: 0; background: repeating-linear-gradient(transparent 0 calc(1.35em - 1px), rgba(122,106,82,.28) calc(1.35em - 1px) 1.35em); font-family: 'Caveat', 'Segoe Script', cursive; font-size: clamp(18px, 4.8cqw, 26px); line-height: 1.35; color: #2b3a67; padding: 0; }
.card textarea::placeholder { color: #b7a98f; }
.card-from { display: flex; align-items: baseline; gap: 6px; font-family: 'Caveat', 'Segoe Script', cursive; font-size: clamp(18px, 4.8cqw, 26px); color: #7a6a52; }
.card-from input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid rgba(122,106,82,.4); background: none; outline: 0; font: inherit; color: #2b3a67; padding: 0 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mail-form { width: min(560px, 100%); margin: 16px auto 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mail-form input { flex: 1 1 200px; min-width: 0; font: 600 14px var(--sans); padding: 10px 14px; border-radius: 8px; border: 1px solid #dcdcd3; background: rgba(255,255,255,.85); }
.mail-form .btn { flex: none; }
.mail-form .btn[disabled] { opacity: .5; pointer-events: none; }
.mail-msg { min-height: 1.6em; margin-top: 12px; font-size: 18px; color: var(--gray); }
.mail-msg.err { color: #b3261e; }

@media (max-width: 560px) {
  .top { padding-top: 22px; }
  .top { font-size: 20px; gap: 8px; }
  .top .logo img { height: 42px; }
  .top { flex-wrap: wrap; row-gap: 14px; }
  .top-right { display: contents; }
  .top .music { margin-left: auto; }
  .top .links { order: 3; width: 100%; justify-content: center; gap: 22px; }
  .music { width: 42px; height: 42px; }
  .music svg { width: 30px; height: 30px; }
  .top-right .links { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .music.on .disc { animation: none; }
  .card, .flap, .mail { transition-duration: .01s !important; }
}

.slot img.pop { animation: slotpop .5s .22s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes slotpop { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }


/* ---------- iMac lock screen with the real time ---------- */
.screen-btn { cursor: default; container-type: inline-size; }
.lock { display: block; background: #f7f4ec url('../assets/img/wallpaper.svg') 0 0 / 15cqw auto; text-align: center; }
.lock::before { content: ""; position: absolute; inset: 0; background: rgba(247,244,236,.38); }
.lock > * { position: relative; }
.lock-date { padding-top: 5cqw; font-family: var(--cond); font-size: max(10px, 3.2cqw); color: #9ea3b4; letter-spacing: .03em; }
.lock-time { font-family: var(--display); font-size: 36cqw; line-height: .9; letter-spacing: .01em; color: #c3c8d6; margin-top: 1cqw; font-variant-numeric: tabular-nums; }
.screen-action { position: absolute !important; left: 50%; bottom: 4.5cqw; transform: translateX(-50%); white-space: nowrap; padding: 1.8cqw 4.2cqw; border-radius: 99cqw; background: rgba(255,255,255,.88); border: 1px solid #d3d6e0; font-family: var(--sans); font-weight: 600; font-size: max(11px, 3cqw); color: var(--ink); box-shadow: 0 4px 12px rgba(60,70,100,.15); transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s; }
.screen-action:hover { transform: translateX(-50%) scale(1.06); background: #fff; }
.screen-action:active { transform: translateX(-50%) scale(.97); }

/* the postcard lives on the profile page only */
body:not([data-view="profile"]) .contact { display: none; }

/* logo: glasses change colour on click */
.top .logo img.flip { animation: logoflip .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes logoflip { 40% { transform: rotate(-9deg) scale(1.12); } }
/* resume window */
.resume-frame { width: 100%; height: min(68vh, 720px); border: 1px solid var(--line); border-radius: 8px; background: #f4f4ef; }/* ================= photobooth ================= */
.sheet .win.booth-win { width: min(1000px, 100%); }
.booth { display: grid; grid-template-columns: minmax(230px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.booth-left { display: flex; justify-content: center; }
.machine { container-type: inline-size; width: min(100%, 320px); --sw: clamp(110px, 17vh, 175px); display: flex; flex-direction: column; align-items: center; position: relative; }
.slot-img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.slot-label { position: absolute; z-index: 1; top: 4.6cqw; left: 0; right: 0; text-align: center; font: 600 max(8px, 2.6cqw)/1 var(--cond); letter-spacing: .28em; color: rgba(255,255,255,.9); text-shadow: 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
.out { position: relative; z-index: 2; margin-top: -10cqw; width: var(--sw); overflow: hidden; padding-bottom: 6px; }
.strip-wrap { position: relative; width: 100%; filter: drop-shadow(0 6px 8px rgba(40,40,25,.25)); }
.strip-wrap canvas { display: block; width: 100%; height: auto; }
.strip-wrap.eject { animation: eject 4.2s ease-in-out both; }
.strip-wrap.eject canvas { animation: develop 4.2s ease-out both; }
@keyframes eject {
  0% { transform: translateY(-101%); } 6% { transform: translateY(-101%); }
  14% { transform: translateY(-86%); } 20% { transform: translateY(-86%); }
  34% { transform: translateY(-64%); } 40% { transform: translateY(-64%); }
  56% { transform: translateY(-38%); } 62% { transform: translateY(-38%); }
  80% { transform: translateY(-12%); } 86% { transform: translateY(-12%); }
  100% { transform: translateY(0); }
}
@keyframes develop { from { filter: brightness(1.8) contrast(.45) saturate(.2); } to { filter: none; } }
.strip-ghost { width: 100%; aspect-ratio: 300 / 928; display: grid; place-items: center; text-align: center; border: 2px dashed #d3d3ca; border-top: 0; border-radius: 0 0 4px 4px; color: #a9a99f; font-size: 17px; line-height: 1.2; }
.strip-stickers { position: absolute; inset: 0; }
.ss { position: absolute; height: auto; transform: translate(-50%, -50%); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; filter: drop-shadow(0 2px 3px rgba(40,40,25,.3)); transition: filter .2s, opacity .2s; }
.ss.new { animation: ssnew .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes ssnew { from { transform: translate(-50%, -50%) scale(.3) rotate(-14deg); opacity: 0; } }
.ss.lift { cursor: grabbing; z-index: 3; filter: drop-shadow(0 8px 10px rgba(40,40,25,.35)); }
.ss.away { opacity: .45; }
.ss.bye { opacity: 0; transform: translate(-50%, -50%) scale(.4); }

.booth-right { display: grid; gap: 14px; align-content: start; background: #f3f3ef; border-radius: 14px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.booth-right .cam { aspect-ratio: 1; width: min(100%, 280px); margin: 0 auto; }
.booth-right .help { text-align: center; }
.booth-panel { display: grid; gap: 16px; border-top: 1px solid #dcdcd3; padding-top: 16px; }
.booth-panel.in { animation: panelin .5s ease-out; }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } }
.opt { display: grid; gap: 8px; }
.opt-title { font-family: var(--cond); font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.swatches { display: flex; gap: 10px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfcfc6, 0 2px 4px rgba(0,0,0,.12); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.sw:hover { transform: scale(1.12); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.sw.pink { background: #f6b3c8; } .sw.blue { background: #a9cde9; } .sw.black { background: #1a1a17; } .sw.white { background: #f7f7f2; }
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 150px; overflow-y: auto; padding: 4px; background: #fff; border-radius: 10px; }
.tray-s { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; padding: 3px; transition: background .15s, transform .15s; }
.tray-s:hover { background: #f1f1ea; transform: scale(1.08); }
.tray-s img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tray-hint { font-size: 15px; color: var(--gray); line-height: 1.25; }
@media (max-width: 760px) {
  .booth { grid-template-columns: 1fr; gap: 18px; }
  .machine { --sw: clamp(110px, 30vw, 150px); }
}

/* ===== photo clipped to the postcard ===== */
.card-photo { position: absolute; z-index: 2; right: 4.5cqw; top: 3cqw; width: 14cqw; margin: 0; transform: rotate(5deg); filter: drop-shadow(0 .8cqw 1.4cqw rgba(40,40,25,.3)); animation: clip .5s cubic-bezier(.3,1.5,.5,1); }
.card-photo img { display: block; width: 100%; height: auto; border-radius: .4cqw; }
.card-photo::before { content: ""; position: absolute; left: 50%; top: -1.8cqw; width: 8cqw; height: 3.2cqw; transform: translateX(-50%) rotate(-5deg); background: rgba(246,179,200,.75); border-left: .3cqw dashed rgba(255,255,255,.6); border-right: .3cqw dashed rgba(255,255,255,.6); }
@keyframes clip { from { transform: translateY(-8cqw) rotate(18deg) scale(1.3); opacity: 0; } }
.photo-x { position: absolute; right: -2cqw; bottom: -2cqw; width: max(20px, 4.6cqw); height: max(20px, 4.6cqw); border-radius: 50%; background: #1a1a17; color: #fff; font: 700 max(13px, 3cqw)/1 var(--sans); display: grid; place-items: center; }
.card.has-photo { padding-right: 23cqw; }
.card.has-photo .card-to { padding-right: 0; }
.card.has-photo::before { display: none; }/* ================= project page (bento) ================= */
.sheet .win.project-win { width: min(1180px, 100%); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bc { background: #f1f1ee; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bc[hidden] { display: none; }
.bc-title { font-family: var(--cond); font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.bc-note { font-size: 17px; color: var(--gray); line-height: 1.3; }

.b-app { grid-column: 1 / span 4; grid-row: 1 / span 4; align-items: center; position: relative; }
.chip { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #fff; box-shadow: 0 3px 8px rgba(40,40,25,.15); font: 600 15px var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: #1b8a3a; }
.chip.wip i { background: #e59a1a; }
.phone { width: min(78%, 250px); aspect-ratio: 9 / 18.5; border: 2.5px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; display: grid; place-items: center; margin-block: 6px; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.phone-empty { text-align: center; color: #a3a398; font-size: 18px; line-height: 1.25; }
.b-app-text { align-self: stretch; margin-top: auto; }
.b-app-text h3 { font: 600 30px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.b-app-text p { margin-top: 6px; font-size: 18px; line-height: 1.3; color: #4d4d46; }

.b-tools { grid-column: 5 / span 5; grid-row: 1; }
.tools { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; }
.tools li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 16px; color: #4d4d46; }
.tools svg { height: 54px; width: auto; display: block; }
.tool-dot { width: 46px; height: 46px; border-radius: 12px; background: #dcdcd3; }

.b-pres { grid-column: 10 / span 3; grid-row: 1; }
.b-quote { grid-column: 5 / span 4; grid-row: 2 / span 2; margin: 0; align-self: center; padding: 6px 6px 6px 8px; font: 700 clamp(34px, 4vw, 52px)/1.12 var(--display); letter-spacing: .01em; color: var(--ink); }
.b-git { grid-column: 5 / span 4; grid-row: 4; align-items: flex-start; }
.b-ui { grid-column: 9 / span 4; grid-row: 2 / span 3; }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ui-view { position: relative; flex: 1; min-height: 240px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ui-view img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; display: block; cursor: zoom-in; }
.ui-empty { color: #a3a398; font-size: 18px; padding: 20px; text-align: center; }
.ui-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: grid; place-items: center; }
.ui-nav.prev { left: 8px; } .ui-nav.next { right: 8px; }
.ui-nav svg, .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ui-count { font: 600 15px var(--cond); color: var(--gray); white-space: nowrap; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.b-ui .btn[hidden] { display: none; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .b-app, .b-tools, .b-pres, .b-quote, .b-git, .b-ui { grid-column: 1; grid-row: auto; }
  .b-quote { font-size: 38px; padding: 8px 4px; }
}

.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(20,20,18,0); transition: background .2s; }
.lightbox.show { background: rgba(20,20,18,.88); }
.lightbox img { max-width: min(100%, 1200px); max-height: 100%; border-radius: 10px; background: #fff; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .2s, transform .25s; }
.lightbox.show img { opacity: 1; transform: none; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: #fff; font: 400 28px/1 var(--sans); display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.ui-view iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.ui-view iframe[hidden], .lightbox iframe[hidden], .lightbox img[hidden] { display: none; }
.lightbox iframe { width: min(1400px, 100%); height: calc(100vh - 48px); border: 0; border-radius: 10px; background: #fff; }
.lb-close { z-index: 2; }
.bento { --cond: 'Barlow Condensed', sans-serif; font-family: 'Barlow Condensed', sans-serif; }