

/* ==========================================================================
   1. EXCLUSIVE CORE PALETTE VARIABLES & BASE CONFIGS
   ========================================================================== */
   
:root {
    --bg-primary: #121417;          
    --bg-surface: #1a1d22;          
    --bg-card: #20242a;             
    --accent-blue: #007AFF;         
    --accent-gold: #c6a15b;         
    --text-main: #e6e8ee;           
    --text-muted: #94a3b8;
    --text-dark: #5e6b7c;
    --border-color: rgba(230, 232, 238, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* Disable iOS long-press callout (Save Image / Add to Photos) and
   text-selection drag on all media elements site-wide */
img, video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
body { background-color: var(--bg-primary); color: var(--text-main); font-family: var(--font-stack); overflow-x: hidden; }

/* ==========================================================================
   1B. AMBIENT AURORA BACKGROUND — slow-drifting soft gradient glows
   ========================================================================== */
.aurora-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
    will-change: transform;
}
.aurora-blob--blue {
    width: 42vw; height: 42vw;
    max-width: 600px; max-height: 600px;
    top: -10%; left: -8%;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    animation: auroraDriftA 38s ease-in-out infinite alternate;
}
.aurora-blob--gold {
    width: 36vw; height: 36vw;
    max-width: 520px; max-height: 520px;
    bottom: -12%; right: -6%;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    animation: auroraDriftB 46s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
    .aurora-blob { filter: blur(55px); opacity: 0.22; }
    .aurora-blob--blue {
        width: 80vw; height: 80vw;
        max-width: 420px; max-height: 420px;
        top: -15%; left: -25%;
    }
    .aurora-blob--gold {
        width: 75vw; height: 75vw;
        max-width: 380px; max-height: 380px;
        bottom: -15%; right: -25%;
    }
}

@keyframes auroraDriftA {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vw, 8vh) scale(1.12); }
    100% { transform: translate(-4vw, 4vh) scale(0.96); }
}
@keyframes auroraDriftB {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-5vw, -6vh) scale(1.1); }
    100% { transform: translate(4vw, -3vh) scale(0.95); }
}

#ambient-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.app-container { position: relative; width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2rem; z-index: 1; }

/* ==========================================================================
   2. RE-ENGINEERED OVERLAY TIMED CINEMATIC LOADER
   ========================================================================== */
#intro-loader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-primary); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
#intro-text {
    font-size: 2.2rem; font-weight: 700; color: #ffffff; letter-spacing: -0.03em;
    opacity: 0; transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#intro-text.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   3. HERO BLOCK WITH STABLE, SMOOTH PROFILE CONTAINER
   ========================================================================== */
.hero-editorial-grid { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 3.5rem; 
    align-items: center; 
    padding: 4.5rem 0; 
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-avatar-column {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-text-column {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.profile-circle-frame {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at center, #007AFF 0%, #004499 100%);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-circle-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 122, 255, 0.35);
}
.profile-circle-frame:hover .profile-img-element {
    transform: scale(1.05);
}

.hero-text-column h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.02em; color: #ffffff; }
.availability-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--accent-gold); margin-bottom: 1rem;
}
.availability-tag::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 0 0 rgba(255, 199, 89, 0.6);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(198, 161, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0); }
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   4. ORGANIZATIONAL GLASS LOGO BADGES GRID
   ========================================================================== */
.org-responsive-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important; 
    gap: 2rem !important; 
    margin-top: 1rem !important; 
    padding-bottom: 5rem !important; 
}

.org-card {
    background: rgba(255, 255, 255, 0.03) !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    backdrop-filter: blur(14px) !important; 
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 20px !important; 
    padding: 2.5rem !important; 
    cursor: pointer !important; 
    position: relative !important; 
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.org-card:hover {
    transform: translateY(-6px) !important; 
    border-color: rgba(0, 122, 255, 0.4) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.08) !important;
}

.org-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,122,255,0.18), rgba(198,161,91,0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}
.org-card:hover::after { opacity: 1; }

.glass-ui-logo-box {
    width: 150px !important;
    height: 150px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important; 
    overflow: hidden !important; 
    position: relative !important;
    margin-bottom: 2rem !important; 
}

.glass-ui-logo-box img { 
    width: 100% !important;   
    height: 100% !important;  
    object-fit: contain !important;
    padding: 12px !important;
    filter: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; 
}

.org-card:hover .glass-ui-logo-box img { 
    transform: scale(1.08) !important; 
}

/* Personal "My Creativity" card — branded logo treatment instead of white badge */
.personal-logo-box {
    background: radial-gradient(circle at center, #1a3a6b 0%, #0c1622 100%) !important;
}
.personal-logo-box img {
    padding: 28px !important;
    filter: brightness(1.05) !important;
}
.personal-card {
    border-color: rgba(0, 122, 255, 0.18) !important;
}
.personal-card:hover {
    border-color: rgba(0, 122, 255, 0.5) !important;
}

.org-card h3 { 
    font-size: 1.6rem !important; 
    font-weight: 700 !important; 
    margin-bottom: 0.5rem !important; 
    letter-spacing: -0.02em !important; 
    color: #ffffff !important; 
}

.org-card .org-role-tag { 
    font-size: 0.9rem !important; 
    color: #007AFF !important;
    font-weight: 500 !important; 
    margin-bottom: 1.25rem !important; 
}

.org-card p { 
    font-size: 0.95rem !important; 
    color: rgba(255, 255, 255, 0.6) !important; 
    line-height: 1.55 !important; 
}

/* ==========================================================================
   4B. SKELETON LOADING CARDS
   ========================================================================== */
.org-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    padding-bottom: 5rem;
}

.skeleton-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.skeleton-logo {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    background: var(--bg-card);
    margin-bottom: 2rem;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: var(--bg-card);
    margin-bottom: 0.85rem;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}
.skeleton-line.wide  { width: 75%; }
.skeleton-line.medium { width: 55%; }
.skeleton-line.narrow { width: 90%; }

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.8; }
}

/* ==========================================================================
   5. TWO-COLUMN SPLIT HISTORY ENVIRONMENT
   ========================================================================== */
.split-history-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; margin-bottom: 5rem; }
.column-block-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2.5rem; color: var(--accent-gold); padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }
.experience-vertical-track {
    display: flex; flex-direction: column; gap: 3rem;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
    position: relative;
}
.experience-vertical-track::before {
    content: "";
    position: absolute;
    left: -1px; top: 0;
    width: 1px; height: 0%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.5);
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.experience-vertical-track.line-revealed::before { height: 100%; }

.timeline-node {
    position: relative;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-node.node-revealed { opacity: 1; transform: translateX(0); }
.timeline-node::before { content: ""; position: absolute; left: calc(-2rem - 4.5px); top: 8px; width: 8px; height: 8px; background: var(--text-dark); border-radius: 50%; transition: all 0.3s ease; }
.timeline-node:hover::before { background: var(--accent-blue); box-shadow: 0 0 12px var(--accent-blue); }
.node-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; }

.node-status-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.35rem 0.85rem; border-radius: 6px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); color: var(--text-muted); }
.node-status-tag.current { color: var(--accent-blue); background: rgba(0, 122, 255, 0.05); border-color: rgba(0, 122, 255, 0.15); }
.node-status-tag.verified { color: var(--accent-gold); background: rgba(198, 161, 91, 0.05); border-color: rgba(198, 161, 91, 0.15); }
.node-status-tag.academic { color: #a855f7; background: rgba(168, 85, 247, 0.05); border-color: rgba(168, 85, 247, 0.15); }

.node-timeline-date { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.timeline-node h4 { font-size: 1.35rem; font-weight: 700; color: #ffffff; }
.node-role { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.75rem; }
.node-details { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.expand-details-btn {
    background: transparent; border: none; color: var(--accent-blue); font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0.25rem 0; display: inline-block; outline: none; transition: color 0.2s ease;
}
.expand-details-btn:hover { color: #ffffff; }

/* ==========================================================================
   5B. MODAL ACHIEVEMENT LIST — ROLE BLOCK HEADINGS
   ========================================================================== */

/* Container replaces the old <ul> */
.modal-achievements-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each role block (groups a heading + its bullet points) */
.modal-role-block {
    padding: 1.5rem 0;
}

/* Divider between blocks — not shown before the first one */
.modal-role-block + .modal-role-block {
    border-top: 1px solid var(--border-color);
}

/* Role block heading — bold, gold accent, no bullet */
.modal-role-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Bullet points list inside each block */
.modal-role-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.modal-role-points li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.modal-role-points li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* Fallback: single-role orgs that just use a plain list */
.styled-achievements-ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.styled-achievements-ul li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.6; color: var(--text-muted); }
.styled-achievements-ul li::before { content: "▪"; position: absolute; left: 0; color: var(--accent-gold); font-size: 0.9rem; }

/* ==========================================================================
   6. SPA VIEW PANEL — SMOOTH FADE + SLIDE TRANSITION ANIMATIONS
   ========================================================================== */
.view-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.view-panel.active {
    display: block;
    animation: panelFadeIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

#dedicated-work-page { animation: none; }
#dedicated-work-page.sliding-in { animation: slideInFromRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
#dedicated-work-page.sliding-out { animation: slideOutToRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutToRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

.display-none { display: none !important; }

/* ==========================================================================
   7. BLURRED EXPERIENCE & IMAGE OVERLAY MODALS
   ========================================================================== */
.document-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(10, 11, 13, 0.82); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); 
    z-index: 10005; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.document-modal-overlay.active { opacity: 1; pointer-events: auto; }

.document-modal-container {
    background: var(--bg-surface); border: 1px solid var(--glass-border); width: 90%; max-width: 650px; border-radius: 24px; padding: 2.5rem; position: relative; box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-long-content { max-width: 700px; padding: 3rem; }
.document-modal-overlay.active .document-modal-container { transform: scale(1); }

.document-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; transition: color 0.2s ease; }
.document-close-btn:hover { color: var(--text-main); }
.document-modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; color: var(--accent-gold); }
.document-frame-body { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); background: #0c0e11; }
.document-frame-body img { width: 100%; height: auto; display: block; object-fit: contain; max-height: 65vh; }

.view-document-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); color: var(--text-main); padding: 0.65rem 1.4rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-block; transition: all 0.2s ease;
}
.view-document-btn:hover { background: var(--text-main); color: var(--bg-primary); border-color: var(--text-main); }

/* ==========================================================================
   7B. IMAGE LIGHTBOX — fullscreen zoom-in preview for graphics
   ========================================================================== */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(8, 9, 11, 0.92); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 10010; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    padding: 2rem;
}
.lightbox-overlay.active { opacity: 1; pointer-events: auto; }

.lightbox-img {
    max-width: 92vw; max-height: 92vh;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }

.lightbox-close-btn {
    position: absolute; top: 1.5rem; right: 2rem;
    background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
    color: var(--text-main); font-size: 1.8rem; line-height: 1;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    z-index: 10011;
}
.lightbox-close-btn:hover { background: var(--text-main); color: var(--bg-primary); }

/* Graphic tiles get a pointer cursor + subtle hover hint that they're clickable */
.graphic-media-box { cursor: zoom-in; position: relative; }
.graphic-media-box::after {
    content: "🔍";
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.55); border-radius: 6px;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; opacity: 0; transition: opacity 0.2s ease;
    pointer-events: none;
}
.graphic-item-node:hover .graphic-media-box::after { opacity: 1; }

/* ==========================================================================
   8. HEADER, NAVBAR & FORMS
   ========================================================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 20, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.brand-signature { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -0.03em; }
.brand-signature span { color: var(--accent-blue); }

.navigation-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.nav-route {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}
.nav-route:hover, .nav-route.active { color: var(--text-main); }
.nav-route:not(.nav-route-button)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-route:not(.nav-route-button):hover::after,
.nav-route.active:not(.nav-route-button)::after {
    transform: scaleX(1);
}
.nav-route-button {
    background: var(--text-main);
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
}

.hero-editorial-compact { padding: 1.5rem 0; }
.about-grid-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; padding: 2rem 0; }
.about-text-side h3 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.about-text-side p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2rem; }
.skills-box-card { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 2rem; border-radius: 16px; }
.skills-box-card h4 { font-size: 0.75rem; text-transform: uppercase; color: var(--text-dark); margin-bottom: 1rem; letter-spacing: 0.05em; }
.skills-flex-container { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; color: #cbd5e1; }
.pose-card-image-wrap { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); }
.pose-character-img { width: 100%; height: auto; display: block; object-fit: cover; }

.contact-grid-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 2rem 0; }
.editorial-headline { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.contact-info-side p { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.contact-channels p { margin-bottom: 0.75rem; color: var(--text-main); font-size: 0.95rem; }
.contact-form-side { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 20px; }
.premium-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); transition: color 0.25s ease; }
.form-group:focus-within label { color: var(--accent-blue); }
.premium-form input, .premium-form textarea {
    background: var(--bg-card); border: 1px solid var(--border-color); padding: 0.85rem 1rem; border-radius: 8px;
    color: var(--text-main); font-family: var(--font-stack); font-size: 0.95rem; outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.premium-form input:focus, .premium-form textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
    transform: translateY(-1px);
}
.form-submit-btn { background: var(--text-main); color: var(--bg-primary); border: none; padding: 1rem; border-radius: 8px; font-weight: 700; cursor: pointer; transition: opacity 0.2s ease; }
.form-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form feedback banners */
.form-feedback {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.form-feedback--success {
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid rgba(0, 200, 100, 0.25);
    color: #4ade80;
}
.form-feedback--error {
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.25);
    color: #f87171;
}

.site-footer { border-top: 1px solid var(--border-color); padding: 2rem 0; text-align: center; margin-top: 5rem; }
.site-footer p { font-size: 0.8rem; color: var(--text-dark); }

.back-home-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.5rem 1.25rem; border-radius: 30px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.25s ease; }
.back-home-btn:hover { background: var(--text-main); color: var(--bg-primary); }
.project-header-intro { padding: 2rem 0 4rem 0; border-bottom: 1px solid var(--border-color); margin-bottom: 3rem; }
.project-header-intro h2 { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }

.dedicated-mini-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: sticky;
    top: 78px;
    z-index: 90;
    background: rgba(18, 20, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    margin-top: -1rem;
}
.dedicated-mini-nav:empty { display: none; }
.dedicated-mini-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.dedicated-mini-nav a:hover,
.dedicated-mini-nav a.active-jump {
    color: var(--text-main);
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(0, 122, 255, 0.08);
}
.client-showcase-block { margin-bottom: 5rem; }
.client-block-header { margin-bottom: 1.5rem; }
.client-block-header h3 { font-size: 1.8rem; font-weight: 700; color: var(--text-main); }
.client-block-header p { color: var(--accent-blue); font-size: 0.95rem; font-weight: 500; }
.works-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vault-item-node { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.vault-media-box { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; }
.vault-media-box iframe, .vault-media-box video, .vault-media-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: none; }
.vault-item-meta { padding: 1.5rem; }
.vault-item-meta h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.vault-item-meta p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   8B. MEDIA SUBSECTIONS — Graphics / Videos / Motion groupings within
       a company or client showcase block
   ========================================================================== */
.media-subsection { margin-top: 2.5rem; }
.media-subsection:first-of-type { margin-top: 1.5rem; }
.media-subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

/* Compact multi-column grid for graphic/image assets.
   Cards size to their natural aspect ratio rather than being cropped,
   so portrait social-media designs remain fully visible. */
.graphics-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.graphic-item-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.graphic-item-node:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.35);
}

.graphic-media-box {
    width: 100%;
    background: #0c0e11;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.graphic-media-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.graphic-item-meta { padding: 0.75rem 0.9rem; }
.graphic-item-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback icon shown when a media file fails to load */
.media-fallback {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-dark);
    background: #0c0e11;
}

/* Distinguish the company-level section slightly from client blocks */
.company-showcase-block { padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); margin-bottom: 3rem; }

/* ==========================================================================
   8C. SCROLL-REVEAL — fade-up animation triggered via IntersectionObserver
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Logo Styling */
.brand-signature-logo {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 32px; 
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}
.nav-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1050px) {
    .hero-editorial-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-avatar-column { order: -1; }
    .split-history-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 850px) {
    .about-grid-layout, .contact-grid-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .works-grid-layout { grid-template-columns: 1fr; }
    .graphics-grid-layout { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
}

/* Mobile navbar fix — solid surface background so it separates from page */
@media (max-width: 768px) {

    .site-header {
        padding: 0.75rem 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        align-items: center;
        /* Solid surface — no more blending into dark background */
        background: var(--bg-surface);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .app-container {
        padding: 0 1rem;
    }

    .nav-logo-img {
        height: 24px;
    }

    /* Nav items get a subtle pill background for legibility */
    .navigation-bar {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }
    .navigation-bar::-webkit-scrollbar { display: none; }

    .nav-route {
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        /* Give each item a faint pill so text pops on any background */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        color: var(--text-muted);
    }

    .nav-route:hover,
    .nav-route.active {
        background: rgba(0, 122, 255, 0.12);
        border-color: rgba(0, 122, 255, 0.3);
        color: var(--text-main);
    }

    /* "Let's Talk" button keeps its solid style */
    .nav-route-button {
        background: var(--accent-blue) !important;
        color: #ffffff !important;
        border-color: var(--accent-blue) !important;
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 30px;
    }
    .nav-route-button:hover {
        background: #005ecb !important;
        border-color: #005ecb !important;
    }

    .hero-text-column h2 { font-size: 1.9rem; }
    .hero-sub { font-size: 0.95rem; }
    .project-header-intro h2 { font-size: 2rem; }
    .editorial-headline { font-size: 1.8rem; }

    .org-responsive-grid {
        grid-template-columns: 1fr !important;
    }
    .org-skeleton-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-route {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    .nav-route-button {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.72rem !important;
    }
    .nav-logo-img {
        height: 22px;
    }
    .graphics-grid-layout { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}