/* =====================================================================
   Michelle — first class, all the way down.
   ===================================================================== */
:root {
    --night: #140c0b;      /* espresso black */
    --night-2: #1d1211;    /* raised surfaces */
    --oxblood: #3b1218;    /* the museum's walls */
    --gold: #e2c285;       /* champagne */
    --gold-dim: #a8874f;
    --ivory: #f3eadb;
    --smoke: #9a8c82;
    --stamp: #d8443c;
    --line: rgba(226, 194, 133, 0.18);
    --line-strong: rgba(226, 194, 133, 0.42);

    --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Futura', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(59, 18, 24, 0.75), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(59, 18, 24, 0.45), transparent 60%),
        var(--night);
    background-attachment: fixed;
    color: var(--ivory);
    font: 400 17px/1.6 var(--sans);
    min-height: 100vh;
    overflow-x: hidden;
}
body.locked, body.immersive { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--night); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--smoke); }

/* ---------------------------------------------------------------- header */
header {
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-h);
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px;
    padding: 0 max(24px, env(safe-area-inset-left));
    background: rgba(20, 12, 11, 0);
    border-bottom: 1px solid transparent;
    transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
body.scrolled header, body.immersive header {
    background: rgba(20, 12, 11, 0.82);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: var(--line);
}
.logo {
    font: 500 22px/1 var(--serif);
    letter-spacing: 0.42em;
    color: var(--gold);
    text-decoration: none;
    padding-left: 0.42em; /* balance the tracking */
    user-select: none;
}
#nav-tabs {
    position: relative;
    display: flex; justify-content: flex-end; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent);
    padding: 0 16px;
}
#nav-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    position: relative; z-index: 1;
    flex: none;
    padding: 10px 14px 12px;
    font: 400 15px/1 var(--sans);
    letter-spacing: 0.02em;
    color: var(--smoke);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s;
}
.tab-btn:hover { color: var(--ivory); }
.tab-btn.active { color: var(--gold); }
.tab-museum::before {
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); margin-right: 8px; vertical-align: 2px;
    box-shadow: 0 0 0 0 rgba(226, 194, 133, 0.6);
    animation: beacon 2.4s ease-out infinite;
}
.nav-ink {
    position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.45s var(--ease), width 0.45s var(--ease);
    pointer-events: none;
}
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(226, 194, 133, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(226, 194, 133, 0); } }

/* ---------------------------------------------------------------- page frame */
#app-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px max(24px, env(safe-area-inset-left)) 120px;
    outline: none;
}
#app-content.entering { animation: enter 0.6s var(--ease) both; }
#app-content.leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.22s, transform 0.22s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-title {
    font: italic 500 clamp(40px, 6.2vw, 76px)/1.02 var(--serif);
    color: var(--ivory);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    text-wrap: balance;
}
.page-sub { color: var(--smoke); font-size: 17px; max-width: 56ch; margin-bottom: 56px; }

.btn-gold, .btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    border-radius: 999px; cursor: pointer;
    font: 500 15px/1 var(--sans); letter-spacing: 0.03em;
    transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, opacity 0.2s;
}
.btn-gold { background: linear-gradient(180deg, #ecd39c, #cfa865); color: #1c110c; border: 0; padding: 16px 30px; box-shadow: 0 10px 30px rgba(226, 194, 133, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.45; cursor: progress; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--gold); padding: 12px 22px; }
.btn-ghost:hover { background: rgba(226, 194, 133, 0.1); border-color: var(--gold); }

/* ---------------------------------------------------------------- The Truth */
.truth {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
    min-height: calc(100vh - var(--header-h) - 176px);
}
.arch {
    position: relative;
    border-radius: 999px 999px 18px 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--night-2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    animation: archIn 1.2s var(--ease) both;
}
.arch::after { /* thin gilt inner frame, like the museum */
    content: ''; position: absolute; inset: 10px;
    border-radius: 999px 999px 12px 12px;
    border: 1px solid rgba(226, 194, 133, 0.55);
    pointer-events: none;
}
.arch-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@keyframes archIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); } to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }

.quote { margin-bottom: 18px; min-height: 5.2em; }
.q1 {
    font: 400 clamp(26px, 3.1vw, 38px)/1.22 var(--serif);
    color: var(--ivory);
    margin-bottom: 14px;
    text-wrap: pretty;
}
.q2 {
    font: italic 500 clamp(34px, 4.6vw, 58px)/1.06 var(--serif);
    color: var(--gold);
    text-wrap: pretty;
}
.caret { display: inline-block; width: 2px; height: 0.9em; background: var(--gold); margin-left: 4px; vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
.quote:not(.typing) .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.attrib { color: var(--smoke); font: italic 400 19px/1.4 var(--serif); margin-bottom: 26px; }
.reveal-later { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-later.shown { opacity: 1; transform: none; }
.reveal-later.shown:nth-of-type(n) { transition-delay: 0s; }
.btn-ghost.reveal-later.shown { transition-delay: 0.12s; }
.pass.reveal-later.shown { transition-delay: 0.28s; }

/* boarding pass */
.pass {
    margin-top: 40px;
    display: grid; grid-template-columns: 1fr 150px;
    color: #2a1a12;
    background: linear-gradient(180deg, #f6ecda, #eadbc0);
    border-radius: 16px;
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    max-width: 560px;
}
.pass::before, .pass::after { /* punched notches */
    content: ''; position: absolute; right: 141px; width: 18px; height: 18px; border-radius: 50%; background: var(--night);
}
.pass::before { top: -9px; } .pass::after { bottom: -9px; }
.pass-main { padding: 22px 24px 20px; }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed rgba(42, 26, 18, 0.25); }
.pass-route .ta-r { text-align: right; }
.pass-code { display: block; font: 600 34px/1 var(--serif); letter-spacing: 0.04em; color: #3b1218; }
.pass-city { display: block; font-size: 13px; color: #6d5848; }
.pass-plane { width: 28px; height: 28px; color: #a8874f; transform: rotate(90deg); }
.pass-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; }
.pf-label { display: block; font-size: 12px; color: #8a7462; letter-spacing: 0.02em; }
.pf-value { display: block; font: 600 17px/1.2 var(--serif); color: #2a1a12; }
.pass-stub { padding: 22px 18px 18px; border-left: 2px dashed rgba(42, 26, 18, 0.28); display: flex; flex-direction: column; gap: 2px; background: rgba(168, 135, 79, 0.12); }
.pass-seat { font: 600 40px/1 var(--serif); color: #3b1218; margin-bottom: 8px; }
.barcode {
    margin-top: auto; height: 40px; width: 100%;
    background: repeating-linear-gradient(90deg, #2a1a12 0 2px, transparent 2px 4px, #2a1a12 4px 5px, transparent 5px 8px, #2a1a12 8px 11px, transparent 11px 12px);
    opacity: 0.85;
}

/* ---------------------------------------------------------------- Excellence */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(260px, auto);
    gap: 18px;
    margin-top: 48px;
}
.bento-card {
    position: relative;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(43, 25, 22, 0.75), rgba(29, 18, 17, 0.9));
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}
.bento-card.tall { grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
.bento-card.full-width { grid-column: 1 / -1; }
.bento-img { overflow: hidden; flex: none; height: 240px; }
.bento-card.tall .bento-img { height: 380px; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento-card:hover .bento-img img { transform: scale(1.04); }
.bento-content { padding: 28px 30px 30px; display: flex; flex-direction: column; justify-content: flex-end; flex: 1; }
.bento-icon { font-size: 30px; margin-bottom: 16px; line-height: 1; }
.bento-title { font: italic 500 30px/1.1 var(--serif); color: var(--gold); margin-bottom: 10px; }
.bento-desc { color: #cdbfb1; font-size: 16px; max-width: 52ch; }

@media (min-width: 900px) {
    .bento-card.wide.has-img { flex-direction: row; }
    .bento-card.wide.has-img .bento-img { width: 50%; height: auto; }
    .bento-card.wide.has-img .bento-content { width: 50%; }
}
.bento-card.full-width {
    min-height: 220px;
    background:
        radial-gradient(600px 220px at 50% 120%, rgba(226, 194, 133, 0.22), transparent 70%),
        linear-gradient(180deg, #3b1218, #24100f);
    border-color: var(--line-strong);
    text-align: center;
}
.bento-card.full-width .bento-content { align-items: center; justify-content: center; }
.bento-card.full-width .bento-title { font-size: clamp(36px, 5vw, 60px); }
.bento-card.full-width .bento-desc { font: italic 400 22px/1.4 var(--serif); color: var(--ivory); }

/* ---------------------------------------------------------------- Global Airspace */
.airspace-head { margin-bottom: 28px; }
.airspace-sub { color: var(--smoke); max-width: 56ch; }
.airspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 32px;
    align-items: start;
}
.globe-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.globe { position: relative; aspect-ratio: 1; width: 100%; opacity: 0; transition: opacity 1.4s var(--ease); cursor: grab; }
.globe.ready { opacity: 1; }
.globe:active { cursor: grabbing; }
.globe canvas { display: block; width: 100% !important; height: 100% !important; }
.globe-hint { text-align: center; color: var(--smoke); font-size: 14px; margin-top: 4px; }
.globe-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--smoke); padding: 40px; }
.globe-tip {
    position: absolute; left: 0; top: 0; pointer-events: none;
    margin: -46px 0 0 0;
    translate: -50% 0;
    background: rgba(20, 12, 11, 0.9);
    border: 1px solid var(--line-strong);
    color: var(--ivory);
    padding: 6px 12px; border-radius: 999px;
    font-size: 14px; white-space: nowrap;
}

.board {
    background: #0f0908;
    border: 1px solid rgba(226, 194, 133, 0.22);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
.board-top { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px 12px; }
.board-title { font: italic 500 28px/1 var(--serif); color: var(--gold); }
.board-clock { font: 500 20px/1 var(--sans); color: #ffcf5c; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.board-cols, .board-row {
    display: grid; grid-template-columns: 74px minmax(0, 1fr) 56px 96px; gap: 12px; align-items: center;
}
.board-cols { padding: 8px 22px; font-size: 12px; color: var(--smoke); border-bottom: 1px solid rgba(226, 194, 133, 0.12); }
.board-list { list-style: none; max-height: min(64vh, 640px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3b2a22 transparent; }
.board-row {
    width: 100%; text-align: left; cursor: pointer;
    background: transparent; border: 0;
    padding: 11px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font: 500 15px/1.2 var(--sans);
    color: #ffcf5c;
    font-variant-numeric: tabular-nums;
    transition: background 0.2s;
}
.board-row:hover { background: rgba(226, 194, 133, 0.06); }
.board-row.selected { background: rgba(226, 194, 133, 0.14); box-shadow: inset 3px 0 0 var(--gold); }
.br-flight { color: #d8c6a6; letter-spacing: 0.04em; }
.br-dest { display: flex; align-items: center; gap: 10px; min-width: 0; }
.br-flag { font-size: 20px; line-height: 1; flex: none; }
.flap { color: #fff3d6; letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Jost', ui-monospace, monospace; }
.br-code { color: #d8c6a6; letter-spacing: 0.08em; }
.br-status { color: #7ee2a8; font-size: 14px; }
.board-row.is-home .br-status { color: var(--gold); }

.dest-card {
    position: fixed; left: 50%; bottom: 24px; z-index: 900;
    translate: -50% 0;
    width: min(560px, calc(100vw - 32px));
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
    padding: 18px 22px;
    background: rgba(29, 18, 17, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.dest-card[hidden] { display: none; }
.dest-card { grid-template-columns: auto 1fr auto; }
.dest-close { align-self: start; background: none; border: 0; color: var(--smoke); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.dest-close:hover { color: var(--ivory); }
.dest-card.pop { animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.dest-flag { font-size: 44px; line-height: 1; }
.dest-name { font: italic 500 30px/1.1 var(--serif); color: var(--gold); }
.dest-desc { color: #d9cbbb; font-size: 16px; }

/* ---------------------------------------------------------------- Visual Proof */
.lookbook { display: flex; flex-direction: column; gap: clamp(80px, 14vw, 180px); }
.look {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center;
    opacity: 0; transform: translateY(60px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.look.in { opacity: 1; transform: none; }
.look.right .look-photo { order: 2; }
.look.right .look-text { text-align: right; }
.look-photo {
    display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--night-2);
    aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden;
    max-width: 460px; width: 100%;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9);
    justify-self: end;
}
.look.right .look-photo { justify-self: start; }
.look-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look-photo:hover img { transform: scale(1.035); }
.look-num { display: block; color: var(--gold-dim); font-size: 14px; margin-bottom: 18px; letter-spacing: 0.04em; }
.look-caption { font: italic 400 clamp(28px, 3.4vw, 42px)/1.22 var(--serif); color: var(--gold); text-wrap: pretty; }

.lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
    background: rgba(12, 7, 6, 0.94);
    opacity: 0; transition: opacity 0.3s;
}
.lightbox.visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 100vh; padding: 24px 0; }
#lightbox-img { max-height: calc(100vh - 170px); max-width: 100%; object-fit: contain; border-radius: 10px; opacity: 0; transform: scale(0.985); transition: opacity 0.35s, transform 0.5s var(--ease); }
#lightbox-img.in { opacity: 1; transform: none; }
.lb-figure figcaption { text-align: center; max-width: 60ch; padding: 0 16px; }
.lb-count { display: block; font-size: 13px; color: var(--smoke); margin-bottom: 6px; }
.lb-caption { font: italic 400 22px/1.35 var(--serif); color: var(--gold); }
.lb-nav, .lb-close {
    background: transparent; border: 1px solid var(--line); color: var(--ivory);
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 28px; line-height: 1;
    justify-self: center; transition: border-color 0.2s, background 0.2s;
}
.lb-nav:hover, .lb-close:hover { border-color: var(--gold); background: rgba(226, 194, 133, 0.08); }
.lb-close { position: absolute; top: 16px; right: 16px; font-size: 26px; }

/* ---------------------------------------------------------------- Peasant Detector */
.desk {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
    background: linear-gradient(180deg, rgba(43, 25, 22, 0.6), rgba(20, 12, 11, 0.6));
    border: 1px solid var(--line);
    border-radius: 24px; padding: 28px;
}
.scanner {
    position: relative; aspect-ratio: 1; max-height: 520px; width: 100%; border-radius: 16px; overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #2a1715, #0d0807 70%);
    border: 1px solid rgba(226, 194, 133, 0.2);
}
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: sepia(0.35) saturate(0.9) contrast(1.05); }
.scanner.live .radar { display: none; }
.radar { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; overflow: hidden; border-radius: 50%; border: 1px solid rgba(226, 194, 133, 0.28); box-shadow: inset 0 0 0 30px rgba(226, 194, 133, 0.025), inset 0 0 0 60px rgba(226, 194, 133, 0.02); }
.radar span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(226, 194, 133, 0.38), transparent 25%); animation: spin 2.6s linear infinite; }
.scan-frame { position: absolute; inset: 12%; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold); }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scan-line { position: absolute; left: 10%; right: 10%; height: 2px; top: 14%; background: var(--gold); box-shadow: 0 0 18px 4px rgba(226, 194, 133, 0.45); opacity: 0; }
.scanner.scanning .scan-line { opacity: 1; animation: sweep 1.8s ease-in-out infinite alternate; }
.scanner.scanning .scan-frame i { animation: lock 1.2s ease-in-out infinite alternate; }
@keyframes sweep { to { top: 86%; } }
@keyframes lock { to { border-color: #fff3d6; transform: scale(0.94); } }
@keyframes spin { to { transform: rotate(360deg); } }

.stamp {
    position: absolute; left: 50%; top: 52%;
    translate: -50% -50%;
    font: 700 clamp(34px, 5vw, 58px)/1 var(--sans);
    letter-spacing: 0.12em;
    color: var(--stamp);
    border: 5px double var(--stamp);
    padding: 10px 22px 12px;
    border-radius: 10px;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.72) 70%, #000 85%);
    mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.72) 70%, #000 85%);
}
.stamp.hit { animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes stamp {
    0% { opacity: 0; transform: rotate(var(--rot, -10deg)) scale(2.4); }
    100% { opacity: 0.95; transform: rotate(var(--rot, -10deg)) scale(1); }
}

.console { display: flex; flex-direction: column; min-width: 0; }
.log {
    list-style: none; flex: 1; min-height: 240px; max-height: 360px; overflow-y: auto;
    background: #0d0807; border: 1px solid rgba(226, 194, 133, 0.14); border-radius: 12px;
    padding: 16px 18px; font: 400 15px/1.6 var(--sans); color: #e8d9bd;
}
.log li { padding-left: 22px; position: relative; animation: enter 0.35s var(--ease) both; }
.log li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.log li.done::before { background: var(--gold); }
.log li.done { color: var(--smoke); }
.log li.idle { color: var(--smoke); padding-left: 0; }
.log li.idle::before { display: none; }
.meter { height: 3px; background: rgba(226, 194, 133, 0.12); border-radius: 3px; margin: 14px 0 0; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.6s var(--ease); }
.verdict { margin-top: 18px; color: #ff7b72; font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--sans); animation: pop 0.5s var(--ease) both; }
.det-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 22px; }
.cam-opt { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ivory); cursor: pointer; }
.cam-opt input { accent-color: var(--gold); width: 18px; height: 18px; }

/* ---------------------------------------------------------------- The Museum */
#museum-view {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h);
    background: #0a0605;
    z-index: 500;
}
#museum-view[hidden] { display: none; }
#museum-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#museum-view:fullscreen { top: 0; }
.museum-loading {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: radial-gradient(ellipse at 50% 40%, rgba(70, 20, 22, 0.55), #0a0605 70%);
    transition: opacity 0.8s, visibility 0.8s;
    pointer-events: none;
}
.museum-loading.done { opacity: 0; visibility: hidden; }
.ml-title { font: italic 500 clamp(36px, 6vw, 64px)/1 var(--serif); color: var(--ivory); }
.ml-bar { width: 220px; height: 1px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ml-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
.ml-status { color: var(--smoke); font-size: 14px; }
.museum-full {
    position: absolute; right: 16px; bottom: 16px; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(20, 12, 11, 0.6); border: 1px solid var(--line-strong); color: var(--gold);
    cursor: pointer; opacity: 0.75; transition: opacity 0.2s;
}
.museum-full:hover { opacity: 1; }

/* ---------------------------------------------------------------- extras */
.toast {
    position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 4000;
    translate: -50% -12px; opacity: 0; pointer-events: none;
    background: var(--gold); color: #1c110c; padding: 10px 18px; border-radius: 999px; font-weight: 500;
    transition: opacity 0.3s, translate 0.4s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }
.rain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 3500; }

/* ---------------------------------------------------------------- tablet & phone */
@media (max-width: 1020px) {
    :root { --header-h: 108px; }
    header { grid-template-columns: 1fr; gap: 6px; padding-top: 14px; align-content: center; }
    .logo { justify-self: center; font-size: 20px; }
    #nav-tabs { justify-content: flex-start; margin: 0 -24px; padding: 0 24px; }
    #nav-tabs::after { content: ''; flex: 0 0 8px; }
}
@media (min-width: 760px) and (max-width: 1020px) { #nav-tabs { justify-content: center; } }

@media (max-width: 899px) {
    #app-content { padding-top: 36px; }
    .truth { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
    .arch { max-width: 420px; width: 100%; justify-self: center; }
    .truth-copy { text-align: left; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.tall, .bento-card.wide { grid-row: auto; grid-column: auto; }
    .bento-card.tall .bento-img { min-height: 380px; }
    .airspace-grid { grid-template-columns: 1fr; }
    .globe-wrap { position: relative; top: 0; max-width: 560px; width: 100%; justify-self: center; }
    .board-list { max-height: none; }
    .look, .look.right { grid-template-columns: 1fr; gap: 28px; }
    .look.right .look-photo { order: 0; }
    .look-photo, .look.right .look-photo { justify-self: center; }
    .look-text, .look.right .look-text { text-align: left; }
    .desk { grid-template-columns: 1fr; padding: 18px; }
    .scanner { aspect-ratio: 1; }
    .dest-card { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .pass { grid-template-columns: 1fr; }
    .pass::before, .pass::after { display: none; }
    .pass-stub { border-left: 0; border-top: 2px dashed rgba(42, 26, 18, 0.28); display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 4px 10px; }
    .pass-seat { font-size: 26px; margin: 0; }
    .barcode { grid-column: 1 / -1; height: 28px; }
    .pass-fields { grid-template-columns: 1fr 1fr; }
    .pass-code { font-size: 28px; }
    .board-cols, .board-row { grid-template-columns: 58px minmax(0, 1fr) 70px; padding-left: 14px; padding-right: 14px; }
    .board-cols span:nth-child(3), .br-code { display: none; }
    .lightbox { grid-template-columns: 1fr; }
    .lb-nav { position: absolute; bottom: 20px; }
    .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
    #lightbox-img { max-height: calc(100vh - 230px); }
    .lb-figure { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
    .look { opacity: 1; transform: none; }
}
