/* ==========================================================================
   CHRISTIAN LASCUÑA — EXECUTIVE PORTFOLIO & DOSSIER
   Pure, clean, editorial two-faced card aesthetic inspired by the sample.
   ========================================================================== */

:root {
    --paper: #f8f6f0;
    --paper-dim: #f1ede3;
    --ink: #191817;
    --ink-muted: #5e5a54;
    --ink-faint: #9c978f;
    --rule: rgba(25, 24, 23, 0.14);
    --rule-heavy: rgba(25, 24, 23, 0.35);
    --font-display: 'Cinzel', serif;
    --font-body: 'EB Garamond', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html,
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #121110;
    font-family: var(--font-body);
    color: var(--ink);
}

/* Fullscreen 3D Flip Deck */
.viewport-deck {
    width: 100vw;
    height: 100vh;
    perspective: 2000px;
}

.sheet-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewport-deck.flipped .sheet-card {
    transform: rotateY(180deg);
}

.viewport-deck.flipped .front-face {
    pointer-events: none !important;
    visibility: hidden;
}

.viewport-deck.flipped .back-face {
    pointer-events: auto !important;
    visibility: visible;
}

.viewport-deck:not(.flipped) .back-face {
    pointer-events: none !important;
    visibility: hidden;
}

/* Base Paper Finish (Authentic Cotton Grain) */
.face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--paper);
    background-image:
        radial-gradient(var(--ink-faint) 0.65px, transparent 0.65px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45), transparent 70%);
    background-size: 10px 10px, 100% 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 5rem;
}

/* Typographic Letterpress Effect */
.letterpress {
    color: var(--ink);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9),
        0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* =========================================
   FRONT FACE (FULL SCREEN BUSINESS CARD)
   ========================================= */
.front-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transform: rotateY(0deg) translateZ(1px);
    -webkit-transform: rotateY(0deg) translateZ(1px);
}

/* Blind-Debossed Papermill Watermark */
.card-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(6.5rem, 18vw, 11.5rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(25, 24, 23, 0.052);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.75), -1px -1px 0 rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.top-meta-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.direct-contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.direct-phone {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.direct-email {
    font-size: 1.05rem;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.direct-email:hover {
    color: var(--ink);
    text-decoration: underline;
}

.firm-block {
    text-align: right;
}

.firm-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.firm-division {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    margin-top: 0.35rem;
}

.hero-identity {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: auto 0;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: 1.35rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.action-prompt-wrap {
    margin-top: 1.6rem;
}

/* Minimalist Icon-Only Turn Cue */
.card-turn-prompt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--ink-faint);
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.6;
}

.card-turn-prompt .prompt-glyph {
    display: block;
    width: 22px;
    height: 22px;
    transform-origin: 12px 12px;
    animation: turn-glyph-pulse 5.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
}

@keyframes turn-glyph-pulse {
    0%, 72% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    86% {
        transform: rotate(180deg);
        opacity: 0.95;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

.front-face:hover .card-turn-prompt,
.card-turn-prompt:hover {
    color: var(--ink);
    opacity: 1;
    transform: scale(1.15);
}

.front-face:active .card-turn-prompt,
.card-turn-prompt:active {
    transform: scale(0.92);
}

.bottom-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule);
    padding-top: 1.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bottom-links a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-faint);
    transition: all 0.2s ease;
}

.bottom-links a:hover {
    color: var(--ink);
    border-bottom-style: solid;
}

.bottom-links .sep {
    color: var(--ink-faint);
}

/* Tactile Audio Printer Mark (Front Card Footer) */
.card-audio-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px dotted transparent;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.card-audio-toggle:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.card-audio-toggle.active .audio-mark {
    color: var(--ink);
    font-weight: 500;
}

.card-audio-toggle:not(.active) .audio-mark {
    color: var(--ink-faint);
    opacity: 0.7;
}

.card-audio-toggle:active {
    transform: scale(0.96);
}

/* =========================================
   BACK FACE (EXECUTIVE DOSSIER)
   ========================================= */
.back-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg) translateZ(1px);
    -webkit-transform: rotateY(180deg) translateZ(1px);
    background-color: var(--paper-dim);
    padding: clamp(0.85rem, 1.8vh, 1.8rem) clamp(1.5rem, 4vw, 4.5rem);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(0.35rem, 0.9vh, 0.85rem);
    z-index: 1;
}

/* Dossier Header & Specimen Profile */
.dossier-header {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--ink);
    padding-bottom: clamp(0.25rem, 0.6vh, 0.55rem);
}

.specimen-profile {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
}

/* Specimen Frame */
.specimen-frame {
    width: clamp(44px, 3.8vw, 60px);
    height: clamp(54px, 4.8vw, 74px);
    border: 1px solid var(--rule-heavy);
    padding: 2px;
    background: var(--paper);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.08);
    position: relative;
    flex-shrink: 0;
}

.specimen-monogram {
    width: 100%;
    height: 100%;
    background: #e4dfd4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.specimen-tag {
    position: absolute;
    bottom: -6px;
    right: -4px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.48rem;
    padding: 1px 3px;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
}

.specimen-details h2 {
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 1.2vw, 1.22rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.15;
}

.specimen-details p {
    font-size: clamp(0.68rem, 0.74vw, 0.78rem);
    letter-spacing: 0.12em;
    color: var(--ink);
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 500;
}

.specimen-id-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--ink-faint);
    margin-top: 2px;
}

/* Navigation Tabs */
.dossier-nav {
    position: relative;
    z-index: 25;
    display: flex;
    gap: clamp(0.65rem, 1.1vw, 1.25rem);
    align-self: flex-end;
}

.mobile-return-btn {
    display: none;
}

.tab-text-compact {
    display: none;
}

.tab-text-full {
    display: inline;
}

.tab-btn {
    position: relative;
    z-index: 30;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: clamp(0.25rem, 0.6vh, 0.45rem) 0.35rem;
    font-family: var(--font-body);
    font-size: clamp(0.88rem, 1.05vw, 1.15rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.tab-btn * {
    pointer-events: none;
}

.tab-btn:hover {
    color: var(--ink);
}

.tab-btn.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
    font-weight: 600;
}

/* Content Panes Viewport */
.dossier-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.tab-pane {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    height: 100%;
}

.tab-pane.active {
    display: flex;
    opacity: 1;
}

/* =========================================
   DEFAULT TAB: EDITORIAL INDEX (STOIC DOSSIER)
   ========================================= */
.editorial-index-wrap {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(0.35rem, 0.9vh, 0.75rem);
    padding: 0 0.5rem;
    min-height: 0;
}

.editorial-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.editorial-eyebrow {
    font-family: var(--font-mono);
    font-size: clamp(0.55rem, 0.65vw, 0.65rem);
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.editorial-statement {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 0.95vw, 0.98rem);
    line-height: 1.32;
    color: #383531;
    max-width: 630px;
    margin: 0 auto;
}

/* Monochromatic GitHub Audit Strip - Prominent & Uncompressed */
.github-audit-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    flex-shrink: 0;
}

.github-audit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: var(--font-mono);
    font-size: clamp(0.54rem, 0.62vw, 0.62rem);
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-transform: uppercase;
    border-bottom: 1px dotted var(--rule-heavy);
    padding-bottom: 0.18rem;
}

.github-audit-meta .audit-tag {
    font-weight: 600;
    color: var(--ink);
}

.github-audit-meta .audit-cycle {
    color: var(--ink-muted);
}

.github-chart-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.15rem 0;
    line-height: 0;
    overflow: hidden;
}

.github-chart-svg {
    width: min(100%, 540px);
    height: auto;
    max-height: clamp(56px, 9vh, 76px);
    display: block;
    mix-blend-mode: multiply;
    opacity: 0.9;
    filter: contrast(1.2);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.github-audit-strip:hover .github-chart-svg {
    opacity: 1;
    filter: contrast(1.3);
}

.editorial-rule {
    width: 100%;
    height: 1px;
    background: var(--rule-heavy);
    margin: 0;
    flex-shrink: 0;
}

/* Directory rows: naturally and tightly grouped, avoiding void-stretching */
.editorial-directory {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    flex: 0 0 auto;
}

.editorial-row {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: clamp(0.28rem, 0.6vh, 0.45rem) 0.5rem;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

.editorial-row:hover {
    background: rgba(25, 24, 23, 0.03);
    border-bottom-color: var(--ink);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.row-index {
    font-family: var(--font-mono);
    font-size: clamp(0.68rem, 0.76vw, 0.78rem);
    color: var(--ink-faint);
    font-weight: 500;
    letter-spacing: 0.08em;
    min-width: 22px;
    transition: color 0.2s ease;
}

.editorial-row:hover .row-index {
    color: var(--ink);
    font-weight: 700;
}

.row-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.row-heading {
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 0.92vw, 0.94rem);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub {
    font-family: var(--font-body);
    font-size: clamp(0.74rem, 0.82vw, 0.84rem);
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-action {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    color: var(--ink-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.editorial-row:hover .row-action {
    color: var(--ink);
    transform: translateX(4px);
}

.editorial-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(0.54rem, 0.62vw, 0.65rem);
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    text-transform: uppercase;
    padding-top: 0.1rem;
    flex-shrink: 0;
}

.editorial-foot .foot-sep {
    font-size: 0.55rem;
    color: var(--ink-faint);
}

/* View Mode Hidden State */
.view-hidden {
    display: none !important;
}

/* =========================================
   TAB 1: PROJECTS (CONTAINER & DECK CONTROLS)
   ========================================= */
.projects-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Executive Deck Toolbar */
.deck-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--rule-heavy);
    padding-bottom: clamp(0.2rem, 0.5vh, 0.4rem);
    margin-bottom: clamp(0.25rem, 0.6vh, 0.5rem);
    flex-shrink: 0;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.deck-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.deck-archive-tag {
    font-family: var(--font-mono);
    font-size: clamp(0.52rem, 0.62vw, 0.65rem);
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink);
}

.deck-hint-text {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 0.78vw, 0.8rem);
    color: var(--ink-muted);
    font-style: italic;
}

.deck-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* View Switcher: 3D Deck vs Classic Split Ledger */
.view-mode-group {
    display: inline-flex;
    background: rgba(25, 24, 23, 0.05);
    border: 1px solid var(--rule-heavy);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
}

.view-mode-btn {
    border: none;
    background: transparent;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    cursor: pointer;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.view-mode-btn:hover {
    color: var(--ink);
}

.view-mode-btn.active {
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.view-mode-btn .btn-icon {
    font-size: 0.75rem;
    line-height: 1;
}

/* Deck Stepper Navigation Controls */
.deck-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.deck-stepper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(25, 24, 23, 0.03);
    border: 1px solid var(--rule-heavy);
    border-radius: 3px;
    padding: 1px 3px;
}

.deck-step-btn {
    background: transparent;
    border: none;
    color: var(--ink);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    transition: all 0.15s ease;
    border-radius: 2px;
}

.deck-step-btn:hover {
    background: var(--ink);
    color: var(--paper);
}

.deck-step-btn:active {
    transform: scale(0.92);
}

.deck-counter-badge {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 0.72vw, 0.74rem);
    letter-spacing: 0.1em;
    color: var(--ink);
    padding: 0 4px;
    font-weight: 600;
    min-width: 52px;
    text-align: center;
    user-select: none;
}

/* =========================================
   3D BATEMAN BUSINESS CARD DECK STAGE
   ========================================= */
.bateman-deck-stage {
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1600px;
    -webkit-perspective: 1600px;
    outline: none;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    padding: 0.5rem 0;
}

.bateman-deck-stage:active {
    cursor: grabbing;
}

.bateman-card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    pointer-events: none;
}

/* Physical 32pt Card Dimension & 3D Layering */
.bateman-project-card {
    position: absolute;
    width: clamp(290px, 25vw, 375px);
    height: clamp(390px, 56vh, 495px);
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease,
                filter 0.5s ease,
                box-shadow 0.5s ease;
    border-radius: 8px;
    pointer-events: auto;
    will-change: transform, opacity;
}

/* Inner 3D Flip Wrapper */
.bateman-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
}

.bateman-project-card.is-flipped .bateman-card-inner {
    transform: rotateY(180deg);
}

/* Card Faces: Authentic Heavy Bone Cotton Cardstock */
.card-face-front,
.card-face-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    background-color: var(--paper);
    background-image:
        radial-gradient(var(--ink-faint) 0.65px, transparent 0.65px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55), transparent 75%);
    background-size: 8px 8px, 100% 100%;
    border: 1px solid rgba(25, 24, 23, 0.16);
    box-shadow:
        0 20px 42px -10px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 0 0 2px rgba(25, 24, 23, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-face-back {
    justify-content: space-between;
    padding: clamp(0.9rem, 1.6vh, 1.35rem) clamp(1rem, 1.6vw, 1.4rem);
}

.card-face-front {
    padding: 0;
    justify-content: flex-start;
}

/* UPPER PART: RECTANGULAR LANDSCAPE PHOTO */
.card-photo-hero {
    width: 100%;
    height: clamp(140px, 22.5vh, 185px);
    position: relative;
    overflow: hidden;
    background: #191817;
    flex-shrink: 0;
    border-bottom: 1px solid var(--rule-heavy);
}

.card-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bateman-project-card.is-center:hover .card-hero-img {
    transform: scale(1.04);
    filter: none;
}

.card-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 9, 8, 0.85) 0%, rgba(10, 9, 8, 0.2) 35%, rgba(10, 9, 8, 0.08) 60%, rgba(10, 9, 8, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-photo-meta {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    z-index: 4;
    pointer-events: none;
    gap: 0.45rem;
    background: linear-gradient(180deg, rgba(12, 11, 10, 0.9) 0%, rgba(12, 11, 10, 0.45) 75%, transparent 100%);
}

.card-specimen-id-badge {
    font-family: var(--font-mono);
    font-size: clamp(0.5rem, 0.56vw, 0.58rem);
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #f8f6f0;
    background: rgba(18, 17, 16, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.card-division-badge {
    font-family: var(--font-mono);
    font-size: clamp(0.48rem, 0.53vw, 0.55rem);
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: #191817;
    background: #f8f6f0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Translucent Papermill Watermark */
.card-stock-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-16deg);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 5.5vw, 4.4rem);
    font-weight: 700;
    color: rgba(25, 24, 23, 0.038);
    pointer-events: none;
    letter-spacing: 0.18em;
    user-select: none;
    z-index: 0;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.65), -1px -1px 0 rgba(0, 0, 0, 0.02);
}

/* LOWER PART: CARD BODY CONTENT */
.card-body-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(0.6rem, 1.2vh, 0.9rem) clamp(0.85rem, 1.4vw, 1.2rem);
    position: relative;
    overflow: hidden;
}

.card-identity-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.card-proj-title {
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 1.28vw, 1.38rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.15;
}

.card-proj-sub {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(0.72rem, 0.78vw, 0.82rem);
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    max-width: 95%;
}

.card-proj-summary {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
    line-height: 1.32;
    color: #383531;
    max-width: 98%;
    margin-top: 0.12rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Monochromatic Debossed Tech Stack Tokens */
.card-stack-tokens {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    max-width: 96%;
}

.card-stack-pill {
    font-family: var(--font-mono);
    font-size: clamp(0.48rem, 0.55vw, 0.58rem);
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 6px;
    background: rgba(25, 24, 23, 0.05);
    border: 1px solid rgba(25, 24, 23, 0.18);
    border-radius: 999px;
    color: var(--ink);
}

/* Card Action Row */
.card-action-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.55rem;
}

.card-btn-inspect {
    flex: 1;
    padding: clamp(0.48rem, 0.9vh, 0.62rem) 0.8rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: clamp(0.68rem, 0.74vw, 0.78rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.card-btn-inspect:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.card-btn-inspect:active {
    transform: translateY(0);
}

.card-quick-link {
    width: clamp(28px, 2.5vw, 34px);
    height: clamp(28px, 2.5vw, 34px);
    border-radius: 50%;
    border: 1px solid var(--rule-heavy);
    background: rgba(25, 24, 23, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.card-quick-link:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* =========================================
   REVERSE FACE (SPECIMEN TECHNICAL DOSSIER)
   ========================================= */
.card-face-back {
    transform: rotateY(180deg);
    background-color: var(--paper-dim);
}

.back-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 0.35rem;
}

.back-archive-title {
    font-family: var(--font-mono);
    font-size: clamp(0.52rem, 0.6vw, 0.62rem);
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
}

.back-btn-flip-return {
    background: transparent;
    border: 1px solid var(--rule-heavy);
    border-radius: 3px;
    padding: 1px 6px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: var(--ink);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.back-btn-flip-return:hover {
    background: var(--ink);
    color: var(--paper);
}

.back-specs-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.45rem 0.1rem;
    margin: 0.2rem 0;
    border-bottom: 1px solid var(--rule);
}

.back-spec-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.back-spec-label {
    font-family: var(--font-mono);
    font-size: clamp(0.52rem, 0.58vw, 0.6rem);
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.back-spec-copy {
    font-family: var(--font-body);
    font-size: clamp(0.74rem, 0.8vw, 0.82rem);
    line-height: 1.32;
    color: #2b2927;
}

.back-spec-perf {
    font-family: var(--font-mono);
    font-size: clamp(0.56rem, 0.62vw, 0.65rem);
    line-height: 1.35;
    color: var(--ink);
    background: rgba(25, 24, 23, 0.04);
    padding: 3px 6px;
    border-left: 2px solid var(--ink);
}

.back-links-row {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.back-action-cta {
    flex: 1;
    padding: 0.48rem 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(0.64rem, 0.7vw, 0.74rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    transition: all 0.18s ease;
    border: 1px solid var(--ink);
}

.back-action-cta.primary-cta {
    background: var(--ink);
    color: var(--paper);
}

.back-action-cta.primary-cta:hover {
    background: #000;
}

.back-action-cta.secondary-cta {
    background: transparent;
    color: var(--ink);
}

.back-action-cta.secondary-cta:hover {
    background: rgba(25, 24, 23, 0.06);
}

/* =========================================
   CAROUSEL CARD GEOMETRY & SHADOW ACCENTS
   ========================================= */
.bateman-project-card.is-center {
    cursor: default;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}

.bateman-project-card.is-center .card-face-front {
    border-color: rgba(25, 24, 23, 0.35);
}

.bateman-project-card:not(.is-center):hover {
    filter: brightness(1.04) drop-shadow(0 16px 25px rgba(0, 0, 0, 0.35));
}

/* Mobile & Tablet Adaptations for 3D Deck */
@media (max-width: 768px) {
    .deck-hint-text {
        display: none;
    }

    .bateman-project-card {
        width: min(84vw, 310px);
        height: min(54vh, 430px);
    }

    .card-face-front,
    .card-face-back {
        padding: 0.85rem 0.95rem;
    }

    .card-proj-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =========================================
   TAB 1: PROJECTS (SPLIT DIRECTORY WITH IMAGE)
   ========================================= */
.projects-split {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: clamp(240px, 22vw, 320px) 1fr;
    gap: clamp(1.25rem, 1.8vw, 2rem);
    min-height: 0;
}

.project-index {
    list-style: none;
    border-right: 1px solid var(--rule-heavy);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.25rem;
    padding-right: 1.25rem;
    overflow-y: auto;
    height: 100%;
}

.project-card-item {
    padding: clamp(0.48rem, 0.95vh, 0.72rem) 0.85rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    border-radius: 2px;
}

.project-card-item:hover {
    background-color: var(--paper);
    border-color: var(--rule);
}

.project-card-item.selected {
    background-color: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.proj-item-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.project-card-item.selected .proj-item-index {
    color: var(--ink);
    font-weight: 700;
}

.proj-item-info {
    flex: 1;
    min-width: 0;
}

.proj-item-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.proj-item-type {
    font-size: 0.76rem;
    font-style: italic;
    color: var(--ink-muted);
    margin-top: 1px;
}

.project-dossier-view {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--rule-heavy);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.proj-preview-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 290px;
    max-height: clamp(300px, 44vh, 380px);
    border-bottom: 1px solid var(--rule-heavy);
    background: #0e0d0c;
    overflow: hidden;
    flex-shrink: 0;
}

.proj-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform 0.35s ease;
    display: block;
}

.proj-preview-box img:hover {
    transform: scale(1.02);
}

.proj-detail-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.75rem, 1.3vh, 1.15rem);
    min-width: 0;
    padding: clamp(1.25rem, 2vh, 1.75rem) clamp(1.35rem, 2vw, 1.85rem);
}

.proj-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
}

.proj-detail-copy h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.1em;
}

.proj-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(25, 24, 23, 0.06);
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--rule-heavy);
    font-weight: 600;
}

/* Custom Archival Scrollbars */
.editorial-index-wrap::-webkit-scrollbar,
.project-index::-webkit-scrollbar,
.project-dossier-view::-webkit-scrollbar,
.certs-wrap::-webkit-scrollbar,
.timeline-wrap::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.editorial-index-wrap::-webkit-scrollbar-track,
.project-index::-webkit-scrollbar-track,
.project-dossier-view::-webkit-scrollbar-track,
.certs-wrap::-webkit-scrollbar-track,
.timeline-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.editorial-index-wrap::-webkit-scrollbar-thumb,
.project-index::-webkit-scrollbar-thumb,
.project-dossier-view::-webkit-scrollbar-thumb,
.certs-wrap::-webkit-scrollbar-thumb,
.timeline-wrap::-webkit-scrollbar-thumb {
    background: var(--rule-heavy);
}

/* Problem & Solution Design */
.problem-solution-block {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 0.9vh, 0.8rem);
}

.spec-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    font-weight: 600;
}

.spec-text {
    font-size: 0.9rem;
    line-height: 1.46;
    color: #383633;
}

.proj-stack {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    line-height: 1.45;
}

.proj-links-row {
    display: flex;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--rule);
}

.proj-cta-link {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.18s ease;
}

.proj-cta-link:hover {
    color: #000;
}

/* =========================================
   TAB 2: CERTS (ARCHIVAL LEDGER)
   ========================================= */
.certs-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(0.75rem, 1.5vh, 1.5rem);
    overflow-y: auto;
    padding: 0 0.5rem;
    min-height: 0;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ledger-table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ink);
    padding: clamp(0.65rem, 1.2vh, 0.95rem) 0.65rem;
    color: var(--ink-muted);
}

.ledger-table td {
    padding: clamp(0.65rem, 1.35vh, 1.05rem) 0.65rem;
    border-bottom: 1px solid var(--rule);
}

.mono-cell {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.verify-link {
    color: var(--ink);
    text-decoration: underline;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.roadmap-ledger-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.25rem;
    border-top: 1px solid var(--rule-heavy);
    padding-top: clamp(0.75rem, 1.3vh, 1.1rem);
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-family: var(--font-mono);
}

.roadmap-head {
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.12em;
}

.roadmap-entry {
    color: var(--ink-muted);
}

/* =========================================
   TAB 3: EXPERIENCE (EXECUTIVE MEMO)
   ========================================= */
.timeline-wrap {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: clamp(0.5rem, 1vh, 0.95rem);
    overflow-y: auto;
    padding: 0 0.5rem;
    min-height: 0;
}

.memo-block {
    border-left: 2px solid var(--rule-heavy);
    padding-left: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.memo-block::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    background: var(--ink);
    border-radius: 50%;
}

.memo-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.memo-role {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.memo-firm {
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.86rem;
}

.memo-dates {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-muted);
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.memo-body {
    font-size: 0.88rem;
    line-height: 1.42;
    color: #3b3935;
}

/* =========================================
   TAB 4: DIRECT LINE / CONTACT (CORRESPONDENCE SUITE)
   ========================================= */
.contact-memo-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.5rem;
}

.contact-suite-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 2vw, 2.5rem);
    align-items: stretch;
}

.contact-box {
    background: var(--paper);
    border: 1px solid var(--rule-heavy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: clamp(1.35rem, 2.2vh, 2rem) clamp(1.35rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.contact-head {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.contact-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #383633;
    margin-bottom: 1.15rem;
}

.contact-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.95rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    width: 140px;
    flex-shrink: 0;
}

.contact-val {
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease;
}

.contact-val:hover {
    text-decoration: underline;
    color: #000;
}

.status-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.status-indicator {
    color: #2b7a44;
    margin-right: 0.2rem;
}

/* Protocol Card */
.protocol-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.15rem;
    border-top: 1px solid var(--rule);
    padding-top: 0.95rem;
}

.protocol-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.protocol-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--ink);
}

.protocol-desc {
    font-size: 0.84rem;
    line-height: 1.38;
    color: #423f3b;
}

.contact-dispatch-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.dispatch-cta-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.dispatch-cta-btn.primary-cta {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
}

.dispatch-cta-btn.primary-cta:hover {
    background: #000;
}

.dispatch-cta-btn.secondary-cta {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.dispatch-cta-btn.secondary-cta:hover {
    background: rgba(25, 24, 23, 0.06);
}

.contact-seal {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: var(--ink-faint);
    text-align: center;
    margin-top: 0.75rem;
    border-top: 1px dotted var(--rule);
    padding-top: 0.55rem;
    text-transform: uppercase;
}

/* Back Footer & Archival Telemetry Ticker */
.dossier-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule);
    padding-top: clamp(0.35rem, 0.7vh, 0.65rem);
    font-size: clamp(0.7rem, 0.8vw, 0.82rem);
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-transform: uppercase;
    gap: 1.5rem;
    overflow: hidden;
}

.footer-telemetry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.telemetry-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--ink);
    flex-shrink: 0;
}

.ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    width: max-content;
    animation: ticker-drift 26s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

.ticker-item .t-dot {
    display: inline-block;
    margin: 0 0.55rem;
    opacity: 0.45;
    font-size: 0.7rem;
}

@keyframes ticker-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.dossier-footer-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dossier-footer-controls .footer-ctrl-sep {
    color: var(--ink-faint);
    font-size: 0.65rem;
}

.dossier-audio-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.dossier-audio-toggle:hover {
    color: var(--ink);
    text-decoration: underline;
}

.dossier-audio-toggle.active .audio-mark {
    color: var(--ink);
    font-weight: 600;
}

.dossier-audio-toggle:not(.active) .audio-mark {
    color: var(--ink-faint);
    opacity: 0.7;
}

.dossier-audio-toggle:active {
    transform: scale(0.96);
    opacity: 0.7;
}

.return-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0 0 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.return-btn:hover {
    text-decoration: underline;
}

.return-btn:active {
    opacity: 0.65;
}

.return-btn .return-arrow {
    font-size: 0.75rem;
    line-height: 1;
}

.return-btn .return-text {
    line-height: 1;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 900px) {
    .face {
        padding: 2.5rem;
    }

    .hero-name {
        font-size: 2.6rem;
    }

    .projects-split {
        grid-template-columns: 260px 1fr;
        gap: 1.75rem;
    }

    .proj-preview-box {
        width: 100%;
        height: clamp(200px, 30vh, 280px);
    }
}

@media (max-width: 768px) {
    /* 3D Scene & Perspective on Mobile */
    .viewport-deck {
        perspective: 1400px;
    }

    .sheet-card {
        transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* FRONT FACE: Precision Vertical Business Card */
    .face.front-face {
        padding: 2rem 1.25rem 1.5rem 1.25rem;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .front-face .top-meta-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .front-face .direct-phone {
        font-size: 0.86rem;
        letter-spacing: 0.06em;
    }

    .front-face .direct-email {
        font-size: 0.76rem;
        word-break: break-all;
    }

    .front-face .firm-block {
        text-align: right;
    }

    .front-face .firm-title {
        font-size: 1.15rem;
        letter-spacing: 0.12em;
    }

    .front-face .firm-division {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
    }

    .hero-identity {
        margin: auto 0;
        padding: 1.25rem 0;
    }

    .hero-name {
        font-size: clamp(1.85rem, 7.5vw, 2.45rem);
        letter-spacing: 0.16em;
        line-height: 1.18;
    }

    .hero-title {
        font-size: clamp(0.82rem, 3.4vw, 0.98rem);
        letter-spacing: 0.05em;
        line-height: 1.45;
        margin-top: 0.65rem;
        color: var(--ink-muted);
    }

    .card-watermark {
        font-size: clamp(4.5rem, 16vw, 7.5rem);
    }

    .action-prompt-wrap {
        margin-top: 1.25rem;
    }

    .card-turn-prompt {
        padding: 0.25rem;
    }

    .card-turn-prompt .prompt-glyph {
        width: 20px;
        height: 20px;
    }

    .bottom-meta-row {
        font-size: 0.74rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
        border-top: 1px solid var(--rule);
        padding-top: 0.85rem;
    }

    .bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.65rem;
        font-size: 0.74rem;
    }

    .bottom-links a {
        color: var(--ink);
        text-decoration: underline;
        padding: 0.2rem 0.35rem;
    }

    .bottom-links .sep {
        opacity: 0.5;
    }

    /* BACK FACE: Fixed One-Page Executive Dossier (No Outer Page Scroll) */
    .face.back-face {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        overflow: hidden; /* Pure 1-page non-scroll */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0.85rem 1rem max(0.45rem, env(safe-area-inset-bottom, 0.45rem)) 1rem;
        transform: rotateY(180deg) translateZ(1px);
        -webkit-transform: rotateY(180deg) translateZ(1px);
        box-sizing: border-box;
    }

    /* Fixed Compact Top Header */
    .dossier-header {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0 0 0.4rem 0;
        margin: 0;
        border-bottom: 1px solid var(--rule);
        background: transparent;
        box-shadow: none;
        width: 100%;
    }

    .specimen-profile {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .specimen-frame {
        width: 30px;
        height: 30px;
        border: 1px solid var(--rule-heavy);
        flex-shrink: 0;
    }

    .specimen-monogram {
        font-size: 0.66rem;
        font-weight: 700;
    }

    .specimen-tag {
        display: none;
    }

    .specimen-details h2 {
        font-size: 1.05rem;
        letter-spacing: 0.05em;
        line-height: 1.15;
    }

    .specimen-details p {
        font-size: 0.68rem;
        color: var(--ink-muted);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 75px);
    }

    /* Fixed Segmented Navigation Bar: Zero Sideways Scroll */
    .dossier-nav {
        position: static;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        overflow: hidden;
    }

    .dossier-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-text-full {
        display: none;
    }

    .tab-text-compact {
        display: inline;
    }

    .mobile-return-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        background: none;
        border: none;
        padding: 0.35rem 0.35rem 0.35rem 0;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: var(--ink);
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
        transition: opacity 0.15s ease;
    }

    .mobile-return-btn:hover {
        text-decoration: underline;
    }

    .mobile-return-btn:active {
        opacity: 0.65;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        font-size: 0.74rem;
        letter-spacing: 0.03em;
        padding: 0.35rem 0.06rem;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        color: var(--ink-muted);
        transition: all 0.15s ease;
    }

    .tab-btn.active {
        color: var(--ink);
        font-weight: 700;
        border-bottom-color: var(--ink);
    }

    /* Dossier Viewport: Fills remaining height between header and footer */
    .dossier-viewport {
        flex: 1 1 0;
        min-height: 0;
        position: relative;
        overflow: hidden;
        width: 100%;
        margin: 0.35rem 0;
    }

    .tab-pane {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        overflow: hidden;
    }

    .tab-pane.active {
        display: flex;
        flex-direction: column;
        opacity: 1;
    }

    /* DEFAULT TAB: EDITORIAL INDEX (MOBILE) */
    .editorial-index-wrap {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 0.85rem;
        padding: 0.5rem 0.25rem;
    }

    .editorial-statement {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .github-audit-strip {
        gap: 0.25rem;
        width: 100%;
    }

    .github-audit-meta {
        font-size: clamp(0.5rem, 2.2vw, 0.58rem);
        letter-spacing: 0.08em;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0.35rem;
    }

    .github-chart-frame {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .github-chart-frame::-webkit-scrollbar {
        display: none;
    }

    .github-chart-svg {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        max-height: clamp(48px, 8vh, 65px);
    }

    .editorial-row {
        padding: 0.75rem 0.25rem;
        gap: 0.75rem;
    }

    .editorial-row:hover {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .row-index {
        font-size: 0.75rem;
        min-width: 20px;
    }

    .row-heading {
        font-size: 0.88rem;
    }

    .row-sub {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .row-action {
        font-size: 0.95rem;
    }

    .editorial-foot {
        font-size: 0.62rem;
        flex-wrap: wrap;
        gap: 0.35rem 0.65rem;
        text-align: center;
        padding-top: 0.25rem;
    }

    /* TAB 1: PROJECTS (Fitted 1-page with inner scrollable detail) */
    .projects-split:not(.view-hidden) {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 0;
        min-height: 0;
        height: 100% !important;
        gap: 0.5rem;
        width: 100%;
        overflow: hidden;
    }

    .project-index {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.15rem 0 0.4rem 0;
        border-right: none;
        border-bottom: 1px solid var(--rule-heavy);
        scrollbar-width: none;
    }

    .project-index::-webkit-scrollbar {
        display: none;
    }

    .project-card-item {
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 0.4rem 0.75rem;
        background: var(--paper);
        border: 1px solid var(--rule);
        border-radius: 4px;
        transition: all 0.15s ease;
        cursor: pointer;
    }

    .project-card-item:hover,
    .project-card-item.selected {
        background: var(--paper-dim);
        border-color: var(--ink);
        box-shadow: 0 1px 4px rgba(25, 24, 23, 0.08), inset 0 0 0 1px var(--ink);
    }

    .proj-item-title {
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .proj-item-type {
        font-size: 0.66rem;
        white-space: nowrap;
        margin-top: 1px;
    }

    /* Active project details: internally scrollable inside the card */
    .project-dossier-view {
        flex: 1 1 0;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem;
        background: var(--paper);
        border: 1px solid var(--rule);
        border-radius: 4px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    }

    .proj-preview-box {
        width: 100%;
        height: clamp(140px, 22vh, 185px);
        border: 1px solid var(--rule-heavy);
        background: #e8e4db;
        border-radius: 4px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .proj-preview-box img {
        filter: none;
        transition: transform 0.3s ease;
    }

    .proj-preview-box img:active {
        filter: none;
    }

    .proj-header-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        border-bottom: 1px solid var(--rule);
        padding-bottom: 0.35rem;
    }

    .proj-badge {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .proj-detail-copy h3 {
        font-size: 1.15rem;
        letter-spacing: 0.05em;
    }

    .problem-solution-block {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .spec-label {
        font-size: 0.65rem;
    }

    .spec-text {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .proj-stack {
        font-size: 0.68rem;
        line-height: 1.4;
        border-top: 1px solid var(--rule);
        padding-top: 0.5rem;
    }

    .proj-links-row {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.2rem;
    }

    .proj-cta-link {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.6rem;
        background: rgba(25, 24, 23, 0.04);
        border: 1px solid var(--ink);
        text-decoration: none;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        font-family: var(--font-mono);
        font-weight: 600;
        border-radius: 2px;
        text-align: center;
    }

    .proj-cta-link:active {
        background: var(--ink);
        color: var(--paper);
    }

    .proj-cta-link.live-link {
        background: var(--ink);
        color: var(--paper);
    }

    /* TAB 2: CERTS (Fitted with inner scrollable ledger) */
    .certs-wrap {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding-right: 0.2rem;
    }

    .ledger-table thead {
        display: none;
    }

    .ledger-table,
    .ledger-table tbody,
    .ledger-table tr,
    .ledger-table td {
        display: block;
        width: 100%;
    }

    .ledger-table tr {
        background: var(--paper-dim);
        border: 1px solid var(--rule-heavy);
        margin-bottom: 0.65rem;
        padding: 0.75rem 0.85rem;
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(25, 24, 23, 0.04);
    }

    .ledger-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0;
        border-bottom: 1px dashed var(--rule);
        font-size: 0.82rem;
        gap: 0.5rem;
    }

    .ledger-table td:first-child {
        display: block;
        font-size: 0.95rem;
        font-family: var(--font-display);
        border-bottom: 1px solid var(--rule-heavy);
        padding-bottom: 0.35rem;
        margin-bottom: 0.25rem;
    }

    .ledger-table td:first-child strong {
        font-weight: 600;
        color: var(--ink);
    }

    .ledger-table td:last-child {
        border-bottom: none;
        padding-top: 0.4rem;
        justify-content: flex-end;
    }

    .ledger-table td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 600;
        flex-shrink: 0;
    }

    .ledger-table td:first-child::before {
        display: none;
    }

    .verify-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.7rem;
        background: var(--ink);
        color: var(--paper) !important;
        text-decoration: none;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        border-radius: 2px;
    }

    .roadmap-ledger-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        font-size: 0.72rem;
        line-height: 1.35;
        border-top: 1px solid var(--rule);
        padding-top: 0.65rem;
    }

    /* TAB 3: EXPERIENCE (Fitted with inner scrollable memos) */
    .timeline-wrap {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .memo-block {
        padding-left: 0.95rem;
        border-left: 2px solid var(--rule-heavy);
    }

    .memo-block::before {
        left: -5px;
        top: 4px;
        width: 8px;
        height: 8px;
    }

    .memo-header {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        margin-bottom: 0.35rem;
    }

    .memo-role {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .memo-firm {
        display: block;
        font-size: 0.78rem;
        margin-top: 0.1rem;
    }

    .memo-dates {
        font-size: 0.68rem;
        color: var(--ink-muted);
        letter-spacing: 0.06em;
    }

    .memo-body {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    /* TAB 4: DIRECT LINE / CONTACT */
    .contact-memo-wrap {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.25rem 0;
    }

    .contact-suite-grid {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
    }

    .contact-box {
        padding: 0.85rem;
        width: 100%;
    }

    .contact-head {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    .contact-text {
        font-size: 0.86rem;
        line-height: 1.45;
        margin-bottom: 0.85rem;
    }

    .contact-links-grid {
        gap: 0.65rem;
        padding-top: 0.75rem;
    }

    .contact-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .contact-label {
        width: 100%;
        font-size: 0.65rem;
        color: var(--ink-muted);
    }

    .contact-val {
        font-size: 0.84rem;
        word-break: break-all;
    }

    /* Fixed Bottom Footer with Telemetry Ticker */
    .dossier-footer {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--rule);
        padding-top: 0.35rem;
        margin-top: 0.2rem;
        gap: 0.65rem;
        width: 100%;
        overflow: hidden;
    }

    .footer-telemetry {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .telemetry-tag {
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .ticker-viewport {
        mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    }

    .ticker-item {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .ticker-item .t-dot {
        margin: 0 0.35rem;
        font-size: 0.6rem;
    }

    .return-btn {
        width: auto;
        padding: 0 0 0 0.35rem;
        font-size: 0.64rem;
        gap: 0.25rem;
        background: none;
        border: none;
    }

    .return-btn:active {
        opacity: 0.65;
        background: none;
    }
}

@media (max-width: 480px) {
    .face.front-face {
        padding: 1.5rem 1rem;
    }

    .face.back-face {
        padding: 0.7rem 0.75rem max(0.4rem, env(safe-area-inset-bottom, 0.4rem)) 0.75rem;
    }

    .hero-name {
        font-size: 1.75rem;
    }

    .front-face .top-meta-row {
        gap: 0.4rem;
    }

    .front-face .direct-phone {
        font-size: 0.8rem;
    }

    .front-face .direct-email {
        font-size: 0.72rem;
    }

    .front-face .firm-title {
        font-size: 1.02rem;
    }

    .card-watermark {
        font-size: clamp(3.8rem, 18vw, 5.5rem);
    }

    .card-turn-prompt .prompt-glyph {
        width: 18px;
        height: 18px;
    }

    .audit-tag-prefix {
        display: none;
    }

    .proj-preview-box {
        height: 125px;
    }

    .tab-btn {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .mobile-return-btn {
        padding: 0.3rem 0.25rem 0.3rem 0;
        font-size: 0.66rem;
    }

    .telemetry-tag {
        font-size: 0.6rem;
    }

    .ticker-item {
        font-size: 0.62rem;
    }

    .return-btn {
        padding: 0 0 0 0.25rem;
        font-size: 0.58rem;
        gap: 0.2rem;
        background: none;
        border: none;
    }
}

/* =========================================
   COMPACT VIEWPORT HEIGHT SAFEGUARDS (ONE PAGE RULE)
   Guarantees zero cutoff across laptop screens (e.g. 500px - 750px height)
   ========================================= */
@media (max-height: 750px) {
    .face.front-face {
        padding: clamp(1.25rem, 3vh, 2.5rem) clamp(2rem, 5vw, 4rem);
    }
    .hero-name {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
        margin-bottom: 0.4rem;
    }
    .hero-title {
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    }
    .action-prompt-wrap {
        margin-top: 1rem;
    }
    .bottom-meta-row {
        padding-top: 0.85rem;
    }
}

@media (max-height: 650px) {
    .back-face {
        padding: 0.55rem clamp(1.25rem, 3vw, 2.5rem);
        gap: 0.25rem;
    }
    .dossier-header {
        padding-bottom: 0.25rem;
    }
    .specimen-frame {
        width: 42px;
        height: 52px;
        padding: 2px;
    }
    .specimen-monogram {
        font-size: 0.85rem;
    }
    .specimen-tag {
        font-size: 0.42rem;
        bottom: -5px;
        right: -4px;
    }
    .specimen-details h2 {
        font-size: 0.95rem;
    }
    .specimen-details p {
        font-size: 0.66rem;
    }
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.15rem 0.1rem;
    }
    .editorial-statement {
        font-size: 0.8rem;
        line-height: 1.25;
        max-width: 560px;
    }
    .github-audit-strip {
        max-width: 540px;
    }
    .github-chart-svg {
        max-height: 52px;
        width: min(100%, 440px);
    }
    .editorial-directory {
        max-width: 720px;
    }
    .editorial-row {
        padding: 0.22rem 0.35rem;
    }
    .row-heading {
        font-size: 0.78rem;
    }
    .row-sub {
        font-size: 0.7rem;
    }
    .editorial-foot {
        font-size: 0.52rem;
        padding-top: 0;
    }
    .dossier-footer {
        padding-top: 0.25rem;
        font-size: 0.68rem;
    }
}

@media (max-height: 520px) {
    .editorial-statement {
        display: none;
    }
    .specimen-frame {
        display: none;
    }
    .github-chart-svg {
        max-height: 44px;
    }
}


