/* ==========================================================================
   KINISI Heritage Digitisation — Pitch Deck
   Dark-instrument register: deep black canvas, bevelled chrome, sky-blue accent.
   Standalone page — does not load global.css, has its own complete theme.
   ========================================================================== */

:root {
    --black: #0a0a0a;
    --panel: #0d1b2a;
    --panel-light: #11243a;
    --accent: #6ec1e4;
    --accent-bright: #9fe0f7;
    --orange: #cc5500;
    --emerald: #2ecc71;
    --text: #f2f2f2;
    --text-dim: #c7cdd3;
    --border: rgba(255, 255, 255, 0.09);
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-ui);
}

body {
    -webkit-font-smoothing: antialiased;
}

/* ---------- Deck mechanics ---------- */

#deck {
    position: relative;
    width: 100%;
    height: 100vh;
    transition: transform 520ms cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8vw;
}

.slide-inner {
    width: 100%;
    max-width: 980px;
}

/* ---------- Typography ---------- */

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent-bright);
    margin-bottom: 18px;
}

.slide-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 28px;
    color: var(--text);
}

.slide-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 760px;
    margin-bottom: 12px;
}

.bio-text p {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 720px;
    margin-bottom: 22px;
}

.slide-callout {
    margin-top: 36px;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* Slide 6 (Senckenberg): images are the dominant element on this slide, so
   the surrounding text rhythm is tightened hard to leave room for a much
   bigger evidence-strip (see ".evidence-strip"/".zoom-frame" below). */
#slide-6 .eyebrow { margin-bottom: 10px; }
#slide-6 .slide-title { margin-bottom: 16px; }
#slide-6 .evidence-strip { margin-top: 0; }
#slide-6 .slide-callout { margin-top: 16px; font-size: 1rem; }
/* Wider than the shared 980px slide-inner cap: images are the dominant
   element here, so give them the extra width a fixed-height crop no longer
   needs to borrow from. */
#slide-6.slide { padding: 0 4vw; }
#slide-6 .slide-inner { max-width: 1220px; }

/* Slide 4 (What KINISI Is) gained much bigger output-card media; tighten
   the surrounding rhythm the same way slide 6 is tightened above. */
#slide-4 .eyebrow { margin-bottom: 12px; }
#slide-4 .slide-title { margin-bottom: 20px; }
#slide-4 .slide-lede { margin-bottom: 4px; }
#slide-4 .output-grid { margin-top: 14px; }

/* Photo gallery slide: no copy at all below the title, just the grid, so
   tighten the header rhythm the same way slide 6/4 do above. */
#slide-photo-gallery .eyebrow { margin-bottom: 10px; }
#slide-photo-gallery .slide-title { margin-bottom: 16px; }

/* Appendix slides (specs/handling/ownership/benefit): dense point-lists and,
   on the benefit slide, an extra lede + liftable panel, overflowed the
   mobile vertical-space budget at the original spacing (see CLAUDE.md,
   "Vertical space budget"). Tightened the same way the slides above are. */
#slide-specs .eyebrow,
#slide-handling .eyebrow,
#slide-ownership .eyebrow,
#slide-benefit .eyebrow { margin-bottom: 10px; }
#slide-specs .slide-title,
#slide-handling .slide-title,
#slide-ownership .slide-title,
#slide-benefit .slide-title { margin-bottom: 16px; }
#slide-benefit .slide-lede { margin-bottom: 6px; }
#slide-benefit .liftable-panel { margin-top: 16px; }

/* ---------- Title slide ---------- */

.title-slide {
    text-align: center;
    position: relative;
    z-index: 2;
}

.kinisi-wordmark {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 8px 0 24px;
    background: linear-gradient(135deg, var(--text) 35%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 500;
    color: var(--text);
    max-width: 640px;
    margin: 0 auto 14px;
    line-height: 1.5;
}

.title-line {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.wireframe-anchor {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
    z-index: 1;
    opacity: 0.55;
}

.wf-cube {
    position: relative;
    width: 320px;
    height: 320px;
    transform-style: preserve-3d;
    animation: spin-cube 22s linear infinite;
}

.wf-cube span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(110, 193, 228, 0.45);
}

.wf-cube span:nth-child(1) { transform: translateZ(160px); }
.wf-cube span:nth-child(2) { transform: rotateY(180deg) translateZ(160px); }
.wf-cube span:nth-child(3) { transform: rotateY(90deg) translateZ(160px); }
.wf-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(160px); }
.wf-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(160px); }
.wf-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(160px); }

@keyframes spin-cube {
    from { transform: rotateX(-18deg) rotateY(0deg); }
    to   { transform: rotateX(-18deg) rotateY(360deg); }
}

.scroll-cue {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    z-index: 2;
}

/* ---------- Point lists ---------- */

.point-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.point-list li {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 760px;
}

.point-mark {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-bright);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 7px;
}

/* ---------- Evidence strip (Senckenberg case study) ---------- */

.evidence-strip {
    display: flex;
    gap: 16px;
    margin-top: 14px;
}

.evidence-strip figure {
    flex: 1;
    min-width: 0;
}

.zoom-frame {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--black);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05), inset -1px -1px 0 rgba(0, 0, 0, 0.4);
}

/* Frame height follows the image's own aspect ratio (no forced crop) so the
   full photo is always visible; images are this slide's dominant element. */
.zoom-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-origin: 50% 50%;
    transform: scale(1);
    transition: transform 240ms ease-out;
}

.zoom-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 150ms ease;
}

.zoom-frame:hover .zoom-hint { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
    .zoom-frame { cursor: zoom-in; }
}

@media not all and (hover: hover) {
    .zoom-hint { display: none; }
}

.evidence-strip figcaption {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.2;
}

.evidence-scroll-hint { display: none; }

/* ---------- Photo grid (second evidence set, slide-photo-gallery) ---------- */

/* Deliberately no figure/figcaption here (unlike .evidence-strip above): this
   slide is just the eyebrow, title, and grid, images as prominent and
   uncluttered as possible. 3 columns x 2 rows, each tile a fixed-height frame
   (so the grid stays visually uniform and predictable for the
   vertical-space budget), but the image inside is object-fit: contain, never
   cover — no photo is ever cropped. At 3 columns the tile's box aspect
   (~317x210, ~1.51:1) closely matches most of these photos' own ~3:2 aspect,
   so there's little to no visible letterbox; hs345-05a.webp is stored
   pre-rotated 90° from its native portrait orientation specifically so it
   also reads landscape here rather than needing a much taller/letterboxed
   tile (see CLAUDE.md). A 2-column x 3-row layout was tried first (fewer,
   wider tiles) but rejected — wider columns at a short-enough row height to
   fit 3 rows created a much bigger aspect mismatch, and every tile ended up
   visibly letterboxed instead of just the one outlier. Do not change
   object-fit back to cover: a fixed aspect-ratio + cover was tried before
   that and cropped a meaningful chunk off every photo, which is exactly what
   .zoom-frame exists elsewhere in this deck to avoid. */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.photo-grid .zoom-frame {
    height: 210px;
}

.photo-grid .zoom-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- Output cards (solution slide) ---------- */

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 26px;
}

.output-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 18px 20px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

.output-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--text);
}

.output-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.output-media {
    display: block;
    width: 100%;
    height: 165px;
    border-radius: 8px;
    overflow: hidden;
    object-fit: cover;
    background: var(--black);
    border: 1px solid var(--accent);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08), inset -1px -1px 0 rgba(0, 0, 0, 0.4);
}

model-viewer.output-media { --poster-color: transparent; }

/* Photo card: sized to the photo's own aspect ratio rather than the shared
   165px box, so the full image shows with no pillarboxing (the video/3D
   cards stay cover at the shared fixed height, they don't have this complaint).
   It's also a .zoom-frame (see "Evidence strip" above), giving it the same
   hover-zoom behaviour as the Senckenberg case study images; .zoom-frame img
   already supplies the object-fit: contain and transform/transition rules. */
.output-card:nth-child(1) .output-media { height: auto; aspect-ratio: 1400 / 933; }

.output-card:nth-child(2) .output-media { border-color: var(--orange); }
.output-card:nth-child(3) .output-media { border-color: var(--emerald); }

.output-scroll-hint { display: none; }

/* ---------- Speed slider ---------- */

.speed-slider {
    margin-top: 40px;
    max-width: 760px;
}

.speed-counter {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 600;
    color: var(--accent-bright);
    margin-bottom: 6px;
}

.speed-counter-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.speed-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: var(--panel);
    box-shadow:
        inset 1px 1px 0 rgba(0, 0, 0, 0.6),
        inset -1px -1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 38px;
}

.speed-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.speed-checkpoint {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--border);
    transition: border-color 200ms ease, background 200ms ease;
}

.speed-checkpoint.reached {
    border-color: var(--accent-bright);
    background: var(--accent-bright);
}

.speed-marks {
    position: relative;
    height: 40px;
}

.speed-mark {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.speed-mark strong {
    display: block;
    font-family: var(--font-mono);
    color: var(--text);
    font-size: 0.85rem;
}

.speed-note {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 600px;
}

/* ---------- Process rail ---------- */

.process-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 32px;
    position: relative;
}

.process-rail::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

.process-num {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--black);
    background: var(--accent-bright);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.45;
}

/* ---------- Database integration slide ---------- */

.database-slide { max-width: 1080px; }

.database-shot-frame {
    margin-top: 20px;
    height: min(28vh, 320px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.5);
}

.database-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.database-slide .demo-caption {
    margin-top: 16px;
}

/* ---------- Demo slide ---------- */

.demo-slide { max-width: 1080px; }

.demo-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    margin-top: 16px;
}

.demo-viewer-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

.demo-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

.demo-caption {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ---------- Example slide (video + rotate-it-yourself cup, combined) ---------- */

.example-slide { max-width: 1100px; }
#slide-demo .eyebrow { margin-bottom: 12px; }
#slide-demo .slide-title { margin-bottom: 20px; }

.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

.example-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

.example-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    --poster-color: transparent;
}

.example-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    pointer-events: none;
}

#slide-demo .demo-caption { margin-top: 18px; }

.loading-indicator { display: flex; align-items: center; justify-content: center; height: 100%; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-bright);
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Liftable panel (public-benefit copy for the museum's own grant application) ---------- */

.liftable-panel {
    position: relative;
    margin-top: 28px;
    max-width: 760px;
    padding: 28px 28px 24px;
    background: var(--panel);
    border: 1px dashed var(--accent);
    border-radius: 12px;
}

.liftable-panel p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text);
    line-height: 1.6;
}

.liftable-label {
    position: absolute;
    top: -11px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--black);
    background: var(--accent-bright);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ---------- CTA slide ---------- */

.cta-slide { text-align: left; }

.cta-button {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 36px;
    background: linear-gradient(145deg, var(--accent-bright), var(--accent));
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 8px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.35),
        inset -1px -1px 0 rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(110, 193, 228, 0.25);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.4),
        inset -1px -1px 0 rgba(0, 0, 0, 0.3),
        0 10px 26px rgba(110, 193, 228, 0.35);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.contact-card {
    margin-top: 48px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 28px;
    max-width: 480px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

.contact-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: none;
    margin-top: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.contact-title {
    font-weight: 400;
    color: var(--text-dim);
}

.contact-link {
    color: var(--accent-bright);
    text-decoration: none;
    font-size: 0.92rem;
}

.contact-link:hover { text-decoration: underline; }

.contact-location {
    margin-top: 2px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-credit {
    margin-top: 28px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* ---------- Transport bar ---------- */

.transport {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    z-index: 10;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.5);
}

.transport-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #1c3350, #0f2035);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.12),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
    transition: background 150ms ease;
}

.transport-btn:hover { background: linear-gradient(145deg, #234063, #122742); color: var(--accent-bright); }
.transport-btn:disabled { opacity: 0.3; cursor: default; }

.transport-readout {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    min-width: 48px;
    text-align: center;
}

.transport-sep { margin: 0 3px; opacity: 0.5; }

/* ---------- Progress track ---------- */

.progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transition: width 480ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Dot rail ---------- */

.dot-rail {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 150ms ease, transform 150ms ease;
}

.dot:hover { background: rgba(255, 255, 255, 0.4); }

.dot.active {
    background: var(--accent-bright);
    transform: scale(1.3);
}

/* ---------- Back-to-KINISI home link ---------- */

.deck-home {
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-dim);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.5);
    transition: color 150ms ease, border-color 150ms ease;
}

.deck-home:hover { color: var(--accent-bright); border-color: rgba(158, 224, 247, 0.4); }

.deck-home-arrow { flex-shrink: 0; }

.deck-home-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.deck-home-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .deck-home { top: 12px; left: 12px; padding: 6px 11px 6px 8px; gap: 7px; }
    .deck-home-logo { width: 22px; height: 22px; }
    .slide { padding: 0 6vw; }
    .process-rail { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .process-rail::before { display: none; }
    .demo-layout { grid-template-columns: 1fr; }
    .demo-viewer-panel { height: 280px; }
    .database-shot-frame { height: 200px; }
    .dot-rail { display: none; }
    .kinisi-wordmark { font-size: clamp(2.8rem, 16vw, 5rem); }
    .speed-mark { font-size: 0.68rem; }
    .slide-title { margin-bottom: 16px; }
    .slide-lede { margin-bottom: 6px; }

    /* Output cards become a swipeable horizontal row so the media can be
       much bigger without stacking three tall cards down the viewport. */
    .output-grid {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        margin-top: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .output-card {
        flex: 0 0 76%;
        scroll-snap-align: center;
        padding: 12px 14px 14px;
    }
    .output-card h3 { margin: 10px 0 3px; font-size: 1rem; }
    .output-card p { font-size: 0.85rem; }
    .output-media { height: 168px; }
    .output-scroll-hint {
        display: block;
        margin-top: 8px;
        font-size: 0.72rem;
        color: var(--text-dim);
        text-align: center;
    }

    /* Evidence strip (Senckenberg): images are this slide's main element, so
       on mobile it becomes a swipeable row (same pattern as .output-grid)
       instead of shrinking three frames side by side, keeping each image
       big rather than thumbnail-sized. */
    .evidence-strip {
        display: flex;
        gap: 10px;
        margin-top: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .evidence-strip figure {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }
    .zoom-hint { width: 18px; height: 18px; top: 4px; right: 4px; }
    .evidence-strip figcaption { margin-top: 6px; font-size: 0.68rem; }
    .evidence-scroll-hint {
        display: block;
        margin-top: 8px;
        font-size: 0.72rem;
        color: var(--text-dim);
        text-align: center;
    }
    #slide-6 .eyebrow { margin-bottom: 8px; }
    #slide-6 .slide-title { margin-bottom: 12px; }
    #slide-6 .slide-callout { margin-top: 10px; font-size: 0.92rem; }

    /* Photo grid: stays a 3-column grid on mobile too (no swipe row, unlike
       .evidence-strip), just with a tighter gap, header, and tile height. */
    .photo-grid { gap: 8px; margin-top: 6px; }
    .photo-grid .zoom-frame { height: 110px; }
    #slide-photo-gallery .eyebrow { margin-bottom: 8px; }
    #slide-photo-gallery .slide-title { margin-bottom: 12px; }

    /* Example slide (video + rotate-it-yourself cup) stacks to one column. */
    .example-grid { grid-template-columns: 1fr; gap: 10px; }
    .example-tag { font-size: 0.62rem; padding: 4px 10px; }
    #slide-demo .slide-title { margin-bottom: 12px; }
    #slide-demo .demo-caption { margin-top: 8px; font-size: 0.85rem; }
}
