/* ---------- colours (light, then dark) ---------- */
:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --subtle: #f4f4f5;
    --text: #18181b;
    --text-2: #3f3f46;
    --muted: #71717a;
    --line: #e4e4e7;
    --line-strong: #d4d4d8;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-text: #2563eb;
    --accent-soft: #eff6ff;
    --accent-line: #bfdbfe;
    --shadow: 0 1px 2px rgba(24,24,27,.04), 0 8px 24px -12px rgba(24,24,27,.14);
    --shadow-hover: 0 2px 4px rgba(24,24,27,.04), 0 18px 36px -16px rgba(37,99,235,.28);
    --radius: 16px;
    --header-h: 60px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #09090b;
        --surface: #131316;
        --subtle: #1c1c21;
        --text: #f4f4f5;
        --text-2: #d4d4d8;
        --muted: #a1a1aa;
        --line: #27272a;
        --line-strong: #3f3f46;
        --accent-hover: #3b82f6;
        --accent-text: #7cb2ff;
        --accent-soft: rgba(59,130,246,.14);
        --accent-line: rgba(96,165,250,.4);
        --shadow: 0 1px 2px rgba(0,0,0,.4);
        --shadow-hover: 0 18px 36px -16px rgba(0,0,0,.7);
    }
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.wrap { max-width: 1920px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
    background: var(--accent); color: #fff;
    font-family: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--subtle); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

.icon-tile {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent-text);
    display: grid; place-items: center; font-size: 17px;
}

/* ---------- header & footer ---------- */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: var(--subtle); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a:hover { color: var(--text); }
.footer-links i { margin-right: 7px; color: var(--accent-text); }

/* ---------- home ---------- */
.hero { position: relative; isolation: isolate; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 0%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 70% at 80% 0%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(min-content, 2fr); gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.eyebrow i { color: var(--accent-text); font-size: 12px; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; }
.hero-text p { font-size: 16px; color: var(--muted); max-width: 700px; margin-bottom: 12px; }
.hero-text p.lead { font-size: 19px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-photo {
    justify-self: center; width: 280px; height: 350px; object-fit: cover; border-radius: 24px;
    border: 1px solid var(--line); box-shadow: 0 28px 56px -28px rgba(24,24,27,.45);
}

.highlights {
    list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.highlights li { padding: 18px 22px; border-left: 1px solid var(--line); }
.highlights li:first-child { border-left: 0; }
.highlights strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.highlights span { font-size: 13px; color: var(--muted); }

.work { padding-top: 64px; padding-bottom: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.section-head p { font-size: 15px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card .icon-tile { margin-bottom: 14px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-arrow { position: absolute; top: 26px; right: 24px; font-size: 14px; color: var(--muted); transition: transform .2s, color .2s; }
.card:hover .card-arrow { color: var(--accent-text); transform: translateX(3px); }

/* ---------- section page ---------- */
.page-head { padding-top: 40px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.back:hover { color: var(--text); }
.back i { transition: transform .2s; }
.back:hover i { transform: translateX(-3px); }
.page-head h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.page-head p { font-size: 16px; color: var(--muted); margin-top: 8px; }
.tabs {
    position: relative; display: flex; gap: 8px; margin-top: 28px; padding-bottom: 20px;
    overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    transition: border-color .15s, color .15s;
}
.tab i { font-size: 12px; color: var(--muted); }
.tab:hover { border-color: var(--line-strong); color: var(--text); }
.tab[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tab[aria-current="page"] i { color: inherit; }

.entries { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 80px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.entry.has-cover { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.entry-body { min-width: 0; }
.entry-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; margin-bottom: 18px; }
.entry-head h2 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.role { font-size: 14px; color: var(--muted); margin-top: 2px; }
.date {
    font-size: 12px; font-weight: 500; white-space: nowrap;
    color: var(--accent-text); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}
.entry-body > p, .project p { font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 12px; max-width: 75ch; }
.sub { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 4px; }
.stat { background: var(--subtle); border-radius: 12px; padding: 14px 16px; }
.stat strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.stat span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 4px; }

.points { list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.points li::before {
    content: ""; position: absolute; left: 4px; top: calc(.825em - 3px);
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text);
}

.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px;
    font-size: 13px; font-weight: 500; color: var(--text-2);
    border: 1px solid var(--line); border-radius: 999px;
}
.flow li span {
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600;
}

.takeaway { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 4px; padding: 16px 18px; background: var(--accent-soft); border-radius: 14px; }
.takeaway > i { color: var(--accent-text); margin-top: 4px; }
.takeaway strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.takeaway p { font-size: 15px; line-height: 1.65; color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tag { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--subtle); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.spec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.spec i {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent-text); font-size: 14px;
}
.spec strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.spec span { font-size: 12px; color: var(--muted); }
.process { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.process span { font-weight: 500; color: var(--text-2); background: var(--subtle); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.process i { font-size: 11px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.shot { margin: 0; cursor: zoom-in; border-radius: 12px; }
.shot .frame {
    position: relative; aspect-ratio: 5 / 4; padding: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--subtle); border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.shot img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 4px; transition: transform .3s; }
.shot .frame::after {
    content: "\f00e"; font: var(--fa-font-solid); font-size: 12px;
    position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(9,9,11,.65); color: #fff;
    opacity: 0; transition: opacity .2s;
}
.shot:hover .frame, .shot:focus-visible .frame { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.shot:hover img { transform: scale(1.03); }
.shot:hover .frame::after, .shot:focus-visible .frame::after { opacity: 1; }
.shot figcaption { padding: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }

.docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.cover {
    position: relative; display: block; overflow: hidden; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cover img { display: block; width: 100%; }
.cover-badge {
    position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 600;
    background: rgba(9,9,11,.75); color: #fff; padding: 3px 9px; border-radius: 999px;
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pager a {
    display: flex; flex-direction: column; gap: 4px; padding: 20px 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.pager a:hover { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.pager .next { grid-column: 2; text-align: right; }
.pager small { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pager strong { font-size: 16px; font-weight: 600; }
.pager i { font-size: 13px; color: var(--accent-text); }

/* ---------- PDF viewer page ---------- */
.viewer-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.viewer-bar {
    flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
}
.viewer-bar h1 { flex: 1; min-width: 0; margin-left: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-page object { flex: 1; display: block; width: 100%; border: 0; background: var(--subtle); }
.viewer-fallback { display: grid; justify-items: center; gap: 14px; padding: 72px 24px; text-align: center; color: var(--text-2); }
.viewer-fallback > i { font-size: 36px; color: var(--accent-text); }

/* ---------- 404 ---------- */
.notfound { display: grid; justify-items: center; gap: 12px; padding-top: 112px; padding-bottom: 136px; text-align: center; }
.notfound .code { font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--accent-text); }
.notfound h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.notfound p { color: var(--muted); margin-bottom: 12px; }

/* ---------- wide screens: entry cards side by side ---------- */
@media (min-width: 1600px) {
    .entries { display: block; columns: 2; column-gap: 24px; }
    .entries .entry { break-inside: avoid; margin-bottom: 24px; }
    .entry.has-cover { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
    .pager { column-span: all; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .hero { padding: 36px 0 40px; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-photo { order: -1; justify-self: start; width: 104px; height: 128px; border-radius: 18px; }
    .hero-text p.lead { font-size: 17px; }
    .highlights { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
    .highlights li:nth-child(odd) { border-left: 0; }
    .highlights li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .highlights strong { font-size: 22px; }
}
@media (max-width: 640px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .nav-link { display: none; }
    .work { padding-top: 48px; padding-bottom: 64px; }
    .grid { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 20px; }
    .page-head { padding-top: 28px; }
    .tabs { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .entries { gap: 16px; padding-top: 20px; padding-bottom: 56px; }
    .entry { padding: 20px; border-radius: 16px; }
    .entry.has-cover { grid-template-columns: 1fr; gap: 20px; }
    .cover { max-width: 180px; }
    .entry-head { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
    .date { grid-column: 2; justify-self: start; margin-top: 6px; }
    .entry-body > p, .points li, .takeaway p { font-size: 14.5px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat { padding: 12px 14px; }
    .stat strong { font-size: 18px; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shot .frame { padding: 6px; }
    .shot figcaption { font-size: 12px; }
    .pager { grid-template-columns: 1fr; }
    .pager .next { grid-column: auto; }
    .viewer-bar { padding: 8px 10px; }
    .viewer-bar .label { display: none; }
    .viewer-bar .btn { width: 36px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* ---------- image viewer ---------- */
html.lb-open, html.lb-open body { overflow: hidden; background: #0b1120; }
.lb-back, .lb-nav, .lb-zoom, .lb-zoom button { touch-action: manipulation; }
dialog.lb {
    border: 0; padding: 0; margin: 0; inset: 0;
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    background: #0b1120; color: #e2e8f0; overflow: hidden;
}
dialog.lb[open] { display: block; animation: lb-in .18s ease-out; }
dialog.lb::backdrop { background: #0b1120; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
dialog.lb.zoomed .lb-stage { cursor: grab; }
dialog.lb.zoomed .lb-stage:active { cursor: grabbing; }
.lb-img {
    position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none;
    border-radius: 4px; background: #fff;
    box-shadow: 0 12px 48px rgba(0,0,0,.5);
    user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.lb-img.anim { transition: transform .22s cubic-bezier(.2,.8,.2,1); }

.lb-top {
    position: absolute; left: 0; right: 0; top: 0; z-index: 2;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px 28px;
    background: linear-gradient(rgba(11,17,32,.92), rgba(11,17,32,0));
    pointer-events: none;
}
.lb-top > * { pointer-events: auto; }
.lb-back {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    height: 38px; padding: 0 16px 0 13px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
    color: #fff; font: 500 14px/1 "Inter", system-ui, sans-serif;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background .15s;
}
.lb-back:hover { background: rgba(255,255,255,.2); }
.lb-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.lb-cap { font-size: 14px; font-weight: 500; color: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { flex-shrink: 0; font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.lb-spin {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2); border-top-color: #fff;
    opacity: 0; transition: opacity .2s;
}
dialog.lb.loading .lb-spin { opacity: 1; animation: lb-rot .7s linear infinite; }
@keyframes lb-rot { to { transform: rotate(360deg); } }

.lb-nav {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,.16); background: rgba(15,23,42,.55); color: #fff; font-size: 16px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background .15s, opacity .2s;
}
.lb-nav:hover { background: rgba(37,99,235,.85); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
dialog.lb.single .lb-nav, dialog.lb.zoomed .lb-nav { opacity: 0; pointer-events: none; }

.lb-zoom {
    position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
    display: flex; align-items: center; gap: 2px; padding: 4px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(15,23,42,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lb-zoom button {
    width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
    background: transparent; color: #fff; font-size: 14px; transition: background .15s;
}
.lb-zoom button:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.lb-zoom button:disabled { opacity: .35; cursor: default; }
.lb-pct { min-width: 48px; text-align: center; font-size: 12px; font-weight: 500; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.lb-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255,255,255,.16); }

@media (max-width: 640px) {
    .lb-top { padding: 10px 10px 24px; gap: 10px; }
    .lb-back { height: 36px; padding: 0 14px 0 11px; }
    .lb-nav { width: 40px; height: 40px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-zoom { bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    dialog.lb[open], .lb-img.anim { animation: none; transition: none; }
}
