/* ============================================
   CASE #2025-AI — THE AYUSH SHARMA FILES
   Crime Scene Portfolio — Stylesheet
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #f5c518 #111;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
}

body {
    background: #0d0d0d;
    color: #ccc;
    font-family: 'DM Sans', -apple-system, sans-serif;
    line-height: 1.6;
}

#main-content {
    padding-top: 44px;
}

#main-content {
    width: 100%;
    min-width: 100%;
}

.hidden {
    display: none !important;
}

a {
    color: #f5c518;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fff;
}

/* --- LOADING SCREEN --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.loading-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    color: #cc0000;
    min-height: 2em;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.loading-bar-container {
    width: 100%;
    height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #cc0000, #f5c518);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
}

.clearance-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 4px;
    text-transform: uppercase;
    min-height: 1.5em;
}

/* --- NAVIGATION BAR --- */
#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid #f5c518;
    padding: 0;
    transition: transform 0.3s ease;
}

#nav-bar.nav-hidden {
    transform: translateY(-100%);
}

#nav-bar a {
    color: #666;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 22px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

#nav-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f5c518;
    transition: width 0.3s;
}

#nav-bar a:hover {
    color: #f5c518;
}

#nav-bar a:hover::after {
    width: 60%;
}

#nav-bar a.active {
    color: #f5c518;
}

#nav-bar a.active::after {
    width: 60%;
}

/* offset content for fixed nav */
.section {
    scroll-margin-top: 48px;
}

/* --- CAUTION TAPE --- */
.caution-tape-top,
.caution-tape {
    background: #f5c518;
    overflow: hidden;
    padding: 6px 0;
    position: relative;
    z-index: 10;
}

.caution-tape {
    transform: rotate(-0.5deg);
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.caution-tape-top {
    transform: rotate(0.5deg);
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.caution-tape-top .caution-tape-text { animation-duration: 30s; }

.caution-tape-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    animation: tape-scroll 20s linear infinite;
    display: inline-block;
}

@keyframes tape-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- TAPE VARIATIONS (subtle) --- */

/* Tape variations — only speed + 2 subtle tilts */
.tape-1 .caution-tape-text { animation-duration: 29s; }
.tape-2 { transform: rotate(-0.3deg); }
.tape-2 .caution-tape-text { animation-duration: 27s; }
.tape-3 .caution-tape-text { animation-duration: 22s; }
.tape-4 .caution-tape-text { animation-duration: 29s; }
.tape-5 { transform: rotate(0.3deg); }
.tape-5 .caution-tape-text { animation-duration: 25s; }
.tape-6 .caution-tape-text { animation-duration: 30s; }

/* --- SECTIONS --- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.stamp-header {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f5c518;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 3px solid #f5c518;
    padding-bottom: 0.5rem;
}

/* --- CLASSIFIED / TOP SECRET STAMPS --- */
.classified-stamp,
.top-secret-stamp {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 0.3rem 1.2rem;
    border: 4px solid;
    border-radius: 4px;
    transform: rotate(-8deg) scale(3);
    opacity: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    user-select: none;
}

.classified-stamp {
    color: #cc0000;
    border-color: #cc0000;
}

.top-secret-stamp {
    color: #cc0000;
    border-color: #cc0000;
    background: rgba(204, 0, 0, 0.05);
}

/* Stamp animation */
.stamp-animate {
    animation: stamp-in 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes stamp-in {
    0% { transform: rotate(-8deg) scale(3); opacity: 0; }
    60% { transform: rotate(-8deg) scale(0.9); opacity: 0.9; }
    100% { transform: rotate(-8deg) scale(1); opacity: 0.85; }
}

/* --- MUGSHOT SECTION --- */
.mugshot-container {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
    overflow: hidden;
}

.mugshot-frame {
    background: #1a1a1a;
    border: 2px solid #333;
    position: relative;
    padding: 1rem 1.5rem 0;
    text-align: center;
}

.height-markers {
    position: absolute;
    right: 10px;
    top: 10px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #555;
    z-index: 5;
}

.height-markers span {
    position: relative;
}

.height-markers span::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #444;
}

/* Silhouette / Robot face */
/* Mugshot Photo */
.mugshot-photo-wrap {
    position: relative;
    width: 85%;
    max-width: 280px;
    margin: 0 auto;
    margin-top: 5%;
    overflow: hidden;
    z-index: 2;
}

.mugshot-photo {
    width: 100%;
    display: block;
    background: #1a1a1a;
    mix-blend-mode: luminosity;
}

/* Film grain overlay */
.mugshot-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scanlines */
.mugshot-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
}

/* Dark vignette */
.mugshot-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

/* CONFIDENTIAL stamp */
.mugshot-stamp {
    position: absolute;
    bottom: 12%;
    right: 5%;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(204, 0, 0, 0.6);
    border: 2px solid rgba(204, 0, 0, 0.5);
    padding: 2px 10px;
    letter-spacing: 3px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.mugshot-label {
    background: #111;
    padding: 0.8rem;
    margin-top: 0;
    display: flex;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 2px;
    color: #aaa;
    border-top: 1px solid #333;
}

/* Booking form */
.subject-form {
    background: #f5f0e0;
    color: #222;
    padding: 2rem;
    border-radius: 2px;
    position: relative;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
}

.subject-form::before {
    content: 'CLASSIFIED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(204, 0, 0, 0.08);
    letter-spacing: 10px;
    pointer-events: none;
    white-space: nowrap;
}

.form-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
    font-size: 0.95rem;
    align-items: baseline;
}

.form-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #555;
    min-width: 160px;
    flex-shrink: 0;
}

.form-value {
    font-family: 'DM Sans', sans-serif; font-style: italic;
    color: #111;
}

.status-active {
    color: #cc0000;
    font-weight: 700;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.threat-extreme {
    color: #cc0000;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(204, 0, 0, 0.3);
}

.form-divider {
    height: 2px;
    background: #111;
    margin: 1.2rem 0;
}

.form-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 1rem;
}

.comm-channels {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #f5c518;
    color: #222;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.channel-link:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: translateX(5px);
}

.channel-icon {
    font-weight: 700;
    font-size: 1rem;
    width: 24px;
    text-align: center;
    color: #555;
}

.monitored-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #cc0000;
    border: 1px solid #cc0000;
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: auto;
}

/* --- CORKBOARD --- */
.board-hint { color:#888; font-size:1.1rem; margin-bottom:2rem; font-family:'DM Sans',sans-serif; font-style:italic; opacity:0; transform:translateY(20px); transition:opacity 0.5s ease, transform 0.5s ease; }
.board-hint.visible { opacity:1; transform:translateY(0); }

.corkboard {
    background: linear-gradient(135deg, #8b6914 0%, #a07d2a 25%, #8b6914 50%, #9a7520 75%, #8b6914 100%);
    border: 8px solid #5a3a08;
    border-radius: 4px;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.3), 0 8px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.corkboard.visible {
    opacity: 1;
    transform: translateY(0);
}

.pin {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 35%, #ff4444, #aa0000);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 -2px 3px rgba(0,0,0,0.2);
    z-index: 10;
}
.pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

/* --- EXP CARDS (work experience on corkboard) --- */
.exp-card {
    background: #f5f0e0;
    color: #222;
    border-radius: 2px;
    position: relative;
    box-shadow: 3px 4px 12px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, grid-column 0.4s ease;
}

.exp-card:hover:not(.open) {
    transform: rotate(0deg) translateY(-4px) !important;
    box-shadow: 4px 8px 24px rgba(0,0,0,0.45);
    z-index: 5;
}

.exp-front {
    padding: 1.8rem 1.5rem;
}
.exp-front .card-number {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    color: #cc0000;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.exp-front h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 0.6rem;
}
.card-meta-line {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
}

.exp-board-expanded {
    display: none;
    padding: 1.8rem 1.5rem;
}

.exp-card.open .exp-front { display: none; }
.exp-card.open .exp-board-expanded { display: block; animation: expandIn 0.35s ease; }
.exp-card.open { grid-column: 1 / -1; transform: rotate(0deg) !important; cursor: default; }

@keyframes expandIn { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }

.exp-expanded-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 8px;
}
.exp-expanded-header .case-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #111;
}
.exp-expanded-header .card-number {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    color: #cc0000;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.exp-expanded-header .case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    color: #555;
}

/* --- INNER CORKBOARD (inside expanded exp-card) --- */
.inner-corkboard {
    background:
        linear-gradient(135deg, #7a5c10 0%, #8b6914 30%, #7a5c10 60%, #8b6914 100%);
    border: 4px solid #5a3a08;
    border-radius: 3px;
    padding: 1.5rem 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
    gap: 1.2rem;
    margin: 1.2rem 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
    position: relative;
}

/* --- IMPACT CARDS (pinned notes on inner corkboard) --- */
.impact-card {
    background: #faf5e4;
    color: #222;
    border-radius: 2px;
    padding: 1.2rem 1rem 1rem;
    position: relative;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.3);
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.impact-card:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 3px 6px 16px rgba(0,0,0,0.4);
    z-index: 3;
}

.impact-pin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 40% 35%, #ff6666, #cc0000);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 5;
}
.impact-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
}

.impact-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
}

.impact-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #444;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.impact-card.open p {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.4rem;
}

.impact-card { cursor: pointer; }
.impact-card a { color: #cc0000; text-decoration: none; font-weight: 600; }
.impact-card a:hover { text-decoration: underline; }

.impact-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #333;
    border-top: 1px dashed #ccc;
    margin-top: 0;
    padding-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
    font-style: italic;
}

.impact-card.open .impact-detail {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.close-card {
    background: none;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 6px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: all 0.2s;
}
.close-card:hover { background: #cc0000; color: #fff; }

.case-status {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.2rem 0.8rem;
    border: 2px solid;
    border-radius: 2px;
    font-weight: 700;
    display: inline-block;
    flex-shrink: 0;
}
.case-status.ongoing { color: #cc0000; border-color: #cc0000; }
.case-status.review { color: #cc8800; border-color: #cc8800; }
.case-status.closed { color: #777; border-color: #777; }

.crime-description h4 { font-family:'Oswald',sans-serif; font-size:0.85rem; letter-spacing:2px; color:#cc0000; margin-bottom:0.4rem; }
.crime-quote { font-style:italic; font-size:0.95rem; line-height:1.7; color:#222; padding:0.8rem 1.2rem; border-left:3px solid #cc0000; background:rgba(204,0,0,0.03); margin-bottom:1rem; }

.evidence-section h4, .forensic-analysis h4 { font-family:'Oswald',sans-serif; font-size:0.85rem; letter-spacing:2px; color:#555; margin-bottom:0.6rem; }
.evidence-item { padding:0.5rem 0.8rem; margin-bottom:0.4rem; border-left:3px solid #f5c518; background:rgba(245,197,24,0.05); font-size:0.85rem; transition:background 0.2s; }
.evidence-item:hover { background:rgba(245,197,24,0.12); }
.exhibit-tag { font-family:'Oswald',sans-serif; font-size:0.65rem; font-weight:700; letter-spacing:1px; background:#f5c518; color:#111; padding:1px 6px; margin-right:6px; border-radius:2px; }
.forensic-analysis { margin-top:1rem; padding-top:0.8rem; border-top:1px dashed #ccc; }
.forensic-analysis p { font-family:'IBM Plex Mono',monospace; font-size:0.8rem; color:#555; }

/* corkboard single-col handled in responsive section below */

/* --- TRAINING DOSSIER --- */
.dossier-question {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 2rem;
}

.dossier-entries {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dossier-entry {
    background: #f5f0e0;
    color: #222;
    padding: 2rem 2.5rem;
    border-radius: 2px;
    position: relative;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.dossier-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.dossier-classification {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #cc0000;
    border: 1px solid #cc0000;
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 1rem;
}

.dossier-institution {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 0.3rem;
}

.dossier-detail {
    font-family: 'Courier Prime', monospace;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.dossier-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    padding-left: 1rem;
    border-left: 3px solid #f5c518;
    margin-bottom: 0.8rem;
}

.dossier-courses {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.dossier-seal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(204, 0, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dossier-seal::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 2px solid rgba(204, 0, 0, 0.1);
    border-radius: 50%;
}

/* --- WEAPONS INVENTORY --- */
.inventory-subtitle, .projects-title {
    font-family: 'DM Sans', sans-serif; font-style: italic;
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.weapons-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.weapon-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    padding: 1.5rem 2rem;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.weapon-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #f5c518;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.evidence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.evidence-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(245, 240, 224, 0.05);
    border: 1px solid #444;
    color: #ccc;
    position: relative;
    transition: all 0.3s;
}

.evidence-tag::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #f5c518;
    border-right: 2px solid #f5c518;
    opacity: 0;
    transition: opacity 0.3s;
}

.evidence-tag:hover {
    border-color: #f5c518;
    color: #f5c518;
    background: rgba(245, 197, 24, 0.08);
}

.evidence-tag:hover::before {
    opacity: 1;
}

.evidence-tag a {
    color: inherit;
    text-decoration: none;
}
.evidence-tag a:hover {
    color: #f5c518;
}
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #cc0000;
    color: #cc0000;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.project-link-btn:hover {
    background: #cc0000;
    color: #fff;
}

.projects-board {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-stack {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: #888;
    padding: 6px 10px;
    background: rgba(0,0,0,0.04);
    border-left: 3px solid #cc0000;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.cert-link {
    font-style: italic;
    color: #e06060 !important;
}
.cert-link:hover {
    color: #f5c518 !important;
}

/* --- KNOWN OPERATIONS --- */
.operation-file {
    background: #f5f0e0;
    color: #222;
    padding: 2.5rem 3rem;
    border-radius: 2px;
    position: relative;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.operation-file.visible {
    opacity: 1;
    transform: translateY(0);
}

.operation-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #111;
    margin-bottom: 1rem;
    border-bottom: 2px solid #111;
    padding-bottom: 0.5rem;
}

.operation-content .crime-quote {
    margin-bottom: 1.5rem;
}

.operation-details .evidence-item {
    border-left-color: #cc0000;
}

/* --- WANTED POSTER / TIP LINE --- */
.wanted-poster {
    max-width: 550px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.wanted-poster.visible {
    opacity: 1;
    transform: translateY(0);
}

.wanted-border {
    background: #f5f0e0;
    color: #222;
    padding: 3rem;
    text-align: center;
    border: 8px solid #111;
    outline: 3px solid #f5f0e0;
    outline-offset: -12px;
    position: relative;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
}

.wanted-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 15px;
    color: #111;
    margin-bottom: 1rem;
}

.wanted-silhouette {
    margin: 1rem auto;
    display: inline-block;
}

.silhouette-head.small {
    width: 50px;
    height: 55px;
    background: #333;
    border-radius: 50% 50% 45% 45%;
    margin: 0 auto;
}

.silhouette-body.small {
    width: 80px;
    height: 50px;
    background: #333;
    border-radius: 30% 30% 0 0;
    margin: -2px auto 0;
}

.wanted-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #111;
    margin: 0.5rem 0 0.3rem;
}

.wanted-alias {
    font-family: 'DM Sans', sans-serif; font-style: italic;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.wanted-description {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wanted-divider {
    width: 80%;
    height: 2px;
    background: #111;
    margin: 1.5rem auto;
}

.tip-intro {
    font-family: 'DM Sans', sans-serif; font-style: italic;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.tip-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tip-icon-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cc0000;
    color: #cc0000;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
}

.case-ending {
    text-align: center;
    padding: 3rem 0 1rem;
}

.ending-text {
    font-family: 'DM Sans', sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #555;
    letter-spacing: 2px;
    animation: fadeFlicker 3s ease infinite;
}

@keyframes fadeFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.tip-icon-btn {
    position: relative;
}

.tip-icon-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}

.tip-icon-btn:hover {
    background: #cc0000;
    color: #f5f0e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

.tip-icon-btn:hover::after {
    opacity: 1;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.8rem;
}

.footer p:first-child {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 3px;
    color: #555;
    margin-bottom: 0.5rem;
}

.footer-small {
    font-size: 0.7rem;
    color: #333;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-child.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children */
.reveal-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-child:nth-child(2) { transition-delay: 0.2s; }
.reveal-child:nth-child(3) { transition-delay: 0.3s; }
.reveal-child:nth-child(4) { transition-delay: 0.4s; }
.reveal-child:nth-child(5) { transition-delay: 0.5s; }
.reveal-child:nth-child(6) { transition-delay: 0.6s; }

/* --- CUSTOM SCROLLBAR (Webkit) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd84a;
}

/* --- RESPONSIVE --- */

/* === 1024px and below (iPad landscape, small laptops) === */
@media (max-width: 1024px) {
    .mugshot-container {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .subject-form::before {
        font-size: 4rem;
    }
}

/* === 768px and below (tablet portrait) === */
@media (max-width: 768px) {
    .mugshot-container {
        grid-template-columns: 1fr;
    }

    .mugshot-left {
        max-width: 320px;
        margin: 0 auto;
    }

    .mugshot-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .corkboard {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .stamp-header {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .classified-stamp,
    .top-secret-stamp {
        font-size: 1.3rem;
        padding: 0.2rem 0.8rem;
    }

    .subject-form {
        padding: 1.5rem;
    }

    .subject-form::before {
        font-size: 3.5rem;
    }

    .dossier-entry {
        padding: 1.5rem 1.8rem;
    }

    .dossier-seal {
        width: 45px;
        height: 45px;
    }

    .dossier-seal::before {
        width: 30px;
        height: 30px;
    }

    .operation-file {
        padding: 2rem;
    }

    .weapon-category {
        padding: 1.2rem 1.5rem;
    }

    .wanted-border {
        padding: 2.5rem 2rem;
    }

    .wanted-title {
        font-size: 2.8rem;
        letter-spacing: 10px;
    }

    .inner-corkboard {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* === 600px and below (large phones, small tablets) === */
@media (max-width: 600px) {
    #nav-bar {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #nav-bar::-webkit-scrollbar { display: none; }
    #nav-bar a {
        font-size: 0.6rem;
        padding: 10px 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .stamp-header {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .classified-stamp,
    .top-secret-stamp {
        font-size: 1.1rem;
        padding: 0.2rem 0.6rem;
        letter-spacing: 2px;
        border-width: 3px;
    }

    .corkboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        border-width: 5px;
    }

    .inner-corkboard {
        grid-template-columns: 1fr;
        padding: 1rem 0.8rem;
        gap: 1rem;
        border-width: 3px;
    }

    .mugshot-left {
        max-width: 280px;
    }

    .mugshot-frame {
        max-width: 280px;
    }

    .subject-form {
        padding: 1.2rem;
    }

    .subject-form::before {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .form-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .form-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .form-label {
        min-width: unset;
        font-size: 0.75rem;
    }

    .form-value {
        font-size: 0.9rem;
    }

    .case-title {
        font-size: 1.3rem;
    }

    .case-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .exp-front {
        padding: 1.4rem 1.2rem;
    }

    .exp-board-expanded {
        padding: 1.4rem 1.2rem;
    }

    .close-card {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .wanted-border {
        padding: 2rem 1.5rem;
        border-width: 5px;
        outline-offset: -8px;
    }

    .wanted-title {
        font-size: 2.2rem;
        letter-spacing: 8px;
    }

    .wanted-name {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .tip-icons {
        gap: 1rem;
    }

    .tip-icon-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .dossier-entry {
        padding: 1.5rem;
    }

    .dossier-institution {
        font-size: 1.2rem;
    }

    .dossier-seal {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .dossier-seal::before {
        width: 25px;
        height: 25px;
    }

    .operation-file {
        padding: 1.5rem;
    }

    .operation-name {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .weapon-category {
        padding: 1rem 1.2rem;
    }

    .loading-text {
        font-size: 1.1rem;
    }

    .ending-text {
        font-size: 1.1rem;
    }

    .comm-channels {
        gap: 0.5rem;
    }

    .channel-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
        gap: 0.6rem;
    }

    .projects-board {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-wrap: wrap;
    }

    .evidence-tags {
        gap: 0.4rem;
    }

    .evidence-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
    }

    .classified-watermark {
        font-size: 3rem;
    }
}

/* === 480px and below (phones) === */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .section {
        padding: 2rem 0.8rem;
    }

    .section-header {
        gap: 0.6rem;
        margin-bottom: 1.8rem;
    }

    .stamp-header {
        font-size: 1.2rem;
        letter-spacing: 2px;
        padding-bottom: 0.4rem;
        border-bottom-width: 2px;
    }

    .classified-stamp,
    .top-secret-stamp {
        font-size: 0.9rem;
        padding: 0.15rem 0.5rem;
        letter-spacing: 1.5px;
        border-width: 2px;
    }

    /* Mugshot */
    .mugshot-left {
        max-width: 240px;
    }

    .mugshot-frame {
        max-width: 240px;
        padding: 0.8rem 1rem 0;
    }

    .mugshot-label {
        font-size: 0.8rem;
        padding: 0.6rem;
        letter-spacing: 1px;
    }

    .height-markers {
        font-size: 0.6rem;
        right: 6px;
    }

    .height-markers span::before {
        right: 22px;
        width: 25px;
    }

    .mugshot-stamp {
        font-size: 0.85rem;
        padding: 1px 6px;
        letter-spacing: 2px;
    }

    /* Subject form */
    .subject-form {
        padding: 1rem;
    }

    .subject-form::before {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .form-title {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .form-row {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .form-label {
        font-size: 0.7rem;
    }

    .form-value {
        font-size: 0.85rem;
    }

    .threat-extreme {
        font-size: 0.95rem;
    }

    .form-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    /* Communication channels */
    .channel-link {
        font-size: 0.78rem;
        padding: 0.5rem;
        gap: 0.5rem;
        min-height: 44px;
    }

    .channel-icon {
        font-size: 0.9rem;
        width: 20px;
    }

    .monitored-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    /* Corkboard */
    .corkboard {
        padding: 1.2rem 0.8rem;
        gap: 1.2rem;
        border-width: 4px;
    }

    .board-hint {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Exp cards */
    .exp-front {
        padding: 1.2rem 1rem;
    }

    .exp-front h3 {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .card-meta-line {
        font-size: 0.75rem;
    }

    .exp-board-expanded {
        padding: 1.2rem 1rem;
    }

    .exp-expanded-header .case-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .exp-expanded-header .case-meta {
        font-size: 0.78rem;
        gap: 0.3rem 1rem;
    }

    /* Inner corkboard */
    .inner-corkboard {
        padding: 0.8rem 0.6rem;
        gap: 0.8rem;
        margin: 1rem 0;
    }

    .impact-card {
        padding: 1rem 0.8rem 0.8rem;
    }

    .impact-card h4 {
        font-size: 0.8rem;
    }

    .impact-card p,
    .impact-detail {
        font-size: 0.75rem;
    }

    .close-card {
        padding: 10px 24px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .crime-quote {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .evidence-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

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

    /* Training dossier */
    .dossier-question {
        font-size: 0.95rem;
    }

    .dossier-entries {
        gap: 1.5rem;
    }

    .dossier-entry {
        padding: 1.2rem;
    }

    .dossier-classification {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .dossier-institution {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .dossier-detail {
        font-size: 0.85rem;
    }

    .dossier-note {
        font-size: 0.85rem;
        padding-left: 0.8rem;
    }

    .dossier-courses {
        font-size: 0.75rem;
    }

    .dossier-seal {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }

    .dossier-seal::before {
        width: 22px;
        height: 22px;
    }

    /* Weapons inventory */
    .inventory-subtitle,
    .projects-title {
        font-size: 0.95rem;
    }

    .category-label {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .evidence-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .weapon-category {
        padding: 1rem;
    }

    /* Projects */
    .project-stack {
        font-size: 0.72rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }

    .project-link-btn {
        font-size: 0.7rem;
        padding: 6px 12px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Operations */
    .operation-file {
        padding: 1.2rem;
    }

    .operation-name {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    /* Wanted poster */
    .wanted-border {
        padding: 1.5rem 1rem;
        border-width: 4px;
        outline-offset: -7px;
        outline-width: 2px;
    }

    .wanted-title {
        font-size: 1.8rem;
        letter-spacing: 6px;
        margin-bottom: 0.6rem;
    }

    .wanted-name {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .wanted-alias {
        font-size: 0.95rem;
    }

    .wanted-description {
        font-size: 0.78rem;
    }

    .tip-intro {
        font-size: 0.85rem;
    }

    .tip-icons {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tip-icon-btn {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .silhouette-head.small {
        width: 40px;
        height: 44px;
    }

    .silhouette-body.small {
        width: 64px;
        height: 40px;
    }

    /* Loading screen */
    .loading-text {
        font-size: 1rem;
    }

    .clearance-text {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .loading-content {
        padding: 1.5rem;
    }

    /* Footer & ending */
    .ending-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .case-ending {
        padding: 2rem 0 1rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer p:first-child {
        letter-spacing: 2px;
        font-size: 0.75rem;
    }

    .footer-small {
        font-size: 0.65rem;
    }

    /* Caution tape */
    .caution-tape-text {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    /* Case status */
    .case-status {
        font-size: 0.65rem;
        padding: 0.15rem 0.6rem;
    }
}

/* === 375px and below (iPhone SE, very small screens) === */
@media (max-width: 375px) {
    .section {
        padding: 1.5rem 0.6rem;
    }

    .stamp-header {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .classified-stamp,
    .top-secret-stamp {
        font-size: 0.8rem;
        padding: 0.1rem 0.4rem;
    }

    .mugshot-left {
        max-width: 210px;
    }

    .mugshot-frame {
        max-width: 210px;
    }

    .subject-form::before {
        font-size: 1.6rem;
    }

    .form-title {
        font-size: 0.9rem;
    }

    .corkboard {
        padding: 1rem 0.6rem;
        border-width: 3px;
    }

    .exp-front h3 {
        font-size: 0.95rem;
    }

    .exp-expanded-header .case-title {
        font-size: 1.05rem;
    }

    .wanted-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .wanted-name {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .wanted-border {
        padding: 1.2rem 0.8rem;
    }

    .dossier-institution {
        font-size: 1rem;
    }

    .operation-name {
        font-size: 1rem;
    }

    .loading-text {
        font-size: 0.9rem;
    }
}

/* === Ensure no horizontal overflow at any size === */
@media (max-width: 768px) {
    .caution-tape,
    .caution-tape-top {
        overflow: hidden;
    }

    /* Prevent any element from causing horizontal scroll */
    .section,
    .mugshot-container,
    .subject-form,
    .corkboard,
    .wanted-poster,
    .wanted-border,
    .operation-file,
    .dossier-entry,
    .weapon-category {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Ensure evidence tags and project links wrap */
    .evidence-tags {
        max-width: 100%;
    }

    .project-links {
        max-width: 100%;
    }

    .channel-link {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* === MOBILE IMPROVEMENTS (810px and below) === */
@media (max-width: 810px) {
    /* 1. Sticky mini-header */
    .mobile-mini-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 16px;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(245, 197, 24, 0.3);
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }
    .mobile-mini-header.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .mobile-mini-header .mini-mugshot {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid #f5c518;
        flex-shrink: 0;
        filter: grayscale(0.5);
    }
    .mobile-mini-header .mini-name {
        font-family: 'Oswald', sans-serif;
        font-size: 0.8rem;
        color: #f5c518;
        letter-spacing: 1.5px;
        font-weight: 700;
    }
    .mobile-mini-header .mini-role {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.6rem;
        color: #888;
        letter-spacing: 1px;
    }

    /* 2. Carousel wrapper for corkboard cards */
    .corkboard.mobile-carousel {
        display: block;
        padding: 1.5rem 0.5rem;
        overflow: visible;
    }
    .carousel-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 12px 4px 20px;
        scrollbar-width: none;
    }
    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    .carousel-wrapper > .exp-card {
        scroll-snap-align: center;
        min-width: 85vw;
        max-width: 85vw;
        flex-shrink: 0;
        transform: none !important;
    }
    .carousel-wrapper > .exp-card.open {
        min-width: 85vw;
        max-width: 85vw;
    }
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 8px 0 4px;
    }
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #555;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.3s, transform 0.3s;
    }
    .carousel-dots .dot.active {
        background: #f5c518;
        transform: scale(1.25);
    }

    /* 3. Inner corkboard impact carousel */
    .inner-corkboard.mobile-carousel-inner {
        display: block;
        padding: 1rem 0.5rem;
        overflow: visible;
    }
    .inner-carousel-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 10px 2px 16px;
        scrollbar-width: none;
    }
    .inner-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    .inner-carousel-wrapper > .impact-card {
        scroll-snap-align: center;
        min-width: 80vw;
        max-width: 80vw;
        flex-shrink: 0;
        transform: none !important;
    }
    .inner-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 4px 0;
    }
    .inner-carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #555;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.3s, transform 0.3s;
    }
    .inner-carousel-dots .dot.active {
        background: #f5c518;
        transform: scale(1.25);
    }

    /* Skills + Education carousels */
    .weapons-grid.mobile-carousel,
    .dossier-entries.mobile-carousel {
        display: block;
        overflow: visible;
    }
    .weapons-grid.mobile-carousel .carousel-wrapper > .weapon-category,
    .dossier-entries.mobile-carousel .carousel-wrapper > .dossier-entry {
        scroll-snap-align: center;
        min-width: 85vw;
        max-width: 85vw;
        flex-shrink: 0;
    }

    /* 4. Caution tapes - thinner on mobile */
    .caution-tape-top,
    .caution-tape {
        padding: 3px 0;
    }
    .caution-tape-text {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    /* 5. Weapons inventory - compact tags */
    .weapon-category {
        padding: 0.8rem 1rem;
    }
    .category-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 0.6rem;
        padding-bottom: 0.4rem;
    }
    .evidence-tags {
        gap: 0.35rem;
    }
    .evidence-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    .evidence-tag::before {
        display: none;
    }

    /* 6. Wanted poster - more compact */
    .wanted-border {
        padding: 1.5rem 1rem;
    }
    .wanted-title {
        font-size: 1.8rem;
        letter-spacing: 5px;
        margin-bottom: 0.5rem;
    }
    .silhouette-head.small {
        width: 32px;
        height: 36px;
    }
    .silhouette-body.small {
        width: 52px;
        height: 32px;
    }
    .wanted-name {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    .wanted-description {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    .wanted-divider {
        margin: 0.8rem auto;
    }
    .tip-intro {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    /* 7. Scroll-to-top button */
    .scroll-top-btn {
        position: fixed;
        bottom: 24px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f5c518;
        color: #000;
        border: none;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        z-index: 998;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }
    .scroll-top-btn.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .scroll-top-btn:active {
        transform: scale(0.9);
    }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 811px) {
    .mobile-mini-header,
    .scroll-top-btn,
    .carousel-dots,
    .inner-carousel-dots {
        display: none !important;
    }
}

/* === Touch target minimum sizes === */
@media (hover: none) and (pointer: coarse) {
    .channel-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .exp-card {
        min-height: 44px;
    }

    .impact-card {
        min-height: 44px;
    }

    .project-link-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .close-card {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .tip-icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .evidence-tag a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}

/* --- SCANLINE OVERLAY (subtle CRT effect) --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* --- NOISE / GRAIN TEXTURE --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
}
